memmem*: Move AC_LIBOBJ invocations to module description.
[pspp] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         memmem*: Move AC_LIBOBJ invocations to module description.
4         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6         here...
7         (gl_FUNC_MEMMEM): ... and here...
8         * modules/memmem-simple (configure.ac): ... to here.
9         * modules/memmem (configure.ac): ... and here.
10
11 2011-05-21  Bruno Haible  <bruno@clisp.org>
12
13         memcpy: Move AC_LIBOBJ invocations to module description.
14         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16         here...
17         * modules/memcpy (configure.ac): ... to here.
18
19 2011-05-21  Bruno Haible  <bruno@clisp.org>
20
21         memcmp: Simplify autoconf macro.
22         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
23         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
24         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
25
26 2011-05-21  Bruno Haible  <bruno@clisp.org>
27
28         memcmp: Move AC_LIBOBJ invocations to module description.
29         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
30         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
31         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
32         * modules/memcmp (configure.ac): ... to here.
33         (Depends-on): Update conditions.
34
35 2011-05-21  Bruno Haible  <bruno@clisp.org>
36
37         memchr: Respect rules for use of AC_LIBOBJ.
38         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
39         invocations from here...
40         * modules/memchr (configure.ac): ... to here.
41
42 2011-05-21  Bruno Haible  <bruno@clisp.org>
43
44         mbtowc: Move AC_LIBOBJ invocations to module description.
45         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
46         invocations from here...
47         * modules/mbtowc (configure.ac): ... to here.
48
49 2011-05-21  Bruno Haible  <bruno@clisp.org>
50
51         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53         gl_PREREQ_MBSRTOWCS invocations from here...
54         * modules/mbsrtowcs (configure.ac): ... to here.
55
56 2011-05-21  Bruno Haible  <bruno@clisp.org>
57
58         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
59         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
60         gl_PREREQ_MBSNRTOWCS invocations from here...
61         * modules/mbsnrtowcs (configure.ac): ... to here.
62
63 2011-05-21  Bruno Haible  <bruno@clisp.org>
64
65         mbsinit: Move AC_LIBOBJ invocations to module description.
66         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
67         invocations from here...
68         * modules/mbsinit (configure.ac): ... to here.
69
70 2011-05-21  Bruno Haible  <bruno@clisp.org>
71
72         mbrlen: Move AC_LIBOBJ invocations to module description.
73         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
74         invocations from here...
75         * modules/mbrlen (configure.ac): ... to here.
76
77 2011-05-21  Bruno Haible  <bruno@clisp.org>
78
79         mbrtowc: Respect rules for use of AC_LIBOBJ.
80         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
81         invocations from here...
82         * modules/mbrtowc (configure.ac): ... to here.
83
84 2011-05-21  Bruno Haible  <bruno@clisp.org>
85
86         malloc-*: Move AC_LIBOBJ invocations to module description.
87         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
88         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
89         AC_LIBOBJ invocations from here...
90         * modules/malloc-gnu (configure.ac): ... to here.
91         * modules/malloc-posix (configure.ac): ... and here.
92
93 2011-05-21  Bruno Haible  <bruno@clisp.org>
94
95         lstat, openat: Respect rules for use of AC_LIBOBJ.
96         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
97         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
98         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
99         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
100         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
101         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
102         here.
103         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
104
105 2011-05-21  Bruno Haible  <bruno@clisp.org>
106
107         lseek: Move AC_LIBOBJ invocations to module description.
108         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
109         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
110         * modules/lseek (configure.ac): ... to here.
111
112 2011-05-21  Bruno Haible  <bruno@clisp.org>
113
114         linkat: Move AC_LIBOBJ invocations to module description.
115         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
116         here...
117         * modules/linkat (configure.ac): ... to here.
118
119 2011-05-21  Bruno Haible  <bruno@clisp.org>
120
121         link: Respect rules for use of AC_LIBOBJ.
122         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
123         * modules/link (configure.ac): ... to here.
124
125 2011-05-21  Bruno Haible  <bruno@clisp.org>
126
127         lchown: Move AC_LIBOBJ invocations to module description.
128         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
129         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
130         * modules/lchown (configure.ac): ... to here.
131
132 2011-05-21  Bruno Haible  <bruno@clisp.org>
133
134         iswctype: Move AC_LIBOBJ invocations to module description.
135         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
136         here...
137         * modules/iswctype (configure.ac): ... to here.
138
139 2011-05-21  Bruno Haible  <bruno@clisp.org>
140
141         iswblank: Move AC_LIBOBJ invocations to module description.
142         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
143         here...
144         * modules/iswblank (configure.ac): ... to here.
145
146 2011-05-21  Bruno Haible  <bruno@clisp.org>
147
148         atanl: Move AC_LIBOBJ invocations to module description.
149         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
150         * modules/atanl (configure.ac): ... to here.
151
152 2011-05-21  Bruno Haible  <bruno@clisp.org>
153
154         acosl: Move AC_LIBOBJ invocations to module description.
155         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
156         * modules/acosl (configure.ac): ... to here.
157
158 2011-05-21  Bruno Haible  <bruno@clisp.org>
159
160         asinl: Respect rules for use of AC_LIBOBJ.
161         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
162         * modules/asinl (configure.ac): ... to here.
163
164 2011-05-21  Bruno Haible  <bruno@clisp.org>
165
166         tanl: Move AC_LIBOBJ invocations to module description.
167         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
168         * modules/tanl (configure.ac): ... to here.
169
170 2011-05-21  Bruno Haible  <bruno@clisp.org>
171
172         cosl: Move AC_LIBOBJ invocations to module description.
173         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
174         * modules/cosl (configure.ac): ... to here.
175
176 2011-05-21  Bruno Haible  <bruno@clisp.org>
177
178         sinl: Move AC_LIBOBJ invocations to module description.
179         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
180         * modules/sinl (configure.ac): ... to here.
181
182 2011-05-21  Bruno Haible  <bruno@clisp.org>
183
184         logl: Move AC_LIBOBJ invocations to module description.
185         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
186         * modules/logl (configure.ac): ... to here.
187
188 2011-05-21  Bruno Haible  <bruno@clisp.org>
189
190         expl: Move AC_LIBOBJ invocations to module description.
191         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
192         * modules/expl (configure.ac): ... to here.
193
194 2011-05-21  Bruno Haible  <bruno@clisp.org>
195
196         roundl: Move AC_LIBOBJ invocations to module description.
197         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
198         * modules/roundl (configure.ac): ... to here.
199
200 2011-05-21  Bruno Haible  <bruno@clisp.org>
201
202         round: Move AC_LIBOBJ invocations to module description.
203         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
204         * modules/round (configure.ac): ... to here.
205
206 2011-05-21  Bruno Haible  <bruno@clisp.org>
207
208         roundf: Move AC_LIBOBJ invocations to module description.
209         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
210         * modules/roundf (configure.ac): ... to here.
211
212 2011-05-21  Bruno Haible  <bruno@clisp.org>
213
214         truncl: Move AC_LIBOBJ invocations to module description.
215         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
216         * modules/truncl (configure.ac): ... to here.
217
218 2011-05-21  Bruno Haible  <bruno@clisp.org>
219
220         trunc: Move AC_LIBOBJ invocations to module description.
221         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
222         * modules/trunc (configure.ac): ... to here.
223
224 2011-05-21  Bruno Haible  <bruno@clisp.org>
225
226         truncf: Move AC_LIBOBJ invocations to module description.
227         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
228         * modules/truncf (configure.ac): ... to here.
229
230 2011-05-21  Bruno Haible  <bruno@clisp.org>
231
232         ceill: Move AC_LIBOBJ invocations to module description.
233         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
234         * modules/ceill (configure.ac): ... to here.
235
236 2011-05-21  Bruno Haible  <bruno@clisp.org>
237
238         ceil: Move AC_LIBOBJ invocations to module description.
239         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
240         * modules/ceil (configure.ac): ... to here.
241
242 2011-05-21  Bruno Haible  <bruno@clisp.org>
243
244         ceilf: Move AC_LIBOBJ invocations to module description.
245         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
246         * modules/ceilf (configure.ac): ... to here.
247
248 2011-05-21  Bruno Haible  <bruno@clisp.org>
249
250         floorl: Respect rules for use of AC_LIBOBJ.
251         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
252         * modules/floorl (configure.ac): ... to here.
253
254 2011-05-21  Bruno Haible  <bruno@clisp.org>
255
256         floor: Respect rules for use of AC_LIBOBJ.
257         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
258         * modules/floor (configure.ac): ... to here.
259
260 2011-05-21  Bruno Haible  <bruno@clisp.org>
261
262         floorf: Move AC_LIBOBJ invocations to module description.
263         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
264         * modules/floorf (configure.ac): ... to here.
265
266 2011-05-20  Bruno Haible  <bruno@clisp.org>
267
268         sqrtl: Respect rules for use of AC_LIBOBJ.
269         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
270         * modules/sqrtl (configure.ac): ... to here.
271
272 2011-05-20  Bruno Haible  <bruno@clisp.org>
273
274         ldexpl: Respect rules for use of AC_LIBOBJ.
275         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
276         * modules/ldexpl (configure.ac): ... to here.
277
278 2011-05-20  Bruno Haible  <bruno@clisp.org>
279
280         frexpl*: Respect rules for use of AC_LIBOBJ.
281         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
282         invocation from here...
283         * modules/frexpl (configure.ac): ... to here.
284         * modules/frexpl-nolibm (configure.ac): ... and here.
285
286 2011-05-20  Bruno Haible  <bruno@clisp.org>
287
288         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
289         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
290         invocation from here...
291         * modules/frexp (configure.ac): ... to here.
292         * modules/frexp-nolibm (configure.ac): ... and here.
293
294 2011-05-20  Bruno Haible  <bruno@clisp.org>
295
296         isnan: Respect rules for use of AC_LIBOBJ.
297         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
298         invocations here.
299         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
300         REPLACE_ISNAN.
301         * modules/isnand (configure.ac): Likewise.
302         * modules/isnanl (configure.ac): Likewise.
303
304 2011-05-20  Bruno Haible  <bruno@clisp.org>
305
306         isnanl*: Respect rules for use of AC_LIBOBJ.
307         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
308         invocation from here...
309         * modules/isnanl (configure.ac): ... to here.
310         * modules/isnanl-nolibm (configure.ac): ... and here.
311
312 2011-05-20  Bruno Haible  <bruno@clisp.org>
313
314         isnand*: Move AC_LIBOBJ invocations to module description.
315         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
316         invocation from here...
317         * modules/isnand (configure.ac): ... to here.
318         * modules/isnand-nolibm (configure.ac): ... and here.
319
320 2011-05-20  Bruno Haible  <bruno@clisp.org>
321
322         isnanf*: Move AC_LIBOBJ invocations to module description.
323         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
324         invocation from here...
325         * modules/isnanf (configure.ac): ... to here.
326         * modules/isnanf-nolibm (configure.ac): ... and here.
327
328 2011-05-20  Bruno Haible  <bruno@clisp.org>
329
330         isnan*: Separate the AC_LIBOBJ invocations.
331         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
332         AC_LIBOBJ invocation.
333         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
334         here.
335         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
336         AC_LIBOBJ invocation.
337         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
338         here.
339         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
340         AC_LIBOBJ invocation.
341         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
342         here.
343         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
344
345 2011-05-08  Bruno Haible  <bruno@clisp.org>
346
347         isinf: Move AC_LIBOBJ invocations to module description.
348         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
349         * modules/isinf (configure.ac): ... to here.
350
351 2011-05-08  Bruno Haible  <bruno@clisp.org>
352
353         isfinite: Move AC_LIBOBJ invocations to module description.
354         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
355         * modules/isfinite (configure.ac): ... to here.
356
357 2011-05-08  Bruno Haible  <bruno@clisp.org>
358
359         isblank: Move AC_LIBOBJ invocations to module description.
360         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
361         here...
362         * modules/isblank (configure.ac): ... to here.
363
364 2011-05-08  Bruno Haible  <bruno@clisp.org>
365
366         isapipe: Move AC_LIBOBJ invocations to module description.
367         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
368         gl_PREREQ_ISAPIPE invocations from here...
369         * modules/isapipe (configure.ac): ... to here.
370         (Depends-on): Update condition.
371
372 2011-05-08  Bruno Haible  <bruno@clisp.org>
373
374         ioctl: Move AC_LIBOBJ invocations to module description.
375         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
376         invocations from here...
377         * modules/ioctl (configure.ac): ... to here.
378         (Depends-on): Update condition.
379
380 2011-05-08  Bruno Haible  <bruno@clisp.org>
381
382         imaxdiv: Move AC_LIBOBJ invocations to module description.
383         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
384         invocations from here...
385         * modules/imaxdiv (configure.ac): ... to here.
386
387 2011-05-08  Bruno Haible  <bruno@clisp.org>
388
389         imaxabs: Move AC_LIBOBJ invocations to module description.
390         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
391         invocations from here...
392         * modules/imaxabs (configure.ac): ... to here.
393
394 2011-05-08  Bruno Haible  <bruno@clisp.org>
395
396         getaddrinfo: Move AC_LIBOBJ invocations to module description.
397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
398         AC_LIBOBJ invocations from here...
399         * modules/getaddrinfo (configure.ac): ... to here.
400         (Depends-on): Add conditions.
401
402 2011-05-08  Bruno Haible  <bruno@clisp.org>
403
404         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
405         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
406         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
407         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
408         (gl_PREREQ_INET_PTON): ... from here.
409         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
410         gl_PREREQ_INET_PTON here.
411         (Depends-on): Update condition.
412
413 2011-05-08  Bruno Haible  <bruno@clisp.org>
414
415         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
416         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
417         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
418         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
419         (gl_PREREQ_INET_NTOP): ... from here.
420         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
421         gl_PREREQ_INET_NTOP here.
422         (Depends-on): Update condition.
423
424 2011-05-08  Bruno Haible  <bruno@clisp.org>
425
426         iconv_open: Move AC_LIBOBJ invocations to module description.
427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
428         AC_LIBOBJ invocations from here...
429         * modules/iconv_open (configure.ac): ... to here.
430
431 2011-05-08  Bruno Haible  <bruno@clisp.org>
432
433         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
434         If module 'iconv_open' is among the main modules and module
435         'iconv_open-utf' is among the tests dependencies, then
436         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
437         return the special iconv_t values. Therefore iconv() and iconv_close()
438         must support these special iconv_t values, already in lib, not only in
439         tests.
440         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
442         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
443         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
444         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
445         (Depends-on): Add the dependencies of iconv_open-utf.
446         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
447         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
448         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
449
450 2011-05-08  Bruno Haible  <bruno@clisp.org>
451
452         group-member: Move AC_LIBOBJ invocations to module description.
453         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
454         gl_PREREQ_GROUP_MEMBER invocations from here...
455         * modules/group-member (configure.ac): ... to here.
456
457 2011-05-08  Bruno Haible  <bruno@clisp.org>
458
459         grantpt: Move AC_LIBOBJ invocations to module description.
460         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
461         invocations from here...
462         * modules/grantpt (configure.ac): ... to here.
463
464 2011-05-08  Bruno Haible  <bruno@clisp.org>
465
466         glob: Move AC_LIBOBJ invocations to module description.
467         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
468         from here...
469         * modules/glob (configure.ac): ... to here.
470
471 2011-05-08  Bruno Haible  <bruno@clisp.org>
472
473         getusershell: Move AC_LIBOBJ invocations to module description.
474         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
475         Move AC_LIBOBJ invocation from here...
476         * modules/getusershell (configure.ac): ... to here.
477         (Depends-on): Update condition.
478
479 2011-05-08  Bruno Haible  <bruno@clisp.org>
480
481         gettimeofday: Move AC_LIBOBJ invocations to module description.
482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
483         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
484         gl_PREREQ_GETTIMEOFDAY invocations from here...
485         * modules/gettimeofday (configure.ac): ... to here.
486
487 2011-05-08  Bruno Haible  <bruno@clisp.org>
488
489         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
490         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
491         just gl_FUNC_TZSET.
492         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
493         (gl_FUNC_TZSET_CLOBBER): Remove actions.
494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
495         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
496
497 2011-05-08  Bruno Haible  <bruno@clisp.org>
498
499         getsubopt: Move AC_LIBOBJ invocations to module description.
500         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
501         gl_PREREQ_GETSUBOPT invocations from here...
502         * modules/getsubopt (configure.ac): ... to here.
503
504 2011-05-08  Bruno Haible  <bruno@clisp.org>
505
506         getpass-gnu: Move AC_LIBOBJ invocations to module description.
507         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
508         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
509         * modules/getpass-gnu (configure.ac): ... to here.
510
511 2011-05-08  Bruno Haible  <bruno@clisp.org>
512
513         getpass: Move AC_LIBOBJ invocations to module description.
514         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
515         gl_PREREQ_GETPASS invocations from here...
516         * modules/getpass (configure.ac): ... to here.
517
518 2011-05-08  Bruno Haible  <bruno@clisp.org>
519
520         getpagesize: Move AC_LIBOBJ invocations to module description.
521         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
522         from here...
523         * modules/getpagesize (configure.ac): ... to here.
524
525 2011-05-08  Bruno Haible  <bruno@clisp.org>
526
527         getopt: Move AC_LIBOBJ invocations to module description.
528         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
529         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
530         invocations from here...
531         * modules/getopt-gnu (configure.ac): ... to here.
532         * modules/getopt-posix (configure.ac): ... and here.
533         (Depends-on): Update condition.
534
535 2011-05-08  Bruno Haible  <bruno@clisp.org>
536
537         getopt, argp: Respect rules for use of AC_LIBOBJ.
538         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
539         (gl_REPLACE_GETOPT_ALWAYS): New macro.
540         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
541         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
542
543 2011-05-08  Bruno Haible  <bruno@clisp.org>
544
545         getlogin_r: Move AC_LIBOBJ invocations to module description.
546         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
547         gl_PREREQ_GETLOGIN_R invocations from here...
548         * modules/getlogin_r (configure.ac): ... to here.
549
550 2011-05-08  Bruno Haible  <bruno@clisp.org>
551
552         getlogin: Move AC_LIBOBJ invocations to module description.
553         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
554         here...
555         * modules/getlogin (configure.ac): ... to here.
556
557 2011-05-08  Bruno Haible  <bruno@clisp.org>
558
559         getloadavg: Move AC_LIBOBJ invocations to module description.
560         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
561         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
562         * modules/getloadavg (configure.ac): ... to here.
563
564 2011-05-08  Bruno Haible  <bruno@clisp.org>
565
566         gethrxtime: Move AC_LIBOBJ invocations to module description.
567         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
568         LIB_GETHRXTIME from here...
569         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
570         invocations from here...
571         * modules/gethrxtime (configure.ac): ... to here.
572
573 2011-05-08  Bruno Haible  <bruno@clisp.org>
574
575         gethostname: Move AC_LIBOBJ invocations to module description.
576         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
577         gl_PREREQ_GETHOSTNAME invocations from here...
578         * modules/gethostname (configure.ac): ... to here.
579
580 2011-05-08  Bruno Haible  <bruno@clisp.org>
581
582         getgroups: Move AC_LIBOBJ invocations to module description.
583         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
584         here...
585         * modules/getgroups (configure.ac): ... to here.
586
587 2011-05-08  Bruno Haible  <bruno@clisp.org>
588
589         getdtablesize: Move AC_LIBOBJ invocations to module description.
590         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
591         invocation from here...
592         * modules/getdtablesize (configure.ac): ... to here.
593
594 2011-05-08  Bruno Haible  <bruno@clisp.org>
595
596         getdomainname: Move AC_LIBOBJ invocations to module description.
597         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
598         gl_PREREQ_GETDOMAINNAME invocations from here...
599         * modules/getdomainname (configure.ac): ... to here.
600
601 2011-05-08  Bruno Haible  <bruno@clisp.org>
602
603         getline: Move AC_LIBOBJ invocations to module description.
604         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
605         invocations from here...
606         * modules/getline (configure.ac): ... to here.
607
608 2011-05-08  Bruno Haible  <bruno@clisp.org>
609
610         getline: Simplify.
611         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
612         It's already handled through the module dependency.
613
614 2011-05-08  Bruno Haible  <bruno@clisp.org>
615
616         getdelim: Move AC_LIBOBJ invocations to module description.
617         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
618         and gl_PREREQ_GETDELIM invocations from here...
619         * modules/getdelim (configure.ac): ... to here.
620         (Depends-on): Fix condition.
621
622 2011-05-08  Bruno Haible  <bruno@clisp.org>
623
624         getcwd: Move AC_LIBOBJ invocations to module description.
625         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
626         invocations from here...
627         * modules/getcwd (configure.ac): ... to here.
628
629 2011-05-08  Bruno Haible  <bruno@clisp.org>
630
631         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
632         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
633         here...
634         * modules/getcwd-lgpl (configure.ac): ... to here.
635
636 2011-05-07  Bruno Haible  <bruno@clisp.org>
637
638         crypto/gc: Move AC_LIBOBJ invocations to module description.
639         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
640         * modules/crypto/gc (configure.ac): ... to here.
641
642 2011-05-07  Bruno Haible  <bruno@clisp.org>
643
644         fwriting: Move AC_LIBOBJ invocations to module description.
645         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
646         here...
647         * modules/fwriting (configure.ac): ... to here.
648
649 2011-05-07  Bruno Haible  <bruno@clisp.org>
650
651         fwritable: Move AC_LIBOBJ invocations to module description.
652         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
653         here...
654         * modules/fwritable (configure.ac): ... to here.
655
656 2011-05-07  Bruno Haible  <bruno@clisp.org>
657
658         futimens: Move AC_LIBOBJ invocations to module description.
659         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
660         here...
661         * modules/futimens (configure.ac): ... to here.
662
663 2011-05-07  Bruno Haible  <bruno@clisp.org>
664
665         ftruncate: Move AC_LIBOBJ invocations to module description.
666         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
667         gl_PREREQ_FTRUNCATE invocations from here...
668         * modules/ftruncate (configure.ac): ... to here.
669
670 2011-05-07  Bruno Haible  <bruno@clisp.org>
671
672         fsync: Move AC_LIBOBJ invocations to module description.
673         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
674         invocations from here...
675         * modules/fsync (configure.ac): ... to here.
676
677 2011-05-07  Bruno Haible  <bruno@clisp.org>
678
679         fsusage: Move AC_LIBOBJ invocations to module description.
680         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
681         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
682         * modules/fsusage (configure.ac): ... to here.
683
684 2011-05-07  Bruno Haible  <bruno@clisp.org>
685
686         freopen: Move AC_LIBOBJ invocations to module description.
687         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
688         invocations from here...
689         * modules/freopen (configure.ac): ... to here.
690
691 2011-05-07  Bruno Haible  <bruno@clisp.org>
692
693         free: Move AC_LIBOBJ invocations to module description.
694         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
695         invocations from here...
696         * modules/free (configure.ac): ... to here.
697
698 2011-05-07  Bruno Haible  <bruno@clisp.org>
699
700         freadable: Move AC_LIBOBJ invocations to module description.
701         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
702         here...
703         * modules/freadable (configure.ac): ... to here.
704
705 2011-05-07  Bruno Haible  <bruno@clisp.org>
706
707         fpurge: Move AC_LIBOBJ invocations to module description.
708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
709         invocations from here...
710         * modules/fpurge (configure.ac): ... to here.
711
712 2011-05-07  Bruno Haible  <bruno@clisp.org>
713
714         fpending: Move AC_LIBOBJ invocations to module description.
715         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
716         gl_FUNC_FPENDING.
717         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
718         invocations from here...
719         * modules/fpending (configure.ac): ... to here.
720
721 2011-05-07  Bruno Haible  <bruno@clisp.org>
722
723         fopen: Move AC_LIBOBJ invocations to module description.
724         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
725         invocations from here...
726         * modules/fopen (configure.ac): ... to here.
727
728 2011-05-07  Bruno Haible  <bruno@clisp.org>
729
730         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
731         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
732         gl_FUNC_FNMATCH_POSIX.
733         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
734         invocations from here...
735         * modules/fnmatch (configure.ac): ... to here.
736         * modules/fnmatch-gnu (configure.ac): ... and here.
737
738 2011-05-07  Bruno Haible  <bruno@clisp.org>
739
740         flock: Move AC_LIBOBJ invocations to module description.
741         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
742         invocations from here...
743         * modules/flock (configure.ac): ... to here.
744
745 2011-05-07  Bruno Haible  <bruno@clisp.org>
746
747         fileblocks: Move AC_LIBOBJ invocations to module description.
748         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
749         gl_PREREQ_FILEBLOCKS invocations from here...
750         * modules/fileblocks (configure.ac): ... to here.
751
752 2011-05-06  Bruno Haible  <bruno@clisp.org>
753
754         fflush: Move AC_LIBOBJ invocations to module description.
755         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
756         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
757         invocations from here...
758         * modules/fflush (configure.ac): ... to here.
759
760 2011-05-06  Bruno Haible  <bruno@clisp.org>
761
762         fdopendir: Move AC_LIBOBJ invocations to module description.
763         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
764         here...
765         * modules/fdopendir (configure.ac): ... to here.
766         (Depends-on): Improve conditions.
767
768 2011-05-06  Bruno Haible  <bruno@clisp.org>
769
770         _Exit: Move AC_LIBOBJ invocations to module description.
771         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
772         invocations from here...
773         * modules/_Exit (configure.ac): ... to here.
774
775 2011-05-21  Bruno Haible  <bruno@clisp.org>
776
777         euidaccess: Respect rules for use of AC_LIBOBJ.
778         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
779         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
780         from here...
781         * modules/euidaccess (configure.ac): ... to here.
782
783 2011-05-06  Bruno Haible  <bruno@clisp.org>
784
785         error: Move AC_LIBOBJ invocations to module description.
786         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
787         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
788         invocations from here...
789         * modules/error (configure.ac): ... to here.
790
791 2011-05-06  Bruno Haible  <bruno@clisp.org>
792
793         duplocale: Move AC_LIBOBJ invocations to module description.
794         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
795         gl_PREREQ_DUPLOCALE invocations from here...
796         * modules/duplocale (configure.ac): ... to here.
797
798 2011-05-05  Bruno Haible  <bruno@clisp.org>
799
800         dirfd: Move AC_LIBOBJ invocations to module description.
801         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
802         gl_FUNC_DIRFD.
803         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
804         here...
805         * modules/dirfd (configure.ac): ... to here.
806         (Depends-on): Fix condition.
807
808 2011-05-05  Bruno Haible  <bruno@clisp.org>
809
810         chown: Respect rules for use of AC_LIBOBJ.
811         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
812         * modules/chown (configure.ac): ... to here.
813
814 2011-05-05  Bruno Haible  <bruno@clisp.org>
815
816         chdir-long: Move AC_LIBOBJ invocations to module description.
817         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
818         gl_PREREQ_CHDIR_LONG invocations from here...
819         * modules/chdir-long (configure.ac): ... to here.
820
821 2011-05-05  Bruno Haible  <bruno@clisp.org>
822
823         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
824         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
825         from here...
826         * modules/canonicalize-lgpl (configure.ac): ... to here.
827
828 2011-05-05  Bruno Haible  <bruno@clisp.org>
829
830         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
831         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
832         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
833         REPLACE_CALLOC.
834         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
835         * modules/calloc-gnu (configure.ac): Likewise.
836
837 2011-05-05  Bruno Haible  <bruno@clisp.org>
838
839         btowc: Move AC_LIBOBJ invocations to module description.
840         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
841         invocations from here...
842         * modules/btowc (configure.ac): ... to here.
843
844 2011-05-21  Bruno Haible  <bruno@clisp.org>
845
846         atexit: Move AC_LIBOBJ invocations to module description.
847         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
848         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
849         here...
850         * modules/atexit (configure.ac): ... to here.
851
852 2011-05-05  Bruno Haible  <bruno@clisp.org>
853
854         atoll: Move AC_LIBOBJ invocations to module description.
855         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
856         invocations from here...
857         * modules/atoll (configure.ac): ... to here.
858
859 2011-05-05  Bruno Haible  <bruno@clisp.org>
860
861         argz: Move AC_LIBOBJ invocations to module description.
862         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
863         * modules/argz (configure.ac): ... to here.
864
865 2011-05-05  Bruno Haible  <bruno@clisp.org>
866
867         alphasort: Move AC_LIBOBJ invocations to module description.
868         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
869         gl_PREREQ_ALPHASORT invocations from here...
870         * modules/alphasort (configure.ac): ... to here.
871
872 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
873
874         verify: new macro verify_expr; verify_true deprecated
875         * NEWS: Mention this.
876         * doc/verify.texi (Compile-time Assertions): Document this.
877         * lib/verify.h (verify_true): Deprecate.
878         (verify_expr): New macro.
879         * tests/test-verify.c (function): Test verify_expr.
880
881 2011-06-14  Jim Meyering  <meyering@redhat.com>
882
883         init.sh: give more portable redirection-related advice in a comment
884         * tests/init.sh (stderr_fileno_): Update the advice in comments.
885         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
886         for lots of discussion.  Stefano Lattarini suggested the solution
887         of putting "9>&2" after the command.  Reported by Bruno Haible.
888
889 2011-06-13  Bruno Haible  <bruno@clisp.org>
890
891         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
892         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
893         'none'.
894
895 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
896
897         ftoastr: use strtof only if HAVE_STRTOF
898         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
900         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
901         * modules/ftoastr (configure.ac): Check for strtof.
902
903 2011-06-13  Bruno Haible  <bruno@clisp.org>
904
905         gnulib-tool: Addendum to 2011-06-08 commit.
906         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
907         and --witness-c-macro have been given, augment AM_CPPFLAGS.
908
909 2011-06-13  Bruno Haible  <bruno@clisp.org>
910
911         fseeko: Provide a non-inline replacement of fseek().
912         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
913         * modules/fseeko (Depends-on): Add fseek.
914         * modules/fseek (License): Change to LGPLv2+.
915
916 2011-06-13  Bruno Haible  <bruno@clisp.org>
917
918         ftello: Provide a non-inline replacement of ftell().
919         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
920         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
921         not have ftello() (such as on mingw).
922         * modules/ftello (Depends-on): Add ftell.
923         * modules/ftell (License): Change to LGPLv2+.
924
925 2011-05-07  Bruno Haible  <bruno@clisp.org>
926
927         ftell: Move AC_LIBOBJ invocations to module description.
928         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
929         * modules/ftell (configure.ac): ... to here.
930
931 2011-05-07  Bruno Haible  <bruno@clisp.org>
932
933         ftello: Respect rules for use of AC_LIBOBJ.
934         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
935         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
936         here...
937         * modules/ftello (configure.ac): ... to here.
938
939 2011-05-07  Bruno Haible  <bruno@clisp.org>
940
941         fseeko: Simplify.
942         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
943         (gl_FUNC_FSEEKO): Inline it here.
944
945 2011-05-07  Bruno Haible  <bruno@clisp.org>
946
947         fseek: Move AC_LIBOBJ invocations to module description.
948         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
949         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
950         * modules/fseek (configure.ac): ... to here.
951
952 2011-05-07  Bruno Haible  <bruno@clisp.org>
953
954         fseek: Respect rules for use of AC_LIBOBJ.
955         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
956         here...
957         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
958
959 2011-05-07  Bruno Haible  <bruno@clisp.org>
960
961         fseeko: Respect rules for use of AC_LIBOBJ.
962         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
963         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
964         here...
965         * modules/fseeko (configure.ac): ... to here.
966
967 2011-06-13  Bruno Haible  <bruno@clisp.org>
968
969         gnulib-tool: Allow comments in the 'Depends-on' section.
970         * doc/gnulib.texi (Module description): Mention comment syntax in the
971         Depends-on section.
972         * gnulib-tool (func_get_dependencies): Filter out comment lines.
973
974 2011-06-13  Bruno Haible  <bruno@clisp.org>
975
976         file-set.h: guard __attibute__ use, now that it's not always defined
977         * lib/file-set.h (record_file): Use __attribute__ only with compiler
978         versions that support it.  This fixes a coreutils build failure with
979         the vendor cc on HP-UX 11.31.
980
981 2011-06-12  Bruno Haible  <bruno@clisp.org>
982
983         acl: Add support for HP-UX >= 11.11 JFS ACLs.
984         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
985         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
986         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
987         (acl, aclsort): New declarations.
988         (aclv_nontrivial): New declaration.
989         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
990         (file_has_acl): Read also the second kind of HP-UX ACLs.
991         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
992         kind of HP-UX ACLs if the first kind fails.
993         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
994         second kind of HP-UX ACLs.
995         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
996         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
997         agree.
998         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
999         hpuxjfs.
1000         Handle hpuxjfs.
1001         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1002         hpuxjfs.
1003         Handle hpuxjfs.
1004         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1005         (func_test_same_acls): Use both lsacl and getacl.
1006         Handle hpuxjfs.
1007         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1008         (func_test_same_acls): Use both lsacl and getacl.
1009         Handle hpuxjfs.
1010
1011 2011-06-12  Bruno Haible  <bruno@clisp.org>
1012
1013         acl: Complete the 2010-08-10 fix.
1014         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1015         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1016         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1017         explicitly.
1018         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1019         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1020
1021 2011-06-12  Bruno Haible  <bruno@clisp.org>
1022
1023         spawn-pipe tests: Comments.
1024         * tests/test-spawn-pipe-child.c (main): Update comment.
1025         Reported by James Youngman <jay@gnu.org>.
1026
1027 2011-06-11  James Youngman  <jay@gnu.org>
1028
1029         New module 'stat-size'.
1030         * modules/stat-size: New module.  Provides macros for accessing
1031         file size information in instances of struct stat.  Depends on the
1032         fileblocks module because it calls st_blocks.
1033         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1034         * doc/gnulib.texi: Include stat-size.texi.
1035         * doc/stat-size.texi: Documentation for this module.
1036         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1037         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1038         AC_STRUCT_ST_BLOCKS.
1039
1040 2011-06-09  Bruno Haible  <bruno@clisp.org>
1041
1042         thread: Support pthreads-win32.
1043         * lib/glthread/thread.h (gl_thread_self): Define differently on
1044         pthreads-win32.
1045         (gl_null_thread): New declaration.
1046         (gl_thread_self_pointer): New macro.
1047         * lib/glthread/thread.c (gl_null_thread): New constant.
1048         * tests/test-lock.c: Use gl_thread_self_pointer instead of
1049         gl_thread_self.
1050         * tests/test-tls.c: Likewise.
1051         Suggested by Paul Eggert. Reported by Eric Blake.
1052
1053 2011-06-09  Bruno Haible  <bruno@clisp.org>
1054
1055         thread: Fix confusion between NULL and 0.
1056         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1057         Reported by Paul Eggert.
1058
1059 2011-06-09  Bruno Haible  <bruno@clisp.org>
1060
1061         spawn-pipe tests: Avoid test failure on HP-UX 11.
1062         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1063         is closed.
1064
1065 2011-06-09  Bruno Haible  <bruno@clisp.org>
1066
1067         acl tests: Fix compilation error on HP-UX 11.
1068         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1069
1070 2011-06-09  Bruno Haible  <bruno@clisp.org>
1071
1072         rmdir: Avoid test failure on HP-UX 10.20.
1073         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1074         EEXIST.
1075
1076 2011-06-08  Eric Blake  <eblake@redhat.com>
1077
1078         perror: fix test on mingw
1079         * modules/perror-tests (Depends-on): Add dup2.
1080
1081         strerror_r-posix: fix on MacOS
1082         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1083         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1084         logic bug.
1085         * lib/strerror_r.c (strerror_r): Fix the bug.
1086         * lib/strerror.c (strerror): Likewise.
1087         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1088         problem.
1089         * doc/posix-functions/strerror.texi (strerror): Likewise.
1090         * doc/posix-functions/perror.texi (perror): Likewise.
1091         * tests/test-strerror.c (main): Enhance test.
1092         * tests/test-strerror_r.c (main): Likewise.
1093
1094 2011-06-08  Bruno Haible  <bruno@clisp.org>
1095
1096         gnulib-tool: Better isolation between different gnulib-tool invocations.
1097         * gnulib-tool: New option --witness-c-macro.
1098         (witness_c_macro): New variable.
1099         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1100         AM_CPPFLAGS define it as a C macro.
1101         (func_emit_tests_Makefile_am): Likewise.
1102         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1103         read it from there.
1104         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1105         m4_define, not AC_DEFUN.
1106         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1107         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1108         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1109         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1110         s|...|...|, to substitute the values of the GNULIB_* module indicator
1111         variables.
1112         * modules/dirent (Makefile.am): Likewise.
1113         * modules/fcntl-h (Makefile.am): Likewise.
1114         * modules/iconv-h (Makefile.am): Likewise.
1115         * modules/langinfo (Makefile.am): Likewise.
1116         * modules/locale (Makefile.am): Likewise.
1117         * modules/math (Makefile.am): Likewise.
1118         * modules/netdb (Makefile.am): Likewise.
1119         * modules/poll-h (Makefile.am): Likewise.
1120         * modules/pty (Makefile.am): Likewise.
1121         * modules/search (Makefile.am): Likewise.
1122         * modules/signal (Makefile.am): Likewise.
1123         * modules/spawn (Makefile.am): Likewise.
1124         * modules/stdio (Makefile.am): Likewise.
1125         * modules/stdlib (Makefile.am): Likewise.
1126         * modules/string (Makefile.am): Likewise.
1127         * modules/sys_ioctl (Makefile.am): Likewise.
1128         * modules/sys_select (Makefile.am): Likewise.
1129         * modules/sys_socket (Makefile.am): Likewise.
1130         * modules/sys_stat (Makefile.am): Likewise.
1131         * modules/sys_times (Makefile.am): Likewise.
1132         * modules/sys_utsname (Makefile.am): Likewise.
1133         * modules/sys_wait (Makefile.am): Likewise.
1134         * modules/termios (Makefile.am): Likewise.
1135         * modules/time (Makefile.am): Likewise.
1136         * modules/unistd (Makefile.am): Likewise.
1137         * modules/wchar (Makefile.am): Likewise.
1138
1139 2011-06-08  Eric Blake  <eblake@redhat.com>
1140
1141         strerror: simplify replacement
1142         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1143         * modules/strerror (configure.ac): No prereqs needed here...
1144         * modules/strerror-override (configure.ac): ...but this needs it.
1145         (Files): Add file for needed prereq macro.
1146
1147 2011-06-08  Bruno Haible  <bruno@clisp.org>
1148
1149         strerror_r-posix: Tweaks.
1150         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1151         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1153         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1154         (gl_FUNC_STRERROR_R): ... to here.
1155         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1156
1157 2011-06-07  Eric Blake  <eblake@redhat.com>
1158
1159         perror: document fixed bugs
1160         * doc/posix-functions/perror.texi (perror): Document recent
1161         patches.
1162
1163 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1164
1165         stat-time: get_stat_birthtime failure is better-defined
1166         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1167         return a timestamp whose tv_sec and tv_nsec values are both -1.
1168         Previously, the spec said only that the tv_nsec value was negative.
1169         This upward-compatible change simplifies GNU tar a bit.
1170
1171 2011-06-07  Eric Blake  <eblake@redhat.com>
1172
1173         strerror_r-posix: work around cygwin 1.7.9
1174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1175         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1176         bug without replacing strerror_r.
1177         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1178         strerror_r is buggy, but without requiring strerror_r compilation.
1179         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1180
1181         test-perror: relax test to ignore cygwin bug
1182         * tests/test-perror2.c (main): Relax test on requiring detection
1183         of stream errors, and use unbuffered stream.
1184         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1185         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1186         * doc/posix-functions/fputc.texi (fputc): Likewise.
1187         * doc/posix-functions/fputs.texi (fputs): Likewise.
1188         * doc/posix-functions/fputws.texi (fputws): Likewise.
1189         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1190         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1191         * doc/posix-functions/getopt.texi (getopt): Likewise.
1192         * doc/posix-functions/perror.texi (perror): Likewise.
1193         * doc/posix-functions/printf.texi (printf): Likewise.
1194         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1195         * doc/posix-functions/psignal.texi (psignal): Likewise.
1196         * doc/posix-functions/putc.texi (putc): Likewise.
1197         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1198         Likewise.
1199         * doc/posix-functions/putchar.texi (putchar): Likewise.
1200         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1201         Likewise.
1202         * doc/posix-functions/puts.texi (puts): Likewise.
1203         * doc/posix-functions/putwc.texi (putwc): Likewise.
1204         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1205         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1206         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1207         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1208         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1209         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1210         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1211         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1212
1213 2011-05-22  Bruno Haible  <bruno@clisp.org>
1214
1215         strerror: Move AC_LIBOBJ invocations to module description.
1216         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1217         gl_PREREQ_STRERROR invocations from here...
1218         * modules/strerror (configure.ac): ... to here.
1219
1220 2011-05-21  Bruno Haible  <bruno@clisp.org>
1221
1222         perror: Use common idiom.
1223         * modules/perror (configure.ac): Reorder statements.
1224
1225 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1226
1227         tests: fix usage message in 'mktempd_'
1228         * tests/init.sh (mktempd_): In the usage message, use literal
1229         'mktempd_', not '$ME' (which is even undefined), as the name of
1230         the subroutine.
1231
1232 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1233
1234         tests init: new function 'fatal_', for hard errors
1235         Before this patch, the only way offered by tests/init.sh to
1236         properly signal a hard error was the `framework_failure_'
1237         function.  But the error message issued by that function,
1238         as its name would suggest, refers to a set-up failure in the
1239         testsuite, while hard errors can obviously also be due to
1240         other reasons.  The best way to fix this inconsistency is to
1241         introduce a new function with a more general error message.
1242         * tests/init.sh (fatal_): New function.
1243
1244 2011-06-06  Eric Blake  <eblake@redhat.com>
1245
1246         canonicalize-lgpl: use common idiom
1247         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1248         over newer POSIX -Rf.
1249         Reported by Bruno Haible.
1250
1251         canonicalize-lgpl: work around AIX realpath bug
1252         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1253         * doc/posix-functions/realpath.texi (realpath): Document it.
1254         Reported by Bruno Haible.
1255
1256         strerror: work around FreeBSD bug
1257         * lib/strerror.c (strerror): Special case 0.
1258         Reported by Bruno Haible.
1259
1260         strerror-override: avoid bloating errno module
1261         * modules/errno (Files, configure.ac): Move replacement strings...
1262         * modules/strerror-override: ...to new module.
1263         * modules/strerror (Depends-on): Add strerror-override.
1264         * modules/strerror_r-posix (Depends-on): Likewise.
1265         * MODULES.html.sh: Document new module.
1266         Reported by Bruno Haible.
1267
1268 2011-06-06  Bruno Haible  <bruno@clisp.org>
1269
1270         spawn-pipe tests: Rename program.
1271         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1272         * tests/test-spawn-pipe-child.c: Update comment.
1273         * tests/test-spawn-pipe.sh: Update.
1274         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1275
1276         spawn-pipe tests: Link the child program only against libc.
1277         * tests/test-spawn-pipe-child.c: New file, extracted from
1278         tests/test-spawn-pipe.c.
1279         (main): Expect only one argument.
1280         (is_open): New function, copied from tests/test-pipe.c.
1281         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1282         (child_main): Remove function.
1283         (test_pipe): Pass only one argument to the child program.
1284         (main): Remove child process code. Expect the child program's name as
1285         first argument.
1286         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1287         argument.
1288         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1289         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1290         test-spawn-pipe-child against no libraries.
1291
1292 2011-06-06  Bruno Haible  <bruno@clisp.org>
1293
1294         careadlinkat: Avoid mismatch between ssize_t and int.
1295         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1296         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1297
1298 2011-06-06  Jim Meyering  <meyering@redhat.com>
1299
1300         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1301         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1302         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1303
1304 2011-06-05  Bruno Haible  <bruno@clisp.org>
1305
1306         ansi-c++-opt: Interoperability with libtool.
1307         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1308         set the variable to "no", not to ":".
1309         * NEWS: Mention the change.
1310
1311 2011-06-05  Bruno Haible  <bruno@clisp.org>
1312
1313         acl: Fix test failure on AIX 7.
1314         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1315         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1316
1317 2011-06-05  Bruno Haible  <bruno@clisp.org>
1318
1319         pipe-filter-ii: Fix test failure on AIX and IRIX.
1320         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1321         with EAGAIN, retry with a smaller buffer size.
1322
1323 2011-06-05  Bruno Haible  <bruno@clisp.org>
1324
1325         localename: Fix link dependencies.
1326         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1327         * modules/localename-tests (Makefile.am): Link test-localename with
1328         $(LIBTHREAD).
1329
1330 2011-06-05  Bruno Haible  <bruno@clisp.org>
1331
1332         error: Avoid gcc warning.
1333         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1334
1335 2011-06-05  Bruno Haible  <bruno@clisp.org>
1336
1337         unsetenv: Avoid gcc warning.
1338         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1339
1340 2011-06-05  Bruno Haible  <bruno@clisp.org>
1341
1342         setenv: Avoid gcc warning.
1343         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1344
1345 2011-06-05  Bruno Haible  <bruno@clisp.org>
1346
1347         sys_select: Ensure memset is declared also on AIX 7.
1348         * lib/sys_select.in.h: Include <string.h> also on AIX.
1349         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1350         self-contained also on AIX 7.1.
1351
1352 2011-06-04  Jim Meyering  <meyering@redhat.com>
1353
1354         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1355         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1356         function name, "error".
1357         (_gl_translatable_diag_func_re): New configurable variable.
1358
1359 2011-06-04  Bruno Haible  <bruno@clisp.org>
1360
1361         getopt: Avoid gcc warning.
1362         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1363
1364 2011-06-04  Bruno Haible  <bruno@clisp.org>
1365
1366         strerror_r: Fix comments.
1367         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1368         commit.
1369
1370 2011-06-04  Bruno Haible  <bruno@clisp.org>
1371
1372         perror: Fix compilation error.
1373         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1374         Undefine fprintf, not sprintf.
1375         * modules/perror (Depends-on): Remove intprops, verify.
1376
1377 2011-06-04  Bruno Haible  <bruno@clisp.org>
1378
1379         setlocale: Enable replacement on Cygwin 1.5.
1380         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1381         Cygwin 1.5.x.
1382         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1383         LC_CTYPE category also exists on Cygwin 1.5.x.
1384
1385 2011-06-04  Bruno Haible  <bruno@clisp.org>
1386
1387         strerror-override: Don't disable symbol renamings.
1388         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1389         * lib/strerror-override.c: Include config.h.
1390         (strerror_override): Don't undefine.
1391
1392 2011-06-03  Bruno Haible  <bruno@clisp.org>
1393
1394         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1395         * lib/localename.h: Update copyright header.
1396         * lib/localename.c: Likewise.
1397         * lib/relocatable.h: Likewise.
1398         * lib/relocatable.c: Likewise.
1399
1400 2011-06-02  Bruno Haible  <bruno@clisp.org>
1401
1402         doc: Fix a module name.
1403         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1404
1405 2011-06-02  Bruno Haible  <bruno@clisp.org>
1406
1407         pipe2: Remove dependency on 'nonblocking' module.
1408         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1409         O_NONBLOCK is defined by gnulib.
1410         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1411         is zero.
1412         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1413         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1414         defined by gnulib.
1415         (get_nonblocking_flag): New function.
1416         (main): Test O_NONBLOCK flag only if it is nonzero.
1417         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1418
1419 2011-06-03  Jim Meyering  <meyering@redhat.com>
1420
1421         maint: three new prohibit-header-without-use rules
1422         Prohibit use of cloexec.h, posixver.h, same.h without use.
1423         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1424         (sc_prohibit_posixver_without_use): Likewise.
1425         (sc_prohibit_same_without_use): Likewise.
1426
1427 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         allocator: 'die' routine is now given requested size
1430         * lib/allocator.h (struct allocator.die): New size arg.
1431         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1432         If the actual problem is an ssize_t limitation, not a size_t or
1433         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1434
1435 2011-06-01  Eric Blake  <eblake@redhat.com>
1436
1437         strerror: drop strerror_r dependency
1438         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1439         * lib/strerror-override.c (strerror_override): ...to new file.
1440         * lib/strerror-override.h: Add prototype.
1441         * lib/strerror-impl.h: Delete.
1442         * lib/strerror.c (strerror): New implementation.
1443         * modules/errno (Files): Add new files.
1444         (configure.ac): Compile new file as appropriate.
1445         * modules/strerror (Files): Drop unused file.
1446         (Depends-on): Drop strerror_r-posix.
1447         * MODULES.html.sh: Document strerror_r-posix.
1448         Requested by Sam Steingold.
1449
1450         perror: call strerror_r directly
1451         * modules/perror (Files): Drop strerror-impl.h.
1452         * lib/perror.c (perror): Use our own stack buffer, rather than
1453         calling a wrapper that uses static storage.
1454         * doc/posix-functions/perror.texi (perror): Document a limitation
1455         of our replacement.
1456
1457         strerror_r: fix includes for FreeBSD
1458         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1459         since we use abort on some platforms.
1460         Reported by Matthias Bolte.
1461
1462 2011-05-31  Bruno Haible  <bruno@clisp.org>
1463
1464         Fix link errors in tests: openat-die uses gettext-h.
1465         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1466         against $(LIBINTL).
1467         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1468         against $(LIBINTL).
1469         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1470         $(LIBINTL).
1471         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1472         against $(LIBINTL).
1473         * modules/linkat-tests (Makefile.am): Link test-linkat against
1474         $(LIBINTL).
1475         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1476         $(LIBINTL).
1477         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1478         against $(LIBINTL).
1479         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1480         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1481         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1482         $(LIBINTL).
1483         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1484         $(LIBINTL).
1485         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1486         $(LIBINTL).
1487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1488
1489 2011-05-31  Bruno Haible  <bruno@clisp.org>
1490
1491         Fix link errors in tests: wait-process uses gettext-h.
1492         * modules/nonblocking-pipe-tests (Makefile.am): Set
1493         test_nonblocking_pipe_main_LDADD.
1494         * modules/nonblocking-socket-tests (Makefile.am): Link
1495         test-nonblocking-socket-main against $(LIBINTL).
1496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1497
1498 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1499
1500         assert-h: work around 'verify' incompatibility
1501         * lib/verify.h: Use @...@ directives, not ifdef.
1502         * modules/assert-h (assert.h): Implement the directives.
1503         (assert.h): Substitute the symbol-prefix more consistently.
1504
1505 2011-05-29  Jim Meyering  <meyering@redhat.com>
1506
1507         trim: remove three superfluous assignments
1508         * lib/trim.c (trim2): Remove three superfluous assignments
1509         and correct brace positioning.
1510
1511 2011-05-29  Bruno Haible  <bruno@clisp.org>
1512
1513         wctype-h: Avoid namespace pollution on Solaris 2.6.
1514         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1515         identifiers.
1516         * doc/posix-headers/wctype.texi: Mention the problem.
1517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1518
1519 2011-05-28  Jim Meyering  <meyering@redhat.com>
1520
1521         parse-datetime.y: accommodate -Wstrict-overflow
1522         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1523         placate -Wstrict-overflow.
1524
1525         trim: avoid a warning from -O2 -Wstrict-overflow
1526         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1527
1528 2011-05-29  Bruno Haible  <bruno@clisp.org>
1529
1530         gnulib-tool: Fix bug in yesterday's commit.
1531         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1532         twice.
1533
1534 2011-05-29  Bruno Haible  <bruno@clisp.org>
1535
1536         Allow multiple gnulib generated include files to be combined.
1537         * gnulib-tool (func_compute_include_guard_prefix): New function.
1538         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1539         ${gl_include_guard_prefix} references.
1540         (func_import, func_create_testdir): Invoke
1541         func_compute_include_guard_prefix.
1542         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1543         * lib/ctype.in.h: Likewise.
1544         * lib/dirent.in.h: Likewise.
1545         * lib/errno.in.h: Likewise.
1546         * lib/fcntl.in.h: Likewise.
1547         * lib/float.in.h: Likewise.
1548         * lib/getopt.in.h: Likewise.
1549         * lib/iconv.in.h: Likewise.
1550         * lib/langinfo.in.h: Likewise.
1551         * lib/locale.in.h: Likewise.
1552         * lib/math.in.h: Likewise.
1553         * lib/netdb.in.h: Likewise.
1554         * lib/netinet_in.in.h: Likewise.
1555         * lib/poll.in.h: Likewise.
1556         * lib/pthread.in.h: Likewise.
1557         * lib/pty.in.h: Likewise.
1558         * lib/sched.in.h: Likewise.
1559         * lib/se-selinux.in.h: Likewise.
1560         * lib/search.in.h: Likewise.
1561         * lib/signal.in.h: Likewise.
1562         * lib/spawn.in.h: Likewise.
1563         * lib/stdarg.in.h: Likewise.
1564         * lib/stddef.in.h: Likewise.
1565         * lib/stdint.in.h: Likewise.
1566         * lib/stdio.in.h: Likewise.
1567         * lib/stdlib.in.h: Likewise.
1568         * lib/string.in.h: Likewise.
1569         * lib/strings.in.h: Likewise.
1570         * lib/sys_file.in.h: Likewise.
1571         * lib/sys_ioctl.in.h: Likewise.
1572         * lib/sys_select.in.h: Likewise.
1573         * lib/sys_socket.in.h: Likewise.
1574         * lib/sys_stat.in.h: Likewise.
1575         * lib/sys_time.in.h: Likewise.
1576         * lib/sys_times.in.h: Likewise.
1577         * lib/sys_uio.in.h: Likewise.
1578         * lib/sys_utsname.in.h: Likewise.
1579         * lib/sys_wait.in.h: Likewise.
1580         * lib/sysexits.in.h: Likewise.
1581         * lib/termios.in.h: Likewise.
1582         * lib/time.in.h: Likewise.
1583         * lib/unistd.in.h: Likewise.
1584         * lib/wchar.in.h: Likewise.
1585         * lib/wctype.in.h: Likewise.
1586         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1587         * modules/ctype (Makefile.am): Likewise.
1588         * modules/dirent (Makefile.am): Likewise.
1589         * modules/errno (Makefile.am): Likewise.
1590         * modules/fcntl-h (Makefile.am): Likewise.
1591         * modules/float (Makefile.am): Likewise.
1592         * modules/getopt-posix (Makefile.am): Likewise.
1593         * modules/iconv-h (Makefile.am): Likewise.
1594         * modules/langinfo (Makefile.am): Likewise.
1595         * modules/locale (Makefile.am): Likewise.
1596         * modules/math (Makefile.am): Likewise.
1597         * modules/netdb (Makefile.am): Likewise.
1598         * modules/netinet_in (Makefile.am): Likewise.
1599         * modules/poll-h (Makefile.am): Likewise.
1600         * modules/pthread (Makefile.am): Likewise.
1601         * modules/pty (Makefile.am): Likewise.
1602         * modules/sched (Makefile.am): Likewise.
1603         * modules/search (Makefile.am): Likewise.
1604         * modules/selinux-h (Makefile.am): Likewise.
1605         * modules/signal (Makefile.am): Likewise.
1606         * modules/spawn (Makefile.am): Likewise.
1607         * modules/stdarg (Makefile.am): Likewise.
1608         * modules/stddef (Makefile.am): Likewise.
1609         * modules/stdint (Makefile.am): Likewise.
1610         * modules/stdio (Makefile.am): Likewise.
1611         * modules/stdlib (Makefile.am): Likewise.
1612         * modules/string (Makefile.am): Likewise.
1613         * modules/strings (Makefile.am): Likewise.
1614         * modules/sys_file (Makefile.am): Likewise.
1615         * modules/sys_ioctl (Makefile.am): Likewise.
1616         * modules/sys_select (Makefile.am): Likewise.
1617         * modules/sys_socket (Makefile.am): Likewise.
1618         * modules/sys_stat (Makefile.am): Likewise.
1619         * modules/sys_time (Makefile.am): Likewise.
1620         * modules/sys_times (Makefile.am): Likewise.
1621         * modules/sys_uio (Makefile.am): Likewise.
1622         * modules/sys_utsname (Makefile.am): Likewise.
1623         * modules/sys_wait (Makefile.am): Likewise.
1624         * modules/sysexits (Makefile.am): Likewise.
1625         * modules/termios (Makefile.am): Likewise.
1626         * modules/time (Makefile.am): Likewise.
1627         * modules/unistd (Makefile.am): Likewise.
1628         * modules/wchar (Makefile.am): Likewise.
1629         * modules/wctype-h (Makefile.am): Likewise.
1630         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1631
1632 2011-05-29  Bruno Haible  <bruno@clisp.org>
1633
1634         assert-h: Allow multiple gnulib generated replacements to coexist.
1635         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1636
1637 2011-05-29  Bruno Haible  <bruno@clisp.org>
1638
1639         argp: Allow coexistence with strerror_r-posix module.
1640         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1641         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1642         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1643         not the glibc signature.
1644
1645 2011-05-28  Bruno Haible  <bruno@clisp.org>
1646
1647         gnulib-tool: Alternative structure of testdirs, similar to --import.
1648         * gnulib-tool: New option --single-configure.
1649         (func_usage): Document it.
1650         (single_configure): New variable.
1651         (func_modules_transitive_closure_separately,
1652         func_modules_transitive_closure_separately,
1653         func_determine_use_libtests, func_modules_add_dummy_separately,
1654         func_modules_to_filelist_separately): New functions, extracted from
1655         func_import.
1656         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1657         (func_import): Use the new functions.
1658         (func_create_testdir): Set final_modules. Handle $single_configure =
1659         true case.
1660
1661 2011-05-28  Bruno Haible  <bruno@clisp.org>
1662
1663         getloadavg: Remove an unreliable safety check.
1664         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1665         getloadavg.c is in place.
1666         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1667         Reported by Sam Steingold <sds@gnu.org>.
1668
1669 2011-05-28  Bruno Haible  <bruno@clisp.org>
1670
1671         doc: Cleanup yet another file produced by texinfo.tex.
1672         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1673
1674 2011-05-28  Bruno Haible  <bruno@clisp.org>
1675
1676         Finish the conditional dependencies mechanism.
1677         * gnulib-tool: New option --no-conditional-dependencies.
1678         (func_usage): Document it. Don't mark --conditional-dependencies as
1679         experimental.
1680         (cond_dependencies): The possible values can now be true, false, empty.
1681         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1682         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1683         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1684
1685 2011-05-28  Bruno Haible  <bruno@clisp.org>
1686
1687         doc: Use a recent texinfo.tex.
1688         * doc/Makefile (tex_opts): New variable.
1689         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1690
1691 2011-05-28  Jim Meyering  <meyering@redhat.com>
1692
1693         intprops.h: adjust comment to match code change
1694         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1695         only once, it *may* have side effects.  Also fix an unrelated typo.
1696         (_GL_INT_SIGNED): Likewise.
1697
1698 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1699
1700         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1701
1702 2011-05-26  Bruno Haible  <bruno@clisp.org>
1703
1704         mbsrchr: Avoid collision with system function on Interix.
1705         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1706         Reported by Markus Duft <mduft@gentoo.org>.
1707
1708 2011-05-15  James Youngman  <jay@gnu.org>
1709
1710         getopt: for ambiguous options, enumerate the possibilities.
1711         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1712         the ambiguous options when an ambiguous prefix is given. This was
1713         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1714         glibc change was
1715         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1716
1717 2011-05-25  Eric Blake  <eblake@redhat.com>
1718
1719         getcwd: work around mingw bug
1720         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1721         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1722         Reported by Matthias Bolte.
1723
1724 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1725
1726         test-intprops: disable -Wtype-limits diagnostics
1727         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1728         diagnostics.  Otherwise, the integer overflow macros generate many
1729         diagnostics.  Reported by Jim Meyering in
1730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1731
1732         intprops: shorten, to pacify gcc -Woverlength-strings
1733         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1734         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1735         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1736         likely to run afoul of C compiler limits for string constant lengths.
1737         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1738
1739 2011-05-24  Eric Blake  <eblake@redhat.com>
1740
1741         docs: document recently fixed glibc printf bug
1742         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1743         * doc/posix-functions/printf.texi (printf): Likewise.
1744         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1745         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1746
1747         closein-tests: convert to init.sh
1748         * modules/closein-tests (Files): Add init.sh
1749         * tests/test-closein.sh Use it.
1750
1751         yesno-tests: convert to init.sh
1752         * modules/yesno-tests (Files): Add init.sh.
1753         * tests/test-yesno.sh: Use it.
1754
1755         atexit-tests: ensure reliable exit status
1756         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1757         Reported by Bruno Haible.
1758
1759 2011-05-24  Bruno Haible  <bruno@clisp.org>
1760
1761         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1763         gl_PREREQ_STRERROR_R invocations from here...
1764         * modules/strerror_r-posix (configure.ac): ... to here.
1765
1766 2011-05-24  Eric Blake  <eblake@redhat.com>
1767
1768         strerror_r: fix missing header
1769         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1770
1771         strerror_r: fix AIX test failures
1772         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1773         ERANGE failure.
1774
1775         strerror_r: fix Solaris test failures
1776         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1777         failures.
1778         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1779
1780         strerror_r: enforce POSIX recommendations
1781         * lib/strerror_r.c (safe_copy): New helper method.
1782         (strerror_r): Guarantee a non-empty string.
1783         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1784         recent POSIX rulings and to match our strerror guarantees.
1785         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1786
1787 2011-05-24  Jim Meyering  <meyering@redhat.com>
1788
1789         test-perror2.c: avoid warning about unused variable
1790         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1791
1792 2011-05-24  Eric Blake  <eblake@redhat.com>
1793
1794         perror: avoid spurious test failure on HP-UX
1795         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1796
1797         tests: fix logic bug in init.sh
1798         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1799         shell.
1800
1801 2011-05-24  Jim Meyering  <meyering@redhat.com>
1802
1803         utimensat: do not reference an out-of-scope buffer
1804         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1805         declared in an inner scope, yet "times" would be dereferenced outside
1806         the scope in which "ts" was valid.
1807         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1808         of ts[2] "out/up", so that the use of aliased "times" (via
1809         "times = ts;") does not end up referencing an out-of-scope "ts"
1810
1811         opendir-safer.c: don't clobber errno; don't close negative FD
1812         * lib/opendir-safer.c (opendir_safer):
1813         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1814         file descriptor, and more importantly, don't clobber the
1815         offending errno value with EINVAL.  Before, upon failure
1816         of dup_safer, we would pass the negative file descriptor to
1817         fdopendir, which would clobber errno.
1818
1819 2011-05-23  Bruno Haible  <bruno@clisp.org>
1820
1821         idcache: Fix module description.
1822         * modules/idcache (Include): Set to "idcache.h".
1823
1824 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1825
1826         gnulib-tool: fix portability problem with MacOS sed
1827         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1828         before the "}".  Problem reported by Leo in
1829         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1830         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1831         sed_extract_condition1, sed_extract_condition2.
1832
1833 2011-05-23  Bruno Haible  <bruno@clisp.org>
1834
1835         hash: Simplify autoconf macro.
1836         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1837
1838 2011-05-23  Bruno Haible  <bruno@clisp.org>
1839
1840         getugroups: Fix module description.
1841         * modules/getugroups (Include): Set to "getugroups.h".
1842
1843 2011-05-23  Bruno Haible  <bruno@clisp.org>
1844
1845         linkat: Simplify autoconf macro.
1846         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1847
1848 2011-05-23  Bruno Haible  <bruno@clisp.org>
1849             Eric Blake  <eblake@redhat.com>
1850
1851         linkat, renameat: Update dependencies.
1852         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1853         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1854         symlinkat.
1855
1856 2011-05-23  Jim Meyering  <meyering@redhat.com>
1857
1858         maint.mk: more tight_scope improvements
1859         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1860         (_gl_TS_headers): Define only in if-0'd block.
1861         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1862         sometimes we must *not* use it.  Adjust uses accordingly.
1863         (sc_tight_scope): Use much simpler grep-based test to determine
1864         whether we skip this rule.
1865
1866         maint.mk: generalize/improve the tight-scope rule
1867         * top/maint.mk: Emit a warning when the test is skipped.
1868         (_gl_TS_dir): Add $(srcdir)/ prefix.
1869         (_gl_TS_function_match): Simplify, rather than trying
1870         to enumerate common types.  Otherwise, it would fail to match an
1871         "extern unsigned char const *" declaration in idutils.
1872         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1873         a way to support use of that type of macro.
1874         (_gl_TS_var_match): Simplify regexp.
1875         (_gl_TS_obj_files): New configurable variable.
1876         (_gl_TS_headers): Likewise.
1877
1878 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1879
1880         verify: fix bug when gnulib <assert.h> is also included
1881         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1882         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1883         Perhaps there's a better way, but this fixes the immediate problem.
1884         Problem reported by Bruno Haible in
1885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1886
1887 2011-05-22  Bruno Haible  <bruno@clisp.org>
1888
1889         xgetcwd: Simplify autoconf macro.
1890         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1891
1892 2011-05-22  Bruno Haible  <bruno@clisp.org>
1893
1894         New module 'mktime-internal'.
1895         * modules/mktime-internal: New file.
1896         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1897         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1898         mktime_internal as a C macro if libc has __mktime_internal.
1899         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1900         conditions.
1901         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1902
1903 2011-05-22  Bruno Haible  <bruno@clisp.org>
1904
1905         timegm: Correct mktime replacement statements.
1906         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1907         defining mktime as a C macro. This completes a 2009-07-28 commit.
1908
1909 2011-05-22  Bruno Haible  <bruno@clisp.org>
1910
1911         timegm: Simplify autoconf macro.
1912         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1913
1914 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         clock-time: change to LGPLv2+.
1917         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1918         BSD-like but we have no mark for that; this is good enough for now.
1919
1920 2011-05-21  Bruno Haible  <bruno@clisp.org>
1921
1922         strerror_r: Fix comments.
1923         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1924
1925 2011-05-21  Bruno Haible  <bruno@clisp.org>
1926
1927         relocatable-prog-wrapper: Fix possible link error.
1928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1929         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1930         (gl_FUNC_SETENV): ... to here.
1931         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1932         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1933
1934 2011-05-21  Bruno Haible  <bruno@clisp.org>
1935
1936         relocatable-prog-wrapper: Assume strerror() exists.
1937         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1938         m4/strerror.m4.
1939         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1940         * lib/relocwrapper.c: Remove mention of strerror module.
1941         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1942         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1943         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1944         C macro.
1945
1946 2011-05-21  Bruno Haible  <bruno@clisp.org>
1947
1948         select: Simplify replacement idiom.
1949         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1950         Win32 platforms.
1951         * lib/sys_select.in.h (select): Simplify accordingly.
1952         * modules/select (Depends-on): Likewise.
1953
1954 2011-05-21  Bruno Haible  <bruno@clisp.org>
1955
1956         mkdir-p: Simplify autoconf macro.
1957         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1958         gl_FUNC_LCHOWN.
1959
1960 2011-05-21  Eric Blake  <eblake@redhat.com>
1961
1962         strerror_r: avoid clobbering strerror on cygwin
1963         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1964         fall back instead to sys_errlist.
1965         * modules/strerror (configure.ac): Add witness.
1966         * tests/test-strerror_r.c (main): Enhance test.
1967         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1968         * tests/test-perror2.c (main): Free memory before exit.
1969
1970 2011-05-21  Bruno Haible  <bruno@clisp.org>
1971
1972         mkdtemp: Use gnulib naming conventions.
1973         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1974         * modules/mkdtemp (configure.ac): Update.
1975
1976 2011-05-20  Eric Blake  <eblake@redhat.com>
1977
1978         strerror_r: avoid corrupting errno on Solaris
1979         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1980         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1981
1982         strerror_r: avoid compiler warning
1983         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1984
1985         strerror_r: simplify AIX code
1986         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1987
1988         test-perror: avoid spurious failure on FreeBSD
1989         * modules/perror-tests (Depends-on): Add strerror, now that
1990         strerror_r no longer pulls it in.
1991
1992 2011-05-20  Bruno Haible  <bruno@clisp.org>
1993
1994         strerror_r-posix: Remove unused dependencies.
1995         * modules/strerror_r-posix (Depends-on): Remove strerror.
1996         Reported by Eric Blake.
1997
1998 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1999
2000         intprops: remove assumption about A|B representation
2001         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2002         is a valid integer if both A and B are.  Although this is true for
2003         all known practical hosts, the C standard doesn't guarantee it,
2004         and the code need not assume it.  Also, this change may work around
2005         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2007
2008 2011-05-20  Eric Blake  <eblake@redhat.com>
2009
2010         perror: work around FreeBSD bug
2011         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2012         is broken.  Move AC_LIBOBJ...
2013         * modules/perror (configure.ac): Here.
2014         * doc/posix-functions/perror.texi (perror): Document this.
2015         * tests/test-perror2.c (main): Enhance test.
2016
2017         test-perror: check for strerror interactions
2018         * tests/macros.h (STREQ): Add macro.
2019         * modules/perror-tests (Files): Add second test.
2020         * tests/test-perror2.c (main): New file.
2021         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2022
2023         test-perror: rewrite to use init script
2024         * modules/perror-tests (Files): Add init.sh.
2025         * tests/test-perror.sh: Use temporary directory.
2026
2027 2011-05-20  Jim Meyering  <meyering@redhat.com>
2028
2029         maint: replace misused "a" with "an"
2030         * doc/intprops.texi: "a integer"
2031         * doc/regex.texi: "a explanation"
2032         * lib/alignof.h: "a object"
2033         * lib/argmatch.h: "a explanation"
2034         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2035         * lib/stdint.in.h: "a integer"
2036         * lib/userspec.c: "a owner"
2037         * doc/gnulib.texi: Fix "a idea", and reword.
2038
2039 2011-05-19  Jim Meyering  <meyering@redhat.com>
2040
2041         maint: correct misuse of "a" and "an"
2042         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2043         * lib/argp-help.c: "an docum...": s/an/a/
2044         * lib/argp-parse.c: "An vector": s/An/A/
2045         * lib/execute.c: "an native": s/an/a/
2046         * lib/spawn-pipe.c: Likewise.
2047         * lib/gc.h: "an Gc_rc": s/an/a/
2048         * lib/unigbrk.in.h: "an grapheme": s/an/a/
2049         * lib/fts.c: "an stat.st_dev": s/an/a/
2050
2051 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2052
2053         intprops-tests: work around HP-UX 11.23 cc bug with constants
2054         * tests/test-intprops.c (VERIFY): New macro.
2055         (main): Use it, instead of verify, to work around the compiler bug; see
2056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2057
2058         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2059         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2060         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2061         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2062         (_GL_REMAINDER_OVERFLOW): Use it.
2063
2064         intprops-tests: revert unsigned part of previous change
2065         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2066         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2067         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2069
2070 2011-05-19  Bruno Haible  <bruno@clisp.org>
2071
2072         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2073         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2074         strerror_r() returned without filling the buffer.
2075         Reported by Eric Blake.
2076
2077 2011-05-19  Eric Blake  <eblake@redhat.com>
2078
2079         strerror_r: guarantee unchanged errno
2080         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2081         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2082         failure.
2083         * tests/test-strerror_r.c (main): Enhance test.
2084
2085 2011-05-19  Bruno Haible  <bruno@clisp.org>
2086
2087         strerror_r: Reorder #if blocks.
2088         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2089         for consistency with the previous commit.
2090
2091 2011-05-19  Bruno Haible  <bruno@clisp.org>
2092
2093         perror: Avoid clobbering the strerror buffer when possible.
2094         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2095         * lib/strerror.c: Include it.
2096         * modules/strerror (Files): Add lib/strerror-impl.h.
2097         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2098         (my_strerror): New function, defined through lib/strerror-impl.h.
2099         (perror): Use it instead of strerror.
2100         * modules/perror (Files): Add lib/strerror-impl.h.
2101         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2102
2103 2011-05-19  Eric Blake  <eblake@redhat.com>
2104
2105         strerror_r: fix on newer cygwin
2106         * lib/strerror_r.c (strerror_r): Cygwin now has
2107         __xpg_strerror_r, use it.
2108
2109 2011-05-19  Bruno Haible  <bruno@clisp.org>
2110
2111         strerror_r: Avoid clobbering the strerror buffer when possible.
2112         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2113         (sys_nerr, sys_errlist): New declarations.
2114         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2115         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2116         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2117
2118 2011-05-19  Bruno Haible  <bruno@clisp.org>
2119
2120         strerror_r: Fix test failure on mingw.
2121         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2122         EXTEND_STRERROR_R.
2123         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2124         macros from errno.in.h instead.
2125
2126 2011-05-19  Eric Blake  <eblake@redhat.com>
2127
2128         strerror: relax test for Solaris
2129         * tests/test-strerror.c (main): Permit Solaris behavior.
2130         * tests/test-strerror_r.c (main): Likewise.
2131
2132         strerror: enforce POSIX ruling on strerror(0)
2133         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2134         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2135         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2136         * doc/posix-functions/strerror.texi (strerror): Document it.
2137         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2138         * tests/test-strerror.c (main): Strengthen test.
2139         * tests/test-strerror_r.c (main): Likewise.
2140
2141 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         intprop-tests: port to older and more-pedantic compilers
2144         * modules/intprops-tests (Files): Add tests/macros.h.
2145         * tests/test-intprops.c: Include macros.h.
2146         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2147         it's no longer documented to expand to an integer constant expression.
2148         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2149         argument is floating point, as it's no longer documented to expand
2150         to an integer constant expression in that case.
2151         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2152         compiler bugs reported by Bruno Haible.  See
2153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2154         (U0, U1): New constants, to work around the same bugs.  Also,
2155         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2156
2157         intprops: work around C compiler bugs
2158         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2159         bug in Sun C 5.11 2010/08/13 and other compilers; see
2160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2161
2162         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2163         * doc/intprops.texi (Integer Type Determination): Fix
2164         documentation for TYPE_IS_INTEGER: it returns an constant
2165         expression, not an integer constant expression.  Fix doc for
2166         TYPE_SIGNED: it returns an integer constant expression only if its
2167         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2168         hardly worth documented that way....)
2169
2170 2011-05-18  Bruno Haible  <bruno@clisp.org>
2171
2172         strerror_r: Avoid clobbering the strerror buffer when possible.
2173         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2174         Handle gnulib defined errno values here. When strerror() returns NULL
2175         or an empty string, return EINVAL.
2176         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2177         gnulib defined errno values here.
2178         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2179
2180 2011-05-18  Eric Blake  <eblake@redhat.com>
2181
2182         fnmatch: avoid compiler warning
2183         * lib/fnmatch_loop.c (FCT): Use correct type.
2184         Reported by Matthias Bolte.
2185
2186 2011-05-13  Jim Meyering  <meyering@redhat.com>
2187
2188         maint.mk: three new prohibit_<HDR>_without_use rules
2189         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2190         (sc_prohibit_stdio-safer_without_use): Likewise.
2191         (sc_prohibit_xfreopen_without_use): Likewise.
2192
2193 2011-05-17  Jim Meyering  <meyering@redhat.com>
2194
2195         announce-gen: fail if the NEWS delta is empty
2196         If there's nothing noteworthy in NEWS, then either you forgot
2197         or you shouldn't be releasing.
2198         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2199
2200 2011-05-17  Pádraig Brady <P@draigBrady.com>
2201
2202         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2203         reserved symbols starting with double underscore from the check.
2204
2205 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2206
2207         intprops: add doc
2208         * doc/intprops.texi: New file, documenting intprops.
2209         * doc/gnulib.texi (Particular Modules): Include it.
2210
2211         verify: add doc to gnulib manual and fix example
2212         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2213         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2214         (Compile-time Assertions): Fix example so it can't overflow.
2215
2216 2011-05-17  Jim Meyering  <meyering@redhat.com>
2217
2218         warnings.m4: don't usurp save_CPPFLAGS variable name
2219         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2220
2221         doc: fix typo
2222         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2223
2224 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2225             Bruno Haible  <bruno@clisp.org>
2226
2227         doc: Tweak recent change.
2228         * README (Portability guidelines): Tweak new text.
2229         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2230         Interix 6.1.
2231
2232 2011-05-16  Eric Blake  <eblake@redhat.com>
2233
2234         inttypes: avoid autoconf warning
2235         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2236         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2237
2238 2011-05-16  Sam Steingold <sds@gnu.org>
2239         and Eric Blake  <eblake@redhat.com>
2240
2241         vc-list-files: accept multiple directory operands
2242         * build-aux/vc-list-files: Iterate over all remaining operands.
2243
2244 2011-05-16  Bruno Haible  <bruno@clisp.org>
2245
2246         Fix confusion regarding deprecated modules.
2247         * modules/calloc (Status, Notice): Mark module as deprecated, not
2248         obsolete.
2249         * modules/fnmatch-posix (Status, Notice): Likewise.
2250         * modules/getdate (Status, Notice): Likewise.
2251         * modules/getopt (Status, Notice): Likewise.
2252         * modules/malloc (Status, Notice): Likewise.
2253         * modules/pipe (Status, Notice): Likewise.
2254         * modules/realloc (Status, Notice): Likewise.
2255         * modules/rename-dest-slash (Status, Notice): Likewise.
2256         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2257         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2258         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2259         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2260         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2261
2262 2011-05-16  Bruno Haible  <bruno@clisp.org>
2263
2264         doc: List the target platforms.
2265         * doc/gnulib-intro.texi (Target Platforms): New section.
2266         * doc/gnulib.texi (Introduction): Update menu.
2267         * README (Portability guidelines): Refer to the new section. Update
2268         statement about oldest supported environment. Remove rationale why
2269         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2270         unportable C89 function.
2271         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2272         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2273
2274 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2275
2276         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2277
2278 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2279
2280         intprops-tests: new module
2281         * modules/intprops-tests, tests/test-intprops.c: New files.
2282
2283         intprops: add safe, portable integer overflow checking
2284         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2285         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2286         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2287         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2288         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2289         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2290         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2291         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2292         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2293         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2294         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2295
2296 2011-05-12  James Youngman  <jay@gnu.org>
2297
2298         Add a test for glibc's Bugzilla bug #12378.
2299         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2300         doesn't allow the literal matching of a lone "[" (which is
2301         required by POSIX).
2302         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2303
2304 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2305
2306         Sync glibc change fixing Bugzilla bug #12378.
2307         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2308         beginning and fall back to matching as normal character if the
2309         string ends before the matching ']' is found.  This is what POSIX
2310         requires.
2311
2312 2011-05-13  Eric Blake  <eblake@redhat.com>
2313
2314         getcwd-lgpl: relax test for FreeBSD
2315         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2316         issue.
2317         * tests/test-getcwd-lgpl.c (main): Relax test.
2318         Reported by Matthias Bolte.
2319
2320 2011-05-11  Eric Blake  <eblake@redhat.com>
2321
2322         test-fflush: silence compiler warning
2323         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2324
2325 2011-05-11  Bruno Haible  <bruno@clisp.org>
2326
2327         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2328         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2329         * modules/canonicalize (Depends-on): Add 'nocrash'.
2330         * modules/canonicalize-lgpl (Depends-on): Likewise.
2331         * doc/posix-functions/realpath.texi: Update platforms list.
2332         Reported by Ryan Schmidt <ryandesign@macports.org>.
2333
2334 2011-05-11  Bruno Haible  <bruno@clisp.org>
2335
2336         group-member: Declare function in <unistd.h>.
2337         * lib/unistd.in.h (group_member): New declaration.
2338         * lib/group-member.h: Remove file.
2339         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2340         * tests/test-unistd-c++.cc: Check signature of group_member.
2341         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2342         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2343         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2344         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2345         HAVE_GROUP_MEMBER.
2346         * modules/group-member (Files): Remove lib/group-member.h.
2347         (Depends-on): Add unistd. Specify conditions.
2348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2349         (Include): Change to <unistd.h>.
2350         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2351         HAVE_GROUP_MEMBER.
2352         * NEWS: Mention the change.
2353         * lib/euidaccess.c: Don't include group-member.h.
2354
2355 2011-05-11  Bruno Haible  <bruno@clisp.org>
2356
2357         group-member: Document module.
2358         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2359         module.
2360
2361 2011-05-11  Bruno Haible  <bruno@clisp.org>
2362
2363         fclose: Fix mistake earlier today.
2364         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2365
2366 2011-05-11  Eric Blake  <eblake@redhat.com>
2367
2368         fclose: preserve fflush errors
2369         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2370         Reported by Jim Meyering.
2371
2372         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2373         * build-aux/bootstrap (check_versions): When no specific version
2374         is required, merely check that the app produces an exit status
2375         that indicates its existence.
2376
2377         maint.mk: drop redundant check
2378         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2379         the same but better.
2380
2381 2011-05-11  Bruno Haible  <bruno@clisp.org>
2382
2383         fclose: Fix possible link error.
2384         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2385         unregister_shadow_fd. Improve comments.
2386         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2387         Eric Blake.
2388
2389 2011-05-11  Jim Meyering  <meyering@redhat.com>
2390
2391         maint.mk: improve "can not" detection and generalize rule name
2392         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2393         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2394         Use the same technique as in sc_prohibit_doubled_word, so that
2395         we recognize "can not" also when the words are separated by a newline.
2396         Suggested by Eric Blake.
2397         (perl_filename_lineno_text_): Define.  Factored out of...
2398         (prohibit_doubled_word_): ...here.  Use the new definition.
2399         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2400         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2401         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2402
2403 2011-05-10  Eric Blake  <eblake@redhat.com>
2404
2405         fclose: avoid double close race when possible
2406         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2407         all but WINDOWS_SOCKETS.
2408
2409 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2410
2411         openat: correct new comment
2412         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2413
2414 2011-05-10  Jim Meyering  <meyering@redhat.com>
2415
2416         openat: add comments
2417         * lib/openat-proc.c (openat_proc_name): Add comments,
2418         mostly from Eric Blake.
2419
2420 2011-05-09  Eric Blake  <eblake@redhat.com>
2421
2422         openat: reduce syscalls in first probe of /proc
2423         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2424         be a directory.  Simplify the probe for .. bugs.
2425         * modules/openat (Depends-on): Drop same-inode.
2426         Reported by Bastien ROUCARIES.
2427
2428 2011-05-09  Jim Meyering  <meyering@redhat.com>
2429
2430         maint.mk: change semantics/name of tight_scope variables
2431         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2432         Rename variables to align with semantics that make them more useful.
2433
2434         maint.mk: tweak new rule's name not to impinge
2435         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2436         (sc_tight_scope): Use new rule name rather than $@-0.
2437
2438         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2439         * top/maint.mk (sc_tight_scope): New rule.
2440         (sc_tight_scope-0): New rule, ifdef'd out.
2441         (_gl_TS_dir): Default.
2442         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2443         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2444
2445 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2446
2447         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2448         Haible <bruno@clisp.org>.
2449
2450 2011-05-08  Bruno Haible  <bruno@clisp.org>
2451
2452         Comments.
2453         * m4/isnanf.m4: Add comment.
2454         * m4/isnanl.m4: Likewise.
2455
2456 2011-05-08  Bruno Haible  <bruno@clisp.org>
2457
2458         glob: Remove obsolete macro.
2459         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2460
2461 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         intprops: Sun C 5.11 supports __typeof__
2464         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2465         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2466         which is new.
2467         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2468
2469         intprops: switch to usual gnulib indenting and naming
2470         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2471         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2472
2473         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2474
2475 2011-05-08  Jim Meyering  <meyering@redhat.com>
2476
2477         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2478         * top/maint.mk (release-prep): Use make's --no-print-directory
2479         option when generating the announcement.  This eliminates the
2480         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2481         generated announcement template.
2482
2483 2011-05-08  Bruno Haible  <bruno@clisp.org>
2484
2485         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2486         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2487         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2488
2489 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2490
2491         ignore-value, verify: Omit include files from lib_SOURCES.
2492         * modules/ignore-value, modules/verify (Makefile.am):
2493         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2494         that leads Automake to duplicate use of am__objects_... variables
2495         in Makefile.in.  See
2496         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2497
2498 2011-05-07  Bruno Haible  <bruno@clisp.org>
2499
2500         fclose: Simplify autoconf macro.
2501         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2502         defined.
2503
2504 2011-05-07  Bruno Haible  <bruno@clisp.org>
2505
2506         canonicalize-lgpl: Fix autoconf macro ordering bug.
2507         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2508         gl_STDLIB_H_DEFAULTS.
2509
2510 2011-05-06  Eric Blake  <eblake@redhat.com>
2511
2512         maintainer-makefile: make sc_po_check easier to tune
2513         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2514         to probe for strings, such as an alternate location for gnulib.
2515
2516         fclose: guarantee behavior on seekable stdin
2517         * modules/fclose (Depends-on): Add fflush.
2518         * doc/posix-functions/fclose.texi (fclose): Document this.
2519         * tests/test-fclose.c (main): Make test for this unconditional.
2520
2521 2011-05-06  Bruno Haible  <bruno@clisp.org>
2522
2523         fflush, fpurge: Relicense under LGPLv2+.
2524         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2525         * modules/fpurge (License): Likewise.
2526         With permission from Eric Blake and Jim Meyering.
2527         Suggested by Eric Blake.
2528
2529 2011-05-06  Karl Berry  <karl@gnu.org>
2530
2531         * MODULES.html.sh (func_all_modules): remove exit.
2532
2533 2011-05-06  Jim Meyering  <meyering@redhat.com>
2534
2535         maint.mk: use info-gnu@ as the default only for a stable release
2536         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2537         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2538         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2540
2541 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2542
2543         assert-h: new module, which supports C1X-style static_assert
2544         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2545         * lib/verify.h: Revamp so that this can be copied into assert.h,
2546         while retaining the ability to use it standalone as before.
2547         Rename private identifiers so as not to encroach on the
2548         standard C namespace, since this is now used by assert.h.
2549         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2550         the old verify_true.
2551         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2552         the old verify_true.  Use _GL_VERIFY_TYPE.
2553         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2554         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2555         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2556         defined when this file is copied into the replacement assert.h.
2557         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2558         and _Static_assert is not built in.
2559         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2560         defined, and use the new macros mentioned above.
2561         * doc/posix-headers/assert.texi: Document this.
2562
2563 2011-05-05  Bruno Haible  <bruno@clisp.org>
2564
2565         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2566         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2567         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2568         gl_REPLACE_FCLOSE here.
2569         * modules/fflush (Depends-on): Remove fclose.
2570         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2571         combination with module 'fclose'.
2572
2573 2011-05-05  Bruno Haible  <bruno@clisp.org>
2574
2575         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2576         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2577         gl_FUNC_FFLUSH.
2578         (gl_FUNC_FFLUSH): Use it.
2579         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2580         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2581         gl_REPLACE_FSEEKO here.
2582
2583 2011-05-05  Bruno Haible  <bruno@clisp.org>
2584
2585         tzset: Relicense under LGPL.
2586         * modules/tzset (License): Change to LGPL.
2587         No agreement needed; it's a no-op.
2588
2589         strtoimax, strtoumax: Relicense under LGPL.
2590         * modules/strtoimax (License): Change to LGPL.
2591         * modules/strtoumax (License): Likewise.
2592         With permission from Jim Meyering, Paul Eggert:
2593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2595
2596         getgroups: Relicense under LGPL.
2597         * modules/getgroups (License): Change to LGPL.
2598         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2602
2603         nanosleep: Relicense under LGPL.
2604         * modules/nanosleep (License): Change to LGPL.
2605         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2606         Haible:
2607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2611
2612         futimens: Relicense under LGPL.
2613         * modules/futimens (License): Change to LGPL.
2614         With permission from Eric Blake:
2615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2616
2617         fflush: Relicense under LGPL.
2618         * modules/fflush (License): Change to LGPL.
2619         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2623
2624         tmpfile: Relicense under LGPL.
2625         * modules/tmpfile (License): Change to LGPL.
2626         With permission from Ben Pfaff:
2627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2628
2629         isfinite: Relicense under LGPL.
2630         * modules/isfinite (License): Change to LGPL.
2631         With permission from Ben Pfaff, Bruno Haible:
2632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2634
2635         acosl..tanl: Relicense under LGPL.
2636         * modules/acosl (License): Change to LGPL.
2637         * modules/asinl (License): Likewise.
2638         * modules/atanl (License): Likewise.
2639         * modules/cosl (License): Likewise.
2640         * modules/expl (License): Likewise.
2641         * modules/logl (License): Likewise.
2642         * modules/sinl (License): Likewise.
2643         * modules/sqrtl (License): Likewise.
2644         * modules/tanl (License): Likewise.
2645         Source code originally from glibc and Paolo Bonzini. Agreements:
2646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2648
2649 2011-05-05  Bruno Haible  <bruno@clisp.org>
2650
2651         signal: Define sighandler_t.
2652         * lib/signal.in.h (sighandler_t): New type.
2653         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2654         whether sighandler_t is defined.
2655         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2656         * modules/signal (Depends-on): Add extensions.
2657         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2658         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2659         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2660
2661 2011-05-05  Eric Blake  <eblake@redhat.com>
2662
2663         maint: remove useless REPLACE_*_H macros
2664         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2665         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2666         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2667         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2668         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2669         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2670         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2671         * m4/btowc.m4: Update callers.
2672         * m4/dirfd.m4: Likewise.
2673         * m4/duplocale.m4: Likewise.
2674         * m4/fchdir.m4: Likewise.
2675         * m4/fdopendir.m4: Likewise.
2676         * m4/inet_ntop.m4: Likewise.
2677         * m4/inet_pton.m4: Likewise.
2678         * m4/ioctl.m4: Likewise.
2679         * m4/mbrlen.m4: Likewise.
2680         * m4/mbrtowc.m4: Likewise.
2681         * m4/mbsinit.m4: Likewise.
2682         * m4/mbsnrtowcs.m4: Likewise.
2683         * m4/mbsrtowcs.m4: Likewise.
2684         * m4/poll.m4: Likewise.
2685         * m4/setlocale.m4: Likewise.
2686         * m4/wcrtomb.m4: Likewise.
2687         * m4/wcsnrtombs.m4: Likewise.
2688         * m4/wcsrtombs.m4: Likewise.
2689         * m4/wctob.m4: Likewise.
2690         * m4/wcwidth.m4: Likewise.
2691         * modules/posix_spawn: Likewise.
2692         * modules/posix_spawn_file_actions_addclose: Likewise.
2693         * modules/posix_spawn_file_actions_adddup2: Likewise.
2694         * modules/posix_spawn_file_actions_addopen: Likewise.
2695         * modules/posix_spawn_file_actions_destroy: Likewise.
2696         * modules/posix_spawn_file_actions_init: Likewise.
2697         * modules/posix_spawnattr_destroy: Likewise.
2698         * modules/posix_spawnattr_getflags: Likewise.
2699         * modules/posix_spawnattr_getpgroup: Likewise.
2700         * modules/posix_spawnattr_getschedparam: Likewise.
2701         * modules/posix_spawnattr_getschedpolicy: Likewise.
2702         * modules/posix_spawnattr_getsigdefault: Likewise.
2703         * modules/posix_spawnattr_getsigmask: Likewise.
2704         * modules/posix_spawnattr_init: Likewise.
2705         * modules/posix_spawnattr_setflags: Likewise.
2706         * modules/posix_spawnattr_setpgroup: Likewise.
2707         * modules/posix_spawnattr_setschedparam: Likewise.
2708         * modules/posix_spawnattr_setschedpolicy: Likewise.
2709         * modules/posix_spawnattr_setsigdefault: Likewise.
2710         * modules/posix_spawnattr_setsigmask: Likewise.
2711         * modules/posix_spawnp: Likewise.
2712
2713 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2714
2715         Add option to do-release-commit-and-tag to specify branch.
2716         * build-aux/do-release-commit-and-tag: Add --branch.
2717
2718 2011-05-03  Bruno Haible  <bruno@clisp.org>
2719
2720         Avoid unnecessary compilation units, through conditional dependencies.
2721         * modules/accept (Depends-on): Add conditions to the dependencies.
2722         * modules/acosl (Depends-on): Likewise.
2723         * modules/argz (Depends-on): Likewise.
2724         * modules/asinl (Depends-on): Likewise.
2725         * modules/atanl (Depends-on): Likewise.
2726         * modules/atoll (Depends-on): Likewise.
2727         * modules/bind (Depends-on): Likewise.
2728         * modules/btowc (Depends-on): Likewise.
2729         * modules/canonicalize-lgpl (Depends-on): Likewise.
2730         * modules/ceil (Depends-on): Likewise.
2731         * modules/ceilf (Depends-on): Likewise.
2732         * modules/ceill (Depends-on): Likewise.
2733         * modules/chdir-long (Depends-on): Likewise.
2734         * modules/chown (Depends-on): Likewise.
2735         * modules/close (Depends-on): Likewise.
2736         * modules/connect (Depends-on): Likewise.
2737         * modules/cosl (Depends-on): Likewise.
2738         * modules/dirfd (Depends-on): Likewise.
2739         * modules/dprintf (Depends-on): Likewise.
2740         * modules/dprintf-posix (Depends-on): Likewise.
2741         * modules/error (Depends-on): Likewise.
2742         * modules/euidaccess (Depends-on): Likewise.
2743         * modules/expl (Depends-on): Likewise.
2744         * modules/faccessat (Depends-on): Likewise.
2745         * modules/fchdir (Depends-on): Likewise.
2746         * modules/fclose (Depends-on): Likewise.
2747         * modules/fcntl (Depends-on): Likewise.
2748         * modules/fdopendir (Depends-on): Likewise.
2749         * modules/fflush (Depends-on): Likewise.
2750         * modules/floor (Depends-on): Likewise.
2751         * modules/floorf (Depends-on): Likewise.
2752         * modules/floorl (Depends-on): Likewise.
2753         * modules/fnmatch (Depends-on): Likewise.
2754         * modules/fopen (Depends-on): Likewise.
2755         * modules/fprintf-posix (Depends-on): Likewise.
2756         * modules/frexp (Depends-on): Likewise.
2757         * modules/frexp-nolibm (Depends-on): Likewise.
2758         * modules/frexpl (Depends-on): Likewise.
2759         * modules/frexpl-nolibm (Depends-on): Likewise.
2760         * modules/fseek (Depends-on): Likewise.
2761         * modules/fsusage (Depends-on): Likewise.
2762         * modules/ftell (Depends-on): Likewise.
2763         * modules/ftello (Depends-on): Likewise.
2764         * modules/futimens (Depends-on): Likewise.
2765         * modules/getcwd (Depends-on): Likewise.
2766         * modules/getcwd-lgpl (Depends-on): Likewise.
2767         * modules/getdelim (Depends-on): Likewise.
2768         * modules/getdomainname (Depends-on): Likewise.
2769         * modules/getgroups (Depends-on): Likewise.
2770         * modules/gethostname (Depends-on): Likewise.
2771         * modules/getline (Depends-on): Likewise.
2772         * modules/getlogin_r (Depends-on): Likewise.
2773         * modules/getopt-posix (Depends-on): Likewise.
2774         * modules/getpeername (Depends-on): Likewise.
2775         * modules/getsockname (Depends-on): Likewise.
2776         * modules/getsockopt (Depends-on): Likewise.
2777         * modules/getsubopt (Depends-on): Likewise.
2778         * modules/getusershell (Depends-on): Likewise.
2779         * modules/glob (Depends-on): Likewise.
2780         * modules/grantpt (Depends-on): Likewise.
2781         * modules/iconv_open (Depends-on): Likewise.
2782         * modules/iconv_open-utf (Depends-on): Likewise.
2783         * modules/inet_ntop (Depends-on): Likewise.
2784         * modules/inet_pton (Depends-on): Likewise.
2785         * modules/ioctl (Depends-on): Likewise.
2786         * modules/isapipe (Depends-on): Likewise.
2787         * modules/isfinite (Depends-on): Likewise.
2788         * modules/isinf (Depends-on): Likewise.
2789         * modules/lchown (Depends-on): Likewise.
2790         * modules/ldexpl (Depends-on): Likewise.
2791         * modules/link (Depends-on): Likewise.
2792         * modules/linkat (Depends-on): Likewise.
2793         * modules/listen (Depends-on): Likewise.
2794         * modules/logl (Depends-on): Likewise.
2795         * modules/lstat (Depends-on): Likewise.
2796         * modules/mbrlen (Depends-on): Likewise.
2797         * modules/mbrtowc (Depends-on): Likewise.
2798         * modules/mbsinit (Depends-on): Likewise.
2799         * modules/mbsnrtowcs (Depends-on): Likewise.
2800         * modules/mbsrtowcs (Depends-on): Likewise.
2801         * modules/mbtowc (Depends-on): Likewise.
2802         * modules/memcmp (Depends-on): Likewise.
2803         * modules/mkdir (Depends-on): Likewise.
2804         * modules/mkdtemp (Depends-on): Likewise.
2805         * modules/mkfifo (Depends-on): Likewise.
2806         * modules/mkfifoat (Depends-on): Likewise.
2807         * modules/mknod (Depends-on): Likewise.
2808         * modules/mkostemp (Depends-on): Likewise.
2809         * modules/mkostemps (Depends-on): Likewise.
2810         * modules/mkstemp (Depends-on): Likewise.
2811         * modules/mkstemps (Depends-on): Likewise.
2812         * modules/mktime (Depends-on): Likewise.
2813         * modules/nanosleep (Depends-on): Likewise.
2814         * modules/open (Depends-on): Likewise.
2815         * modules/openat (Depends-on): Likewise.
2816         * modules/perror (Depends-on): Likewise.
2817         * modules/poll (Depends-on): Likewise.
2818         * modules/popen (Depends-on): Likewise.
2819         * modules/posix_spawn (Depends-on): Likewise.
2820         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2821         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2822         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2823         * modules/posix_spawnp (Depends-on): Likewise.
2824         * modules/pread (Depends-on): Likewise.
2825         * modules/printf-posix (Depends-on): Likewise.
2826         * modules/ptsname (Depends-on): Likewise.
2827         * modules/putenv (Depends-on): Likewise.
2828         * modules/pwrite (Depends-on): Likewise.
2829         * modules/readline (Depends-on): Likewise.
2830         * modules/readlink (Depends-on): Likewise.
2831         * modules/readlinkat (Depends-on): Likewise.
2832         * modules/recv (Depends-on): Likewise.
2833         * modules/recvfrom (Depends-on): Likewise.
2834         * modules/regex (Depends-on): Likewise.
2835         * modules/remove (Depends-on): Likewise.
2836         * modules/rename (Depends-on): Likewise.
2837         * modules/renameat (Depends-on): Likewise.
2838         * modules/rmdir (Depends-on): Likewise.
2839         * modules/round (Depends-on): Likewise.
2840         * modules/roundf (Depends-on): Likewise.
2841         * modules/roundl (Depends-on): Likewise.
2842         * modules/rpmatch (Depends-on): Likewise.
2843         * modules/select (Depends-on): Likewise.
2844         * modules/send (Depends-on): Likewise.
2845         * modules/sendto (Depends-on): Likewise.
2846         * modules/setenv (Depends-on): Likewise.
2847         * modules/setlocale (Depends-on): Likewise.
2848         * modules/setsockopt (Depends-on): Likewise.
2849         * modules/shutdown (Depends-on): Likewise.
2850         * modules/sigaction (Depends-on): Likewise.
2851         * modules/signbit (Depends-on): Likewise.
2852         * modules/sigprocmask (Depends-on): Likewise.
2853         * modules/sinl (Depends-on): Likewise.
2854         * modules/sleep (Depends-on): Likewise.
2855         * modules/snprintf (Depends-on): Likewise.
2856         * modules/snprintf-posix (Depends-on): Likewise.
2857         * modules/socket (Depends-on): Likewise.
2858         * modules/sprintf-posix (Depends-on): Likewise.
2859         * modules/sqrtl (Depends-on): Likewise.
2860         * modules/stat (Depends-on): Likewise.
2861         * modules/strchrnul (Depends-on): Likewise.
2862         * modules/strdup-posix (Depends-on): Likewise.
2863         * modules/strerror (Depends-on): Likewise.
2864         * modules/strerror_r-posix (Depends-on): Likewise.
2865         * modules/strndup (Depends-on): Likewise.
2866         * modules/strnlen (Depends-on): Likewise.
2867         * modules/strptime (Depends-on): Likewise.
2868         * modules/strsep (Depends-on): Likewise.
2869         * modules/strsignal (Depends-on): Likewise.
2870         * modules/strstr-simple (Depends-on): Likewise.
2871         * modules/strtod (Depends-on): Likewise.
2872         * modules/strtoimax (Depends-on): Likewise.
2873         * modules/strtok_r (Depends-on): Likewise.
2874         * modules/strtoumax (Depends-on): Likewise.
2875         * modules/symlink (Depends-on): Likewise.
2876         * modules/symlinkat (Depends-on): Likewise.
2877         * modules/tanl (Depends-on): Likewise.
2878         * modules/tcgetsid (Depends-on): Likewise.
2879         * modules/tmpfile (Depends-on): Likewise.
2880         * modules/trunc (Depends-on): Likewise.
2881         * modules/truncf (Depends-on): Likewise.
2882         * modules/truncl (Depends-on): Likewise.
2883         * modules/uname (Depends-on): Likewise.
2884         * modules/unlink (Depends-on): Likewise.
2885         * modules/unlockpt (Depends-on): Likewise.
2886         * modules/unsetenv (Depends-on): Likewise.
2887         * modules/usleep (Depends-on): Likewise.
2888         * modules/utimensat (Depends-on): Likewise.
2889         * modules/vasprintf (Depends-on): Likewise.
2890         * modules/vdprintf (Depends-on): Likewise.
2891         * modules/vdprintf-posix (Depends-on): Likewise.
2892         * modules/vfprintf-posix (Depends-on): Likewise.
2893         * modules/vprintf-posix (Depends-on): Likewise.
2894         * modules/vsnprintf (Depends-on): Likewise.
2895         * modules/vsnprintf-posix (Depends-on): Likewise.
2896         * modules/vsprintf-posix (Depends-on): Likewise.
2897         * modules/wcrtomb (Depends-on): Likewise.
2898         * modules/wcscasecmp (Depends-on): Likewise.
2899         * modules/wcscspn (Depends-on): Likewise.
2900         * modules/wcsdup (Depends-on): Likewise.
2901         * modules/wcsncasecmp (Depends-on): Likewise.
2902         * modules/wcsnrtombs (Depends-on): Likewise.
2903         * modules/wcspbrk (Depends-on): Likewise.
2904         * modules/wcsrtombs (Depends-on): Likewise.
2905         * modules/wcsspn (Depends-on): Likewise.
2906         * modules/wcsstr (Depends-on): Likewise.
2907         * modules/wcstok (Depends-on): Likewise.
2908         * modules/wcswidth (Depends-on): Likewise.
2909         * modules/wctob (Depends-on): Likewise.
2910         * modules/wctomb (Depends-on): Likewise.
2911         * modules/wctype (Depends-on): Likewise.
2912         * modules/wcwidth (Depends-on): Likewise.
2913         * modules/write (Depends-on): Likewise.
2914
2915 2011-05-03  Bruno Haible  <bruno@clisp.org>
2916
2917         Support for conditional dependencies.
2918         * doc/gnulib.texi (Module description): Document the syntax of
2919         conditional dependencies.
2920         * gnulib-tool: New option --conditional-dependencies.
2921         (func_usage): Document it.
2922         (cond_dependencies): New variable.
2923         (func_get_automake_snippet_conditional,
2924         func_get_automake_snippet_unconditional): New functions, extracted from
2925         func_get_automake_snippet.
2926         (func_get_automake_snippet): Use them.
2927         (sed_first_32_chars): New variable.
2928         (func_module_shellfunc_name): New function.
2929         (func_module_shellvar_name): New function.
2930         (func_module_conditional_name): New function.
2931         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2932         func_cond_module_condition): New functions.
2933         (func_modules_transitive_closure): Add support for conditional
2934         dependencies.
2935         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2936         conditional automake snippet in an automake conditional.
2937         (func_emit_autoconf_snippets): Emit shell functions that contain the
2938         code for conditional modules.
2939         (func_import, func_create_testdir): Update specification.
2940
2941 2011-05-03  Eric Blake  <eblake@redhat.com>
2942
2943         test-getaddrinfo: report error information
2944         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2945
2946 2011-05-03  Jim Meyering  <meyering@redhat.com>
2947
2948         bootstrap: avoid build failure when $GZIP is set
2949         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2950         program name.  If defined at all, it is supposed to list gzip options.
2951         Reported by Alan Curry in http://debbugs.gnu.org/8609
2952
2953 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2954
2955         readme-release: new module with release instructions
2956         * modules/readme-release: New module.
2957         * top/README-release: New file, from coreutils, grep, diffutils.
2958         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2959
2960 2011-05-02  Eric Blake  <eblake@redhat.com>
2961
2962         fflush: also replace fclose when fixing fflush
2963         * modules/fflush (Depends-on): Add fclose.
2964         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2965         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2966         memstreams with no backing fd.
2967         * doc/posix-functions/fclose.texi (fclose): Document the use of
2968         fflush module to fix the bug.
2969         * tests/test-fclose.c (main): Relax test when fclose is used in
2970         isolation.
2971
2972         fclose: add some tests
2973         * modules/fclose-tests: New test module.
2974         * tests/test-fclose.c: New file.
2975         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2976
2977         fclose: reduced dependencies
2978         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2979         simpler lseek.
2980         * lib/fclose.c (rpl_fclose): Likewise.
2981         Reported by Simon Josefsson.
2982
2983         exit: drop remaining clients
2984         * modules/argmatch (Depends-on): Replace exit with stdlib.
2985         * modules/copy-file (Depends-on): Likewise.
2986         * modules/execute (Depends-on): Likewise.
2987         * modules/exitfail (Depends-on): Likewise.
2988         * modules/obstack (Depends-on): Likewise.
2989         * modules/pagealign_alloc (Depends-on): Likewise.
2990         * modules/pipe-filter-gi (Depends-on): Likewise.
2991         * modules/pipe-filter-ii (Depends-on): Likewise.
2992         * modules/savewd (Depends-on): Likewise.
2993         * modules/spawn-pipe (Depends-on): Likewise.
2994         * modules/wait-process (Depends-on): Likewise.
2995         * modules/xsetenv (Depends-on): Likewise.
2996         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2997         * modules/git-merge-changelog (Depends-on): Likewise.
2998         * modules/long-options (Depends-on): Likewise.
2999         * modules/pt_chown (Depends-on): Likewise.
3000         * modules/sysexits (Depends-on): Likewise.
3001
3002         freading: relax license from LGPLv3+ to LGPLv2+
3003         * modules/freading (License): Relax LGPL version.
3004
3005 2011-05-02  Bruno Haible  <bruno@clisp.org>
3006
3007         fchdir: Remove unused dependencies.
3008         * modules/fchdir (Depends-on): Remove include_next.
3009
3010 2011-05-02  Bruno Haible  <bruno@clisp.org>
3011
3012         gnulib-tool: Refactor.
3013         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3014         from func_emit_autoconf_snippets.
3015         (func_emit_autoconf_snippets): Use it.
3016
3017 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3018
3019         * NEWS: Document removal of 'exit'.
3020         * modules/exit: Remove file.
3021
3022 2011-05-01  Bruno Haible  <bruno@clisp.org>
3023
3024         Update DEPENDENCIES.
3025         * DEPENDENCIES (gettext): Recommend the newest release.
3026         Reported by Simon Josefsson.
3027
3028 2011-05-01  Bruno Haible  <bruno@clisp.org>
3029
3030         gnulib-tool: Reduce code duplication.
3031         * gnulib-tool (func_emit_autoconf_snippets): New function.
3032         (func_import, func_create_testdir): Use it.
3033
3034 2011-04-30  Eric Blake  <eblake@redhat.com>
3035
3036         fclose: don't fail on non-seekable input stream
3037         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3038         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3039         since fflush is allowed to fail in that case.
3040
3041 2011-04-30  Bruno Haible  <bruno@clisp.org>
3042
3043         dup3: cleanup
3044         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3045
3046 2011-04-30  Bruno Haible  <bruno@clisp.org>
3047
3048         netdb: Make it work in C++ mode.
3049         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
3050         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
3051         module.
3052         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
3053         gl_MODULE_INDICATOR_FOR_TESTS.
3054         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3055         * modules/netdb-c++-tests: New file.
3056         * tests/test-netdb-c++.cc: New file.
3057
3058 2011-04-30  Bruno Haible  <bruno@clisp.org>
3059
3060         New modules 'vfscanf', 'vscanf'.
3061         * modules/vfscanf: New file.
3062         * modules/vscanf: New file.
3063         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3064         here.
3065         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3066         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3067
3068 2011-04-30  Bruno Haible  <bruno@clisp.org>
3069
3070         passfd: Add comments.
3071         * lib/passfd.c: Add comments about platforms.
3072
3073 2011-04-30  Bruno Haible  <bruno@clisp.org>
3074
3075         sys_uio: Make <sys/uio.h> self-contained.
3076         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3077         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3078
3079 2011-04-30  Bruno Haible  <bruno@clisp.org>
3080
3081         sys_socket: Ensure 'struct iovec' definition.
3082         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3083         <sys/socket.h>.
3084         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3085
3086 2011-04-30  Bruno Haible  <bruno@clisp.org>
3087
3088         sys_uio: Protect definition of 'struct iovec'.
3089         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3090         it as a C struct.
3091
3092 2011-04-30  Bruno Haible  <bruno@clisp.org>
3093
3094         manywarnings: fix indentation
3095         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3096
3097 2011-04-30  Pádraig Brady <P@draigBrady.com>
3098
3099         manywarnings: add -Wno-missing-field-initializers if needed.
3100         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3101         option if it's needed to allow initialization with { 0, }
3102
3103 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3104
3105         announce-gen: cosmetic improvement
3106         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3107
3108 2011-04-29  Jim Meyering  <meyering@redhat.com>
3109
3110         vc-list-files: indent with spaces, not TABs
3111         * build-aux/vc-list-files: Convert leading TABs to spaces,
3112         to match the style of most other files in gnulib.
3113
3114         announce-gen: indent with spaces, not TABs
3115         * build-aux/announce-gen: Convert all TABs to spaces, to match
3116         the style of most other files in gnulib.
3117
3118 2011-04-29  Eric Blake  <eblake@redhat.com>
3119
3120         quotearg: avoid uninitialized variable use
3121         * lib/quotearg.c (quoting_options_from_style): Initialize
3122         remaining fields, and ensure that custom styles are only used via
3123         quoting_options rather than quoting_style.
3124
3125 2011-04-29  Jim Meyering  <meyering@redhat.com>
3126
3127         maint.mk: remove unused VC-tag variable
3128         * top/maint.mk (VC-tag): Remove unused variable.
3129
3130 2011-04-29  Bruno Haible  <bruno@clisp.org>
3131
3132         netdb: fix gai_strerror replacements
3133         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3134         * modules/netdb: Substitute it.
3135
3136 2011-04-29  Jim Meyering  <meyering@redhat.com>
3137
3138         test-getcwd.c: avoid new set-but-not-used warning
3139         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3140         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3141         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3142         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3143
3144         test-hash.c: avoid a new shadowing warning
3145         * tests/test-hash.c (main): Don't shadow "dup".
3146
3147 2011-04-28  Eric Blake  <eblake@redhat.com>
3148
3149         getaddrinfo: fix gai_strerror signature
3150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3151         and work around mingw with UNICODE defined.
3152         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3153         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3154         * modules/netdb (Makefile.am): Substitute it.
3155         * lib/netdb.in.h (gai_strerror): Declare replacement.
3156         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3157         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3158         the fix.
3159
3160         getsockopt: avoid compiler warning
3161         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3162         Reported by Matthias Bolte.
3163
3164         tests: drop unused link dependency
3165         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3166         * modules/dirent-safer-tests (Makefile.am): Likewise.
3167         * modules/fdopendir-tests (Makefile.am): Likewise.
3168         * modules/mkfifoat-tests (Makefile.am): Likewise.
3169         * modules/openat-safer-tests (Makefile.am): Likewise.
3170         * modules/openat-tests (Makefile.am): Likewise.
3171         * modules/readlinkat-tests (Makefile.am): Likewise.
3172         * modules/symlinkat-tests (Makefile.am): Likewise.
3173         * modules/linkat-tests (Makefile.am): Likewise.
3174         (Depends-on): Switch to filenamecat-lgpl.
3175         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3176         LIBINTL.
3177         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3178         * tests/test-linkat.c (main): Don't require xalloc.
3179
3180         hash, mgetgroups: drop xalloc dependency
3181         * lib/hash.c (includes): Adjust includes.
3182         * lib/mgetgroups.c (includes): Likewise.
3183         (xgetgroups): Move...
3184         * lib/xgetgroups.c: ...to new file.
3185         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3186         * modules/xgetgroups: New file, split from...
3187         * modules/mgetgroups: ...here.
3188         (Depends-on): Add xalloc-oversized.
3189         * modules/hash (Depends-on): Likewise.
3190         * modules/hash-tests (Depends-on): Drop xalloc.
3191         (test_hash_LDADD): Drop unused library.
3192         * tests/test-hash.c (main): Break xalloc dependency.
3193         (includes): Drop unused include.
3194
3195         xalloc-oversized: new module
3196         * modules/xalloc-oversized: New module.
3197         * modules/xalloc (Depends-on): Add it.
3198         * lib/xalloc.h (xalloc_oversized): Move...
3199         * lib/xalloc-oversized.h: ...into new file.
3200
3201         utimecmp: drop dependency on xmalloc
3202         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3203         due to memory pressure.
3204         * modules/utimecmp (Depends-on): Drop xalloc.
3205
3206 2011-04-27  Eric Blake  <eblake@redhat.com>
3207
3208         getcwd: fix mingw bugs
3209         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3210         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3211         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3212
3213 2011-04-27  Bruno Haible  <bruno@clisp.org>
3214
3215         mkstemps: Ensure declaration on MacOS X 10.5.
3216         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3217         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3218         MacOS X.
3219
3220 2011-04-27  Bruno Haible  <bruno@clisp.org>
3221
3222         mkstemp: More documentation.
3223         * doc/posix-functions/mkstemp.texi: Document header file problem on
3224         MacOS X.
3225
3226 2011-04-27  Bruno Haible  <bruno@clisp.org>
3227
3228         mkstemp: Tweak configure message when cross-compiling.
3229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3230         result as a guess.
3231
3232 2011-04-27  Bruno Haible  <bruno@clisp.org>
3233
3234         clean-temp: Clarify what it does.
3235         * lib/clean-temp.h: Add more comments.
3236         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3237         module.
3238         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3239         * doc/glibc-functions/mkstemps.texi: Likewise.
3240         * doc/glibc-functions/mkostemps.texi: Likewise.
3241
3242 2011-04-27  Eric Blake  <eblake@redhat.com>
3243
3244         fchdir: avoid extra chdir and fix test
3245         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3246         getcwd-lgpl.
3247         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3248         have to be canonical.
3249         (canonicalize_file_name): Drop unused macro.
3250         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3251
3252         filenamecat-lgpl: fix licence
3253         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3254         when it was first created.
3255
3256         linkat, renameat: add missing dependency
3257         * modules/linkat (Depends-on): Require getcwd-lgpl.
3258         * modules/renameat (Depends-on): Likewise.
3259
3260         tests: reduce dependencies
3261         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3262         * tests/test-renameat.c (main): Likewise.
3263         * modules/linkat-tests (Depends-on): Relax dependency.
3264         * modules/renameat-tests (Depends-on): Likewise.
3265         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3266         dependency explicit.
3267
3268         save-cwd: reduce default dependency
3269         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3270         * lib/save-cwd.c: Update comments.
3271         * NEWS: Document the semantic change.
3272
3273         getcwd: enhance tests
3274         * tests/test-getcwd-lgpl.c: New file, taken from...
3275         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3276         repeat long path stress tests from m4 probe.
3277         * modules/getcwd-lgpl-tests: New module.
3278         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3279         * m4/getcwd-abort-bug.m4: Update comment.
3280         * m4/getcwd-path-max.m4: Likewise.
3281
3282         getcwd-lgpl: new module
3283         * modules/getcwd-lgpl: New module.
3284         * lib/getcwd-lgpl.c: New file.
3285         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3286         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3287         * modules/getcwd (configure.ac): Set C witness.
3288         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3289
3290         getcwd: tweak comments
3291         * m4/getcwd-abort-bug.m4: Fix comments.
3292         * m4/getcwd-path-max.m4: Likewise.
3293         * m4/getcwd.m4: Likewise.
3294
3295 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3296         and Eric Blake  <eblake@redhat.com>
3297
3298         mkstemp: replace if system version uses wrong permissions
3299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3300         read/write mode bits set in file created by mkstemp.
3301         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3302
3303 2011-04-27  Eric Blake  <eblake@redhat.com>
3304
3305         passfd: avoid compiler warning
3306         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3307         Reported by Laine Stump.
3308
3309 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3310
3311         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3312         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3313
3314 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3315         and Eric Blake  <eblake@redhat.com>
3316
3317         mkstemp: mention clean-temp module
3318         * lib/mkstemp.c: Add comment.
3319         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3320
3321 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3322
3323         inttypes: also provide default values for 32-bit tests
3324         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3325         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3326
3327 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         strtoumax: remove dependency on strtoimax
3330         This is like the strtoull change of yesterday.
3331         * modules/strtoumax (Files): Add lib/strtoimax.c.
3332         (Depends-on): Remove strtoimax and add verify.
3333
3334         inttypes-incomplete: new module
3335         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3336         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3337         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3338         of gl_INTTYPES_H.
3339         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3340         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3341         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3342         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3343         * modules/strtoumax, modules/xstrtol (Depends-on):
3344         Depend on inttypes-incomplete, not inttypes.
3345         * modules/inttypes-incomplete: New module, containing the contents
3346         of the old modules/inttypes module, except that the Files: section
3347         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3348         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3349         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3350         (Depends-on): Depend only on inttypes-incomplete.
3351         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3352
3353         inttypes: omit now-redundant strtoimax and strtoumax work
3354         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3355         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3356
3357         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3358         This supports apps that need pointers to strtoimax and strtoumax,
3359         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3360         nonexistent functions.  See
3361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3362         et seq.
3363         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3365         a macro.
3366         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3367
3368 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3369
3370         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3371
3372 2011-04-25  Bruno Haible  <bruno@clisp.org>
3373
3374         strtol, strtoul: Mark modules as obsolete.
3375         * modules/strtol (Status, Notice): New sections.
3376         * modules/strtoul (Status, Notice): New sections.
3377
3378 2011-04-25  Bruno Haible  <bruno@clisp.org>
3379
3380         strtod: Remove check for strtod, unless supporting old platforms.
3381         * modules/strtod-obsolete: New file.
3382         * m4/strtod-obsolete.m4: New file.
3383         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3384         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3385         * modules/strtod (Depends-on): Add strtod-obsolete.
3386         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3387
3388 2011-04-25  Bruno Haible  <bruno@clisp.org>
3389
3390         strcase: Make module obsolete.
3391         * modules/strcase (Status, Notice): New sections.
3392
3393 2011-04-25  Bruno Haible  <bruno@clisp.org>
3394
3395         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3396         * modules/dup2-obsolete: New file.
3397         * m4/dup2-obsolete.m4: New file.
3398         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3399         gl_FUNC_DUP2_OBSOLETE is not also defined.
3400         * modules/dup2 (Depends-on): Add dup2-obsolete.
3401         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3402
3403 2011-04-25  Bruno Haible  <bruno@clisp.org>
3404
3405         strnlen: Avoid memchr related link error on old obsolete platforms.
3406         * modules/memchr-obsolete: New file.
3407         * m4/memchr-obsolete.m4: New file.
3408         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3409         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3410         * modules/memchr (Depends-on): Add memchr-obsolete.
3411         * modules/strnlen (Depends-on): Likewise.
3412         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3413
3414 2011-04-25  Jim Meyering  <meyering@redhat.com>
3415
3416         maint.mk: makefile_at_at_check extend and clean up
3417         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3418         in addition to */Makefile.am.
3419         Exempt legitimate uses of @VAR@ notation, e.g.,
3420         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3421         Remove obsolete coreutils-specific comment.
3422         Prompted by discussion here:
3423         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3424
3425 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3426
3427         strtoul: remove dependency on strtol
3428         This is so that 'configure' need not check for strtol merely because
3429         the application needs strtoul.
3430         * modules/strtoul (Files): Add lib/strtol.c.
3431         (Depends-on): Remove strtol.
3432
3433         strtoull: remove dependency on strtoul
3434         This is like the strtoll change.
3435         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3436         (Depends-on): Remove strtoul.
3437
3438         strtoll: remove dependency on strtol
3439         This is so that 'configure' need not check for strtol merely because
3440         the application needs strtoll.
3441         * modules/strtoll (Files): Add lib/strtol.c.
3442         (Depends-on): Remove strtol.
3443
3444 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         inttypes: Move some configure check to module 'imaxdiv'.
3447         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3448         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3449         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3450
3451 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3452
3453         inttypes: Move some configure check to module 'imaxabs'.
3454         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3455         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3456         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3457
3458 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3459
3460         inttypes: Remove configure tests that are not needed since 2009-12-31.
3461         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3462         gl_cv_header_working_inttypes_h.
3463
3464 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3465
3466         * modules/strnlen (Depends-on): Remove memchr.
3467         The strnlen implementation doesn't need the memchr module's fixes; see
3468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3469
3470         strtol: remove dependency on wchar
3471         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3472         * modules/strtol (Depends-on): Remove wchar.
3473
3474 2011-04-21  Eric Blake  <eblake@redhat.com>
3475
3476         passfd: fix test regression on Linux
3477         * modules/passfd-tests (configure.ac): Correct socketpair check.
3478
3479         passfd: speed up configure and drop unused code
3480         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3481         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3482         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3483         Instead of probing at configure for unix_scm_rights_bsd44_way,
3484         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3485         check to a struct member probe.
3486         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3487         (sendfd, recvfd): Update preprocessor checks.
3488         * modules/passfd (Files): Reflect rename, and drop unused file.
3489         (Depends-on): Drop unused dependency.
3490
3491         passfd: allow compilation on mingw
3492         * modules/sys_socket (Depends-on): Add sys_uio.
3493         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3494         iovec and a minimal struct msghdr.
3495         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3496         * tests/test-sys_socket.c (main): Enhance test.
3497         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3498         guaranteed to provide what we need.
3499         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3500         * modules/passfd-tests (Depends-on): Add sys_wait.
3501         * tests/test-passfd.c (main): Skip test on mingw, for now.
3502         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3503         partial 'struct msghdr' implementation.
3504
3505         sys_uio: new module
3506         * modules/sys_uio: New module.
3507         * modules/sys_uio-tests: Likewise.
3508         * lib/sys_uio.in.h: New file.
3509         * m4/sys_uio_h.m4: Likewise.
3510         * tests/test-sys_uio.c: Likewise.
3511         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3512         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3513
3514 2011-04-20  Jim Meyering  <meyering@redhat.com>
3515
3516         useless-if-before-free: avoid false-positive
3517         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3518         disjunct so that it too requires a terminating ";".  Without that,
3519         this script would identify as useless one statement from gcc that
3520         was not:
3521           if (aligned_ptr)
3522             free (((void **) aligned_ptr) [-1]);
3523
3524 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3525
3526         doc: update users.txt.
3527         * users.txt: Add barcode.
3528
3529 2011-04-19  Bruno Haible  <bruno@clisp.org>
3530
3531         ioctl: Remove link dependency on native Windows.
3532         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3533         (gl_close_fn, gl_ioctl_fn): New types.
3534         (struct fd_hook): Renamed from struct close_hook. Change type of
3535         private_close_fn field. Add private_ioctl_fn field.
3536         (close_hook_fn): Add parameter for primary close method.
3537         (execute_close_hooks, execute_all_close_hooks): Likewise.
3538         (ioctl_hook_fn): New type.
3539         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3540         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3541         argument.
3542         (unregister_fd_hook): Renamed from unregister_close_hook.
3543         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3544         Don't include <unistd.h>.
3545         (close): Remove undef.
3546         (anchor): Update.
3547         (execute_close_hooks): Add argument for primary close method.
3548         (execute_all_close_hooks): Likewise.
3549         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3550         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3551         argument. Allow each argument to be NULL.
3552         (unregister_fd_hook): Renamed from unregister_close_hook.
3553         * lib/close.c (rpl_close): Pass 'close' function pointer to
3554         execute_all_close_hooks.
3555         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3556         (primary_ioctl): New function.
3557         (ioctl): Don't call ioctlsocket here. Instead, call
3558         execute_all_ioctl_hooks.
3559         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3560         close method.
3561         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3562         (fd_sockets_hook): Renamed from close_sockets_hook.
3563         (gl_sockets_startup, gl_sockets_cleanup): Update.
3564         * modules/fd-hook: Renamed from modules/close-hook. Update.
3565         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3566         * modules/sockets (Depends-on): Likewise.
3567         * modules/ioctl (Depends-on): Add fd-hook.
3568         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3569         GNULIB_SOCKET.
3570
3571 2011-04-19  Bruno Haible  <bruno@clisp.org>
3572
3573         Move the support of O_NONBLOCK in open() to the 'open' module.
3574         * modules/nonblocking (Depends-on): Remove 'open'.
3575         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3576         gl_cv_have_open_O_NONBLOCK.
3577         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3578         O_NONBLOCK support.
3579         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3580
3581 2011-04-17  Bruno Haible  <bruno@clisp.org>
3582
3583         pipe2: Simplify code.
3584         * lib/pipe2.c (pipe2): Reduce code duplication.
3585
3586 2011-04-17  Bruno Haible  <bruno@clisp.org>
3587
3588         nonblocking: Add comment.
3589         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3590
3591 2011-04-17  Bruno Haible  <bruno@clisp.org>
3592
3593         nonblocking: Add tests for sockets.
3594         * tests/test-nonblocking-socket.sh: New file.
3595         * tests/test-nonblocking-socket-main.c: New file.
3596         * tests/test-nonblocking-socket-child.c: New file.
3597         * tests/test-nonblocking-socket.h: New file.
3598         * tests/socket-server.h: New file.
3599         * tests/socket-client.h: New file.
3600         * modules/nonblocking-socket-tests: New file.
3601         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3602
3603 2011-04-17  Bruno Haible  <bruno@clisp.org>
3604
3605         nonblocking: Add tests for pipes.
3606         * tests/test-nonblocking-pipe.sh: New file.
3607         * tests/test-nonblocking-pipe-main.c: New file.
3608         * tests/test-nonblocking-pipe-child.c: New file.
3609         * tests/test-nonblocking-pipe.h: New file.
3610         * tests/test-nonblocking-writer.h: New file.
3611         * tests/test-nonblocking-reader.h: New file.
3612         * tests/test-nonblocking-misc.h: New file.
3613         * modules/nonblocking-pipe-tests: New file.
3614         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3615
3616 2011-04-16  Bruno Haible  <bruno@clisp.org>
3617
3618         gettext: Clarify the needed programmer actions.
3619         * modules/gettext (Notice): New field.
3620         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3621
3622 2011-04-16  Bruno Haible  <bruno@clisp.org>
3623
3624         strchrnul: Tweak last commit.
3625         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3626         bug.
3627         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3628         as in _GL_FUNCDECL_SYS.
3629         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3630         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3631
3632 2011-04-15  Eric Blake  <eblake@redhat.com>
3633
3634         strchrnul: work around cygwin bug
3635         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3636         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3638         * modules/string (Makefile.am): Substitute it.
3639         * lib/string.in.h (strchrnul): Use it.
3640
3641 2011-04-15  Bruno Haible  <bruno@clisp.org>
3642
3643         Don't require lib/stdio-write.c when only module 'stdio' is used.
3644         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3645         invocation.
3646         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3647
3648 2011-04-14  Bruno Haible  <bruno@clisp.org>
3649
3650         Support non-blocking pipe I/O in read() on native Windows.
3651         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3652         (read): New declaration.
3653         * lib/read.c: New file.
3654         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3655         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3656         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3657         vscanf): New declarations.
3658         * lib/stdio-read.c: New file.
3659         * m4/read.m4: New file.
3660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3661         REPLACE_READ.
3662         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3663         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3664         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3665         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3666         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3667         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3668         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3669         * modules/read: New file.
3670         * modules/nonblocking (Files): Add lib/stdio-read.c.
3671         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3672         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3673         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3674         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3675         * modules/pread (Depends-on): Add read.
3676         * modules/safe-read (Depends-on): Likewise.
3677         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3678         gets, scanf, vfscanf, vscanf): Verify signatures.
3679         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3680         problem with non-blocking pipes.
3681         * doc/posix-functions/fgetc.texi: Likewise.
3682         * doc/posix-functions/fgets.texi: Likewise.
3683         * doc/posix-functions/fread.texi: Likewise.
3684         * doc/posix-functions/fscanf.texi: Likewise.
3685         * doc/posix-functions/getc.texi: Likewise.
3686         * doc/posix-functions/getchar.texi: Likewise.
3687         * doc/posix-functions/gets.texi: Likewise.
3688         * doc/posix-functions/scanf.texi: Likewise.
3689         * doc/posix-functions/vfscanf.texi: Likewise.
3690         * doc/posix-functions/vscanf.texi: Likewise.
3691
3692 2011-04-14  Bruno Haible  <bruno@clisp.org>
3693
3694         Support non-blocking pipe I/O in write() on native Windows.
3695         * lib/write.c (rpl_write): Split a write request that failed merely
3696         because the byte count was larger than the pipe buffer's size.
3697         * doc/posix-functions/write.texi: Mention the problem with large byte
3698         counts.
3699
3700 2011-04-14  Bruno Haible  <bruno@clisp.org>
3701
3702         wchar: Ensure that wchar_t gets defined on uClibc.
3703         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3704         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3705
3706 2011-04-13  Bruno Haible  <bruno@clisp.org>
3707
3708         safe-write, full-read: Avoid unnecessary compilation units.
3709         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3710         (Depends-on): Remove safe-read. Add ssize_t.
3711         * modules/full-read (Files): Add lib/full-write.c.
3712         (Depends-on): Add full-write.
3713
3714 2011-04-13  Bruno Haible  <bruno@clisp.org>
3715
3716         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3717         * modules/pwrite (Depends-on): Add 'write'.
3718
3719 2011-04-13  Bruno Haible  <bruno@clisp.org>
3720
3721         Support non-blocking pipe I/O in write() on native Windows.
3722         * lib/unistd.in.h (write): Enable replacement also if
3723         GNULIB_UNISTD_H_NONBLOCKING is 1.
3724         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3725         (rpl_write): When failing to write on a non-blocking pipe, change
3726         errno from ENOSPC to EAGAIN.
3727         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3728         putchar, puts, vfprintf, vprintf): Enable replacement also if
3729         GNULIB_STDIO_H_NONBLOCKING is 1.
3730         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3731         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3732         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3733         CALL_WITH_SIGPIPE_EMULATION.
3734         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3735         * m4/nonblocking.m4: New file.
3736         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3737         for non-blocking I/O support.
3738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3739         GNULIB_UNISTD_H_NONBLOCKING.
3740         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3741         required for non-blocking I/O support.
3742         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3743         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3744         lib/stdio-write.c, m4/asm-underscore.m4.
3745         (Depends-on): Add stdio, unistd.
3746         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3747         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3748         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3749         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3750         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3751         problem with non-blocking pipes.
3752         * doc/posix-functions/fputc.texi: Likewise.
3753         * doc/posix-functions/fputs.texi: Likewise.
3754         * doc/posix-functions/fwrite.texi: Likewise.
3755         * doc/posix-functions/printf.texi: Likewise.
3756         * doc/posix-functions/putc.texi: Likewise.
3757         * doc/posix-functions/putchar.texi: Likewise.
3758         * doc/posix-functions/puts.texi: Likewise.
3759         * doc/posix-functions/vfprintf.texi: Likewise.
3760         * doc/posix-functions/vprintf.texi: Likewise.
3761         * doc/posix-functions/write.texi: Likewise.
3762
3763 2011-04-10  Jim Meyering  <meyering@redhat.com>
3764
3765         maint.mk: prohibit doubled words
3766         Detect them also when they're separated by a newline.
3767         There are 3 ways to customize it:
3768           - disable the test on a per file basis, as usual with rules using
3769             $(VC_LIST_EXCEPT)
3770           - replace the default doubled-word-selecting regexp (affects all files)
3771           - ignore a particular file-vs-doubled-word match
3772         I nearly used that last one to ignore the "is is" match in
3773         coreutils' NEWS file, since the text was "ls -is is ..."
3774         To do that, I would have added this line to cfg.mk:
3775           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3776         but it would have ignored any "is is" match in NEWS.
3777         Low probability, but still...
3778         Instead, I changed the text, slightly:
3779           -  ls -is is now consistent with ls -lis in ignoring values returned
3780           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3781         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3782         (prohibit_doubled_word_): Define.
3783         (sc_prohibit_doubled_word): New rule.
3784         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3785
3786 2011-04-10  Jim Meyering  <meyering@redhat.com>
3787
3788         maint: fix doubled-word typo in comment
3789         * m4/gethostname.m4: s/is is/it is/
3790         * m4/getdomainname.m4: Likewise.
3791
3792 2011-04-10  Jim Meyering  <meyering@redhat.com>
3793
3794         maint: remove doubled word: s/it it/it/
3795         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3796
3797 2011-04-10  Jim Meyering  <meyering@redhat.com>
3798
3799         maint.mk: remove useless semicolon and backslash
3800         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3801         semicolon and backslash.
3802
3803 2011-04-10  Bruno Haible  <bruno@clisp.org>
3804
3805         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3806         * modules/stdint-tests (Depends-on): Add wchar.
3807
3808 2011-04-10  Jim Meyering  <meyering@redhat.com>
3809
3810         maint: remove doubled words in comments, e.g., s/a a/a/
3811         * lib/strptime.c (day_of_the_week): s/the the/the/
3812         * tests/test-chown.h (test_chown): s/a a/a/
3813
3814         test-chown.h: correct a cast
3815         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3816         when the destination is a stat.st_gid.
3817
3818 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3819
3820         getaddrinfo: Fix test for sa_len member.
3821         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3822         include <sys/types.h> before <sys/socket.h>.
3823
3824 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3825
3826         maint: change "can not" to "cannot"
3827         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3828         boundaries.
3829
3830 2011-04-09  Jim Meyering  <meyering@redhat.com>
3831
3832         maint: change "a a" to "a"
3833         * tests/test-lchown.h (test_lchown): s/a a/a/
3834
3835         maint.mk: prohibit \<the the\>
3836         * top/maint.mk (sc_prohibit_the_the): New rule.
3837
3838         maint: fix "the the" in comment
3839         * lib/count-one-bits.h: s/the the/the/
3840
3841         maint: change "can not" to "cannot"
3842         But do not change the occurrences in maintain.texi or in
3843         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3844         * doc/gnulib-tool.texi: s/can not/cannot/
3845         * doc/posix-functions/accept.texi (accept): Likewise.
3846         * doc/posix-functions/socket.texi (socket): Likewise.
3847         * lib/mbrtowc.c: Likewise.
3848
3849         maint.mk: prohibit use of "can not"
3850         * top/maint.mk (sc_prohibit_can_not): New rule.
3851         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3852
3853 2011-04-09  Bruno Haible  <bruno@clisp.org>
3854
3855         careadlinkat: Guard against misuse of careadlinkatcwd.
3856         * lib/careadlinkat.c: Include <stdlib.h>.
3857         (careadlinkatcwd): Check that the fd argument is as expected.
3858
3859 2011-04-09  Bruno Haible  <bruno@clisp.org>
3860
3861         careadlinkat: Use common coding style.
3862         * lib/careadlinkat.c: Move gnulib includes after system includes.
3863
3864 2011-04-09  Bruno Haible  <bruno@clisp.org>
3865
3866         careadlinkat: Clarify specification.
3867         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3868         (careadlinkatcwd): Add comment.
3869         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3870
3871 2011-04-09  Bruno Haible  <bruno@clisp.org>
3872
3873         areadlinkat: Avoid link error on many platforms.
3874         * modules/areadlinkat (Depends-on): Add areadlink.
3875
3876 2011-04-09  Bruno Haible  <bruno@clisp.org>
3877
3878         allocator, careadlinkat: Fix double-inclusion guard.
3879         * lib/allocator.h: Fix double-inclusion guard.
3880         * lib/careadlinkat.h: Likewise.
3881
3882 2011-04-09  Bruno Haible  <bruno@clisp.org>
3883
3884         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3885         * lib/relocwrapper.c: Update dependencies hierarchy.
3886         * build-aux/install-reloc: Update list of files to be compiled.
3887         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3888         lib/allocator.[hc].
3889
3890 2011-04-08  Eric Blake  <eblake@redhat.com>
3891
3892         strftime: silence gnulib-tool warning
3893         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3894
3895 2011-04-08  Bruno Haible  <bruno@clisp.org>
3896
3897         verify: Fix syntax error with GCC 4.6 in C++ mode.
3898         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3899         (HAVE_STATIC_ASSERT): New macro.
3900         (verify_true, verify): Use 'static_assert' if it is supported and
3901         '_Static_assert' is not supported.
3902
3903 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3904
3905         allocator: New module.
3906         * modules/allocator, lib/allocator.c: New files.
3907         * lib/allocator.h (stdlib_allocator): New decl.
3908         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3909         Remove.  Do not include <stdlib.h>.
3910         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3911         * modules/careadlinkat (Files): Remove lib/allocator.h.
3912         (Depends-on): Add allocator.
3913
3914         stdlib: let modules use system malloc, realloc
3915         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3916         if !_GL_USE_STDLIB_ALLOC.
3917         (malloc, realloc): Limit this change to a smaller scope.
3918
3919         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3920         (malloc, realloc): Don't #undef; no longer needed.
3921         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3922         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3923         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3924         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3925         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3926         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3927         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3928         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3929
3930         careadlinkat: rename members to avoid problem
3931         * lib/allocator.h (struct allocator): Rename members from
3932         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3933         and realloc are #define'd.  Reported by Eric Blake in
3934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3935         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3936
3937 2011-04-08  Eric Blake  <eblake@redhat.com>
3938
3939         nonblocking: reduce dependency
3940         * tests/test-nonblocking.c: Only test sockets when in use.
3941         * modules/nonblocking-tests (Depends-on): Drop socket.
3942         (Makefile.am): Link even if sockets are not present.
3943         * modules/pipe2-tests (Makefile.am): Likewise.
3944         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3945
3946         pipe2: fix O_NONBLOCK support on mingw
3947         * modules/pipe2 (Depends-on): Add nonblocking.
3948         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3949         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3950         * tests/test-nonblocking.c (main): Likewise.
3951         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3952
3953         fcntl-h: fix O_ACCMODE on cygwin
3954         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3955         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3956
3957         pipe-filter: drop O_NONBLOCK workarounds
3958         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3959         * modules/pipe-filter-ii (Depends-on): Likewise.
3960         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3961
3962         nonblocking: provide O_NONBLOCK for mingw
3963         * modules/nonblocking (Depends-on): Add open.
3964         (configure.ac): Set new witness macro.
3965         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3966         * modules/fcntl-h (Makefile.am): Substitute it.
3967         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3968         nonblocking module is in use.
3969         * lib/nonblocking.c: Adjust portability test.
3970         * lib/open.c (open): Don't let native open see gnulib flag.
3971         * tests/test-fcntl-h.c (main): Enhance test.
3972         * tests/test-open.h (test_open): Likewise.
3973         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3974
3975         careadlinkat: fix compilation error on mingw
3976         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3977         within struct allocator.
3978
3979 2011-04-06  Eric Blake  <eblake@redhat.com>
3980
3981         binary-io: relicense under LGPLv2+
3982         * modules/binary-io (License): Relax to LGPLv2+.
3983         Requested for libvirt, and required by pipe2.
3984
3985 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3986
3987         verify: use _Static_assert if available
3988         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3989         (verify_true, verify): Use it if available.  This generates better
3990         diagnostics with GCC 4.6.0 and later.
3991
3992 2011-04-05  Bruno Haible  <bruno@clisp.org>
3993
3994         Remove leftover generated .h files after config.status changed.
3995
3996         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3997         GL_GENERATE_ALLOCA_H.
3998         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3999         GL_GENERATE_ALLOCA_H evaluates to false.
4000
4001         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4002         GL_GENERATE_ARGZ_H.
4003         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4004         evaluates to false.
4005
4006         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4007         GL_GENERATE_BYTESWAP_H.
4008         * modules/byteswap (Makefile.am): Remove byteswap.h if
4009         GL_GENERATE_BYTESWAP_H evaluates to false.
4010
4011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4012         GL_GENERATE_ERRNO_H.
4013         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4014         evaluates to false.
4015
4016         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4017         GL_GENERATE_FLOAT_H.
4018         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4019         evaluates to false.
4020
4021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4022         GL_GENERATE_FNMATCH_H.
4023         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4024         GL_GENERATE_FNMATCH_H evaluates to false.
4025
4026         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4027         GL_GENERATE_GLOB_H.
4028         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4029         evaluates to false.
4030
4031         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4032         automake conditional GL_GENERATE_ICONV_H.
4033         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4034         evaluates to false.
4035
4036         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4037         GL_GENERATE_NETINET_IN_H.
4038         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4039         GL_GENERATE_NETINET_IN_H evaluates to false.
4040
4041         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4042         conditional GL_GENERATE_PTHREAD_H.
4043         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4044         * modules/pthread (Makefile.am): Remove pthread.h if
4045         GL_GENERATE_PTHREAD_H evaluates to false.
4046
4047         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
4048         GL_GENERATE_SCHED_H.
4049         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
4050         evaluates to false.
4051
4052         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
4053         conditional GL_GENERATE_SELINUX_CONTEXT_H.
4054         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4055         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4056
4057         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4058         GL_GENERATE_STDARG_H.
4059         * modules/stdarg (Makefile.am): Remove stdarg.h if
4060         GL_GENERATE_STDARG_H evaluates to false.
4061
4062         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4063         GL_GENERATE_STDBOOL_H.
4064         * modules/stdbool (Makefile.am): Remove stdbool.h if
4065         GL_GENERATE_STDBOOL_H evaluates to false.
4066
4067         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4068         conditional GL_GENERATE_STDDEF_H.
4069         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4070         * modules/stddef (Makefile.am): Remove stddef.h if
4071         GL_GENERATE_STDDEF_H evaluates to false.
4072
4073         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4074         GL_GENERATE_STDINT_H.
4075         * modules/stdint (Makefile.am): Remove stdint.h if
4076         GL_GENERATE_STDINT_H evaluates to false.
4077
4078         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4079         GL_GENERATE_SYSEXITS_H.
4080         * modules/sysexits (Makefile.am): Remove sysexits.h if
4081         GL_GENERATE_SYSEXITS_H evaluates to false.
4082
4083         Reported by Karl Berry and Ralf Wildenhues.
4084
4085 2011-04-05  Bruno Haible  <bruno@clisp.org>
4086
4087         Ensure to rebuild generated .h files when config.status has changed.
4088         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4089         config.status.
4090         * modules/ctype (Makefile.am): Likewise.
4091         * modules/dirent (Makefile.am): Likewise.
4092         * modules/errno (Makefile.am): Likewise.
4093         * modules/fcntl-h (Makefile.am): Likewise.
4094         * modules/float (Makefile.am): Likewise.
4095         * modules/getopt-posix (Makefile.am): Likewise.
4096         * modules/glob (Makefile.am): Likewise.
4097         * modules/iconv-h (Makefile.am): Likewise.
4098         * modules/inttypes (Makefile.am): Likewise.
4099         * modules/langinfo (Makefile.am): Likewise.
4100         * modules/locale (Makefile.am): Likewise.
4101         * modules/math (Makefile.am): Likewise.
4102         * modules/netdb (Makefile.am): Likewise.
4103         * modules/netinet_in (Makefile.am): Likewise.
4104         * modules/poll-h (Makefile.am): Likewise.
4105         * modules/pthread (Makefile.am): Likewise.
4106         * modules/pty (Makefile.am): Likewise.
4107         * modules/sched (Makefile.am): Likewise.
4108         * modules/search (Makefile.am): Likewise.
4109         * modules/selinux-h (Makefile.am): Likewise.
4110         * modules/signal (Makefile.am): Likewise.
4111         * modules/spawn (Makefile.am): Likewise.
4112         * modules/stdarg (Makefile.am): Likewise.
4113         * modules/stdbool (Makefile.am): Likewise.
4114         * modules/stddef (Makefile.am): Likewise.
4115         * modules/stdint (Makefile.am): Likewise.
4116         * modules/stdio (Makefile.am): Likewise.
4117         * modules/stdlib (Makefile.am): Likewise.
4118         * modules/string (Makefile.am): Likewise.
4119         * modules/strings (Makefile.am): Likewise.
4120         * modules/sys_file (Makefile.am): Likewise.
4121         * modules/sys_ioctl (Makefile.am): Likewise.
4122         * modules/sys_select (Makefile.am): Likewise.
4123         * modules/sys_socket (Makefile.am): Likewise.
4124         * modules/sys_stat (Makefile.am): Likewise.
4125         * modules/sys_time (Makefile.am): Likewise.
4126         * modules/sys_times (Makefile.am): Likewise.
4127         * modules/sys_utsname (Makefile.am): Likewise.
4128         * modules/sys_wait (Makefile.am): Likewise.
4129         * modules/sysexits (Makefile.am): Likewise.
4130         * modules/termios (Makefile.am): Likewise.
4131         * modules/time (Makefile.am): Likewise.
4132         * modules/unistd (Makefile.am): Likewise.
4133         * modules/wchar (Makefile.am): Likewise.
4134         * modules/wctype-h (Makefile.am): Likewise.
4135         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4136
4137 2011-04-05  Bruno Haible  <bruno@clisp.org>
4138
4139         pipe2: Relicense under LGPLv2+.
4140         * modules/pipe2 (License): Change to LGPLv2+.
4141         Requested by Eric Blake, for libvirt.
4142
4143 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4144
4145         bootstrap: compute gnulib_extra_files after updating build_aux
4146         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4147         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4148
4149 2011-04-05  Eric Blake  <eblake@redhat.com>
4150
4151         bootstrap: preserve git whitelist item sorting
4152         * build-aux/bootstrap (sort_patterns): New function.
4153         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4154
4155 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4156
4157         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4158         sc_space_tab check.
4159
4160 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4161
4162         areadlink, areadlinkat: rewrite in terms of careadlinkat
4163         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4164         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4165         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4166         (malloc, realloc): Remove #undefs.
4167         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4168         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4169         readlink, ssize_t, stdint, unistd.
4170         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4171         areadlink, stdint.
4172
4173         careadlinkat: new module
4174         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4175         * modules/careadlinkat: New files, written by me with
4176         a review and feedback from Ben Pfaff in
4177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4178
4179 2011-04-01  Bruno Haible  <bruno@clisp.org>
4180
4181         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4182         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4183         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4184         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4185         Reported by Bruce Korb <bruce.korb@gmail.com>.
4186
4187 2011-04-01  Bruno Haible  <bruno@clisp.org>
4188
4189         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4190         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4191         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4192         * modules/wcpcpy (Depends-on): Add extensions.
4193         * modules/wcpncpy (Depends-on): Likewise.
4194         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4195         systems.
4196         * doc/posix-functions/wcpncpy.texi: Likewise.
4197         * doc/posix-functions/wcwidth.texi: Likewise.
4198
4199 2011-03-31  Eric Blake  <eblake@redhat.com>
4200
4201         nonblocking: fix mingw test failures
4202         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4203         non-blocking flag on regular file.
4204         (get_nonblocking_flag): Set errno on invalid fd.
4205         * tests/test-nonblocking.c (main): Avoid test failure on
4206         directories if fchdir is not active.
4207         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4208
4209 2011-03-31  Bruno Haible  <bruno@clisp.org>
4210
4211         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4212         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4213         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4214         Reported by Simon Josefsson <simon@josefsson.org>.
4215
4216 2011-03-31  Bruno Haible  <bruno@clisp.org>
4217         and Eric Blake  <eblake@redhat.com>
4218
4219         nonblocking: new module
4220         * modules/nonblocking: New module.
4221         * modules/nonblocking-tests: Likewise.
4222         * lib/nonblocking.h: New file.
4223         * lib/nonblocking.c: Likewise.
4224         * tests/test-nonblocking.c: New test.
4225         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4226
4227 2011-03-30  Bruno Haible  <bruno@clisp.org>
4228
4229         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4230         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4231         instead of 'printf' format for GCC >= 4.4.
4232         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4233         (fprintf, printf, vfprintf, vprintf): Declare with
4234         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4235         the system's vfprintf() function.
4236         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4237
4238 2011-03-30  Eric Blake  <eblake@redhat.com>
4239
4240         passfd: fix scoping bug
4241         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4242         before sendmsg/recvmsg.
4243
4244         passfd: standardize coding conventions
4245         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4246         can be learned at compile time.
4247         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4248         ifdefs.
4249         (sendfd, recvfd): Follow gnulib code conventions.
4250
4251         passfd: fix incorrect sendmsg arguments
4252         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4253         incorrect msg_controllen value.
4254         * modules/passfd-tests (Depends-on): Check for alarm.
4255         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4256         Reported by Bastien ROUCARIES.
4257
4258 2011-03-30  Bruno Haible  <bruno@clisp.org>
4259
4260         c-strcasestr: Relicense under LGPLv2+.
4261         * modules/c-strcasestr (License): Change to LGPLv2+.
4262         Requested by Eric Blake, for libvirt.
4263
4264 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4265
4266         * users.txt: Add libidn2.  Fix libtasn1 link.
4267
4268 2011-03-30  Jim Meyering  <meyering@redhat.com>
4269
4270         tests: readlink* ("",... fails with EINVAL on newer kernels
4271         readlink and readlinkat have typically failed with ENOENT for
4272         the invalid, empty file name,  "".  However, with the advent
4273         of linux-2.6.39, they fail with EINVAL.
4274         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4275         when operating on the empty file name.
4276         * tests/test-readlink.h (test_readlink): Likewise.
4277
4278 2011-03-29  Bruno Haible  <bruno@clisp.org>
4279
4280         Relicense some modules under LGPLv2+, for libidn2.
4281         * modules/array-mergesort (License): Change to LGPLv2+.
4282         * modules/c-strcaseeq (License): Likewise.
4283         * modules/striconveh (License): Likewise.
4284         * modules/striconveha (License): Likewise.
4285         * modules/uniconv/base (License): Likewise.
4286         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4287         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4288         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4289         * modules/unictype/base (License): Likewise.
4290         * modules/unictype/bidiclass-of (License): Likewise.
4291         * modules/unictype/category-M (License): Likewise.
4292         * modules/unictype/category-none (License): Likewise.
4293         * modules/unictype/category-of (License): Likewise.
4294         * modules/unictype/category-test (License): Likewise.
4295         * modules/unictype/category-test-withtable (License): Likewise.
4296         * modules/unictype/combining-class (License): Likewise.
4297         * modules/unictype/joiningtype-of (License): Likewise.
4298         * modules/unictype/scripts (License): Likewise.
4299         * modules/uninorm/base (License): Likewise.
4300         * modules/uninorm/canonical-decomposition (License): Likewise.
4301         * modules/uninorm/composition (License): Likewise.
4302         * modules/uninorm/decompose-internal (License): Likewise.
4303         * modules/uninorm/decomposition-table (License): Likewise.
4304         * modules/uninorm/nfc (License): Likewise.
4305         * modules/uninorm/nfd (License): Likewise.
4306         * modules/uninorm/u32-normalize (License): Likewise.
4307         * modules/unistr/base (License): Likewise.
4308         * modules/unistr/u32-cpy (License): Likewise.
4309         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4310         * modules/unistr/u32-to-u8 (License): Likewise.
4311         * modules/unistr/u32-uctomb (License): Likewise.
4312         * modules/unistr/u8-check (License): Likewise.
4313         * modules/unistr/u8-mblen (License): Likewise.
4314         * modules/unistr/u8-mbtouc (License): Likewise.
4315         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4316         * modules/unistr/u8-mbtoucr (License): Likewise.
4317         * modules/unistr/u8-prev (License): Likewise.
4318         * modules/unistr/u8-strlen (License): Likewise.
4319         * modules/unistr/u8-to-u32 (License): Likewise.
4320         * modules/unistr/u8-uctomb (License): Likewise.
4321         * modules/unitypes (License): Likewise.
4322         Requested by Simon Josefsson.
4323
4324 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4325
4326         lib-symbol-visibility: Add a notice.
4327         * modules/lib-symbol-visibility (Notice): New field.
4328
4329 2011-03-29  Bruno Haible  <bruno@clisp.org>
4330
4331         getaddrinfo: Doc fix.
4332         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4333         section "fixed in Gnulib".
4334
4335 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4336
4337         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4338         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4339
4340 2011-03-26  Bruno Haible  <bruno@clisp.org>
4341
4342         unictype/property-byname: Reduce the number of load-time relocations.
4343         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4344         (UC_PROPERTY_INDEX_*): New enumeration values.
4345         (uc_property_byname): Convert an index from the lookup table to an
4346         uc_property_t.
4347         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4348         values.
4349
4350 2011-03-26  Bruno Haible  <bruno@clisp.org>
4351
4352         unictype/property-byname: Allow omitted word separators and aliases.
4353         * lib/unictype/pr_byname.gperf: Add property names without word
4354         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4355         for 'space'.
4356
4357 2011-03-26  Bruno Haible  <bruno@clisp.org>
4358
4359         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4360         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4361         also hyphens to space.
4362         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4363         without spaces.
4364         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4365
4366 2011-03-26  Bruno Haible  <bruno@clisp.org>
4367
4368         unictype/joiningtype-byname: Recognize long names as well.
4369         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4370         a long name.
4371         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4372         unictype/joiningtype_byname.h.
4373         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4374         * lib/unictype/joiningtype_byname.gperf: New file.
4375         * modules/unictype/joiningtype-byname (Files): Add
4376         lib/unictype/joiningtype_byname.gperf.
4377         (Depends-on): Add gperf.
4378         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4379         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4380         long names.
4381
4382         Tests for module 'unictype/joiningtype-longname'.
4383         * modules/unictype/joiningtype-longname-tests: New file.
4384         * tests/unictype/test-joiningtype_longname.c: New file.
4385
4386         New module 'unictype/joiningtype-longname'.
4387         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4388         * lib/unictype/joiningtype_longname.c: New file.
4389         * modules/unictype/joiningtype-longname: New file.
4390         * modules/unictype/joiningtype-all (Depends-on): Add
4391         unictype/joiningtype-longname.
4392
4393 2011-03-26  Bruno Haible  <bruno@clisp.org>
4394
4395         unictype/bidiclass-byname: Recognize long names as well.
4396         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4397         name.
4398         * lib/unictype/bidi_byname.c: Include <string.h>,
4399         unictype/bidi_byname.h.
4400         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4401         * lib/unictype/bidi_byname.gperf: New file.
4402         * modules/unictype/bidiclass-byname (Files): Add
4403         lib/unictype/bidi_byname.gperf.
4404         (Depends-on): Add gperf.
4405         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4406         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4407         long names.
4408
4409         Tests for module 'unictype/bidiclass-longname'.
4410         * modules/unictype/bidiclass-longname-tests: New file.
4411         * tests/unictype/test-bidi_longname.c: New file.
4412
4413         New module 'unictype/bidiclass-longname'.
4414         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4415         * lib/unictype/bidi_longname.c: New file.
4416         * modules/unictype/bidiclass-longname: New file.
4417         * modules/unictype/bidiclass-all (Depends-on): Add
4418         unictype/bidiclass-longname.
4419
4420 2011-03-26  Bruno Haible  <bruno@clisp.org>
4421
4422         unictype/bidi*: Rename modules.
4423         * modules/unictype/bidiclass-all: Renamed from
4424         modules/unictype/bidicategory-all.
4425         * modules/unictype/bidiclass-name: Renamed from
4426         modules/unictype/bidiclass-name.
4427         (Description): Update.
4428         * modules/unictype/bidiclass-name-tests: Renamed from
4429         modules/unictype/bidicategory-name-tests.
4430         * modules/unictype/bidiclass-byname: Renamed from
4431         modules/unictype/bidicategory-byname.
4432         (Description): Update.
4433         * modules/unictype/bidiclass-byname-tests: Renamed from
4434         modules/unictype/bidicategory-byname-tests.
4435         * modules/unictype/bidiclass-of: Renamed from
4436         modules/unictype/bidicategory-of.
4437         (Description): Update.
4438         * modules/unictype/bidiclass-of-tests: Renamed from
4439         modules/unictype/bidicategory-of-tests.
4440         * modules/unictype/bidiclass-test: Renamed from
4441         modules/unictype/bidicategory-test.
4442         (Description): Update.
4443         * modules/unictype/bidiclass-test-tests: Renamed from
4444         modules/unictype/bidicategory-test-tests.
4445         * modules/unictype/bidicategory-all: New file, a simple redirection.
4446         * modules/unictype/bidicategory-name: Likewise.
4447         * modules/unictype/bidicategory-byname: Likewise.
4448         * modules/unictype/bidicategory-of: Likewise.
4449         * modules/unictype/bidicategory-test: Likewise.
4450         * modules/unictype/property-bidi-* (Dependencies): Update.
4451         * lib/unictype/bidi_*.c: Update comment.
4452
4453 2011-03-26  Bruno Haible  <bruno@clisp.org>
4454
4455         unictype/bidi*: Rename functions, part 2.
4456         * modules/unictype/bidicategory-name (configure.ac): Update required
4457         libunistring version.
4458         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4459
4460 2011-03-25  Bruno Haible  <bruno@clisp.org>
4461
4462         New module 'unictype/combining-class-all'.
4463         * modules/unictype/combining-class-all: New file.
4464
4465         Tests for module 'unictype/combining-class-byname'.
4466         * modules/unictype/combining-class-byname-tests: New file.
4467         * tests/unictype/test-combiningclass_byname.c: New file.
4468
4469         New module 'unictype/combining-class-byname'.
4470         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4471         * lib/unictype/combiningclass_byname.c: New file.
4472         * lib/unictype/combiningclass_byname.gperf: New file.
4473         * modules/unictype/combining-class-byname: New file.
4474
4475         Tests for module 'unictype/combining-class-longname'.
4476         * modules/unictype/combining-class-longname-tests: New file.
4477         * tests/unictype/test-combiningclass_longname.c: New file.
4478
4479         New module 'unictype/combining-class-longname'.
4480         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4481         * lib/unictype/combiningclass_longname.c: New file.
4482         * modules/unictype/combining-class-longname: New file.
4483
4484         Tests for module 'unictype/combining-class-name'.
4485         * modules/unictype/combining-class-name-tests: New file.
4486         * tests/unictype/test-combiningclass_name.c: New file.
4487
4488         New module 'unictype/combining-class-name'.
4489         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4490         * lib/unictype/combiningclass_name.c: New file.
4491         * modules/unictype/combining-class-name: New file.
4492
4493 2011-03-25  Bruno Haible  <bruno@clisp.org>
4494
4495         unictype/combining-class: Rename source files.
4496         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4497         of unictype/combining.h.
4498         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4499         Update.
4500         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4501         * modules/unictype/combining-class (Description): Fix.
4502         (Files, Makefile.am): Update.
4503         * tests/unictype/test-combiningclass.c: Renamed from
4504         tests/unictype/test-combining.c.
4505         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4506
4507 2011-03-25  Bruno Haible  <bruno@clisp.org>
4508
4509         unictype: Update list of canonical combining classes.
4510         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4511
4512 2011-03-25  Bruno Haible  <bruno@clisp.org>
4513
4514         unictype/category-byname: Recognize long names as well.
4515         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4516         a long name.
4517         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4518         unictype/categ_byname.h.
4519         (UC_CATEGORY_INDEX_*): New enumeration values.
4520         (uc_general_category_byname): Use uc_general_category_lookup and
4521         convert from index to value.
4522         * lib/unictype/categ_byname.gperf: New file.
4523         * modules/unictype/category-byname (Files): Add
4524         lib/unictype/categ_byname.gperf.
4525         (Depends-on): Add gperf.
4526         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4527         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4528         long names.
4529
4530         Tests for module 'unictype/category-longname'.
4531         * modules/unictype/category-longname-tests: New file.
4532         * tests/unictype/test-categ_longname.c: New file.
4533
4534         New module 'unictype/category-longname'.
4535         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4536         * lib/unictype/categ_longname.c: New file.
4537         * modules/unictype/category-longname: New file.
4538         * modules/unictype/category-all (Depends-on): Add it.
4539
4540 2011-03-25  Bruno Haible  <bruno@clisp.org>
4541
4542         Tests for module 'unictype/category-LC'.
4543         * modules/unictype/category-LC-tests: New file.
4544         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4545
4546         New module 'unictype/category-LC'.
4547         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4548         (UC_CATEGORY_LC): New declaration.
4549         (UC_CASED_LETTER): New macro.
4550         * lib/gen-uni-tables.c (is_category_LC): New function.
4551         (output_categories): Also handle category LC.
4552         (UC_CATEGORY_MASK_LC): New enumeration value.
4553         (general_category_byname): Also handle category LC.
4554         * lib/unictype/categ_LC.c: New file.
4555         * lib/unictype/categ_LC.h: New file, automatically generated.
4556         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4557         category LC.
4558         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4559         * modules/unictype/category-LC: New file.
4560         * modules/unictype/category-byname (Depends-on): Add
4561         unictype/category-LC.
4562         * modules/unictype/category-all (Depends-on): Likewise.
4563
4564 2011-03-25  Eric Blake  <eblake@redhat.com>
4565
4566         xmalloc: revert yesterday's regression
4567         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4568         realloc's underlying behavior (allowing allocation of zero-size
4569         objects, especially if malloc-gnu is also in use).
4570
4571 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4572
4573         maint.mk: add missing version to VC-tag
4574         * top/maint.mk: git tag was missing actual tag name; add it.
4575
4576         valgrind: do leak checking, and exit with code 1 on error (not 0)
4577         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4578         to VALGRIND.
4579
4580 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4581
4582         posix-modules: say what it does.
4583         * posix-modules: Add a line to the --help output saying what it does.
4584
4585 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         xmalloc: Do not leak if underlying realloc is C99 compatible.
4588         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4589         This avoids a leak on C99-based systems.  See
4590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4591
4592 2011-03-24  Eric Blake  <eblake@redhat.com>
4593
4594         realloc: document portability problem
4595         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4596         passing 0 size to realloc.
4597
4598 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4599
4600         doc: update users.txt
4601         * users.txt: Add cvsps, tmpwatch
4602
4603 2011-03-23  Matt Rice  <ratmice@gmail.com>
4604
4605         doc: update users.txt
4606         * users.txt: Add gdb.
4607
4608 2011-03-23  Jim Meyering  <meyering@redhat.com>
4609
4610         doc: update users.txt
4611         Looking through matches up to the following URL (there are still
4612         several more pages), I found several projects that use gnulib:
4613         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4614         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4615         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4616
4617 2011-03-22  Bruno Haible  <bruno@clisp.org>
4618
4619         unictype/bidi*: Rename functions.
4620         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4621         uc_bidi_class, uc_is_bidi_class): New declarations.
4622         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4623         uc_bidi_category_byname.
4624         (uc_bidi_category_byname): New function.
4625         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4626         u_bidi_category_name.
4627         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4628         (uc_bidi_category_name): New function.
4629         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4630         uc_bidi_category.
4631         (uc_bidi_category): New function.
4632         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4633         uc_is_bidi_category. Invoke uc_bidi_class.
4634         (uc_is_bidi_category): New function.
4635         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4636         instead of uc_bidi_category_byname.
4637         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4638         instead of uc_bidi_category_name.
4639         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4640         uc_bidi_category.
4641         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4642         instead of uc_is_bidi_category.
4643
4644 2011-03-21  Bruno Haible  <bruno@clisp.org>
4645
4646         New module 'unictype/joininggroup-all'.
4647         * modules/unictype/joininggroup-all: New file.
4648
4649         Tests for module 'unictype/joininggroup-of'.
4650         * modules/unictype/joininggroup-of-tests: New file.
4651         * tests/unictype/test-joininggroup_of.c: New file.
4652         * tests/unictype/test-joininggroup_of.h: New file, automatically
4653         generated by gen-uni-tables.
4654
4655         New module 'unictype/joininggroup-of'.
4656         * modules/unictype/joininggroup-of: New file.
4657         * lib/unictype/joininggroup_of.c: New file.
4658         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4659         gen-uni-tables.
4660
4661         Tests for module 'unictype/joininggroup-byname'.
4662         * modules/unictype/joininggroup-byname-tests: New file.
4663         * tests/unictype/test-joininggroup_byname.c: New file.
4664
4665         New module 'unictype/joininggroup-byname'.
4666         * modules/unictype/joininggroup-byname: New file.
4667         * lib/unictype/joininggroup_byname.c: New file.
4668         * lib/unictype/joininggroup_byname.gperf: New file.
4669
4670         Tests for module 'unictype/joininggroup-name'.
4671         * modules/unictype/joininggroup-name-tests: New file.
4672         * tests/unictype/test-joininggroup_name.c: New file.
4673
4674         New module 'unictype/joininggroup-name'.
4675         * modules/unictype/joininggroup-name: New file.
4676         * lib/unictype/joininggroup_name.c: New file.
4677         * lib/unictype/joininggroup_name.h: New file.
4678
4679         New module 'unictype/joiningtype-all'.
4680         * modules/unictype/joiningtype-all: New file.
4681
4682         Tests for module 'unictype/joiningtype-of'.
4683         * modules/unictype/joiningtype-of-tests: New file.
4684         * tests/unictype/test-joiningtype_of.c: New file.
4685         * tests/unictype/test-joiningtype_of.h: New file, automatically
4686         generated by gen-uni-tables.
4687
4688         New module 'unictype/joiningtype-of'.
4689         * modules/unictype/joiningtype-of: New file.
4690         * lib/unictype/joiningtype_of.c: New file.
4691         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4692         gen-uni-tables.
4693
4694         Tests for module 'unictype/joiningtype-byname'.
4695         * modules/unictype/joiningtype-byname-tests: New file.
4696         * tests/unictype/test-joiningtype_byname.c: New file.
4697
4698         New module 'unictype/joiningtype-byname'.
4699         * modules/unictype/joiningtype-byname: New file.
4700         * lib/unictype/joiningtype_byname.c: New file.
4701
4702         Tests for module 'unictype/joiningtype-name'.
4703         * modules/unictype/joiningtype-name-tests: New file.
4704         * tests/unictype/test-joiningtype_name.c: New file.
4705
4706         New module 'unictype/joiningtype-name'.
4707         * modules/unictype/joiningtype-name: New file.
4708         * lib/unictype/joiningtype_name.c: New file.
4709
4710         unictype: Add support for Arabic shaping properties.
4711         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4712         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4713         declarations.
4714         (UC_JOINING_GROUP_*): New enumeration values.
4715         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4716         declarations.
4717         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4718         (unicode_joining_type): New variable.
4719         (UC_JOINING_GROUP_*): New enumeration values.
4720         (unicode_joining_group): New variable.
4721         (fill_arabicshaping, joining_type_as_c_identifier,
4722         output_joining_type_test, output_joining_type,
4723         joining_group_as_c_identifier, output_joining_group_test,
4724         output_joining_group): New functions.
4725         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4726         fill_arabicshaping and output_joining_type_test, output_joining_type,
4727         output_joining_group_test, output_joining_group.
4728         Reported by Simon Josefsson.
4729
4730 2011-03-21  Jim Meyering  <meyering@redhat.com>
4731
4732         strftime: fix a bug in yesterday's change
4733         * lib/strftime.c (add): Accommodate width's initial value of -1.
4734         Otherwise, nstrftime would copy uninitialized data into
4735         the result buffer.
4736
4737 2011-03-21  Jim Meyering  <meyering@redhat.com>
4738
4739         tests: add strftime-tests module
4740         * tests/test-strftime.c: New file.
4741         * modules/strftime-tests: New module.
4742
4743 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4744
4745         strftime: don't assume a byte count fits in 'int'
4746         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4747         found this problem by static analysis, using gcc -Wstrict-overflow
4748         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4749         on an integer overflow having undefined behavior, but it turns out
4750         that the argument is a size, which might not fit in 'int' anyway,
4751
4752 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4753
4754         stdio: don't require ignore_value around fwrite
4755
4756         This patch works around libc bug 11959
4757         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4758         Without this patch, applications must often write
4759         ignore_value (fwrite (...)) even though the ignore_value is
4760         not helpful here.  It's common to write many objects, using
4761         fwrite/printf/etc., and then use ferror to detect output error.
4762
4763         I considered making this patch optional, but decided against it,
4764         because libc is obviously being inconsistent here: there is no
4765         reason libc should insist that user code must inspect fwrite
4766         return's value without also insisting that it inspect printf's,
4767         putchar's, etc.  If user code wants to have a strict style where
4768         all these functions' values are checked (so that ferror need not
4769         be checked), we could add support for that style in a new gnulib
4770         module, but in the meantime it's better to be consistent and to
4771         support common usage.
4772
4773         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4774         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4775         that we are compiling in checking mode, and if not C++, and
4776         if not already wrapping fwrite for some other reason.
4777         (fwrite): #define to rpl_fwrite if the latter is defined.
4778
4779 2011-03-20  Bruno Haible  <bruno@clisp.org>
4780
4781         verror: Fix compilation error introduced on 2011-02-13.
4782         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4783         instead of __attribute__.
4784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4785
4786 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4787             Bruno Haible  <bruno@clisp.org>
4788
4789         socklen: do not depend on sys_socket
4790         While trying to modify Emacs to use gnulib's socklen module,
4791         I discovered a circular dependency: socklen depends on sys_socket
4792         and vice versa.  Emacs can use socklen, but it does not need
4793         sys_socket because it has its own substitute for sys/socket.h.
4794         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4795         gl_TYPE_SOCKLEN_T.
4796         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4797         gl_PREREQ_SYS_H_SOCKET.
4798         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4799         gl_PREREQ_SYS_H_SOCKET.
4800         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4801         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4802         * modules/socklen (Depends-on): Do not depend on sys_socket.
4803         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4804
4805 2011-03-20  Jim Meyering  <meyering@redhat.com>
4806
4807         maint.mk: sort file names *after* new transformation
4808         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4809         prefix would have led to an unwarranted failure in GNU parted.
4810         Sort after that transformation.
4811
4812 2011-03-19  Jim Meyering  <meyering@redhat.com>
4813
4814         maint.mk: fix po-file syntax-check rule
4815         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4816         Patch by Bruno Haible.
4817
4818 2011-03-19  Bruno Haible  <bruno@clisp.org>
4819
4820         socklen: Update comment.
4821         * m4/socklen.m4: Update comment about platforms.
4822
4823 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4824             Bruno Haible  <bruno@clisp.org>
4825
4826         inet_ntop, inet_pton: Simplify.
4827         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4828         documented to provide socklen_t and we already depend on sys_socket.
4829         * modules/inet_pton (Depends-on): Likewise.
4830         * lib/arpa_inet.in.h: Adjust comment.
4831
4832 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4833             Bruno Haible  <bruno@clisp.org>
4834
4835         netdb: Simplify.
4836         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4837         documented to provide socklen_t and we already depend on sys_socket.
4838         * lib/netdb.in.h: Adjust comment.
4839
4840 2011-03-19  Bruno Haible  <bruno@clisp.org>
4841
4842         sys_socket, netdb: Document problem with socklen_t.
4843         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4844         platforms.
4845         * doc/posix-headers/netdb.texi: Likewise.
4846
4847 2011-03-18  Eric Blake  <eblake@redhat.com>
4848
4849         maint.mk: let po check work in VPATH build
4850         * top/maint.mk (po_file): Allow cfg.mk override.
4851         (sc_po_check): Allow VPATH use.
4852         Reported by Jiri Denemark.
4853
4854 2011-03-16  Jim Meyering  <meyering@redhat.com>
4855
4856         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4857         Before, you would have had to create one .x-sc_ file per rule in order
4858         to exempt offending files.  Now, you may instead use a Make variable --
4859         usually defined in cfg.mk -- whose name identifies the affected rule.
4860         * top/maint.mk (_sc_excl): Define.
4861         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4862         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4863
4864 2011-03-13  Bruno Haible  <bruno@clisp.org>
4865
4866         ignore-value tests: Avoid warnings.
4867         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4868         empty for gcc < 3.4.
4869
4870 2011-03-13  Bruno Haible  <bruno@clisp.org>
4871
4872         passfd: Fix link error on Solaris.
4873         * modules/passfd (Description): Correct.
4874         (Depends-on): Add socketlib.
4875         (Link): New section.
4876         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4877
4878 2011-03-13  Bruno Haible  <bruno@clisp.org>
4879
4880         passfd: Fix link error on AIX 5.2.
4881         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4882
4883 2011-03-13  Bruno Haible  <bruno@clisp.org>
4884
4885         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4886         * lib/sys_socket.in.h: Include <stddef.h>.
4887         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4888         CMSG_FIRSTHDR. Remove unused variable.
4889
4890 2011-03-13  Bruno Haible  <bruno@clisp.org>
4891
4892         passfd: Fix compilation error on OpenBSD.
4893         * lib/passfd.c: Include <sys/uio.h>.
4894
4895 2011-03-13  Bruno Haible  <bruno@clisp.org>
4896
4897         passfd test: Fix warnings.
4898         * tests/test-passfd.c: Include <sys/wait.h>.
4899         (main): Fix typo.
4900
4901 2011-03-13  Bruno Haible  <bruno@clisp.org>
4902
4903         passfd module, part 4, tweaks.
4904         * tests/test-passfd.c: Reorder includes.
4905         (main): Fix perror and printf calls.
4906
4907 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4908
4909         passfd module, part 4.
4910         * modules/passfd-tests: New file.
4911         * tests/test-passfd.c: New file.
4912
4913 2011-03-13  Jim Meyering  <meyering@redhat.com>
4914
4915         Makefile: rely on GNU make; derive syntax-check rule names
4916         Rather than requiring that each sc_ rule be listed as a dependent
4917         of "check", use features of GNU make to derive the list.
4918         * Makefile (syntax-check-rules): Define.
4919         (check): Depend on the new variable, not the hard-coded list.
4920
4921 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4922             Bruno Haible  <bruno@clisp.org>
4923
4924         passfd module, part 3.
4925         * lib/passfd.h (recvfd): Add a flags argument.
4926         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4927         (recvfd): Add a flags argument.
4928         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4929         exists.
4930         * modules/passfd (Depends-on): Add cloexec.
4931         Suggested by Eric Blake.
4932
4933 2011-03-13  Bruno Haible  <bruno@clisp.org>
4934
4935         passfd module, part 2, tweaks.
4936         * modules/passfd (Files): Reorder.
4937         (Depends-on): Remove errno.
4938         (Include): Remove <sys/socket.h>, <sys/un.h>.
4939         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4940         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4941         specification header. Include <sys/socket.h> always. Don't include
4942         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4943         (sendfd): Clarify that it sets errno when it fails.
4944         (recvfd): Fix specification.
4945
4946 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4947
4948         passfd module, part 2.
4949         * modules/passfd: New file.
4950         * lib/passfd.h: New file.
4951         * lib/passfd.c: New file.
4952
4953 2011-03-12  Bruno Haible  <bruno@clisp.org>
4954
4955         wcswidth, mbswidth: Avoid integer overflow.
4956         * lib/wcswidth.c: Include <limits.h>.
4957         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4958         * lib/mbswidth.c: Include <limits.h>.
4959         (mbsnwidth): Avoid 'int' overflow.
4960         Reported by Jim Meyering.
4961
4962 2011-03-12  Bruno Haible  <bruno@clisp.org>
4963
4964         futimens, utimensat: Avoid endless recursion on Solaris 10.
4965         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4966         Solaris.
4967         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4968         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4969
4970 2011-03-11  Jim Meyering  <meyering@redhat.com>
4971
4972         maint.mk: relax a regexp to accommodate other formatting styles
4973         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4974         between "ngettext" and the following "(".
4975
4976 2011-03-11  Pádraig Brady <P@draigBrady.com>
4977
4978         maint.mk: suppress a false positive warning
4979         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4980         diagnostics are marked with ngettext.
4981
4982 2011-03-10  Eric Blake  <eblake@redhat.com>
4983
4984         wchar: add explicit dependencies, for Tru64
4985         * modules/mbmemcasecoll (Depends-on): Add wchar.
4986         * modules/mbtowc (Depends-on): Likewise.
4987         * modules/vasnprintf (Depends-on): Likewise.
4988         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4989         * modules/wctomb (Depends-on): Likewise.
4990         Reported by Peter O'Gorman.
4991
4992 2011-03-08  Bruno Haible  <bruno@clisp.org>
4993
4994         passfd module, part 1, tweaks.
4995         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4996         Improve indentation. Improve AC_MSG_CHECKING messages.
4997         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4998         gl_SOCKET_FAMILIES.
4999
5000 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5001
5002         passfd module, part 1.
5003         * m4/afunix.m4: New file.
5004         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5005         sockets.
5006
5007 2011-03-08  Bruno Haible  <bruno@clisp.org>
5008
5009         regex-quote: New API.
5010         * lib/regex-quote.h: Include <stdbool.h>.
5011         (struct regex_quote_spec): New type.
5012         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5013         New declarations.
5014         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5015         'const struct regex_quote_spec *' argument.
5016         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5017         (pcre_special): New constant.
5018         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5019         New functions.
5020         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5021         'const struct regex_quote_spec *' argument.
5022         * modules/regex-quote (Depends-on): Add stdbool.
5023         * tests/test-regex-quote.c (check): Update for new API. Add test for
5024         anchored results.
5025         * NEWS: Mention the API change.
5026         Reported by Reuben Thomas and Eric Blake.
5027
5028 2011-03-06  Bruno Haible  <bruno@clisp.org>
5029
5030         regex-quote: Fix creation of POSIX extended regular expressions.
5031         * lib/regex-quote.c (ere_special): Add grouping and alternation
5032         operators.
5033
5034 2011-03-05  Bruno Haible  <bruno@clisp.org>
5035
5036         doc: Improve doc regarding autopoint vs. gnulib.
5037         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5038         disable autopoint while running autoreconf.
5039         Suggested by Ralf Wildenhues.
5040
5041 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5042
5043         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5044         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5045
5046 2011-03-03  Bruce Korb  <bkorb@gnu.org>
5047
5048         parse-duration: remove xalloc.h dependency
5049         * lib/parse-duration.c (parse_period): handle NULL return from
5050         strdup instead of calling xstrdup().
5051         * modules/parse-duration: remove "xalloc" dependency
5052
5053 2011-03-03  Matthew Booth  <mbooth@redhat.com>
5054
5055         bootstrap: honor m4_base when running aclocal
5056         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5057
5058 2011-03-02  Jim Meyering  <meyering@redhat.com>
5059
5060         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5061         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5062         on request from Matt Booth.
5063
5064 2011-03-01  Eric Blake  <eblake@redhat.com>
5065
5066         test-link: work on Hurd
5067         * tests/test-link.h (test_link): Hurd rejects linking directories
5068         with EISDIR instead of the POSIX-mandated EPERM.
5069
5070 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5071
5072         stdio: simplify by moving files to printf-posix, sigpipe
5073         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5074         since this symbol is needed only if printf is replaced.
5075         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5076         Require gl_ASM_SYMBOL_PREFIX.
5077         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5078         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5079         (Depends-on): Add 'raise'.
5080         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5081         * modules/stdio (Files): Remove lib/stdio-write.c,
5082         m4/asm-underscore.m4.
5083         (Depends-on): Remove 'raise'.
5084
5085         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5086         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5087         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5088         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5089
5090 2011-02-28  Bruno Haible  <bruno@clisp.org>
5091
5092         localcharset: Assume ANSI C behaviour of free().
5093         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5094         calling free().
5095         Suggested by Simon Josefsson <simon@josefsson.org>.
5096
5097 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5098             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5099             Bruno Haible  <bruno@clisp.org>  (tiny change)
5100
5101         On Cygwin, use /proc file system instead of win32 API.
5102         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5103         Win32 file names.
5104         (DllMain): Simplify by removing Cygwin specific code.
5105         (find_shared_library_fullname): Use Linux specific implementation also
5106         for Cygwin.
5107         (get_shared_library_fullname): Update accordingly.
5108         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5109         Win32 file names.
5110         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5111         Cygwin specific code.
5112
5113 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5114             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5115
5116         Fix OpenMP flag detection for various Fortran compilers.
5117         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5118         OpenMP-conditional compilation construct, to force compile
5119         failure with missing OpenMP flag.
5120         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5121
5122 2011-02-25  Eric Blake  <eblake@redhat.com>
5123
5124         strstr: expand test coverage
5125         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5126         compilation.
5127         * tests/test-memmem.c (main): Duplicate tests.
5128         * tests/test-strcasestr.c (main): Likewise.
5129         * tests/test-c-strcasestr.c (main): Likewise.
5130
5131 2011-02-25  Jim Meyering  <meyering@redhat.com>
5132
5133         maint.mk: detect missing-NL-at-EOF, too
5134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5135         it also detects when a file lacks a newline at EOF.
5136         (require_exactly_one_NL_at_EOF_): Renamed from
5137         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5138         since people may well have .x-sc_... file names tied to the
5139         existing name.  Suggested by Eric Blake.
5140
5141 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5142
5143         dirname: move m4/dos.m4 functionality into lib/dosname.h
5144
5145         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5146         extracts symbols from it, puts them into config.h; but it's much
5147         easier to use the symbols directly.  filename.h already does this,
5148         but it disagrees with dos.m4 in some respects.  This patch
5149         introduces a different include file dosname.h that packages up
5150         dos.m4, and then later we can work on merging filename.h and
5151         dosname.h.  Applications that need only the easy-to-configure
5152         symbols should consider including dosname.h rather than dirname.h.
5153         * NEWS: Mention incompatible changes.
5154         * m4/dos.m4: Remove.
5155         * lib/dosname.h, modules/dosname: New files.
5156         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5157         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5158         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5159         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5160         Include dosname.h, not dirname.h.
5161         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5162         Include dosname.h, for definitions of symbols like ISSLASH
5163         that used to be in config.h.
5164         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5165         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5166         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5167         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5168         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5169         * modules/rmdir (Files): Likewise.
5170         * modules/stat (Files): Likewise.
5171         * modules/unlink (Files): Likewise.
5172         * modules/dirname-lgpl (Depends-on): Add dosname.
5173         * modules/lstat (Depends-on): Likewise.
5174         * modules/openat (Depends-on): Likewise.
5175         * modules/rmdir (Depends-on): Likewise.
5176         * modules/savewd (Depends-on): Likewise.
5177         * modules/stat (Depends-on): Likewise.
5178         * modules/unlink (Depends-on): Likewise.
5179         * modules/openat (Depends-on): Remove dirname-lgpl.
5180         * modules/savewd (Depends-on): Likewise.
5181         * tests/test-dirname.c: Do not use removed symbols like
5182         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5183         the remaining symbols, e.g., ISSLASH ('\\').
5184
5185 2011-02-25  Eric Blake  <eblake@redhat.com>
5186
5187         strstr: revert patches that introduced bug and pessimization
5188         * lib/str-two-way.h: Add another reference.
5189         (two_way_short_needle, two_way_long_needle): Revert changes from
5190         2011-02-24; they pessimize search speed.
5191         (critical_factorization): Partially revert changes from
5192         2010-06-22; they violate the requirement that the left half of the
5193         needle be smaller than the period of the needle.
5194
5195 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         filenamecat: remove unnecessary dependency on dirname-lgpl
5198         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5199         is no direct dependency, just an indirect one via filenamecat-lgpl.
5200
5201         remove: remove unnecessary use of m4/dos.m4
5202         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5203         * modules/remove (FILES): Remove m4/dos.m4.
5204
5205         * lib/openat-proc.c: Don't include dirname.h; not needed.
5206
5207         backupfile: remove unnecessary use of m4/dos.m4
5208         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5209         of its symbols are used by the backupfile code.  backupfile.c does
5210         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5211         for the rare case of programs that want all their backup file
5212         names to live within 8+3 limits, and dos.m4 doesn't address that.
5213         * modules/backupfile (Files): Remove m4/dos.m4.
5214
5215 2011-02-24  Jim Meyering  <meyering@redhat.com>
5216
5217         strstr: fix a bug whereby strstr would mistakenly return NULL
5218         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5219         in period calculation.
5220         (two_way_long_needle): Likewise.
5221         The original problem was reported by Mike Stump in
5222         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5223         Ralf Wildenhues provided the short needle and haystack.
5224         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5225         Add a more involved test to trigger the bug in two_way_long_needle.
5226
5227 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5228
5229         gnulib-tool: remove use of bold display in help screen
5230         * gnulib-tool (func_usage): Do not use bold display anymore in the
5231         help screen.  That was just meant to be a temporary emphasis for a
5232         backward-incompatible change.
5233
5234 2011-02-23  Bruno Haible  <bruno@clisp.org>
5235
5236         Fix misindentation of preprocessor directives.
5237         * lib/argp-namefrob.h: Reindent preprocessor directives.
5238         * lib/getopt_int.h (struct _getopt_data): Likewise.
5239         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5240         * lib/vasnprintf.c (decode_long_double): Likewise.
5241         * tests/test-argmatch.c: Insert blank lines, for clarity.
5242         * tests/test-exclude.c: Likewise.
5243
5244 2011-02-22  Bruno Haible  <bruno@clisp.org>
5245
5246         ioctl: Fix for MacOS X in 64-bit mode.
5247         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5248         value.
5249         Suggested by Eric Blake.
5250         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5251
5252 2011-02-22  Jim Meyering  <meyering@redhat.com>
5253
5254         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5255         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5256         in lib/.
5257
5258 2011-02-22  Eric Blake  <eblake@redhat.com>
5259
5260         maint: avoid any CDPATH issue
5261         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5262
5263         maint: adjust cpp indentation for my modules, as well
5264         * Makefile (sc_cpp_indent_check): Add my name.
5265         * lib/fbufmode.c: Filter through cppi.
5266         * lib/fpurge.c: Likewise.
5267         * lib/freadable.c: Likewise.
5268         * lib/freading.c: Likewise.
5269         * lib/fwritable.c: Likewise.
5270         * lib/fwriting.c: Likewise.
5271         * lib/sigaction.c: Likewise.
5272
5273 2011-02-22  Jim Meyering  <meyering@redhat.com>
5274
5275         maint: adjust cpp indentation to reflect nesting depth
5276         I.e., in a block of code that begins with an unnested "#if",
5277         put one space between the "#" in column 1 and following token.
5278         For example,
5279         -#include <sys/vfs.h>
5280         +# include <sys/vfs.h>
5281         Do this only in .c files that are part of a module I maintain.
5282         * lib/linkat.c: Filter through cppi.
5283         * lib/nanosleep.c: Likewise.
5284         * lib/openat.c: Likewise.
5285         * lib/openat-die.c: Likewise.
5286         * lib/dup3.c: Likewise.
5287         * lib/fchownat.c: Likewise.
5288         * lib/flock.c: Likewise.
5289         * lib/fsync.c: Likewise.
5290         * lib/fts.c: Likewise.
5291         * lib/getpass.c: Likewise.
5292         * lib/gettimeofday.c: Likewise.
5293         * lib/userspec.c: Likewise.
5294         * Makefile (sc_cpp_indent_check): New rule, to check this.
5295
5296 2011-02-22  Bruno Haible  <bruno@clisp.org>
5297
5298         New module 'wctomb'.
5299         * lib/stdlib.in.h (wctomb): New declaration.
5300         * lib/wctomb.c: New file.
5301         * lib/wctomb-impl.h: New file.
5302         * m4/wctomb.m4: New file.
5303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5304         REPLACE_WCTOMB.
5305         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5306         REPLACE_WCTOMB.
5307         * modules/wctomb: New file.
5308         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5309         * doc/posix-functions/wctomb.texi: Mention the new module.
5310         * modules/wctob (Depends-on): Add wctomb.
5311
5312 2011-02-22  Bruno Haible  <bruno@clisp.org>
5313
5314         New module 'mbtowc'.
5315         * lib/stdlib.in.h (mbtowc): New declaration.
5316         * lib/mbtowc.c: New file.
5317         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5318         * m4/mbtowc.m4: New file.
5319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5320         REPLACE_MBTOWC.
5321         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5322         REPLACE_MBTOWC.
5323         * modules/mbtowc: New file.
5324         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5325         * doc/posix-functions/mbtowc.texi: Mention the new module.
5326         * modules/btowc (Depends-on): Add mbtowc.
5327
5328 2011-02-22  Bruno Haible  <bruno@clisp.org>
5329
5330         wcrtomb: Add more tests for native Windows platforms.
5331         * tests/test-wcrtomb-w32-1.sh: New file.
5332         * tests/test-wcrtomb-w32-2.sh: New file.
5333         * tests/test-wcrtomb-w32-3.sh: New file.
5334         * tests/test-wcrtomb-w32-4.sh: New file.
5335         * tests/test-wcrtomb-w32-5.sh: New file.
5336         * tests/test-wcrtomb-w32.c: New file.
5337         * modules/wcrtomb-tests (Files): Add them.
5338         (Makefile.am): Arrange to run these tests.
5339         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5340         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5341
5342 2011-02-20  Bruno Haible  <bruno@clisp.org>
5343
5344         wcrtomb: Enhance test.
5345         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5346
5347 2011-02-20  Bruno Haible  <bruno@clisp.org>
5348
5349         mbrtowc: Tiny optimization.
5350         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5351
5352 2011-02-20  Jim Meyering  <meyering@redhat.com>
5353
5354         test-exclude.c: remove unmatched #endif
5355         * tests/test-exclude.c: Remove stray #endif, left over from
5356         the change of a week ago.
5357
5358 2011-02-19  Jim Meyering  <meyering@redhat.com>
5359
5360         git-version-gen: skip "-dirty" check when appropriate
5361         * build-aux/git-version-gen: Don't run any git commands when the
5362         version string comes from .tarball-version.  Prior to this, we
5363         would run git update-index --refresh even from a just-unpacked
5364         tarball directory, and that could affect a .git/ directory in a
5365         parent of the build directory.  Reported by Mike Frysinger.
5366
5367 2011-02-19  Bruno Haible  <bruno@clisp.org>
5368
5369         unictype/property-byname: Reduce the size of the 'data' segment.
5370         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5371
5372 2011-02-19  Bruno Haible  <bruno@clisp.org>
5373
5374         unictype/scripts: Reduce the size of the 'data' segment.
5375         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5376         '%pic'.
5377         * lib/unictype/scripts_byname.gperf: Regenerated.
5378
5379 2011-02-19  Bruno Haible  <bruno@clisp.org>
5380
5381         stdint: Update documentation.
5382         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5383
5384 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5385
5386         stdint: omit redundant check for wchar.h
5387         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5388         always tests whether wchar.h exists, so remove the now-redundant test.
5389
5390 2011-02-18  Bruno Haible  <bruno@clisp.org>
5391
5392         stdint: Cut dependency to module 'wchar'.
5393         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5394         include the necessary prerequisites.
5395         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5396         * modules/stdint (Depends-on): Remove wchar.
5397         (Makefile.am): Substitute HAVE_WCHAR_H.
5398         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5399
5400 2011-02-18  Eric Blake  <eblake@redhat.com>
5401
5402         longlong: skip, rather than fail, on cross-compilation
5403         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5404         when cross-compiling; regression from 2011-02-16.
5405
5406 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5407
5408         * NEWS: Mention 2011-02-08 change to stdlib.
5409
5410 2011-02-17  Bruno Haible  <bruno@clisp.org>
5411
5412         getloadavg: Add comments about platforms.
5413         * m4/getloadavg.m4: Add comment.
5414         * lib/getloadavg.c: Likewise.
5415
5416 2011-02-17  Bruno Haible  <bruno@clisp.org>
5417
5418         getloadavg: Fix link error on Solaris 2.6.
5419         * modules/getloadavg (Link): New section.
5420         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5421         linking test-getloadavg.
5422         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5423         getloadavg.
5424
5425 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5428         It was 'int', but this doesn't match the IRIX 6.5 manual.
5429         Suggested by Bruno Haible in
5430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5431
5432 2011-02-17  Bruno Haible  <bruno@clisp.org>
5433
5434         havelib: Fix comments.
5435         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5436         change.
5437
5438 2011-02-17  Bruno Haible  <bruno@clisp.org>
5439
5440         havelib: Update config.rpath.
5441         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5442
5443 2011-02-17  Bruno Haible  <bruno@clisp.org>
5444
5445         getloadavg test: Add some plausibility checks.
5446         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5447         is improbable.
5448
5449 2011-02-16  Eric Blake  <eblake@redhat.com>
5450
5451         maintainer-makefile: make syntax-check a no-op from tarballs
5452         * top/maint.mk (no-vc-detected): New rule.
5453         (local-checks-available): Use it to avoid hanging if someone tries
5454         'make syntax-check' from a tarball.  Also append to any non-syntax
5455         checks already defined in cfg.mk.
5456
5457 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5458
5459         longlong: tune, particularly for common case of c99
5460
5461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5462         or running anything if c99, or if unsigned long long int does not
5463         work.  In either case, we know the answer without further tests.
5464         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5465         it at most once, and use its results for both long long int and
5466         unsigned long long int.  This is more likely to be efficient in
5467         the common case where the program wants to check for both long
5468         long int and unsigned long long int.
5469         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5470         since the answer is already known.
5471
5472 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5473
5474         getloadavg: set errno
5475         * lib/getloadavg.c: Set errno when returning -1.  If no other
5476         error number looks appropriate, set it to ENOSYS if the getloadavg
5477         looks like it can't possibly ever work, ENOTSUP otherwise.
5478         Suggested by Bruno Haible in
5479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5480
5481         getloadavg: trim unused parts and speed up 'configure'
5482         * NEWS: Document this.
5483         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5484         always compiled if getloadavg is absent.
5485         Move test code to ...
5486         * tests/test-getloadavg.c: New file, containing previous
5487         contents of test from lib/getloadavg.c.  It also contains
5488         suggestions by Bruno Haible in
5489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5490         * modules/getloadavg-tests: New file.
5491         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5492         Do tests in the same order as they're needed for getloadavg.c.
5493         Omit setgid-related tests that generate symbols KMEM_GROUP,
5494         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5495         Do only the tests that are needed to see whether the system has
5496         getloadavg, moving the other tests into ...
5497         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5498         NLIST_NAME_UNION; nobody should be using it.  Do not define
5499         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5500         relevant, as the user of this module shouldn't care how getloadavg
5501         is implemented.
5502
5503         getloadavg: omit unused var
5504         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5505
5506 2011-02-15  Jim Meyering  <meyering@redhat.com>
5507
5508         doc: update users.txt
5509         * users.txt: Update iwhd's URL.
5510
5511 2011-02-13  Bruno Haible  <bruno@clisp.org>
5512
5513         Consistent macro naming for macros that use GCC __attribute__.
5514         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5515         _ATTRIBUTE_NONNULL_.
5516         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5517         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5518         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5519         ATTRIBUTE_DEPRECATED.
5520         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5521         ATTRIBUTE_NORETURN.
5522         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5523         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5524         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5525         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5526         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5527         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5528         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5529         ATTRIBUTE_SENTINEL.
5530         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5531         ATTRIBUTE_RETURN_CHECK.
5532         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5533         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5534         ATTRIBUTE_NORETURN.
5535         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5536         Reported by Paul Eggert.
5537
5538 2011-02-13  Bruno Haible  <bruno@clisp.org>
5539
5540         Don't interfere with a program's definition of __attribute__.
5541         * lib/argp.h (__attribute__): Remove definition.
5542         (_GL_ATTRIBUTE_FORMAT): New macro.
5543         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5544         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5545         (_GL_ATTRIBUTE_FORMAT): New macro.
5546         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5547         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5548         GCC 3 or newer.
5549         * lib/error.h (__attribute__): Remove definition.
5550         (_GL_ATTRIBUTE_FORMAT): New macro.
5551         (error, error_at_line): Use it.
5552         * lib/hash.h (__attribute__): Remove definition.
5553         (ATTRIBUTE_WUR): Update definition. Define always.
5554         * lib/openat.h (__attribute__): Remove definition.
5555         (ATTRIBUTE_NORETURN): Update definition. Define always.
5556         * lib/sigpipe-die.h (__attribute__): Remove definition.
5557         (ATTRIBUTE_NORETURN): Update definition. Define always.
5558         * lib/vasnprintf.h (__attribute__): Remove definition.
5559         (_GL_ATTRIBUTE_FORMAT): New macro.
5560         (asnprintf, vasnprintf): Use it.
5561         * lib/xalloc.h (__attribute__): Remove definition.
5562         (ATTRIBUTE_NORETURN): Update definition. Define always.
5563         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5564         * lib/xmemdup0.h (__attribute__): Remove definition.
5565         (ATTRIBUTE_NORETURN): Update definition. Define always.
5566         * lib/xprintf.h (__attribute__): Remove definition.
5567         (_GL_ATTRIBUTE_FORMAT): New macro.
5568         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5569         * lib/xstrtol.h (__attribute__): Remove definition.
5570         (ATTRIBUTE_NORETURN): Update definition. Define always.
5571         * lib/xvasprintf.h (__attribute__): Remove definition.
5572         (_GL_ATTRIBUTE_FORMAT): New macro.
5573         (xasprintf, xvasprintf): Use it.
5574         * tests/test-argmatch.c (__attribute__): Remove definition.
5575         (ATTRIBUTE_NORETURN): Update definition. Define always.
5576         * tests/test-exclude.c (__attribute__): Remove definition.
5577         (ATTRIBUTE_NORETURN): Update definition. Define always.
5578         Reported by Paul Eggert.
5579
5580 2011-02-13  Bruno Haible  <bruno@clisp.org>
5581
5582         mbrtowc: Add more tests for native Windows platforms.
5583         * tests/test-mbrtowc-w32-1.sh: New file.
5584         * tests/test-mbrtowc-w32-2.sh: New file.
5585         * tests/test-mbrtowc-w32-3.sh: New file.
5586         * tests/test-mbrtowc-w32-4.sh: New file.
5587         * tests/test-mbrtowc-w32-5.sh: New file.
5588         * tests/test-mbrtowc-w32.c: New file.
5589         * modules/mbrtowc-tests (Files): Add them.
5590         (Makefile.am): Arrange to run these tests.
5591         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5592         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5593
5594 2011-02-13  Bruno Haible  <bruno@clisp.org>
5595
5596         mbrtowc: Work around native Windows bug.
5597         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5598         guess when no suitable locale for testing was found.
5599         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5600
5601 2011-02-13  Bruno Haible  <bruno@clisp.org>
5602
5603         mbsinit: Work around mingw bug.
5604         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5605         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5606         Windows.
5607         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5608
5609 2011-02-13  Bruno Haible  <bruno@clisp.org>
5610
5611         mbsinit: Don't crash for a NULL argument.
5612         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5613         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5614
5615 2011-02-13  Bruno Haible  <bruno@clisp.org>
5616
5617         Don't interfere with a program's definition of __attribute__.
5618         * lib/stdio.in.h (__attribute__): Remove definition.
5619         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5620         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5621         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5622         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5623         * lib/string.in.h (__attribute__): Remove definition.
5624         Reported by Paul Eggert.
5625
5626 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5627
5628         stdlib: don't get in the way of non-GCC __attribute__
5629         See thread starting at
5630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5631         Revert previous stdlib change, installing the following instead:
5632         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5633         to get in the way of a non-GCC compiler that supports __attribute__.
5634         (_GL_ATTRIBUTE_RETURN): New macro.
5635         (_Exit): Use it instead of __attribute__.
5636
5637 2011-02-12  Bruno Haible  <bruno@clisp.org>
5638
5639         quotearg test: Avoid test failure on mingw.
5640         * tests/test-quotearg.sh: Convert the locale identifier from native
5641         Windows syntax to Unix syntax.
5642
5643 2011-02-12  Bruno Haible  <bruno@clisp.org>
5644
5645         setlocale: Prefer gnulib's override over libintl's override.
5646         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5647         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5648         GNULIB_defined_setlocale is set.
5649
5650 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5651
5652         stdlib: support non-GCC __attribute__
5653
5654         Fix a serious and tricky problem encountered when attempting to
5655         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5656         5.5, but it crashed due to memory corruption on Solaris 10 with
5657         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5658         bits that are otherwise zero.  This tagging is optional inside
5659         Emacs but is preferred and is used when __attribute__ ((__aligned
5660         (8))) works, as it does with both recent-enough GCC and with Sun C
5661         5.11.  However, Sun C 5.11 is not GCC and does not #define
5662         __GNUC__ and __GNUC_MINOR__.
5663
5664         When I added the getloadavg module to Emacs, it brought in
5665         stdlib.in.h, which contained this fragment:
5666
5667            #ifndef __attribute__
5668            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5669            #  define __attribute__(Spec)   /* empty */
5670            # endif
5671            #endif
5672
5673         When files that include <stdlib.h> were compiled with Sun C 5.11,
5674         the above code disabled __attribute__ ((__aligned (8))), which
5675         caused variables to not be properly aligned, which eventually led
5676         to the pointer corruption mentioned above.  (This was a bit hard
5677         to diagnose, unfortunately.)
5678
5679         Several "#define __attribute__(X) /* empty */" code snippets need
5680         to be eradicated from Gnulib to work with non-GCC compilers that
5681         support __attribute__.  The Autoconf way to do this is to test for
5682         each kind of attribute that we want support for, and selectively
5683         enable that in source code.
5684
5685         Fix this problem just for stdlib.h, by adding a test for the
5686         __noreturn__ attribute, and change stdlib.in.h to use that test
5687         when needed.  This technique can be easily generalized to the
5688         other *.in.h files and attributes, and a similar technique can be
5689         used for *.h and *.c files.  This patch is enough to solve the
5690         problem for Emacs + getloadavg, and I thought I'd publish it for
5691         feedback before undertaking further, similar fixes in other
5692         modules.
5693
5694         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5695         because it's not needed for stdlib.h.  It merely substitutes the
5696         value directly into stdlib.h.  We may well need to #define it, or
5697         similar symbols, for other modules, but it's nice to also have an
5698         option to not #define it for applications like Emacs that do not
5699         need it.
5700
5701         * lib/stdlib.in.h (__attribute__): Do not #define.
5702         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5703         be defined only if the _Exit module is also used.
5704         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5706         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5707         platforms.
5708         * modules/_Exit (Files): Add m4/attribute.m4.
5709         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5710         * m4/attribute.m4: New file.
5711
5712 2011-02-12  Bruno Haible  <bruno@clisp.org>
5713
5714         wcsrtombs: Work around bug on native Windows.
5715         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5716         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5717         instead of len.
5718         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5719
5720 2011-02-12  Bruno Haible  <bruno@clisp.org>
5721
5722         mbsrtowcs: Work around bug on native Windows.
5723         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5724         against mingw bug.
5725         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5726
5727 2011-02-12  Bruno Haible  <bruno@clisp.org>
5728
5729         Avoid setlocale bugs in tests.
5730         * modules/btowc (Dependencies): Add setlocale.
5731         * modules/c-strcase (Dependencies): Likewise.
5732         * modules/mbmemcasecmp (Dependencies): Likewise.
5733         * modules/mbmemcasecoll (Dependencies): Likewise.
5734         * modules/mbrtowc (Dependencies): Likewise.
5735         * modules/mbscasecmp (Dependencies): Likewise.
5736         * modules/mbscasestr (Dependencies): Likewise.
5737         * modules/mbschr (Dependencies): Likewise.
5738         * modules/mbscspn (Dependencies): Likewise.
5739         * modules/mbsinit (Dependencies): Likewise.
5740         * modules/mbsncasecmp (Dependencies): Likewise.
5741         * modules/mbsnrtowcs (Dependencies): Likewise.
5742         * modules/mbspbrk (Dependencies): Likewise.
5743         * modules/mbspcasecmp (Dependencies): Likewise.
5744         * modules/mbsrchr (Dependencies): Likewise.
5745         * modules/mbsrtowcs (Dependencies): Likewise.
5746         * modules/mbsspn (Dependencies): Likewise.
5747         * modules/mbsstr (Dependencies): Likewise.
5748         * modules/nl_langinfo (Dependencies): Likewise.
5749         * modules/quotearg (Dependencies): Likewise.
5750         * modules/unicase/locale-language (Dependencies): Likewise.
5751         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5752         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5753         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5754         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5755         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5756         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5757         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5758         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5759         * modules/vasnprintf-posix (Dependencies): Likewise.
5760         * modules/wcrtomb (Dependencies): Likewise.
5761         * modules/wcsnrtombs (Dependencies): Likewise.
5762         * modules/wcsrtombs (Dependencies): Likewise.
5763
5764 2011-02-12  Bruno Haible  <bruno@clisp.org>
5765
5766         setlocale: Workaround native Windows bug.
5767         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5768         succeeds but sets LC_CTYPE to "C", report a failure.
5769         * tests/test-setlocale2.sh: New file.
5770         * tests/test-setlocale2.c: New file.
5771         * modules/setlocale-tests (Files): Add the new files.
5772         (Makefile.am): Enable test-setlocale2.sh test.
5773         * doc/posix-functions/setlocale.texi: Mention workaround.
5774
5775 2011-02-11  Bruno Haible  <bruno@clisp.org>
5776
5777         Tests for module 'setlocale'.
5778         * modules/setlocale-tests: New file.
5779         * tests/test-setlocale1.sh: New file.
5780         * tests/test-setlocale1.c: New file.
5781
5782         New module 'setlocale'.
5783         * lib/locale.in.h (setlocale): New declaration.
5784         * lib/setlocale.c: New file, based on
5785         gettext/gettext-runtime/intl/setlocale.c.
5786         * m4/setlocale.m4: New file.
5787         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5788         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5789         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5790         REPLACE_SETLOCALE.
5791         * modules/setlocale: New file.
5792         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5793         * doc/posix-functions/setlocale.texi: Mention the new module.
5794
5795 2011-02-11  Bruno Haible  <bruno@clisp.org>
5796
5797         Prepare for locale dependent tests on mingw.
5798         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5799         because it has the wrong locale encoding.
5800         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5801         French_France.1252 instead of "fr".
5802         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5803         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5804         because it has the wrong locale encoding.
5805         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5806         native Windows, try Turkish_Turkey.65001.
5807         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5808         Chinese_China.54936.
5809
5810         Prepare for locale dependent tests on mingw.
5811         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5812         differently.
5813         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5814         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5815         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5817
5818 2011-02-11  Eric Blake  <eblake@redhat.com>
5819
5820         strptime: avoid compiler warnings
5821         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5822         compiler warnings about dead code.
5823         Reported by Daniel P. Berrange.
5824
5825 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5826
5827         doc: update users.txt
5828         * users.txt: Add rcs.
5829
5830 2011-02-10  John W. Eaton  <jwe@gnu.org>
5831
5832         doc: update users.txt
5833         * users.txt: Add octave.
5834
5835 2011-02-10  Jim Meyering  <meyering@redhat.com>
5836
5837         doc: update users.txt
5838         * users.txt: Add iwhd.
5839
5840 2011-02-09  Bruno Haible  <bruno@clisp.org>
5841
5842         gnulib-tool: Make copyright notice adjustment more robust.
5843         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5844         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5845         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5846         License".
5847         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5848
5849 2011-02-06  Bruno Haible  <bruno@clisp.org>
5850
5851         New module 'towctrans'.
5852         * modules/towctrans: New file.
5853         * lib/wctype.in.h (towctrans): New declaration.
5854         * lib/towctrans.c: New file.
5855         * lib/towctrans-impl.h: New file.
5856         * m4/towctrans.m4: New file.
5857         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5858         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5859         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5860         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5861         * doc/posix-functions/towctrans.texi: Mention the new module.
5862
5863 2011-02-06  Bruno Haible  <bruno@clisp.org>
5864
5865         New module 'wctrans'.
5866         * modules/wctrans: New file.
5867         * lib/wctype.in.h (wctrans): New declaration.
5868         * lib/wctrans.c: New file.
5869         * lib/wctrans-impl.h: New file.
5870         * m4/wctrans.m4: New file.
5871         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5872         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5873         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5874         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5875         * doc/posix-functions/wctrans.texi: Mention the new module.
5876
5877 2011-02-06  Bruno Haible  <bruno@clisp.org>
5878
5879         New module 'iswctype'.
5880         * modules/iswctype: New file.
5881         * lib/wctype.in.h (iswctype): New declaration.
5882         * lib/iswctype.c: New file.
5883         * lib/iswctype-impl.h: New file.
5884         * m4/iswctype.m4: New file.
5885         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5886         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5887         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5888         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5889         * doc/posix-functions/iswctype.texi: Mention the new module and the
5890         HP-UX 11.00 problem.
5891
5892 2011-02-06  Bruno Haible  <bruno@clisp.org>
5893
5894         New module 'wctype'.
5895         * modules/wctype: Change to represent the wctype() substitute.
5896         * lib/wctype.in.h (wctype): New declaration.
5897         * lib/wctype.c: New file.
5898         * lib/wctype-impl.h: New file.
5899         * m4/wctype.m4: New file.
5900         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5901         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5902         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5903         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5904         * doc/posix-functions/wctype.texi: Mention the new module and the
5905         HP-UX 11.00 problem.
5906
5907 2011-02-06  Bruno Haible  <bruno@clisp.org>
5908
5909         wctype-h: Ensure wctype_t and wctrans_t are defined.
5910         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5911         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5912         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5913         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5914         HAVE_WCTRANS_T.
5915         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5916
5917 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5918
5919         flock: fix license typo
5920
5921         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5922         omitted.
5923
5924 2011-02-08  Bruno Haible  <bruno@clisp.org>
5925
5926         Split large sed scripts, for HP-UX sed.
5927         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5928         to avoid HP-UX limit of 99 commands, in the near future.
5929         * modules/stdlib (Makefile.am): Likewise.
5930         * modules/unistd (Makefile.am): Likewise.
5931         * modules/wchar (Makefile.am): Likewise.
5932         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5933         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5935
5936 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5937             Bruno Haible  <bruno@clisp.org>
5938
5939         stdlib: improve random_r modularization
5940         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5941         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5942         you also need the random_r module to get this material right.
5943         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5944         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5945         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5946
5947 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5948
5949         stdlib: don't depend on stdint
5950         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5951         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5952         be independent of whether stdint.h is needed.
5953         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5954         here, instead of ...
5955         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5956         struct random_data should be using the random_r module, not just
5957         the stdlib module (which wouldn't make sense: what package needs
5958         just struct random_data without also needing random_r?).
5959         * modules/stdlib (Depends-on): Remove stdint.
5960
5961         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5962         See the thread rooted at
5963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5964         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5965         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5966         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5967         __VMS)); previously it was always included (via fcntl--.h).
5968         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5969         hand; this is good enough for load averages.  Also, do not use
5970         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5971         flags directly if available and don't bother otherwise.  (Packages
5972         that need the extra reliability should use the modules that define
5973         these flags on older platforms that lack them.)
5974         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5975         fcntl-safer.
5976
5977 2011-02-08  Jim Meyering  <meyering@redhat.com>
5978
5979         di-set.h, ino-map.h: add multiple-inclusion guard
5980         Technically, the guard is required only for ino-map.h, due to its
5981         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5982         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5983         * lib/ino-map.h: Likewise.
5984
5985 2011-02-06  Bruno Haible  <bruno@clisp.org>
5986
5987         iswblank: Ensure declaration on glibc systems.
5988         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5989         * modules/iswblank (Dependencies): Add 'extensions'.
5990         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5991
5992 2011-02-06  Bruno Haible  <bruno@clisp.org>
5993
5994         New module 'iswblank'.
5995         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5996         * modules/iswblank: New file.
5997         * modules/wctype-h (Files): Remove lib/iswblank.c.
5998         (Makefile.am): Substitute GNULIB_ISWBLANK.
5999         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6000         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6001         (gl_WCTYPE_H_DEFAULTS): New macro.
6002         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6003         * modules/iswblank-tests: New file.
6004         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6005         * tests/test-wctype-h.c (main): Remove iswblank tests.
6006         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6007         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6008         of 'wctype-h'.
6009         * NEWS: Mention the change.
6010         * modules/mbchar (Depends-on): Add iswblank.
6011
6012 2011-02-08  Bruno Haible  <bruno@clisp.org>
6013
6014         di-set tests: Refactor.
6015         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6016         unnecessary includes.
6017         (ASSERT): Remove macro.
6018         (main): Make C90 compliant by avoiding variable declaration after
6019         statement.
6020         * modules/di-set-tests (Files): Add tests/macros.h.
6021
6022 2011-02-08  Bruno Haible  <bruno@clisp.org>
6023
6024         ino-map tests: Refactor.
6025         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6026         unnecessary includes.
6027         (ASSERT): Remove macro.
6028         (main): Make C90 compliant by avoiding variable declaration after
6029         statement.
6030         * modules/ino-map-tests (Files): Add tests/macros.h.
6031
6032 2011-02-08  Jim Meyering  <meyering@redhat.com>
6033
6034         di-set: add "const" to a cast
6035         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6036         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6037
6038 2011-02-06  Bruno Haible  <bruno@clisp.org>
6039
6040         Rename module 'wctype' to 'wctype-h'.
6041         * modules/wctype-h: Renamed from modules/wctype.
6042         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6043         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6044         (Files, Depends-on, Makefile.am): Update.
6045         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
6046         (Files, Makefile.am): Update.
6047         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
6048         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
6049         * doc/posix-headers/wctype.texi: Update.
6050         * doc/posix-functions/iswalnum.texi: Update.
6051         * doc/posix-functions/iswalpha.texi: Update.
6052         * doc/posix-functions/iswblank.texi: Update.
6053         * doc/posix-functions/iswcntrl.texi: Update.
6054         * doc/posix-functions/iswdigit.texi: Update.
6055         * doc/posix-functions/iswgraph.texi: Update.
6056         * doc/posix-functions/iswlower.texi: Update.
6057         * doc/posix-functions/iswprint.texi: Update.
6058         * doc/posix-functions/iswpunct.texi: Update.
6059         * doc/posix-functions/iswspace.texi: Update.
6060         * doc/posix-functions/iswupper.texi: Update.
6061         * doc/posix-functions/iswxdigit.texi: Update.
6062         * doc/posix-functions/towlower.texi: Update.
6063         * doc/posix-functions/towupper.texi: Update.
6064         * NEWS: Mention the change.
6065         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6066         * modules/mbchar (Dependencies): Likewise.
6067         * modules/mbswidth (Dependencies): Likewise.
6068         * modules/quotearg (Dependencies): Likewise.
6069         * modules/regex (Dependencies): Likewise.
6070         * modules/wcscasecmp (Dependencies): Likewise.
6071         * modules/wcsncasecmp (Dependencies): Likewise.
6072         * modules/wcwidth (Dependencies): Likewise.
6073
6074 2011-02-06  Bruno Haible  <bruno@clisp.org>
6075
6076         New module 'wcswidth'.
6077         * modules/wcswidth: New file.
6078         * lib/wchar.in.h (wcswidth): New declaration.
6079         * lib/wcswidth.c: New file.
6080         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6081         * m4/wcswidth.m4: New file.
6082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6084         REPLACE_WCSWIDTH.
6085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6086         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6087         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6088         * doc/posix-functions/wcswidth.texi: Mention the new module.
6089
6090 2011-02-06  Bruno Haible  <bruno@clisp.org>
6091
6092         New module 'wcstok'.
6093         * modules/wcstok: New file.
6094         * lib/wchar.in.h (wcstok): New declaration.
6095         * lib/wcstok.c: New file.
6096         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6097         * m4/wcstok.m4: New file.
6098         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6099         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6100         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6101         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6102         * doc/posix-functions/wcstok.texi: Mention the new module.
6103
6104 2011-02-06  Bruno Haible  <bruno@clisp.org>
6105
6106         New module 'wcsstr'.
6107         * modules/wcsstr: New file.
6108         * lib/wchar.in.h (wcsstr): New declaration.
6109         * lib/wcsstr.c: New file.
6110         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6111         * m4/wcsstr.m4: New file.
6112         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6113         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6115         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6116         * doc/posix-functions/wcsstr.texi: Mention the new module.
6117
6118 2011-02-06  Bruno Haible  <bruno@clisp.org>
6119
6120         New module 'wcspbrk'.
6121         * modules/wcspbrk: New file.
6122         * lib/wchar.in.h (wcspbrk): New declaration.
6123         * lib/wcspbrk.c: New file.
6124         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6125         * m4/wcspbrk.m4: New file.
6126         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6127         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6128         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6129         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6130         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6131
6132 2011-02-06  Bruno Haible  <bruno@clisp.org>
6133
6134         New module 'wcsspn'.
6135         * modules/wcsspn: New file.
6136         * lib/wchar.in.h (wcsspn): New declaration.
6137         * lib/wcsspn.c: New file.
6138         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6139         * m4/wcsspn.m4: New file.
6140         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6141         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6142         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6143         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6144         * doc/posix-functions/wcsspn.texi: Mention the new module.
6145
6146 2011-02-06  Bruno Haible  <bruno@clisp.org>
6147
6148         New module 'wcscspn'.
6149         * modules/wcscspn: New file.
6150         * lib/wchar.in.h (wcscspn): New declaration.
6151         * lib/wcscspn.c: New file.
6152         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6153         * m4/wcscspn.m4: New file.
6154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6156         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6157         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6158         * doc/posix-functions/wcscspn.texi: Mention the new module.
6159
6160 2011-02-06  Bruno Haible  <bruno@clisp.org>
6161
6162         New module 'wcsrchr'.
6163         * modules/wcsrchr: New file.
6164         * lib/wchar.in.h (wcsrchr): New declaration.
6165         * lib/wcsrchr.c: New file.
6166         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6167         * m4/wcsrchr.m4: New file.
6168         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6169         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6170         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6171         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6172         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6173
6174 2011-02-06  Bruno Haible  <bruno@clisp.org>
6175
6176         New module 'wcschr'.
6177         * modules/wcschr: New file.
6178         * lib/wchar.in.h (wcschr): New declaration.
6179         * lib/wcschr.c: New file.
6180         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6181         * m4/wcschr.m4: New file.
6182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6185         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6186         * doc/posix-functions/wcschr.texi: Mention the new module.
6187
6188 2011-02-06  Bruno Haible  <bruno@clisp.org>
6189
6190         New module 'wcsdup'.
6191         * modules/wcsdup: New file.
6192         * lib/wchar.in.h (wcsdup): New declaration.
6193         * lib/wcsdup.c: New file.
6194         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6195         * m4/wcsdup.m4: New file.
6196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6198         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6199         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6200         * doc/posix-functions/wcsdup.texi: Mention the new module.
6201
6202 2011-02-06  Bruno Haible  <bruno@clisp.org>
6203
6204         New module 'wcsxfrm'.
6205         * modules/wcsxfrm: New file.
6206         * lib/wchar.in.h (wcsxfrm): New declaration.
6207         * lib/wcsxfrm.c: New file.
6208         * lib/wcsxfrm-impl.h: New file.
6209         * m4/wcsxfrm.m4: New file.
6210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6213         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6214         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6215
6216 2011-02-06  Bruno Haible  <bruno@clisp.org>
6217
6218         New module 'wcscoll'.
6219         * modules/wcscoll: New file.
6220         * lib/wchar.in.h (wcscoll): New declaration.
6221         * lib/wcscoll.c: New file.
6222         * lib/wcscoll-impl.h: New file.
6223         * m4/wcscoll.m4: New file.
6224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6227         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6228         * doc/posix-functions/wcscoll.texi: Mention the new module.
6229
6230 2011-02-06  Bruno Haible  <bruno@clisp.org>
6231
6232         New module 'wcsncasecmp'.
6233         * modules/wcsncasecmp: New file.
6234         * lib/wchar.in.h (wcsncasecmp): New declaration.
6235         * lib/wcsncasecmp.c: New file.
6236         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6237         * m4/wcsncasecmp.m4: New file.
6238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6241         HAVE_WCSNCASECMP.
6242         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6243         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6244
6245 2011-02-06  Bruno Haible  <bruno@clisp.org>
6246
6247         New module 'wcscasecmp'.
6248         * modules/wcscasecmp: New file.
6249         * lib/wchar.in.h (wcscasecmp): New declaration.
6250         * lib/wcscasecmp.c: New file.
6251         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6252         * m4/wcscasecmp.m4: New file.
6253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6256         HAVE_WCSCASECMP.
6257         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6258         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6259
6260 2011-02-05  Bruno Haible  <bruno@clisp.org>
6261
6262         New module 'wcsncmp'.
6263         * modules/wcsncmp: New file.
6264         * lib/wchar.in.h (wcsncmp): New declaration.
6265         * lib/wcsncmp.c: New file.
6266         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6267         * m4/wcsncmp.m4: New file.
6268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6271         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6272         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6273
6274 2011-02-05  Bruno Haible  <bruno@clisp.org>
6275
6276         New module 'wcscmp'.
6277         * modules/wcscmp: New file.
6278         * lib/wchar.in.h (wcscmp): New declaration.
6279         * lib/wcscmp.c: New file.
6280         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6281         * m4/wcscmp.m4: New file.
6282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6285         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6286         * doc/posix-functions/wcscmp.texi: Mention the new module.
6287
6288 2011-02-05  Bruno Haible  <bruno@clisp.org>
6289
6290         New module 'wcsncat'.
6291         * modules/wcsncat: New file.
6292         * lib/wchar.in.h (wcsncat): New declaration.
6293         * lib/wcsncat.c: New file.
6294         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6295         * m4/wcsncat.m4: New file.
6296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6299         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6300         * doc/posix-functions/wcsncat.texi: Mention the new module.
6301
6302 2011-02-05  Bruno Haible  <bruno@clisp.org>
6303
6304         New module 'wcscat'.
6305         * modules/wcscat: New file.
6306         * lib/wchar.in.h (wcscat): New declaration.
6307         * lib/wcscat.c: New file.
6308         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6309         * m4/wcscat.m4: New file.
6310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6313         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6314         * doc/posix-functions/wcscat.texi: Mention the new module.
6315
6316 2011-02-05  Bruno Haible  <bruno@clisp.org>
6317
6318         New module 'wcpncpy'.
6319         * modules/wcpncpy: New file.
6320         * lib/wchar.in.h (wcpncpy): New declaration.
6321         * lib/wcpncpy.c: New file.
6322         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6323         * m4/wcpncpy.m4: New file.
6324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6326         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6327         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6328         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6329
6330 2011-02-05  Bruno Haible  <bruno@clisp.org>
6331
6332         New module 'wcsncpy'.
6333         * modules/wcsncpy: New file.
6334         * lib/wchar.in.h (wcsncpy): New declaration.
6335         * lib/wcsncpy.c: New file.
6336         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6337         * m4/wcsncpy.m4: New file.
6338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6341         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6342         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6343
6344 2011-02-05  Bruno Haible  <bruno@clisp.org>
6345
6346         New module 'wcpcpy'.
6347         * modules/wcpcpy: New file.
6348         * lib/wchar.in.h (wcpcpy): New declaration.
6349         * lib/wcpcpy.c: New file.
6350         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6351         * m4/wcpcpy.m4: New file.
6352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6354         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6355         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6356         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6357
6358 2011-02-05  Bruno Haible  <bruno@clisp.org>
6359
6360         New module 'wcscpy'.
6361         * modules/wcscpy: New file.
6362         * lib/wchar.in.h (wcscpy): New declaration.
6363         * lib/wcscpy.c: New file.
6364         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6365         * m4/wcscpy.m4: New file.
6366         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6367         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6369         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6370         * doc/posix-functions/wcscpy.texi: Mention the new module.
6371
6372 2011-02-05  Bruno Haible  <bruno@clisp.org>
6373
6374         New module 'wcsnlen'.
6375         * modules/wcsnlen: New file.
6376         * lib/wchar.in.h (wcsnlen): New declaration.
6377         * lib/wcsnlen.c: New file.
6378         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6379         * m4/wcsnlen.m4: New file.
6380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6383         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6384         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6385
6386 2011-02-05  Bruno Haible  <bruno@clisp.org>
6387
6388         New module 'wcslen'.
6389         * modules/wcslen: New file.
6390         * lib/wchar.in.h (wcslen): New declaration.
6391         * lib/wcslen.c: New file.
6392         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6393         * m4/wcslen.m4: New file.
6394         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6395         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6397         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6398         * doc/posix-functions/wcslen.texi: Mention the new module.
6399
6400 2011-02-05  Bruno Haible  <bruno@clisp.org>
6401
6402         New module 'wmemset'.
6403         * modules/wmemset: New file.
6404         * lib/wchar.in.h (wmemset): New declaration.
6405         * lib/wmemset.c: New file.
6406         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6407         * m4/wmemset.m4: New file.
6408         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6409         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6410         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6411         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6412         * doc/posix-functions/wmemset.texi: Mention the new module.
6413
6414 2011-02-05  Bruno Haible  <bruno@clisp.org>
6415
6416         New module 'wmemmove'.
6417         * modules/wmemmove: New file.
6418         * lib/wchar.in.h (wmemmove): New declaration.
6419         * lib/wmemmove.c: New file.
6420         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6421         * m4/wmemmove.m4: New file.
6422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6424         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6425         HAVE_WMEMMOVE.
6426         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6427         * doc/posix-functions/wmemmove.texi: Mention the new module.
6428
6429 2011-02-05  Bruno Haible  <bruno@clisp.org>
6430
6431         New module 'wmemcpy'.
6432         * modules/wmemcpy: New file.
6433         * lib/wchar.in.h (wmemcpy): New declaration.
6434         * lib/wmemcpy.c: New file.
6435         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6436         * m4/wmemcpy.m4: New file.
6437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6439         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6440         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6441         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6442
6443 2011-02-05  Bruno Haible  <bruno@clisp.org>
6444
6445         New module 'wmemcmp'.
6446         * modules/wmemcmp: New file.
6447         * lib/wchar.in.h (wmemcmp): New declaration.
6448         * lib/wmemcmp.c: New file.
6449         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6450         * m4/wmemcmp.m4: New file.
6451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6453         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6454         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6455         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6456
6457 2011-02-07  Jim Meyering  <meyering@redhat.com>
6458
6459         di-set, ino-map: new modules, from coreutils
6460         * lib/di-set.c: New file.
6461         * lib/di-set.h: Likewise.
6462         * lib/ino-map.c: Likewise.
6463         * lib/ino-map.h: Likewise.
6464         * modules/di-set: Likewise.
6465         * modules/di-set-tests: Likewise.
6466         * modules/ino-map: Likewise.
6467         * modules/ino-map-tests: Likewise.
6468         * tests/test-di-set.c: Likewise.
6469         * tests/test-ino-map.c: Likewise.
6470
6471 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6472
6473         getloadavg: merge minor changes from Emacs
6474
6475         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6476         (getloadavg): Use memset, not bzero.
6477
6478         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6479         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6480         clash (bug#86).
6481
6482 2010-11-14  Bruno Haible  <bruno@clisp.org>
6483
6484         Allow multiple gnulib generated replacements to coexist.
6485         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6486         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6487         * lib/langinfo.in.h (nl_item): Likewise.
6488         * lib/math.in.h (_NaN, NAN): Likewise.
6489         * lib/netdb.in.h (struct addrinfo): Likewise.
6490         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6491         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6492         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6493         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6494         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6495         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6496         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6497         pthread_mutexattr_init, pthread_mutexattr_settype,
6498         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6499         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6500         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6501         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6502         * lib/sched.in.h (struct sched_param): Likewise.
6503         * lib/se-selinux.in.h (security_class_t, security_context_t,
6504         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6505         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6506         lsetfilecon, fsetfilecon, security_check_context,
6507         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6508         Likewise.
6509         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6510         Likewise.
6511         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6512         _gl_function_taking_int_returning_void_t, union sigval,
6513         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6514         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6515         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6516         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6517         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6518         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6519         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6520         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6521         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6522         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6523         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6524         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6525         socklen_t, rpl_fd_isset): Likewise.
6526         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6527         * lib/sys_time.in.h (struct timeval): Likewise.
6528         * lib/sys_times.in.h (struct tms): Likewise.
6529         * lib/sys_utsname.in.h (struct utsname):
6530         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6531         * lib/unistd.in.h (getpagesize): Likewise.
6532         * lib/wchar.in.h (mbstate_t): Likewise.
6533         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6534         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6535         towlower, towupper): Likewise.
6536         Reported by Sam Steingold <sds@gnu.org>.
6537
6538 2011-02-05  Eric Blake  <eblake@redhat.com>
6539
6540         unsetenv: work around Haiku issues
6541         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6542         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6543
6544 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6545
6546         libposix: avoid calling error() within libposix
6547         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6548         is defined.
6549
6550 2011-02-05  Eric Blake  <eblake@redhat.com>
6551
6552         strerror_r-posix: port to cygwin
6553         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6554         implementation.
6555         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6556         * tests/test-strerror_r.c (main): Fix test.
6557         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6558         issue.
6559
6560 2011-02-05  Bruno Haible  <bruno@clisp.org>
6561
6562         New module 'wmemchr'.
6563         * modules/wmemchr: New file.
6564         * lib/wchar.in.h (wmemchr): New declaration.
6565         * lib/wmemchr.c: New file.
6566         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6567         * m4/wmemchr.m4: New file.
6568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6570         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6571         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6572         * doc/posix-functions/wmemchr.texi: Mention the new module.
6573
6574 2011-02-04  Eric Blake  <eblake@redhat.com>
6575
6576         fdopendir: detect FreeBSD bug
6577         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6578         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6579
6580 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         stdbool: do not define HAVE_STDBOOL_H
6583         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6584         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6585         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6586         imported from the latest Autoconf git.  It was motivated by Emacs,
6587         which uses gnulib but does not need HAVE_STDBOOL_H.
6588
6589 2011-02-04  Bruno Haible  <bruno@clisp.org>
6590
6591         wcsnrtombs: Prepare for new module wwcsnrtombs.
6592         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6593         * lib/wcsnrtombs.c: Include it.
6594         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6595
6596         wcsrtombs: Prepare for new module wwcsrtombs.
6597         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6598         * lib/wcsrtombs.c: Include it.
6599         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6600
6601         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6602         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6603         * lib/mbsnrtowcs.c: Include it.
6604         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6605
6606         mbsrtowcs: Prepare for new module mbsrtowwcs.
6607         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6608         * lib/mbsrtowcs.c: Include it.
6609         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6610
6611 2011-02-04  Bruno Haible  <bruno@clisp.org>
6612
6613         vasnprintf: Reduce use of malloc for small format strings.
6614         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6615         (arguments): Add room for the first 7 arguments.
6616         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6617         (char_directives, u8_directives, u16_directives, u32_directives): Add
6618         room for the first 7 directives.
6619         * lib/printf-parse.c: Include <string.h>.
6620         (PRINTF_PARSE): Change memory handling code so that it uses the first
6621         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6622         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6623         Reported by Pádraig Brady <P@draigbrady.com>.
6624
6625 2011-01-31  Eric Blake  <eblake@redhat.com>
6626
6627         dup2: work around Haiku bug
6628         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6629         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6630         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6631         * tests/test-dup2.c (main): Enhance test.
6632
6633 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6634
6635         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6636         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6637         declared by eglibc 2.11.2.
6638         * lib/stdio.in.h: Likewise.
6639
6640 2011-01-31  Eric Blake  <eblake@redhat.com>
6641
6642         ignore-value: add missing test dependency
6643         * tests/test-ignore-value.c: Revert previous change; stdio.h
6644         provides off_t.
6645         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6646
6647 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6648
6649         mktime: clarify long_int width checking
6650         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6651         the top level, to make it clearer that the assumption about
6652         long_int width is being checked.  See
6653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6654
6655 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6656
6657         ignore-value: Fix self-test.
6658         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6659
6660 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         TYPE_MAXIMUM: avoid theoretically undefined behavior
6663         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6664         negative number, which the C Standard says has undefined behavior.
6665         In practice this is not a problem, but might as well do it by the book.
6666         Reported by Rich Felker and Eric Blake; see
6667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6668         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6669         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6671         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6672         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6673         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6674
6675         mktime: #undef mktime before #defining it
6676         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6677
6678         mktime: systematically normalize tm_isdst comparisons
6679         * lib/mktime.c (isdst_differ): New function.
6680         (__mktime_internal): Use it systematically for all isdst comparisons.
6681         This completes the fix for libc BZ #6723, and removes the need for
6682         normalizing tm_isdst.  See
6683         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6684         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6685
6686         mktime: fix some integer overflow issues and sidestep the rest
6687
6688         This was prompted by a bug report by Benjamin Lindner for MinGW
6689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6690         His bug is due to signed integer overflow (0 - INT_MIN), and I
6691         I scanned through mktime.c looking for other integer overflow
6692         problems, fixing all the bugs I found.
6693
6694         Although the C Standard says the resulting code is still not safe
6695         in the presence of integer overflow, in practice it should be good
6696         enough for all real-world two's-complement implementations, except
6697         for debugging environments that deliberately trap on integer
6698         overflow (e.g., gcc -ftrapv).
6699
6700         * lib/mktime.c (WRAPV): New macro.
6701         (SHR): Also check that long_int and time_t shift right in the
6702         usual way, before using the fast-but-unportable method.
6703         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6704         used.  The code already assumed two's complement, so there's
6705         no need to test for alternatives.  All uses removed.
6706         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6707         the C standard.  Problem reported by Rich Felker in
6708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6709         (twos_complement_arithmetic): Also check long_int and time_t.
6710         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6711         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6712         (__mktime_internal): Avoid integer overflow with unary subtraction
6713         in two instances where -1 - X is an adequate replacement for -X,
6714         since the calculations are approximate.
6715
6716 2011-01-29  Eric Blake  <eblake@redhat.com>
6717
6718         mktime: avoid infinite loop
6719         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6720         type; behavior is still undefined but portable to all known targets.
6721         Reported by Rich Felker.
6722
6723 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6724
6725         rename, unlink, same-inode: Relicense.
6726         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6727         * modules/unlink (License): Likewise.
6728         * modules/same-inode (License): Likewise.
6729
6730 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6731
6732         mktime: avoid problems on NetBSD 5 / i386
6733         * lib/mktime.c (long_int): New type.  This works around a problem
6734         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6735         but time_t is 64 bits, and where I expect the existing code is
6736         wrong in some cases.
6737         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6738         (ydhms_diff): Bring back the compile-time check for wide-enough
6739         year and yday.
6740
6741         mktime: fix misspelling in comment
6742         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6743         This merges all recent glibc changes of importance.
6744
6745 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6746
6747         move-if-change: cope with concurrent mv of identical file.
6748         * build-aux/move-if-change (CMPPROG): Accept environment
6749         variable as an override for `cmp'.
6750         (usage): Document CMPPROG.
6751         Adjust comparison to drop stdout.  Cope with failure of mv if
6752         the target file exists and is identical to the source, for
6753         parallel builds.
6754         Report from H.J. Lu against binutils in PR binutils/12283.
6755
6756 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6757
6758         * users.txt: Mention sharutils.
6759
6760 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6761
6762         * users.txt: Mention OATH Toolkit.
6763
6764 2011-01-27  Bruno Haible  <bruno@clisp.org>
6765
6766         Prepare for supporting FreeBSD 10.
6767         * build-aux/config.libpath: Remove handling of freebsd1*.
6768
6769 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6770
6771         Prepare for supporting FreeBSD 10.
6772         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6773         match FreeBSD 10.0.
6774
6775 2011-01-27  Bruno Haible  <bruno@clisp.org>
6776
6777         vma-iter, get-rusage-as: Add OpenBSD support.
6778         * modules/vma-iter (configure.ac): Test for mquery.
6779         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6780         * lib/vma-iter.c: Include <sys/mman.h>.
6781         (vma_iterate): Add an implementation based on mquery().
6782         * lib/resource-ext.h (get_rusage_as): Update comments.
6783         * lib/get-rusage-as.c: Likewise.
6784         * lib/get-rusage-data.c: Likewise.
6785
6786 2011-01-26  Karl Berry  <karl@gnu.org>
6787
6788         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6789         variables to make it easier to override the makeinfo program used.
6790
6791 2011-01-26  Eric Blake  <eblake@redhat.com>
6792
6793         fcntl: work around Haiku F_DUPFD bugs
6794         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6795         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6796         cloexec bit on duplication.
6797         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6798
6799 2011-01-26  Bruno Haible  <bruno@clisp.org>
6800
6801         Enable memory leak tests on AIX.
6802         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6803         * tests/test-fprintf-posix3.c (main): Likewise.
6804
6805 2011-01-26  Bruno Haible  <bruno@clisp.org>
6806
6807         Tests for module 'get-rusage-data'.
6808         * modules/get-rusage-data-tests: New file.
6809         * tests/test-get-rusage-data.c: New file.
6810
6811         New module 'get-rusage-data'.
6812         * lib/resource-ext.h (get_rusage_data): New declaration.
6813         * lib/get-rusage-data.c: New file.
6814         * modules/get-rusage-data: New file.
6815
6816 2011-01-25  Bruno Haible  <bruno@clisp.org>
6817
6818         get-rusage-as: Allow for easier testing.
6819         * lib/resource-ext.h (get_rusage_as): Add comment.
6820         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6821         (main): New function for interactive testing.
6822
6823 2011-01-25  Bruno Haible  <bruno@clisp.org>
6824
6825         vma-iter: Treat Haiku like BeOS.
6826         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6827         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6828
6829 2011-01-25  Eric Blake  <eblake@redhat.com>
6830
6831         c-stack: fix regression on cygwin when libsigsegv is present
6832         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6833
6834 2011-01-24  Bruno Haible  <bruno@clisp.org>
6835
6836         vma-iter: Avoid empty intervals.
6837         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6838         on an empty interval.
6839
6840 2011-01-24  Jim Meyering  <meyering@redhat.com>
6841
6842         u64: remove unnecessary #include
6843         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6844
6845 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6848         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6849
6850 2011-01-23  Bruno Haible  <bruno@clisp.org>
6851
6852         New module 'vma-iter'.
6853         * lib/vma-iter.h: New file.
6854         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6855         * modules/vma-iter: New file.
6856         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6857         for get_rusage_as_via_iterator.
6858         (vma_iterate_callback): New function.
6859         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6860         * modules/get-rusage-as (Depends-on): Add vma-iter.
6861
6862 2011-01-23  Bruno Haible  <bruno@clisp.org>
6863
6864         uninorm: Tweak includes.
6865         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6866         Reported by Jim Meyering.
6867
6868 2011-01-23  Bruno Haible  <bruno@clisp.org>
6869
6870         get-rusage-as: Improve on NetBSD.
6871         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6872         /proc, like on FreeBSD.
6873
6874 2011-01-23  Jim Meyering  <meyering@redhat.com>
6875
6876         xreadlink.h: remove unnecessary #include
6877         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6878
6879         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6880         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6881
6882 2011-01-23  Bruno Haible  <bruno@clisp.org>
6883
6884         get-rusage-as: Fix bug.
6885         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6886         original limit when aborting the first loop.
6887
6888 2011-01-23  Bruno Haible  <bruno@clisp.org>
6889
6890         wctype: Ensure valid C syntax.
6891         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6892         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6893
6894 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6895
6896         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6898         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6899         as they are needed only for configure's test case.
6900         This removes two unnecessary symbols from config.h.
6901
6902         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6903         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6905         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6906         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6907         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6908         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6909         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6910         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6911         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6912         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6914         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6915         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6916         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6918         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6919         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6920
6921 2011-01-21  Eric Blake  <eblake@redhat.com>
6922
6923         maintainer-makefile: work with older git for submodule check
6924         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6925         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6926         Reported by Matthias Bolte.
6927
6928         bootstrap: minor portability fixes
6929         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6930         (usage): Omit leading capital and trailing . on help phrases, per
6931         GNU Coding Standards.
6932         (check_versions, top level): Prefix messages with script name.
6933
6934 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6935
6936         bootstrap: support --no-git option
6937         * build-aux/bootstrap: Add --no-git option, to be used when
6938         --gnulib-srcdir points to the exact desired checkout.
6939
6940 2011-01-21  Eric Blake  <eblake@redhat.com>
6941
6942         strerror_r-posix: work with glibc 2.13
6943         * lib/strerror_r.c (strerror_r): Fix return type.
6944
6945 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6946             Bruno Haible  <bruno@clisp.org>
6947
6948         uN_strstr: New unit tests.
6949         * modules/unistr/u8-strstr-tests: New file.
6950         * modules/unistr/u16-strstr-tests: New file.
6951         * modules/unistr/u32-strstr-tests: New file.
6952         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6953         * tests/unistr/test-u8-strstr.c: New file.
6954         * tests/unistr/test-u16-strstr.c: New file.
6955         * tests/unistr/test-u32-strstr.c: New file.
6956
6957 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6958             Bruno Haible  <bruno@clisp.org>
6959
6960         Make uN_strstr functions O(n) worst-case.
6961         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6962         16-bit and 32-bit unit cases, use the unibyte algorithm from
6963         lib/mbsstr.c.
6964         * lib/unistr/u8-strstr.c: Include <string.h>.
6965         (UNIT_IS_UINT8_T): New macro.
6966         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6967         (U_STRLEN, U_STRNLEN): New macros.
6968         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6969         (U_STRLEN, U_STRNLEN): New macros.
6970         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6971         (configure.ac): Update required libunistring version.
6972         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6973         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6974         malloca.
6975         (configure.ac): Update required libunistring version.
6976         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6977         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6978         malloca.
6979         (configure.ac): Update required libunistring version.
6980
6981 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6982             Bruno Haible  <bruno@clisp.org>
6983
6984         Prepare for faster uN_strstr functions.
6985         * lib/str-kmp.h: Support definable UNITs.
6986         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6987         needle_len argument.
6988         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6989         * lib/mbscasestr.c (mbscasestr): Likewise.
6990
6991 2011-01-21  Pádraig Brady <P@draigBrady.com>
6992
6993         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6994         * tests/test-malloca.c (main): Unset the environment variable
6995         to greatly speed up the test.
6996         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6997         * modules/malloca-tests: Depend on unsetenv.
6998
6999 2011-01-21  Pádraig Brady <P@draigBrady.com>
7000
7001         ignore-value: remove stdint dependency
7002         * lib/ignore-value.h: Remove <stdint.h>
7003         * modules/ignore-value: Remove stdint dependency.
7004
7005 2011-01-21  Jim Meyering  <meyering@redhat.com>
7006
7007         maint.mk: adjust variable name to be consistent with other gl_ vars
7008         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7009         to be lower case.
7010
7011 2011-01-20  Jim Meyering  <meyering@redhat.com>
7012
7013         maint.mk: make "check" depend on public-submodule-commit by default
7014         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7015
7016 2011-01-20  Bruno Haible  <bruno@clisp.org>
7017
7018         mbfile, mbiter: Complete change from 2008-12-21.
7019         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7020         * m4/mbiter.m4 (gl_MBITER): Likewise.
7021
7022 2011-01-20  Jim Meyering  <meyering@redhat.com>
7023
7024         init.sh: insert space between each function name and "()"
7025         * tests/init.sh: Make it a little easier to see that a function's
7026         name is "warn_", and not "warn" when looking at the first part of
7027         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7028
7029 2011-01-20  Jim Meyering  <meyering@redhat.com>
7030
7031         mountlist: clean up code formatting
7032         * lib/mountlist.c (read_file_system_list): Split a long line,
7033         correct bracing style, use NULL in place of "(struct statfs *)0",
7034         don't parenthesize return value, add spaces around "=" and after
7035         ";-in-for-stmt".
7036
7037 2011-01-14  Markus Duft <mduft@gentoo.org>
7038
7039         mountlist: add support for Interix
7040         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7041         Apply statvfs to all entries of /dev/fs.
7042         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7043         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7044
7045 2011-01-20  Jim Meyering  <meyering@redhat.com>
7046
7047         maint.mk: improve the public-submodule-commit rule
7048         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
7049         to suppress printing of its commands... unless V=1.
7050         Add git submodule's --quiet option to suppress printing of e.g.,
7051         "Entering gnulib" output.
7052         "cd" into $(srcdir) before running git submodule.
7053
7054 2011-01-20  Bruno Haible  <bruno@clisp.org>
7055
7056         include_next: Fix bug introduced on 2011-01-18.
7057         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7058         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7059         ac_cv_header_... variable if the second argument is not 'check'.
7060         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7061         gl_NEXT_HEADERS_INTERNAL.
7062
7063 2011-01-20  Bruno Haible  <bruno@clisp.org>
7064
7065         Allow the user to avoid the GNULIB_TEST_* macros.
7066         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7067         Suggested by Paul Eggert.
7068
7069 2011-01-14  Jim Meyering  <meyering@redhat.com>
7070
7071         bootstrap: avoid failure when there is no .gitmodules file
7072         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7073         has been assigned to, even when its value is the empty string.
7074         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7075         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7076         Reported by John W. Eaton <jwe@gnu.org>.
7077
7078 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7079
7080         assume <ctype.h>, ..., <time.h> exist
7081         For years gnulib has been assuming the existence of the headers
7082         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7083         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7084         them, since they don't appear to be needed.
7085         * README (Portability guidelines): Document this.
7086         * lib/flock.c: Assume <fcntl.h> exists.
7087         * lib/regex_internal.h: Assume <locale.h> exists.
7088         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7089         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7090         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7091         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7092         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7093         * m4/regex.m4 (gl_REGEX): Likewise.
7094         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7095         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7096         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7097         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7098         * tests/test-argp.c: Likewise.
7099         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7100
7101         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7102         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7103         AA_APPLE_UNIVERSAL_BUILD.  See
7104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7105         * NEWS: Document this.
7106
7107 2011-01-19  Eric Blake  <eblake@redhat.com>
7108
7109         c-stack: assume stack overflow if SA_SIGINFO unsupported
7110         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7111         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7112         sigaction will work.
7113         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7114         behavior match Linux.
7115         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7116
7117         stdbool-tests: accomodate Haiku
7118         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7119
7120         binary-io: fix O_TEXT on Haiku
7121         * modules/binary-io (Depends-on): Add fcntl-h.
7122         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7123         than blindly undefining O_TEXT.
7124         Reported by Scott McCreary.
7125
7126 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7127
7128         include_next: do not check for standard headers like stddef.h
7129
7130         I found this problem when modifying Emacs to use gnulib.
7131         I noticed that it added HAVE_STDDEF_H to config.h, even though
7132         gnulib always assumes <stddef.h> exists as per README and this
7133         symbol is unnecessary.
7134         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7135         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7136         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7137         faster for headers like stddef.h that are known to exist.
7138         (gl_CHECK_NEXT_HEADERS): Use it.
7139         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7140         rather than gl_CHECK_NEXT_HEADERS.
7141         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7142         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7143
7144 2011-01-18  Eric Blake  <eblake@redhat.com>
7145
7146         ansi-c++-opt: skip C++ dependency style if C++ is unused
7147         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7148         tests when we know C++ compilation is not desired.
7149         Reported by Scott McCreary.
7150
7151 2011-01-18  Bruno Haible  <bruno@clisp.org>
7152
7153         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7154         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7155         (main): Perform test also when getrlimit and setrlimit don't exist or
7156         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7157         limiting the address space size using setrlimit, compare the address
7158         space size before and after the the test.
7159         * tests/test-dprintf-posix2.c: Likewise.
7160         * tests/test-fprintf-posix3.sh: Update skip messages.
7161         * tests/test-dprintf-posix2.sh: Likewise.
7162         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7163         * modules/dprintf-posix-tests (Depends-on): Likewise.
7164         Reported by Bruce Korb <bkorb@gnu.org> and
7165         Gary V. Vaughan <gary@gnu.org>.
7166
7167 2011-01-18  Bruno Haible  <bruno@clisp.org>
7168
7169         get-rusage-as: Improvement for Cygwin.
7170         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7171         areas that are merely reserved.
7172
7173 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         strftime: remove dependencies on multibyte modules
7176
7177         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7178         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7179         only if __osf__ is defined, and I suspect OSF doesn't need these
7180         other modules.  If my guess is wrong, we'll need to come up with a
7181         variant of strftime that doesn't need the multibyte modules.
7182
7183         I discovered this problem when attempting modify Emacs to use the
7184         strftime module.  With the previous gnulib, this caused Emacs to
7185         need 31 new files, ranging from lib/config.charset to
7186         m4/wint_t.m4.  This was overkill and I expect would be offputting
7187         to the Emacs maintainers.  After this change, only 6 new files are
7188         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7189         stdbool.m4, and tm_gmtoff.m4.
7190
7191         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7192         Suggested by Bruno Haible in
7193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7194         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7195         and do not check for wchar.h.
7196         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7197         (Depends-on): Remove mbrlen, mbsinit, wchar.
7198
7199 2011-01-18  Bruno Haible  <bruno@clisp.org>
7200
7201         Tests for module 'get-rusage-as'.
7202         * modules/get-rusage-as-tests: New file.
7203         * tests/test-get-rusage-as.c: New file.
7204
7205         New module 'get-rusage-as'.
7206         * modules/get-rusage-as: New file.
7207         * lib/resource-ext.h: New file.
7208         * lib/get-rusage-as.c: New file.
7209
7210 2011-01-17  Eric Blake  <eblake@redhat.com>
7211
7212         sigaction: relax license from LGPLv3+ to LGPLv2+
7213         * modules/sigaction (License): Relax to LGPLv2+.
7214
7215 2011-01-14  Bruno Haible  <bruno@clisp.org>
7216
7217         filemode: Make function declarations usable in C++ mode.
7218         * lib/filemode.h: Enclose function declarations in extern "C" block.
7219         Reported by John W. Eaton <jwe@gnu.org>.
7220
7221 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7222
7223         save-cwd: no longer include "xgetcwd.h"
7224         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7225         This avoids a compilation failure in projects that use save-cwd
7226         without also using the xgetcwd module.
7227
7228 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7229
7230         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7231         This is so that a program like Emacs, which needs only dtoastr,
7232         does not have to bother with distributing and compiling ftoastr
7233         and ldtoastr.
7234         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7235         * modules/dtoastr, modules/ldtoastr: New files.
7236         * modules/ftoastr: Now works just for 'float'.
7237         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7238         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7239         dtoastr.c, ldtoastr.c.
7240
7241 2011-01-11  Jim Meyering  <meyering@redhat.com>
7242
7243         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7244         There is no need to work around the lack of the fchdir function,
7245         since gnulib can now provide a replacement when required.
7246         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7247         * modules/save-cwd (Depends-on): Add fchdir.
7248
7249 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7250
7251         openat, save-cwd: avoid xmalloc
7252
7253         This removes a direct (but undocumented) dependency of openat on
7254         xalloc, along with an indirect dependency via save-cwd.  It also
7255         removes a dependency of save-cwd on xgetcwd, and thereby
7256         indirectly on xalloc.  This change causes the openat substitute
7257         to fall back on save_cwd when memory is tight, and for save_cwd to
7258         fail instead of dying when memory is tight, but that's good enough.
7259         Problem and initial idea for fix reported by Bastien Roucaries in
7260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7261
7262         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7263         xalloc.h (for xmalloc).
7264         (openat_proc_name): Use malloc, not xmalloc.
7265         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7266         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7267
7268         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7269         This avoids heap allocation for file names whose lengths are in
7270         the range 512..1023, with the upper bound increasing to at most
7271         4031 depending on the platform's PATH_MAX.  (We do not want
7272         pathmax.h here as it might supply a non-constant PATH_MAX.)
7273         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7274         Perhaps they should be moved to malloca.h?
7275         (OPENAT_BUFFER_SIZE): Use them.
7276
7277 2011-01-10  Bruno Haible  <bruno@clisp.org>
7278
7279         doc: Update users.txt.
7280         * users.txt: Add recutils.
7281
7282 2011-01-09  Karl Berry  <karl@gnu.org>
7283
7284         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7285
7286         * doc/configmake.texi: New file.
7287         * doc/gnulib.texi: Include it.
7288         * modules/configmake: Move documentation from here.
7289
7290 2011-01-09  Bruno Haible  <bruno@clisp.org>
7291
7292         Update to Unicode 6.0.0.
7293         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7294         (get_lbp): Update for Unicode 6.0.0.
7295         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7296         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7297         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7298         U+11001, U+11038..U+11046. Remove U+06DE.
7299         (uc_width): Fix bounds of planes.
7300         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7301         lib/uniwidth/width.c.
7302         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7303         trailing whitespace removed.
7304         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7305         without comments, but with the original copyright notice.
7306         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7307         * lib/unicase/ignorable.h: Likewise.
7308         * lib/unicase/tocasefold.h: Likewise.
7309         * lib/unicase/tolower.h: Likewise.
7310         * lib/unicase/totitle.h: Likewise.
7311         * lib/unicase/toupper.h: Likewise.
7312         * lib/unictype/bidi_of.h: Likewise.
7313         * lib/unictype/blocks.h: Likewise.
7314         * lib/unictype/categ_C.h: Likewise.
7315         * lib/unictype/categ_Cn.h: Likewise.
7316         * lib/unictype/categ_L.h: Likewise.
7317         * lib/unictype/categ_Ll.h: Likewise.
7318         * lib/unictype/categ_Lm.h: Likewise.
7319         * lib/unictype/categ_Lo.h: Likewise.
7320         * lib/unictype/categ_Lu.h: Likewise.
7321         * lib/unictype/categ_M.h: Likewise.
7322         * lib/unictype/categ_Mc.h: Likewise.
7323         * lib/unictype/categ_Me.h: Likewise.
7324         * lib/unictype/categ_Mn.h: Likewise.
7325         * lib/unictype/categ_N.h: Likewise.
7326         * lib/unictype/categ_Nd.h: Likewise.
7327         * lib/unictype/categ_No.h: Likewise.
7328         * lib/unictype/categ_P.h: Likewise.
7329         * lib/unictype/categ_Po.h: Likewise.
7330         * lib/unictype/categ_S.h: Likewise.
7331         * lib/unictype/categ_Sc.h: Likewise.
7332         * lib/unictype/categ_Sk.h: Likewise.
7333         * lib/unictype/categ_Sm.h: Likewise.
7334         * lib/unictype/categ_So.h: Likewise.
7335         * lib/unictype/categ_of.h: Likewise.
7336         * lib/unictype/combining.h: Likewise.
7337         * lib/unictype/ctype_alnum.h: Likewise.
7338         * lib/unictype/ctype_alpha.h: Likewise.
7339         * lib/unictype/ctype_graph.h: Likewise.
7340         * lib/unictype/ctype_lower.h: Likewise.
7341         * lib/unictype/ctype_print.h: Likewise.
7342         * lib/unictype/ctype_punct.h: Likewise.
7343         * lib/unictype/ctype_upper.h: Likewise.
7344         * lib/unictype/decdigit.h: Likewise.
7345         * lib/unictype/digit.h: Likewise.
7346         * lib/unictype/numeric.h: Likewise.
7347         * lib/unictype/pr_alphabetic.h: Likewise.
7348         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7349         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7350         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7351         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7352         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7353         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7354         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7355         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7356         * lib/unictype/pr_case_ignorable.h: Likewise.
7357         * lib/unictype/pr_cased.h: Likewise.
7358         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7359         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7360         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7361         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7362         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7363         * lib/unictype/pr_combining.h: Likewise.
7364         * lib/unictype/pr_composite.h: Likewise.
7365         * lib/unictype/pr_currency_symbol.h: Likewise.
7366         * lib/unictype/pr_decimal_digit.h: Likewise.
7367         * lib/unictype/pr_deprecated.h: Likewise.
7368         * lib/unictype/pr_format_control.h: Likewise.
7369         * lib/unictype/pr_grapheme_base.h: Likewise.
7370         * lib/unictype/pr_grapheme_extend.h: Likewise.
7371         * lib/unictype/pr_grapheme_link.h: Likewise.
7372         * lib/unictype/pr_id_continue.h: Likewise.
7373         * lib/unictype/pr_id_start.h: Likewise.
7374         * lib/unictype/pr_ideographic.h: Likewise.
7375         * lib/unictype/pr_lowercase.h: Likewise.
7376         * lib/unictype/pr_math.h: Likewise.
7377         * lib/unictype/pr_numeric.h: Likewise.
7378         * lib/unictype/pr_other_alphabetic.h: Likewise.
7379         * lib/unictype/pr_other_id_continue.h: Likewise.
7380         * lib/unictype/pr_other_math.h: Likewise.
7381         * lib/unictype/pr_punctuation.h: Likewise.
7382         * lib/unictype/pr_sentence_terminal.h: Likewise.
7383         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7384         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7385         * lib/unictype/pr_unified_ideograph.h: Likewise.
7386         * lib/unictype/pr_uppercase.h: Likewise.
7387         * lib/unictype/pr_xid_continue.h: Likewise.
7388         * lib/unictype/pr_xid_start.h: Likewise.
7389         * lib/unictype/scripts.h: Likewise.
7390         * lib/unictype/scripts_byname.gperf: Likewise.
7391         * lib/unictype/sy_java_ident.h: Likewise.
7392         * lib/unigbrk/gbrkprop.h: Likewise.
7393         * lib/unilbrk/lbrkprop1.h: Likewise.
7394         * lib/unilbrk/lbrkprop2.h: Likewise.
7395         * lib/uninorm/decomposition-table2.h: Likewise.
7396         * lib/uniwbrk/wbrkprop.h: Likewise.
7397         * tests/unicase/test-cased.c: Likewise.
7398         * tests/unicase/test-ignorable.c: Likewise.
7399         * tests/unicase/test-uc_tolower.c: Likewise.
7400         * tests/unicase/test-uc_totitle.c: Likewise.
7401         * tests/unicase/test-uc_toupper.c: Likewise.
7402         * tests/unictype/test-categ_C.c: Likewise.
7403         * tests/unictype/test-categ_Cn.c: Likewise.
7404         * tests/unictype/test-categ_L.c: Likewise.
7405         * tests/unictype/test-categ_Ll.c: Likewise.
7406         * tests/unictype/test-categ_Lm.c: Likewise.
7407         * tests/unictype/test-categ_Lo.c: Likewise.
7408         * tests/unictype/test-categ_Lu.c: Likewise.
7409         * tests/unictype/test-categ_M.c: Likewise.
7410         * tests/unictype/test-categ_Mc.c: Likewise.
7411         * tests/unictype/test-categ_Me.c: Likewise.
7412         * tests/unictype/test-categ_Mn.c: Likewise.
7413         * tests/unictype/test-categ_N.c: Likewise.
7414         * tests/unictype/test-categ_Nd.c: Likewise.
7415         * tests/unictype/test-categ_No.c: Likewise.
7416         * tests/unictype/test-categ_P.c: Likewise.
7417         * tests/unictype/test-categ_Po.c: Likewise.
7418         * tests/unictype/test-categ_S.c: Likewise.
7419         * tests/unictype/test-categ_Sc.c: Likewise.
7420         * tests/unictype/test-categ_Sk.c: Likewise.
7421         * tests/unictype/test-categ_Sm.c: Likewise.
7422         * tests/unictype/test-categ_So.c: Likewise.
7423         * tests/unictype/test-ctype_alnum.c: Likewise.
7424         * tests/unictype/test-ctype_alpha.c: Likewise.
7425         * tests/unictype/test-ctype_graph.c: Likewise.
7426         * tests/unictype/test-ctype_lower.c: Likewise.
7427         * tests/unictype/test-ctype_print.c: Likewise.
7428         * tests/unictype/test-ctype_punct.c: Likewise.
7429         * tests/unictype/test-ctype_upper.c: Likewise.
7430         * tests/unictype/test-decdigit.h: Likewise.
7431         * tests/unictype/test-digit.h: Likewise.
7432         * tests/unictype/test-numeric.h: Likewise.
7433         * tests/unictype/test-pr_alphabetic.c: Likewise.
7434         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7435         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7436         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7437         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7438         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7439         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7440         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7441         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7442         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7443         * tests/unictype/test-pr_cased.c: Likewise.
7444         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7445         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7446         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7447         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7448         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7449         * tests/unictype/test-pr_combining.c: Likewise.
7450         * tests/unictype/test-pr_composite.c: Likewise.
7451         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7452         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7453         * tests/unictype/test-pr_deprecated.c: Likewise.
7454         * tests/unictype/test-pr_format_control.c: Likewise.
7455         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7456         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7457         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7458         * tests/unictype/test-pr_id_continue.c: Likewise.
7459         * tests/unictype/test-pr_id_start.c: Likewise.
7460         * tests/unictype/test-pr_ideographic.c: Likewise.
7461         * tests/unictype/test-pr_lowercase.c: Likewise.
7462         * tests/unictype/test-pr_math.c: Likewise.
7463         * tests/unictype/test-pr_numeric.c: Likewise.
7464         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7465         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7466         * tests/unictype/test-pr_other_math.c: Likewise.
7467         * tests/unictype/test-pr_punctuation.c: Likewise.
7468         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7469         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7470         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7471         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7472         * tests/unictype/test-pr_uppercase.c: Likewise.
7473         * tests/unictype/test-pr_xid_continue.c: Likewise.
7474         * tests/unictype/test-pr_xid_start.c: Likewise.
7475         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7476         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7477         changes.
7478         * lib/unictype/categ_Cc.h: Likewise.
7479         * lib/unictype/categ_Cf.h: Likewise.
7480         * lib/unictype/categ_Co.h: Likewise.
7481         * lib/unictype/categ_Cs.h: Likewise.
7482         * lib/unictype/categ_Lt.h: Likewise.
7483         * lib/unictype/categ_Nl.h: Likewise.
7484         * lib/unictype/categ_Pc.h: Likewise.
7485         * lib/unictype/categ_Pd.h: Likewise.
7486         * lib/unictype/categ_Pe.h: Likewise.
7487         * lib/unictype/categ_Pf.h: Likewise.
7488         * lib/unictype/categ_Pi.h: Likewise.
7489         * lib/unictype/categ_Ps.h: Likewise.
7490         * lib/unictype/categ_Z.h: Likewise.
7491         * lib/unictype/categ_Zl.h: Likewise.
7492         * lib/unictype/categ_Zp.h: Likewise.
7493         * lib/unictype/categ_Zs.h: Likewise.
7494         * lib/unictype/ctype_blank.h: Likewise.
7495         * lib/unictype/ctype_cntrl.h: Likewise.
7496         * lib/unictype/ctype_digit.h: Likewise.
7497         * lib/unictype/ctype_space.h: Likewise.
7498         * lib/unictype/ctype_xdigit.h: Likewise.
7499         * lib/unictype/mirror.h: Likewise.
7500         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7501         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7502         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7503         * lib/unictype/pr_bidi_control.h: Likewise.
7504         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7505         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7506         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7507         * lib/unictype/pr_bidi_pdf.h: Likewise.
7508         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7509         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7510         * lib/unictype/pr_dash.h: Likewise.
7511         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7512         * lib/unictype/pr_diacritic.h: Likewise.
7513         * lib/unictype/pr_extender.h: Likewise.
7514         * lib/unictype/pr_hex_digit.h: Likewise.
7515         * lib/unictype/pr_hyphen.h: Likewise.
7516         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7517         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7518         * lib/unictype/pr_ignorable_control.h: Likewise.
7519         * lib/unictype/pr_iso_control.h: Likewise.
7520         * lib/unictype/pr_join_control.h: Likewise.
7521         * lib/unictype/pr_left_of_pair.h: Likewise.
7522         * lib/unictype/pr_line_separator.h: Likewise.
7523         * lib/unictype/pr_logical_order_exception.h: Likewise.
7524         * lib/unictype/pr_non_break.h: Likewise.
7525         * lib/unictype/pr_not_a_character.h: Likewise.
7526         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7527         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7528         * lib/unictype/pr_other_id_start.h: Likewise.
7529         * lib/unictype/pr_other_lowercase.h: Likewise.
7530         * lib/unictype/pr_other_uppercase.h: Likewise.
7531         * lib/unictype/pr_paired_punctuation.h: Likewise.
7532         * lib/unictype/pr_paragraph_separator.h: Likewise.
7533         * lib/unictype/pr_pattern_syntax.h: Likewise.
7534         * lib/unictype/pr_pattern_white_space.h: Likewise.
7535         * lib/unictype/pr_private_use.h: Likewise.
7536         * lib/unictype/pr_quotation_mark.h: Likewise.
7537         * lib/unictype/pr_radical.h: Likewise.
7538         * lib/unictype/pr_soft_dotted.h: Likewise.
7539         * lib/unictype/pr_space.h: Likewise.
7540         * lib/unictype/pr_titlecase.h: Likewise.
7541         * lib/unictype/pr_variation_selector.h: Likewise.
7542         * lib/unictype/pr_white_space.h: Likewise.
7543         * lib/unictype/pr_zero_width.h: Likewise.
7544         * lib/unictype/sy_c_ident.h: Likewise.
7545         * lib/unictype/sy_c_whitespace.h: Likewise.
7546         * lib/unictype/sy_java_whitespace.h: Likewise.
7547         * lib/uninorm/composition-table.gperf: Likewise.
7548         * lib/uninorm/decomposition-table1.h: Likewise.
7549         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7550         LB8.
7551         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7552         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7553         * modules/unictype/*: Bump version number of expected libunistring
7554         version.
7555
7556 2011-01-09  Bruno Haible  <bruno@clisp.org>
7557
7558         Update to Unicode 5.2.0.
7559         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7560         trailing whitespace removed.
7561
7562 2011-01-09  Bruno Haible  <bruno@clisp.org>
7563
7564         New Unicode character properties, from Unicode 5.2.0.
7565         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7566         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7567         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7568         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7569         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7570         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7571         uc_is_property_cased, uc_is_property_case_ignorable,
7572         uc_is_property_changes_when_lowercased,
7573         uc_is_property_changes_when_uppercased,
7574         uc_is_property_changes_when_titlecased,
7575         uc_is_property_changes_when_casefolded,
7576         uc_is_property_changes_when_casemapped): New declarations.
7577         * lib/unictype/pr_byname.gperf: Add the new properties.
7578         * modules/unictype/property-byname (Depends-on): Depend on the new
7579         properties modules.
7580         * modules/unictype/property-all (Depends-on): Likewise.
7581         * MODULES.html.sh (Unicode string functions): Add
7582         unictype/property-case-ignorable, unictype/property-cased,
7583         unictype/property-changes-when-casefolded,
7584         unictype/property-changes-when-casemapped,
7585         unictype/property-changes-when-lowercased,
7586         unictype/property-changes-when-titlecased,
7587         unictype/property-changes-when-uppercased.
7588
7589         New module 'unictype/property-changes-when-casemapped'.
7590         * modules/unictype/property-changes-when-casemapped: New file.
7591         * lib/unictype/pr_changes_when_casemapped.c: New file.
7592         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7593         generated by gen-uni-tables.
7594         * modules/unictype/property-changes-when-casemapped-tests: New file.
7595         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7596         automatically generated by gen-uni-tables.
7597
7598         New module 'unictype/property-changes-when-casefolded'.
7599         * modules/unictype/property-changes-when-casefolded: New file.
7600         * lib/unictype/pr_changes_when_casefolded.c: New file.
7601         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7602         generated by gen-uni-tables.
7603         * modules/unictype/property-changes-when-casefolded-tests: New file.
7604         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7605         automatically generated by gen-uni-tables.
7606
7607         New module 'unictype/property-changes-when-titlecased'.
7608         * modules/unictype/property-changes-when-titlecased: New file.
7609         * lib/unictype/pr_changes_when_titlecased.c: New file.
7610         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7611         generated by gen-uni-tables.
7612         * modules/unictype/property-changes-when-titlecased-tests: New file.
7613         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7614         automatically generated by gen-uni-tables.
7615
7616         New module 'unictype/property-changes-when-uppercased'.
7617         * modules/unictype/property-changes-when-uppercased: New file.
7618         * lib/unictype/pr_changes_when_uppercased.c: New file.
7619         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7620         generated by gen-uni-tables.
7621         * modules/unictype/property-changes-when-uppercased-tests: New file.
7622         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7623         automatically generated by gen-uni-tables.
7624
7625         New module 'unictype/property-changes-when-lowercased'.
7626         * modules/unictype/property-changes-when-lowercased: New file.
7627         * lib/unictype/pr_changes_when_lowercased.c: New file.
7628         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7629         generated by gen-uni-tables.
7630         * modules/unictype/property-changes-when-lowercased-tests: New file.
7631         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7632         automatically generated by gen-uni-tables.
7633
7634         New module 'unictype/property-case-ignorable'.
7635         * modules/unictype/property-case-ignorable: New file.
7636         * lib/unictype/pr_case_ignorable.c: New file.
7637         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7638         by gen-uni-tables.
7639         * modules/unictype/property-case-ignorable-tests: New file.
7640         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7641         generated by gen-uni-tables.
7642
7643         New module 'unictype/property-cased'.
7644         * modules/unictype/property-cased: New file.
7645         * lib/unictype/pr_cased.c: New file.
7646         * lib/unictype/pr_cased.h: New file, automatically generated by
7647         gen-uni-tables.
7648         * modules/unictype/property-cased-tests: New file.
7649         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7650         gen-uni-tables.
7651
7652 2011-01-09  Bruno Haible  <bruno@clisp.org>
7653
7654         Update to Unicode 5.2.0.
7655         * lib/gen-uni-tables.c (output_predicate, output_category,
7656         output_combclass, output_bidi_category, output_decimal_digit_test,
7657         output_decimal_digit, output_digit_test, output_digit,
7658         output_numeric_test, output_numeric, output_mirror, output_scripts,
7659         output_scripts_byname, output_blocks, output_ident_category): Fix
7660         comment header.
7661         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7662         get_wbp.
7663         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7664         items.
7665         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7666         Changes_When_Lowercased, Changes_When_Uppercased,
7667         Changes_When_Titlecased, Changes_When_Casefolded,
7668         Changes_When_Casemapped.
7669         (is_property_alphabetic, is_property_default_ignorable_code_point):
7670         Update for Unicode 5.2.0.
7671         (is_property_cased, is_property_case_ignorable,
7672         is_property_changes_when_lowercased,
7673         is_property_changes_when_uppercased,
7674         is_property_changes_when_titlecased,
7675         is_property_changes_when_casefolded,
7676         is_property_changes_when_casemapped): New functions.
7677         (output_properties): Output also the properties cased, case_ignorable,
7678         changes_when_lowercased, changes_when_uppercased,
7679         changes_when_titlecased, changes_when_casefolded,
7680         changes_when_casemapped.
7681         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7682         Unicode TR#11 revision 17 -> 19.
7683         (LBP_CP): New enumeration value.
7684         (LBP_*): Adjust values accordingly.
7685         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7686         TR#14 revision 22 -> 24.
7687         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7688         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7689         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7690         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7691         is_WBP_MIDLETTER.
7692         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7693         the code1 and code2 of each composition rule.
7694         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7695         * lib/unicase/ignorable.h: Likewise.
7696         * lib/unicase/tocasefold.h: Likewise.
7697         * lib/unicase/tolower.h: Likewise.
7698         * lib/unicase/totitle.h: Likewise.
7699         * lib/unicase/toupper.h: Likewise.
7700         * lib/unictype/bidi_of.h: Likewise.
7701         * lib/unictype/blocks.h: Likewise.
7702         * lib/unictype/categ_C.h: Likewise.
7703         * lib/unictype/categ_Cf.h: Likewise.
7704         * lib/unictype/categ_Cn.h: Likewise.
7705         * lib/unictype/categ_L.h: Likewise.
7706         * lib/unictype/categ_Ll.h: Likewise.
7707         * lib/unictype/categ_Lm.h: Likewise.
7708         * lib/unictype/categ_Lo.h: Likewise.
7709         * lib/unictype/categ_Lu.h: Likewise.
7710         * lib/unictype/categ_M.h: Likewise.
7711         * lib/unictype/categ_Mc.h: Likewise.
7712         * lib/unictype/categ_Mn.h: Likewise.
7713         * lib/unictype/categ_N.h: Likewise.
7714         * lib/unictype/categ_Nd.h: Likewise.
7715         * lib/unictype/categ_Nl.h: Likewise.
7716         * lib/unictype/categ_No.h: Likewise.
7717         * lib/unictype/categ_P.h: Likewise.
7718         * lib/unictype/categ_Pd.h: Likewise.
7719         * lib/unictype/categ_Po.h: Likewise.
7720         * lib/unictype/categ_S.h: Likewise.
7721         * lib/unictype/categ_Sc.h: Likewise.
7722         * lib/unictype/categ_So.h: Likewise.
7723         * lib/unictype/categ_of.h: Likewise.
7724         * lib/unictype/combining.h: Likewise.
7725         * lib/unictype/ctype_alnum.h: Likewise.
7726         * lib/unictype/ctype_alpha.h: Likewise.
7727         * lib/unictype/ctype_graph.h: Likewise.
7728         * lib/unictype/ctype_lower.h: Likewise.
7729         * lib/unictype/ctype_print.h: Likewise.
7730         * lib/unictype/ctype_punct.h: Likewise.
7731         * lib/unictype/ctype_upper.h: Likewise.
7732         * lib/unictype/decdigit.h: Likewise.
7733         * lib/unictype/digit.h: Likewise.
7734         * lib/unictype/numeric.h: Likewise.
7735         * lib/unictype/pr_alphabetic.h: Likewise.
7736         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7737         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7738         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7739         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7740         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7741         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7742         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7743         * lib/unictype/pr_combining.h: Likewise.
7744         * lib/unictype/pr_composite.h: Likewise.
7745         * lib/unictype/pr_currency_symbol.h: Likewise.
7746         * lib/unictype/pr_dash.h: Likewise.
7747         * lib/unictype/pr_decimal_digit.h: Likewise.
7748         * lib/unictype/pr_deprecated.h: Likewise.
7749         * lib/unictype/pr_diacritic.h: Likewise.
7750         * lib/unictype/pr_extender.h: Likewise.
7751         * lib/unictype/pr_grapheme_base.h: Likewise.
7752         * lib/unictype/pr_grapheme_extend.h: Likewise.
7753         * lib/unictype/pr_grapheme_link.h: Likewise.
7754         * lib/unictype/pr_id_continue.h: Likewise.
7755         * lib/unictype/pr_id_start.h: Likewise.
7756         * lib/unictype/pr_ideographic.h: Likewise.
7757         * lib/unictype/pr_ignorable_control.h: Likewise.
7758         * lib/unictype/pr_logical_order_exception.h: Likewise.
7759         * lib/unictype/pr_lowercase.h: Likewise.
7760         * lib/unictype/pr_numeric.h: Likewise.
7761         * lib/unictype/pr_other_alphabetic.h: Likewise.
7762         * lib/unictype/pr_punctuation.h: Likewise.
7763         * lib/unictype/pr_sentence_terminal.h: Likewise.
7764         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7765         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7766         * lib/unictype/pr_unified_ideograph.h: Likewise.
7767         * lib/unictype/pr_uppercase.h: Likewise.
7768         * lib/unictype/pr_xid_continue.h: Likewise.
7769         * lib/unictype/pr_xid_start.h: Likewise.
7770         * lib/unictype/pr_zero_width.h: Likewise.
7771         * lib/unictype/scripts.h: Likewise.
7772         * lib/unictype/scripts_byname.gperf: Likewise.
7773         * lib/unictype/sy_java_ident.h: Likewise.
7774         * lib/unigbrk/gbrkprop.h: Likewise.
7775         * lib/unilbrk/lbrkprop1.h: Likewise.
7776         * lib/unilbrk/lbrkprop2.h: Likewise.
7777         * lib/unilbrk/lbrktables.h: Likewise.
7778         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7779         LBP_CP. Implement rule LB30.
7780         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7781         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7782         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7783         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7784         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7785         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7786         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7787         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7788         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7789         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7790         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7791         bits instead of 16 bits in the code1 and code2 of each composition
7792         rule.
7793         (uc_composition): Update for Unicode 5.2.0.
7794         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7795         * lib/uninorm/decomposition-table2.h: Likewise.
7796         * lib/uniwbrk/wbrkprop.h: Likewise.
7797         * tests/unicase/test-cased.c: Likewise.
7798         * tests/unicase/test-ignorable.c: Likewise.
7799         * tests/unicase/test-uc_tolower.c: Likewise.
7800         * tests/unicase/test-uc_totitle.c: Likewise.
7801         * tests/unicase/test-uc_toupper.c: Likewise.
7802         * tests/unictype/test-categ_C.c: Likewise.
7803         * tests/unictype/test-categ_Cf.c: Likewise.
7804         * tests/unictype/test-categ_Cn.c: Likewise.
7805         * tests/unictype/test-categ_L.c: Likewise.
7806         * tests/unictype/test-categ_Ll.c: Likewise.
7807         * tests/unictype/test-categ_Lm.c: Likewise.
7808         * tests/unictype/test-categ_Lo.c: Likewise.
7809         * tests/unictype/test-categ_Lu.c: Likewise.
7810         * tests/unictype/test-categ_M.c: Likewise.
7811         * tests/unictype/test-categ_Mc.c: Likewise.
7812         * tests/unictype/test-categ_Mn.c: Likewise.
7813         * tests/unictype/test-categ_N.c: Likewise.
7814         * tests/unictype/test-categ_Nd.c: Likewise.
7815         * tests/unictype/test-categ_Nl.c: Likewise.
7816         * tests/unictype/test-categ_No.c: Likewise.
7817         * tests/unictype/test-categ_P.c: Likewise.
7818         * tests/unictype/test-categ_Pd.c: Likewise.
7819         * tests/unictype/test-categ_Po.c: Likewise.
7820         * tests/unictype/test-categ_S.c: Likewise.
7821         * tests/unictype/test-categ_Sc.c: Likewise.
7822         * tests/unictype/test-categ_So.c: Likewise.
7823         * tests/unictype/test-ctype_alnum.c: Likewise.
7824         * tests/unictype/test-ctype_alpha.c: Likewise.
7825         * tests/unictype/test-ctype_graph.c: Likewise.
7826         * tests/unictype/test-ctype_lower.c: Likewise.
7827         * tests/unictype/test-ctype_print.c: Likewise.
7828         * tests/unictype/test-ctype_punct.c: Likewise.
7829         * tests/unictype/test-ctype_upper.c: Likewise.
7830         * tests/unictype/test-decdigit.h: Likewise.
7831         * tests/unictype/test-digit.h: Likewise.
7832         * tests/unictype/test-numeric.h: Likewise.
7833         * tests/unictype/test-pr_alphabetic.c: Likewise.
7834         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7835         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7836         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7837         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7838         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7839         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7840         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7841         * tests/unictype/test-pr_combining.c: Likewise.
7842         * tests/unictype/test-pr_composite.c: Likewise.
7843         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7844         * tests/unictype/test-pr_dash.c: Likewise.
7845         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7846         * tests/unictype/test-pr_deprecated.c: Likewise.
7847         * tests/unictype/test-pr_diacritic.c: Likewise.
7848         * tests/unictype/test-pr_extender.c: Likewise.
7849         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7850         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7851         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7852         * tests/unictype/test-pr_id_continue.c: Likewise.
7853         * tests/unictype/test-pr_id_start.c: Likewise.
7854         * tests/unictype/test-pr_ideographic.c: Likewise.
7855         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7856         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7857         * tests/unictype/test-pr_lowercase.c: Likewise.
7858         * tests/unictype/test-pr_numeric.c: Likewise.
7859         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7860         * tests/unictype/test-pr_punctuation.c: Likewise.
7861         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7862         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7863         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7864         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7865         * tests/unictype/test-pr_uppercase.c: Likewise.
7866         * tests/unictype/test-pr_xid_continue.c: Likewise.
7867         * tests/unictype/test-pr_xid_start.c: Likewise.
7868         * tests/unictype/test-pr_zero_width.c: Likewise.
7869         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7870         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7871         changed behaviour: line breaking is now disallowed between a letter
7872         or '=' and '('.
7873         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7874         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7875         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7876         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7877         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7878         lib/uniwidth/width.c.
7879         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7880         without comments, but with the original copyright notice.
7881         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7882         changes.
7883         * lib/unictype/categ_Cc.h: Likewise.
7884         * lib/unictype/categ_Co.h: Likewise.
7885         * lib/unictype/categ_Cs.h: Likewise.
7886         * lib/unictype/categ_Lt.h: Likewise.
7887         * lib/unictype/categ_Me.h: Likewise.
7888         * lib/unictype/categ_Pc.h: Likewise.
7889         * lib/unictype/categ_Pe.h: Likewise.
7890         * lib/unictype/categ_Pf.h: Likewise.
7891         * lib/unictype/categ_Pi.h: Likewise.
7892         * lib/unictype/categ_Ps.h: Likewise.
7893         * lib/unictype/categ_Sk.h: Likewise.
7894         * lib/unictype/categ_Sm.h: Likewise.
7895         * lib/unictype/categ_Z.h: Likewise.
7896         * lib/unictype/categ_Zl.h: Likewise.
7897         * lib/unictype/categ_Zp.h: Likewise.
7898         * lib/unictype/categ_Zs.h: Likewise.
7899         * lib/unictype/ctype_blank.h: Likewise.
7900         * lib/unictype/ctype_cntrl.h: Likewise.
7901         * lib/unictype/ctype_digit.h: Likewise.
7902         * lib/unictype/ctype_space.h: Likewise.
7903         * lib/unictype/ctype_xdigit.h: Likewise.
7904         * lib/unictype/mirror.h: Likewise.
7905         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7906         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7907         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7908         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7909         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7910         * lib/unictype/pr_bidi_control.h: Likewise.
7911         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7912         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7913         * lib/unictype/pr_bidi_pdf.h: Likewise.
7914         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7915         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7916         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7917         * lib/unictype/pr_format_control.h: Likewise.
7918         * lib/unictype/pr_hex_digit.h: Likewise.
7919         * lib/unictype/pr_hyphen.h: Likewise.
7920         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7921         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7922         * lib/unictype/pr_iso_control.h: Likewise.
7923         * lib/unictype/pr_join_control.h: Likewise.
7924         * lib/unictype/pr_left_of_pair.h: Likewise.
7925         * lib/unictype/pr_line_separator.h: Likewise.
7926         * lib/unictype/pr_math.h: Likewise.
7927         * lib/unictype/pr_non_break.h: Likewise.
7928         * lib/unictype/pr_not_a_character.h: Likewise.
7929         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7930         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7931         * lib/unictype/pr_other_id_continue.h: Likewise.
7932         * lib/unictype/pr_other_id_start.h: Likewise.
7933         * lib/unictype/pr_other_lowercase.h: Likewise.
7934         * lib/unictype/pr_other_math.h: Likewise.
7935         * lib/unictype/pr_other_uppercase.h: Likewise.
7936         * lib/unictype/pr_paired_punctuation.h: Likewise.
7937         * lib/unictype/pr_paragraph_separator.h: Likewise.
7938         * lib/unictype/pr_pattern_syntax.h: Likewise.
7939         * lib/unictype/pr_pattern_white_space.h: Likewise.
7940         * lib/unictype/pr_private_use.h: Likewise.
7941         * lib/unictype/pr_quotation_mark.h: Likewise.
7942         * lib/unictype/pr_radical.h: Likewise.
7943         * lib/unictype/pr_soft_dotted.h: Likewise.
7944         * lib/unictype/pr_space.h: Likewise.
7945         * lib/unictype/pr_titlecase.h: Likewise.
7946         * lib/unictype/pr_variation_selector.h: Likewise.
7947         * lib/unictype/pr_white_space.h: Likewise.
7948         * lib/unictype/sy_c_ident.h: Likewise.
7949         * lib/unictype/sy_c_whitespace.h: Likewise.
7950         * lib/unictype/sy_java_whitespace.h: Likewise.
7951         * modules/uni*/*: Bump version number of expected libunistring version.
7952         Reported by Simon Josefsson.
7953
7954 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7955
7956         useless-if-before-free: fix typo in --help and make the internal,
7957         automatic version date update process work once again.
7958         --help output contained a NUL character instead of the
7959         backslash-zero that was intended.  Also, the "must lie within
7960         the first 8 lines" line is on line 9, and hence not getting
7961         automatically updated.
7962         * build-aux/useless-if-before-free: Fix the former by adding a
7963         backslash, and the latter by condensing the three lines of what-it-does
7964         to a single line, leaving one line of slack for the future.
7965
7966 2011-01-09  Bruno Haible  <bruno@clisp.org>
7967
7968         uniwidth/width: Fix width of U+1D173..U+1D17A.
7969         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7970         symbolic_width, output_width_property_test): New functions.
7971         (main): Invoke output_nonspacing_property, output_width_property_test.
7972         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7973         U+1D173..U+1D17A.
7974         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7975         1.
7976         * modules/uniwidth/*: Bump version number of expected libunistring
7977         version.
7978         * modules/unilbrk/*: Likewise.
7979
7980 2011-01-08  Bruno Haible  <bruno@clisp.org>
7981
7982         uninorm tests: Preserve copyright of Unicode data file.
7983         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7984         Mention modifications.
7985
7986 2011-01-08  Bruno Haible  <bruno@clisp.org>
7987
7988         gen-uni-tables: Prepare for Unicode 5.2.0.
7989         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7990         (debug_output_lbp, output_lbp): Update.
7991
7992 2011-01-08  Bruno Haible  <bruno@clisp.org>
7993
7994         unilbrk: Clarify gen-uni-tables.c code.
7995         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7996         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7997         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7998
7999 2011-01-07  Bruno Haible  <bruno@clisp.org>
8000
8001         strtod: Restore errno when successfully parsing Infinity or NaN.
8002         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8003         restore the original errno.
8004
8005 2011-01-07  Bruno Haible  <bruno@clisp.org>
8006
8007         remove test: Avoid failure on HP-UX 11.
8008         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8009
8010 2011-01-07  Bruno Haible  <bruno@clisp.org>
8011
8012         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8013         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8014         error code.
8015
8016 2011-01-07  Pádraig Brady <P@draigBrady.com>
8017
8018         ignore-value: fixup comments, and add Eric Blake
8019         as an author since he rewrote the macros.
8020         * lib/ignore-value.h (ignore_value):  State that
8021         we now support aggregates.  Also specify exactly
8022         when the GCC warn_unused_result feature was added.
8023
8024 2011-01-06  Eric Blake  <eblake@redhat.com>
8025
8026         ignore-value: support aggregate types
8027         * lib/ignore-value.h (ignore_value): Provide separate gcc
8028         definition.
8029         * modules/ignore-value-tests: New test module.
8030         * tests/test-ignore-value.c: New test.
8031
8032         maint.mk: improve sc_prohibit_strcmp regex
8033         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8034         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8035         definition of STRNEQ.
8036
8037         signal: work around Haiku issue with SIGBUS
8038         * lib/siglist.h: Add comment.
8039         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8040         strsignal's favoring of SIGSEGV.
8041         * tests/test-signal.c (main): Avoid test failure.
8042         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8043         Reported by Scott McCreary.
8044
8045         maint.mk: add pre-release check to ensure submodule commits are public
8046         * top/maint.mk (public-submodule-commit): New rule.
8047         (submodule-checks): New variable.
8048         (alpha beta stable): Depend on the variable.
8049
8050 2011-01-05  Pádraig Brady <P@draigBrady.com>
8051         and Jim Meyering  <meyering@redhat.com>
8052
8053         ignore-value: make ignore_value more generic; deprecate ignore_ptr
8054         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8055         (ATTRIBUTE_DEPRECATED): Define.
8056         (_ignore_case): New function.
8057         (ignore_value): New macro, to replace the old function.
8058         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8059         * modules/ignore-value (Depends-on): Add stdint.
8060
8061 2011-01-04  Eric Blake  <eblake@redhat.com>
8062
8063         doc: regenerate INSTALL
8064         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8065         @firstparagraphindent support, now that autoconf dropped it.
8066         (INSTALL_PRELUDE): Reinstate old macro.
8067         * doc/install.texi: Resync from autoconf.
8068         * doc/INSTALL: Reflect recent autoconf update.
8069         * doc/INSTALL.ISO: Likewise.
8070         * doc/INSTALL.UTF-8: Likewise.
8071         Reported by Karl Berry.
8072
8073 2011-01-04  Bruce Korb  <address@hidden>
8074
8075         git-version-gen: avoid a sub-shell
8076         * build-aux/git-version-gen: Redirect stderr in `...` via
8077         "exec 2>...", rather than via an added sub-shell.
8078
8079 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8080
8081         git-version-gen: use (...) rather than sh -c '...'
8082         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8083         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8084
8085 2011-01-03  Jim Meyering  <meyering@redhat.com>
8086
8087         git-version-gen: convert leading TABs to spaces
8088         * build-aux/git-version-gen: Expand leading TABs.
8089
8090         git-version-gen: handle failed "git rev-list"
8091         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8092         from git and proceeding as if it had succeeded but printed no SHA1
8093         checksums, suppress the diagnostic and handle the failure.
8094         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8095
8096         git-version-gen: include command name in one more diagnostic
8097         * build-aux/git-version-gen: When the required .tarball-version file
8098         was missing or unreadable, you might see the diagnostic from "cat",
8099         but no trace of the name of the invoking script.  Now, you still see
8100         the diagnostic from cat, but also get one from "git-version-gen: ".
8101         Inspired by a patch from Bruce Korb.
8102
8103         update-copyright: adjust test to match changed code
8104         * tests/test-update-copyright.sh: Change test's expected output
8105         to match new actual output.
8106
8107 2011-01-02  Bruno Haible  <bruno@clisp.org>
8108
8109         getlogin_r: Avoid test failure on HP-UX 11.
8110         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8111         ERANGE when the second argument is zero.
8112         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8113         portability problem.
8114
8115 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8116
8117         * build-aux/update-copyright: doc Simon's changes
8118
8119 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8120
8121         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8122         environment variable.
8123
8124 2011-01-02  Bruno Haible  <bruno@clisp.org>
8125
8126         unigbrk: Avoid gcc warnings.
8127         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8128         unused variable.
8129         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8130         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8131         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8132         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8133         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8134         Change type of first argument to 'const char *'.
8135         (main): Remove unused variable.
8136         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8137         type of first argument to 'const char *'.
8138         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8139         Likewise.
8140         (main): Change type of variable 's'.
8141         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8142         to 'int'.
8143
8144 2011-01-02  Bruno Haible  <bruno@clisp.org>
8145
8146         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8147         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8148         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8149         bug.
8150         * lib/pwrite.c: Undo 2010-12-31 patch.
8151         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8152
8153 2011-01-02  Bruno Haible  <bruno@clisp.org>
8154
8155         pread: Fix test whether it works.
8156         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8157
8158 2011-01-02  Bruno Haible  <bruno@clisp.org>
8159
8160         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8161         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8162         ends in "6". Don't require a specific month name. Try also the locale
8163         names found on HP-UX 11 and Solaris 7.
8164
8165 2011-01-02  Bruno Haible  <bruno@clisp.org>
8166
8167         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8168         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8169         C linkage.
8170         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8171
8172 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8173
8174         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8175         for consistency, since the "cluster" term is not used elsewhere.
8176         * lib/unigbrk.in.h: Update name.
8177         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8178         * lib/unigbrk/u16-grapheme-next.c: Update name.
8179         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8180         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8181         * lib/unigbrk/u32-grapheme-next.c: Update name.
8182         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8183         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8184         * lib/unigbrk/u8-grapheme-next.c: Update name.
8185         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8186         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8187         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8188         Suggested by Bruno Haible.
8189
8190 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8191
8192         Remove module 'u8-grapheme-len' as too redundant with
8193         'u8-grapheme-next'.
8194         * modules/unigbrk/u8-grapheme-len: Delete file.
8195         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8196         * lib/unigbrk.in.h: Remove prototype for deleted function.
8197         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8198         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8199
8200         Remove module 'u16-grapheme-len' as too redundant with
8201         'u16-grapheme-next'.
8202         * modules/unigbrk/u16-grapheme-len: Delete file.
8203         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8204         * lib/unigbrk.in.h: Remove prototype for deleted function.
8205         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8206         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8207
8208         Remove module 'u32-grapheme-len' as too redundant with
8209         'u32-grapheme-next'.
8210         * modules/unigbrk/u32-grapheme-len: Delete file.
8211         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8212         * lib/unigbrk.in.h: Remove prototype for deleted function.
8213         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8214         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8215
8216         Suggested by Bruno Haible.
8217
8218 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8219
8220         * unigbrk.in.h: Fix typo: "ben" => "been".
8221         Reported by Bruno Haible.
8222
8223 2011-01-01  Jim Meyering  <meyering@redhat.com>
8224
8225         maint: update almost all copyright ranges to include 2011
8226         Run the new "make update-copyright" rule.
8227
8228 2011-01-01  Jim Meyering  <meyering@redhat.com>
8229
8230         maint: update-copyright: exempt doc/INSTALL*
8231         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8232         since they are generated.  Suggested by Bruno Haible.
8233
8234 2011-01-01  Jim Meyering  <meyering@redhat.com>
8235
8236         maint: refine the update-copyright rule
8237         * Makefile (update-copyright): Also exclude any file that includes
8238         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8239         code that merely generates the comment.
8240
8241 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8242
8243         New module 'u8-grapheme-len'.
8244         * modules/unigbrk/u8-grapheme-len: New file.
8245         * modules/unigbrk/u8-grapheme-len-tests: New file.
8246         * lib/unigbrk.in.h: Add prototype for new function.
8247         * lib/unigbrk/u8-grapheme-len.c: New file.
8248         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8249
8250         New module 'u16-grapheme-len'.
8251         * modules/unigbrk/u16-grapheme-len: New file.
8252         * modules/unigbrk/u16-grapheme-len-tests: New file.
8253         * lib/unigbrk.in.h: Add prototype for new function.
8254         * lib/unigbrk/u16-grapheme-len.c: New file.
8255         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8256
8257         New module 'u32-grapheme-len'.
8258         * modules/unigbrk/u32-grapheme-len: New file.
8259         * modules/unigbrk/u32-grapheme-len-tests: New file.
8260         * lib/unigbrk.in.h: Add prototype for new function.
8261         * lib/unigbrk/u32-grapheme-len.c: New file.
8262         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8263
8264         New module 'u8-grapheme-next'.
8265         * modules/unigbrk/u8-grapheme-next: New file.
8266         * modules/unigbrk/u8-grapheme-next-tests: New file.
8267         * lib/unigbrk.in.h: Add prototype for new function.
8268         * lib/unigbrk/u8-grapheme-next.c: New file.
8269         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8270
8271         New module 'u16-grapheme-next'.
8272         * modules/unigbrk/u16-grapheme-next: New file.
8273         * modules/unigbrk/u16-grapheme-next-tests: New file.
8274         * lib/unigbrk.in.h: Add prototype for new function.
8275         * lib/unigbrk/u16-grapheme-next.c: New file.
8276         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8277
8278         New module 'u32-grapheme-next'.
8279         * modules/unigbrk/u32-grapheme-next: New file.
8280         * modules/unigbrk/u32-grapheme-next-tests: New file.
8281         * lib/unigbrk.in.h: Add prototype for new function.
8282         * lib/unigbrk/u32-grapheme-next.c: New file.
8283         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8284
8285         New module 'u8-grapheme-prev'.
8286         * modules/unigbrk/u8-grapheme-prev: New file.
8287         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8288         * lib/unigbrk.in.h: Add prototype for new function.
8289         * lib/unigbrk/u8-grapheme-prev.c: New file.
8290         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8291
8292         New module 'u16-grapheme-prev'.
8293         * modules/unigbrk/u16-grapheme-prev: New file.
8294         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8295         * lib/unigbrk.in.h: Add prototype for new function.
8296         * lib/unigbrk/u16-grapheme-prev.c: New file.
8297         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8298
8299         New module 'u32-grapheme-prev'.
8300         * modules/unigbrk/u32-grapheme-prev: New file.
8301         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8302         * lib/unigbrk.in.h: Add prototype for new function.
8303         * lib/unigbrk/u32-grapheme-prev.c: New file.
8304         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8305
8306         New module 'u8-grapheme-breaks'.
8307         * modules/unigbrk/u8-grapheme-breaks: New file.
8308         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8309         * lib/unigbrk.in.h: Add prototype for new function.
8310         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8311         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8312
8313         New module 'u16-grapheme-breaks'.
8314         * modules/unigbrk/u16-grapheme-breaks: New file.
8315         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8316         * lib/unigbrk.in.h: Add prototype for new function.
8317         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8318         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8319
8320         New module 'u32-grapheme-breaks'.
8321         * modules/unigbrk/u32-grapheme-breaks: New file.
8322         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8323         * lib/unigbrk.in.h: Add prototype for new function.
8324         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8325         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8326
8327         New module 'ulc-grapheme-breaks'.
8328         * modules/unigbrk/ulc-grapheme-breaks: New file.
8329         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8330         * m4/locale-ar.m4: New file.
8331         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8332         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8333         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8334
8335 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8336
8337         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8338         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8339         modified how this file was generated before I initially submitted
8340         the module, but failed to regenerate it.  This meant that several
8341         of the level2 entries were wrong.
8342         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8343         Remove the division-by-2 that is folded into the table now that
8344         gbrkprop.h has been regenerated properly.  Now -1 entries are
8345         handled correctly.
8346
8347         New module 'unigbrk/uc-gbrk-prop-tests'.
8348         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8349         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8350         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8351         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8352
8353 2011-01-01  Bruno Haible  <bruno@clisp.org>
8354
8355         Avoid use of hexadecimal escapes.
8356         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8357         instead of hexadecimal escapes.
8358
8359 2011-01-01  Jim Meyering  <meyering@redhat.com>
8360
8361         maint: new rule to update copyright year ranges
8362         * Makefile (update-copyright): New rule.
8363
8364         maint: indent with TABs in Makefile
8365         * Makefile: Expand leading sequences of spaces to TABs
8366
8367         version-etc: update the copyright year it reports
8368         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8369
8370 2010-12-31  Bruno Haible  <bruno@clisp.org>
8371
8372         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8373         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8374         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8375         zero.
8376
8377 2010-12-31  Bruno Haible  <bruno@clisp.org>
8378
8379         pwrite: Work around HP-UX 11.11 bug.
8380         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8381         works and set REPLACE_PWRITE if not.
8382         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8383         function.
8384         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8385
8386 2010-12-31  Bruno Haible  <bruno@clisp.org>
8387
8388         pread: Work around HP-UX 11 bugs.
8389         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8390         and set REPLACE_PREAD if not.
8391         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8392
8393 2010-12-31  Eric Blake  <eblake@redhat.com>
8394
8395         nl_langinfo: fix YESEXPR on Irix 6.5
8396         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8397         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8398         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8399         it.
8400
8401 2010-12-31  Bruno Haible  <bruno@clisp.org>
8402
8403         iconv: Document HP-UX 11 bug.
8404         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8405
8406 2010-12-31  Bruno Haible  <bruno@clisp.org>
8407
8408         ldexpl: Fix link error on HP-UX 11.
8409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8410         LDEXPL_LIBM, using $ISNANL_LIBM.
8411
8412 2010-12-31  Eric Blake  <eblake@redhat.com>
8413
8414         ftello: avoid compilation failure with SunStudio c89
8415         * lib/ftello.c (ftello): Use lseek, not llseek.
8416
8417         tests: avoid failing coreutils tests on cygwin
8418         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8419         (create_exe_shims_): Return 0 when skipping.
8420
8421 2010-12-31  Bruno Haible  <bruno@clisp.org>
8422
8423         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8424         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8425
8426 2010-12-31  Bruno Haible  <bruno@clisp.org>
8427
8428         waitpid: Fix link error in C++ mode.
8429         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8430
8431 2010-12-31  Bruno Haible  <bruno@clisp.org>
8432
8433         isnan: Use GCC built-ins when possible.
8434         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8435         __builtin_isnan.
8436         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8437         (isnan): Define using GCC built-ins for GCC >= 4.0.
8438
8439 2010-12-31  Bruno Haible  <bruno@clisp.org>
8440
8441         isnand: Fix mistake.
8442         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8443         __builtin_isnand.
8444
8445 2010-12-31  Bruno Haible  <bruno@clisp.org>
8446
8447         open: Avoid C++ error on HP-UX 11.
8448         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8449
8450 2010-12-31  Bruno Haible  <bruno@clisp.org>
8451
8452         time_r: Add missing declarations on HP-UX 11.
8453         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8454         instead of HAVE_LOCALTIME_R.
8455         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8456         HAVE_LOCALTIME_R always.
8457         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8458         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8459         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8460         HAVE_LOCALTIME_R.
8461         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8462         * doc/posix-functions/localtime_r.texi: Likewise.
8463
8464 2010-12-29  Eric Blake  <eblake@redhat.com>
8465
8466         mountlist: tweak previous commit
8467         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8468         Reported by Paul Eggert.
8469
8470         mountlist: fix local drive detection on cygwin
8471         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8472         that works for cygwin.
8473
8474 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8475
8476         ftoastr, snprintf: ftoastr + snprintf module
8477         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8478         since the snprintf module now should be good enough here.
8479         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8480         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8481         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8482         GNULIB_SNPRINTF only for the test directory, and the latter
8483         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8484         seems to suffice by itself.
8485
8486 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8487
8488         alloca: one step towards thread-safety
8489         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8490         need for a static variable.  All callers changed.  This does not
8491         make the alloca replacement thread-safe, but it's one step.
8492
8493         tests: minor indenting change
8494         * tests/init.sh: Sync from coreutils housekeeping patch
8495         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8496         to keep lines within 80 columns.
8497
8498 2010-12-28  Jim Meyering  <meyering@redhat.com>
8499
8500         regex: don't infloop on persistent failing calloc
8501         * lib/regexec.c (build_trtable): Return failure indication upon
8502         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8503         In glibc, this was fixed for version 2.13:
8504         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8505
8506 2010-12-28  Bruno Haible  <bruno@clisp.org>
8507             Paul Eggert <eggert@cs.ucla.edu>
8508
8509         linkat: Make implementation robust against system behaviour variations.
8510         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8511         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8512         way, and to -2 if it needs a generic runtime test.
8513         * lib/linkat.c (solaris_optimized_link_immediate,
8514         solaris_optimized_link_follow): New functions.
8515         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8516         (check_same_link): Use it.
8517
8518 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8519
8520         New module 'unigbrk/base'.
8521         * modules/unigbrk/base: New file.
8522         * lib/unigbrk.in.h: New file.
8523
8524         New module 'unigbrk/uc-gbrk-prop'.
8525         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8526         * modules/unigbrk/uc-gbrk-prop: New file.
8527         * lib/unigbrk/gbrkprop.h: New file.
8528         * lib/unigbrk/uc-gbrk-prop.c: New file.
8529
8530         New module 'unigbrk/uc-is-grapheme-break'.
8531         * modules/unigbrk/uc-is-grapheme-break: New file.
8532         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8533         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8534         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8535         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8536         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8537
8538         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8539
8540 2010-12-27  Bruno Haible  <bruno@clisp.org>
8541
8542         linkat test: Avoid failure on Solaris 11 2010-11.
8543         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8544
8545 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8546
8547         utimens: work around glibc rounding bug on more platforms
8548         * lib/utimens.c (fdutimens): Work around rounding bug even if
8549         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8551
8552 2010-12-27  Bruno Haible  <bruno@clisp.org>
8553
8554         select tests: Improve comments.
8555         * tests/test-select.c (do_select): Add comments.
8556
8557 2010-12-27  Bruno Haible  <bruno@clisp.org>
8558
8559         select tests: Safer way of handling timeout.
8560         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8561         at every invocation.
8562
8563 2010-12-27  Bruno Haible  <bruno@clisp.org>
8564
8565         select tests: Use 'bool' where appropriate.
8566         * tests/test-select.c (connect_to_socket): Change argument type to
8567         'bool'.
8568
8569 2010-12-27  Bruno Haible  <bruno@clisp.org>
8570
8571         select tests: Use existing modules.
8572         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8573         (configure.ac): Don't test for unistd.h.
8574         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8575         declared in <unistd.h>.
8576
8577 2010-12-27  Bruno Haible  <bruno@clisp.org>
8578
8579         mbrtowc: Work around a Solaris 7 bug.
8580         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8581         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8582         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8583         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8584         MBRTOWC_NULL_ARG1_BUG.
8585         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8586         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8587         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8588         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8589
8590 2010-12-27  Jim Meyering  <meyering@redhat.com>
8591
8592         read-file.c: tweak syntax
8593         * lib/read-file.c (fread_file): Remove space after "*" in function
8594         definitions.
8595
8596 2010-12-27  Bruno Haible  <bruno@clisp.org>
8597
8598         times test: Avoid gcc warnings on OSF/1.
8599         * tests/test-times.c (main): Cast printf arguments from clock_t to
8600         'long int'.
8601
8602 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8603
8604         utimens: work around glibc rounding bug on older Linux kernels
8605         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8606         on Linux with a glibc whose utimes might not work, then work
8607         around a longstanding glibc bug involving rounding rather than
8608         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8610
8611 2010-12-26  Bruno Haible  <bruno@clisp.org>
8612
8613         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8614         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8615         _GL_CXXALIAS_SYS.
8616         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8617
8618 2010-12-26  Bruno Haible  <bruno@clisp.org>
8619
8620         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8621         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8622         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8623         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8624         looking for the declaration.
8625         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8626         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8627         problem.
8628         * doc/posix-functions/inet_pton.texi: Likewise.
8629
8630 2010-12-26  Bruno Haible  <bruno@clisp.org>
8631
8632         arpa_inet: Use the common idioms with C++ support.
8633         * lib/arpa_inet.in.h: Include c++defs.h.
8634         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8635         support.
8636         * modules/arpa_inet (Depends-on): Add c++defs.
8637         (Makefile.am): Substitute the contents of c++defs.h.
8638         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8639         * modules/arpa_inet-c++-tests: New file.
8640         * tests/test-arpa_inet-c++.cc: New file.
8641
8642 2010-12-25  Bruno Haible  <bruno@clisp.org>
8643
8644         Fix more C++ link errors on Solaris 8.
8645         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8646         $(LIB_EACCESS).
8647         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8648         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8649         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8650         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8651         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8652
8653 2010-12-25  Bruno Haible  <bruno@clisp.org>
8654
8655         printf-posix: Fix link error when a non-GCC compiler is used.
8656         * lib/stdio.in.h (printf): When not using GCC, override printf
8657         correctly.
8658         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8659
8660 2010-12-25  Bruno Haible  <bruno@clisp.org>
8661
8662         strerror_r-posix: Update doc.
8663         * doc/posix-functions/strerror_r.texi: Update doc about the return
8664         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8665
8666 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8667
8668         utimens: simplify the logic of the previous change
8669         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8670         This should not affect whether the test succeeds or fails.
8671
8672         utimens: configure better on hosts with NFS clock skew
8673         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8674         uses the clock of the local host.  It might use the clock of the
8675         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8677
8678 2010-12-25  Bruno Haible  <bruno@clisp.org>
8679
8680         ptsname test: Avoid failure on Solaris.
8681         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8682         open a pseudo-terminal; don't use BSD-style ptys.
8683         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8684
8685 2010-12-25  Bruno Haible  <bruno@clisp.org>
8686
8687         ptsname: Avoid ERANGE failure on some systems.
8688         * lib/ptsname.c (buffer): Increase size.
8689
8690 2010-12-25  Bruno Haible  <bruno@clisp.org>
8691
8692         rename, renameat: Avoid test failures at NFS mounted locations.
8693         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8694         so that subsequent mkdir calls succeed.
8695
8696 2010-12-25  Bruno Haible  <bruno@clisp.org>
8697
8698         iswblank: Fix C++ link error on Solaris 8.
8699         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8700         _GL_FUNCDECL_SYS.
8701
8702 2010-12-25  Bruno Haible  <bruno@clisp.org>
8703
8704         unistd: Fix C++ link error on Solaris 8.
8705         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8706
8707 2010-12-25  Bruno Haible  <bruno@clisp.org>
8708
8709         readlink doc: Mention an old glibc bug.
8710         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8711
8712 2010-12-25  Bruno Haible  <bruno@clisp.org>
8713
8714         fcntl-h: Fix for use of C++ on glibc systems.
8715         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8716         also on glibc systems in C++ mode.
8717         Reported by Gary V. Vaughan <gary@gnu.org>.
8718
8719 2010-12-25  Bruno Haible  <bruno@clisp.org>
8720
8721         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8722         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8723
8724 2010-12-25  Bruno Haible  <bruno@clisp.org>
8725
8726         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8727         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8728         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8729         test whether truncl works according to ISO C 99 with IEC 60559.
8730         * m4/truncl-ieee.m4: New file.
8731         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8732         m4/signbit.m4.
8733         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8734
8735 2010-12-25  Bruno Haible  <bruno@clisp.org>
8736
8737         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8738         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8739         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8740         test whether ceill works according to ISO C 99 with IEC 60559.
8741         * m4/ceill-ieee.m4: New file.
8742         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8743         m4/signbit.m4.
8744         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8745
8746 2010-12-25  Bruno Haible  <bruno@clisp.org>
8747
8748         Ensure all prerequisites of <wchar.h> are included.
8749         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8750         before <wchar.h>.
8751         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8752         gl_MBRLEN_NUL_RETVAL): Likewise.
8753         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8754         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8755         AC_FUNC_MBRTOWC): Likewise.
8756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8757         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8758         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8759         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8760         Likewise.
8761         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8762         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8763         (gl_WCHAR_H): Improve comments.
8764         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8765
8766 2010-12-25  Bruno Haible  <bruno@clisp.org>
8767
8768         strtok_r: Fix C syntax error in autoconf macro.
8769         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8770         characters in test program.
8771
8772 2010-12-24  Bruno Haible  <bruno@clisp.org>
8773
8774         ceil, trunc, round: Fix gcc warnings.
8775         * lib/ceil.c (MIN): Undefine before redefining.
8776         * lib/trunc.c (MIN): Likewise.
8777         * lib/round.c (MIN): Likewise.
8778         Include <math.h> first.
8779
8780 2010-12-24  Bruno Haible  <bruno@clisp.org>
8781
8782         select tests: Avoid failures on OSF/1 5.1.
8783         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8784         failure of closing the last socket; it may fail with ECONNRESET.
8785
8786 2010-12-24  Eric Blake  <eblake@redhat.com>
8787
8788         stdint: avoid HP-UX 10.20 preprocessor bug
8789         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8790         than #if.
8791         * tests/test-floor2.c (main): Likewise.
8792         Reported by Peter O'Gorman.
8793
8794         pipe: make obsoletion transition easier
8795         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8796         * modules/pipe (Files): Include revived file.
8797         (Include): Drop reference, to mirror getdate's behavior.
8798
8799 2010-12-24  Bruno Haible  <bruno@clisp.org>
8800
8801         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8802         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8803         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8804         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8805
8806 2010-12-24  Bruno Haible  <bruno@clisp.org>
8807
8808         gethostname: Ensure declaration on NonStop Kernel.
8809         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8810         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8811
8812 2010-12-24  Bruno Haible  <bruno@clisp.org>
8813
8814         sys_select: Ensure all necessary types on NonStop Kernel.
8815         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8816         include <sys/time.h>.
8817         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8818         NonStop Kernel.
8819         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8820
8821 2010-12-24  Bruno Haible  <bruno@clisp.org>
8822
8823         sys_select: Remove unneeded include.
8824         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8825         have <sys/select.h>.
8826
8827 2010-12-24  Bruno Haible  <bruno@clisp.org>
8828
8829         gethostname: Provide a fallback for HOST_NAME_MAX.
8830         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8831         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8832         instead.
8833         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8834
8835 2010-12-24  Bruno Haible  <bruno@clisp.org>
8836
8837         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8838         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8839         (SA_RESTART): Likewise.
8840         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8841
8842 2010-12-24  Bruno Haible  <bruno@clisp.org>
8843
8844         signal: Define NSIG.
8845         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8846         * tests/test-signal.c (nsig): New variable.
8847         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8848
8849 2010-12-24  Bruno Haible  <bruno@clisp.org>
8850
8851         rename, renameat: Avoid test failures on OSF/1 5.1.
8852         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8853         alternative error codes.
8854         * tests/test-renameat.c (main): Likewise.
8855
8856 2010-12-24  Bruno Haible  <bruno@clisp.org>
8857
8858         *printf: Detect large precisions bug on Solaris 10/SPARC.
8859         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8860         by Paul Eggert.
8861         * tests/test-snprintf-posix.h (test_function): Add this test code here
8862         too.
8863         * tests/test-sprintf-posix.h (test_function): Likewise.
8864         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8865         * tests/test-vasprintf-posix.c (test_function): Likewise.
8866         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8867         around by gnulib.
8868         * doc/posix-functions/printf.texi: Likewise.
8869         * doc/posix-functions/snprintf.texi: Likewise.
8870         * doc/posix-functions/sprintf.texi: Likewise.
8871         * doc/posix-functions/vfprintf.texi: Likewise.
8872         * doc/posix-functions/vprintf.texi: Likewise.
8873         * doc/posix-functions/vsnprintf.texi: Likewise.
8874         * doc/posix-functions/vsprintf.texi: Likewise.
8875         * doc/posix-functions/dprintf.texi: Undo last commit.
8876         * doc/posix-functions/vdprintf.texi: Likewise.
8877
8878 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8879
8880         tests: port test-fdutimensat.c to Solaris 8
8881         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8882         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8883         On Solaris 8, it fails with errno == ENOSYS, because there is no
8884         futimens (so it can't use the fd), and there is no lutimens (so it
8885         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8886
8887         vsnprintf: make more consistent with snprintf; doc fixes
8888
8889         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8890         the byte count return problem was promoted from the snprintf-posix
8891         to the snprintf module.
8892         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8893         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8894         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8895         * tests/test-snprintf.c (main): Check the byte count returned.
8896         * tests/test-vsnprintf.c (main): Likewise.
8897
8898 2010-12-23  Eric Blake  <eblake@redhat.com>
8899
8900         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8901         * modules/sigpipe (License): Relax license.
8902
8903 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8904
8905         doc: document Solaris printf bug with large float precisions
8906         * doc/posix-functions/dprintf.texi (dprintf):
8907         * doc/posix-functions/fprintf.texi (fprintf):
8908         * doc/posix-functions/printf.texi (printf):
8909         * doc/posix-functions/snprintf.texi (snprintf):
8910         * doc/posix-functions/sprintf.texi (sprintf):
8911         * doc/posix-functions/vdprintf.texi (vdprintf):
8912         * doc/posix-functions/vfprintf.texi (vfprintf):
8913         * doc/posix-functions/vprintf.texi (vprintf):
8914         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8915         * doc/posix-functions/vsprintf.texi (vsprintf):
8916         Mention that these functions mishandle large floating point
8917         precisions on Solaris 10.  The same bug is also present in Solaris
8918         8, and I assume earlier.  This causes "cd gnulib-tests; make
8919         check" to fail on Solaris 8 (and I assume, later) when building
8920         the latest coreutils, in test-vasprintf-posix's call to
8921         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8922         the wide flavors (e.g., wprintf) so this patch just updates the
8923         documentation for the narrow ones.
8924
8925         test-posixtm.c: add two tests
8926         * tests/test-posixtm.c: Add two tests, to highlight the
8927         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8928         around this bug; this is merely to document it.
8929
8930 2010-12-22  Bruno Haible  <bruno@clisp.org>
8931
8932         getlogin_r: Work around portability problem on OSF/1.
8933         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8934         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8935         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8936         test for a truncated result.
8937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8938         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8939         * modules/getlogin_r (Depends-on): Add memchr.
8940         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8941
8942 2010-12-22  Bruno Haible  <bruno@clisp.org>
8943
8944         ptsname: Avoid test failure on OSF/1 5.1.
8945         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8946         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8947         (same_slave): New function.
8948         (main): Use it to compare ptsname's result with the expected file name.
8949
8950 2010-12-22  Bruno Haible  <bruno@clisp.org>
8951
8952         Port extended stdio modules to HP NonStop Kernel.
8953         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8954         macros.
8955         * lib/fbufmode.c: Update comments.
8956         * lib/fflush.c: Likewise.
8957         * lib/fpurge.c: Likewise.
8958         * lib/freadable.c: Likewise.
8959         * lib/freadahead.c: Likewise.
8960         * lib/freading.c: Likewise.
8961         * lib/freadptr.c: Likewise.
8962         * lib/freadseek.c: Likewise.
8963         * lib/fseeko.c: Likewise.
8964         * lib/fseterr.c: Likewise.
8965         * lib/fwritable.c: Likewise.
8966         * lib/fwriting.c: Likewise.
8967         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8968
8969 2010-12-22  Bruno Haible  <bruno@clisp.org>
8970
8971         ttyname_r: Work around bug on OSF/1 5.1.
8972         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8974         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8975         present.
8976         * lib/ttyname_r.c (ttyname_r): Update comments.
8977
8978 2010-12-22  Bruno Haible  <bruno@clisp.org>
8979
8980         round: Implement result sign according to IEEE 754.
8981         * lib/round.c (MIN, MINUS_ZERO): New macros.
8982         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8983         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8984         * tests/test-round-ieee.c (main): Likewise.
8985         * tests/test-roundl-ieee.c (main): Likewise.
8986
8987         trunc: Implement result sign according to IEEE 754.
8988         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8989         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8990         * tests/test-trunc2.c: Include minus-zero.h.
8991         (MINUS_ZERO): New macro.
8992         (trunc_reference): Keep in sync with lib/trunc.c.
8993         * tests/test-truncf2.c: Include minus-zero.h.
8994         (MINUS_ZERO): New macro.
8995         (truncf_reference): Keep in sync with lib/trunc.c.
8996         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8997         * tests/test-trunc-ieee.c (main): Likewise.
8998         * tests/test-truncl-ieee.c (main): Likewise.
8999
9000         ceil: Implement result sign according to IEEE 754.
9001         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9002         (FUNC): Return -0.0 for -1 < x < 0.
9003         * tests/test-ceil2.c: Include minus-zero.h.
9004         (MINUS_ZERO): New macro.
9005         (ceil_reference): Keep in sync with lib/ceil.c.
9006         * tests/test-ceilf2.c: Include minus-zero.h.
9007         (MINUS_ZERO): New macro.
9008         (ceilf_reference): Keep in sync with lib/ceil.c.
9009         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9010         * tests/test-ceil-ieee.c (main): Likewise.
9011         * tests/test-ceill-ieee.c (main): Likewise.
9012
9013         floor: Implement result sign according to IEEE 754.
9014         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9015         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9016         * tests/test-floorf2.c (floorf_reference): Likewise.
9017         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9018         * tests/test-floor-ieee.c (main): Likewise.
9019         * tests/test-floorl-ieee.c (main): Likewise.
9020
9021 2010-12-22  Bruno Haible  <bruno@clisp.org>
9022
9023         getaddrinfo: Update doc.
9024         * doc/posix-functions/gai_strerror.texi: Return type is also different
9025         on AIX and HP-UX.
9026
9027 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         getaddrinfo, inet_ntop: Update doc for Solaris.
9030         * doc/posix-functions/gai_strerror.texi: Return type is also an
9031         issue on Solaris 9 and earlier.
9032         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9033         on Solaris 10 and earlier.
9034
9035 2010-12-21  Bruno Haible  <bruno@clisp.org>
9036
9037         New module 'roundl-ieee'.
9038         * modules/roundl-ieee: New file.
9039         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9040         test whether roundl works according to ISO C 99 with IEC 60559.
9041         * m4/roundl-ieee.m4: New file.
9042         * modules/roundl-ieee-tests: New file.
9043         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9044         * tests/test-roundl.c (main): Remove signbit tests.
9045         * modules/roundl-tests (Depends-on): Remove signbit.
9046         * doc/posix-functions/roundl.texi: Mention the new module.
9047
9048 2010-12-21  Bruno Haible  <bruno@clisp.org>
9049
9050         New module 'truncl-ieee'.
9051         * modules/truncl-ieee: New file.
9052         * modules/truncl-ieee-tests: New file.
9053         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
9054         * tests/test-truncl.c (main): Remove signbit tests.
9055         * modules/truncl-tests (Depends-on): Remove signbit.
9056         * doc/posix-functions/truncl.texi: Mention the new module.
9057
9058 2010-12-21  Bruno Haible  <bruno@clisp.org>
9059
9060         New module 'ceill-ieee'.
9061         * modules/ceill-ieee: New file.
9062         * modules/ceill-ieee-tests: New file.
9063         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9064         * tests/test-ceill.c (main): Remove signbit tests.
9065         * modules/ceill-tests (Depends-on): Remove signbit.
9066         * doc/posix-functions/ceill.texi: Mention the new module.
9067
9068 2010-12-21  Bruno Haible  <bruno@clisp.org>
9069
9070         New module 'floorl-ieee'.
9071         * modules/floorl-ieee: New file.
9072         * modules/floorl-ieee-tests: New file.
9073         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9074         * tests/test-floorl.c (main): Remove signbit tests.
9075         * modules/floorl-tests (Depends-on): Remove signbit.
9076         * doc/posix-functions/floorl.texi: Mention the new module.
9077
9078 2010-12-21  Bruno Haible  <bruno@clisp.org>
9079
9080         New module 'round-ieee'.
9081         * modules/round-ieee: New file.
9082         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9083         whether round works according to ISO C 99 with IEC 60559.
9084         * m4/round-ieee.m4: New file.
9085         * modules/round-ieee-tests: New file.
9086         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9087         * tests/test-round1.c (main): Remove signbit tests.
9088         * modules/round-tests (Depends-on): Remove 'signbit'.
9089         * doc/posix-functions/round.texi: Mention the new module.
9090
9091 2010-12-21  Bruno Haible  <bruno@clisp.org>
9092
9093         New module 'trunc-ieee'.
9094         * modules/trunc-ieee: New file.
9095         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9096         whether trunc works according to ISO C 99 with IEC 60559.
9097         * m4/trunc-ieee.m4: New file.
9098         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9100         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9101         * modules/trunc-ieee-tests: New file.
9102         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9103         * tests/test-trunc1.c (main): Remove signbit tests.
9104         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9105         * doc/posix-functions/trunc.texi: Mention the new module.
9106
9107 2010-12-21  Bruno Haible  <bruno@clisp.org>
9108
9109         New module 'ceil-ieee'.
9110         * modules/ceil-ieee: New file.
9111         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9112         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9113         ISO C 99 with IEC 60559.
9114         * m4/ceil-ieee.m4: New file.
9115         * modules/ceil (Files): Add lib/ceil.c.
9116         (Depends-on): Add 'float'.
9117         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9118         * lib/math.in.h (ceil): New declaration.
9119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9120         REPLACE_CEIL.
9121         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9122         * modules/ceil-ieee-tests: New file.
9123         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9124         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9125         * doc/posix-functions/ceil.texi: Mention the new module.
9126
9127 2010-12-21  Bruno Haible  <bruno@clisp.org>
9128
9129         New module 'floor-ieee'.
9130         * modules/floor-ieee: New file.
9131         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9132         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9133         ISO C 99 with IEC 60559.
9134         * m4/floor-ieee.m4: New file.
9135         * modules/floor (Files): Add lib/floor.c.
9136         (Depends-on): Add 'float'.
9137         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9138         * lib/math.in.h (floor): New declaration.
9139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9140         REPLACE_FLOOR.
9141         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9142         * modules/floor-ieee-tests: New file.
9143         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9144         * tests/test-math-c++.cc: Check the signature of 'floor'.
9145         * doc/posix-functions/floor.texi: Mention the new module.
9146
9147 2010-12-21  Bruno Haible  <bruno@clisp.org>
9148
9149         New module 'roundf-ieee'.
9150         * modules/roundf-ieee: New file.
9151         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9152         test whether roundf works according to ISO C 99 with IEC 60559.
9153         * m4/roundf-ieee.m4: New file.
9154         * modules/roundf-ieee-tests: New file.
9155         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9156         * tests/test-roundf1.c (main): Remove signbit tests.
9157         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9158         * doc/posix-functions/roundf.texi: Mention the new module.
9159
9160 2010-12-21  Bruno Haible  <bruno@clisp.org>
9161
9162         New module 'truncf-ieee'.
9163         * modules/truncf-ieee: New file.
9164         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9165         test whether truncf works according to ISO C 99 with IEC 60559.
9166         * m4/truncf-ieee.m4: New file.
9167         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9169         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9170         * modules/truncf-ieee-tests: New file.
9171         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9172         * tests/test-truncf1.c (main): Remove signbit tests.
9173         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9174         * doc/posix-functions/truncf.texi: Mention the new module.
9175
9176 2010-12-21  Bruno Haible  <bruno@clisp.org>
9177
9178         New module 'ceilf-ieee'.
9179         * modules/ceilf-ieee: New file.
9180         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9181         test whether ceilf works according to ISO C 99 with IEC 60559.
9182         * m4/ceilf-ieee.m4: New file.
9183         * modules/ceilf-ieee-tests: New file.
9184         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9185         * tests/test-ceilf1.c (main): Remove signbit tests.
9186         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9187         * doc/posix-functions/ceilf.texi: Mention the new module.
9188
9189 2010-12-21  Bruno Haible  <bruno@clisp.org>
9190
9191         New module 'floorf-ieee'.
9192         * modules/floorf-ieee: New file.
9193         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9194         test whether floorf works according to ISO C 99 with IEC 60559.
9195         * m4/floorf-ieee.m4: New file.
9196         * modules/floorf-ieee-tests: New file.
9197         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9198         * tests/test-floorf1.c (main): Remove signbit tests.
9199         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9200         * doc/posix-functions/floorf.texi: Mention the new module.
9201
9202 2010-12-21  Bruno Haible  <bruno@clisp.org>
9203
9204         Support for minus zero in autoconf macros.
9205         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9206         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9207         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9208         * tests/minus-zero.h: Update comments.
9209
9210 2010-12-21  Bruno Haible  <bruno@clisp.org>
9211
9212         Tests for module 'ceil'.
9213         * modules/ceil-tests: New file.
9214         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9215         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9216
9217 2010-12-21  Bruno Haible  <bruno@clisp.org>
9218
9219         Tests for module 'floor'.
9220         * modules/floor-tests: New file.
9221         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9222         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9223
9224 2010-12-21  Bruno Haible  <bruno@clisp.org>
9225
9226         math: Fix indentation.
9227         * lib/math.in.h (floorf): Fix indentation.
9228
9229 2010-12-21  Bruno Haible  <bruno@clisp.org>
9230
9231         Fix cross-compilation guesses on Solaris.
9232         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9233         not match "solaris2.10".
9234         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9235         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9236         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9237
9238 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9239
9240         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9241         This fixes a problem observed with the latest coreutils snapshot
9242         that caused a test to fail on Solaris 8.  src/csplit.c's call
9243         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9244         earlier, instead of returning the number of bytes that would have
9245         been generated; this causes csplit to incorrectly report memory
9246         exhaustion.
9247         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9248         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9249         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9250         comments to match.
9251         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9252         Fix typo in matching older versions of Solaris: "solaris2.10"
9253         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9254         only for guessing while cross-compiling.
9255         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9256
9257 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         ftoastr: fix comment again
9260         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9262         Also, simplify example a bit by using flags = 0.
9263
9264 2010-12-20  Bruno Haible  <bruno@clisp.org>
9265
9266         round*, trunc*: Update documentation regarding glibc.
9267         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9268         * doc/posix-functions/round.texi: Likewise.
9269         * doc/posix-functions/roundl.texi: Likewise.
9270         * doc/posix-functions/truncf.texi: Likewise.
9271         * doc/posix-functions/trunc.texi: Likewise.
9272         * doc/posix-functions/truncl.texi: Likewise.
9273
9274 2010-12-20  Bruno Haible  <bruno@clisp.org>
9275
9276         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9277         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9278         * doc/posix-functions/round.texi: Likewise.
9279         * doc/posix-functions/roundl.texi: Likewise.
9280
9281 2010-12-20  Bruno Haible  <bruno@clisp.org>
9282
9283         ttyname_r: Add missing declaration on HP-UX 11.
9284         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9285         HAVE_TTYNAME_R.
9286         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9287         declared. Set HAVE_TTYNAME_R always.
9288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9289         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9290         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9291         HAVE_TTYNAME_R.
9292         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9293
9294 2010-12-20  Bruno Haible  <bruno@clisp.org>
9295
9296         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9297         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9298         * doc/posix-functions/getlogin_r.texi: Likewise.
9299         * tests/test-getlogin.c: Include <errno.h>.
9300         (main): Avoid test failure on HP-UX 11.11.
9301         * tests/test-getlogin_r.c (main): Likewise.
9302
9303 2010-12-20  Bruno Haible  <bruno@clisp.org>
9304
9305         getlogin_r: Add missing declaration on HP-UX 11.
9306         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9307         declared also when it exists as a function.
9308         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9309
9310 2010-12-20  Bruno Haible  <bruno@clisp.org>
9311
9312         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9313         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9314         through wcrtomb.
9315
9316 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9317
9318         ftoastr: fix comment
9319         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9321
9322 2010-12-19  Bruno Haible  <bruno@clisp.org>
9323
9324         isnan: Ensure it is a macro.
9325         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9326         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9327         Solaris.
9328
9329 2010-12-19  Bruno Haible  <bruno@clisp.org>
9330
9331         ldexpl test: Fix link error on OSF/1 5.1.
9332         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9333
9334 2010-12-19  Bruno Haible  <bruno@clisp.org>
9335
9336         wctype: Make it work in C++ mode on OSF/1 5.1.
9337         * lib/wctype.in.h (iswblank): Declare but not define here.
9338         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9339         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9340         * modules/wctype (Files): Add lib/iswblank.c.
9341
9342 2010-12-19  Bruno Haible  <bruno@clisp.org>
9343
9344         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9345         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9346         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9347
9348 2010-12-19  Bruno Haible  <bruno@clisp.org>
9349
9350         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9352         _POSIX_PII_SOCKET.
9353         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9354         * doc/posix-functions/recvfrom.texi: Likewise.
9355         * doc/posix-functions/send.texi: Likewise.
9356         * doc/posix-functions/sendto.texi: Likewise.
9357
9358 2010-12-19  Bruno Haible  <bruno@clisp.org>
9359
9360         tcgetsid: Add missing declaration on OSF/1 5.1.
9361         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9362         HAVE_TCGETSID.
9363         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9364         Don't set HAVE_TCGETSID.
9365         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9366         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9367         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9368         HAVE_TCGETSID.
9369         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9370
9371 2010-12-19  Bruno Haible  <bruno@clisp.org>
9372
9373         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9374         * lib/stdio.in.h: During the include_next statement, let recursive
9375         includes of this file include only the system header file.
9376
9377 2010-12-19  Bruno Haible  <bruno@clisp.org>
9378
9379         iconv_open: Fix regression from 2010-12-04.
9380         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9381         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9382
9383 2010-12-19  Bruno Haible  <bruno@clisp.org>
9384
9385         stdbool test: Avoid a gcc warning.
9386         * tests/test-stdbool.c (main): Fail if e1 is false.
9387         Reported by Jim Meyering.
9388
9389 2010-12-19  Jim Meyering  <meyering@redhat.com>
9390
9391         setenv: restore to working order
9392         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9393         mistakenly removed.
9394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9395         HAVE_SETENV.
9396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9397         HAVE_SETENV.
9398
9399 2010-12-19  Bruno Haible  <bruno@clisp.org>
9400
9401         Document some different function declarations on OSF/1 5.1.
9402         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9403         * doc/posix-functions/inet_ntop.texi: Likewise.
9404         * doc/posix-functions/gethostname.texi: Likewise.
9405         * lib/unistd.in.h (gethostname): Update comment.
9406
9407 2010-12-19  Bruno Haible  <bruno@clisp.org>
9408
9409         doc: Mention vasprintf-posix module.
9410         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9411         the 'vasprintf-posix' module.
9412         * doc/glibc-functions/vasprintf.texi: Likewise.
9413
9414 2010-12-19  Bruno Haible  <bruno@clisp.org>
9415
9416         unsetenv: Add missing declaration on OSF/1 5.1.
9417         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9418         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9419         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9421         not HAVE_UNSETENV.
9422         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9423         HAVE_UNSETENV.
9424         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9425
9426 2010-12-19  Bruno Haible  <bruno@clisp.org>
9427
9428         setenv: Add missing declaration on OSF/1 5.1.
9429         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9430         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9431         declared. Don't set HAVE_SETENV.
9432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9433         not HAVE_SETENV.
9434         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9435         HAVE_SETENV.
9436         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9437
9438 2010-12-19  Bruno Haible  <bruno@clisp.org>
9439
9440         nl_langinfo tests: Avoid gcc warning.
9441         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9442
9443 2010-12-19  Bruno Haible  <bruno@clisp.org>
9444
9445         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9446         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9447         _GL_CXXALIAS_SYS.
9448
9449 2010-12-19  Bruno Haible  <bruno@clisp.org>
9450
9451         stdbool: Relax test.
9452         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9453         address to 'bool' work in static initializer, for compilers other than
9454         GCC.
9455
9456 2010-12-19  Bruno Haible  <bruno@clisp.org>
9457
9458         ftello: Add missing declaration on OSF/1 5.1.
9459         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9460         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9462         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9463         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9464
9465 2010-12-19  Bruno Haible  <bruno@clisp.org>
9466
9467         fseeko: Add missing declaration on OSF/1 5.1.
9468         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9471         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9472         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9473
9474 2010-12-19  Bruno Haible  <bruno@clisp.org>
9475
9476         fchdir: Add missing declaration on OSF/1 5.1.
9477         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9478         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9480         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9481         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9482
9483 2010-12-19  Bruno Haible  <bruno@clisp.org>
9484
9485         relocatable-prog-wrapper: Separate from relocatable-prog.
9486         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9487         uninstall-relocwrapper rule here.
9488         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9489         Reported by Ian Beckwith <ianb@erislabs.net>.
9490
9491 2010-12-19  Bruno Haible  <bruno@clisp.org>
9492
9493         unistr/u8-mbsnlen: Add missing dependency.
9494         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9495         Reported by Ian Beckwith <ianb@erislabs.net>.
9496
9497 2010-12-19  Bruno Haible  <bruno@clisp.org>
9498
9499         iconv: Make it possible again to use this module without 'iconv-h'.
9500         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9501         if it is not defined.
9502         Reported by Ian Beckwith <ianb@erislabs.net>.
9503
9504 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9505
9506         acl: port to Solaris 8 when copying from tmpfs to ufs
9507         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9508         error number.  Problem observed on Solaris 8 with latest
9509         coreutils, with "mv A B", where A is on a tmpfs file system and B
9510         is on a ufs file system.  This caused coreutils' mv/part-symlink
9511         test to fail.
9512
9513         tests: set fail=0 at start
9514         * tests/init.sh (setup_): Move fail=0 initialization here ...
9515         (mktempd_): ... from here, so that tests can rely on fail being
9516         set to 0 initially.  This fixes a problem in coreutils; see:
9517         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9518
9519 2010-12-18  Bruno Haible  <bruno@clisp.org>
9520
9521         memmem-simple: Stylistic changes.
9522         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9523         Fix preprocessor directive indentation.
9524
9525 2010-12-15  Pádraig Brady <P@draigBrady.com>
9526
9527         memmem, memmem-simple: reorganize and expand empty needle check
9528         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9529         functional checks to memmem-simple so that one has a fully functional
9530         memmem by using just this module.
9531         Restrict the performance only check to the memmem module.
9532         Also expand the empty needle check to ensure the correct
9533         pointer is returned, not just a non NULL pointer.
9534         * doc/glibc-functions/memmem.texi: Rearrange the portability
9535         documentation to correlate with the rearranged checks.
9536         Clarify exactly how the memmem and memmem-simple modules
9537         relate to each other.
9538
9539 2010-12-15  Pádraig Brady <P@draigBrady.com>
9540             Bruno Haible  <bruno@clisp.org>
9541
9542         Improve cross-compilation guesses for uClibc.
9543         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9544         that uClibc does not have the glibc bug.
9545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9546         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9547
9548 2010-12-14  Eric Blake  <eblake@redhat.com>
9549
9550         configmake: provide fallbacks for oldest supported autotools
9551         * m4/configmake.m4: New file.
9552         * modules/configmake (Files): Ship it.
9553         (configure.ac): Use it to guarantee fallbacks.
9554
9555 2010-12-13  Pádraig Brady <P@draigBrady.com>
9556
9557         read-file: Improve handling of large files
9558         * lib/read-file.c (fread_file): Minimize realloc()s
9559         for regular files, and better manage sizes around SIZE_MAX.
9560
9561 2010-12-13  Eric Blake  <eblake@redhat.com>
9562
9563         cloexec, fcntl: relax license
9564         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9565         consent from all contributors.
9566         * modules/fcntl (License): Likewise.
9567
9568 2010-12-10  Bruno Haible  <bruno@clisp.org>
9569
9570         Tests for module 'pipe-posix'.
9571         * modules/pipe-posix-tests: New file.
9572         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9573
9574 2010-12-10  Bruno Haible  <bruno@clisp.org>
9575
9576         pipe-posix: Make it work in C++ mode.
9577         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9578         (pipe): Use common idiom, not a macro definition.
9579         * lib/pipe.c: New file.
9580         * m4/pipe.m4: New file.
9581         * modules/pipe-posix (Description): Enhance.
9582         (Files): Add lib/pipe.c, m4/pipe.m4.
9583         (configure.ac): Invoke gl_FUNC_PIPE.
9584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9585         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9586         * tests/test-unistd-c++.cc: Check the signature of pipe.
9587
9588 2010-12-10  Bruno Haible  <bruno@clisp.org>
9589
9590         Rename module 'pipe' to 'spawn-pipe'.
9591         * modules/spawn-pipe: New file, renamed from modules/pipe.
9592         (Files, configure.ac, Makefile.am): Update.
9593         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9594         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9595         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9596         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9597         "spawn-pipe.h" instead of "pipe.h".
9598         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9599         to gl_SPAWN_PIPE.
9600         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9601         (Files, Makefile.am): Update.
9602         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9603         Update.
9604         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9605         Include "spawn-pipe.h" instead of "pipe.h".
9606         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9607         * lib/javacomp.c: Likewise.
9608         * lib/javaversion.c: Likewise.
9609         * lib/pipe-filter-gi.c: Likewise.
9610         * lib/pipe-filter-ii.c: Likewise.
9611         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9612         * modules/javacomp (Depends-on): Likewise.
9613         * modules/javaversion (Depends-on): Likewise.
9614         * modules/pipe-filter-gi (Depends-on): Likewise.
9615         * modules/pipe-filter-ii (Depends-on): Likewise.
9616         * MODULES.html.sh (Executing programs): Update.
9617         * NEWS: Mention the change.
9618
9619 2010-12-10  Eric Blake  <eblake@redhat.com>
9620
9621         pipe-posix: new module
9622         * modules/pipe-posix: New file.
9623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9624         (gl_UNISTD_H): Check for declaration.
9625         * modules/unistd (Makefile.am): Substitute it.
9626         * lib/unistd.in.h (pipe): Provide it for mingw.
9627         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9628         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9629
9630 2010-12-07  Bruno Haible  <bruno@clisp.org>
9631
9632         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9633         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9634         u8_strcmp_gnu.
9635         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9636
9637 2010-12-06  Bruno Haible  <bruno@clisp.org>
9638
9639         Update internal documentation.
9640         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9641
9642 2010-12-04  Bruno Haible  <bruno@clisp.org>
9643
9644         Put more information about failed tests into the test return codes.
9645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9646         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9647         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9649         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9650         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9651         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9652         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9653         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9656         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9657         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9658         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9659         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9660         returns a bit mask.
9661         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9662         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9663         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9664         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9665         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9666         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9669         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9670         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9672         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9673         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9675         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9676         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9677         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9678         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9679         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9680         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9682         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9684         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9685         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9686         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9687         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9688         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9689         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9690         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9691         gl_PRINTF_PRECISION): Likewise.
9692         * m4/regex.m4 (gl_REGEX): Likewise.
9693         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9695         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9696         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9699         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9700         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9701         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9702         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9703         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9705         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9706         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9707         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9708         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9709         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9710         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9712         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9713         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9714         enumerated value.
9715         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9716
9717 2010-12-04  Bruno Haible  <bruno@clisp.org>
9718
9719         Update for Solaris 11 2010-11.
9720         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9721         Express, released in November 2010.
9722
9723 2010-12-04  Bruno Haible  <bruno@clisp.org>
9724
9725         nproc: Relax license.
9726         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9727         and Paul Eggert.
9728         Requested by Ludovic Courtès <ludo@gnu.org>.
9729
9730 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9731
9732         utimecmp: fine-grained src to nearby coarse-grained dest
9733
9734         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9735         and the source is on a file system with higher-resolution time
9736         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9737         not work, and the time stamps are close together, the algorithm to
9738         determine the exact resolution from the read-back mtime was buggy:
9739         it had a "!=" where it should have had an "==".  This bug has been
9740         in the code ever since it was introduced to gnulib.
9741         Problem reported by Dan Jacobson in
9742         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9743
9744 2010-11-30  Bruno Haible  <bruno@clisp.org>
9745
9746         strerror_r-posix: Fix autoconf test.
9747         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9748
9749 2010-11-28  Bruno Haible  <bruno@clisp.org>
9750             Paul Eggert  <eggert@cs.ucla.edu>
9751
9752         Tests for module 'getdomainname'.
9753         * modules/getdomainname-tests: New file.
9754         * tests/test-getdomainname.c: New file, based on
9755         tests/test-gethostname.c.
9756
9757 2010-11-28  Bruno Haible  <bruno@clisp.org>
9758             Paul Eggert  <eggert@cs.ucla.edu>
9759
9760         getdomainname: Use the system function when possible.
9761         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9762         (getdomainname): Replace if needed. Provide the declaration if it is
9763         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9764         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9765         (getdomainname): When the system has getdomainname, call the system
9766         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9767         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9768         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9769         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9770         the function if its second argument is of type 'int' or if it is found
9771         in libnsl.
9772         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9773         <sys/systeminfo.h> and sysinfo().
9774         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9776         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9777         HAVE_GETDOMAINNAME.
9778         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9779         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9780         * doc/glibc-functions/getdomainname.texi: Document the problems with
9781         the getdomainname declaration.
9782
9783 2010-11-28  Bruno Haible  <bruno@clisp.org>
9784
9785         sys_socket: Ensure ss_family field on AIX.
9786         * lib/sys_socket.in.h (ss_family): New macro definition.
9787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9788         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9789         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9790         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9791         * modules/sys_socket (Makefile.am): Substitute
9792         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9793         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9794
9795 2010-11-27  Bruno Haible  <bruno@clisp.org>
9796
9797         readline: Improve configure output.
9798         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9799         "checking for readline..." result understandable.
9800
9801 2010-11-27  Bruno Haible  <bruno@clisp.org>
9802
9803         *printf-posix: Detect a bug on Solaris 10/x86.
9804         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9805         for floating-point output.
9806         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9807         directive.
9808         * tests/test-snprintf-posix.h (test_function): Likewise.
9809         * tests/test-sprintf-posix.h (test_function): Likewise.
9810         * tests/test-vasprintf-posix.c (test_function): Likewise.
9811         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9812         * doc/posix-functions/printf.texi: Likewise.
9813         * doc/posix-functions/snprintf.texi: Likewise.
9814         * doc/posix-functions/sprintf.texi: Likewise.
9815         * doc/posix-functions/vfprintf.texi: Likewise.
9816         * doc/posix-functions/vprintf.texi: Likewise.
9817         * doc/posix-functions/vsnprintf.texi: Likewise.
9818         * doc/posix-functions/vsprintf.texi: Likewise.
9819         * doc/glibc-functions/obstack_printf.texi: Likewise.
9820         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9821
9822 2010-11-27  Bruno Haible  <bruno@clisp.org>
9823
9824         Fix link error when module libunistring-optional is in use.
9825         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9826         * modules/striconveha-tests (Makefile.am): Likewise.
9827
9828 2010-11-27  Bruno Haible  <bruno@clisp.org>
9829
9830         regex: Mention link dependencies.
9831         * modules/regex (Link): New section.
9832         * modules/rpmatch (Link): Likewise.
9833         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9834
9835 2010-11-27  Bruno Haible  <bruno@clisp.org>
9836
9837         ftoastr: Fix compilation error on Solaris.
9838         * lib/ftoastr.c: Include <config.h>.
9839
9840 2010-11-27  Bruno Haible  <bruno@clisp.org>
9841
9842         getloadavg: Update documentation.
9843         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9844
9845 2010-11-27  Bruno Haible  <bruno@clisp.org>
9846
9847         sys_socket: Fix test whether the functions are declared.
9848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9849         not <sys/select.h>.
9850
9851 2010-11-27  Bruno Haible  <bruno@clisp.org>
9852
9853         getpass: Make sure to get system declaration on some platforms.
9854         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9855         gl_USE_SYSTEM_EXTENSIONS.
9856         * modules/getpass (Depends-on): Add extensions.
9857
9858 2010-11-26  Bruno Haible  <bruno@clisp.org>
9859
9860         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9861         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9862         'iconv' module is present.
9863         (ICONV_CONST): New macro.
9864         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9865         ICONV_CONST.
9866         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9867         set ICONV_CONST.
9868         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9869         here.
9870         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9871         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9872         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9873         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9874         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9875         present.
9876
9877 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         ftoastr: comment fix
9880         * lib/ftoastr.c: "little" -> "little or no" in comment
9881
9882 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9883
9884         stdint: port to GCC 4.3 + OSX + Octave
9885         On this platform, stdint.h is buggy and defines int64_t to long
9886         long int.  The replacement defined it to long int, causing
9887         problems with C++ style name mangling.  Instead, trust the system
9888         definition if INT64_MAX is defined, and likewise for the unsigned
9889         variant.   Problem reported by Jarno Rajahalme in
9890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9891         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9892         and don't mess with int64_t and INT64_MAX in this case.
9893         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9894
9895 2010-11-24  Bruno Haible  <bruno@clisp.org>
9896
9897         doc: Corrections regarding MacOS X 10.4 and 10.5.
9898         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9899         MacOS X.
9900         Reported by Simon Josefsson.
9901
9902 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9903
9904         Uninstall ".bin" files installed by relocwrapper.
9905         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9906         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9907         unless it is already there.
9908
9909 2010-11-21  Bruno Haible  <bruno@clisp.org>
9910
9911         Update for NetBSD 5.0.
9912         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9913         NetBSD; the test fails on NetBSD 5.0.
9914         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9915         about NetBSD.
9916
9917 2010-11-21  Bruno Haible  <bruno@clisp.org>
9918
9919         Update for HP-UX 11.23 and HP-UX 11.31.
9920         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9921         HP-UX.
9922
9923 2010-11-21  Bruno Haible  <bruno@clisp.org>
9924
9925         Update for MacOS X 10.5.
9926         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9927         MacOS X; the test fails on MacOS X 10.5.8.
9928         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9929         about MacOS X.
9930
9931 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9932
9933         bootstrap: add bootstrap_sync option.
9934         See discussion at
9935         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9937         * build-aux/bootstrap: Accept --bootstrap-sync to update
9938         bootstrap if it is not identical to the local gnulib's
9939         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9940         enable this by default.  Accept --no-bootstrap-sync to disable
9941         it.
9942
9943 2010-11-20  Bruno Haible  <bruno@clisp.org>
9944
9945         Ensure that <features.h> is included before __GLIBC__ is tested.
9946         * lib/printf-parse.h: Include <features.h>.
9947         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9948         Reported by Mike Frysinger <vapier@gentoo.org>.
9949
9950         Ensure that <features.h> is included before __GLIBC__ is tested.
9951         * lib/wchar.in.h: Include <features.h>.
9952         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9953         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9954         Reported by Mike Frysinger <vapier@gentoo.org>.
9955
9956         Ensure that <features.h> is included before __GLIBC__ is tested.
9957         * lib/arpa_inet.in.h: Include <features.h>.
9958         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9959         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9960         Reported by Mike Frysinger <vapier@gentoo.org>.
9961
9962         Ensure that <features.h> is included before __GLIBC__ is tested.
9963         * build-aux/link-warning.h: Include <features.h>.
9964         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9965         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9966         Reported by Mike Frysinger <vapier@gentoo.org>.
9967
9968         Ensure that <features.h> is included before __GLIBC__ is tested.
9969         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9970         Reported by Mike Frysinger <vapier@gentoo.org>.
9971
9972 2010-11-20  Bruno Haible  <bruno@clisp.org>
9973
9974         memmem: Fix autoconf test.
9975         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9976
9977 2010-11-20  Bruno Haible  <bruno@clisp.org>
9978
9979         Port to uClibc.
9980         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9981         * lib/fcntl.in.h: Likewise.
9982         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9983         * lib/mbrtowc.c (mbrtowc): Likewise.
9984         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9985         * lib/strerror_r.c: Likewise.
9986         * lib/unistr/u8-strnlen.c: Likewise.
9987         * lib/vasnprintf.c (decimal_point_char): Likewise.
9988         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9989         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9991         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9992         * tests/test-sigaction.c (handler, main): Likewise.
9993         * lib/freading.h: Treat uClibc like a non-glibc platform.
9994         * lib/freading.c: Likewise.
9995         * lib/gettext.h: Likewise.
9996         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9997         Likewise.
9998         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9999         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10000         * lib/propername.c (proper_name_utf8): Likewise.
10001         * lib/spawn.in.h: Likewise.
10002         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10003         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10004         mem_cd_iconveh_internal): Likewise.
10005         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10006         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10007         strstr, strcasestr): Likewise.
10008         * lib/unicodeio.c (unicode_to_mb): Likewise.
10009         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10010         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10011         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10012         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10013         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10014         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10015         * lib/unistr/u8-stpncpy.c: Likewise.
10016         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10017         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10018         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10019         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10020         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10021         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10025         Likewise.
10026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10027         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10028         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10029         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10030         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10031         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10032         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10033         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10034         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10035         * tests/test-striconveha.c (main): Likewise.
10036         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10037         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10038         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10039         * doc/posix-functions/getline.texi: Likewise.
10040         Reported by Mike Frysinger <vapier@gentoo.org>.
10041
10042 2010-11-20  Bruno Haible  <bruno@clisp.org>
10043
10044         nproc: Fix condition.
10045         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
10046         HAVE_PTHREAD_AFFINITY_NP.
10047
10048 2010-11-20  Bruno Haible  <bruno@clisp.org>
10049
10050         Fix a comment.
10051         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
10052
10053 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10054
10055         ftoastr: don't assume snprintf
10056         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10057         Implement a subset of snprintf here, by using sprintf safely.
10058         * modules/ftoastr (Depends-on): Remove snprintf.
10059
10060 2010-11-19  Jim Meyering  <meyering@redhat.com>
10061
10062         test-rename.h: fix compilation failure
10063         * tests/test-rename.h (test_rename): Add omitted "}".
10064
10065 2010-11-17  Jim Meyering  <meyering@redhat.com>
10066
10067         maint.mk: add a URL discussing the no-@acronym policy
10068         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10069
10070 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10071
10072         ftoastr: depend on snprintf, improve comments
10073         * lib/ftoastr.c: Also mention Loitsch's draft.
10074         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10075         needed in the current implementation, but it might simplify
10076         speeding up the code later.
10077         * modules/ftoastr: Depend on snprintf; this improves portability.
10078         Suggested by Bruno Haible in the same email.
10079
10080         ftoastr: port to hosts lacking strtof and strtold
10081         Problem reported by Bruno Haible in
10082         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10083         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10084         environment and strtold (and presumably strtof) are not available.
10085         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10086         (configure.ac): Require gl_C99_STRTOLD.
10087
10088 2010-11-18  Bruno Haible  <bruno@clisp.org>
10089
10090         c-strtold: Avoid link error on AIX 7.
10091         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10092         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10093         (gl_C_STRTOLD): Test whether strtold_l exists.
10094         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10095
10096 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10097
10098         intprops: new macro INT_BITS_STRLEN_BOUND
10099         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10100         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10101         not exposed.  Also, it uses a slightly tighter bound than before;
10102         though this makes no practical difference, we might as well be as
10103         tight as we easily can.
10104
10105         ftoastr: new module, for lossless conversion of floats to short strings
10106         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10107         * modules/ftoastr: New files.
10108
10109 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10110
10111         bootstrap: port to Solaris sed
10112         * build-aux/bootstrap (get_version): Port to Solaris sed.
10113         See Ralf Wildenhues's note in
10114         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10115
10116 2010-11-14  Jim Meyering  <meyering@redhat.com>
10117
10118         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10119         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10120         and move definition closer to sole use.
10121
10122 2010-11-13  Jim Meyering  <meyering@redhat.com>
10123
10124         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10125         Now we require at least autoconf-2.59, which means the work-around
10126         is no longer needed.
10127         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10129         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10130         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10131         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10132
10133 2010-11-13  Bruno Haible  <bruno@clisp.org>
10134
10135         rename, renameat: Avoid test failures at NFS mounted locations.
10136         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10137         functions.
10138         (test_rename): Use assert_nonexistent.
10139         * tests/test-rename.c: Include <dirent.h>.
10140         * tests/test-renameat.c: Likewise.
10141         Reported by Gary V. Vaughan <gary@gnu.org>.
10142
10143         rename, renameat: Document Linux bug with NFS
10144         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10145         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10146         * doc/posix-functions/renameat.texi: Likewise.
10147         Suggested by Eric Blake.
10148
10149 2010-11-13  Bruno Haible  <bruno@clisp.org>
10150
10151         rename test: Add comments.
10152         * tests/test-rename.h (test_rename): Add structure and comments.
10153
10154 2010-11-13  Eric Blake  <eblake@redhat.com>
10155
10156         maintainer-makefile: cover a few more files
10157         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10158         scripts generated within C files, for libvirt.
10159
10160 2010-11-13  Bruno Haible  <bruno@clisp.org>
10161
10162         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10163         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10164         character, return the number of bytes that belong together, not always
10165         1.
10166         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10167         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10168         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10169         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10170         number of bytes of an invalid character.
10171         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10172         (main): Invoke it.
10173         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10174         results.
10175         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10176         malformed byte sequences.
10177         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10178         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10179         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10180         Reported by Ben Pfaff and Paolo Bonzini.
10181
10182 2010-11-13  Bruno Haible  <bruno@clisp.org>
10183
10184         openat: Work around glibc bug with fchownat() and empty file names.
10185         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10186         (gl_FUNC_FCHOWNAT): Invoke it.
10187         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10188         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10189         Reported by Gary V. Vaughan <gary@gnu.org>.
10190
10191 2010-11-13  Bruno Haible  <bruno@clisp.org>
10192
10193         openat: Ensure autoconf macro ordering.
10194         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10195         gl_USE_SYSTEM_EXTENSIONS.
10196         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10197
10198 2010-11-13  Bruno Haible  <bruno@clisp.org>
10199
10200         Update comments.
10201         * lib/unistr/u8-check.c: Update file name in comments.
10202         * lib/unistr/u8-mblen.c: Likewise.
10203         * lib/unistr/u8-prev.c: Likewise.
10204         * lib/unistr/u8-strmblen.c: Likewise.
10205         * lib/unistr/u8-strmbtouc.c: Likewise.
10206
10207 2010-11-13  Jim Meyering  <meyering@redhat.com>
10208
10209         tests: avoid test failure on Solaris 10 due to lack of PATH export
10210         * tests/test-update-copyright.sh: Don't forget to export PATH.
10211
10212         init.sh: ensure that IFS is defined, just in case...
10213         * tests/init.sh (setup_): Ensure that IFS is defined,
10214         so that saving and restoring it works as expected.  This
10215         appears to be useful at least for an old version of dash
10216         from a long time ago (RH 6).  See here for details:
10217         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10218
10219         maint.mk: tighten "test a == b" check
10220         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10221         test to files that contain something like #!/bin/sh.
10222         Without this, coreutils would get two false positives in
10223         the comments of C source files.
10224
10225 2010-11-12  Eric Blake  <eblake@redhat.com>
10226
10227         bootstrap: fix typo in previous attempt
10228         * build-aux/bootstrap (buildreq): Correct the grouping.
10229         Reported by Paul Eggert.
10230
10231         maintainer-makefile: prohibit test x == x
10232         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10233         Based on a report by Matthias Bolte.
10234
10235         bootstrap: allow FreeBSD gzip
10236         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10237         which has no '.' and goes to stderr.
10238         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10239         Reported by Matthias Bolte.
10240
10241         maintainer-makefile: check for i18n setup
10242         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10243         will likely work.
10244
10245 2010-11-12  Bruno Haible  <bruno@clisp.org>
10246
10247         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10248         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10249         * lib/nanosleep.c (nanosleep): Likewise.
10250
10251 2010-11-11  Bruno Haible  <bruno@clisp.org>
10252
10253         fcntl-h: Fix for use of C++ on glibc systems.
10254         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10255         also on glibc systems in C++ mode.
10256         Reported by Gary V. Vaughan <gary@gnu.org>.
10257
10258 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10259
10260         mknod: avoid false failure with dash
10261         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10262
10263 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10264
10265         unlink: Fix "is it should" typo in diagnostic.
10266         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10268
10269 2010-11-11  Bruno Haible  <bruno@clisp.org>
10270
10271         Tests for module 'strerror_r-posix'.
10272         * modules/strerror_r-posix-tests: New file.
10273         * tests/test-strerror_r.c: New file.
10274         * tests/test-string-c++.cc: Check the signature of strerror_r.
10275
10276         New module 'strerror_r-posix'.
10277         * lib/string.in.h (strerror_r): New declaration.
10278         * lib/strerror_r.c: New file.
10279         * m4/strerror_r.m4: New file.
10280         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10281         of strerror_r.
10282         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10283         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10284         * modules/strerror_r-posix: New file.
10285         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10286         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10287         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10288         portability problems.
10289
10290 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10291
10292         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10293         line is also considered for output. Quoted function name in shell
10294         command, so temporary files for functions like MyClass::operator()
10295         are removed correctly without errors.
10296
10297 2010-11-09  Bruno Haible  <bruno@clisp.org>
10298
10299         * doc/posix-functions/strerror.texi: List more failing platforms.
10300
10301         * doc/posix-functions/strerror.texi: Add a comment.
10302
10303 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10304
10305         fdopendir: fix bug on MacOS X when low on file descriptors
10306
10307         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10308         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10309         All callers changed.
10310         (fdopendir): Invoke save_cwd at the top level, not after using
10311         multiple dup() calls to use up file descriptors.  Then retry
10312         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10313         less than the maximum number of open file descriptors, because
10314         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10315         on Mac OS X 10.6.4 for tar 1.24
10316         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10317         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10318         and for tar 1.25
10319         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10320
10321 2010-11-07  Bruno Haible  <bruno@clisp.org>
10322
10323         vasnprintf: Support I flag on glibc systems.
10324         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10325         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10326         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10327         snprintf function.
10328         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10329         glibc systems.
10330         * tests/test-vasnprintf-posix3.c: New file.
10331         * modules/vasnprintf-posix-tests (Files): Add it.
10332         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10333
10334 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10335
10336         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10337         * MODULES.html.sh: For compiler warnings, use name
10338         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10339
10340 2010-11-05  Eric Blake  <eblake@redhat.com>
10341
10342         ceil, floor: avoid spurious failure with icc
10343         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10344         [denormals-as-zero] when optimizing without -mieee-fp option.
10345         * tests/test-floorf2.c (floorf_reference): Likewise.
10346         * tests/test-ceilf1.c (dummy): New function.
10347         (main): Use it to outsmart icc's optimization.
10348         * tests/test-floorf1.c (dummy, main): Likewise.
10349
10350         tests: require working signbit
10351         * modules/ceilf-tests (Depends-on): Add signbit.
10352         * modules/ceill-tests (Depends-on): Likewise.
10353         * modules/floorf-tests (Depends-on): Likewise.
10354         * modules/floorl-tests (Depends-on): Likewise.
10355         * modules/round-tests (Depends-on): Likewise.
10356         * modules/roundf-tests (Depends-on): Likewise.
10357         * modules/roundl-tests (Depends-on): Likewise.
10358         * modules/trunc-tests (Depends-on): Likewise.
10359         * modules/truncf-tests (Depends-on): Likewise.
10360         * modules/truncl-tests (Depends-on): Likewise.
10361
10362         strtod: work around icc bug
10363         * lib/strtod.c (minus_zero): Define to working value.
10364         (strtod): Use it to avoid icc bug.
10365
10366         copysign: enhance tests
10367         * modules/copysign-tests (Files): Add minus-zero.h.
10368         * tests/test-copysign.c (main): Also test zeros.
10369
10370 2010-11-04  Eric Blake  <eblake@redhat.com>
10371
10372         ceil, floor, round, trunc: enhance tests of -0
10373         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10374         * tests/test-ceill.c (main): Likewise.
10375         * tests/test-floorf1.c (main): Likewise.
10376         * tests/test-floorl.c (main): Likewise.
10377         * tests/test-round1.c (main): Likewise.
10378         * tests/test-roundf1.c (main): Likewise.
10379         * tests/test-roundl.c (main): Likewise.
10380         * tests/test-trunc1.c (main): Likewise.
10381         * tests/test-truncf1.c (main): Likewise.
10382         * tests/test-truncl.c (main): Likewise.
10383
10384 2010-11-04  Eric Blake  <eblake@redhat.com>
10385
10386         frexp, tests: work around ICC bug with -zero
10387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10388         works with more compilers.
10389         * tests/minus-zero.h: New file.
10390         * modules/ceilf-tests (Files): Include it.
10391         * modules/ceill-tests (Files): Likewise.
10392         * modules/floorf-tests (Files): Likewise.
10393         * modules/floorl-tests (Files): Likewise.
10394         * modules/frexp-nolibm-tests (Files): Likewise.
10395         * modules/frexp-tests (Files): Likewise.
10396         * modules/frexpl-nolibm-tests (Files): Likewise.
10397         * modules/frexpl-tests (Files): Likewise.
10398         * modules/isnan-tests (Files): Likewise.
10399         * modules/isnand-nolibm-tests (Files): Likewise.
10400         * modules/isnand-tests (Files): Likewise.
10401         * modules/isnanf-nolibm-tests (Files): Likewise.
10402         * modules/isnanf-tests (Files): Likewise.
10403         * modules/isnanl-nolibm-tests (Files): Likewise.
10404         * modules/isnanl-tests (Files): Likewise.
10405         * modules/round-tests (Files): Likewise.
10406         * modules/roundf-tests (Files): Likewise.
10407         * modules/roundl-tests (Files): Likewise.
10408         * modules/ldexpl-tests (Files): Likewise.
10409         * modules/signbit-tests (Files): Likewise.
10410         * modules/snprintf-posix-tests (Files): Likewise.
10411         * modules/sprintf-posix-tests (Files): Likewise.
10412         * modules/strtod-tests (Files): Likewise.
10413         * modules/trunc-tests (Files): Likewise.
10414         * modules/truncf-tests (Files): Likewise.
10415         * modules/truncl-tests (Files): Likewise.
10416         * modules/vsnprintf-posix-tests (Files): Likewise.
10417         * modules/vsprintf-posix-tests (Files): Likewise.
10418         * modules/vasnprintf-posix-tests (Files): Likewise.
10419         * modules/vasprintf-posix-tests (Files): Likewise.
10420         * tests/test-ceilf1.c (main): Use it.
10421         * tests/test-ceill.c (main): Likewise.
10422         * tests/test-floorf1.c (main): Likewise.
10423         * tests/test-floorl.c (main): Likewise.
10424         * tests/test-frexp.c (main): Likewise.
10425         * tests/test-frexpl.c (main): Likewise.
10426         * tests/test-isnan.c (main): Likewise.
10427         * tests/test-isnand.h (main): Likewise.
10428         * tests/test-isnanf.h (main): Likewise.
10429         * tests/test-isnanl.h (main): Likewise.
10430         * tests/test-ldexpl.c (main): Likewise.
10431         * tests/test-round.c (main): Likewise.
10432         * tests/test-roundf.c (main): Likewise.
10433         * tests/test-roundl.c (main): Likewise.
10434         * tests/test-signbit.c (test_signbitf, test_signbitd)
10435         (test_signbitl): Likewise.
10436         * tests/test-snprintf-posix.h (test_function): Likewise.
10437         * tests/test-sprintf-posix.h (test_function): Likewise.
10438         * tests/test-strtod.c (main): Likewise.
10439         * tests/test-trunc1.c (main): Likewise.
10440         * tests/test-truncf1.c (main): Likewise.
10441         * tests/test-truncl.c (main): Likewise.
10442
10443         isnanl: work around icc bug
10444         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10445
10446 2010-11-03  Eric Blake  <eblake@redhat.com>
10447
10448         tests: fix compiler warnings
10449         * tests/test-getopt.h (test_getopt): Fix condition.
10450         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10451         * tests/test-pipe2.c (main): Likewise.
10452         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10453
10454         utimens: fix broken m4 test
10455         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10456
10457 2010-10-28  Bruno Haible  <bruno@clisp.org>
10458
10459         posix_spawn*, getdtablesize: Relax license.
10460         * modules/posix_spawn (License): Change to LGPLv2+.
10461         * modules/posix_spawnp (License): Likewise.
10462         * modules/posix_spawn-internal (License): Likewise.
10463         * modules/posix_spawnattr_init (License): Likewise.
10464         * modules/posix_spawnattr_getflags (License): Likewise.
10465         * modules/posix_spawnattr_setflags (License): Likewise.
10466         * modules/posix_spawnattr_getpgroup (License): Likewise.
10467         * modules/posix_spawnattr_setpgroup (License): Likewise.
10468         * modules/posix_spawnattr_getschedparam (License): Likewise.
10469         * modules/posix_spawnattr_setschedparam (License): Likewise.
10470         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10471         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10472         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10473         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10474         * modules/posix_spawnattr_getsigmask (License): Likewise.
10475         * modules/posix_spawnattr_setsigmask (License): Likewise.
10476         * modules/posix_spawnattr_destroy (License): Likewise.
10477         * modules/posix_spawn_file_actions_init (License): Likewise.
10478         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10479         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10480         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10481         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10482         * modules/getdtablesize (License): Likewise.
10483         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10484
10485 2010-10-26  Bruno Haible  <bruno@clisp.org>
10486
10487         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10488         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10489         Cygwin and mingw.
10490         Suggested by Eric Blake.
10491
10492 2010-10-26  Bruno Haible  <bruno@clisp.org>
10493
10494         stdio: Work around compilation error due to renameat() on Solaris 10.
10495         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10496         * lib/renameat.c: Don't include <unistd.h> here.
10497         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10498         Reported by Paul Eggert and Eric Blake.
10499
10500 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10501
10502         renameat: port to Solaris 10, which declares renameat in unistd.h
10503
10504         * lib/renameat.c: Include unistd.h before stdio.h, because
10505         Solaris 10 declares renameat in unistd.h.  Problem encountered
10506         when building GNU tar 1.24 on Solaris 10.
10507
10508 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10509
10510         fdopendir: fix C89 compilation
10511         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10512         compilers.
10513
10514 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10515
10516         inttostr: simplify by removing unnecessary redundancy
10517         * lib/anytostr.c: Don't include verify.h.
10518         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10519         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10520         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10521         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10522         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10523         Likewise.
10524         * modules/inttostr (Depends-on): Remove 'verify'.
10525
10526 2010-10-23  Bruno Haible  <bruno@clisp.org>
10527
10528         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10529         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10530         Reported by Eric Blake.
10531
10532 2010-10-23  Bruno Haible  <bruno@clisp.org>
10533
10534         Tests: Fix LOCALE_JA on MirBSD 10.
10535         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10536         to an UTF-8 locale.
10537         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10539         Reported by Eric Blake.
10540
10541 2010-10-21  Bruno Haible  <bruno@clisp.org>
10542
10543         nl_langinfo test: Avoid test failure on NetBSD 5.
10544         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10545         Reported by Eric Blake.
10546
10547 2010-10-21  Eric Blake  <eblake@redhat.com>
10548
10549         c-stack: work around libsigsegv 2.8 bug
10550         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10551         overflow on at least PowerPC64.
10552
10553 2010-10-17  Bruno Haible  <bruno@clisp.org>
10554
10555         userspec: Drop redundant file.
10556         * modules/userspec (Files): Remove lib/inttostr.h.
10557
10558 2010-10-17  Bruno Haible  <bruno@clisp.org>
10559
10560         nl_langinfo tests: Silence some warnings.
10561         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10562         Reported by Jim Meyering.
10563
10564 2010-10-17  Bruno Haible  <bruno@clisp.org>
10565
10566         Make use of GCC's attribute __alloc_size__.
10567         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10568         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10569         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10570         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10571         __alloc_size__.
10572         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10573         Suggested by Jim Meyering.
10574
10575 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10576
10577         bootstrap: anchor .gitignore entries.
10578         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10579         with...
10580         (insert_vc_ignore): ... this new function, which prepends `/' to
10581         all .gitignore entries before passing them to
10582         insert_sorted_if_absent.
10583
10584 2010-10-16  Bruno Haible  <bruno@clisp.org>
10585
10586         nextafter: Fix configure check.
10587         * modules/nextafter (configure.ac): Correct expected prototype.
10588
10589 2010-10-16  Bruno Haible  <bruno@clisp.org>
10590
10591         termios: Update documentation.
10592         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10593
10594 2010-10-16  Bruno Haible  <bruno@clisp.org>
10595
10596         tests: Make them compile with TinyCC.
10597         * tests/test-strstr.c (main): Remove parentheses around array
10598         initializer.
10599
10600 2010-10-15  Eric Blake  <eblake@redhat.com>
10601
10602         ignore-value: make header idempotent
10603         * lib/ignore-value.h: Add double-inclusion guards.
10604         Reported by Stefan Berger.
10605
10606 2010-10-15  Jim Meyering  <meyering@redhat.com>
10607
10608         GNUmakefile: handle "stable" target, not "major"
10609         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10610         lists in maint.mk and announce-gen.  Without this, "make stable"
10611         would fail to ensure that $(VERSION) is up to date.
10612
10613 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10614
10615         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10616         & co.
10617
10618 2010-10-14  Bruno Haible  <bruno@clisp.org>
10619
10620         vasnprintf: Don't set errno to 0.
10621         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10622         block that sets it to 0.
10623         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10624
10625 2010-10-14  Bruno Haible  <bruno@clisp.org>
10626
10627         socketlib: Fix.
10628         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10629         gl_PREREQ_SYS_H_WINSOCK2.
10630         Reported by Ian Beckwith <ianb@erislabs.net>.
10631
10632 2010-10-13  Jim Meyering  <meyering@redhat.com>
10633
10634         test-select-stdin.c: avoid warn_unused_result warnings
10635         * tests/test-select-stdin.c: Include "macros.h".
10636         ASSERT that read and fflush succeed.
10637
10638 2010-10-13  Jim Meyering  <meyering@redhat.com>
10639
10640         git-version-gen: do require git-VC'd files in cwd
10641         * build-aux/git-version-gen: Reject a git version string
10642         if there are no commits associated with the current directory.
10643         This avoids an unlikely false-positive (unrelated dir whose parent
10644         repository also contains a tag matching v*), as pointed out
10645         by Giuseppe Scrivano in
10646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10647
10648 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10649
10650         argv-iter: omit nonconforming declaration
10651         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10652         enum arg_iter_err declaration, which doesn't conform to C99.
10653         Solaris 10 cc warns about this.
10654
10655 2010-10-13  Eric Blake  <eblake@redhat.com>
10656
10657         termios: fix compilation on mingw
10658         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10659         (gl_TERMIOS_H): Adjust it on mingw.
10660         * modules/termios (Makefile.am): Substitute new key.
10661         * lib/termios.in.h (includes): Make include_next conditional.
10662         * doc/posix-headers/termios.texi (termios.h): Update
10663         documentation.
10664         Reported by Daniel P. Berrange.
10665
10666 2010-10-13  Jim Meyering  <meyering@redhat.com>
10667
10668         git-version-gen: don't require that .git/ be in the current dir
10669         * build-aux/git-version-gen: Adjust this script so that it works
10670         when run from any working directory beneath the top-level .git/-
10671         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10672         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10673
10674         test-select: avoid warn_unused_result warnings
10675         * tests/test-select.c: Include "macros.h".
10676         ASSERT that each call to read, write, and pipe succeeds.
10677         While not technically required, also check each "close".
10678         * modules/select-tests (Files): Add tests/macros.h.
10679
10680         test-symlinkat: remove declaration of unused local
10681         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10682
10683         test-inttostr: avoid shadowing warnings
10684         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10685         and use malloc rather than the stack for the same reason as
10686         mentioned in the comment justifying the other allocation.
10687
10688 2010-10-11  Bruno Haible  <bruno@clisp.org>
10689
10690         stdlib: Allow multiple gnulib generated replacements to coexist.
10691         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10692         Reported by Sam Steingold <sds@gnu.org>.
10693
10694 2010-10-11  Jim Meyering  <meyering@redhat.com>
10695
10696         fix a documentation typo
10697         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10698
10699 2010-10-11  Eric Blake  <eblake@redhat.com>
10700
10701         futimens: work around Solaris 11 bug
10702         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10703         * tests/test-futimens.h (test_futimens): Enhance, rather than
10704         weaken test.
10705         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10706
10707 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10708
10709         Indentation.
10710         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10711         higher-level operators more to the left.
10712
10713 2010-10-11  Jim Meyering  <meyering@redhat.com>
10714
10715         test-futimens: avoid unwarranted test failure on Solaris 5.11
10716         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10717         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10718         because it tries to dereference the NULL name argument.
10719
10720 2010-10-11  Bruno Haible  <bruno@clisp.org>
10721
10722         Indentation.
10723         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10724         indentation.
10725
10726 2010-10-11  Jim Meyering  <meyering@redhat.com>
10727
10728         spawn.in.h: make indentation consistent with parentheses
10729         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10730         Make indentation consistent with parentheses.
10731
10732 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10733
10734         Fix mismatched parens in previous commit
10735         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10736         parens.
10737
10738 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10739
10740         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10741
10742         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10743         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10744         * lib/malloca.c: Include "verify.h".
10745         (verify1): Remove, replacing with a verify call.
10746         * lib/relocwrapper.c (verify1): Likewise.
10747         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10748         Likewise.
10749         * modules/malloca (Depends-on): Add 'verify'.
10750         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10751         * modules/vasnprintf (Depends-on): Add 'verify'.
10752         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10753         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10754         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10755         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10757         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10758         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10759
10760         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10761
10762         Formerly the style was sometimes 2*X - 1, because the C standard
10763         was wrongly thought to disallow ?: in integral constant expressions.
10764         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10765         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10766         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10767         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10768         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10769         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10770         verify that time_t cannot be floating.
10771
10772 2010-10-08  Eric Blake  <eblake@redhat.com>
10773
10774         time: enforce recent POSIX ruling that time_t is integral
10775         * lib/time.in.h (__time_t_must_be_integral): Detect any
10776         problematic systems, allowing the rest of gnulib to assume POSIX.
10777
10778 2010-10-08  Jim Meyering  <meyering@redhat.com>
10779
10780         fdopendir: fix a bug on systems lacking openat and /proc support
10781         OpenBSD 4.7 is one such system.  The most noticeable effect was
10782         failure of any application making nontrivial use of fts: rm, du,
10783         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10784           ./rm: traversal failed: `a': Bad file descriptor
10785         Debugging that, you see that even though FD 6 was closed just
10786         prior to the opendir call in fd_clone_opendir, its resulting
10787         dir->dd_fd was 8, rather than the expected value of 6:
10788
10789         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10790         93                close (fd);
10791         (gdb) n
10792         94                dir = fd_clone_opendir (dupfd);
10793         (gdb) n
10794         95                saved_errno = errno;
10795         (gdb) p dir->dd_fd
10796         $11 = 8
10797
10798         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10799         The problem is that on OpenBSD, fd_clone_opendir has to resort
10800         to using the old-style save/restore CWD mechanism, due to its
10801         lack of openat/proc support, and *that* would steal the FD (6)
10802         that opendir was supposed to use.
10803
10804         The fix is to squirrel away the desired FD so that save_cwd uses a
10805         different one, and then free the dest FD right before calling opendir.
10806         That guarantees opendir will use the required file descriptor.
10807
10808         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10809
10810 2010-10-08  Bruno Haible  <bruno@clisp.org>
10811
10812         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10813         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10814
10815 2010-10-08  Bruno Haible  <bruno@clisp.org>
10816
10817         nanosleep: Make replacement POSIX compliant.
10818         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10819         is out of range.
10820         Reported by Jim Meyering.
10821
10822 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10823
10824         bootstrap: add hook for altering gnulib.mk, for Bison
10825         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10826         the Bison bootstrapping process can rewrite file names and variables
10827         in this file before later parts of 'bootstrap' use the file.
10828         Bison wants to include lib/gnulib.mk from the top-level makefile,
10829         so it needs the file names in this file to be relative to the top
10830         level, not relative to lib; plus it needs variable names to be
10831         rewritten.
10832         (slurp): Use the new function.
10833
10834         bootstrap: reformat for readability
10835         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10836
10837 2010-10-08  Eric Blake  <eblake@redhat.com>
10838
10839         docs: update cygwin progress
10840         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10841         1.7.7.
10842         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10843         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10844         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10845         * doc/posix-functions/carg.texi (carg): Likewise.
10846         * doc/posix-functions/cargf.texi (cargf): Likewise.
10847         * doc/posix-functions/casin.texi (casin): Likewise.
10848         * doc/posix-functions/casinf.texi (casinf): Likewise.
10849         * doc/posix-functions/casinh.texi (casinh): Likewise.
10850         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10851         * doc/posix-functions/catan.texi (catan): Likewise.
10852         * doc/posix-functions/catanf.texi (catanf): Likewise.
10853         * doc/posix-functions/catanh.texi (catanh): Likewise.
10854         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10855         * doc/posix-functions/ccos.texi (ccos): Likewise.
10856         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10857         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10858         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10859         * doc/posix-functions/cexp.texi (cexp): Likewise.
10860         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10861         * doc/posix-functions/cimag.texi (cimag): Likewise.
10862         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10863         * doc/posix-functions/clog.texi (clog): Likewise.
10864         * doc/posix-functions/clogf.texi (clogf): Likewise.
10865         * doc/posix-functions/conj.texi (conj): Likewise.
10866         * doc/posix-functions/conjf.texi (conjf): Likewise.
10867         * doc/posix-functions/cpow.texi (cpow): Likewise.
10868         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10869         * doc/posix-functions/cproj.texi (cproj): Likewise.
10870         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10871         * doc/posix-functions/creal.texi (creal): Likewise.
10872         * doc/posix-functions/crealf.texi (crealf): Likewise.
10873         * doc/posix-functions/csin.texi (csin): Likewise.
10874         * doc/posix-functions/csinf.texi (csinf): Likewise.
10875         * doc/posix-functions/csinh.texi (csinh): Likewise.
10876         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10877         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10878         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10879         * doc/posix-functions/ctan.texi (ctan): Likewise.
10880         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10881         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10882         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10883         * doc/posix-headers/complex.texi (complex.h): Likewise.
10884
10885 2010-10-07  Jim Meyering  <meyering@redhat.com>
10886
10887         parse-datetime: avoid compilation failure on OpenBSD 4.7
10888         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10889         This works around a compilation failure on OpenBSD 4.7:
10890         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10891
10892 2010-10-07  Eric Blake  <eblake@redhat.com>
10893
10894         docs: update cygwin progress
10895         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10896         1.7.6.
10897         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10898         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10899         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10900         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10901         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10902         Likewise.
10903         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10904         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10905         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10906         Likewise.
10907         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10908         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10909         Likewise.
10910         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10911         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10912         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10913         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10914         Likewise.
10915         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10916         Likewise.
10917         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10918
10919         docs: update parse-datetime history
10920         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10921         documentation of this function's history and alternatives.
10922
10923         cygwin: use more robust version check
10924         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10925         exclude an eventual cygwin 1.9.1.
10926         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10928         (gl_FUNC_STRCASESTR): Likewise.
10929         Reported by Bruno Haible.
10930
10931 2010-10-06  Bruno Haible  <bruno@clisp.org>
10932
10933         string, sys_select: Avoid #including large headers unless necessary.
10934         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10935         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10936         OSF/1, BeOS, Haiku.
10937         Reported by Jim Meyering.
10938
10939 2010-10-05  Eric Blake  <eblake@redhat.com>
10940
10941         memmem, strstr, strcasestr: fix bug with long periodic needle
10942         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10943         periodic needle having false positive.
10944         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10945         and cygwin 1.7.7.
10946         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10948         (gl_FUNC_STRCASESTR): Likewise.
10949         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10950         * tests/test-memmem.c (main): Expose the bug.
10951         * tests/test-strcasestr.c (main): Likewise.
10952         * tests/test-strstr.c (main): Likewise.
10953         * tests/test-c-strcasestr.c (main): Likewise.
10954         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10955         * doc/posix-functions/strstr.texi (strstr): Likewise.
10956         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10957         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10958
10959 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10960
10961         parse-datetime: do some more renaming
10962         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10963         parse_datetime, not get_date.  Mention the renaming.
10964         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10965         in comments.
10966         * m4/bison.m4: Likewise.
10967
10968 2010-10-05  Eric Blake  <eblake@redhat.com>
10969
10970         parse-datetime: better name than get_date
10971         * NEWS: Reword the deprecation notice.
10972         * modules/get_date: Rename to modules/parse-datetime.
10973         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10974         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10975         * lib/get_date.y: Rename to lib/parse-datetime.y.
10976         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10977         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10978         * doc/getdate.texi: Provide fallback wrapper.
10979         * lib/getdate.h: Move guts, and wrap...
10980         * lib/parse-datetime.h: ...new file.
10981         * lib/parse-datetime.y (get_date): Rename...
10982         (parse_datetime): ...to this.
10983         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10984         (gl_PARSE_DATETIME): ...to this.
10985         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10986         documentation.
10987         * modules/getdate (Files): Provide fallback docs and header.
10988         (Notice, Depends-on): Update references.
10989         * tests/test-parse-datetime.c: Likewise.
10990         * DEPENDENCIES: Likewise.
10991         * MODULES.html.sh (Date and time <time.h>): Likewise.
10992         * doc/parse-datetime.texi (Date input formats)
10993         (Authors of parse_datetime): Likewise.
10994         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10995         (Include): Likewise.
10996         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10997         * gnulib-tool: Likewise.
10998         * m4/bison.m4 (gl_BISON): Likewise.
10999         Suggested by Bruno Haible.
11000
11001 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11002
11003         more ports to Solaris tr, which needs [] around ranges
11004         * gnulib-tool: Solaris tr needs [] around ranges.
11005         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11006         * tests/test-pipe-filter-gi1.c (main): Likewise.
11007         * tests/test-pipe-filter-ii1.c (main): Likewise.
11008
11009 2010-10-05  Eric Blake  <eblake@redhat.com>
11010
11011         bootstrap: fix Solaris regression
11012         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11013         around ranges.
11014         Reported by Pádraig Brady.
11015
11016         bootstrap: work with pkg-config
11017         * build-aux/bootstrap (check_versions): Also transliterate - in
11018         prerequisite name.
11019         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11020         prerequisites that were already found, to avoid confusion.
11021         Reported by Justin Clift.
11022
11023         faccessat: remove unused wrappers
11024         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11025         presence of these wrappers dragged in -lgen on Solaris.
11026         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11027
11028 2010-10-05  Jim Meyering  <meyering@redhat.com>
11029
11030         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11031         * Makefile (sc_pragma_columns): New syntax-check rule.
11032
11033 2010-10-04  Bruno Haible  <bruno@clisp.org>
11034
11035         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11036         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11037         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11038         Reported by Bruce Korb and Eric Blake.
11039
11040 2010-10-04  Bruno Haible  <bruno@clisp.org>
11041
11042         threadlib: Make option --with-libpth-prefix work.
11043         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11044         use $LIBPTH, not just -lpth.
11045
11046 2010-10-04  Bruno Haible  <bruno@clisp.org>
11047
11048         Avoid line length limitation from HP NonStop system header files.
11049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
11050         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
11051         * lib/ctype.in.h: Likewise.
11052         * lib/dirent.in.h: Likewise.
11053         * lib/errno.in.h: Likewise.
11054         * lib/fcntl.in.h: Likewise.
11055         * lib/float.in.h: Likewise.
11056         * lib/getopt.in.h: Likewise.
11057         * lib/iconv.in.h: Likewise.
11058         * lib/inttypes.in.h: Likewise.
11059         * lib/langinfo.in.h: Likewise.
11060         * lib/locale.in.h: Likewise.
11061         * lib/math.in.h: Likewise.
11062         * lib/netdb.in.h: Likewise.
11063         * lib/netinet_in.in.h: Likewise.
11064         * lib/poll.in.h: Likewise.
11065         * lib/pthread.in.h: Likewise.
11066         * lib/pty.in.h: Likewise.
11067         * lib/sched.in.h: Likewise.
11068         * lib/se-selinux.in.h: Likewise.
11069         * lib/search.in.h: Likewise.
11070         * lib/signal.in.h: Likewise.
11071         * lib/spawn.in.h: Likewise.
11072         * lib/stdarg.in.h: Likewise.
11073         * lib/stddef.in.h: Likewise.
11074         * lib/stdint.in.h: Likewise.
11075         * lib/stdio.in.h: Likewise.
11076         * lib/stdlib.in.h: Likewise.
11077         * lib/string.in.h: Likewise.
11078         * lib/strings.in.h: Likewise.
11079         * lib/sys_file.in.h: Likewise.
11080         * lib/sys_ioctl.in.h: Likewise.
11081         * lib/sys_select.in.h: Likewise.
11082         * lib/sys_socket.in.h: Likewise.
11083         * lib/sys_stat.in.h: Likewise.
11084         * lib/sys_time.in.h: Likewise.
11085         * lib/sys_times.in.h: Likewise.
11086         * lib/sys_utsname.in.h: Likewise.
11087         * lib/sys_wait.in.h: Likewise.
11088         * lib/sysexits.in.h: Likewise.
11089         * lib/termios.in.h: Likewise.
11090         * lib/time.in.h: Likewise.
11091         * lib/unistd.in.h: Likewise.
11092         * lib/wchar.in.h: Likewise.
11093         * lib/wctype.in.h: Likewise.
11094         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11095         * modules/ctype (Makefile.am): Likewise.
11096         * modules/dirent (Makefile.am): Likewise.
11097         * modules/errno (Makefile.am): Likewise.
11098         * modules/fcntl-h (Makefile.am): Likewise.
11099         * modules/float (Makefile.am): Likewise.
11100         * modules/getopt-posix (Makefile.am): Likewise.
11101         * modules/iconv-h (Makefile.am): Likewise.
11102         * modules/inttypes (Makefile.am): Likewise.
11103         * modules/langinfo (Makefile.am): Likewise.
11104         * modules/locale (Makefile.am): Likewise.
11105         * modules/math (Makefile.am): Likewise.
11106         * modules/netdb (Makefile.am): Likewise.
11107         * modules/netinet_in (Makefile.am): Likewise.
11108         * modules/poll-h (Makefile.am): Likewise.
11109         * modules/pthread (Makefile.am): Likewise.
11110         * modules/pty (Makefile.am): Likewise.
11111         * modules/sched (Makefile.am): Likewise.
11112         * modules/search (Makefile.am): Likewise.
11113         * modules/selinux-h (Makefile.am): Likewise.
11114         * modules/signal (Makefile.am): Likewise.
11115         * modules/spawn (Makefile.am): Likewise.
11116         * modules/stdarg (Makefile.am): Likewise.
11117         * modules/stddef (Makefile.am): Likewise.
11118         * modules/stdint (Makefile.am): Likewise.
11119         * modules/stdio (Makefile.am): Likewise.
11120         * modules/stdlib (Makefile.am): Likewise.
11121         * modules/string (Makefile.am): Likewise.
11122         * modules/strings (Makefile.am): Likewise.
11123         * modules/sys_file (Makefile.am): Likewise.
11124         * modules/sys_ioctl (Makefile.am): Likewise.
11125         * modules/sys_select (Makefile.am): Likewise.
11126         * modules/sys_socket (Makefile.am): Likewise.
11127         * modules/sys_stat (Makefile.am): Likewise.
11128         * modules/sys_time (Makefile.am): Likewise.
11129         * modules/sys_times (Makefile.am): Likewise.
11130         * modules/sys_utsname (Makefile.am): Likewise.
11131         * modules/sys_wait (Makefile.am): Likewise.
11132         * modules/sysexits (Makefile.am): Likewise.
11133         * modules/termios (Makefile.am): Likewise.
11134         * modules/time (Makefile.am): Likewise.
11135         * modules/unistd (Makefile.am): Likewise.
11136         * modules/wchar (Makefile.am): Likewise.
11137         * modules/wctype (Makefile.am): Likewise.
11138
11139 2010-10-04  Bruno Haible  <bruno@clisp.org>
11140
11141         read-file tests: Avoid a test failure on NonStop Kernel.
11142         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11143         a regular file.
11144         Reported by Joachim Schmitz <schmitz@hp.com>.
11145
11146 2010-10-03  Bruno Haible  <bruno@clisp.org>
11147
11148         gnulib-tool: Fixes for --create-testdir with --libtool.
11149         * gnulib-tool (func_get_automake_snippet): Don't augment
11150         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11151         an executable.
11152         (func_create_testdir): Handle module 'alloca' like func_import.
11153         Reported by Bruce Korb <bruce.korb@gmail.com>.
11154
11155 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11156
11157         Avoid some lines longer than 80 characters.
11158         * lib/stdint.in.h: Break long comment lines.
11159         * lib/math.in.h: Likewise.
11160         (_GL_NUM_UINT_WORDS): New macro, for readability.
11161         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11162         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11163         * lib/stdlib.in.h: Likewise.
11164         * lib/spawn.in.h: Likewise.
11165         * lib/sys_socket.in.h: Update an URL.
11166         * lib/sys_stat.in.h: Break long line.
11167
11168 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11169
11170         Improve pmccabe2html.
11171         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11172         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11173         when the sources change. Remove the line in the HTML about "Used
11174         ranges" (which implied that there might be other unused ranges),
11175         rename "Resume" to "Summary" (easier to understand for more users).
11176         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11177         styles, and some unnecessary blank lines.
11178
11179 2010-10-03  Bruno Haible  <bruno@clisp.org>
11180             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11181
11182         acl: Add support for ACLs on NonStop Kernel.
11183         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11184         Check whether the function aclsort() exists.
11185         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11186         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11187         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11188         (acl_nontrivial [HAVE_ACLSORT]: New function.
11189         (file_has_acl): Implement for NonStop Kernel.
11190         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11191         (qset_acl): Implement for NonStop Kernel.
11192         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11193         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11194         (main): Implement for NonStop Kernel.
11195         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11196         Kernel. Handle this flavor.
11197         * tests/test-set-mode-acl.sh: Likewise.
11198         * tests/test-copy-acl.sh: Likewise.
11199         * tests/test-copy-file.sh: Likewise.
11200
11201 2010-10-03  Bruno Haible  <bruno@clisp.org>
11202
11203         Info about ACLs on NonStop Kernel.
11204         * doc/acl-resources.txt: Add info about NonStop Kernel.
11205         References by Joachim Schmitz <schmitz@hp.com>.
11206
11207 2010-10-02  Bruno Haible  <bruno@clisp.org>
11208
11209         Define missing EDQUOT on NonStop Kernel.
11210         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11211         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11212         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11213         missing.
11214         * doc/posix-headers/errno.texi: Mention the NSK bug.
11215         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11216         Reported by Joachim Schmitz <schmitz@hp.com>.
11217
11218 2010-10-02  Bruno Haible  <bruno@clisp.org>
11219
11220         Update doc for POSIX:2008.
11221         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11222         Update URL of POSIX specification.
11223
11224 2010-10-02  Bruno Haible  <bruno@clisp.org>
11225
11226         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11227         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11228         from gnulib, not from Automake.
11229
11230 2010-10-02  Bruno Haible  <bruno@clisp.org>
11231
11232         New module 'system-posix'.
11233         * modules/system-posix: New file.
11234         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11235         module is present.
11236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11237         GNULIB_SYSTEM_POSIX.
11238         * modules/stdlib (Depends-on): Remove sys_wait.
11239         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11240         * doc/posix-functions/system.texi: Mention the new module.
11241         * doc/posix-headers/stdlib.texi: Likewise.
11242         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11243         define test_sys_wait_macros to a no-op.
11244         Reported by Sam Steingold <sds@gnu.org>.
11245
11246 2010-09-30  Bruno Haible  <bruno@clisp.org>
11247
11248         More renaming from 'getdate' to 'get_date'.
11249         * doc/get_date.texi: Renamed from doc/getdate.texi.
11250         * modules/get_date (Files): Update.
11251         * MODULES.html.sh (Date and time <time.h>): Update.
11252         * DEPENDENCIES: Update.
11253         * gnulib-tool: Update comment.
11254         * m4/bison.m4 (gl_BISON): Likewise.
11255         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11256
11257 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11258
11259         bootstrap: support ACLOCAL_FLAGS during aclocal
11260         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11261         can add additional -I dir for third-party .m4 files.
11262
11263 2010-09-30  Eric Blake  <eblake@redhat.com>
11264
11265         bootstrap: use glibtoolize on MacOS
11266         * build-aux/bootstrap (check_versions): Convert libtool into
11267         libtoolize.
11268         (tool search): Move libtool check earlier, and look for
11269         glibtoolize for MacOS.
11270         (gnulib_tool_options): Auto-add --libtool when appropriate.
11271         Reported by Justin Clift.
11272
11273         poll: fix typo that broke test on MacOS
11274         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11275         Reported by Justin Clift.
11276
11277         getdate: rename to get_date
11278         Note: getdate.h is not renamed, to minimize client impact.
11279         * modules/getdate: Mark obsolete.  Move old contents...
11280         * modules/get_date: ...to new module name.
11281         * modules/getdate-tests: Move...
11282         * modules/get_date-tests: ...here.
11283         * m4/getdate.m4: Move...
11284         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11285         * lib/getdate.y: Move...
11286         * lib/get_date.y: ...here.
11287         * tests/test-getdate.c: Move...
11288         * tests/test-get_date.c: ...here.
11289         * doc/posix-functions/getdate.texi (getdate): Update name.
11290         * NEWS: Mention the change.
11291
11292 2010-09-29  Bruno Haible  <bruno@clisp.org>
11293
11294         Separate the module 'waitpid' from the module 'sys_wait'.
11295         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11296         present.
11297         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11298         gl_MODULE_INDICATOR_FOR_TESTS.
11299         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11300         * modules/sys_wait (Depends-on): Remove waitpid.
11301         (Makefile.am): Substitute GNULIB_WAITPID.
11302         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11303         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11304         signature only if the 'waitpid' module is present.
11305         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11306         * NEWS: Mention the change.
11307         * modules/grantpt (Depends-on): Add waitpid.
11308         * modules/wait-process (Depends-on): Likewise.
11309
11310 2010-09-29  Bruno Haible  <bruno@clisp.org>
11311
11312         More tests for module 'sys_wait'.
11313         * modules/sys_wait-c++-tests: New file.
11314         * tests/test-sys_wait-c++.cc: New file.
11315         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11316         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11317
11318 2010-09-29  Bruno Haible  <bruno@clisp.org>
11319
11320         New module 'waitpid'.
11321         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11322         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11323         Don't include <process.h>.
11324         (waitpid): Declare only, using modern idiom.
11325         * m4/waitpid.m4: New file.
11326         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11327         * modules/waitpid: New file.
11328         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11329         (Makefile.am): Update.
11330         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11331
11332 2010-09-28  Bruno Haible  <bruno@clisp.org>
11333
11334         poll: Assume ANSI C.
11335         * lib/poll.c (poll): Use an ANSI C declaration.
11336
11337 2010-09-28  Bruno Haible  <bruno@clisp.org>
11338
11339         poll-h: Create poll.h on all platforms.
11340         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11341         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11342         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11343         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11344         (gl_REPLACE_POLL_H): Don't set POLL_H.
11345         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11346         * modules/poll-h (Depends-on): Add include_next.
11347         (Makefile.am): Create poll.h unconditionally. Substitute also
11348         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11349
11350 2010-09-28  Bruno Haible  <bruno@clisp.org>
11351
11352         Tests for module 'poll-h'.
11353         * modules/poll-h-c++-tests: New file.
11354         * tests/test-poll-h-c++.cc: New file.
11355
11356         Tests for module 'poll-h'.
11357         * modules/poll-h-tests: New file.
11358         * tests/test-poll-h.c: New file.
11359
11360 2010-09-28  Bruno Haible  <bruno@clisp.org>
11361
11362         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11363         * modules/poll-h (Depends-on): Add 'extensions'.
11364
11365 2010-09-28  Bruno Haible  <bruno@clisp.org>
11366
11367         New module 'poll-h'.
11368         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11369         (poll): Use modern idiom.
11370         * modules/poll-h: New file.
11371         * modules/poll (Files): Remove lib/poll.in.h.
11372         (Depends-on): Add poll-h.
11373         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11374         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11375         * m4/poll_h.m4: New file.
11376         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11377         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11378         and invoke gl_REPLACE_POLL_H.
11379         * lib/poll.c: Use common idiom.
11380         * tests/test-poll.c: Likewise.
11381         * doc/posix-headers/poll.texi: Mention the poll-h module.
11382         Suggested by Eric Blake.
11383
11384 2010-09-26  Bruno Haible  <bruno@clisp.org>
11385
11386         sys_wait: Implement WSTOPSIG.
11387         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11388         Reported by Simon Josefsson.
11389
11390 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11391
11392         stdlib, sys_wait: Avoid compilation error on mingw.
11393         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11394
11395 2010-09-26  Bruno Haible  <bruno@clisp.org>
11396
11397         stdlib tests: Avoid code duplication.
11398         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11399         * modules/sys_wait-tests (Files): Likewise.
11400         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11401         * tests/test-stdlib.c: Include test-sys_wait.h.
11402         (main): Invoke test_sys_wait_macros.
11403         * tests/test-sys_wait.c: Include test-sys_wait.h.
11404         (main): Invoke test_sys_wait_macros.
11405
11406 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11407
11408         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11409         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11410         sure Windows sockets are working before calling getaddrinfo.
11411         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11412         * doc/gnulib.texi (Windows sockets): Fix typo.
11413
11414 2010-09-25  Bruno Haible  <bruno@clisp.org>
11415
11416         Tests for module 'regex-quote'.
11417         * modules/regex-quote-tests: New file.
11418         * tests/test-regex-quote.c: New file.
11419
11420         New module 'regex-quote'.
11421         * lib/regex-quote.h: New file.
11422         * lib/regex-quote.c: New file.
11423         * modules/regex-quote: New file.
11424         Suggested by Reuben Thomas <rrt@sc3d.org>.
11425
11426 2010-09-24  Bruno Haible  <bruno@clisp.org>
11427
11428         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11429         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11430
11431 2010-09-23  Bruno Haible  <bruno@clisp.org>
11432
11433         setenv: Relax license.
11434         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11435         Blake.
11436         Requested by Eric Blake.
11437
11438 2010-09-22  Bruno Haible  <bruno@clisp.org>
11439
11440         termios: Relax license.
11441         * modules/termios (License): Change to LGPLv2+.
11442         Requested by Eric Blake.
11443
11444 2010-09-22  Bruno Haible  <bruno@clisp.org>
11445
11446         threadlib: Allow the package to change the default to 'no'.
11447         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11448         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11449         Reported by Paul Eggert.
11450
11451 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11452             Bruno Haible  <bruno@clisp.org>
11453
11454         Fix endless loop in mbmemcasecoll.
11455         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11456         byte.
11457         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11458
11459 2010-09-22  Bruno Haible  <bruno@clisp.org>
11460
11461         Tests for module 'memcoll'.
11462         * modules/memcoll-tests: New file.
11463         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11464
11465         memcoll, xmemcoll: Clarify size vs. length.
11466         * modules/memcoll.c (memcoll0): Clarify specification.
11467         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11468         passed to collate_error.
11469
11470 2010-09-22  Bruno Haible  <bruno@clisp.org>
11471
11472         Tests for module 'memcasecmp'.
11473         * modules/memcasecmp-tests: New file.
11474         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11475
11476 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11477
11478         * lib/pthread.in.h: Add split double-inclusion guard, and include
11479         system <pthread.h> if there is one.  Use @@-style as in other
11480         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11481         pthread.h doesn't.
11482         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11483         (pthread_mutexattr_settype, pthread_mutex_trylock):
11484         New static inline functions, if there's no system <pthread.h>.
11485         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11486         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11487         Approximate with mutexes if the system lacks spinlocks, as in
11488         MacOS.
11489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11490         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11491         @@-style.  Check for spinlocks separately.
11492         (gl_PTHREAD_DEFAULTS): New macro.
11493         * modules/pthread: Redo to use a more typical style for in.h files.
11494
11495 2010-09-21  Eric Blake  <eblake@redhat.com>
11496
11497         net_if: enhance tests
11498         * tests/test-net_if.c (main): Move signature checks earlier.
11499         Print failures to stderr.
11500         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11501         Document the bug that we do not yet fix.
11502
11503 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11504
11505         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11506         about gnulib, not GSS.
11507
11508 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11509
11510         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11511         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11512         for Emacs.
11513         * build-aux/pmccabe2html: Make Makefile.am example code more
11514         cut-and-paste friendly.
11515
11516 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11517
11518         * tests/test-net_if.c: New file.
11519         * modules/net_if-tests: New file.
11520
11521 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11522
11523         pthread: add pthread_spin_destroy
11524         * lib/pthread.in.h (pthread_spin_destroy): New function.
11525
11526 2010-09-19  Bruno Haible  <bruno@clisp.org>
11527
11528         gnulib-tool: Fix --help output.
11529         * gnulib-tool (func_usage): Fix help message.
11530         Reported by Reuben Thomas <rrt@sc3d.org>.
11531
11532 2010-09-18  Jim Meyering  <meyering@redhat.com>
11533
11534         maint.mk: avoid unexpanded \n in two diagnostics
11535         * top/maint.mk (sc_prohibit_always_true_header_tests):
11536         Don't use a literal \n in a halt=... assignment.  It would not be
11537         expanded, and the two \n bytes would appear in the diagnostic output
11538         rather than the desired newline.  Use halt=$$(printf ... instead.
11539         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11540
11541 2010-09-18  Bruno Haible  <bruno@clisp.org>
11542
11543         netinet_in: Doc tweak.
11544         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11545         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11546
11547 2010-09-18  Jim Meyering  <meyering@redhat.com>
11548
11549         init.sh: correct an outdated comment
11550         * tests/init.sh (create_exe_shims_):  s/function/alias/
11551
11552         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11553         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11554         a file named "*.exe" is removed between the glob expansion and the
11555         processing of that oddly named file.
11556
11557 2010-09-17  Eric Blake  <eblake@redhat.com>
11558
11559         mirbsd: add some more support
11560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11561         in BSD family.
11562         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11563         devices as OpenBSD.
11564         * m4/host-os.m4 (mirbsd): Add MirBSD.
11565
11566         tests: fix unportable assumption on sys/wait.h
11567         * tests/test-sys_wait.c (main): Relax test.
11568         * tests/test-stdlib.c (main): Likewise.
11569
11570         init.sh: accomodate directory with no .exes
11571         * tests/init.sh: Accomodate directory containing only scripts.
11572
11573         tests: avoid compiler warning
11574         * tests/test-stdlib.c (main): Use the variable.
11575
11576         fdutimens, fdutimensat: update signature, again
11577         * lib/utimens.h (gl_futimens): Delete, and move signature...
11578         (fdutimens): ...here.
11579         (fdutimensat): Rearrange signature.
11580         (lutimensat): Rename variable for clarity.
11581         * lib/fdutimensat.c (fdutimensat): Update signature.
11582         * lib/utimens.c (fdutimens): Likewise.
11583         (gl_futimens): Delete.
11584         (utimens, lutimens): Update callers.
11585         * lib/futimens.c (futimens): Likewise.
11586         * tests/test-fdutimensat.c: Likewise.
11587         * tests/test-utimens.c: Likewise.
11588         * tests/test-futimens.h: Update comment.
11589         * NEWS: Mention this.
11590         Suggested by Paul Eggert.
11591
11592 2010-09-17  Bruno Haible  <bruno@clisp.org>
11593
11594         Take over the maintenance of some older macros from Autoconf.
11595         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11596         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11597         GNU Autoconf.
11598         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11599         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11600
11601 2010-09-17  Eric Blake  <eblake@redhat.com>
11602
11603         fdutimensat: drop atflag validation
11604         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11605         with valid fd, to close a race scenario where futimens is
11606         unsupported and FILE was replaced by a symlink.
11607         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11608         accordingly.
11609         Suggested by Paul Eggert.
11610
11611 2010-09-16  Bruno Haible  <bruno@clisp.org>
11612
11613         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11614         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11615
11616 2010-09-16  Bruno Haible  <bruno@clisp.org>
11617
11618         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11619         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11620         login_tty exists.
11621         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11622
11623 2010-09-16  Bruno Haible  <bruno@clisp.org>
11624
11625         login_tty: Make the replacement code work on BSD systems.
11626         * lib/login_tty.c: Include <sys/ioctl.h>.
11627         (login_tty): Use ioctl TIOCSCTTY when available.
11628         * modules/login_tty (Depends-on): Add sys_ioctl.
11629         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11630
11631 2010-09-16  Bruno Haible  <bruno@clisp.org>
11632
11633         login_tty: Stricter unit test.
11634         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11635         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11636         and tcgetsid() after login_tty.
11637         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11638
11639 2010-09-16  Bruno Haible  <bruno@clisp.org>
11640
11641         New module 'tcgetsid'.
11642         * lib/tcgetsid.c: New file.
11643         * m4/tcgetsid.m4: New file.
11644         * modules/tcgetsid: New file.
11645         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11646         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11647         GNULIB_TCGETSID, HAVE_TCGETSID.
11648         * lib/termios.in.h: Include <sys/types.h>.
11649         (tcgetsid): New declaration.
11650         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11651         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11652         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11653         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11654
11655 2010-09-16  Bruno Haible  <bruno@clisp.org>
11656
11657         Tests for module 'termios'.
11658         * modules/termios-c++-tests: New file.
11659         * modules/termios-tests: New file.
11660         * tests/test-termios-c++.cc: New file.
11661         * tests/test-termios.c: New file.
11662
11663         New module 'termios'.
11664         * modules/termios: New file.
11665         * lib/termios.in.h: New file.
11666         * m4/termios_h.m4: New file.
11667         * doc/posix-headers/termios.texi: Mention the new module.
11668
11669 2010-09-16  Eric Blake  <eblake@redhat.com>
11670
11671         fdutimensat: add an atflag parameter
11672         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11673         * lib/utimens.h (fdutimensat): Update prototype.
11674         * tests/test-fdutimensat.c: Adjust test to match.
11675         * NEWS: Document the change.
11676         Suggested by Paul Eggert.
11677
11678 2010-09-16  Bruno Haible  <bruno@clisp.org>
11679
11680         Fix typos in comments.
11681         * lib/striconveh.h: Fix typo in comment.
11682         * lib/login_tty.c (login_tty): Likewise.
11683
11684 2010-09-15  Bruno Haible  <bruno@clisp.org>
11685
11686         stdlib: clarify MirBSD WEXITSTATUS bug
11687         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11688         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11689
11690 2010-09-15  Eric Blake  <eblake@redhat.com>
11691
11692         stdlib: work around MirBSD WEXITSTATUS bug
11693         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11694         * modules/stdlib (Depends-on): Add sys_wait.
11695         * tests/test-sys_wait.c (main): Enhance test.
11696         * tests/test-stdlib.c (main): Likewise.
11697         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11698
11699         docs: mention MacOS issue with WEXITSTATUS(constant)
11700         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11701         issue.
11702         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11703
11704         strnlen: add tests
11705         * modules/strnlen-tests: New file.
11706         * tests/test-strnlen.c: Likewise.
11707
11708 2010-09-14  Bruno Haible  <bruno@clisp.org>
11709
11710         unistr/base: Avoid link errors when module 'libunistring' is also used.
11711         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11712         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11713         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11714         Declare also when HAVE_LIBUNISTRING is set.
11715         Reported by Pádraig Brady <P@draigbrady.com>.
11716
11717 2010-09-14  Eric Blake  <eblake@redhat.com>
11718
11719         test-rawmemchr: make more robust
11720         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11721         (Depends-on, configure.ac): Add needed prerequisites to use it.
11722         * modules/memchr-tests (Files, Depends-on, configure.ac):
11723         Likewise, to avoid implicit reliance on memchr module prereqs.
11724         * tests/test-memchr.c (main): Ensure proper masking.
11725         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11726         reads.
11727
11728         memchr: detect glibc Alpha bug
11729         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11730         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11731         Alpha.
11732         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11733         * tests/test-memchr.c (main): Enhance test.
11734         Reported by Nelson H. F. Beebe.
11735
11736 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11737
11738         fts, getcwd, glob: audit for dirfd returning -1
11739         * lib/fts.c (opendir): Remove #define; no longer used.
11740         (opendirat): New arg PDIR_FD.  All callers changed.
11741         (fts_build, _opendir2): Use new opendirat to avoid the need for
11742         dirfd, or for checking whether dirfd returns a negative value.
11743         Don't use opendir; always use openat followed by fdopendir.
11744         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11745         it.
11746         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11747         returns -1 here.
11748         * modules/fts (Depends-on): Remove dirfd.
11749         * modules/getcwd (Depends-on): Likewise.
11750
11751 2010-09-13  Eric Blake  <eblake@redhat.com>
11752
11753         float: fix broken MirBSD header
11754         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11755         * doc/posix-headers/float.texi (float.h): Document it.
11756
11757 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11758
11759         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11760         * lib/fts.c (opendirat): New arg extra_flags.
11761         (__opendir2): Use it to avoid following symlinks when opening
11762         a directory, if symlinks are not supposed to be followed.  See
11763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11764
11765         fdopendir: preserve argument fd before returning
11766         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11767         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11768         (fdopendir): Use them, arranging for FD to be open to the same
11769         directory that it was when it started.  (It might be temporarily
11770         closed while fdopendir is running, so this not thread- or
11771         signal-safe.)  Be careful to do the right thing even when file
11772         descriptors are scarce and dup fails with errno == EMFILE.  See
11773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11774
11775 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11776
11777         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11778         * NEWS: Document change.
11779         * m4/regex.m4: Disable test for regoff_t size.
11780
11781 2010-09-13  Jim Meyering  <meyering@redhat.com>
11782
11783         fts: don't operate on an invalid file descriptor after failed dup
11784         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11785         negative file descriptor.
11786
11787 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11788
11789         savedir: add streamsavedir, deprecate fdsavedir
11790         * NEWS: Mention deprecation of fdsavedir.
11791         * lib/savedir.c (streamsavedir): New extern function, whose name
11792         ends in "savedir" to be consistent with the others.  This differs
11793         from savedirstream in that it doesn't close its argument.  The
11794         next version of GNU tar will use this instead of fdsavedir, to
11795         avoid some race conditions and conserve file descriptors.
11796         (savedirstream): Reimplement as a wrapper around streamsavedir.
11797         (fdsavedir): Add a comment deprecating this function.  As far as
11798         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11799         * lib/savedir.h (streamsavedir): New decl.
11800         (fdsavedir): Add a comment deprecating this.
11801
11802 2010-09-10  Bruno Haible  <bruno@clisp.org>
11803
11804         langinfo: Fix last commit.
11805         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11806         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11808
11809 2010-09-10  Bruno Haible  <bruno@clisp.org>
11810
11811         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11812         * lib/progreloc.c (O_EXEC): Define fallback.
11813
11814 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11817         * NEWS: Document recent changes to fcntl-h.
11818         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11819         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11820         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11821         Similarly for O_SEARCH; this last was already true, but not documented.
11822         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11823         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11824         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11825         Likewise.
11826         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11827         is zero, not whether it is defined.
11828         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11829         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11830         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11831
11832 2010-09-10  Bruno Haible  <bruno@clisp.org>
11833
11834         langinfo, nl_langinfo: Fix for IRIX 5.3.
11835         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11836         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11837         HAVE_LANGINFO_YESEXPR.
11838         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11839         HAVE_LANGINFO_YESEXPR.
11840         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11841         HAVE_LANGINFO_T_FMT_AMPM is 0.
11842         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11843         HAVE_LANGINFO_YESEXPR is 0.
11844         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11845         NOEXPR.
11846         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11847         * doc/posix-functions/nl_langinfo.texi: Likewise.
11848         Reported by Eric Blake.
11849
11850 2010-09-10  Bruno Haible  <bruno@clisp.org>
11851
11852         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11853         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11854         on FreeBSD 8.0 and OpenBSD 4.6.
11855         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11856         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11857         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11858         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11859         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11860         ac_includes_default.
11861         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11862
11863 2010-09-09  Eric Blake  <eblake@redhat.com>
11864
11865         strsignal: work around NetBSD bug
11866         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11867         * lib/string.in.h (includes): Likewise.
11868         * doc/posix-functions/strsignal.texi (strsignal): Document the
11869         bug.
11870         Reported by Nelson H. F. Beebe.
11871
11872         gnulib-tool: work with NetBSD /bin/sh
11873         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11874         (func_get_description, func_get_comment, func_get_status)
11875         (func_get_notice, func_get_applicability, func_get_filelist)
11876         (func_get_dependencies, func_get_autoconf_early_snippet)
11877         (func_get_autoconf_snippet, func_get_automake_snippet)
11878         (func_get_include_directive, func_get_link_directive)
11879         (func_get_license, func_get_maintainer, func_import): Avoid
11880         shell syntax errors from parsing syntax extensions.
11881
11882 2010-09-09  Bruno Haible  <bruno@clisp.org>
11883
11884         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11885         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11886         a reliable way to determine whether the 'alias' command works.
11887
11888 2010-09-08  Jim Meyering  <meyering@redhat.com>
11889
11890         init.sh: penalize a set-x-impaired shell; don't disqualify it
11891         * tests/init.sh: Too many shells corrupt application stderr when
11892         you set -x, so we can't afford to disqualify them, since at least
11893         on Irix-6.5, that would disqualify all bourne shells.
11894         Instead, use a two-pass approach.
11895         On the first pass, try to find a shell that meets the stricter
11896         condition that set -x does not corrupt stderr.
11897         If no shell meets the stricter condition, retest each candidate
11898         shell, but without that extra condition.  Finally, when
11899         VERBOSE=yes is requested and set -x might cause trouble, simply
11900         issue a warning and refrain from enabling debug output.
11901
11902 2010-09-08  Eric Blake  <eblake@redhat.com>
11903
11904         unsetenv: fix OpenBSD bug
11905         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11906         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11907         documentation.
11908         Reported by Jim Meyering.
11909
11910         strtod: work around IRIX 6.5 bug
11911         * lib/strtod.c (strtod): Reparse number on shorter string if
11912         exponent parse was invalid.
11913         * tests/test-strtod.c (main): Add check for "0x1p 2".
11914         Reported by Tom G. Christensen.
11915
11916         getopt: optimize previous patch
11917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11918         empty variable.  Speed up awk script.
11919         Reported by Paolo Bonzini.
11920
11921 2010-09-08  Jim Meyering  <meyering@redhat.com>
11922
11923         test.sh: disqualify shells for which set -x corrupts stderr
11924         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11925         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11926         appear in stderr output.  For example, this command:
11927             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11928         prints "P=1" on those two systems:
11929
11930 2010-09-08  Bruno Haible  <bruno@clisp.org>
11931
11932         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11933         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11934         commands, because some shells ignore redirections when there is an
11935         error in the command lookup.
11936         Reported by Eric Blake.
11937
11938 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11939
11940         * lib/regex.h: Fix a mention of `regex_compile' (should be
11941         `re_compile_pattern').
11942         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11943         (re_set_registers): Correct name of parameter in comment.
11944
11945         * doc/regex.texi: Add documentation for missing syntax flags.
11946         Remove commented-out documentation of defunct syntax option
11947         RE_NO_EMPTY_ALTS.
11948         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11949         Add documentation of re_set_registers.
11950         Document trick to re-use a pattern buffer by setting fastmap manually.
11951         Update documentation of struct re_pattern_buffer per public members.
11952         Uncomment documentation of equivalence class operators and
11953         collating symbol operators, since they are now implemented,
11954         Explain leftmost-longest matching in relation to alternatives.
11955         Tidy documentation of substring matching.
11956         Remove POSIX documentation, which is done better in
11957         glibc, and refer the reader there. Keep BSD API documentation, as
11958         that is not readily available elsewhere.
11959
11960 2010-09-07  Eric Blake  <eblake@redhat.com>
11961
11962         getopt: handle POSIXLY_CORRECT set but not exported
11963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11964         export state of POSIXLY_CORRECT, due to bash set -o posix.
11965         Reported by Dustin J. Mitchell.
11966
11967 2010-09-05  Bruno Haible  <bruno@clisp.org>
11968
11969         gnulib-tool: Highlight the changed options.
11970         * gnulib-tool (func_usage): Display the --import, --add-import,
11971         --remove-import explanations in bold font.
11972
11973 2010-09-06  Karl Berry  <karl@gnu.org>
11974
11975         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11976
11977 2010-09-05  Bruno Haible  <bruno@clisp.org>
11978
11979         uniwidth/width: Update comment.
11980         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11981         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11982
11983 2010-09-05  Bruno Haible  <bruno@clisp.org>
11984
11985         isinf, isnan: Relax license.
11986         * modules/isinf (License): Change from GPL to LGPL, with consent from
11987         Ben Pfaff.
11988         * modules/isnan (License): Likewise.
11989         Requested by Ludovic Courtès.
11990
11991 2010-09-04  Bruno Haible  <bruno@clisp.org>
11992
11993         gnulib-tool: Help migration from --import to --add-import or --update.
11994         * gnulib-tool: Emit a verbose error message when --import is used
11995         without any module name.
11996
11997 2010-09-04  Bruno Haible  <bruno@clisp.org>
11998
11999         Update doc about gnulib-tool.
12000         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12001         'gnulib-tool --update' in more detail.
12002         Reported by Eric Blake.
12003
12004 2010-09-04  Bruno Haible  <bruno@clisp.org>
12005
12006         gnulib-tool: Change --import. New options --add/remove-import.
12007         * gnulib-tool: New options --add-import, --remove-import.
12008         (func_usage): Document them.
12009         (have_associative): Define always.
12010         (func_import): In import mode, don't merge the specified settings with
12011         the cached settings. Implement remove-import mode.
12012         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12013         Explain when to use them versus --import.
12014         (Simple update): Use --add-import instead of --import.
12015         * NEWS: Mention the change.
12016
12017 2010-09-04  Bruno Haible  <bruno@clisp.org>
12018
12019         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12020         separate gnulib.mk.
12021
12022 2010-09-04  Bruno Haible  <bruno@clisp.org>
12023
12024         gnulib-tool: Don't talk about CVS any more.
12025         * gnulib-tool (func_usage, func_import): Write "version control"
12026         instead of CVS.
12027
12028 2010-09-04  Jim Meyering  <meyering@redhat.com>
12029
12030         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12031         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12032         false positives (whose names may be ill-chosen) when searching
12033         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12034         would cause a false-positive.
12035
12036         avoid coreutils "make distcheck" failure
12037         Coreutils tests with an absolute build directory name that contains
12038         a space.  Not quoting this directory name caused a failure.
12039         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12040         * tests/test-vc-list-files-cvs.sh: Likewise.
12041
12042 2010-09-04  Bruno Haible  <bruno@clisp.org>
12043
12044         gnulib-tool: Avoid error when run in a package without Makefile.am.
12045         * gnulib-tool: When collecting the m4dirs in a package that does not
12046         have a Makefile.am, eliminate those directories that contain no
12047         gnulib-cache.m4. Fix expression that counts these directories.
12048
12049 2010-09-04  Bruno Haible  <bruno@clisp.org>
12050
12051         update-copyright test: Improve output when perl is missing or too old.
12052         * tests/test-update-copyright.sh: Move test of Perl version down after
12053         the test whether Perl exists. Provide an explanation relating Perl's
12054         error message to Automake's SKIP: message.
12055
12056 2010-09-04  Bruno Haible  <bruno@clisp.org>
12057
12058         Don't augment PATH in TESTS_ENVIRONMENT.
12059         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12060         set abs_aux_dir instead of augmenting PATH.
12061         * modules/vc-list-files-tests (Makefile.am): Likewise.
12062         * tests/test-update-copyright.sh: Augment PATH here.
12063         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12064         path_prepend_.
12065         * tests/test-vc-list-files-git.sh: Likewise.
12066
12067 2010-09-04  Jim Meyering  <meyering@redhat.com>
12068
12069         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12070         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12071
12072 2010-09-04  Bruno Haible  <bruno@clisp.org>
12073
12074         strdup: Fix compilation error in C++ mode.
12075         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12076         the macro.
12077
12078 2010-09-04  Bruno Haible  <bruno@clisp.org>
12079
12080         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12081         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12082         macro into a function.
12083         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12084
12085 2010-09-04  Bruno Haible  <bruno@clisp.org>
12086
12087         Set PATH_SEPARATOR the same way autoconf does.
12088         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12089         the value of PATH_SEPARATOR the same way autoconf-generated configure
12090         scripts do.
12091         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12092         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12093
12094 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12095
12096         Set PATH_SEPARATOR the same way autoconf does.
12097         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12098         the same way autoconf-generated configure scripts do.
12099         * posix-modules: Likewise.
12100
12101 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12102
12103         hash: fix safe_hasher const typo
12104         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12105         const; otherwise, there is a type error later.
12106
12107 2010-09-02  Jim Meyering  <meyering@redhat.com>
12108
12109         test-update-copyright.sh: require perl 5.8.0
12110         * tests/test-update-copyright.sh: Require 5.8.0,
12111         which Tom G. Christensen has confirmed is adequate,
12112         while 5.6.1 is not.
12113
12114 2010-09-02  Eric Blake  <eblake@redhat.com>
12115
12116         tests: init.sh improvements for re-exec'ing with zsh
12117         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12118         -vx through shell re-exec.
12119         Reported by Tom G. Christensen.
12120
12121         wctype: fix typo in previous commit
12122         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12123         Reported by Ludovic Courtès.
12124
12125 2010-09-02  Jim Meyering  <meyering@redhat.com>
12126
12127         test-update-copyright.sh: skip test if Perl is too old
12128         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12129         Reported by Tom G. Christensen.
12130
12131 2010-09-02  Bruno Haible  <bruno@clisp.org>
12132
12133         wctype: Avoid compilation error on IRIX 6.5.30.
12134         * lib/wctype.in.h (iswblank): Declare with a replacement if
12135         REPLACE_ISWBLANK is set.
12136         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12137         declared. Set REPLACE_ISWBLANK.
12138         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12139         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12140         * doc/posix-headers/wctype.texi: Likewise.
12141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12142
12143 2010-09-01  Bruno Haible  <bruno@clisp.org>
12144
12145         New module 'socketlib'.
12146         * modules/socketlib: New file.
12147         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12148         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12149         * modules/sockets (Depends-on): Add socketlib.
12150         Suggested by Sam Steingold <sds@gnu.org>.
12151
12152 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12153
12154         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12155
12156         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12157         when one needs search access to a directory but not read access.
12158         On systems where it is available, it works in some cases where
12159         O_RDONLY does not, namely on directories that are searchable but
12160         not readable, and which need only to be searchable.  If O_SEARCH
12161         is not available, fall back to the traditional method of using
12162         O_RDONLY.
12163
12164         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12165         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12166         when opening a directory that needs only to be searchable.
12167         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12168         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12169         * lib/openat-proc.c (openat_proc_name): Likewise.
12170         * lib/openat.c (openat_needs_fchdir): Likewise.
12171         * lib/save-cwd.c (save_cwd): Likewise.
12172         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12173
12174 2010-08-28  Bruno Haible  <bruno@clisp.org>
12175
12176         New module 'host-cpu-c-abi'.
12177         * modules/host-cpu-c-abi: New file.
12178         * m4/host-cpu-c-abi.m4: New file, based on part of
12179         clisp/src/m4/general.m4.
12180         Requested by Sam Steingold <sds@gnu.org>.
12181
12182 2010-08-31  Eric Blake  <eblake@redhat.com>
12183         and Jim Meyering  <meyering@redhat.com>
12184
12185         hash: factor, and guard against misbehaving hasher function
12186         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12187         of table->hasher's return value.  Also protect against a hash value
12188         so large that adding it to table->bucket results in a NULL pointer.
12189         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12190         Use it in place of open-coded check-and-abort.
12191
12192 2010-08-30  Bruno Haible  <bruno@clisp.org>
12193
12194         hash: silence spurious clang warning
12195         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12196         Reported by Eric Blake.
12197
12198 2010-08-30  Eric Blake  <eblake@redhat.com>
12199
12200         strstr, memmem, strcasestr: avoid leaked shell message
12201         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12202         FreeBSD.
12203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12205
12206         tests: silence clang warning
12207         * tests/test-malloca.c (do_allocation): Avoid dead store.
12208
12209 2010-08-29  Bruno Haible  <bruno@clisp.org>
12210
12211         gettext: Fix recent mistake.
12212         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12213
12214 2010-08-29  Bruno Haible  <bruno@clisp.org>
12215
12216         selinux-h: Offer a --without-selinux option.
12217         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12218         --without-selinux was specified, skip all tests and define
12219         HAVE_SELINUX_SELINUX_H to 0.
12220         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12221         set LIB_SELINUX to empty.
12222         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12223         gl_LIBSELINUX. If --without-selinux was specified, replace
12224         selinux/context.h.
12225         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12226
12227 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12228             Bruno Haible  <bruno@clisp.org>
12229
12230         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12231         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12232         of HAVE_REALLOC.
12233         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12234         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12235         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12236         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12237
12238 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12239             Bruno Haible  <bruno@clisp.org>
12240
12241         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12242         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12243         HAVE_CALLOC.
12244         * lib/xmalloc.c: Update accordingly.
12245         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12246         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12247         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12248
12249 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12250             Bruno Haible  <bruno@clisp.org>
12251
12252         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12253         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12254         HAVE_MALLOC.
12255         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12256         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12257         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12258
12259 2010-08-29  Bruno Haible  <bruno@clisp.org>
12260
12261         Update modules list.
12262         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12263         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12264         (String handling <string.h>): Add astrxfrm.
12265         (File system functions): Add readlinkat.
12266
12267 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12268
12269         Tests for module 'realloc-gnu'.
12270         * modules/realloc-gnu-tests: New file.
12271         * tests/test-realloc-gnu.c: New file.
12272
12273         Tests for module 'calloc-gnu'.
12274         * modules/calloc-gnu-tests: New file.
12275         * tests/test-calloc-gnu.c: New file.
12276
12277         Tests for module 'malloc-gnu'.
12278         * modules/malloc-gnu-tests: New file.
12279         * tests/test-malloc-gnu.c: New file.
12280
12281 2010-08-28  Bruno Haible  <bruno@clisp.org>
12282
12283         Rename module 'realloc' -> 'realloc-gnu'.
12284         * modules/realloc-gnu: New file, copied from modules/realloc.
12285         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12286         obsolete.
12287         * modules/mgetgroups (Depends-on): Update.
12288         * doc/posix-functions/realloc.texi: Update.
12289         * NEWS: Mention the change.
12290
12291         Rename module 'calloc' -> 'calloc-gnu'.
12292         * modules/calloc-gnu: New file, copied from modules/calloc.
12293         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12294         obsolete.
12295         * doc/posix-functions/calloc.texi: Update.
12296         * NEWS: Mention the change.
12297
12298         Rename module 'malloc' -> 'malloc-gnu'.
12299         * modules/malloc-gnu: New file, copied from modules/malloc.
12300         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12301         obsolete.
12302         * modules/argp (Depends-on): Update.
12303         * modules/regex (Depends-on): Update.
12304         * doc/posix-functions/malloc.texi: Update.
12305         * NEWS: Mention the change.
12306
12307 2010-08-28  Eric Blake  <eblake@redhat.com>
12308
12309         pread, pwrite: add missing dependency
12310         * modules/pread (Depends-on): Add extensions.
12311         * modules/pwrite (Depends-on): Likewise.
12312
12313 2010-08-28  Bruno Haible  <bruno@clisp.org>
12314
12315         unistr/u*-strchr: Fix tests dependencies.
12316         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12317         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12318         Reported by Ian Beckwith <ianb@erislabs.net>.
12319
12320 2010-08-28  Bruno Haible  <bruno@clisp.org>
12321
12322         read-file: Don't occupy too much unused memory.
12323         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12324
12325 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12326             Eric Blake  <eblake@redhat.com>
12327             Bruno Haible  <bruno@clisp.org>
12328
12329         read-file: Avoid memory reallocations with regular files.
12330         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12331         (fread_file): With regular files, use the remaining length as the
12332         initial buffer size.  Check against overflow.
12333         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12334         sys_stat.
12335
12336 2010-08-28  Bruno Haible  <bruno@clisp.org>
12337
12338         ftello: Relax license.
12339         * modules/ftello (License): Relax to LGPLv2+.
12340         Reported by Eric Blake.
12341
12342 2010-08-28  Bruno Haible  <bruno@clisp.org>
12343
12344         Avoid relocwrapper link errors due to gnulib replacement functions.
12345         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12346         function.
12347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12348
12349 2010-08-28  Bruno Haible  <bruno@clisp.org>
12350
12351         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12352         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12353         defined.
12354         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12355         Suggested by Eric Blake.
12356
12357 2010-08-28  Bruno Haible  <bruno@clisp.org>
12358
12359         sys_socket, netdb: Ensure socklen_t gets defined.
12360         * modules/sys_socket (Depends-on): Add socklen.
12361         * modules/netdb (Depends-on): Likewise.
12362         * modules/getaddrinfo (Depends-on): Remove socklen.
12363         * modules/getsockopt (Depends-on): Likewise.
12364         * modules/setsockopt (Depends-on): Likewise.
12365         * tests/test-sys_socket.c: Check that socklen_t is defined.
12366         * tests/test-netdb.c: Likewise.
12367         * m4/socklen.m4: Update comments.
12368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12369
12370 2010-08-27  Eric Blake  <eblake@redhat.com>
12371
12372         login_tty: add missing dependency
12373         * modules/login_tty (Depends-on): Add pty.
12374
12375 2010-08-26  Eric Blake  <eblake@redhat.com>
12376
12377         lib-symbol-versions: fix m4 quoting
12378         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12379         format for AC_LINK_IFELSE.
12380
12381         glob: fix compile test
12382         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12383
12384         btowc: fix missing file
12385         * modules/btowc (Files): Also ship locale-fr.m4.
12386
12387         lseek: fix link test
12388         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12389         AC_LINK_IFELSE.
12390
12391         include_next: silence autoconf 2.68 warning
12392         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12393         AC_COMPILE_IFELSE as special.
12394         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12395         autoconf < 2.68.
12396
12397         acl: fix compilation test
12398         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12399         AC_COMPILE_IFELSE.
12400
12401 2010-08-26  Bruno Haible  <bruno@clisp.org>
12402
12403         Modernize AC_TRY_RUN invocations.
12404         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12405         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12406         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12407         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12408         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12409         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12412         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12413         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12415         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12416         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12417         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12419         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12420         gl_MBRLEN_NUL_RETVAL): Likewise.
12421         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12422         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12423         Likewise.
12424         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12425         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12426         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12427         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12428         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12429         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12430         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12431         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12432         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12433         Likewise.
12434         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12435         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12437         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12440         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12441         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12442         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12444
12445 2010-08-26  Bruno Haible  <bruno@clisp.org>
12446
12447         Modernize AC_TRY_LINK invocations.
12448         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12449         AC_TRY_LINK.
12450         * m4/argp.m4 (gl_ARGP): Likewise.
12451         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12452         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12453         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12454         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12455         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12456         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12457         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12458         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12459         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12460         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12461         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12462         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12463         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12464         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12465         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12466         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12467         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12468         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12469         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12470         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12471         Likewise.
12472         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12473         Likewise.
12474         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12475         Likewise.
12476         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12477         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12478         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12479         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12480         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12481         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12482         * m4/servent.m4 (gl_SERVENT): Likewise.
12483         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12484         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12485         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12486         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12487         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12488         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12489         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12490         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12491         * modules/tsearch-tests (configure.ac): Likewise.
12492
12493 2010-08-26  Bruno Haible  <bruno@clisp.org>
12494
12495         Modernize AC_TRY_COMPILE invocations.
12496         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12497         AC_TRY_COMPILE.
12498         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12499         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12500         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12501         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12502         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12503         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12504         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12505         * m4/lock.m4 (gl_LOCK): Likewise.
12506         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12507         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12508         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12509         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12510         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12511         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12512         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12513         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12514         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12515         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12516         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12517         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12518         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12519         extraneous semicolon.
12520
12521 2010-08-26  Jim Meyering  <meyering@redhat.com>
12522
12523         stat-time: relax license LGPL
12524         * modules/stat-time (License): Change from GPL to LGPL,
12525         with consent from all contributors, for use in libguile.
12526         Requested by Ludovic Courtès.
12527
12528 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12529
12530         poll: return immediately on POLLHUP.
12531         * lib/poll.c (poll): Always set timeout before wait_timeout is
12532         computed.
12533
12534 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12535
12536         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12537         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12538         rmdir ("dir/.//"), unlinkat.
12539
12540 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12541
12542         stdbool: avoid spurious failure with modern xlc
12543         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12544
12545 2010-08-24  Bruno Haible  <bruno@clisp.org>
12546
12547         getloadavg: simplify code
12548         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12549         gl_have_func. Update comments.
12550
12551 2010-08-24  Eric Blake  <eblake@redhat.com>
12552
12553         getloadavg: don't define SVR4 on cygwin
12554         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12555         only define SVR4 when -lkvm is required.
12556         Reported by Yaakov Selkowitz.
12557
12558 2010-08-24  Bruno Haible  <bruno@clisp.org>
12559
12560         priv-set: fix comment
12561         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12562
12563 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12564
12565         priv-set: fix comments
12566         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12567         to match code, as suggested by David Bartley in:
12568         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12569
12570 2010-08-23  Eric Blake  <eblake@redhat.com>
12571
12572         stdbool: avoid rejecting clang
12573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12574         * tests/test-stdbool.c: Enable more tests if using the system
12575         <stdbool.h> instead of the gnulib replacement.
12576         (main): Move xlc bug test to a runtime test for all compilers.
12577         Reported by Anders Kaseorg.
12578
12579         argz: fix shell quoting issue
12580         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12581         Reported by Charles Wilson.
12582
12583 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12584             Erik Faye-Lund <kusmabite@gmail.com>
12585
12586         poll, select: handle ERROR_BROKEN_PIPE.
12587         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12588         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12589         * lib/select.c (win32_compute_revents): Do not mark a pipe
12590         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12591
12592 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12593
12594         fts: allow compilation with C++
12595         * lib/fts_.h: Specify extern "C" linkage with C++.
12596
12597 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12598
12599         Fix gnulib-tool sed script de-commentation for AIX sed.
12600         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12601         sed.
12602
12603 2010-08-17  Eric Blake  <eblake@redhat.com>
12604
12605         test-stddef: test for (some) offsetof bugs
12606         * tests/test-stddef.c: Enhance test to ensure correct type of
12607         offsetof.
12608         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12609         that we are not fixing at this time.
12610
12611 2010-08-15  Bruno Haible  <bruno@clisp.org>
12612
12613         stpncpy: Allow stpncpy to be defined as a macro.
12614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12615         if it's already correctly declared.
12616         * lib/string.in.h (stpncpy): Undefine before redefining.
12617         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12618
12619 2010-08-14  Bruno Haible  <bruno@clisp.org>
12620
12621         Rename module 'memxfrm' to 'amemxfrm'.
12622         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12623         (amemxfrm): Renamed from memxfrm.
12624         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12625         (amemxfrm): Renamed from memxfrm.
12626         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12627         * NEWS: Mention the change.
12628         * MODULES.html.sh (String handling <string.h>): Update.
12629         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12630         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12631         * lib/unicase/u16-casexfrm.c: Likewise.
12632         * lib/unicase/u32-casexfrm.c: Likewise.
12633         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12634         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12635         * lib/uninorm/u16-normxfrm.c: Likewise.
12636         * lib/uninorm/u32-normxfrm.c: Likewise.
12637         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12638         memxfrm.
12639         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12640         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12641         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12642         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12643         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12644         Suggested by Paul Eggert.
12645
12646 2010-08-14  Bruno Haible  <bruno@clisp.org>
12647
12648         Tests for module 'astrxfrm'.
12649         * modules/astrxfrm-tests: New file.
12650         * tests/test-astrxfrm.c: New file.
12651
12652         New module 'astrxfrm'.
12653         * lib/astrxfrm.h: New file.
12654         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12655         * modules/astrxfrm: New file.
12656
12657 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12658
12659         regex: Tweak doc.
12660         * doc/regex.texi (Overview): Don't mention regex.c.
12661         (GNU Regular Expression Compiling): Likewise.
12662         (Match-end-of-line Operator): Mention 'not_eol'.
12663
12664 2010-08-14  Brian Gough  <bjg@gnu.org>
12665             Bruno Haible  <bruno@clisp.org>
12666
12667         git-merge-changelog: add doc relating to use with bzr and hg.
12668         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12669
12670 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12671
12672         pthread: fix pthread.h creation for srcdir != builddir
12673         * modules/pthread (Makefile.am): Fix the rule to work also in a
12674         non-srcdir build.
12675
12676 2010-08-13  Karl Berry  <karl@gnu.org>
12677
12678         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12679         * doc/posix-*/*: force line break before @url of POSIX
12680         specifications.
12681         Suggested by Werner Lemberg.
12682
12683 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12684
12685         strtod: fix const diagnostic
12686         * lib/strtod.c (strtod): Don't assign const char * to char *,
12687         as this elicits a warning from GCC when warnings are enabled.
12688
12689 2010-08-10  Pádraig Brady <P@draigbrady.com>
12690         and Eric Blake  <eblake@redhat.com>
12691
12692         copy-acl: ignore ENOTSUP on HP-UX
12693         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12694         so that it is available for HP-UX.
12695         * lib/copy-acl.c (qcopy_acl): Use it.
12696         Reported by Patrick M. Callahan.
12697
12698 2010-08-10  Eric Blake  <eblake@redhat.com>
12699
12700         open, chown: relax license
12701         * modules/open (License): Change to LGPLv2+, with consent by all
12702         authors, for use in augeas.
12703         * modules/chown (License): Likewise.
12704         * modules/lchown (Likewise): Likewise.
12705         Requested by Adam Stokes.
12706
12707 2010-08-09  Karl Berry  <karl@gnu.org>
12708
12709         * build-aux/ar-lib: new file, import from Automake.
12710         * config/srclist.txt: autocheck for updates.
12711
12712 2010-08-09  Eric Blake  <eblake@redhat.com>
12713
12714         readlinkat: adjust client modules
12715         * modules/areadlinkat (Depends-on): Use readlinkat, not
12716         symlinkat.
12717         * modules/areadlinkat-with-size (Depends-on): Likewise.
12718
12719         mknod: be more vocal about danger of running tests as root
12720         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12721         root, since that is just asking for problems.
12722         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12723
12724         readlinkat: split into its own module
12725         * modules/symlinkat: Split readlinkat...
12726         * modules/readlinkat: ...into separate module.
12727         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12728         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12729         * lib/symlinkat.c (readlinkat): Move...
12730         * lib/readlinkat.c: ...into new file.
12731         * modules/symlinkat-tests: Split readlinkat test...
12732         * modules/readlinkat-tests: ...into separate module.
12733         * tests/test-symlinkat.c: Split...
12734         * tests/test-readlinkat.c: ...into new file.
12735         * NEWS: Document the split.
12736         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12737         * lib/unistd.in.h (readlinkat): Likewise.
12738         Suggested by Bruno Haible.
12739
12740 2010-08-08  Bruno Haible  <bruno@clisp.org>
12741
12742         memxfrm: Speed up.
12743         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12744         that usually only one call to strxfrm is necessary for each string
12745         part.
12746         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12747
12748 2010-08-07  Karl Berry  <karl@gnu.org>
12749
12750         * doc/posix-headers/limits.texi,
12751         * doc/posix-functions/malloc.texi,
12752         * doc/posix-functions/strsignal.texi: missing @item.
12753         * doc/ld-version-script.texi: spurious leading i.
12754         * doc/regex.texi (Interval Operators): no commas inside @var.
12755
12756 2010-08-01  Bruno Haible  <bruno@clisp.org>
12757
12758         Integrate the regex documentation.
12759         * doc/gnulib.texi: Define 'cn' index.
12760         (Regular expressions): New a chapter that includes regex.texi and
12761         regexprops-generic.texi.
12762         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12763         syntax.
12764
12765         Whitespace cleanup.
12766         * doc/regex.texi: Remove trailing spaces.
12767
12768         Add regex documentation.
12769         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12770         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12771         Written by Kathy A. Hargreaves and Karl Berry.
12772
12773 2010-08-01  Bruno Haible  <bruno@clisp.org>
12774
12775         link: Update documentation.
12776         * doc/posix-functions/link.texi: Update regarding Solaris.
12777
12778 2010-07-31  Bruno Haible  <bruno@clisp.org>
12779
12780         Update modules list.
12781         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12782         (String handling <string.h>): Add memcmp2, memxfrm.
12783         (Container data structures): Add xlist, xsublist, xoset.
12784         (Core language properties): Add alignof, unused-parameter.
12785         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12786         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12787         (Unibyte characters <ctype.h>): New section.
12788         (String handling <string.h>): New section.
12789         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12790         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12791         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12792         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12793         tan, tanh, tanl, y0, y1, yn.
12794         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12795         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12796         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12797         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12798         unlockpt, vdprintf, vdprintf-posix.
12799         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12800         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12801         xconcat-filename.
12802         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12803         getdtablesize, pipe2, pipe2-safer.
12804         (Security): New section.
12805         (Networking functions): Add accept4.
12806         (Signal handling): Add sigpipe.
12807         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12808         mbmemcasecoll.
12809         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12810         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12811         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12812         pipe-filter-ii.
12813         (Misc): Add argp-version-etc, login_tty, parse-duration.
12814
12815 2010-07-31  Bruno Haible  <bruno@clisp.org>
12816
12817         Improve doc in MODULES.html.
12818         * modules/linkat (Description): Add the word "function".
12819         * modules/mkfifo (Description): Likewise.
12820         * modules/mknod (Description): Likewise.
12821         * modules/remove (Description): Likewise.
12822         * modules/renameat (Description): Likewise.
12823         * modules/stat (Description): Likewise.
12824         * modules/symlink (Description): Likewise.
12825         * modules/unlink (Description): Likewise.
12826
12827 2010-07-31  Bruno Haible  <bruno@clisp.org>
12828
12829         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12830         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12831         option --enable/disable-c++ instead of --enable/disable-cxx.
12832         * NEWS: Mention the change.
12833
12834 2010-07-31  Bruno Haible  <bruno@clisp.org>
12835
12836         readlink, areadlink: Relax test a bit.
12837         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12838         alternative to ENOTDIR.
12839         * tests/test-areadlink.h (test_areadlink): Likewise.
12840         Reported by Rainer Tammer.
12841
12842 2010-07-31  Bruno Haible  <bruno@clisp.org>
12843
12844         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12845         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12846         character, perform the search using U_STRCHR.
12847         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12848         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12849         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12850         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12851         Suggested by Paolo Bonzini.
12852
12853 2010-07-31  Bruno Haible  <bruno@clisp.org>
12854
12855         unistr/u*-strstr: Fix dependencies.
12856         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12857         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12858         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12859
12860 2010-07-31  Bruno Haible  <bruno@clisp.org>
12861
12862         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12863         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12864         the beginning of the loop.
12865         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12866         cases in 'switch' statement.
12867
12868         unistr/u8-strchr: Fix several bugs.
12869         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12870         the string. When not found, return NULL, not a pointer near the end.
12871
12872         More tests for unistr/u8-strchr.
12873         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12874         that the function does not read past the first occurrence of the byte
12875         being searched.
12876         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12877         * tests/unistr/test-u16-strchr.c (main): New function.
12878         * tests/unistr/test-u32-strchr.c (main): New function.
12879
12880 2010-07-31  Bruno Haible  <bruno@clisp.org>
12881
12882         posix-modules: Ignore backup files of documentation files.
12883         * posix-modules: grep only through files named *.texi.
12884
12885 2010-07-31  Bruno Haible  <bruno@clisp.org>
12886
12887         symlinkat: Fix documentation.
12888         * doc/posix-functions/readlinkat.texi: Fix module name.
12889
12890 2010-07-31  Bruno Haible  <bruno@clisp.org>
12891
12892         fchownat: Replace also when chown has the trailing slash bug.
12893         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12894         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12895         introduced on 2010-04-10.
12896         Reported by Rainer Tammer.
12897
12898 2010-07-31  Bruno Haible  <bruno@clisp.org>
12899
12900         linkat: Work around AIX 7.1 bug.
12901         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12902         whether linkat handles trailing slash correctly. If not, replace linkat
12903         and define LINKAT_TRAILING_SLASH_BUG.
12904         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12905         check whether (fd1,file1) points to a directory if file1 or file2 ends
12906         in a slash. Code taken from lib/link.c.
12907         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12908         Reported by Rainer Tammer.
12909
12910 2010-07-31  Bruno Haible  <bruno@clisp.org>
12911
12912         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12913         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12914         This disables an xlc optimization that was causing wrong test results.
12915         Reported by Rainer Tammer.
12916
12917 2010-07-31  Bruno Haible  <bruno@clisp.org>
12918
12919         iconv: Work around AIX 6.1..7.1 bug.
12920         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12921         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12922         cross-compiling, guess no on all versions of AIX.
12923         Reported by Rainer Tammer.
12924
12925 2010-07-31  Bruno Haible  <bruno@clisp.org>
12926
12927         readlink: Relax test a bit.
12928         * tests/test-readlink.h (test_readlink): Allow different errno value
12929         when readlink is called with a file name that ends in / and refers to
12930         a file.
12931         Suggested by Eric Blake.
12932         Reported by Rainer Tammer.
12933
12934 2010-07-31  Bruno Haible  <bruno@clisp.org>
12935
12936         copysign: Does not require -lm on glibc systems.
12937         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12938         gl_COMMON_DOUBLE_MATHFUNC.
12939         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12940
12941 2010-07-31  Bruno Haible  <bruno@clisp.org>
12942
12943         duplocale: Work around AIX 7.1 bug.
12944         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12945         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12946         * lib/duplocale.c (rpl_duplocale): Update comment.
12947         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12948         Reported by Rainer Tammer.
12949
12950 2010-07-30  Bruno Haible  <bruno@clisp.org>
12951
12952         dirfd: Avoid link error on AIX 7.1.
12953         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12954         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12955         exist, set REPLACE_DIRFD.
12956         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12957         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12958         * doc/posix-functions/dirfd.texi: Update.
12959         Reported by Rainer Tammer.
12960
12961 2010-07-30  Eric Blake  <eblake@redhat.com>
12962
12963         strtod: next round of AIX fixes
12964         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12965         exponent.
12966         * tests/test-strtod.c (main): Enhance tests.
12967         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12968         Reported by Rainer Tammer.
12969
12970         futimens: fix configure check
12971         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12972         Reported by Bruno Haible.
12973
12974 2010-07-30  Bruno Haible  <bruno@clisp.org>
12975
12976         getline: Update regarding AIX.
12977         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12978         Reported by Rainer Tammer.
12979
12980 2010-07-30  Bruno Haible  <bruno@clisp.org>
12981
12982         wcwidth: Drop replacement on AIX 7.
12983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12984         AIX 7.
12985         Reported by Rainer Tammer.
12986
12987 2010-07-30  Bruno Haible  <bruno@clisp.org>
12988
12989         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12990         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12991         a 'char *'.
12992         Reported by Rainer Tammer.
12993
12994 2010-07-30  Bruno Haible  <bruno@clisp.org>
12995
12996         unlink: Update regarding AIX.
12997         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12998         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12999         Reported by Rainer Tammer.
13000
13001 2010-07-30  Bruno Haible  <bruno@clisp.org>
13002
13003         symlink: Update regarding AIX.
13004         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13005         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13006         Reported by Rainer Tammer.
13007
13008 2010-07-30  Bruno Haible  <bruno@clisp.org>
13009
13010         strndup: Update regarding AIX.
13011         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13012         AIX 7.
13013         Reported by Rainer Tammer.
13014
13015 2010-07-30  Bruno Haible  <bruno@clisp.org>
13016
13017         stat: Update regarding AIX.
13018         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13019         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13020         Reported by Rainer Tammer.
13021
13022 2010-07-30  Bruno Haible  <bruno@clisp.org>
13023
13024         truncl: Fix autoconf test.
13025         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13026         whether truncl works.
13027         Reported by Rainer Tammer.
13028
13029 2010-07-30  Bruno Haible  <bruno@clisp.org>
13030
13031         round: Update regarding AIX.
13032         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13033         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13034         Reported by Rainer Tammer.
13035
13036 2010-07-30  Bruno Haible  <bruno@clisp.org>
13037
13038         rename: Update regarding AIX.
13039         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13040         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13041         Reported by Rainer Tammer.
13042
13043 2010-07-30  Bruno Haible  <bruno@clisp.org>
13044
13045         printf.m4: Update regarding AIX.
13046         * m4/printf.m4: Update comments regarding AIX.
13047         Reported by Rainer Tammer.
13048
13049 2010-07-30  Bruno Haible  <bruno@clisp.org>
13050
13051         iconv: Update regarding AIX.
13052         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
13053         AIX 7.
13054         Reported by Rainer Tammer.
13055
13056 2010-07-30  Bruno Haible  <bruno@clisp.org>
13057
13058         getopt: Update regarding AIX.
13059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13060         no on AIX.
13061         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13062         Reported by Rainer Tammer.
13063
13064 2010-07-30  Bruno Haible  <bruno@clisp.org>
13065
13066         ldexpl; Update regarding AIX.
13067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13068         on AIX 7.
13069         Reported by Rainer Tammer.
13070
13071 2010-07-30  Bruno Haible  <bruno@clisp.org>
13072
13073         frexpl: Update regarding AIX.
13074         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13075         on AIX 7.
13076         Reported by Rainer Tammer.
13077
13078 2010-07-30  Bruno Haible  <bruno@clisp.org>
13079
13080         open, fopen: Update regarding AIX.
13081         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13082         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13083         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13084         * doc/posix-functions/fopen.texi: Likewise.
13085         Reported by Rainer Tammer.
13086
13087 2010-07-30  Bruno Haible  <bruno@clisp.org>
13088
13089         chown: Update doc regarding AIX.
13090         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13091         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13092         Reported by Rainer Tammer.
13093
13094 2010-07-30  Eric Blake  <eblake@redhat.com>
13095
13096         strtod: fix bug in replacement function on AIX
13097         * lib/strtod.c (strtod): Special case broken "0x" parse in
13098         underlying strtod.
13099         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13100         * doc/posix-functions/strtod.texi (strtod): Likewise.
13101         Reported by Rainer Tammer.
13102
13103 2010-07-30  Bruno Haible  <bruno@clisp.org>
13104
13105         mbrlen: Fix cross-compilation guess for AIX.
13106         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13107         guess. Leftover from 2008-12-22.
13108
13109 2010-07-30  Bruno Haible  <bruno@clisp.org>
13110
13111         mbrtowc: Fix cross-compilation guess for AIX.
13112         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13113         guess. Leftover from 2008-12-21.
13114
13115 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13116
13117         init.sh: work around trap limitation of some shells
13118         * tests/init.sh (setup_): Move exit trap outside of shell function.
13119
13120 2010-07-29  Eric Blake  <eblake@redhat.com>
13121
13122         strtod: aid debugging
13123         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13124         understanding why strtod is rejected.
13125
13126 2010-07-28  Bruno Haible  <bruno@clisp.org>
13127
13128         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13129         * lib/unistr/u8-chr.c: Include <string.h>.
13130         * tests/unistr/test-u8-chr.c: Likewise.
13131         * tests/unistr/test-u16-chr.c: Likewise.
13132         * tests/unistr/test-u32-chr.c: Likewise.
13133         * tests/unistr/test-u8-strchr.c: Likewise.
13134         * tests/unistr/test-u16-strchr.c: Likewise.
13135         * tests/unistr/test-u32-strchr.c: Likewise.
13136         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13137         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13138         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13139         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13140
13141 2010-07-28  Bruno Haible  <bruno@clisp.org>
13142
13143         Use spaces for indentation, not tabs.
13144         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13145
13146 2010-07-27  Bruno Haible  <bruno@clisp.org>
13147
13148         mbspcasecmp: Fix function specification.
13149         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13150         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13151         Reported by Eric Blake <eblake@redhat.com>.
13152
13153 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13154
13155         timespec: use cast and not conditional, as truncation isn't possible
13156         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13157         instead of a conditional.  Comment about the situation in more detail.
13158         This undoes most of the 2009-10-29 patch.
13159
13160 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13161
13162         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13163         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13164         * lib/unistr/u8-strchr.c: Likewise.
13165         * modules/unistr/u8-chr: Depend on memchr.
13166
13167         unistr/u*-strchr: add tests
13168         * modules/unistr/u8-strchr-tests: New file.
13169         * modules/unistr/u16-strchr-tests: New file.
13170         * modules/unistr/u32-strchr-tests: New file.
13171         * tests/unistr/test-strchr.h: New file.
13172         * tests/unistr/test-u8-strchr.c: New file.
13173         * tests/unistr/test-u16-strchr.c: New file.
13174         * tests/unistr/test-u32-strchr.c: New file.
13175
13176         unistr/u*-chr: test multibyte sequences more
13177         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13178         test vector.
13179         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13180         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13181         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13182
13183         unistr/u*-chr: test multibyte sequences
13184         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13185
13186         unistr/u*-chr: prepare for multibyte tests
13187         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13188         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13189         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13190         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13191         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13192         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13193
13194 2010-07-18  Bruno Haible  <bruno@clisp.org>
13195
13196         unistr/u8-strchr: Optimize non-ASCII argument case.
13197         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13198         because the first byte often matches anyway.
13199         Reported by Pádraig Brady <P@draigbrady.com>.
13200
13201 2010-07-15  Karl Berry  <karl@gnu.org>
13202
13203         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13204
13205 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13206
13207         getcwd: on Solaris, work better if ancestors are inaccessible
13208         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13209         buffer and size, try again with a large buffer.  This works better
13210         on Solaris, since its getcwd succeeds even if the path to the root
13211         is inaccessible, and this is helpful in common cases such as .zfs
13212         hidden directories.  Problem reported by J Chapman Flack in
13213         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13214         Use system getcwd if it's declared, not merely if it's partly
13215         working; use the partly-working test only to avoid needless effort
13216         if the system getcwd fails.
13217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13218         comment that was already obsolete and is now even more obsolete.
13219         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13220         now might call strdup.
13221
13222 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13223
13224         pthread: Add enough so that coreutils/src/sort.c compiles.
13225         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13226         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13227         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13228         Include <sys/types.h>, in case it defines pthread_t.
13229         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13230         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13231         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13232         (pthread_rwlockattr_t, pthread_spinlock_t):
13233         New typedefs, if HAVE_PTHREAD_T is not defined.
13234         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13235         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13236         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13237         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13238         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13239         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13240         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13241         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13242         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13243         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13244         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13245         New macros.
13246         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13247         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13248         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13249         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13250         (pthread_spin_unlock): New dummy functions.
13251         (pthread_create): Return EAGAIN; don't set errno.
13252         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13253         require AC_C_INLINE.
13254         * modules/pthread (Depends-on): Add sched, time.
13255         (pthread.h): Use AM_V_GEN.
13256
13257 2010-07-13  Bruno Haible  <bruno@clisp.org>
13258
13259         striconveh: Don't malloc memory if the result buffer is sufficient.
13260         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13261         buffer if its size is sufficient.
13262         Reported by Ludovic Courtès <ludo@gnu.org>.
13263
13264 2010-07-13  Bruno Haible  <bruno@clisp.org>
13265
13266         strtod: Add safety check.
13267         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13268
13269 2010-07-12  Bruno Haible  <bruno@clisp.org>
13270
13271         Unify tests that set gl_cv_func_ldexpl_no_libm.
13272         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13273         gl_FUNC_LDEXPL.
13274         (gl_FUNC_LDEXPL): Invoke it.
13275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13276
13277 2010-07-12  Bruno Haible  <bruno@clisp.org>
13278
13279         Unify tests that set gl_cv_func_ldexp_no_libm.
13280         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13281         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13282         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13283         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13284         * modules/strtod (Files): Add m4/ldexp.m4.
13285
13286 2010-07-12  Bruno Haible  <bruno@clisp.org>
13287
13288         Unify tests that set gl_cv_func_frexpl_no_libm.
13289         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13290         gl_FUNC_FREXPL_NO_LIBM.
13291         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13292         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13293
13294 2010-07-12  Bruno Haible  <bruno@clisp.org>
13295
13296         Unify tests that set gl_cv_func_frexp_no_libm.
13297         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13298         gl_FUNC_FREXP_NO_LIBM.
13299         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13300         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13301
13302 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13303
13304         memcoll: clarify sizes versus lengths, document better, and tweak perf
13305         * lib/memcoll.c (strcoll_loop, memcoll0):
13306         Improve quality of descriptive comments.  Name variables
13307         consistently as to whether they are lengths (which do not include
13308         terminating null) versus sizes (which do).
13309         * lib/xmemcoll.c (xmemcoll0): Likewise.
13310         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13311         returned when s1size == 0; this is easier to compile and saves
13312         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13313
13314 2010-07-12  Bruno Haible  <bruno@clisp.org>
13315
13316         Tests for module '_Exit'.
13317         * modules/_Exit-tests: New file.
13318         * tests/test-_Exit.sh: New file.
13319         * tests/test-_Exit.c: New file.
13320
13321         New module '_Exit'.
13322         * lib/stdlib.in.h (__attribute__): New macro.
13323         (_Exit): New declaration.
13324         * lib/_Exit.c: New file.
13325         * m4/_Exit.m4: New file.
13326         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13327         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13328         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13329         * modules/_Exit: New file.
13330         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13331         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13332
13333 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13334
13335         strtod: make it more-accurate typically, and don't require libm
13336         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13337         Include limits.h.  Don't include string.h.
13338         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13339         (locale_isspace): New function, so that no casts are needed to
13340         check whether *s is a space.
13341         (ldexp): Provide an unused dummy if not available.
13342         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13343         (strtod): Use them.  This implementation prefers to use the
13344         underlying strtod if available, falling back on our own code
13345         only to fix known bugs.  This is more likely to produce an
13346         accurate result.  Also, it avoids the use of libm functions.
13347         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13348         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13349         was absent, but it caused a test failure with coreutils.
13350         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13351         with libm.
13352         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13353         * modules/strtod-tests (Makefile.am): Likewise.
13354
13355 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13356             Bruno Haible  <bruno@clisp.org>
13357
13358         unistr/u8-strchr: Optimize ASCII argument case.
13359         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13360
13361 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13362
13363         (x)memcoll: minor tweaks
13364         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13365         is after the type that it qualifies.
13366         (memcoll0): Likewise.
13367         * lib/memcoll.h (memcoll0): Likewise.
13368         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13369         * lib/xmemcoll.h (xmemcoll0): Likewise.
13370         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13371         differs from memcoll in that the NUL byte is part of the argument.
13372         Omit the abort-checks, as performance is a real issue here.  Plus,
13373         the checks were wrong anyway (an off-by-one error).  Omit local
13374         variable 'diff', as it's a bit clearer that way.
13375         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13376         no longer needed.
13377
13378 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13379
13380         (x)memcoll: speedup when input is known to be NUL delimited
13381         * lib/memcoll.c: Include stdlib.
13382         (memcoll0): New function.
13383         (strcoll_loop): New function, refactored for use in both memcoll
13384         and memcoll0.
13385         * lib/memcoll.h (memcoll0): Add prototype.
13386         * lib/xmemcoll.c (xmemcoll0): New function.
13387         (collate_error): New function, refactored for use in both xmemcoll
13388         and xmemcoll0.
13389         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13390         * m4/memcoll.m4: add inline invocation.
13391
13392 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13393
13394         * build-aux/bootstrap: Remove any local translations
13395         from the translation project synchronization directory,
13396         so that local only translations are not distributed.
13397
13398 2010-07-04  Bruno Haible  <bruno@clisp.org>
13399
13400         fsusage: Clarify which code applies to which platforms.
13401         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13402         platform.
13403         * lib/fsusage.c (get_fs_usage): Likewise.
13404
13405 2010-07-04  Bruno Haible  <bruno@clisp.org>
13406
13407         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13408         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13409         Reported by Martin Lambers <marlam@marlam.de>.
13410
13411 2010-07-04  Jim Meyering  <meyering@redhat.com>
13412
13413         hash: once again explicitly disallow insertion of NULL
13414         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13415         inserting a NULL pointer cannot work with these functions.
13416         Add a comment with details.
13417         This reverts part of the 2010-07-01 commit, 5bef1a35
13418         "hash: extend module to deal with non-pointer keys".
13419
13420 2010-07-01  Bruno Haible  <bruno@clisp.org>
13421
13422         stdbool: Update doc.
13423         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13424         Info from Christian Weisgerber <naddy@mips.inka.de>.
13425
13426 2010-07-01  Jim Meyering  <meyering@redhat.com>
13427
13428         hash: extend module to deal with non-pointer keys
13429         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13430         but that allows insertion of non-pointer entries.
13431         Do not disallow an ENTRY value of NULL.
13432         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13433         * lib/hash.h (hash_insert0): Declare.
13434
13435 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13436
13437         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13438         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13439         not present (i.e. with autoconf 2.59 and when using gettextize, not
13440         gnulib), require AC_GNU_SOURCE instead.
13441
13442 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13443
13444         idpriv-drop: Fix tests.
13445         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13446         not to the test-idpriv-droptemp program.
13447
13448 2010-06-29  Bruno Haible  <bruno@clisp.org>
13449
13450         string: Fix syntax error with g++ 2.96.
13451         * lib/string.in.h (__pure__): Remove definition.
13452         (_GL_ATTRIBUTE_PURE): New macro.
13453         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13454         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13455         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13456
13457 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13458
13459         unitypes: Fix bug introduced on 2010-05-18.
13460         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13461
13462 2010-06-22  Eric Blake  <eblake@redhat.com>
13463
13464         memmem: slight optimization
13465         * lib/str-two-way.h (critical_factorization): Update comments.
13466         Reduce work during factorization phase.
13467         Reported by Carlos Bueno <carlos@bueno.org>.
13468
13469 2010-06-21  Bruno Haible  <bruno@clisp.org>
13470
13471         Fix HAVE_CALLOC_POSIX misnomer.
13472         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13473         !HAVE_CALLOC_POSIX.
13474         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13475         HAVE_CALLOC_POSIX.
13476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13477         instead of HAVE_CALLOC_POSIX.
13478         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13479         HAVE_CALLOC_POSIX.
13480
13481         Use modern idiom for calloc() replacement.
13482         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13483         AC_FUNC_CALLOC.
13484         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13485         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13486         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13487         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13488         (gl_REPLACE_CALLOC): New macro.
13489
13490 2010-06-21  Bruno Haible  <bruno@clisp.org>
13491
13492         Fix HAVE_REALLOC_POSIX misnomer.
13493         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13494         !HAVE_REALLOC_POSIX.
13495         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13496         HAVE_REALLOC_POSIX.
13497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13498         instead of HAVE_REALLOC_POSIX.
13499         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13500         HAVE_REALLOC_POSIX.
13501
13502         Use modern idiom for realloc() replacement.
13503         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13504         AC_FUNC_REALLOC.
13505         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13506         Autoconf's AC_FUNC_REALLOC.
13507         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13508         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13509         (gl_REPLACE_REALLOC): New macro.
13510         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13511
13512 2010-06-21  Bruno Haible  <bruno@clisp.org>
13513
13514         Fix HAVE_MALLOC_POSIX misnomer.
13515         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13516         !HAVE_MALLOC_POSIX.
13517         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13518         HAVE_MALLOC_POSIX.
13519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13520         instead of HAVE_MALLOC_POSIX.
13521         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13522         HAVE_MALLOC_POSIX.
13523
13524         Use modern idiom for malloc() replacement.
13525         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13526         AC_FUNC_MALLOC.
13527         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13528         Autoconf's AC_FUNC_MALLOC.
13529         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13530         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13531         (gl_REPLACE_MALLOC): New macro.
13532         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13533
13534 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13535
13536         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13537         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13538         This macro takes 3 arguments, not 4.
13539
13540 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13541
13542         ipv6: fix detection under mingw
13543         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13544         in6_addr.
13545
13546 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13547
13548         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13549         that strtod() works when cross-compiling to a glibc version known
13550         to work.
13551
13552 2010-06-15  Bruno Haible  <bruno@clisp.org>
13553
13554         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13555
13556 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13557
13558         select: Correct timeout.
13559         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13560
13561 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13562
13563         git-version-gen: init shell var to avoid env var influence
13564         * build-aux/git-version-gen (v): Init shell var to empty.
13565
13566 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         priv-set: Don't assume that priv.h exists merely because getppriv does.
13569         See Jan Andersen's bug report about AIX 5L in
13570         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13571         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13572         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13573         * lib/priv-set.h: Likewise.
13574         * tests/test-priv-set.c: Likewise.
13575
13576 2010-06-13  Bruno Haible  <bruno@clisp.org>
13577
13578         relocatable: Make it easier to test whether to install wrappers.
13579         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13580         RELOCATABLE_VIA_WRAPPER.
13581
13582 2010-06-13  Bruno Haible  <bruno@clisp.org>
13583
13584         gnulib-tool: Display specified modules and dependencies differently.
13585         * gnulib-tool (func_show_module_list): New function.
13586         (func_import, func_create_testdir): Invoke it.
13587         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13588
13589 2010-06-13  Bruno Haible  <bruno@clisp.org>
13590
13591         gnulib-tool: Align code of func_import and func_create_testdir.
13592         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13593         specified_modules.
13594
13595 2010-06-12  Jim Meyering  <meyering@redhat.com>
13596
13597         test-inttostr: avoid spurious failure on Solaris 9
13598         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13599         to accept "%ju".  Reported by Bruno Haible.
13600
13601 2010-06-11  Jim Meyering  <meyering@redhat.com>
13602
13603         test-sys_socket: mark variables as used more readably
13604         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13605         as "used" explicitly via (void) statement casts.  This is more
13606         readable than using them in an artificial return expression.
13607         Suggestion from Bruno Haible.
13608
13609 2010-06-11  Bruno Haible  <bruno@clisp.org>
13610
13611         Avoid some more warnings from "gcc -Wwrite-strings".
13612         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13613         to 'const char *'.
13614         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13615         * tests/test-c-strcasestr.c (main): Likewise.
13616         * tests/test-mbscasestr1.c (main): Likewise.
13617         * tests/test-mbscasestr2.c (main): Likewise.
13618         * tests/test-memmem.c (main): Likewise.
13619         * tests/test-strstr.c (main): Likewise.
13620         * tests/test-strcasestr.c (main): Likewise.
13621
13622 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13623
13624         init.sh: change framework_failure_ to fail with status 99, not 1
13625         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13626         automake's parallel-tests rule that this is an unexpected failure,
13627         even if the test is listed in XFAIL_TESTS.
13628
13629 2010-06-11  Jim Meyering  <meyering@redhat.com>
13630
13631         test-inttostr: avoid warnings about 4-6KB literal strings
13632         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13633         Include "macros.h", for its definition of ASSERT.
13634         (CK): s/assert/ASSERT/
13635         * modules/inttostr-tests (Files): Add macros.h.
13636
13637         init.sh: don't use $ME_ or skip_ before they are defined
13638         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13639         their first uses.  Also hoist their companions: warn_, fail_,
13640         framework_failure_, $stderr_fileno.  Prompted by a patch from
13641         Stefano Lattarini.
13642
13643         test-sys_socket: avoid set-but-not-used warnings from gcc
13644         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13645         avoid warning about set-but-not-used variables.
13646
13647         test-xvasprintf: avoid 'const' discard warnings
13648         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13649         "const" when assigning from literal strings.
13650         (test_xasprintf): Add "void" in function argument list to placate
13651         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13652
13653         tests: avoid compilation warnings in argmatch and exclude tests...
13654         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13655         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13656         Since it always exits, declare with the "noreturn" attribute.
13657         * tests/test-argmatch.c: Likewise.
13658
13659         tests: avoid 'const' discard warnings in mbsstr tests
13660         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13661         * tests/test-mbsstr2.c (main): Likewise.
13662
13663         test-verify: avoid warning from gcc's -Wmissing-declarations
13664         * tests/test-verify.c (function): Declare to be static.
13665
13666         test-inttostr.c: include <string.h> for use of strcmp
13667         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13668
13669         test-linkat: avoid failed assertion on "other" architectures
13670         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13671         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13672         sparc: https://bugs.launchpad.net/bugs/591968
13673
13674 2010-06-11  Jim Meyering  <meyering@redhat.com>
13675
13676         printf.m4: avoid autoconf's "Expanded Before Required" warning
13677         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13678         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13679         autoconf warning.
13680
13681 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13682
13683         Replacement header templates are now named with ".in", not "_".
13684         * doc/gnulib-intro.texi: Correct.
13685
13686 2010-06-10  Jim Meyering  <meyering@redhat.com>
13687
13688         inttostr-tests: depend on snprintf, not snprintf-posix
13689         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13690         snprintf-posix, to avoid this aclocal failure:
13691           missing file gnulib-tests/vasnprintf.c
13692           configure.ac:45: error: expected source file, required through \
13693           AC_LIBSOURCES, not found
13694
13695 2010-06-10  Jim Meyering  <meyering@redhat.com>
13696
13697         inttostr: add a new function, inttostr, and tests
13698         The namesake function was not available.  The existence of the
13699         template file, inttostr.c makes its addition nontrivial.
13700         * lib/anytostr.c: Rename from inttostr.c.
13701         (anytostr): Rename from inttostr.
13702         * lib/inttostr.c: New file.
13703         * modules/inttostr (Files): Add anytostr.c.
13704         (Makefile.am): Set lib_SOURCES instead of ...
13705         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13706         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13707         * lib/offtostr.c: Likewise.
13708         * lib/uinttostr.c: Likewise.
13709         * lib/umaxtostr.c: Likewise.
13710         * modules/inttostr-tests: New file.
13711         * tests/test-inttostr.c: New file.  Test these functions.
13712
13713 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13714             Bruno Haible  <bruno@clisp.org>
13715
13716         Add "Extending Gnulib" chapter to manual.
13717         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13718         chapter.
13719         (Extending Gnulib): New chapter.
13720         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13721         chapter.
13722
13723 2010-06-09  Bruno Haible  <bruno@clisp.org>
13724
13725         Avoid relocwrapper link errors due to gnulib replacement functions.
13726         * lib/areadlink.c: Use the system's malloc, realloc functions.
13727         (areadlink): Set errno to ENOMEM explicitly.
13728         * modules/areadlink (Depends-on): Remove malloc-posix.
13729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13730
13731 2010-06-09  Bruno Haible  <bruno@clisp.org>
13732
13733         Avoid relocwrapper link errors due to gnulib replacement functions.
13734         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13735         * lib/malloca.c: Likewise.
13736         * lib/relocatable.c: Likewise.
13737         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13738         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13739         * lib/setenv.c: Use the system's malloc, realloc functions.
13740         * lib/strerror.c: Use the system's sprintf function.
13741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13742
13743 2010-06-04  Bruno Haible  <bruno@clisp.org>
13744
13745         Prefer documented low-level autoconf macro names.
13746         * m4/lib-link.m4: Use m4_translit instead of translit.
13747         * m4/environ.m4: Likewise.
13748         * m4/mathfunc.m4: Likewise.
13749         * m4/onceonly.m4: Likewise.
13750         * m4/stdint.m4: Likewise.
13751         Suggested by Eric Blake.
13752
13753 2010-06-04  Martin Lambers  <marlam@marlam.de>
13754             Bruno Haible  <bruno@clisp.org>
13755
13756         havelib: Allow library names with '+' characters.
13757         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13758         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13759
13760 2010-06-09  Bruno Haible  <bruno@clisp.org>
13761
13762         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13763         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13764         realloc failed.
13765
13766 2010-06-08  Peter Simons  <simons@cryp.to>
13767
13768         maint.mk: make the news-check rule more configurable
13769         * top/maint.mk (news-check-lines-spec): New variable.
13770         (news-check): Use "sed -n 1,10p" in place of "head".
13771
13772 2010-06-07  Jim Meyering  <meyering@redhat.com>
13773
13774         do-release-commit-and-tag: fix typo in --help
13775         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13776
13777         regex: avoid new dead-code warning with gcc-4.6.0
13778         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13779         if-block containing a while-loop.  It's been unused for at least
13780         5 years.
13781
13782 2010-06-05  Bruno Haible  <bruno@clisp.org>
13783
13784         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13785         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13786
13787 2010-06-04  Bruno Haible  <bruno@clisp.org>
13788
13789         Update to GNU gettext 0.18.1.
13790         * modules/gettext (configure.ac): Require gettext infrastructure from
13791         version 0.18.1.
13792
13793 2010-06-03  Bruno Haible  <bruno@clisp.org>
13794
13795         Don't use AC_LIBOBJ with file names in subdirectories.
13796         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13797         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13798         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13799         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13800         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13801         gl_LIBUNISTRING_LIBSOURCE.
13802         (Makefile.am): Augment lib_SOURCES here, conditionally.
13803         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13804
13805 2010-06-03  Bruno Haible  <bruno@clisp.org>
13806
13807         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13808         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13809         expansion does not end with a newline.
13810         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13811         unnecessary newline.
13812
13813 2010-06-03  Bruno Haible  <bruno@clisp.org>
13814
13815         Reduce dependencies.
13816         * tests/test-quotearg.h: New file, extracted from
13817         tests/test-quotearg.c.
13818         * tests/test-quotearg-simple.c: New file, extracted from
13819         tests/test-quotearg.c.
13820         * tests/test-quotearg.c: Don't include <ctype.h>.
13821         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13822         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13823         use_quote_double_quotes, use_quotearg_colon): Moved to
13824         tests/test-quotearg.h.
13825         (results_g, flag_results, custom_quotes, custom_results): Moved
13826         to tests/test-quotearg-simple.c.
13827         (main): Moved the part that does not depend on gettext to
13828         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13829         performed.
13830         * modules/quotearg-simple: New file.
13831         * modules/quotearg-simple-tests: New file.
13832         * modules/quotearg (Depends-on): Add quotearg-simple.
13833         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13834         (Files): Add tests/test-quotearg.h.
13835         Reported by Paolo Bonzini.
13836
13837 2010-06-03  Bruno Haible  <bruno@clisp.org>
13838
13839         Reduce dependencies.
13840         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13841
13842 2010-06-03  Bruno Haible  <bruno@clisp.org>
13843
13844         time: Undefine more broken macros.
13845         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13846         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13847         Reported by Eric Blake.
13848
13849 2010-06-03  Bruno Haible  <bruno@clisp.org>
13850
13851         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13852         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13853         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13854         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13855         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13856         Reported by Ludovic Courtès <ludo@gnu.org>.
13857
13858 2010-06-02  Eric Blake  <eblake@redhat.com>
13859
13860         time: work with mingw + pthreads-win32 library
13861         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13862         if timespec is defined only in pthread.h.
13863         * modules/time (Makefile.am): Substitute it.
13864         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13865         <pthread.h>, when needed.
13866         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13867         from the library.
13868
13869 2010-05-31  Bruno Haible  <bruno@clisp.org>
13870
13871         Avoid expanding two macros in the wrong order.
13872         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13873         gl_LIBUNISTRING if it is defined.
13874         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13875         autoconf >= 2.64.
13876         Reported by Ludovic Courtès <ludo@gnu.org>.
13877
13878 2010-05-27  Jim Meyering  <meyering@redhat.com>
13879
13880         maint.mk: also prohibit "#undef" of always-defined symbols
13881         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13882         Allow more than one space before the symbol name.
13883         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13884         the regexp uses alternation.
13885
13886 2010-05-26  Eric Blake  <eblake@redhat.com>
13887
13888         maint.mk: avoid echo -e
13889         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13890         Convert all uses of echo -* to printf.
13891         Reported by Matthias Bolte.
13892
13893 2010-05-25  Bruno Haible  <bruno@clisp.org>
13894
13895         Update to GNU gettext 0.18, part 2.
13896         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13897         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13898
13899 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13900
13901         Add missing include in test-pwrite.c.
13902         * tests/test-pwrite.c: Include string.h, for strcmp.
13903
13904 2010-05-24  Bruno Haible  <bruno@clisp.org>
13905
13906         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13907
13908 2010-05-24  Bruno Haible  <bruno@clisp.org>
13909
13910         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13911         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13912         iconveh_error argument.
13913         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13914         U_STRCONV_TO_LOCALE.
13915         * lib/unistr/u16-strcoll.c: Likewise.
13916         * lib/unistr/u32-strcoll.c: Likewise.
13917         * modules/unistr/u8-strcoll (Depends-on): Add
13918         uniconv/u8-strconv-to-enc, localcharset. Remove
13919         uniconv/u8-strconv-to-locale.
13920         (configure.ac): Bump version number.
13921         * modules/unistr/u16-strcoll (Depends-on): Add
13922         uniconv/u16-strconv-to-enc, localcharset. Remove
13923         uniconv/u16-strconv-to-locale.
13924         (configure.ac): Bump version number.
13925         * modules/unistr/u32-strcoll (Depends-on): Add
13926         uniconv/u32-strconv-to-enc, localcharset. Remove
13927         uniconv/u32-strconv-to-locale.
13928         (configure.ac): Bump version number.
13929
13930 2010-05-24  Bruno Haible  <bruno@clisp.org>
13931
13932         Avoid a test failure on NetBSD 5.0.
13933         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13934         an iconv() bug.
13935
13936 2010-05-24  Bruno Haible  <bruno@clisp.org>
13937
13938         Adjust #include directive style.
13939         * modules/regex (Includes): Recommend to write <regex.h>.
13940
13941 2010-05-24  Bruno Haible  <bruno@clisp.org>
13942
13943         regex: Don't require alloca.
13944         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13945         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13946         only inside if (0).
13947
13948 2010-05-23  Jim Meyering  <meyering@redhat.com>
13949
13950         test-renameat.c: include <sys/stat.h>
13951         * tests/test-renameat.c: Include <sys/stat.h>; required for
13952         definition of S_IS* macros.
13953
13954 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13955
13956         Update maintainer documentation for 'relocatable-prog' module.
13957         * doc/relocatable-maint.texi: Update.
13958         Comments by Bruno Haible.
13959
13960 2010-05-23  Bruno Haible  <bruno@clisp.org>
13961
13962         git-merge-changelog: Enable --split-merged-entry by default.
13963         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13964         (usage): Don't mention this option any more.
13965         Reported by Ralf Wildenhues.
13966
13967 2010-05-23  Jim Meyering  <meyering@redhat.com>
13968
13969         test-pwrite: do not leave behind a test file named "out"
13970         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13971         The trivial-looking use of init.sh is really necessary.
13972         It ensures that the temporary file, "out", is created in
13973         a temporary directory, and removed upon termination.
13974         * tests/test-pwrite.sh: Re-add file.
13975         * modules/pwrite-tests: Reference it.
13976
13977 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13978
13979         Fix output redirection buglet in init.sh.
13980         * tests/init.sh: Fix redirection of stderr.
13981
13982 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13983
13984         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13985
13986 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13987
13988         * modules/valgrind-tests: New file.
13989         * m4/valgrind-tests.m4: New file.
13990         * doc/valgrind-tests.texi: New file.
13991         * doc/gnulib.texi (Running self-tests under valgrind): New
13992         section.
13993
13994 2010-05-19  Bruno Haible  <bruno@clisp.org>
13995
13996         Clean up dead code in recent commit.
13997         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13998         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13999         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14000         Suggested by Paolo Bonzini.
14001
14002 2010-05-19  Bruno Haible  <bruno@clisp.org>
14003
14004         Avoid valgrind error reports from libunistring.
14005         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14006         * modules/libunistring (Files): Add it.
14007         * modules/libunistring-optional (Files): Likewise.
14008
14009 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14010             Bruno Haible  <bruno@clisp.org>
14011
14012         New module 'libunistring-optional'.
14013         * modules/libunistring-optional: New file.
14014         * m4/libunistring-base.m4: New file.
14015         * m4/libunistring-optional.m4: New file.
14016         * lib/unicase.in.h: Renamed from lib/unicase.h.
14017         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14018         * lib/unictype.in.h: Renamed from lib/unictype.h.
14019         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14020         * lib/uniname.in.h: Renamed from lib/uniname.h.
14021         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14022         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14023         * lib/unistr.in.h: Renamed from lib/unistr.h.
14024         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14025         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14026         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14027         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14028         gl_LIBUNISTRING. If the library was found, determine the installed
14029         version and set LIBUNISTRING_VERSION.
14030         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14031         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14032         handle a configuration option --with-included-libunistring.
14033         * modules/libunistring (Files): Add m4/absolute-header.m4.
14034         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14035         Add m4/libunistring-base.m4.
14036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14037         (Makefile.am): Build unicase.h from unicase.in.h.
14038         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14039         Add m4/libunistring-base.m4.
14040         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14041         (Makefile.am): Build uniconv.h from uniconv.in.h.
14042         * modules/unictype/base (Files): Use unictype.in.h instead of
14043         unictype.h. Add m4/libunistring-base.m4.
14044         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14045         (Makefile.am): Build unictype.h from unictype.in.h.
14046         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
14047         Add m4/libunistring-base.m4.
14048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14049         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
14050         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
14051         Add m4/libunistring-base.m4.
14052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14053         (Makefile.am): Build uniname.h from uniname.in.h.
14054         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14055         Add m4/libunistring-base.m4.
14056         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14057         (Makefile.am): Build uninorm.h from uninorm.in.h.
14058         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14059         unistdio.h. Add m4/libunistring-base.m4.
14060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14061         (Makefile.am): Build unistdio.h from unistdio.in.h.
14062         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14063         Add m4/libunistring-base.m4.
14064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14065         (Makefile.am): Build unistr.h from unistr.in.h.
14066         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14067         Add m4/libunistring-base.m4.
14068         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14069         (Makefile.am): Build unitypes.h from unitypes.in.h.
14070         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14071         Add m4/libunistring-base.m4.
14072         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14073         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14074         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14075         uniwidth.h. Add m4/libunistring-base.m4.
14076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14077         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14078         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14079         instead of augmenting lib_SOURCES.
14080         * modules/unicase/empty-suffix-context: Likewise.
14081         * modules/unicase/locale-language: Likewise.
14082         * modules/unicase/tolower: Likewise.
14083         * modules/unicase/totitle: Likewise.
14084         * modules/unicase/toupper: Likewise.
14085         * modules/unicase/u8-casecmp: Likewise.
14086         * modules/unicase/u8-casecoll: Likewise.
14087         * modules/unicase/u8-casefold: Likewise.
14088         * modules/unicase/u8-casexfrm: Likewise.
14089         * modules/unicase/u8-ct-casefold: Likewise.
14090         * modules/unicase/u8-ct-tolower: Likewise.
14091         * modules/unicase/u8-ct-totitle: Likewise.
14092         * modules/unicase/u8-ct-toupper: Likewise.
14093         * modules/unicase/u8-is-cased: Likewise.
14094         * modules/unicase/u8-is-casefolded: Likewise.
14095         * modules/unicase/u8-is-lowercase: Likewise.
14096         * modules/unicase/u8-is-titlecase: Likewise.
14097         * modules/unicase/u8-is-uppercase: Likewise.
14098         * modules/unicase/u8-prefix-context: Likewise.
14099         * modules/unicase/u8-suffix-context: Likewise.
14100         * modules/unicase/u8-tolower: Likewise.
14101         * modules/unicase/u8-totitle: Likewise.
14102         * modules/unicase/u8-toupper: Likewise.
14103         * modules/unicase/u16-casecmp: Likewise.
14104         * modules/unicase/u16-casecoll: Likewise.
14105         * modules/unicase/u16-casefold: Likewise.
14106         * modules/unicase/u16-casexfrm: Likewise.
14107         * modules/unicase/u16-ct-casefold: Likewise.
14108         * modules/unicase/u16-ct-tolower: Likewise.
14109         * modules/unicase/u16-ct-totitle: Likewise.
14110         * modules/unicase/u16-ct-toupper: Likewise.
14111         * modules/unicase/u16-is-cased: Likewise.
14112         * modules/unicase/u16-is-casefolded: Likewise.
14113         * modules/unicase/u16-is-lowercase: Likewise.
14114         * modules/unicase/u16-is-titlecase: Likewise.
14115         * modules/unicase/u16-is-uppercase: Likewise.
14116         * modules/unicase/u16-prefix-context: Likewise.
14117         * modules/unicase/u16-suffix-context: Likewise.
14118         * modules/unicase/u16-tolower: Likewise.
14119         * modules/unicase/u16-totitle: Likewise.
14120         * modules/unicase/u16-toupper: Likewise.
14121         * modules/unicase/u32-casecmp: Likewise.
14122         * modules/unicase/u32-casecoll: Likewise.
14123         * modules/unicase/u32-casefold: Likewise.
14124         * modules/unicase/u32-casexfrm: Likewise.
14125         * modules/unicase/u32-ct-casefold: Likewise.
14126         * modules/unicase/u32-ct-tolower: Likewise.
14127         * modules/unicase/u32-ct-totitle: Likewise.
14128         * modules/unicase/u32-ct-toupper: Likewise.
14129         * modules/unicase/u32-is-cased: Likewise.
14130         * modules/unicase/u32-is-casefolded: Likewise.
14131         * modules/unicase/u32-is-lowercase: Likewise.
14132         * modules/unicase/u32-is-titlecase: Likewise.
14133         * modules/unicase/u32-is-uppercase: Likewise.
14134         * modules/unicase/u32-prefix-context: Likewise.
14135         * modules/unicase/u32-suffix-context: Likewise.
14136         * modules/unicase/u32-tolower: Likewise.
14137         * modules/unicase/u32-totitle: Likewise.
14138         * modules/unicase/u32-toupper: Likewise.
14139         * modules/unicase/ulc-casecmp: Likewise.
14140         * modules/unicase/ulc-casecoll: Likewise.
14141         * modules/unicase/ulc-casexfrm: Likewise.
14142         * modules/uniconv/u8-conv-from-enc: Likewise.
14143         * modules/uniconv/u8-conv-to-enc: Likewise.
14144         * modules/uniconv/u8-strconv-from-enc: Likewise.
14145         * modules/uniconv/u8-strconv-from-locale: Likewise.
14146         * modules/uniconv/u8-strconv-to-enc: Likewise.
14147         * modules/uniconv/u8-strconv-to-locale: Likewise.
14148         * modules/uniconv/u16-conv-from-enc: Likewise.
14149         * modules/uniconv/u16-conv-to-enc: Likewise.
14150         * modules/uniconv/u16-strconv-from-enc: Likewise.
14151         * modules/uniconv/u16-strconv-from-locale: Likewise.
14152         * modules/uniconv/u16-strconv-to-enc: Likewise.
14153         * modules/uniconv/u16-strconv-to-locale: Likewise.
14154         * modules/uniconv/u32-conv-from-enc: Likewise.
14155         * modules/uniconv/u32-conv-to-enc: Likewise.
14156         * modules/uniconv/u32-strconv-from-enc: Likewise.
14157         * modules/uniconv/u32-strconv-from-locale: Likewise.
14158         * modules/uniconv/u32-strconv-to-enc: Likewise.
14159         * modules/uniconv/u32-strconv-to-locale: Likewise.
14160         * modules/unictype/bidicategory-byname: Likewise.
14161         * modules/unictype/bidicategory-name: Likewise.
14162         * modules/unictype/bidicategory-of: Likewise.
14163         * modules/unictype/bidicategory-test: Likewise.
14164         * modules/unictype/block-list: Likewise.
14165         * modules/unictype/block-test: Likewise.
14166         * modules/unictype/category-C: Likewise.
14167         * modules/unictype/category-Cc: Likewise.
14168         * modules/unictype/category-Cf: Likewise.
14169         * modules/unictype/category-Cn: Likewise.
14170         * modules/unictype/category-Co: Likewise.
14171         * modules/unictype/category-Cs: Likewise.
14172         * modules/unictype/category-L: Likewise.
14173         * modules/unictype/category-Ll: Likewise.
14174         * modules/unictype/category-Lm: Likewise.
14175         * modules/unictype/category-Lo: Likewise.
14176         * modules/unictype/category-Lt: Likewise.
14177         * modules/unictype/category-Lu: Likewise.
14178         * modules/unictype/category-M: Likewise.
14179         * modules/unictype/category-Mc: Likewise.
14180         * modules/unictype/category-Me: Likewise.
14181         * modules/unictype/category-Mn: Likewise.
14182         * modules/unictype/category-N: Likewise.
14183         * modules/unictype/category-Nd: Likewise.
14184         * modules/unictype/category-Nl: Likewise.
14185         * modules/unictype/category-No: Likewise.
14186         * modules/unictype/category-P: Likewise.
14187         * modules/unictype/category-Pc: Likewise.
14188         * modules/unictype/category-Pd: Likewise.
14189         * modules/unictype/category-Pe: Likewise.
14190         * modules/unictype/category-Pf: Likewise.
14191         * modules/unictype/category-Pi: Likewise.
14192         * modules/unictype/category-Po: Likewise.
14193         * modules/unictype/category-Ps: Likewise.
14194         * modules/unictype/category-S: Likewise.
14195         * modules/unictype/category-Sc: Likewise.
14196         * modules/unictype/category-Sk: Likewise.
14197         * modules/unictype/category-Sm: Likewise.
14198         * modules/unictype/category-So: Likewise.
14199         * modules/unictype/category-Z: Likewise.
14200         * modules/unictype/category-Zl: Likewise.
14201         * modules/unictype/category-Zp: Likewise.
14202         * modules/unictype/category-Zs: Likewise.
14203         * modules/unictype/category-and: Likewise.
14204         * modules/unictype/category-and-not: Likewise.
14205         * modules/unictype/category-byname: Likewise.
14206         * modules/unictype/category-name: Likewise.
14207         * modules/unictype/category-none: Likewise.
14208         * modules/unictype/category-of: Likewise.
14209         * modules/unictype/category-or: Likewise.
14210         * modules/unictype/category-test: Likewise.
14211         * modules/unictype/combining-class: Likewise.
14212         * modules/unictype/ctype-alnum: Likewise.
14213         * modules/unictype/ctype-alpha: Likewise.
14214         * modules/unictype/ctype-blank: Likewise.
14215         * modules/unictype/ctype-cntrl: Likewise.
14216         * modules/unictype/ctype-digit: Likewise.
14217         * modules/unictype/ctype-graph: Likewise.
14218         * modules/unictype/ctype-lower: Likewise.
14219         * modules/unictype/ctype-print: Likewise.
14220         * modules/unictype/ctype-punct: Likewise.
14221         * modules/unictype/ctype-space: Likewise.
14222         * modules/unictype/ctype-upper: Likewise.
14223         * modules/unictype/ctype-xdigit: Likewise.
14224         * modules/unictype/decimal-digit: Likewise.
14225         * modules/unictype/digit: Likewise.
14226         * modules/unictype/mirror: Likewise.
14227         * modules/unictype/numeric: Likewise.
14228         * modules/unictype/property-alphabetic: Likewise.
14229         * modules/unictype/property-ascii-hex-digit: Likewise.
14230         * modules/unictype/property-bidi-arabic-digit: Likewise.
14231         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14232         * modules/unictype/property-bidi-block-separator: Likewise.
14233         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14234         * modules/unictype/property-bidi-common-separator: Likewise.
14235         * modules/unictype/property-bidi-control: Likewise.
14236         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14237         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14238         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14239         * modules/unictype/property-bidi-european-digit: Likewise.
14240         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14241         * modules/unictype/property-bidi-left-to-right: Likewise.
14242         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14243         * modules/unictype/property-bidi-other-neutral: Likewise.
14244         * modules/unictype/property-bidi-pdf: Likewise.
14245         * modules/unictype/property-bidi-segment-separator: Likewise.
14246         * modules/unictype/property-bidi-whitespace: Likewise.
14247         * modules/unictype/property-byname: Likewise.
14248         * modules/unictype/property-combining: Likewise.
14249         * modules/unictype/property-composite: Likewise.
14250         * modules/unictype/property-currency-symbol: Likewise.
14251         * modules/unictype/property-dash: Likewise.
14252         * modules/unictype/property-decimal-digit: Likewise.
14253         * modules/unictype/property-default-ignorable-code-point: Likewise.
14254         * modules/unictype/property-deprecated: Likewise.
14255         * modules/unictype/property-diacritic: Likewise.
14256         * modules/unictype/property-extender: Likewise.
14257         * modules/unictype/property-format-control: Likewise.
14258         * modules/unictype/property-grapheme-base: Likewise.
14259         * modules/unictype/property-grapheme-extend: Likewise.
14260         * modules/unictype/property-grapheme-link: Likewise.
14261         * modules/unictype/property-hex-digit: Likewise.
14262         * modules/unictype/property-hyphen: Likewise.
14263         * modules/unictype/property-id-continue: Likewise.
14264         * modules/unictype/property-id-start: Likewise.
14265         * modules/unictype/property-ideographic: Likewise.
14266         * modules/unictype/property-ids-binary-operator: Likewise.
14267         * modules/unictype/property-ids-trinary-operator: Likewise.
14268         * modules/unictype/property-ignorable-control: Likewise.
14269         * modules/unictype/property-iso-control: Likewise.
14270         * modules/unictype/property-join-control: Likewise.
14271         * modules/unictype/property-left-of-pair: Likewise.
14272         * modules/unictype/property-line-separator: Likewise.
14273         * modules/unictype/property-logical-order-exception: Likewise.
14274         * modules/unictype/property-lowercase: Likewise.
14275         * modules/unictype/property-math: Likewise.
14276         * modules/unictype/property-non-break: Likewise.
14277         * modules/unictype/property-not-a-character: Likewise.
14278         * modules/unictype/property-numeric: Likewise.
14279         * modules/unictype/property-other-alphabetic: Likewise.
14280         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14281         * modules/unictype/property-other-grapheme-extend: Likewise.
14282         * modules/unictype/property-other-id-continue: Likewise.
14283         * modules/unictype/property-other-id-start: Likewise.
14284         * modules/unictype/property-other-lowercase: Likewise.
14285         * modules/unictype/property-other-math: Likewise.
14286         * modules/unictype/property-other-uppercase: Likewise.
14287         * modules/unictype/property-paired-punctuation: Likewise.
14288         * modules/unictype/property-paragraph-separator: Likewise.
14289         * modules/unictype/property-pattern-syntax: Likewise.
14290         * modules/unictype/property-pattern-white-space: Likewise.
14291         * modules/unictype/property-private-use: Likewise.
14292         * modules/unictype/property-punctuation: Likewise.
14293         * modules/unictype/property-quotation-mark: Likewise.
14294         * modules/unictype/property-radical: Likewise.
14295         * modules/unictype/property-sentence-terminal: Likewise.
14296         * modules/unictype/property-soft-dotted: Likewise.
14297         * modules/unictype/property-space: Likewise.
14298         * modules/unictype/property-terminal-punctuation: Likewise.
14299         * modules/unictype/property-test: Likewise.
14300         * modules/unictype/property-titlecase: Likewise.
14301         * modules/unictype/property-unassigned-code-value: Likewise.
14302         * modules/unictype/property-unified-ideograph: Likewise.
14303         * modules/unictype/property-uppercase: Likewise.
14304         * modules/unictype/property-variation-selector: Likewise.
14305         * modules/unictype/property-white-space: Likewise.
14306         * modules/unictype/property-xid-continue: Likewise.
14307         * modules/unictype/property-xid-start: Likewise.
14308         * modules/unictype/property-zero-width: Likewise.
14309         * modules/unictype/scripts: Likewise.
14310         * modules/unictype/syntax-c-ident: Likewise.
14311         * modules/unictype/syntax-c-whitespace: Likewise.
14312         * modules/unictype/syntax-java-ident: Likewise.
14313         * modules/unictype/syntax-java-whitespace: Likewise.
14314         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14315         * modules/unilbrk/u8-width-linebreaks: Likewise.
14316         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14317         * modules/unilbrk/u16-width-linebreaks: Likewise.
14318         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14319         * modules/unilbrk/u32-width-linebreaks: Likewise.
14320         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14321         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14322         * modules/uniname/uniname: Likewise.
14323         * modules/uninorm/canonical-decomposition: Likewise.
14324         * modules/uninorm/composition: Likewise.
14325         * modules/uninorm/decomposing-form: Likewise.
14326         * modules/uninorm/decomposition: Likewise.
14327         * modules/uninorm/filter: Likewise.
14328         * modules/uninorm/nfc: Likewise.
14329         * modules/uninorm/nfd: Likewise.
14330         * modules/uninorm/nfkc: Likewise.
14331         * modules/uninorm/nfkd: Likewise.
14332         * modules/uninorm/u8-normalize: Likewise.
14333         * modules/uninorm/u8-normcmp: Likewise.
14334         * modules/uninorm/u8-normcoll: Likewise.
14335         * modules/uninorm/u8-normxfrm: Likewise.
14336         * modules/uninorm/u16-normalize: Likewise.
14337         * modules/uninorm/u16-normcmp: Likewise.
14338         * modules/uninorm/u16-normcoll: Likewise.
14339         * modules/uninorm/u16-normxfrm: Likewise.
14340         * modules/uninorm/u32-normalize: Likewise.
14341         * modules/uninorm/u32-normcmp: Likewise.
14342         * modules/uninorm/u32-normcoll: Likewise.
14343         * modules/uninorm/u32-normxfrm: Likewise.
14344         * modules/unistdio/u8-asnprintf: Likewise.
14345         * modules/unistdio/u8-asprintf: Likewise.
14346         * modules/unistdio/u8-snprintf: Likewise.
14347         * modules/unistdio/u8-sprintf: Likewise.
14348         * modules/unistdio/u8-u8-asnprintf: Likewise.
14349         * modules/unistdio/u8-u8-asprintf: Likewise.
14350         * modules/unistdio/u8-u8-snprintf: Likewise.
14351         * modules/unistdio/u8-u8-sprintf: Likewise.
14352         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14353         * modules/unistdio/u8-u8-vasprintf: Likewise.
14354         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14355         * modules/unistdio/u8-u8-vsprintf: Likewise.
14356         * modules/unistdio/u8-vasnprintf: Likewise.
14357         * modules/unistdio/u8-vasprintf: Likewise.
14358         * modules/unistdio/u8-vsnprintf: Likewise.
14359         * modules/unistdio/u8-vsprintf: Likewise.
14360         * modules/unistdio/u16-asnprintf: Likewise.
14361         * modules/unistdio/u16-asprintf: Likewise.
14362         * modules/unistdio/u16-snprintf: Likewise.
14363         * modules/unistdio/u16-sprintf: Likewise.
14364         * modules/unistdio/u16-u16-asnprintf: Likewise.
14365         * modules/unistdio/u16-u16-asprintf: Likewise.
14366         * modules/unistdio/u16-u16-snprintf: Likewise.
14367         * modules/unistdio/u16-u16-sprintf: Likewise.
14368         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14369         * modules/unistdio/u16-u16-vasprintf: Likewise.
14370         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14371         * modules/unistdio/u16-u16-vsprintf: Likewise.
14372         * modules/unistdio/u16-vasnprintf: Likewise.
14373         * modules/unistdio/u16-vasprintf: Likewise.
14374         * modules/unistdio/u16-vsnprintf: Likewise.
14375         * modules/unistdio/u16-vsprintf: Likewise.
14376         * modules/unistdio/u32-asnprintf: Likewise.
14377         * modules/unistdio/u32-asprintf: Likewise.
14378         * modules/unistdio/u32-snprintf: Likewise.
14379         * modules/unistdio/u32-sprintf: Likewise.
14380         * modules/unistdio/u32-u32-asnprintf: Likewise.
14381         * modules/unistdio/u32-u32-asprintf: Likewise.
14382         * modules/unistdio/u32-u32-snprintf: Likewise.
14383         * modules/unistdio/u32-u32-sprintf: Likewise.
14384         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14385         * modules/unistdio/u32-u32-vasprintf: Likewise.
14386         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14387         * modules/unistdio/u32-u32-vsprintf: Likewise.
14388         * modules/unistdio/u32-vasnprintf: Likewise.
14389         * modules/unistdio/u32-vasprintf: Likewise.
14390         * modules/unistdio/u32-vsnprintf: Likewise.
14391         * modules/unistdio/u32-vsprintf: Likewise.
14392         * modules/unistdio/ulc-asnprintf: Likewise.
14393         * modules/unistdio/ulc-asprintf: Likewise.
14394         * modules/unistdio/ulc-fprintf: Likewise.
14395         * modules/unistdio/ulc-snprintf: Likewise.
14396         * modules/unistdio/ulc-sprintf: Likewise.
14397         * modules/unistdio/ulc-vasnprintf: Likewise.
14398         * modules/unistdio/ulc-vasprintf: Likewise.
14399         * modules/unistdio/ulc-vfprintf: Likewise.
14400         * modules/unistdio/ulc-vsnprintf: Likewise.
14401         * modules/unistdio/ulc-vsprintf: Likewise.
14402         * modules/unistr/u8-check: Likewise.
14403         * modules/unistr/u8-chr: Likewise.
14404         * modules/unistr/u8-cmp: Likewise.
14405         * modules/unistr/u8-cmp2: Likewise.
14406         * modules/unistr/u8-cpy: Likewise.
14407         * modules/unistr/u8-cpy-alloc: Likewise.
14408         * modules/unistr/u8-endswith: Likewise.
14409         * modules/unistr/u8-mblen: Likewise.
14410         * modules/unistr/u8-mbsnlen: Likewise.
14411         * modules/unistr/u8-mbtouc: Likewise.
14412         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14413         * modules/unistr/u8-mbtoucr: Likewise.
14414         * modules/unistr/u8-move: Likewise.
14415         * modules/unistr/u8-next: Likewise.
14416         * modules/unistr/u8-prev: Likewise.
14417         * modules/unistr/u8-set: Likewise.
14418         * modules/unistr/u8-startswith: Likewise.
14419         * modules/unistr/u8-stpcpy: Likewise.
14420         * modules/unistr/u8-stpncpy: Likewise.
14421         * modules/unistr/u8-strcat: Likewise.
14422         * modules/unistr/u8-strchr: Likewise.
14423         * modules/unistr/u8-strcmp: Likewise.
14424         * modules/unistr/u8-strcoll: Likewise.
14425         * modules/unistr/u8-strcpy: Likewise.
14426         * modules/unistr/u8-strcspn: Likewise.
14427         * modules/unistr/u8-strdup: Likewise.
14428         * modules/unistr/u8-strlen: Likewise.
14429         * modules/unistr/u8-strmblen: Likewise.
14430         * modules/unistr/u8-strmbtouc: Likewise.
14431         * modules/unistr/u8-strncat: Likewise.
14432         * modules/unistr/u8-strncmp: Likewise.
14433         * modules/unistr/u8-strncpy: Likewise.
14434         * modules/unistr/u8-strnlen: Likewise.
14435         * modules/unistr/u8-strpbrk: Likewise.
14436         * modules/unistr/u8-strrchr: Likewise.
14437         * modules/unistr/u8-strspn: Likewise.
14438         * modules/unistr/u8-strstr: Likewise.
14439         * modules/unistr/u8-strtok: Likewise.
14440         * modules/unistr/u8-to-u16: Likewise.
14441         * modules/unistr/u8-to-u32: Likewise.
14442         * modules/unistr/u8-uctomb: Likewise.
14443         * modules/unistr/u16-check: Likewise.
14444         * modules/unistr/u16-chr: Likewise.
14445         * modules/unistr/u16-cmp: Likewise.
14446         * modules/unistr/u16-cmp2: Likewise.
14447         * modules/unistr/u16-cpy: Likewise.
14448         * modules/unistr/u16-cpy-alloc: Likewise.
14449         * modules/unistr/u16-endswith: Likewise.
14450         * modules/unistr/u16-mblen: Likewise.
14451         * modules/unistr/u16-mbsnlen: Likewise.
14452         * modules/unistr/u16-mbtouc: Likewise.
14453         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14454         * modules/unistr/u16-mbtoucr: Likewise.
14455         * modules/unistr/u16-move: Likewise.
14456         * modules/unistr/u16-next: Likewise.
14457         * modules/unistr/u16-prev: Likewise.
14458         * modules/unistr/u16-set: Likewise.
14459         * modules/unistr/u16-startswith: Likewise.
14460         * modules/unistr/u16-stpcpy: Likewise.
14461         * modules/unistr/u16-stpncpy: Likewise.
14462         * modules/unistr/u16-strcat: Likewise.
14463         * modules/unistr/u16-strchr: Likewise.
14464         * modules/unistr/u16-strcmp: Likewise.
14465         * modules/unistr/u16-strcoll: Likewise.
14466         * modules/unistr/u16-strcpy: Likewise.
14467         * modules/unistr/u16-strcspn: Likewise.
14468         * modules/unistr/u16-strdup: Likewise.
14469         * modules/unistr/u16-strlen: Likewise.
14470         * modules/unistr/u16-strmblen: Likewise.
14471         * modules/unistr/u16-strmbtouc: Likewise.
14472         * modules/unistr/u16-strncat: Likewise.
14473         * modules/unistr/u16-strncmp: Likewise.
14474         * modules/unistr/u16-strncpy: Likewise.
14475         * modules/unistr/u16-strnlen: Likewise.
14476         * modules/unistr/u16-strpbrk: Likewise.
14477         * modules/unistr/u16-strrchr: Likewise.
14478         * modules/unistr/u16-strspn: Likewise.
14479         * modules/unistr/u16-strstr: Likewise.
14480         * modules/unistr/u16-strtok: Likewise.
14481         * modules/unistr/u16-to-u32: Likewise.
14482         * modules/unistr/u16-to-u8: Likewise.
14483         * modules/unistr/u16-uctomb: Likewise.
14484         * modules/unistr/u32-check: Likewise.
14485         * modules/unistr/u32-chr: Likewise.
14486         * modules/unistr/u32-cmp: Likewise.
14487         * modules/unistr/u32-cmp2: Likewise.
14488         * modules/unistr/u32-cpy: Likewise.
14489         * modules/unistr/u32-cpy-alloc: Likewise.
14490         * modules/unistr/u32-endswith: Likewise.
14491         * modules/unistr/u32-mblen: Likewise.
14492         * modules/unistr/u32-mbsnlen: Likewise.
14493         * modules/unistr/u32-mbtouc: Likewise.
14494         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14495         * modules/unistr/u32-mbtoucr: Likewise.
14496         * modules/unistr/u32-move: Likewise.
14497         * modules/unistr/u32-next: Likewise.
14498         * modules/unistr/u32-prev: Likewise.
14499         * modules/unistr/u32-set: Likewise.
14500         * modules/unistr/u32-startswith: Likewise.
14501         * modules/unistr/u32-stpcpy: Likewise.
14502         * modules/unistr/u32-stpncpy: Likewise.
14503         * modules/unistr/u32-strcat: Likewise.
14504         * modules/unistr/u32-strchr: Likewise.
14505         * modules/unistr/u32-strcmp: Likewise.
14506         * modules/unistr/u32-strcoll: Likewise.
14507         * modules/unistr/u32-strcpy: Likewise.
14508         * modules/unistr/u32-strcspn: Likewise.
14509         * modules/unistr/u32-strdup: Likewise.
14510         * modules/unistr/u32-strlen: Likewise.
14511         * modules/unistr/u32-strmblen: Likewise.
14512         * modules/unistr/u32-strmbtouc: Likewise.
14513         * modules/unistr/u32-strncat: Likewise.
14514         * modules/unistr/u32-strncmp: Likewise.
14515         * modules/unistr/u32-strncpy: Likewise.
14516         * modules/unistr/u32-strnlen: Likewise.
14517         * modules/unistr/u32-strpbrk: Likewise.
14518         * modules/unistr/u32-strrchr: Likewise.
14519         * modules/unistr/u32-strspn: Likewise.
14520         * modules/unistr/u32-strstr: Likewise.
14521         * modules/unistr/u32-strtok: Likewise.
14522         * modules/unistr/u32-to-u16: Likewise.
14523         * modules/unistr/u32-to-u8: Likewise.
14524         * modules/unistr/u32-uctomb: Likewise.
14525         * modules/uniwbrk/u8-wordbreaks: Likewise.
14526         * modules/uniwbrk/u16-wordbreaks: Likewise.
14527         * modules/uniwbrk/u32-wordbreaks: Likewise.
14528         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14529         * modules/uniwbrk/wordbreak-property: Likewise.
14530         * modules/uniwidth/u8-strwidth: Likewise.
14531         * modules/uniwidth/u8-width: Likewise.
14532         * modules/uniwidth/u16-strwidth: Likewise.
14533         * modules/uniwidth/u16-width: Likewise.
14534         * modules/uniwidth/u32-strwidth: Likewise.
14535         * modules/uniwidth/u32-width: Likewise.
14536         * modules/uniwidth/width: Likewise.
14537         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14538         with $(LIBUNISTRING).
14539         * modules/unicase/ignorable-tests: Likewise.
14540         * modules/unicase/locale-language-tests: Likewise.
14541         * modules/unicase/tolower-tests: Likewise.
14542         * modules/unicase/totitle-tests: Likewise.
14543         * modules/unicase/toupper-tests: Likewise.
14544         * modules/unicase/u8-casecmp-tests: Likewise.
14545         * modules/unicase/u8-casecoll-tests: Likewise.
14546         * modules/unicase/u8-casefold-tests: Likewise.
14547         * modules/unicase/u8-is-cased-tests: Likewise.
14548         * modules/unicase/u8-is-casefolded-tests: Likewise.
14549         * modules/unicase/u8-is-lowercase-tests: Likewise.
14550         * modules/unicase/u8-is-titlecase-tests: Likewise.
14551         * modules/unicase/u8-is-uppercase-tests: Likewise.
14552         * modules/unicase/u8-tolower-tests: Likewise.
14553         * modules/unicase/u8-totitle-tests: Likewise.
14554         * modules/unicase/u8-toupper-tests: Likewise.
14555         * modules/unicase/u16-casecmp-tests: Likewise.
14556         * modules/unicase/u16-casecoll-tests: Likewise.
14557         * modules/unicase/u16-casefold-tests: Likewise.
14558         * modules/unicase/u16-is-cased-tests: Likewise.
14559         * modules/unicase/u16-is-casefolded-tests: Likewise.
14560         * modules/unicase/u16-is-lowercase-tests: Likewise.
14561         * modules/unicase/u16-is-titlecase-tests: Likewise.
14562         * modules/unicase/u16-is-uppercase-tests: Likewise.
14563         * modules/unicase/u16-tolower-tests: Likewise.
14564         * modules/unicase/u16-totitle-tests: Likewise.
14565         * modules/unicase/u16-toupper-tests: Likewise.
14566         * modules/unicase/u32-casecmp-tests: Likewise.
14567         * modules/unicase/u32-casecoll-tests: Likewise.
14568         * modules/unicase/u32-casefold-tests: Likewise.
14569         * modules/unicase/u32-is-cased-tests: Likewise.
14570         * modules/unicase/u32-is-casefolded-tests: Likewise.
14571         * modules/unicase/u32-is-lowercase-tests: Likewise.
14572         * modules/unicase/u32-is-titlecase-tests: Likewise.
14573         * modules/unicase/u32-is-uppercase-tests: Likewise.
14574         * modules/unicase/u32-tolower-tests: Likewise.
14575         * modules/unicase/u32-totitle-tests: Likewise.
14576         * modules/unicase/u32-toupper-tests: Likewise.
14577         * modules/unicase/ulc-casecmp-tests: Likewise.
14578         * modules/unicase/ulc-casecoll-tests: Likewise.
14579         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14580         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14581         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14582         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14583         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14584         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14585         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14586         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14587         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14588         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14589         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14590         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14591         * modules/unictype/bidicategory-byname-tests: Likewise.
14592         * modules/unictype/bidicategory-name-tests: Likewise.
14593         * modules/unictype/bidicategory-of-tests: Likewise.
14594         * modules/unictype/bidicategory-test-tests: Likewise.
14595         * modules/unictype/block-list-tests: Likewise.
14596         * modules/unictype/block-of-tests: Likewise.
14597         * modules/unictype/block-test-tests: Likewise.
14598         * modules/unictype/category-C-tests: Likewise.
14599         * modules/unictype/category-Cc-tests: Likewise.
14600         * modules/unictype/category-Cf-tests: Likewise.
14601         * modules/unictype/category-Cn-tests: Likewise.
14602         * modules/unictype/category-Co-tests: Likewise.
14603         * modules/unictype/category-Cs-tests: Likewise.
14604         * modules/unictype/category-L-tests: Likewise.
14605         * modules/unictype/category-Ll-tests: Likewise.
14606         * modules/unictype/category-Lm-tests: Likewise.
14607         * modules/unictype/category-Lo-tests: Likewise.
14608         * modules/unictype/category-Lt-tests: Likewise.
14609         * modules/unictype/category-Lu-tests: Likewise.
14610         * modules/unictype/category-M-tests: Likewise.
14611         * modules/unictype/category-Mc-tests: Likewise.
14612         * modules/unictype/category-Me-tests: Likewise.
14613         * modules/unictype/category-Mn-tests: Likewise.
14614         * modules/unictype/category-N-tests: Likewise.
14615         * modules/unictype/category-Nd-tests: Likewise.
14616         * modules/unictype/category-Nl-tests: Likewise.
14617         * modules/unictype/category-No-tests: Likewise.
14618         * modules/unictype/category-P-tests: Likewise.
14619         * modules/unictype/category-Pc-tests: Likewise.
14620         * modules/unictype/category-Pd-tests: Likewise.
14621         * modules/unictype/category-Pe-tests: Likewise.
14622         * modules/unictype/category-Pf-tests: Likewise.
14623         * modules/unictype/category-Pi-tests: Likewise.
14624         * modules/unictype/category-Po-tests: Likewise.
14625         * modules/unictype/category-Ps-tests: Likewise.
14626         * modules/unictype/category-S-tests: Likewise.
14627         * modules/unictype/category-Sc-tests: Likewise.
14628         * modules/unictype/category-Sk-tests: Likewise.
14629         * modules/unictype/category-Sm-tests: Likewise.
14630         * modules/unictype/category-So-tests: Likewise.
14631         * modules/unictype/category-Z-tests: Likewise.
14632         * modules/unictype/category-Zl-tests: Likewise.
14633         * modules/unictype/category-Zp-tests: Likewise.
14634         * modules/unictype/category-Zs-tests: Likewise.
14635         * modules/unictype/category-and-not-tests: Likewise.
14636         * modules/unictype/category-and-tests: Likewise.
14637         * modules/unictype/category-byname-tests: Likewise.
14638         * modules/unictype/category-name-tests: Likewise.
14639         * modules/unictype/category-none-tests: Likewise.
14640         * modules/unictype/category-of-tests: Likewise.
14641         * modules/unictype/category-or-tests: Likewise.
14642         * modules/unictype/category-test-withtable-tests: Likewise.
14643         * modules/unictype/combining-class-tests: Likewise.
14644         * modules/unictype/ctype-alnum-tests: Likewise.
14645         * modules/unictype/ctype-alpha-tests: Likewise.
14646         * modules/unictype/ctype-blank-tests: Likewise.
14647         * modules/unictype/ctype-cntrl-tests: Likewise.
14648         * modules/unictype/ctype-digit-tests: Likewise.
14649         * modules/unictype/ctype-graph-tests: Likewise.
14650         * modules/unictype/ctype-lower-tests: Likewise.
14651         * modules/unictype/ctype-print-tests: Likewise.
14652         * modules/unictype/ctype-punct-tests: Likewise.
14653         * modules/unictype/ctype-space-tests: Likewise.
14654         * modules/unictype/ctype-upper-tests: Likewise.
14655         * modules/unictype/ctype-xdigit-tests: Likewise.
14656         * modules/unictype/decimal-digit-tests: Likewise.
14657         * modules/unictype/digit-tests: Likewise.
14658         * modules/unictype/mirror-tests: Likewise.
14659         * modules/unictype/numeric-tests: Likewise.
14660         * modules/unictype/property-alphabetic-tests: Likewise.
14661         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14662         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14663         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14664         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14665         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14666         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14667         * modules/unictype/property-bidi-control-tests: Likewise.
14668         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14669         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14670         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14671         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14672         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14673         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14674         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14675         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14676         * modules/unictype/property-bidi-pdf-tests: Likewise.
14677         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14678         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14679         * modules/unictype/property-byname-tests: Likewise.
14680         * modules/unictype/property-combining-tests: Likewise.
14681         * modules/unictype/property-composite-tests: Likewise.
14682         * modules/unictype/property-currency-symbol-tests: Likewise.
14683         * modules/unictype/property-dash-tests: Likewise.
14684         * modules/unictype/property-decimal-digit-tests: Likewise.
14685         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14686         * modules/unictype/property-deprecated-tests: Likewise.
14687         * modules/unictype/property-diacritic-tests: Likewise.
14688         * modules/unictype/property-extender-tests: Likewise.
14689         * modules/unictype/property-format-control-tests: Likewise.
14690         * modules/unictype/property-grapheme-base-tests: Likewise.
14691         * modules/unictype/property-grapheme-extend-tests: Likewise.
14692         * modules/unictype/property-grapheme-link-tests: Likewise.
14693         * modules/unictype/property-hex-digit-tests: Likewise.
14694         * modules/unictype/property-hyphen-tests: Likewise.
14695         * modules/unictype/property-id-continue-tests: Likewise.
14696         * modules/unictype/property-id-start-tests: Likewise.
14697         * modules/unictype/property-ideographic-tests: Likewise.
14698         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14699         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14700         * modules/unictype/property-ignorable-control-tests: Likewise.
14701         * modules/unictype/property-iso-control-tests: Likewise.
14702         * modules/unictype/property-join-control-tests: Likewise.
14703         * modules/unictype/property-left-of-pair-tests: Likewise.
14704         * modules/unictype/property-line-separator-tests: Likewise.
14705         * modules/unictype/property-logical-order-exception-tests: Likewise.
14706         * modules/unictype/property-lowercase-tests: Likewise.
14707         * modules/unictype/property-math-tests: Likewise.
14708         * modules/unictype/property-non-break-tests: Likewise.
14709         * modules/unictype/property-not-a-character-tests: Likewise.
14710         * modules/unictype/property-numeric-tests: Likewise.
14711         * modules/unictype/property-other-alphabetic-tests: Likewise.
14712         * modules/unictype/property-other-default-ignorable-code-point-tests:
14713         Likewise.
14714         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14715         * modules/unictype/property-other-id-continue-tests: Likewise.
14716         * modules/unictype/property-other-id-start-tests: Likewise.
14717         * modules/unictype/property-other-lowercase-tests: Likewise.
14718         * modules/unictype/property-other-math-tests: Likewise.
14719         * modules/unictype/property-other-uppercase-tests: Likewise.
14720         * modules/unictype/property-paired-punctuation-tests: Likewise.
14721         * modules/unictype/property-paragraph-separator-tests: Likewise.
14722         * modules/unictype/property-pattern-syntax-tests: Likewise.
14723         * modules/unictype/property-pattern-white-space-tests: Likewise.
14724         * modules/unictype/property-private-use-tests: Likewise.
14725         * modules/unictype/property-punctuation-tests: Likewise.
14726         * modules/unictype/property-quotation-mark-tests: Likewise.
14727         * modules/unictype/property-radical-tests: Likewise.
14728         * modules/unictype/property-sentence-terminal-tests: Likewise.
14729         * modules/unictype/property-soft-dotted-tests: Likewise.
14730         * modules/unictype/property-space-tests: Likewise.
14731         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14732         * modules/unictype/property-test-tests: Likewise.
14733         * modules/unictype/property-titlecase-tests: Likewise.
14734         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14735         * modules/unictype/property-unified-ideograph-tests: Likewise.
14736         * modules/unictype/property-uppercase-tests: Likewise.
14737         * modules/unictype/property-variation-selector-tests: Likewise.
14738         * modules/unictype/property-white-space-tests: Likewise.
14739         * modules/unictype/property-xid-continue-tests: Likewise.
14740         * modules/unictype/property-xid-start-tests: Likewise.
14741         * modules/unictype/property-zero-width-tests: Likewise.
14742         * modules/unictype/scripts-tests: Likewise.
14743         * modules/unictype/syntax-c-ident-tests: Likewise.
14744         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14745         * modules/unictype/syntax-java-ident-tests: Likewise.
14746         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14747         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14748         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14749         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14750         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14751         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14752         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14753         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14754         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14755         * modules/uniname/uniname-tests: Likewise.
14756         * modules/uninorm/canonical-decomposition-tests: Likewise.
14757         * modules/uninorm/compat-decomposition-tests: Likewise.
14758         * modules/uninorm/composition-tests: Likewise.
14759         * modules/uninorm/decomposing-form-tests: Likewise.
14760         * modules/uninorm/decomposition-tests: Likewise.
14761         * modules/uninorm/filter-tests: Likewise.
14762         * modules/uninorm/nfc-tests: Likewise.
14763         * modules/uninorm/nfd-tests: Likewise.
14764         * modules/uninorm/nfkc-tests: Likewise.
14765         * modules/uninorm/nfkd-tests: Likewise.
14766         * modules/uninorm/u8-normcmp-tests: Likewise.
14767         * modules/uninorm/u8-normcoll-tests: Likewise.
14768         * modules/uninorm/u16-normcmp-tests: Likewise.
14769         * modules/uninorm/u16-normcoll-tests: Likewise.
14770         * modules/uninorm/u32-normcmp-tests: Likewise.
14771         * modules/uninorm/u32-normcoll-tests: Likewise.
14772         * modules/unistdio/u8-asnprintf-tests: Likewise.
14773         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14774         * modules/unistdio/u8-vasprintf-tests: Likewise.
14775         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14776         * modules/unistdio/u8-vsprintf-tests: Likewise.
14777         * modules/unistdio/u16-asnprintf-tests: Likewise.
14778         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14779         * modules/unistdio/u16-vasprintf-tests: Likewise.
14780         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14781         * modules/unistdio/u16-vsprintf-tests: Likewise.
14782         * modules/unistdio/u32-asnprintf-tests: Likewise.
14783         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14784         * modules/unistdio/u32-vasprintf-tests: Likewise.
14785         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14786         * modules/unistdio/u32-vsprintf-tests: Likewise.
14787         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14788         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14789         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14790         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14791         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14792         * modules/unistr/u8-check-tests: Likewise.
14793         * modules/unistr/u8-chr-tests: Likewise.
14794         * modules/unistr/u8-cmp-tests: Likewise.
14795         * modules/unistr/u8-cmp2-tests: Likewise.
14796         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14797         * modules/unistr/u8-cpy-tests: Likewise.
14798         * modules/unistr/u8-mblen-tests: Likewise.
14799         * modules/unistr/u8-mbsnlen-tests: Likewise.
14800         * modules/unistr/u8-mbtouc-tests: Likewise.
14801         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14802         * modules/unistr/u8-mbtoucr-tests: Likewise.
14803         * modules/unistr/u8-move-tests: Likewise.
14804         * modules/unistr/u8-next-tests: Likewise.
14805         * modules/unistr/u8-prev-tests: Likewise.
14806         * modules/unistr/u8-set-tests: Likewise.
14807         * modules/unistr/u8-stpcpy-tests: Likewise.
14808         * modules/unistr/u8-stpncpy-tests: Likewise.
14809         * modules/unistr/u8-strcat-tests: Likewise.
14810         * modules/unistr/u8-strcmp-tests: Likewise.
14811         * modules/unistr/u8-strcoll-tests: Likewise.
14812         * modules/unistr/u8-strcpy-tests: Likewise.
14813         * modules/unistr/u8-strdup-tests: Likewise.
14814         * modules/unistr/u8-strlen-tests: Likewise.
14815         * modules/unistr/u8-strmblen-tests: Likewise.
14816         * modules/unistr/u8-strmbtouc-tests: Likewise.
14817         * modules/unistr/u8-strncat-tests: Likewise.
14818         * modules/unistr/u8-strncmp-tests: Likewise.
14819         * modules/unistr/u8-strncpy-tests: Likewise.
14820         * modules/unistr/u8-strnlen-tests: Likewise.
14821         * modules/unistr/u8-to-u16-tests: Likewise.
14822         * modules/unistr/u8-to-u32-tests: Likewise.
14823         * modules/unistr/u8-uctomb-tests: Likewise.
14824         * modules/unistr/u16-check-tests: Likewise.
14825         * modules/unistr/u16-chr-tests: Likewise.
14826         * modules/unistr/u16-cmp-tests: Likewise.
14827         * modules/unistr/u16-cmp2-tests: Likewise.
14828         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14829         * modules/unistr/u16-cpy-tests: Likewise.
14830         * modules/unistr/u16-mblen-tests: Likewise.
14831         * modules/unistr/u16-mbsnlen-tests: Likewise.
14832         * modules/unistr/u16-mbtouc-tests: Likewise.
14833         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14834         * modules/unistr/u16-mbtoucr-tests: Likewise.
14835         * modules/unistr/u16-move-tests: Likewise.
14836         * modules/unistr/u16-next-tests: Likewise.
14837         * modules/unistr/u16-prev-tests: Likewise.
14838         * modules/unistr/u16-set-tests: Likewise.
14839         * modules/unistr/u16-stpcpy-tests: Likewise.
14840         * modules/unistr/u16-stpncpy-tests: Likewise.
14841         * modules/unistr/u16-strcat-tests: Likewise.
14842         * modules/unistr/u16-strcmp-tests: Likewise.
14843         * modules/unistr/u16-strcoll-tests: Likewise.
14844         * modules/unistr/u16-strcpy-tests: Likewise.
14845         * modules/unistr/u16-strdup-tests: Likewise.
14846         * modules/unistr/u16-strlen-tests: Likewise.
14847         * modules/unistr/u16-strmblen-tests: Likewise.
14848         * modules/unistr/u16-strmbtouc-tests: Likewise.
14849         * modules/unistr/u16-strncat-tests: Likewise.
14850         * modules/unistr/u16-strncmp-tests: Likewise.
14851         * modules/unistr/u16-strncpy-tests: Likewise.
14852         * modules/unistr/u16-strnlen-tests: Likewise.
14853         * modules/unistr/u16-to-u32-tests: Likewise.
14854         * modules/unistr/u16-to-u8-tests: Likewise.
14855         * modules/unistr/u16-uctomb-tests: Likewise.
14856         * modules/unistr/u32-check-tests: Likewise.
14857         * modules/unistr/u32-chr-tests: Likewise.
14858         * modules/unistr/u32-cmp-tests: Likewise.
14859         * modules/unistr/u32-cmp2-tests: Likewise.
14860         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14861         * modules/unistr/u32-cpy-tests: Likewise.
14862         * modules/unistr/u32-mblen-tests: Likewise.
14863         * modules/unistr/u32-mbsnlen-tests: Likewise.
14864         * modules/unistr/u32-mbtouc-tests: Likewise.
14865         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14866         * modules/unistr/u32-mbtoucr-tests: Likewise.
14867         * modules/unistr/u32-move-tests: Likewise.
14868         * modules/unistr/u32-next-tests: Likewise.
14869         * modules/unistr/u32-prev-tests: Likewise.
14870         * modules/unistr/u32-set-tests: Likewise.
14871         * modules/unistr/u32-stpcpy-tests: Likewise.
14872         * modules/unistr/u32-stpncpy-tests: Likewise.
14873         * modules/unistr/u32-strcat-tests: Likewise.
14874         * modules/unistr/u32-strcmp-tests: Likewise.
14875         * modules/unistr/u32-strcoll-tests: Likewise.
14876         * modules/unistr/u32-strcpy-tests: Likewise.
14877         * modules/unistr/u32-strdup-tests: Likewise.
14878         * modules/unistr/u32-strlen-tests: Likewise.
14879         * modules/unistr/u32-strmblen-tests: Likewise.
14880         * modules/unistr/u32-strmbtouc-tests: Likewise.
14881         * modules/unistr/u32-strncat-tests: Likewise.
14882         * modules/unistr/u32-strncmp-tests: Likewise.
14883         * modules/unistr/u32-strncpy-tests: Likewise.
14884         * modules/unistr/u32-strnlen-tests: Likewise.
14885         * modules/unistr/u32-to-u16-tests: Likewise.
14886         * modules/unistr/u32-to-u8-tests: Likewise.
14887         * modules/unistr/u32-uctomb-tests: Likewise.
14888         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14889         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14890         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14891         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14892         * modules/uniwidth/u8-strwidth-tests: Likewise.
14893         * modules/uniwidth/u8-width-tests: Likewise.
14894         * modules/uniwidth/u16-strwidth-tests: Likewise.
14895         * modules/uniwidth/u16-width-tests: Likewise.
14896         * modules/uniwidth/u32-strwidth-tests: Likewise.
14897         * modules/uniwidth/u32-width-tests: Likewise.
14898         * modules/uniwidth/width-tests: Likewise.
14899
14900 2010-05-18  Richard Jones  <rjones@redhat.com>
14901
14902         doc: users.txt: list hivex
14903         * users.txt: Add hivex.
14904
14905 2010-05-18  Richard Jones  <rjones@redhat.com>
14906
14907         doc: users.txt: list febootstrap
14908         * users.txt: Add febootstrap.
14909
14910 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14911
14912         bootstrap: fix an error when gnulib is not used as a git submodule
14913         * build-aux/bootstrap (gnulib_path): If its length is zero then
14914         assign "gnulib" to it.
14915         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14916
14917 2010-05-16  Bruno Haible  <bruno@clisp.org>
14918
14919         Avoid autoconf warnings about AM_ICONV.
14920         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14921         2.64.
14922
14923 2010-05-16  Bruno Haible  <bruno@clisp.org>
14924
14925         absolute-header: Make the macro usable in more situations.
14926         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14927         from gl_ABSOLUTE_HEADER.
14928         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14929
14930 2010-05-16  James Youngman  <jay@gnu.org>
14931
14932         doc: update users.txt
14933         * users.txt: Add CSSC.
14934
14935 2010-05-16  Jim Meyering  <meyering@redhat.com>
14936
14937         init.sh: fix an error in the previous change; add more comments
14938         * tests/init.sh: Compare exit code in loop against 9, not 2.
14939         Patch by Bruno Haible.
14940         Make the two tests more similar by adding an empty "then" clause.
14941         Add comments.
14942
14943         init.sh: avoid unnecessary shell re-exec
14944         * tests/init.sh: Improve the re-exec-required check to first test the
14945         current shell.  If it passes the test, do not search for a shell that
14946         does pass, and do not re-exec.  This test is particularly contorted to
14947         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14948         of $(...) evokes a syntax error and causes immediate shell exit with
14949         status 2.  Bruno Haible reported that the re-exec made it impossible
14950         to single-step through any init.sh-using script.
14951
14952 2010-05-16  Bruno Haible  <bruno@clisp.org>
14953
14954         Fix collision between gnulib's and libintl's printf replacements.
14955         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14956         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14957         (printf): When using GNU C, map the __printf__ function to rpl_printf
14958         via __asm__. When not using GNU C, define rpl_printf instead of
14959         __printf__.
14960         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14961         commit.
14962         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14963         commit.
14964         * m4/asm-underscore.m4: New file.
14965         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14966         * modules/stdio (Files): Add m4/asm-underscore.m4.
14967         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14968         Reported by Ben Pfaff.
14969
14970 2010-05-16  Bruno Haible  <bruno@clisp.org>
14971
14972         verify: Avoid skipping the test on openSUSE 11.0.
14973         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14974
14975 2010-05-13  Bruno Haible  <bruno@clisp.org>
14976
14977         Avoid useless warnings from G++.
14978         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14979         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14980         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14981
14982 2010-05-11  Jim Meyering  <meyering@redhat.com>
14983
14984         maint.mk: tweak preceding change
14985         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14986         regexps tighter by anchoring at EOL, and make the new group "shy"
14987         for slightly decreased overhead.
14988
14989 2010-05-11  Eric Blake  <eblake@redhat.com>
14990
14991         maint.mk: gnulib doesn't guarantee NSIG
14992         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14993
14994 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14995
14996         test-pwrite.c: Remove unused variable declaration.
14997         * tests/test-pwrite.c (main): Remove read_buf declaration.
14998
14999         Remove useless test-pwrite.sh file.
15000         * tests/test-pwrite.sh: Delete file.
15001         * modules/pwrite-tests: Remove references.
15002         Reported by Bruno Haible.
15003
15004 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15005
15006         init.sh: fix a typo
15007         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15008
15009 2010-05-10  Jim Meyering  <meyering@redhat.com>
15010
15011         maint.mk: avoid using a temporary file in the always-defined-macros check
15012         * top/maint.mk (.re-defmac): Remove rule.
15013         (gl_trap_): Remove definition.
15014         (sc_prohibit_always-defined_macros): Rewrite not to create and
15015         depend on a temporary file.  Instead, depend on GNU grep's ability
15016         to read a list of regular expressions from stdin when given "-f -".
15017
15018 2010-05-09  Bruno Haible  <bruno@clisp.org>
15019
15020         Update to GNU gettext 0.18, part 1.
15021         * m4/gettext.m4: Update to GNU gettext 0.18.
15022         * m4/intl.m4: Likewise.
15023         * m4/po.m4: Likewise.
15024         * modules/gettext (Files): Add m4/fcntl-o.m4.
15025         (configure.ac): Require gettext infrastructure from version 0.18.
15026
15027 2010-05-09  Jim Meyering  <meyering@redhat.com>
15028
15029         init.sh: enable MALLOC_PERTURB_
15030         * tests/init.sh: Enable glibc's malloc-perturbing option.
15031
15032         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15033         With my recent change in init.sh from the two-line form:
15034             -#   : ${srcdir=.}
15035             -#   . "$srcdir/init.sh"; path_prepend_ .
15036             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15037         I noticed that using the one-line form would cause this test
15038         to fail with a false-positive, or to stop working altogether,
15039         depending on whether help-version changed or all the tests did.
15040         * top/maint.mk (_hv_regex): Remove this definition.
15041         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15042         (_hv_regex_strong): Use a stronger regex to check for conformance.
15043         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15044         Give a separate diagnostic for lack of conforming use.
15045
15046         maint.mk: prohibit definition of symbols defined by gnulib
15047         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
15048         definition of symbols defined by gnulib.
15049
15050 2010-05-09  Bruno Haible  <bruno@clisp.org>
15051
15052         acl: Avoid test failure on Cygwin-hosted mingw.
15053         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
15054
15055 2010-05-09  Bruno Haible  <bruno@clisp.org>
15056
15057         error: Use system's fcntl function.
15058         * lib/error.c (fcntl): Undefine.
15059
15060 2010-05-09  Jim Meyering  <meyering@redhat.com>
15061
15062         verify: adjust formatting to be more consistent
15063         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15064         argument-list '('s, and after one comma.
15065
15066 2010-05-09  Bruno Haible  <bruno@clisp.org>
15067
15068         error: More reliable output on mingw.
15069         * lib/error.c: Include <windows.h>.
15070         (is_open): New function.
15071         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15072         defined.
15073
15074 2010-05-09  Bruno Haible  <bruno@clisp.org>
15075
15076         vasnprintf: Fix syntax errors in libintl build on mingw.
15077         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15078         pad_ourselves and prec_ourselves after use.
15079
15080 2010-05-08  Bruno Haible  <bruno@clisp.org>
15081
15082         * lib/config.charset: Update comments for Cygwin 1.7.
15083         * lib/localcharset.c: Likewise.
15084
15085 2010-05-07  Jim Meyering  <meyering@redhat.com>
15086
15087         init.sh: improve comments
15088         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15089         . "${srcdir=.}/init.sh"; path_prepend_ .
15090         Add a note about path_prepend_ and the alternative of using
15091         TESTS_ENVIRONMENT.
15092
15093 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15094
15095         exclude: Unescape hashed patterns in wildcard mode.
15096         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15097         to the hash list.
15098         * tests/test-exclude8.sh: New test case.
15099         * modules/exclude-tests: Add new test.
15100
15101 2010-05-05  Eric Blake  <eblake@redhat.com>
15102
15103         verify: automate tests
15104         * modules/verify-tests: New module.
15105         * tests/test-verify.sh: New file.
15106         * tests/test-verify.c: Guard each negative test with a unique id.
15107         Also avoid warning about unused left hand of comma expressions.
15108
15109 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15110
15111         Further improvements to verify.h, suggested by Eric Blake.
15112         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15113         the GL_* versions, to avoid collision with OpenGL.
15114         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15115         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15116         than testing merely whether it's defined.
15117
15118         Modify verify.h to pacify gcc -Wredundant_decls.
15119         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15120         These use the prefix "GL_" since they're likely to be useful elsewhere.
15121         We may need to break them out into a different .h file.
15122         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15123         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15124         of verify_function__.
15125
15126 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15127
15128         Tests for module pwrite.
15129         * modules/pwrite-tests: New file.
15130         * tests/test-pwrite.sh: New file.
15131         * tests/test-pwrite.c: New file.
15132
15133         New module pwrite.
15134         * lib/unistd.in.h (pwrite): New declaration.
15135         * lib/pwrite.c: New file, from glibc with modifications.
15136         * m4/pwrite.m4: New file.
15137         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15138         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15139         REPLACE_PWRITE.
15140         * modules/pwrite: New file.
15141         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15142         REPLACE_PWRITE.
15143         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15144         * doc/posix-functions/pwrite.texi: Mention the new module.
15145
15146 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15147
15148         pread: Update documentation.
15149         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15150
15151 2010-05-04  Eric Blake  <eblake@redhat.com>
15152
15153         docs: update cygwin progress
15154         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15155         this bug.
15156         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15157         Added in cygwin 1.7.2.
15158         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15159         Likewise.
15160         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15161         Likewise.
15162         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15163         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15164         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15165         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15166         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15167         Mention nproc module.
15168         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15169         bug in cygwin 1.7.5 addition.
15170         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15171         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15172         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15173         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15174         1.7.5.
15175         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15176         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15177         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15178         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15179         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15180         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15181         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15182         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15183         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15184         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15185         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15186         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15187         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15188         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15189         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15190         Likewise.
15191         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15192         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15193         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15194         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15195         Likewise.
15196         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15197         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15198         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15199         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15200         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15201         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15202         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15203         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15204         Likewise.
15205         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15206         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15207         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15208         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15209         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15210         Likewise.
15211         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15212         Likewise.
15213         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15214         Likewise.
15215         * doc/glibc-functions/xdrrec_endofrecord.texi
15216         (xdrrec_endofrecord): Likewise.
15217         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15218         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15219         Likewise.
15220         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15221         Likewise.
15222
15223 2010-05-04  Jim Meyering  <meyering@redhat.com>
15224
15225         gendocs.sh: make its "-s FILE" option more useful
15226         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15227         $PACKAGE to reflect the probably-different basename of "FILE".
15228
15229 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15230
15231         bootstrap: don't ignore download_po_files failure
15232         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15233         failure.
15234
15235 2010-05-03  Jim Meyering  <meyering@redhat.com>
15236
15237         maint.mk: allow to pass options to gendocs.sh
15238         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15239         (gendocs_options_): New overridable variable.
15240
15241         gnu-web-doc-update: don't ignore configure or build failure
15242         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15243
15244         announce-gen: backslash-escape '@'s in --help output
15245         * build-aux/announce-gen: Fix syntax errors.
15246
15247         maint.mk, announce-gen: allow project-specific announcement mail headers
15248         * top/maint.mk (translation_project_): Define default.
15249         (announcement_Cc_, announcement_mail_headers_): Likewise.
15250         (announcement): Invoke announce-gen with new --mail-headers option.
15251         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15252
15253         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15254         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15255         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15256         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15257         line in the "err2" output file when running "make check" in verbose
15258         mode (i.e., with set -x enabled).
15259
15260 2010-05-03  Bruno Haible  <bruno@clisp.org>
15261
15262         wctob: Fix for weird platforms.
15263         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15264         argument value.
15265
15266 2010-05-03  Jim Meyering  <meyering@redhat.com>
15267
15268         maint.mk: prohibit unwarranted use of <strings.h>
15269         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15270         strings.h in a file that does not also use strcasecmp, strncasecmp,
15271         ffs or ffsll.
15272
15273         maint.mk: remove obsolete comments
15274         * top/maint.mk: Remove stale, commented-out rules.
15275
15276 2010-05-02  Bruno Haible  <bruno@clisp.org>
15277
15278         wcwidth: Declare also when it's aliased.
15279         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15280         macro.
15281
15282 2010-05-02  Bruno Haible  <bruno@clisp.org>
15283
15284         Fix regression from 2010-04-25.
15285         * gnulib-tool (func_modules_transitive_closure): Check the status of
15286         all modules, not only of the tests that are of the form foo-tests where
15287         foo is a module.
15288
15289 2010-05-02  Bruno Haible  <bruno@clisp.org>
15290
15291         wctob: Work around nasty Cygwin 1.7.2 bug.
15292         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15293         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15294
15295 2010-05-01  Bruno Haible  <bruno@clisp.org>
15296
15297         fpurge: Sharper test.
15298         * tests/test-fpurge.c (main): Add one more ftell check.
15299         * modules/fpurge-tests (Depends-on): Add ftell.
15300         Suggested by Eric Blake.
15301
15302 2010-05-01  Bruno Haible  <bruno@clisp.org>
15303
15304         ftello: Another test.
15305         * tests/test-ftello3.c: New file.
15306         * modules/ftello-tests (Files): Add it.
15307         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15308         MOSTLYCLEANFILES.
15309
15310         ftell: Another test.
15311         * tests/test-ftell3.c: New file.
15312         * modules/ftell-tests (Files): Add it.
15313         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15314         MOSTLYCLEANFILES.
15315
15316 2010-05-01  Bruno Haible  <bruno@clisp.org>
15317
15318         ftell, ftello: Work around Solaris bug.
15319         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15320         * lib/ftello.c: Include stdio-impl.h.
15321         (ftello): On Solaris, when _IOWRT is set, compute the result without
15322         looking at _IOREAD.
15323         * modules/ftello (Files): Add lib/stdio-impl.h.
15324         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15325         * doc/posix-functions/ftello.texi: Likewise.
15326         Reported by Eric Blake.
15327
15328 2010-05-01  Bruno Haible  <bruno@clisp.org>
15329
15330         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15331         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15332         the _IOWRT flag is also set.
15333
15334 2010-05-01  Bruno Haible  <bruno@clisp.org>
15335
15336         Fix doc about a HP-UX stdio bug.
15337         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15338         * doc/posix-functions/ftello.texi: Likewise.
15339
15340 2010-05-01  Bruno Haible  <bruno@clisp.org>
15341
15342         lseek test: Fix failure on Solaris.
15343         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15344         output.
15345
15346 2010-04-30  Jim Meyering  <meyering@redhat.com>
15347
15348         bootstrap: don't ignore failure to generate po*/Makevars
15349         * build-aux/bootstrap (with_gettext): Don't ignore failure
15350         to create po/Makevars or runtime-po/Makevars.
15351
15352 2010-04-29  Eric Blake  <eblake@redhat.com>
15353
15354         headers: relax license to LGPLv2+
15355         * modules/fcntl-h (License): Relax license.
15356         * modules/getopt-posix (License): Likewise.
15357         * modules/locale (License): Likewise.
15358         * modules/math (License): Likewise.
15359         * modules/pty (License): Likewise.
15360         * modules/sched (License): Likewise.
15361         * modules/search (License): Likewise.
15362         * modules/spawn (License): Likewise.
15363         * modules/stdarg (License): Likewise.
15364         * modules/sysexits (License): Likewise.
15365
15366 2010-04-29  Jim Meyering  <meyering@redhat.com>
15367
15368         inttypes: relax license to LGPLv2+
15369         * modules/inttypes (License): Relax license.
15370
15371 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15372
15373         * top/maint.mk (indent): Run twice to produce idempotent results.
15374
15375 2010-04-28  Bruno Haible  <bruno@clisp.org>
15376
15377         getdate: Generate getdate.c in the source directory.
15378         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15379         MOSTLYCLEANFILES.
15380         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15381
15382 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15383
15384         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15385         is not declared as a const *; avoid warnings in that case.
15386
15387 2010-04-28  Eric Blake  <eblake@redhat.com>
15388
15389         canonicalize-lgpl: avoid compiler warning
15390         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15391         declaration' / 'extraneous semicolon' warning with some compilers.
15392         Reported by Andreas Gruenbacher.
15393
15394 2010-04-28  Jim Meyering  <meyering@redhat.com>
15395
15396         init.sh: ensure a more reliable exit status when exiting via trap
15397         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15398         Inspired by patches from Dmitry V. Levin.
15399         Also trap on signal 3 (SIGQUIT).
15400
15401 2010-04-27  Bruno Haible  <bruno@clisp.org>
15402
15403         Update doc about utimes().
15404         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15405         'utimens' module.
15406         Reported by Andreas Gruenbacher <agruen@suse.de>.
15407
15408 2010-04-27  Eric Blake  <eblake@redhat.com>
15409
15410         full-read, full-write: relax license
15411         * modules/full-read (License): Drop to LGPLv2+.
15412         * modules/full-write (License): Likewise.
15413         * modules/safe-read (License): Likewise.
15414         * modules/safe-write (License): Likewise.
15415
15416         pthread: mention library for linking
15417         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15418
15419 2010-04-27  Jim Meyering  <meyering@redhat.com>
15420
15421         maint.mk: fix a bug introduced in last change
15422         * top/maint.mk (gl_assured_headers_): Now that all names are on
15423         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15424         is not anchored to end of word, it should be adequate.
15425
15426         maint.mk: avoid side-effect in latest syntax-check
15427         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15428         to run commands via $(shell...), and hence to incur cost only when
15429         the new rule is actually run.
15430
15431         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15432         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15433         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15434         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15435         (gl_assured_headers_, az_, AZ_): Define.
15436         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15437
15438 2010-04-26  Jim Meyering  <jim@meyering.net>
15439             Bruno Haible  <bruno@clisp.org>
15440
15441         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15442         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15443         Prompted by an exchange with Gilles Espinasse.
15444
15445 2010-04-26  Jim Meyering  <meyering@redhat.com>
15446
15447         git-version-gen: aesthetic tweak
15448         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15449         so that the command remains on a single line.
15450
15451 2010-04-26  Eric Blake  <eblake@redhat.com>
15452
15453         git-version-gen: allow use on EBCDIC hosts
15454         * build-aux/git-version-gen (dirty): Use literal rather than tying
15455         ourselves to ascii.
15456         Reported by Steve Goetze.
15457
15458 2010-04-25  Bruno Haible  <bruno@clisp.org>
15459
15460         netdb: Add support for GNULIB_POSIXCHECK.
15461         * lib/netdb.in.h: Include warn-on-use.h.
15462         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15463         functions are used when GNULIB_POSIXCHECK is defined and the
15464         getaddrinfo module is not in use.
15465         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15466         freeaddrinfo, gai_strerror, getnameinfo are declared.
15467         * modules/netdb (Depends-on): Add warn-on-use.
15468         (Makefile.am): Include warn-on-use.h in netdb.h.
15469
15470 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15471
15472         build: avoid "make check" failure without .git/ directory
15473         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15474         there is no .git/ directory.
15475
15476 2010-04-25  Bruno Haible  <bruno@clisp.org>
15477
15478         ptsname: Fix misuse of ttyname_r.
15479         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15480         of errno.
15481
15482 2010-04-25  Bruno Haible  <bruno@clisp.org>
15483
15484         ttyname_r: Make it work on Solaris 10.
15485         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15486         if the system function has the POSIX declaration. Test whether the
15487         function fails if the buffer is less than 128 bytes large.
15488         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15489         system's ttyname_r function. Provide a reasonably large buffer.
15490         * modules/ttyname_r (Depends-on): Add extensions.
15491         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15492
15493 2010-04-25  Bruno Haible  <bruno@clisp.org>
15494
15495         Use the 'extensions' module for some more functions on Solaris.
15496         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15497         module.
15498         * doc/posix-functions/ctime_r.texi: Likewise.
15499         * doc/posix-functions/getgrgid_r.texi: Likewise.
15500         * doc/posix-functions/getgrnam_r.texi: Likewise.
15501         * doc/posix-functions/getpwnam_r.texi: Likewise.
15502         * doc/posix-functions/getpwuid_r.texi: Likewise.
15503         * doc/posix-functions/readdir_r.texi: Likewise.
15504         * doc/posix-functions/sigwait.texi: Likewise.
15505         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15506         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15507
15508 2010-04-25  Bruno Haible  <bruno@clisp.org>
15509
15510         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15511         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15512         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15513         * lib/ttyname_r.c: Include <limits.h>.
15514         (ttyname_r): Define using the system's ttyname_r function, if it exists
15515         and not on Solaris.
15516         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15517         set.
15518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15519         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15520         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15521         Reported by Simon Josefsson.
15522
15523 2010-04-25  Bruno Haible  <bruno@clisp.org>
15524
15525         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15526         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15527         * doc/posix-functions/ctime_r.texi: Likewise.
15528         * doc/posix-functions/getgrgid_r.texi: Likewise.
15529         * doc/posix-functions/getgrnam_r.texi: Likewise.
15530         * doc/posix-functions/getlogin_r.texi: Likewise.
15531         * doc/posix-functions/getpwnam_r.texi: Likewise.
15532         * doc/posix-functions/getpwuid_r.texi: Likewise.
15533         * doc/posix-functions/readdir_r.texi: Likewise.
15534         * doc/posix-functions/sigwait.texi: Likewise.
15535         * doc/posix-functions/ttyname_r.texi: Likewise.
15536         Reported by Simon Josefsson.
15537
15538 2010-04-25  Bruno Haible  <bruno@clisp.org>
15539
15540         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15541         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15542         also to --create-testdir.
15543         (func_acceptable): Don't consider the status of *-tests modules here.
15544         (func_modules_transitive_closure): Consider it here, before including a
15545         test module.
15546         (func_import, func_create_testdir): Set inc_all_direct_tests,
15547         inc_all_indirect_tests.
15548         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15549         --create-testdir and --create-megatestdir.
15550
15551 2010-04-25  Bruno Haible  <bruno@clisp.org>
15552
15553         gnulib-tool: Add --without-*-tests options.
15554         * gnulib-tool (func_usage): Document the --without-*-tests options.
15555         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15556         excl_unportable_tests): New variables.
15557         Fail if they are specified with --import or --update.
15558         (func_acceptable): Respect the excl_*_tests variables.
15559         (func_import): Set the excl_*_tests variables to empty.
15560
15561 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15562             Bruno Haible  <bruno@clisp.org>
15563
15564         Work around a MacOS X 10.4 bug with openpty.
15565         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15566         * tests/test-openpty.c (main): Close the master side explicitly.
15567
15568 2010-04-25  Bruno Haible  <bruno@clisp.org>
15569
15570         strnlen: Fix a C++ test error on MacOS X and Solaris.
15571         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15572         the function is not declared.
15573         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15574         Simon Josefsson.
15575
15576 2010-04-24  Bruno Haible  <bruno@clisp.org>
15577
15578         Avoid a gcc warning.
15579         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15580         of correct type for %08lx directive.
15581         Reported by Eric Blake.
15582
15583 2010-04-24  Bruno Haible  <bruno@clisp.org>
15584
15585         vasnprintf: Correct errno value in case of out-of-memory.
15586         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15587         or sprintf. Use the errno value from SNPRINTF or sprintf.
15588         Reported by Ian Beckwith <ianb@erislabs.net>.
15589
15590 2010-04-24  Bruno Haible  <bruno@clisp.org>
15591
15592         ansi-c++-opt: Find correct compiler when cross-compiling.
15593         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15594         AC_CHECK_PROGS.
15595         Reported by Simon Josefsson.
15596
15597 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15598
15599         vc-list-files: Add support for subversion
15600         * build-aux/vc-list-files: Use "svn list" to generate the list of
15601         files controlled by subversion.
15602
15603 2010-04-23  Jim Meyering  <meyering@redhat.com>
15604
15605         vc-list-files tests: convert to use init.sh
15606         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15607         path_prepend_.
15608         Use Exit, not exit.
15609         Use skip_ rather than open coding it.
15610         Remove trap set-up and compare definitions.
15611         * tests/test-vc-list-files-git.sh: Likewise.
15612         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15613
15614 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15615
15616         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15617         backup files.
15618
15619 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15620
15621         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15622
15623 2010-04-20  Eric Blake  <eblake@redhat.com>
15624
15625         tests: be robust to ignored SIGPIPE
15626         * tests/test-select-in.sh: Consume all output.
15627         * tests/test-lseek.sh: Check correct exit status, while avoiding
15628         EPIPE.
15629
15630 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15631             Bruno Haible  <bruno@clisp.org>
15632
15633         visibility: Don't use -fvisibility if it leads to a warning.
15634         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15635         yes, don't pretend that visibility works if it leads to a warning.
15636         Reported by Mike Gran <spk121@yahoo.com>.
15637
15638 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15639
15640         * build-aux/bootstrap: Use "git -h" for testing for supported options
15641         instead of "git --help".  The short-form option only shows a summary,
15642         and doesn't layout the full man page.  Grep for the full option name
15643         in the summary, too.
15644
15645 2010-04-19  Bruno Haible  <bruno@clisp.org>
15646
15647         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15648         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15649         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15650         mention of RELOCATABLE_STRIP.
15651         Reported by Sylvain Beucler <beuc@beuc.net>.
15652
15653 2010-04-19  Bruno Haible  <bruno@clisp.org>
15654
15655         * lib/diffseq.h: Fix typo in comment.
15656         Reported by Eric Blake.
15657
15658 2010-04-19  Bruno Haible  <bruno@clisp.org>
15659
15660         ioctl: Move autoconf macro to a .m4 file.
15661         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15662         * modules/ioctl (Files): Add it.
15663         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15664         Reported by Ian Beckwith <ianb@erislabs.net>.
15665
15666 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15667             Bruno Haible  <bruno@clisp.org>
15668
15669         diffseq: Accommodate use-case with abstract arrays.
15670         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15671         is not defined.
15672         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15673         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15674
15675 2010-04-18  Bruno Haible  <bruno@clisp.org>
15676
15677         * doc/posix-headers/stdbool.texi: More precise wording.
15678
15679 2010-04-17  Jim Meyering  <meyering@redhat.com>
15680
15681         maint.mk: use gnu-style indentation in an embedded perl script
15682         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15683         Rename variable: s/two/last_two_bytes/
15684
15685 2010-04-16  Eric Blake  <eblake@redhat.com>
15686
15687         test-stdbool: skip test that fails with Solaris CC
15688         * tests/test-stdbool.c (f): Skip test that causes compilation
15689         error under buggy C++ compiler.
15690         * lib/stdbool.in.h: Document the limitation.
15691         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15692
15693         setenv: allow compilation with C++
15694         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15695         register keyword.
15696
15697         stdint: allow test to pass with C++
15698         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15699
15700         getopt: allow compilation with C++
15701         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15702         struct.
15703         * lib/getopt.c (_getopt_internal_r): Use correct type.
15704         Reported by Dagobert Michelson, via Joel E. Denny.
15705
15706 2010-04-16  Bruno Haible  <bruno@clisp.org>
15707
15708         Override netdb.h always.
15709         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15711         Reported by Ludovic Courtès <ludo@gnu.org>.
15712
15713 2010-04-15  Bruno Haible  <bruno@clisp.org>
15714
15715         openpty: Fix mistake from 2010-03-21.
15716         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15717         Reported by Simon Josefsson.
15718
15719 2010-04-15  Eric Blake  <eblake@redhat.com>
15720
15721         test-forkpty: fix expected signature
15722         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15723         Reported by Simon Josefsson.
15724
15725 2010-04-15  Jim Meyering  <meyering@redhat.com>
15726
15727         maint.mk: texinfo_suffix_re_: correct the default regexp
15728         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15729
15730         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15731         make it configurable via texinfo_suffix_re_.
15732
15733 2010-04-14  Eric Blake  <eblake@redhat.com>
15734
15735         strtok_r: relax license to LGPLv2+
15736         * modules/strtok_r (License): Relax license.
15737         Reported by Matthias Bolte.
15738
15739 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15740
15741         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15742         version 1.4.4 by default instead of requiring the libgcrypt
15743         version used during build.  This makes it possible to use the
15744         application with older but still binary compatible libgcrypt
15745         versions.
15746
15747 2010-04-13  Eric Blake  <eblake@redhat.com>
15748
15749         getopt-gnu: match recent glibc fixes and posix ruling
15750         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15751         '+' handling, when requesting extensions.
15752         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15753         'W;' handling.
15754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15755         * doc/posix-functions/getopt.texi (getopt): Document this.
15756         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15757         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15758         Likewise.
15759
15760         getopt: merge bug fixes from glibc
15761         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15762         diagnostics.  Honor '+:' correctly.  Reject ';'.
15763
15764         getopt-posix: detect MacOS bug
15765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15766         optind when missing a required argument.
15767         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15768         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15769         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15770         Likewise.
15771
15772         getopt-posix: avoid spurious failure on Solaris
15773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15774         an indicator that setting optind=1 is sufficient for reset.
15775
15776         getopt-posix: avoid spurious failure on FreeBSD
15777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15778         in POSIX mode, since the m4 test uses it.
15779
15780         gnulib-tool: silence warning on BSD sh
15781         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15782
15783 2010-04-13  Jim Meyering  <meyering@redhat.com>
15784
15785         doc: users.txt: GNU patch now uses gnulib
15786         * users.txt: Add patch.
15787
15788 2010-04-12  Jim Meyering  <meyering@redhat.com>
15789
15790         maint.mk: generate more concise timing data for syntax-check rules
15791         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15792         " done" from each line that reports a syntax-check test duration.
15793
15794 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15795
15796         git-version-gen: use "git update-index..." rather than "git status"
15797         * build-aux/git-version-gen: Use git update-index --refresh, not
15798         "git status".  With some versions of git, "git status" would fail
15799         to update the index and result in an unwarranted "-dirty" suffix.
15800
15801 2010-04-11  Jim Meyering  <meyering@redhat.com>
15802
15803         openat: correct formatting (no semantic change)
15804         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15805         Suggested by Bruno Haible.
15806
15807 2010-04-11  Bruno Haible  <bruno@clisp.org>
15808
15809         Stricter declaration checking in testdirs.
15810         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15811         If for_tests is true, augment AM_CPPFLAGS to define
15812         GNULIB_STRICT_CHECKING.
15813         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15814         GNULIB_STRICT_CHECKING is defined, verify that the function is
15815         declared.
15816
15817 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15818             Bruno Haible  <bruno@clisp.org>
15819
15820         libunistring: Improve configure output.
15821         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15822         Don't say "consider installing GNU libunistring" when checking again
15823         with libiconv.
15824
15825 2010-04-11  Bruno Haible  <bruno@clisp.org>
15826
15827         libunistring: Correct value of $LTLIBUNISTRING.
15828         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15829         correct the value of $LTLIBUNISTRING.
15830
15831 2010-04-11  Bruno Haible  <bruno@clisp.org>
15832
15833         havelib: Add static libraries to LIBS in the right order.
15834         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15835         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15836
15837 2010-04-11  Bruno Haible  <bruno@clisp.org>
15838
15839         libunistring: Detect libunistring also when it depends on libiconv.
15840         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15841         the second AC_LIB_HAVE_LINKFLAGS invocation.
15842
15843 2010-04-11  James Youngman  <jay@gnu.org>
15844
15845         close-stream: declare local scalars to be "const"
15846         * lib/close-stream.c (close_stream): Make boolean variables const
15847         to document the fact that we set but do not change them.
15848
15849 2010-04-11  Bruno Haible  <bruno@clisp.org>
15850
15851         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15852
15853 2010-04-11  Jim Meyering  <meyering@redhat.com>
15854
15855         maint.mk: don't include dist-check.mk
15856         * top/maint.mk: Remove bogus include directive.
15857
15858         maint.mk: improve empty-line-at-EOF check
15859         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15860         solution, rather than tail+Perl-based one.  The latter would read
15861         a few kilobytes from the end of each file, and did not handle empty
15862         files properly.
15863
15864         maint.mk: print the elapsed time for each syntax-check rule
15865         * top/maint.mk (sc_m_rules_): Save start time in a file.
15866         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15867         (local-check): Interpose the .z rules
15868
15869 2010-04-11  Jim Meyering  <meyering@redhat.com>
15870
15871         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15872         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15873         empty file with one that ends in an empty line.
15874
15875 2010-04-10  Bruno Haible  <bruno@clisp.org>
15876
15877         mkdir: Make it work on mingw64.
15878         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15879         * lib/mkdir.c: Update comment.
15880         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15881
15882 2010-04-10  Bruno Haible  <bruno@clisp.org>
15883
15884         Don't override improved macro from newer autoconf.
15885         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15886         autoconf >= 2.62.
15887         Reported by Joel E. Denny <jdenny@clemson.edu>.
15888
15889 2010-04-10  Jim Meyering  <meyering@redhat.com>
15890
15891         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15892         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15893
15894         maint.mk: correct a diagnostic
15895         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15896         in diagnostic; now use $prohibit.
15897
15898 2010-04-10  Bruno Haible  <address@hidden>
15899
15900         fchownat: Fix a C++ test error on Solaris 8.
15901         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15902         the function does not exist.
15903
15904 2010-04-10  Bruno Haible  <bruno@clisp.org>
15905
15906         vasnprintf: Add more tests.
15907         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15908         (test_function): Test converting an invalid wide string.
15909
15910         vasnprintf: Correct handling of unconvertible wide string arguments.
15911         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15912         VASNPRINTF.
15913         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15914         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15915         smaller than the expected maximum need for the directive. Set errno to
15916         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15917         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15919         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15920         * modules/vasnprintf (Files): Add m4/printf.m4.
15921         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15922
15923 2010-04-10  Bruno Haible  <bruno@clisp.org>
15924
15925         vasnprintf: Fix crash in %ls directive.
15926         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15927         string is passed as argument to %ls, with no precision and no width.
15928         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15929
15930 2010-04-10  Bruno Haible  <bruno@clisp.org>
15931
15932         vasnprintf: Fix multiple test failures on mingw.
15933         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15934         _snprintf, or snwprintf, not _snwprintf.
15935
15936 2010-04-10  Bruno Haible  <bruno@clisp.org>
15937
15938         write: Fix a C++ test error on mingw.
15939         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15940
15941 2010-04-10  Bruno Haible  <bruno@clisp.org>
15942
15943         vasnprintf test: Reduce code duplication.
15944         * tests/test-vasnprintf.c (test_function): New function, extracted from
15945         test_vasnprintf.
15946         (test_vasnprintf, test_asnprintf): Invoke it.
15947
15948 2010-04-10  Bruno Haible  <bruno@clisp.org>
15949
15950         strnlen: Fix warning in C++ mode on MacOS X.
15951         * lib/string.in.h (strnlen): Use the modern idiom.
15952         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15953         defining strnlen as a macro already in <config.h>.
15954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15955         REPLACE_STRNLEN.
15956         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15957         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15958
15959 2010-04-08  James Youngman  <jay@gnu.org>
15960
15961         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15962         the example.
15963
15964 2010-04-09  Jim Meyering  <meyering@redhat.com>
15965
15966         maint.mk: print better diagnostic when there is no $(_hv_file)
15967         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15968         announce that when $(_hv_file) (aka help-version) does not exist.
15969
15970         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15971         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15972         not try to interpret its random input bytes.  Jarno Rajahalme reported
15973         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15974         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15975         (mktempd_): Likewise, just in case.
15976
15977         ftruncate: add two years to projected module removal date: 2012
15978         * m4/ftruncate.m4: Adjust comments.
15979
15980         ftruncate: mark module as obsolete; even MinGW provides it, now
15981         * modules/ftruncate (Status): Obsolete.
15982         (Notice): Say that.
15983         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15985
15986 2010-04-08  Bruno Haible  <bruno@clisp.org>
15987
15988         Fix side effects from tests-related modules.
15989         * modules/dprintf-posix (Comment): New section.
15990         * modules/fprintf-posix (Comment): Likewise.
15991         * modules/obstack-printf-posix (Comment): Likewise.
15992         * modules/printf-posix (Comment): Likewise.
15993         * modules/snprintf-posix (Comment): Likewise.
15994         * modules/sprintf-posix (Comment): Likewise.
15995         * modules/vasnprintf-posix (Comment): Likewise.
15996         * modules/vasprintf-posix (Comment): Likewise.
15997         * modules/vdprintf-posix (Comment): Likewise.
15998         * modules/vfprintf-posix (Comment): Likewise.
15999         * modules/vprintf-posix (Comment): Likewise.
16000         * modules/vsnprintf-posix (Comment): Likewise.
16001         * modules/vsprintf-posix (Comment): Likewise.
16002         * modules/xprintf-posix (Comment): Likewise.
16003         * modules/xvasprintf-posix (Comment): Likewise.
16004         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16005         * modules/floorf-tests (Depends-on): Likewise.
16006         * modules/round-tests (Depends-on): Likewise.
16007         * modules/roundf-tests (Depends-on): Likewise.
16008         * modules/trunc-tests (Depends-on): Likewise.
16009         * modules/truncf-tests (Depends-on): Likewise.
16010         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16011         'fprintf-posix' module is not present.
16012         * tests/test-floorf2.c (check): Likewise.
16013         * tests/test-trunc2.c (check): Likewise.
16014         * tests/test-truncf2.c (check): Likewise.
16015         * tests/test-round2.c (equal): Likewise.
16016         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16017
16018 2010-04-07  Karl Berry  <karl@gnu.org>
16019
16020         * config/srclist.txt,
16021         * config/srclistvars.sh,
16022         * config/srclist-update: doc fixes.
16023
16024 2010-04-07  Jim Meyering  <meyering@redhat.com>
16025
16026         maint.mk: add a PATH crosschecking syntax-check rule
16027         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16028         Useful if you use a test like the one in help-version (coreutils,
16029         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16030         printed by prog --version.
16031
16032 2010-04-06  Bruno Haible  <bruno@clisp.org>
16033
16034         Fix link error on mingw.
16035         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16036         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16037
16038 2010-04-06  Bruno Haible  <bruno@clisp.org>
16039
16040         Assume rmdir exists.
16041         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16042
16043 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16044
16045         doc: update users.txt
16046         * users.txt: Add gcal.
16047
16048 2010-04-06  Jim Meyering  <meyering@redhat.com>
16049
16050         init.sh: simply unset TMPDIR rather than risking env -i
16051         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
16052         although it probably works fine on all Unix-based systems, some
16053         systems (Cygwin?) cannot tolerate a totally cleared environment.
16054         Suggestion from Eric Blake.
16055
16056 2010-04-06  Jim Meyering  <meyering@redhat.com>
16057
16058         init.sh: portability fix: use env's POSIX-specified -i option not -u
16059         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16060         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16061
16062 2010-04-05  Bruno Haible  <bruno@clisp.org>
16063
16064         btowc: Work around Cygwin 1.7.2 bug.
16065         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16066         does not map NUL to 0.
16067         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16068
16069 2010-04-05  Bruno Haible  <bruno@clisp.org>
16070
16071         Make the multithread modules work on Cygwin 1.7.2.
16072         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16073         imported symbols can be declared weak, so that it returns "no" on
16074         Cygwin 1.7.2.
16075
16076 2010-04-05  Bruno Haible  <bruno@clisp.org>
16077
16078         Use the module 'strncat'.
16079         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16080
16081         Tests for module 'strncat'.
16082         * modules/strncat-tests: New file.
16083         * tests/test-strncat.c: New file.
16084
16085         New module 'strncat'.
16086         * lib/string.in.h (strncat): New declaration.
16087         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16088         * m4/strncat.m4: New file, based on m4/memchr.m4.
16089         * modules/strncat: New file.
16090         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16091         is declared.
16092         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16093         REPLACE_STRNCAT.
16094         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16095         REPLACE_STRNCAT.
16096         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16097         module.
16098         * tests/test-string-c++.cc: Check signature of strncat.
16099
16100 2010-04-05  Jim Meyering  <meyering@redhat.com>
16101
16102         xstrtoumax-tests: convert to use init.sh
16103         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16104         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16105         Use Exit, not exit.
16106         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16107
16108         xstrtoimax-tests: convert to use init.sh
16109         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16110         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16111         Use Exit, not exit.
16112         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16113
16114 2010-04-05  Bruno Haible  <bruno@clisp.org>
16115
16116         sys_socket: Avoid #define replacements in C++ mode.
16117         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16118         warning to the function if possible, rather than #defining the symbol
16119         to a dysfunctional alias.
16120
16121 2010-04-05  Bruno Haible  <bruno@clisp.org>
16122
16123         fseeko: Fix C++ test error on mingw.
16124         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16125         gl_FUNC_FSEEKO.
16126         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16127         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16128         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16129         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16130
16131 2010-04-05  Bruno Haible  <bruno@clisp.org>
16132
16133         duplocale: Improve test output.
16134         * tests/test-duplocale.c (main): Print reason for skipped test.
16135
16136 2010-04-05  Bruno Haible  <bruno@clisp.org>
16137
16138         Assume rmdir exists.
16139         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16140         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16141
16142 2010-04-05  Bruno Haible  <bruno@clisp.org>
16143
16144         Fix link error on Solaris 8 with cc.
16145         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16146
16147 2010-04-05  Bruno Haible  <bruno@clisp.org>
16148
16149         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16150         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16151
16152 2010-04-05  Bruno Haible  <bruno@clisp.org>
16153
16154         vasprintf: Update documentation.
16155         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16156
16157 2010-04-05  Bruno Haible  <bruno@clisp.org>
16158
16159         ptsname: Improve test.
16160         * tests/test-ptsname.c (main): Also try the various master names of BSD
16161         systems.
16162
16163 2010-04-05  Bruno Haible  <bruno@clisp.org>
16164
16165         memchr: Avoid a possible C++ test error.
16166         * lib/string.in.h (memchr): Provide declaration if function is missing.
16167         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16168         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16170         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16171
16172 2010-04-05  Bruno Haible  <bruno@clisp.org>
16173
16174         strtok_r: Improve idiom.
16175         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16176         AC_LIBOBJ is used.
16177
16178 2010-04-05  Bruno Haible  <bruno@clisp.org>
16179
16180         strdup: Improve idiom.
16181         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16182         AC_LIBOBJ is used.
16183         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16184         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16185         when AC_LIBOBJ is used.
16186
16187 2010-04-05  Bruno Haible  <bruno@clisp.org>
16188
16189         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16190         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16191         don't set REPLACE_MBSINIT to 1.
16192         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16193         don't set REPLACE_MBRTOWC to 1.
16194         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16195         exist, don't set REPLACE_MBSRTOWCS to 1.
16196         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16197         exist, don't set REPLACE_MBSNRTOWCS to 1.
16198         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16199         don't set REPLACE_WCRTOMB to 1.
16200         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16201         exist, don't set REPLACE_WCSRTOMBS to 1.
16202         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16203         exist, don't set REPLACE_WCSNRTOMBS to 1.
16204
16205 2010-04-05  Bruno Haible  <bruno@clisp.org>
16206
16207         ldexpl: Improve idiom.
16208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16209         make sure to set HAVE_DECL_LDEXPL to 0.
16210
16211 2010-04-05  Jim Meyering  <meyering@redhat.com>
16212
16213         xstrtol-tests: convert to use init.sh
16214         * modules/xstrtol-tests (Files): Add tests/init.sh.
16215         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16216         Use Exit, not exit.
16217         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16218
16219         atexit-tests: convert to use init.sh
16220         * modules/atexit-tests (Files): Add tests/init.sh.
16221         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16222         Use Exit, not exit.
16223         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16224
16225         init.sh: fix typo
16226         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16227
16228         init.sh: make it easier for a test script to write to the tty, ...
16229         when using automake's parallel-tests mode.
16230         * tests/init.sh (stderr_fileno_): Define overridable variable.
16231         (warn_): New function, to use it.
16232         (fail_, skip_, framework_failure_): Use warn_.
16233
16234 2010-04-04  Bruno Haible  <bruno@clisp.org>
16235
16236         btowc: Avoid warning.
16237         * lib/btowc.c: Include <stdlib.h>.
16238         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16239
16240 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16241             Bruno Haible  <bruno@clisp.org>
16242
16243         wchar: Port to NetBSD 1.5.
16244         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16245         * lib/wctype.in.h (WEOF): Likewise.
16246
16247 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16248             Bruno Haible  <bruno@clisp.org>
16249
16250         Port extended stdio to NetBSD 1.5.
16251         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16252         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16253         older.
16254
16255 2010-04-04  Bruno Haible  <bruno@clisp.org>
16256
16257         string: Remove unused substitution.
16258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16259         HAVE_DECL_STRERROR.
16260         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16261
16262 2010-04-04  Bruno Haible  <bruno@clisp.org>
16263
16264         strtod: Avoid a possible C++ test error.
16265         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16266         set REPLACE_STRTOD.
16267
16268 2010-04-04  Bruno Haible  <bruno@clisp.org>
16269
16270         strerror: Update documentation.
16271         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16272
16273 2010-04-04  Bruno Haible  <bruno@clisp.org>
16274
16275         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16276         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16277         _GL_CXXALIAS_SYS_CAST.
16278
16279 2010-04-04  Bruno Haible  <bruno@clisp.org>
16280
16281         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16282         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16283         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16284         REPLACE_FREXPL to 1.
16285         * doc/posix-functions/frexpl.texi: Update documentation.
16286
16287 2010-04-04  Bruno Haible  <bruno@clisp.org>
16288
16289         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16290         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16291
16292 2010-04-04  Bruno Haible  <bruno@clisp.org>
16293
16294         Implement nanosleep for native Windows.
16295         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16296
16297 2010-04-04  Bruno Haible  <bruno@clisp.org>
16298
16299         math: Fix some C++ test errors on Solaris 8.
16300         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16301
16302 2010-04-04  Bruno Haible  <bruno@clisp.org>
16303
16304         math: Fix some C++ test errors on Cygwin.
16305         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16306         truncl): Provide declaration if the system does not have it.
16307         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16308         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16309         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16310         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16311         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16312         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16313         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16314         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16315         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16316         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16317         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16318         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16319         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16320         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16321         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16322         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16324         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16325         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16326         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16327         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16328         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16329
16330 2010-04-04  Bruno Haible  <bruno@clisp.org>
16331
16332         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16333         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16334         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16335         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16336         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16337         * m4/isinf.m4 (gl_ISINF): Likewise.
16338         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16339
16340 2010-04-04  Bruno Haible  <bruno@clisp.org>
16341
16342         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16343         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16344
16345 2010-04-04  Bruno Haible  <bruno@clisp.org>
16346
16347         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16348         * modules/tmpfile (configure.ac): Update.
16349
16350         tmpfile: Fix C++ test error on mingw.
16351         * lib/stdio.in.h (tmpfile): New declaration.
16352         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16353         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16354         * modules/tmpfile (Depends-on): Add stdio.
16355         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16356         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16357         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16358         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16359         REPLACE_TMPFILE.
16360         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16361
16362 2010-04-04  Bruno Haible  <bruno@clisp.org>
16363
16364         ioctl: Fix C++ test error on mingw.
16365         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16366         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16367         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16368
16369 2010-04-03  Bruno Haible  <bruno@clisp.org>
16370
16371         wcwidth: Fix C++ test error on mingw.
16372         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16374         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16375
16376 2010-04-03  Bruno Haible  <bruno@clisp.org>
16377
16378         nanosleep: Fix C++ test error on mingw.
16379         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16380         * lib/time.in.h (nanosleep): Use modern idiom.
16381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16382         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16383         REPLACE_NANOSLEEP to 1.
16384         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16385         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16386
16387 2010-04-03  Bruno Haible  <bruno@clisp.org>
16388
16389         strptime: Fix C++ test error on mingw.
16390         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16391         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16392         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16393         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16394         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16395         not REPLACE_STRPTIME.
16396         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16397         REPLACE_STRPTIME.
16398
16399 2010-04-03  Bruno Haible  <bruno@clisp.org>
16400
16401         timegm: Fix C++ test error on mingw.
16402         * lib/time.in.h (timegm): Use modern idiom.
16403         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16404         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16405         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16406         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16407
16408 2010-04-03  Bruno Haible  <bruno@clisp.org>
16409
16410         timegm: Assume declaration if function exists.
16411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16412         if it exists. Don't clobber ac_cv_func_timegm.
16413
16414 2010-04-03  Bruno Haible  <bruno@clisp.org>
16415
16416         time_r: Fix C++ test error on mingw.
16417         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16418         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16419         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16420         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16421         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16422
16423 2010-04-03  Bruno Haible  <bruno@clisp.org>
16424
16425         time_r: Minor updates.
16426         * modules/time_r (Description): Mention the provided functions.
16427         * lib/time_r.c: Don't include <string.h>.
16428         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16429         * doc/posix-functions/localtime_r.texi: Likewise.
16430
16431 2010-04-03  Bruno Haible  <bruno@clisp.org>
16432
16433         time: Fix regression introduced on 2010-03-08.
16434         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16435         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16436
16437 2010-04-03  Jim Meyering  <meyering@redhat.com>
16438
16439         maint.mk: don't silently disable project-specific syntax-check rules
16440         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16441         that they need to convert their project-specific syntax-check rules
16442         to use the new _sc_search_regexp.
16443
16444 2010-04-03  Bruno Haible  <bruno@clisp.org>
16445
16446         fchdir: Fix regression introduced on 2010-03-08.
16447         * lib/unistd.in.h (fchdir): Fix declaration.
16448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16450         REPLACE_FCHDIR.
16451         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16452         REPLACE_FCHDIR.
16453
16454 2010-04-03  Bruno Haible  <bruno@clisp.org>
16455
16456         getpagesize: Fix C++ test error on mingw.
16457         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16458         system does not declare the function.
16459         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16460         declared.
16461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16462         HAVE_DECL_GETPAGESIZE.
16463         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16464
16465 2010-04-03  Bruno Haible  <bruno@clisp.org>
16466
16467         stdio: Make C++ tests work on mingw.
16468         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16469         does not declare the function.
16470
16471 2010-04-03  Bruno Haible  <bruno@clisp.org>
16472
16473         ftello: Fix C++ test error on mingw.
16474         * lib/stdio.in.h (ftello): Use modern idiom.
16475         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16476         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16477         is missing and that it needs to be replaced.
16478         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16480         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16481
16482 2010-04-03  Bruno Haible  <bruno@clisp.org>
16483
16484         fseeko: Fix C++ test error on mingw.
16485         * lib/stdio.in.h (fseeko): Use modern idiom.
16486         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16488         is missing and that it needs to be replaced.
16489         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16491         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16492
16493 2010-04-03  Bruno Haible  <bruno@clisp.org>
16494
16495         mkstemp: Fix C++ test error on mingw.
16496         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16498         function is missing and that it needs to be replaced.
16499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16500         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16501
16502 2010-04-03  Bruno Haible  <bruno@clisp.org>
16503
16504         stpncpy: Fix C++ test error on mingw.
16505         * lib/string.in.h (stpncpy): Use modern idiom.
16506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16507         function is missing and that it needs to be replaced.
16508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16509         REPLACE_STPNCPY.
16510         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16511
16512 2010-04-03  Bruno Haible  <bruno@clisp.org>
16513
16514         sys_stat: Fix C++ test error on mingw.
16515         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16516         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16517
16518 2010-04-03  Bruno Haible  <bruno@clisp.org>
16519
16520         pty: Update doc.
16521         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16522
16523 2010-04-03  Bruno Haible  <bruno@clisp.org>
16524
16525         unistd: Fix C++ test error on mingw.
16526         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16527
16528 2010-04-03  Bruno Haible  <bruno@clisp.org>
16529
16530         Update doc regarding mingw.
16531         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16532         * doc/glibc-functions/login_tty.texi: Likewise.
16533         * doc/glibc-functions/forkpty.texi: Likewise.
16534
16535 2010-04-03  Bruno Haible  <bruno@clisp.org>
16536
16537         stdlib: Avoid compilation failure of c-strtold on mingw.
16538         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16539
16540 2010-04-03  Bruno Haible  <bruno@clisp.org>
16541
16542         locale: Make C++ tests work on Cygwin and mingw.
16543         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16544         cannot provide the function.
16545         Reported by Simon Josefsson.
16546
16547 2010-04-03  Bruno Haible  <bruno@clisp.org>
16548
16549         localename: Port to MacOS X 10.6.
16550         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16551         memory layout of the locales in MacOS X 10.6 as well.
16552         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16553
16554 2010-04-02  Bruno Haible  <bruno@clisp.org>
16555
16556         gnulib-tool: Ensure that long-running tests are executed last.
16557         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16558         running tests after the one for the other tests.
16559
16560 2010-04-02  Bruno Haible  <bruno@clisp.org>
16561
16562         gnulib-tool: Ensure the tests in the main directory are executed first.
16563         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16564         start with the current directory.
16565
16566 2010-04-02  Bruno Haible  <bruno@clisp.org>
16567
16568         Tests for module 'havelib', moved here from GNU gettext.
16569         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16570         modifications.
16571         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16572         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16573         with modifications.
16574         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16575         modifications.
16576         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16577         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16578         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16579         with modifications.
16580         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16581         with modifications.
16582         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16583         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16584         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16585         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16586         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16587         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16588         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16589         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16590         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16591         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16592         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16593         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16594         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16595         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16596         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16597         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16598         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16599         with modifications.
16600         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16601         with modifications.
16602         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16603         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16604         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16605         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16606         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16607         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16608         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16609         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16610         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16611         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16612         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16613         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16614         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16615         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16616         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16617         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16618         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16619         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16620         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16621         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16622         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16623         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16624         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16625         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16626         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16627         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16628         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16629         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16630         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16631         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16632         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16633         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16634         * tests/havelib/rpathx/rpathx.c: New file, from
16635         gettext/autoconf-lib-link.
16636         * tests/havelib/rpathx/Makefile.am: New file, from
16637         gettext/autoconf-lib-link.
16638         * tests/havelib/rpathx/configure.ac: New file, from
16639         gettext/autoconf-lib-link with modifications.
16640         * tests/havelib/rpathy/rpathy.c: New file, from
16641         gettext/autoconf-lib-link.
16642         * tests/havelib/rpathy/Makefile.am: New file, from
16643         gettext/autoconf-lib-link.
16644         * tests/havelib/rpathy/configure.ac: New file, from
16645         gettext/autoconf-lib-link with modifications.
16646         * tests/havelib/rpathz/rpathz.c: New file, from
16647         gettext/autoconf-lib-link.
16648         * tests/havelib/rpathz/Makefile.am: New file, from
16649         gettext/autoconf-lib-link.
16650         * tests/havelib/rpathz/configure.ac: New file, from
16651         gettext/autoconf-lib-link with modifications.
16652         * tests/havelib/rpathlx/usex.c: New file, from
16653         gettext/autoconf-lib-link.
16654         * tests/havelib/rpathlx/Makefile.am: New file, from
16655         gettext/autoconf-lib-link.
16656         * tests/havelib/rpathlx/configure.ac: New file, from
16657         gettext/autoconf-lib-link with modifications.
16658         * tests/havelib/rpathly/usey.c: New file, from
16659         gettext/autoconf-lib-link.
16660         * tests/havelib/rpathly/Makefile.am: New file, from
16661         gettext/autoconf-lib-link.
16662         * tests/havelib/rpathly/configure.ac: New file, from
16663         gettext/autoconf-lib-link with modifications.
16664         * tests/havelib/rpathlz/usez.c: New file, from
16665         gettext/autoconf-lib-link.
16666         * tests/havelib/rpathlz/Makefile.am: New file, from
16667         gettext/autoconf-lib-link.
16668         * tests/havelib/rpathlz/configure.ac: New file, from
16669         gettext/autoconf-lib-link with modifications.
16670         * tests/havelib/rpathlyx/usey.c: New file, from
16671         gettext/autoconf-lib-link.
16672         * tests/havelib/rpathlyx/Makefile.am: New file, from
16673         gettext/autoconf-lib-link.
16674         * tests/havelib/rpathlyx/configure.ac: New file, from
16675         gettext/autoconf-lib-link with modifications.
16676         * tests/havelib/rpathlzyx/usez.c: New file, from
16677         gettext/autoconf-lib-link.
16678         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16679         gettext/autoconf-lib-link.
16680         * tests/havelib/rpathlzyx/configure.ac: New file, from
16681         gettext/autoconf-lib-link with modifications.
16682         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16683         with modifications.
16684
16685 2010-04-02  Bruno Haible  <bruno@clisp.org>
16686
16687         gnulib-tool: Create distributed built sources also for the tests.
16688         * gnulib-tool (func_create_testdir): Also generate distributed built
16689         sources in the tests directory.
16690
16691 2010-04-02  Bruno Haible  <bruno@clisp.org>
16692
16693         gnulib-tool: Obey user's environment variables.
16694         * gnulib-tool (func_create_testdir): When creating built sources,
16695         respect the environment variables for autoconf, automake, etc. given by
16696         the user.
16697
16698 2010-04-02  Bruno Haible  <bruno@clisp.org>
16699
16700         gnulib-tool: Provide the value of --m4-base to modules.
16701         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16702         of gl_m4_base.
16703
16704 2010-04-02  Eric Blake  <eblake@redhat.com>
16705
16706         maint.mk: fix some fallout
16707         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16708         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16709
16710 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16711
16712         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16713         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16714         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16715         (sc_cast_of_x_alloc_return_value): Likewise.
16716         (sc_cast_of_alloca_return_value): Likewise.
16717         (sc_space_tab): Likewise.
16718         (sc_prohibit_atoi_atof): Likewise.
16719         (sc_prohibit_magic_number_exit): Likewise.
16720         (sc_error_exit_success): Likewise.
16721         (sc_file_system): Likewise.
16722         (sc_prohibit_have_config_h): Likewise.
16723         (sc_require_config_h): Likewise.
16724         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16725         (sc_obsolete_symbols): Likewise.
16726         (sc_changelog): Likewise.
16727         (sc_program_name): Likewise.
16728         (sc_the_the): Likewise.
16729         (sc_trailing_blank): Likewise.
16730         (sc_two_space_separator_in_usage): Likewise.
16731         (sc_useless_cpp_parens): Likewise.
16732         (sc_GPL_version): Likewise.
16733         (sc_GFDL_version): Likewise.
16734         (sc_texinfo_acronym): Likewise.
16735         (sc_prohibit_cvs_keyword): Likewise.
16736         (sc_prohibit_stat_st_blocks): Likewise.
16737         (sc_prohibit_S_IS_definition): Likewise.
16738         (sc_redundant_const): Likewise.
16739         (sc_makefile_TAB_only_indentation): Likewise.
16740         (sc_m4_quote_check): Likewise.
16741         (sc_makefile_path_separator_check): Likewise.
16742         (sc_copyright_check): Likewise.
16743         (sc_Wundef_boolean): Likewise.
16744         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16745
16746         maint.mk: match 0 or more whitespace-before-function-call '('
16747         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16748         that have zero or two-and-more spaces between the function name
16749         and the open parenthesis.
16750         (sc_error_message_warn_fatal): Likewise.
16751         (sc_error_message_uppercase): Likewise.
16752         (sc_error_message_period): Likewise.
16753
16754 2010-03-31  Eric Blake  <eblake@redhat.com>
16755
16756         maint.mk: check for [ as well as test
16757         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16758         Based on a libvirt report by Matthias Bolte.
16759
16760         gnumakefile: don't squelch _version output
16761         * top/GNUmakefile (_version): Create one-shot dependency rather
16762         than using $(shell) when version must be regenerated.
16763         (_autoreconf): Run verbosely, by default.
16764
16765         sys_time: avoid compiler warnings
16766         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16767         unconditional, fixing regression from 2010-03-29.
16768         Reported by Simon Josefsson.
16769
16770 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16771
16772         maint.mk: s/_header_without_use/_sc_header_without_use/
16773         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16774         (sc_prohibit_assert_without_use): Use the new name.
16775         (sc_prohibit_close_stream_without_use): Likewise.
16776         (sc_prohibit_getopt_without_use): Likewise.
16777         (sc_prohibit_quotearg_without_use): Likewise.
16778         (sc_prohibit_quote_without_use): Likewise.
16779         (sc_prohibit_long_options_without_use): Likewise.
16780         (sc_prohibit_inttostr_without_use): Likewise.
16781         (sc_prohibit_ignore_value_without_use): Likewise.
16782         (sc_prohibit_error_without_use): Likewise.
16783         (sc_prohibit_xalloc_without_use): Likewise.
16784         (sc_prohibit_hash_without_use): Likewise.
16785         (sc_prohibit_hash_pjw_without_use): Likewise.
16786         (sc_prohibit_safe_read_without_use): Likewise.
16787         (sc_prohibit_argmatch_without_use): Likewise.
16788         (sc_prohibit_canonicalize_without_use): Likewise.
16789         (sc_prohibit_root_dev_ino_without_use): Likewise.
16790         (sc_prohibit_openat_without_use): Likewise.
16791         (sc_prohibit_c_ctype_without_use): Likewise.
16792         (sc_prohibit_signal_without_use): Likewise.
16793         (sc_prohibit_intprops_without_use): Likewise.
16794
16795 2010-03-30  Eric Blake  <eblake@redhat.com>
16796
16797         maint: improve module indicators
16798         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16799         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16800         columns, and avoid extra macro expansion.
16801
16802         fdopendir: work around FreeBSD bug
16803         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16804         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16805         * modules/dirent (Makefile.am): Substitute it.
16806         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16807         declaration.
16808         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16809         fix.
16810         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16811
16812 2010-03-29  Bruno Haible  <bruno@clisp.org>
16813
16814         Emit #pragma system_header after the inclusion guard, not before.
16815         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16816         guard that spans the entire file, not before. This enables an
16817         optimization in GCC's preprocessor.
16818         * lib/ctype.in.h: Likewise.
16819         * lib/dirent.in.h: Likewise.
16820         * lib/errno.in.h: Likewise.
16821         * lib/float.in.h: Likewise.
16822         * lib/getopt.in.h: Likewise.
16823         * lib/iconv.in.h: Likewise.
16824         * lib/langinfo.in.h: Likewise.
16825         * lib/locale.in.h: Likewise.
16826         * lib/math.in.h: Likewise.
16827         * lib/netdb.in.h: Likewise.
16828         * lib/netinet_in.in.h: Likewise.
16829         * lib/pty.in.h: Likewise.
16830         * lib/sched.in.h: Likewise.
16831         * lib/se-selinux.in.h: Likewise.
16832         * lib/search.in.h: Likewise.
16833         * lib/spawn.in.h: Likewise.
16834         * lib/stdarg.in.h: Likewise.
16835         * lib/stdint.in.h: Likewise.
16836         * lib/string.in.h: Likewise.
16837         * lib/strings.in.h: Likewise.
16838         * lib/sys_file.in.h: Likewise.
16839         * lib/sys_ioctl.in.h: Likewise.
16840         * lib/sys_time.in.h: Likewise.
16841         * lib/sys_times.in.h: Likewise.
16842         * lib/sys_utsname.in.h: Likewise.
16843         * lib/sys_wait.in.h: Likewise.
16844         * lib/sysexits.in.h: Likewise.
16845         * lib/wctype.in.h: Likewise.
16846
16847 2010-03-28  James Youngman  <jay@gnu.org>
16848
16849         save-cwd: don't leak a file descriptor when the caller execs.
16850         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16851         saved file descriptor.
16852         * modules/save-cwd (Depends-on): Depend on cloexec.
16853
16854 2010-03-29  Bruno Haible  <bruno@clisp.org>
16855
16856         Remove vestiges of fts-lgpl module.
16857         * lib/fts_.h: Assume GNULIB_FTS is 1.
16858         * lib/fts.c: Likewise.
16859         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16860
16861 2010-03-28  Bruno Haible  <bruno@clisp.org>
16862
16863         Fix definition of tests witness macro.
16864         * gnulib-tool (func_import): Fix definition of witness macro.
16865
16866 2010-03-28  Bruno Haible  <bruno@clisp.org>
16867
16868         Fix ioctl's protoype on glibc systems.
16869         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16870         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16871         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16872         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16873         signature. If not, arrange to replace the ioctl function.
16874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16875         REPLACE_IOCTL.
16876         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16877         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16878         Reported by Ludovic Courtès <ludo@gnu.org>.
16879
16880 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16881
16882         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16883         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16884         made it so grep -r --include=GLOB* ... did not work.
16885
16886 2010-03-26  Jim Meyering  <meyering@redhat.com>
16887             Eric Blake  <eblake@redhat.com>
16888
16889         maint.mk: prohibit use of test's -o and -a operators
16890         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16891
16892 2010-03-28  Bruno Haible  <bruno@clisp.org>
16893
16894         Remove unused GNULIB_XYZ macro definitions.
16895         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16896         invocation.
16897
16898 2010-03-28  Bruno Haible  <bruno@clisp.org>
16899
16900         Mark privileged tests modules.
16901         * modules/idpriv-drop-tests (Status): New section.
16902         * modules/idpriv-droptemp-tests (Status): New section.
16903
16904 2010-03-28  Bruno Haible  <bruno@clisp.org>
16905
16906         Split C++ tests into separate tests modules.
16907         * modules/dirent-c++-tests: New file, extracted from
16908         modules/dirent-tests.
16909         * modules/dirent-tests: Depend on it.
16910         * modules/fcntl-h-c++-tests: New file, extracted from
16911         modules/fcntl-h-tests.
16912         * modules/fcntl-h-tests: Depend on it.
16913         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16914         * modules/glob-tests: Depend on it.
16915         * modules/iconv-h-c++-tests: New file, extracted from
16916         modules/iconv-h-tests.
16917         * modules/iconv-h-tests: Depend on it.
16918         * modules/langinfo-c++-tests: New file, extracted from
16919         modules/langinfo-tests.
16920         * modules/langinfo-tests: Depend on it.
16921         * modules/locale-c++-tests: New file, extracted from
16922         modules/locale-tests.
16923         * modules/locale-tests: Depend on it.
16924         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16925         * modules/math-tests: Depend on it.
16926         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16927         * modules/pty-tests: Depend on it.
16928         * modules/search-c++-tests: New file, extracted from
16929         modules/search-tests.
16930         * modules/search-tests: Depend on it.
16931         * modules/signal-c++-tests: New file, extracted from
16932         modules/signal-tests.
16933         * modules/signal-tests: Depend on it.
16934         * modules/spawn-c++-tests: New file, extracted from
16935         modules/spawn-tests.
16936         * modules/spawn-tests: Depend on it.
16937         * modules/stdio-c++-tests: New file, extracted from
16938         modules/stdio-tests.
16939         * modules/stdio-tests: Depend on it.
16940         * modules/stdlib-c++-tests: New file, extracted from
16941         modules/stdlib-tests.
16942         * modules/stdlib-tests: Depend on it.
16943         * modules/string-c++-tests: New file, extracted from
16944         modules/string-tests.
16945         * modules/string-tests: Depend on it.
16946         * modules/sys_ioctl-c++-tests: New file, extracted from
16947         modules/sys_ioctl-tests.
16948         * modules/sys_ioctl-tests: Depend on it.
16949         * modules/sys_select-c++-tests: New file, extracted from
16950         modules/sys_select-tests.
16951         * modules/sys_select-tests: Depend on it.
16952         * modules/sys_socket-c++-tests: New file, extracted from
16953         modules/sys_socket-tests.
16954         * modules/sys_socket-tests: Depend on it.
16955         * modules/sys_stat-c++-tests: New file, extracted from
16956         modules/sys_stat-tests.
16957         * modules/sys_stat-tests: Depend on it.
16958         * modules/sys_time-c++-tests: New file, extracted from
16959         modules/sys_time-tests.
16960         * modules/sys_time-tests: Depend on it.
16961         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16962         * modules/time-tests: Depend on it.
16963         * modules/unistd-c++-tests: New file, extracted from
16964         modules/unistd-tests.
16965         * modules/unistd-tests: Depend on it.
16966         * modules/wchar-c++-tests: New file, extracted from
16967         modules/wchar-tests.
16968         * modules/wchar-tests: Depend on it.
16969         * modules/wctype-c++-tests: New file, extracted from
16970         modules/wctype-tests.
16971         * modules/wctype-tests: Depend on it.
16972         Reported by Simon Josefsson.
16973
16974 2010-03-28  Bruno Haible  <bruno@clisp.org>
16975
16976         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16977         * gnulib-tool (func_exists_module): New function, extracted from
16978         func_verify_module.
16979         (func_verify_module): Use it.
16980         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16981         'foo' only if 'foo' exists.
16982         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16983         module.
16984
16985 2010-03-28  Bruno Haible  <bruno@clisp.org>
16986
16987         gnulib-tool: Add support for special categories of tests.
16988         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16989         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16990         (func_usage): Document them.
16991         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16992         inc_unportable_tests, inc_all_tests): New variables.
16993         (func_acceptable): Consider these variables.
16994         (func_modules_transitive_closure): Make it work when the 'Status' field
16995         consists of multiple words.
16996         (func_import): Store and restore the values of inc_cxx_tests,
16997         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16998         inc_all_tests in gnulib-comp.m4.
16999         (func_create_testdir): Set inc_all_tests to true.
17000         * doc/gnulib.texi (Extra tests modules): New section.
17001         Suggested by Jim Meyering.
17002
17003 2010-03-28  Bruno Haible  <bruno@clisp.org>
17004
17005         ansi-c++-opt: Allow turning off the C++ build by default.
17006         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17007         gl_CXX_CHOICE_DEFAULT_NO is defined.
17008         Requested by Eric Blake.
17009
17010 2010-03-28  Bruno Haible  <bruno@clisp.org>
17011
17012         unistd: Avoid #define replacements in C++ mode.
17013         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17014         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17015         setsockopt, shutdown, select): In C++, attach a warning to the function
17016         if possible, rather than #defining the symbol to a dysfunctional alias.
17017         Reported by John W. Eaton <jwe@gnu.org>.
17018
17019 2010-03-28  Bruno Haible  <bruno@clisp.org>
17020
17021         Fix link errors on mingw.
17022         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17023         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17024         $(LIBSOCKET).
17025         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17026         $(LIBSOCKET).
17027
17028 2010-03-28  Bruno Haible  <bruno@clisp.org>
17029             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17030
17031         lib-ignore: Determine different options for different compilers.
17032         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17033         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17034         Add comments.
17035         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17036         * NEWS: Mention the change.
17037
17038 2010-03-27  Bruno Haible  <bruno@clisp.org>
17039
17040         Remove unused GNULIB_XYZ macro definitions.
17041         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17042         * modules/fseek (configure.ac): Likewise.
17043         * modules/ioctl (configure.ac): Likewise.
17044         * modules/open (configure.ac): Likewise.
17045         * modules/stdlib-safer (configure.ac): Likewise.
17046
17047 2010-03-27  Bruno Haible  <bruno@clisp.org>
17048
17049         Add a remark about certain modules.
17050         * modules/malloc (Comment): New section.
17051         * modules/realloc (Comment): Likewise.
17052         * modules/sigpipe (Comment): Likewise.
17053
17054 2010-03-27  Bruno Haible  <bruno@clisp.org>
17055
17056         Resolve conflict between the two kinds of module indicators.
17057         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17058         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17059         * modules/canonicalize (configure.ac): Invoke
17060         gl_MODULE_INDICATOR_FOR_TESTS.
17061         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17062         GNULIB_XYZ.
17063         * tests/test-dirent-c++.cc: Likewise.
17064         * tests/test-dirent-safer.c: Likewise.
17065         * tests/test-dup2.c: Likewise.
17066         * tests/test-fchdir.c: Likewise.
17067         * tests/test-fcntl-h-c++.cc: Likewise.
17068         * tests/test-getopt.c: Likewise.
17069         * tests/test-getopt.h: Likewise.
17070         * tests/test-langinfo-c++.cc: Likewise.
17071         * tests/test-locale-c++.cc: Likewise.
17072         * tests/test-math-c++.cc: Likewise.
17073         * tests/test-pty-c++.cc: Likewise.
17074         * tests/test-search-c++.cc: Likewise.
17075         * tests/test-signal-c++.cc: Likewise.
17076         * tests/test-spawn-c++.cc: Likewise.
17077         * tests/test-stdio-c++.cc: Likewise.
17078         * tests/test-stdlib-c++.cc: Likewise.
17079         * tests/test-string-c++.cc: Likewise.
17080         * tests/test-sys_ioctl-c++.cc: Likewise.
17081         * tests/test-sys_select-c++.cc: Likewise.
17082         * tests/test-sys_socket-c++.cc: Likewise.
17083         * tests/test-sys_stat-c++.cc: Likewise.
17084         * tests/test-sys_time-c++.cc: Likewise.
17085         * tests/test-time-c++.cc: Likewise.
17086         * tests/test-unistd-c++.cc: Likewise.
17087         * tests/test-wchar-c++.cc: Likewise.
17088         * tests/uninorm/test-u8-nfc.c: Likewise.
17089         * tests/uninorm/test-u8-nfd.c: Likewise.
17090         * tests/uninorm/test-u8-nfkc.c: Likewise.
17091         * tests/uninorm/test-u8-nfkd.c: Likewise.
17092         * tests/uninorm/test-u16-nfc.c: Likewise.
17093         * tests/uninorm/test-u16-nfd.c: Likewise.
17094         * tests/uninorm/test-u16-nfkc.c: Likewise.
17095         * tests/uninorm/test-u16-nfkd.c: Likewise.
17096         * tests/uninorm/test-u32-nfc.c: Likewise.
17097         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17098         * tests/uninorm/test-u32-nfd.c: Likewise.
17099         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17100         * tests/uninorm/test-u32-nfkc.c: Likewise.
17101         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17102         * tests/uninorm/test-u32-nfkd.c: Likewise.
17103         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17104         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17105
17106 2010-03-27  Bruno Haible  <bruno@clisp.org>
17107
17108         Distinguish two kinds of module indicators.
17109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17110         gl_MODULE_INDICATOR.
17111         (gl_MODULE_INDICATOR): New macro.
17112         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17113         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17114         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17115         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17116         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17117         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17118         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17119         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17120         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17121         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17122         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17123         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17125         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17126         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17128         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17129         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17130         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17131         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17132         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17133         * modules/cloexec (configure.ac): Likewise.
17134         * modules/getopt-gnu (configure.ac): Likewise.
17135         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17136         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17137         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17138         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17139
17140 2010-03-27  Bruno Haible  <bruno@clisp.org>
17141
17142         New module description field 'Comment'.
17143         * gnulib-tool: New option --extract-comment.
17144         (func_usage): Document it.
17145         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17146         (func_get_comment): New function.
17147         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17148
17149 2010-03-27  Bruno Haible  <bruno@clisp.org>
17150
17151         Addendum to 2010-02-07 commit.
17152         * gnulib-tool (func_usage): Document --extract-applicability option.
17153
17154 2010-03-27  Bruno Haible  <bruno@clisp.org>
17155
17156         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17157         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17158         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17159         rather than link errors.
17160
17161 2010-03-27  Bruno Haible  <bruno@clisp.org>
17162
17163         Avoid side effects from tests-related modules on the compilation of lib.
17164         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17165         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17166         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17167         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17168         macro.
17169         (func_import): Define a witness macro. Assign it a value that depends
17170         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17171         tests-related modules.
17172         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17173         Reported by Jim Meyering.
17174
17175 2010-03-27  Bruno Haible  <bruno@clisp.org>
17176
17177         Factorize common .m4 code.
17178         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17179         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17180         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17181         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17182         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17183         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17184         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17185         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17186         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17187         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17188         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17189         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17190         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17191         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17192         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17193         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17194         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17195         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17197         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17198         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17199         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17200         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17201         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17202         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17203         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17204         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17206         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17207         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17208         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17209         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17210
17211 2010-03-27  Bruno Haible  <bruno@clisp.org>
17212
17213         Fix a compilation error on Cygwin with g++ >= 4.3.
17214         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17215         if it is undefined or if we alias it to chmod.
17216         (lstat): Don't warn about the use of this function if it is undefined
17217         or if we alias it to stat.
17218         Reported by Simon Josefsson.
17219
17220 2010-03-27  Bruno Haible  <bruno@clisp.org>
17221
17222         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17223         * modules/getlogin (configure.ac): Update.
17224
17225         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17226         * modules/getlogin_r (configure.ac): Update.
17227
17228         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17230         * modules/inet_ntop (configure.ac): Update.
17231
17232         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17233         * modules/inet_pton (configure.ac): Update.
17234
17235         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17236         * modules/mbslen (configure.ac): Update.
17237
17238         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17239         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17240         * modules/forkpty (configure.ac): Update.
17241         * modules/openpty (configure.ac): Update.
17242
17243 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17244
17245         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17246         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17247
17248 2010-03-25  Eric Blake  <eblake@redhat.com>
17249
17250         maint: use pragma consistently across replacement headers
17251         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17252         * lib/dirent.in.h (system_header): Likewise.
17253         * lib/errno.in.h (system_header): Likewise.
17254         * lib/float.in.h (system_header): Likewise.
17255         * lib/getopt.in.h (system_header): Likewise.
17256         * lib/iconv.in.h (system_header): Likewise.
17257         * lib/inttypes.in.h (system_header): Likewise.
17258         * lib/langinfo.in.h (system_header): Likewise.
17259         * lib/locale.in.h (system_header): Likewise.
17260         * lib/math.in.h (system_header): Likewise.
17261         * lib/netdb.in.h (system_header): Likewise.
17262         * lib/netinet_in.in.h (system_header): Likewise.
17263         * lib/pty.in.h (system_header): Likewise.
17264         * lib/sched.in.h (system_header): Likewise.
17265         * lib/se-selinux.in.h (system_header): Likewise.
17266         * lib/search.in.h (system_header): Likewise.
17267         * lib/spawn.in.h (system_header): Likewise.
17268         * lib/stdarg.in.h (system_header): Likewise.
17269         * lib/stdint.in.h (system_header): Likewise.
17270         * lib/string.in.h (system_header): Likewise.
17271         * lib/strings.in.h (system_header): Likewise.
17272         * lib/sys_file.in.h (system_header): Likewise.
17273         * lib/sys_ioctl.in.h (system_header): Likewise.
17274         * lib/sys_socket.in.h (system_header): Likewise.
17275         * lib/sys_times.in.h (system_header): Likewise.
17276         * lib/sys_utsname.in.h (system_header): Likewise.
17277         * lib/sys_wait.in.h (system_header): Likewise.
17278         * lib/sysexits.in.h (system_header): Likewise.
17279         * lib/unistd.in.h (system_header): Likewise.
17280         * lib/wctype.in.h (system_header): Likewise.
17281
17282         arpa/inet: fix mingw compilation warning
17283         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17284         Reported by Matthew Bolte.
17285
17286 2010-03-25  Bruno Haible  <bruno@clisp.org>
17287
17288         Avoid collision between gnulib wrapper and libintl wrapper.
17289         * lib/printf.c (printf): Don't define if a printf wrapper is already
17290         defined in intl/printf.c.
17291         Reported by Michel Boaventura <michel@michelboaventura.com>.
17292
17293 2010-03-25  Bruno Haible  <bruno@clisp.org>
17294
17295         Use ANSI C.
17296         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17297
17298 2010-03-25  Bruno Haible  <bruno@clisp.org>
17299
17300         Minor formatting changes.
17301         * lib/acosl.c: Insert space before function argument list.
17302         * lib/argz.c: Likewise.
17303         * lib/asinl.c: Likewise.
17304         * lib/expl.c: Likewise.
17305         * lib/gen-uni-tables.c: Likewise.
17306         * lib/gettext.h: Likewise.
17307         * lib/glthread/lock.h: Likewise.
17308         * lib/tanl.c: Likewise.
17309         * lib/uniname/uniname.c: Likewise.
17310         * tests/test-idpriv-drop.c: Likewise.
17311         * tests/test-idpriv-droptemp.c: Likewise.
17312         * tests/test-lock.c: Likewise.
17313         * tests/test-tls.c: Likewise.
17314         * lib/argp-help.c: Insert space before function-like macro argument
17315         list.
17316         * lib/memcmp.c: Likewise.
17317         * tests/test-base64.c: Likewise.
17318         * lib/localename.c: Insert space before sizeof's argument list.
17319         * lib/safe-alloc.h: Likewise.
17320         * lib/file-set.h: Insert space before macro argument list.
17321         * tests/test-argp.c: Likewise.
17322         * lib/argp-namefrob.h: Insert space before function parameter list.
17323         * lib/getaddrinfo.c: Likewise.
17324         * lib/netdb.in.h: Likewise.
17325         * lib/parse-duration.h: Likewise.
17326         * lib/parse-duration.c: Likewise.
17327         * lib/poll.c: Likewise.
17328         * lib/select.c: Likewise.
17329         * lib/trim.h: Likewise.
17330         * tests/test-usleep.c: Likewise.
17331         * lib/ldexpl.c: Insert space before function parameter list and before
17332         function argument list.
17333         * lib/logl.c: Likewise.
17334         * lib/sqrtl.c: Likewise.
17335         * lib/trim.c: Likewise.
17336         * lib/cosl.c: Use GNU style indentation. Insert space before function
17337         argument list.
17338         * lib/sinl.c: Likewise.
17339         * lib/tsearch.c: Insert space after 'for'.
17340         Reported by Jim Meyering.
17341
17342 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17343
17344         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17345         config header before grepping, as it's not present before
17346         autoreconf/configure are run.  Reported by Simon Josefsson.
17347
17348 2010-03-23  Bruno Haible  <bruno@clisp.org>
17349
17350         pt_chown: Make it work with automake < 1.11.
17351         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17352         Reported by Simon Josefsson.
17353
17354 2010-03-23  Bruno Haible  <bruno@clisp.org>
17355
17356         pt_chown: Don't depend on GPLed modules.
17357         * lib/pt_chown.c: Don't include idpriv.h.
17358         (main): Don't drop privileges.
17359         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17360         Reported by Simon Josefsson.
17361
17362 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17363
17364         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17365         suggestions from karl@freefriends.org (Karl Berry).
17366
17367 2010-03-22  Eric Blake  <eblake@redhat.com>
17368
17369         gethostname: further tweaks
17370         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17371         are overriding gethostname.
17372         Suggested by Bruno Haible.
17373
17374 2010-03-21  Bruno Haible  <bruno@clisp.org>
17375
17376         Fix comments.
17377         * lib/forkpty.c (rpl_forkpty): Fix comment.
17378         * lib/openpty.c (rpl_openpty): Likewise.
17379         Reported by Eric Blake.
17380
17381 2010-03-22  Eric Blake  <eblake@redhat.com>
17382
17383         gethostname: fix build on mingw
17384         * lib/unistd.in.h (includes): Work around fact that mingw
17385         <winsock2.h> re-includes <unistd.h>, by avoiding any
17386         redeclarations if we are being included by <winsock2.h>.
17387         Reported by Matthias Bolte.
17388
17389 2010-03-21  Bruno Haible  <bruno@clisp.org>
17390
17391         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17392         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17393         modifications.
17394         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17395         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17396         provide the replacement.
17397         * modules/forkpty (Depends-on): Add openpty, login_tty.
17398         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17399         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17400         * doc/glibc-functions/forkpty.texi: More supported platforms.
17401         * config/srclist.txt: Add forkpty.c (commented).
17402
17403 2010-03-21  Bruno Haible  <bruno@clisp.org>
17404
17405         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17406         (Makefile.am): Verify that PTY_LIB is defined.
17407
17408         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17409
17410 2010-03-21  Bruno Haible  <bruno@clisp.org>
17411
17412         Tests for module 'login_tty'.
17413         * modules/login_tty-tests: New file.
17414         * tests/test-login_tty.c: New file.
17415
17416         New module 'login_tty'.
17417         * lib/login_tty.c: New file.
17418         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17419         * modules/login_tty: New file.
17420         * doc/glibc-functions/login_tty.texi: Mention the new module.
17421
17422 2010-03-21  Bruno Haible  <bruno@clisp.org>
17423
17424         login_tty: Documentation.
17425         * doc/glibc-functions/login_tty.texi: New file.
17426         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17427
17428 2010-03-21  Bruno Haible  <bruno@clisp.org>
17429
17430         pty: Consistent macro naming.
17431         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17432         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17433         * modules/pty (configure.ac): Update.
17434
17435 2010-03-21  Bruno Haible  <bruno@clisp.org>
17436
17437         Tests for openpty: Make stricter.
17438         * tests/test-openpty.c (main): Add test of canonical processing and
17439         erase.
17440         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17441
17442         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17443         * lib/openpty.c (openpty): New replacement function.
17444         * lib/pty.in.h: Include <termios.h>.
17445         (openpty): Update declaration. Add comments.
17446         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17447         is not declared, arrange to provide the replacement. Check for _getpty
17448         and posix_openpt.
17449         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17450         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17451         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17452         * modules/pty-tests (test_pty_c___LDADD): New variable.
17453         * doc/glibc-functions/openpty.texi: More supported platforms.
17454
17455 2010-03-21  Bruno Haible  <bruno@clisp.org>
17456
17457         setenv: Tweaks.
17458         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17459         the test program.
17460         * doc/posix-functions/setenv.texi: Update platforms list.
17461
17462 2010-03-21  Bruno Haible  <bruno@clisp.org>
17463
17464         New module 'unlockpt'.
17465         * lib/unlockpt.c: New file, from glibc with modifications.
17466         * m4/unlockpt.m4: New file.
17467         * modules/unlockpt: New file.
17468         * lib/stdlib.in.h (unlockpt): New declaration.
17469         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17470         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17471         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17472         HAVE_UNLOCKPT.
17473         * doc/posix-functions/unlockpt.texi: Mention the new module.
17474         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17475         * config/srclist.txt: Add unlockpt.c (commented).
17476
17477 2010-03-21  Jim Meyering  <meyering@redhat.com>
17478
17479         maint.mk: prohibit inclusion of "intprops.h" without use
17480         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17481
17482 2010-03-21  Bruno Haible  <bruno@clisp.org>
17483
17484         New module 'grantpt'.
17485         * lib/grantpt.c: New file, from glibc with modifications.
17486         * m4/grantpt.m4: New file.
17487         * modules/grantpt: New file.
17488         * lib/stdlib.in.h (grantpt): New declaration.
17489         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17490         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17491         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17492         HAVE_GRANTPT.
17493         * doc/posix-functions/grantpt.texi: Mention the new module.
17494         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17495         * config/srclist.txt: Add grantpt.c (commented).
17496
17497 2010-03-21  Bruno Haible  <bruno@clisp.org>
17498
17499         New module 'pt_chown'.
17500         * lib/pt_chown.c: New file, from glibc with modifications.
17501         * lib/pty-private.h: New file, from glibc with modifications.
17502         * modules/pt_chown: New file.
17503         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17504
17505 2010-03-21  Bruno Haible  <bruno@clisp.org>
17506
17507         Tests for module 'ptsname'.
17508         * modules/ptsname-tests: New file.
17509         * tests/test-ptsname.c: New file.
17510
17511         New module 'ptsname'.
17512         * lib/ptsname.c: New file, from glibc with modifications.
17513         * m4/ptsname.m4: New file.
17514         * modules/ptsname: New file.
17515         * lib/stdlib.in.h (ptsname): New declaration.
17516         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17517         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17518         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17519         HAVE_PTSNAME.
17520         * doc/posix-functions/ptsname.texi: Mention the new module.
17521         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17522         * config/srclist.txt: Add ptsname.c (commented).
17523
17524 2010-03-21  Bruno Haible  <bruno@clisp.org>
17525
17526         Tests for module 'ttyname_r'.
17527         * modules/ttyname_r-tests: New file.
17528         * tests/test-ttyname_r.c: New file.
17529
17530         New module 'ttyname_r'.
17531         * lib/ttyname_r.c: New file.
17532         * m4/ttyname_r.m4: New file.
17533         * modules/ttyname_r: New file.
17534         * lib/unistd.in.h (ttyname_r): New declaration.
17535         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17536         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17537         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17538         HAVE_TTYNAME_R.
17539         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17540         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17541
17542 2010-03-20  Bruno Haible  <bruno@clisp.org>
17543
17544         signal: Undefine macro definitions in C++ mode.
17545         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17546         sigfillset): Undefine macro definitions from the system header in C++
17547         mode.
17548         Reported by John W. Eaton <jwe@gnu.org>.
17549
17550 2010-03-20  Bruno Haible  <bruno@clisp.org>
17551
17552         Ensure no #include statements inside extern "C" { ... }.
17553         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17554         contain #include statements.
17555         * lib/time.in.h: Likewise.
17556
17557 2010-03-20  Bruno Haible  <bruno@clisp.org>
17558
17559         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17560         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17561         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17562         Reported by John W. Eaton <jwe@gnu.org>.
17563
17564 2010-03-20  Bruno Haible  <bruno@clisp.org>
17565
17566         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17567         Reported by Jim Meyering.
17568
17569 2010-03-20  Bruno Haible  <bruno@clisp.org>
17570
17571         pipe: Set errno upon failure.
17572         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17573         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17574         errno value in error message.
17575
17576 2010-03-20  Bruno Haible  <bruno@clisp.org>
17577             Jim Meyering  <meyering@redhat.com>
17578
17579         lchown: Avoid "unused variable" warning.
17580         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17581
17582 2010-03-20  Bruno Haible  <bruno@clisp.org>
17583
17584         Work around unlink() bug on MacOS X 10.5.6.
17585         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17586         attempting to unlink a parent directory.
17587         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17588         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17589         activate for the replacement function.
17590         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17591
17592 2010-03-20  Bruno Haible  <bruno@clisp.org>
17593
17594         Fix link errors on Solaris 8.
17595         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17596         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17597
17598 2010-03-19  Jim Meyering  <meyering@redhat.com>
17599
17600         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17601         The _LIBC implementation of build_range_exp correctly honors the
17602         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17603         However, the non-_LIBC implementation would ignore that syntax-bit
17604         flag and return REG_ERANGE unconditionally.
17605         This change makes it honor that flag.
17606         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17607         Make two pointer parameters "const".
17608         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17609         (parse_bracket_exp): Update caller.
17610
17611         regex.m4: correct the reversed range endpoint ([b-a]) test
17612         * m4/regex.m4: When requiring that [b-a] evoke failure,
17613         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17614         test pass once again for x86-based systems.
17615
17616 2010-03-19  Bruno Haible  <bruno@clisp.org>
17617
17618         scandir: Fix link error on Solaris 8.
17619         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17620         macros.
17621
17622 2010-03-19  Bruno Haible  <bruno@clisp.org>
17623
17624         getusershell: Fix documentation.
17625         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17626         module.
17627         * doc/glibc-functions/setusershell.texi: Likewise.
17628
17629         getusershell: Provide declaration, missing on Solaris 9.
17630         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17631         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17632         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17633         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17635         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17636         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17637         HAVE_GETUSERSHELL.
17638         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17639
17640 2010-03-19  Bruno Haible  <bruno@clisp.org>
17641
17642         wctype: Provide iswblank function.
17643         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17644         exists and is fine.
17645         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17646         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17647         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17648         * doc/posix-functions/iswblank.texi: Update.
17649
17650 2010-03-19  Bruno Haible  <bruno@clisp.org>
17651
17652         Tests of module 'pty' in C++ mode.
17653         * modules/pty-tests: New file.
17654         * tests/test-pty-c++.cc: New file.
17655         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17656
17657 2010-03-19  Eric Blake  <eblake@redhat.com>
17658
17659         logb: fix documentation
17660         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17661         1.5 declaration bug.
17662
17663         forkpty, openpty: prefer glibc's const-safe prototype
17664         * lib/forkpty.c (rpl_forkpty): New file.
17665         * lib/openpty.c (rpl_openpty): Likewise.
17666         * modules/forkpty (Files): Distribute it.
17667         * modules/openpty (Files): Likewise.
17668         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17669         check...
17670         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17671         replacement for for non-const BSD signature.
17672         * modules/pty (Makefile.am): Substitute witnesses.
17673         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17674         * tests/test-forkpty.c: Update signature check.
17675         * tests/test-openpty.c: Likewise.
17676         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17677         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17678
17679         forkpty, openpty: split functions into new modules
17680         * modules/pty (Makefile.am): Substitute new witnesses.
17681         (Libraries): Move library detection...
17682         * modules/forkpty: ...into new module.
17683         * modules/openpty: Another new module.
17684         * modules/pty-tests: Rename and split...
17685         * modules/forkpty-tests: ...to this...
17686         * modules/openpty-tests: ...and this.
17687         * tests/test-pty.c: Rename and split...
17688         * tests/test-forkpty.c: ...to this...
17689         * tests/test-openpty.c: ...and this.
17690         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17691         (gl_PTY): Split library searching...
17692         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17693         (gl_FORKPTY, gl_OPENPTY): New macros.
17694         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17695         * NEWS: Mention the split.
17696         * MODULES.html.sh (Misc): Document the modules.
17697         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17698         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17699
17700         pty: improve replacement header
17701         * lib/pty.in.h: New file.
17702         * modules/pty (Files): Ship it.
17703         (Makefile.am): Always build replacement.
17704         * m4/pty.m4: Rename...
17705         * m4/pty_h.m4: ...to this.
17706         (gl_PTY): Modernize setting of witness macros; update check of
17707         forkpty to take proper advantage of cache.
17708         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17709
17710         getopt: avoid compiler warning
17711         * lib/getopt.c (attribute_hidden): Remove unused macro.
17712
17713 2010-03-18  Bruno Haible  <bruno@clisp.org>
17714
17715         Fix link errors on Solaris 8.
17716         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17717         * modules/search-tests (test_search_c___LDADD): Likewise.
17718         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17719         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17720         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17721         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17722         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17723         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17724         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17725
17726 2010-03-18  Bruno Haible  <bruno@clisp.org>
17727
17728         Fix bug introduced on 2010-03-14.
17729         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17730         (gl_SPAWN_H): Require it.
17731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17732         Reported by Simon Josefsson.
17733
17734 2010-03-18  Bruno Haible  <bruno@clisp.org>
17735
17736         Fix typo introduced on 2009-12-31.
17737         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17738         posix_spawn_file_actions_adddup2.
17739
17740 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17741         and Eric Blake  <eblake@redhat.com>
17742
17743         test-vc-list-files-git: make more robust
17744         * tests/test-vc-list-files-git.sh: Unset problematic environment
17745         variables.  Chain commands together.
17746
17747 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17748
17749         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17750         `AC_CHECK_DECL' invocation.
17751
17752 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17753
17754         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17755         appears before executable statements. Suggested by Petr Sumbera
17756         <Petr.Sumbera@Sun.COM>.
17757
17758 2010-03-14  Bruno Haible  <bruno@clisp.org>
17759
17760         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17761         portability problems. Instead use a simpler test.
17762         (main): Check that invalid arguments are rejected only on Linux.
17763
17764 2010-03-14  Bruno Haible  <bruno@clisp.org>
17765
17766         Fix bug introduced on 2009-12-31.
17767         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17768         gl_PREREQ_SYS_H_WINSOCK2 always.
17769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17770         SYS_SOCKET_H variable.
17771         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17772         Update comments.
17773         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17774         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17777         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17778
17779 2010-03-14  Bruno Haible  <bruno@clisp.org>
17780
17781         Fix values returned by sinl, cosl.
17782         * lib/trigl.h: Add specification comments.
17783         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17784         that combines the values from the precomputed table with the values of
17785         the Chebyshev polynomials.
17786
17787 2010-03-14  Bruno Haible  <bruno@clisp.org>
17788
17789         Fix compilation error when modules 'posix_spawn[p]' are not used.
17790         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17792
17793 2010-03-14  Bruno Haible  <bruno@clisp.org>
17794
17795         Fix compilation error on mingw when module 'time_r' is not used.
17796         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17797         is 1.
17798         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17799         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17800         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17802
17803 2010-03-14  Bruno Haible  <bruno@clisp.org>
17804
17805         Fix compilation error with Sun C.
17806         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17807         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17808         instead of GCC specific ULONG_LONG_MAX.
17809         * lib/xstrtoll.c: Likewise.
17810         * lib/xstrtoull.c: Likewise.
17811
17812 2010-03-13  Bruno Haible  <bruno@clisp.org>
17813
17814         Allow the user to disable C++ code and tests.
17815         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17816         (gl_PROG_ANSI_CXX): Require it.
17817
17818 2010-03-13  Bruno Haible  <bruno@clisp.org>
17819
17820         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17821         cases.
17822
17823 2010-03-13  Bruno Haible  <bruno@clisp.org>
17824
17825         Test that gnulib does not break the standard C++ headers.
17826         * tests/test-locale-c++2.cc: New file.
17827         * modules/locale-tests (Files): Add it.
17828         (Makefile.am): Compile it for test-locale-c++.
17829         * tests/test-math-c++2.cc: New file.
17830         * modules/math-tests (Files): Add it.
17831         (Makefile.am): Compile it for test-math-c++.
17832         * tests/test-signal-c++2.cc: New file.
17833         * modules/signal-tests (Files): Add it.
17834         (Makefile.am): Compile it for test-signal-c++.
17835         * tests/test-stdio-c++2.cc: New file.
17836         * modules/stdio-tests (Files): Add it.
17837         (Makefile.am): Compile it for test-stdio-c++.
17838         * tests/test-stdlib-c++2.cc: New file.
17839         * modules/stdlib-tests (Files): Add it.
17840         (Makefile.am): Compile it for test-stdlib-c++.
17841         * tests/test-string-c++2.cc: New file.
17842         * modules/string-tests (Files): Add it.
17843         (Makefile.am): Compile it for test-string-c++.
17844         * tests/test-time-c++2.cc: New file.
17845         * modules/time-tests (Files): Add it.
17846         (Makefile.am): Compile it for test-time-c++.
17847         Reported by John W. Eaton <jwe@gnu.org>.
17848
17849 2010-03-13  Bruno Haible  <bruno@clisp.org>
17850
17851         * gnulib-tool (func_usage): Clarify which options are available for
17852         --create-testdir and --create-megatestdir.
17853
17854 2010-03-13  Bruno Haible  <bruno@clisp.org>
17855
17856         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17857         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17858         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17859         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17860         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17861         when appropriate.
17862         Reported by Jim Meyering.
17863
17864 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17865
17866         * gnulib-tool (func_import): Explain origin of code.
17867
17868 2010-03-12  Bruno Haible  <bruno@clisp.org>
17869
17870         Fix problem with automake's definition of CXXLINK.
17871         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17872         Reported by Simon Josefsson and Ludovic Courtès.
17873
17874 2010-03-12  Bruno Haible  <bruno@clisp.org>
17875
17876         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17877         stable releases.
17878
17879 2010-03-11  Bruno Haible  <bruno@clisp.org>
17880
17881         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17882         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17883         whether the system provides one variant or multiple variants of the
17884         function.
17885         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17886         C++ compilers.
17887         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17888         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17889         Reported by Jim Meyering.
17890
17891 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17892
17893         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17894
17895 2010-03-08  Bruno Haible  <bruno@clisp.org>
17896
17897         gnulib-tool: Add support for --libtool in --create-testdir.
17898         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17899         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17900
17901 2010-03-08  Eric Blake  <eblake@redhat.com>
17902
17903         gnulib-tool.texi: mention possibility of git submodule
17904         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17905         submodules.
17906         * doc/.gitignore: Ignore another generated file.
17907
17908 2010-03-08  Karl Berry  <karl@gnu.org>
17909
17910         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17911         of committing gnulib files while skipping others.
17912
17913 2010-03-07  Bruno Haible  <bruno@clisp.org>
17914
17915         Tests of module 'wctype' in C++ mode.
17916         * tests/test-wctype-c++.cc: New file.
17917         * modules/wctype-tests (Files): Add it and tests/signature.h.
17918         (Depends-on): Add ansi-c++-opt.
17919         (Makefile.am): Arrange to compile and run test-wctype-c++.
17920
17921         Tests of module 'wchar' in C++ mode.
17922         * tests/test-wchar-c++.cc: New file.
17923         * modules/wchar-tests (Files): Add it and tests/signature.h.
17924         (Depends-on): Add ansi-c++-opt.
17925         (Makefile.am): Arrange to compile and run test-wchar-c++.
17926         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17927         gl_MODULE_INDICATOR.
17928
17929         Tests of module 'unistd' in C++ mode.
17930         * tests/test-unistd-c++.cc: New file.
17931         * modules/unistd-tests (Files): Add it and tests/signature.h.
17932         (Depends-on): Add ansi-c++-opt.
17933         (Makefile.am): Arrange to compile and run test-unistd-c++.
17934         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17935         gl_MODULE_INDICATOR.
17936
17937         Tests of module 'time' in C++ mode.
17938         * tests/test-time-c++.cc: New file.
17939         * modules/time-tests (Files): Add it and tests/signature.h.
17940         (Depends-on): Add ansi-c++-opt.
17941         (Makefile.am): Arrange to compile and run test-time-c++.
17942         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17943
17944         Tests of module 'sys_time' in C++ mode.
17945         * tests/test-sys_time-c++.cc: New file.
17946         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17947         (Depends-on): Add ansi-c++-opt.
17948         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17949         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17950         gl_MODULE_INDICATOR.
17951
17952         Tests of module 'sys_stat' in C++ mode.
17953         * tests/test-sys_stat-c++.cc: New file.
17954         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17955         (Depends-on): Add ansi-c++-opt.
17956         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17957         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17958         gl_MODULE_INDICATOR.
17959
17960         Tests of module 'sys_socket' in C++ mode.
17961         * tests/test-sys_socket-c++.cc: New file.
17962         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17963         (Depends-on): Add ansi-c++-opt.
17964         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17965         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17966         gl_MODULE_INDICATOR.
17967
17968         Tests of module 'sys_select' in C++ mode.
17969         * tests/test-sys_select-c++.cc: New file.
17970         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17971         (Depends-on): Add ansi-c++-opt.
17972         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17973         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17974         gl_MODULE_INDICATOR.
17975
17976         Tests of module 'sys_ioctl' in C++ mode.
17977         * tests/test-sys_ioctl-c++.cc: New file.
17978         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17979         (Depends-on): Add ansi-c++-opt.
17980         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17981         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17982         gl_MODULE_INDICATOR.
17983
17984         Tests of module 'string' in C++ mode.
17985         * tests/test-string-c++.cc: New file.
17986         * modules/string-tests (Files): Add it and tests/signature.h.
17987         (Depends-on): Add ansi-c++-opt.
17988         (Makefile.am): Arrange to compile and run test-string-c++.
17989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17990         gl_MODULE_INDICATOR.
17991
17992         Tests of module 'stdlib' in C++ mode.
17993         * tests/test-stdlib-c++.cc: New file.
17994         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17995         (Depends-on): Add ansi-c++-opt.
17996         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17997         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17998         gl_MODULE_INDICATOR.
17999
18000         Tests of module 'stdio' in C++ mode.
18001         * tests/test-stdio-c++.cc: New file.
18002         * modules/stdio-tests (Files): Add it and tests/signature.h.
18003         (Depends-on): Add ansi-c++-opt.
18004         (Makefile.am): Arrange to compile and run test-stdio-c++.
18005         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18006         gl_MODULE_INDICATOR.
18007
18008         Tests of module 'spawn' in C++ mode.
18009         * tests/test-spawn-c++.cc: New file.
18010         * modules/spawn-tests (Files): Add it and tests/signature.h.
18011         (Depends-on): Add ansi-c++-opt.
18012         (Makefile.am): Arrange to compile and run test-spawn-c++.
18013         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18014         gl_MODULE_INDICATOR.
18015
18016         Tests of module 'signal' in C++ mode.
18017         * tests/test-signal-c++.cc: New file.
18018         * modules/signal-tests (Files): Add it and tests/signature.h.
18019         (Depends-on): Add ansi-c++-opt.
18020         (Makefile.am): Arrange to compile and run test-signal-c++.
18021         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18022         gl_MODULE_INDICATOR.
18023
18024         Tests of module 'search' in C++ mode.
18025         * tests/test-search-c++.cc: New file.
18026         * modules/search-tests (Files): Add it and tests/signature.h.
18027         (Depends-on): Add ansi-c++-opt.
18028         (Makefile.am): Arrange to compile and run test-search-c++.
18029         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18030         gl_MODULE_INDICATOR.
18031
18032         Tests of module 'math' in C++ mode.
18033         * tests/test-math-c++.cc: New file.
18034         * modules/math-tests (Files): Add it and tests/signature.h.
18035         (Depends-on): Add ansi-c++-opt.
18036         (Makefile.am): Arrange to compile and run test-math-c++.
18037         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18038
18039         Tests of module 'locale' in C++ mode.
18040         * tests/test-locale-c++.cc: New file.
18041         * modules/locale-tests (Files): Add it and tests/signature.h.
18042         (Depends-on): Add ansi-c++-opt.
18043         (Makefile.am): Arrange to compile and run test-locale-c++.
18044         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18045         gl_MODULE_INDICATOR.
18046
18047         Tests of module 'langinfo' in C++ mode.
18048         * tests/test-langinfo-c++.cc: New file.
18049         * modules/langinfo-tests (Files): Add it and tests/signature.h.
18050         (Depends-on): Add ansi-c++-opt.
18051         (Makefile.am): Arrange to compile and run test-langinfo-c++.
18052         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
18053         gl_MODULE_INDICATOR.
18054
18055         Tests of module 'iconv-h' in C++ mode.
18056         * tests/test-iconv-h-c++.cc: New file.
18057         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18058         (Depends-on): Add ansi-c++-opt.
18059         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18060
18061         Tests of module 'glob' in C++ mode.
18062         * tests/test-glob-c++.cc: New file.
18063         * modules/glob-tests (Files): Add it.
18064         (Depends-on): Add ansi-c++-opt.
18065         (Makefile.am): Arrange to compile and run test-glob-c++.
18066
18067         Tests of module 'fcntl-h' in C++ mode.
18068         * tests/test-fcntl-h-c++.cc: New file.
18069         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18070         (Depends-on): Add ansi-c++-opt.
18071         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18072         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18073         gl_MODULE_INDICATOR.
18074
18075         Tests of module 'dirent' in C++ mode.
18076         * tests/test-dirent-c++.cc: New file.
18077         * modules/dirent-tests (Files): Add it and tests/signature.h.
18078         (Depends-on): Add ansi-c++-opt.
18079         (Makefile.am): Arrange to compile and run test-dirent-c++.
18080         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18081         gl_MODULE_INDICATOR.
18082
18083         New module 'ansi-c++-opt'.
18084         * modules/ansi-c++-opt: New file.
18085         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18086
18087         Document C++ namespace mode.
18088         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18089
18090         wctype: Avoid #define replacements in C++ mode.
18091         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18092         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18093         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18094         In C++, define a namespaced alias symbol.
18095         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18096         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18097         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18098         rule.
18099
18100         wchar: Avoid #define replacements in C++ mode.
18101         * lib/wchar.in.h: Include c++defs.h.
18102         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18103         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18104         symbol.
18105         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18106         * modules/wchar (Depends-on): Add c++defs.
18107         (Makefile.am): Update wchar.h rule.
18108
18109         unistd: Avoid #define replacements in C++ mode.
18110         * lib/unistd.in.h: Include c++defs.h.
18111         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18112         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18113         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18114         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18115         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18116         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18117         symbol.
18118         (environ): Update.
18119         * modules/unistd (Depends-on): Add c++defs.
18120         (Makefile.am): Update unistd.h rule.
18121
18122         time: Avoid #define replacements in C++ mode.
18123         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18124         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18125         define a namespaced alias symbol.
18126         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18127         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18128         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18129         * modules/time (Depends-on): Add c++defs, warn-on-use.
18130         (Makefile.am): Update time.h rule.
18131         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18132         * modules/nanosleep (configure.ac): Likewise.
18133         * modules/strptime (configure.ac): Likewise.
18134         * modules/timegm (configure.ac): Likewise.
18135
18136         sys_time: Avoid #define replacements in C++ mode.
18137         * lib/sys_time.in.h: Include c++defs.h.
18138         (gettimeofday): In C++, define a namespaced alias symbol.
18139         * modules/sys_time (Depends-on): Add c++defs.
18140         (Makefile.am): Update sys/time.h rule.
18141
18142         sys_stat: Avoid #define replacements in C++ mode.
18143         * lib/sys_stat.in.h: Include c++defs.h.
18144         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18145         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18146         namespaced alias symbol.
18147         In C++, define a namespaced alias symbol.
18148         * modules/sys_stat (Depends-on): Add c++defs.
18149         (Makefile.am): Update sys/stat.h rule.
18150
18151         sys_socket: Avoid #define replacements in C++ mode.
18152         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18153         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18154         definitions also when the system has a <sys/socket.h>.
18155         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18156         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18157         In C++, define a namespaced alias symbol.
18158         * modules/sys_socket (Depends-on): Add c++defs.
18159         (Makefile.am): Update sys/socket.h rule.
18160
18161         sys_select: Avoid #define replacements in C++ mode.
18162         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18163         definitions also when the system has a <sys/select.h>.
18164         (select): In C++, define a namespaced alias symbol.
18165         * modules/sys_select (Depends-on): Add c++defs.
18166         (Makefile.am): Update sys/select.h rule.
18167
18168         sys_ioctl: Avoid #define replacements in C++ mode.
18169         * lib/sys_ioctl.in.h: Include c++defs.h.
18170         (ioctl): In C++, define a namespaced alias symbol.
18171         * modules/sys_ioctl (Depends-on): Add c++defs.
18172         (Makefile.am): Update sys/ioctl.h rule.
18173
18174         string: Avoid #define replacements in C++ mode.
18175         * lib/string.in.h: Include c++defs.h.
18176         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18177         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18178         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18179         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18180         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18181         * modules/string (Depends-on): Add c++defs.
18182         (Makefile.am): Update string.h rule.
18183
18184         stdlib: Avoid #define replacements in C++ mode.
18185         * lib/stdlib.in.h: Include c++defs.h.
18186         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18187         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18188         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18189         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18190         symbol.
18191         * modules/stdlib (Depends-on): Add c++defs.
18192         (Makefile.am): Update stdlib.h rule.
18193
18194         stdio: Avoid #define replacements in C++ mode.
18195         * lib/stdio.in.h: Include c++defs.h.
18196         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18197         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18198         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18199         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18200         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18201         namespaced alias symbol.
18202         * modules/stdio (Depends-on): Add c++defs.
18203         (Makefile.am): Update stdio.h rule.
18204
18205         spawn: Avoid #define replacements in C++ mode.
18206         * lib/spawn.in.h: Include c++defs.h.
18207         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18208         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18209         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18210         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18211         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18212         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18213         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18214         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18215         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18216         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18217         In C++, define a namespaced alias symbol.
18218         * modules/spawn (Depends-on): Add c++defs.
18219         (Makefile.am): Update spawn.h rule.
18220
18221         signal: Avoid #define replacements in C++ mode.
18222         * lib/signal.in.h: Include c++defs.h.
18223         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18224         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18225         namespaced alias symbol.
18226         * modules/signal (Depends-on): Add c++defs.
18227         (Makefile.am): Update signal.h rule.
18228
18229         search: Avoid #define replacements in C++ mode.
18230         * lib/search.in.h: Include c++defs.h.
18231         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18232         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18233         symbol.
18234         * modules/search (Depends-on): Add c++defs.
18235         (Makefile.am): Update search.h rule.
18236
18237         math: Avoid #define replacements in C++ mode.
18238         * lib/math.in.h: Include c++defs.h.
18239         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18240         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18241         trunc, truncl): In C++, define a namespaced alias symbol.
18242         * modules/math (Depends-on): Add c++defs.
18243         (Makefile.am): Update math.h rule.
18244
18245         locale: Avoid #define replacements in C++ mode.
18246         * lib/locale.in.h: Include c++defs.h.
18247         (duplocale): In C++, define a namespaced alias symbol.
18248         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18249         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18250         * modules/locale (Depends-on): Add c++defs.
18251         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18252
18253         langinfo: Avoid #define replacements in C++ mode.
18254         * lib/langinfo.in.h: Include c++defs.h.
18255         (nl_langinfo): In C++, define a namespaced alias symbol.
18256         * modules/langinfo (Depends-on): Add c++defs.
18257         (Makefile.am): Update langinfo.h rule.
18258
18259         iconv-h: Avoid #define replacements in C++ mode.
18260         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18261         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18262         symbol.
18263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18264         whenever iconv is present.
18265         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18266         (Makefile.am): Update iconv.h rule.
18267
18268         glob: Avoid #define replacements in C++ mode.
18269         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18270         (_gl_glob_errfunc_fn): New type.
18271         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18272         symbol.
18273         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18274         (Makefile.am): Update glob.h rule.
18275
18276         fcntl-h: Avoid #define replacements in C++ mode.
18277         * lib/fcntl.in.h: Include c++defs.h.
18278         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18279         * modules/fcntl-h (Depends-on): Add c++defs.
18280         (Makefile.am): Update fcntl.h rule.
18281
18282         dirent: Avoid #define replacements in C++ mode.
18283         * lib/dirent.in.h: Include c++defs.h.
18284         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18285         namespaced alias symbol.
18286         (dirfd): Update declaration.
18287         * modules/dirent (Depends-on): Add c++defs.
18288         (Makefile.am): Update dirent.h rule.
18289
18290         ctype: Make it usable in C++ code.
18291         * lib/ctype.in.h: Include c++defs.h.
18292         (isblank): Declare as extern "C".
18293         * modules/ctype (Depends-on): Add c++defs.
18294         (Makefile.am): Update ctype.h rule.
18295
18296         New module 'c++defs'.
18297         * modules/c++defs: New file.
18298         * build-aux/c++defs.h: New file.
18299         Reported by John W. Eaton <jwe@gnu.org>.
18300
18301 2010-03-07  Bruno Haible  <bruno@clisp.org>
18302
18303         logb: Provide missing declaration for Cygwin.
18304         * lib/math.in.h (logb): New declaration.
18305         * m4/logb.m4: New file.
18306         * modules/logb (Files): Add m4/logb.m4.
18307         (Depends-on): Add math.
18308         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18309         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18311         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18312         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18313
18314 2010-03-07  Bruno Haible  <bruno@clisp.org>
18315
18316         Fix test-cond link error.
18317         * tests/test-cond.c: Include <stdio.h>.
18318
18319 2010-03-07  Bruno Haible  <bruno@clisp.org>
18320
18321         Fix test-dirent-safer link error.
18322         * modules/dirent-safer-tests (Makefile.am): Define
18323         test_dirent_safer_LDADD.
18324
18325 2010-03-07  Bruno Haible  <bruno@clisp.org>
18326
18327         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18328         among default module list.
18329
18330 2010-03-07  Bruno Haible  <bruno@clisp.org>
18331
18332         Fix link error on platforms with GNU libiconv.
18333         * modules/unistr/u8-strcoll-tests (Makefile): Define
18334         test_u8_strcoll_LDADD.
18335         * modules/unistr/u16-strcoll-tests (Makefile): Define
18336         test_u16_strcoll_LDADD.
18337         * modules/unistr/u32-strcoll-tests (Makefile): Define
18338         test_u32_strcoll_LDADD.
18339
18340 2010-03-07  Bruno Haible  <bruno@clisp.org>
18341
18342         Use POSIX declarations for socket functions.
18343         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18344         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18345         rpl_sendto): Change declaration to match POSIX.
18346         * lib/connect.c (rpl_connect): Likewise.
18347         * lib/accept.c (rpl_accept): Likewise.
18348         * lib/bind.c (rpl_bind): Likewise.
18349         * lib/getpeername.c (rpl_getpeername): Likewise.
18350         * lib/getsockname.c (rpl_getsockname): Likewise.
18351         * lib/recv.c (rpl_recv): Likewise.
18352         * lib/send.c (rpl_send): Likewise.
18353         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18354         * lib/sendto.c (rpl_sendto): Likewise.
18355
18356 2010-03-06  Bruno Haible  <bruno@clisp.org>
18357
18358         Clarify access, euidaccess, faccessat.
18359         * doc/posix-functions/faccessat.texi: Mention security problem under
18360         "Other problems", not "Portability problems".
18361         * doc/posix-functions/access.texi: Likewise. Mention a related security
18362         problem.
18363         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18364         * lib/euidaccess.c: Add comments about platforms.
18365         * lib/unistd.in.h (access, euidaccess): Add warnings.
18366
18367 2010-03-07  Bruno Haible  <bruno@clisp.org>
18368
18369         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18370         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18371         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18372         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18373         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18374         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18375         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18376         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18377         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18379         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18380         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18381         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18382         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18383         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18384         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18385         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18386         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18387         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18388         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18389         Likewise.
18390         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18391         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18392         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18393         Likewise.
18394         * tests/test-spawn.c (main): Make it work when
18395         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18396
18397 2010-03-07  Bruno Haible  <bruno@clisp.org>
18398
18399         Fix incorrect Makefile.am generation in German locale.
18400         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18401         Execute sed command with character range in C locale.
18402
18403 2010-03-06  Bruno Haible  <bruno@clisp.org>
18404
18405         Tests for module 'iconv-h'.
18406         * modules/iconv-h-tests: New file.
18407         * tests/test-iconv-h.c: New file.
18408
18409         New module 'iconv-h'.
18410         * modules/iconv-h: New file.
18411         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18412         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18413         (configure.ac): Remove gl_ICONV_H.
18414         (Makefile.am): Remove rule for iconv.h.
18415
18416 2010-03-06  Bruno Haible  <bruno@clisp.org>
18417
18418         More consistent naming of *.m4 files.
18419         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18420         * modules/wctype (Files): Update.
18421
18422         More consistent naming of *.m4 files.
18423         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18424         * modules/wchar (Files): Update.
18425
18426 2010-03-06  Jim Meyering  <meyering@redhat.com>
18427
18428         euidaccess: relax license to LGPLv2+
18429         * modules/euidaccess (License): Relax to LGPLv2+.
18430
18431 2010-03-06  Bruno Haible  <bruno@clisp.org>
18432
18433         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18434         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18435         (Makefile.am): Augment lib_SOURCES instead.
18436
18437 2010-03-04  Jim Meyering  <meyering@redhat.com>
18438
18439         utime: remove obsolete module
18440         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18441         unnecessary for years, and has been marked as obsolete for 10 months.
18442         * modules/utime: Remove file.
18443         * lib/utime.c: Remove file.
18444         * m4/utime.m4: Remove file.
18445         * m4/utimes-null.m4: Remove file.
18446         * doc/posix-functions/utime.texi (utime): Remove reference to
18447         the module.  Move the sole "fixed by gnulib" item into the
18448         "problems not fixed by Gnulib" list.
18449         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18450
18451 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18452
18453         * modules/exit (License): Relax license to LGPLv2+.
18454         (Status): Mark as obsolete.
18455         * NEWS: Mention deprecated 'exit' module.
18456         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18457         of now obsolete 'exit'.
18458
18459 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18460
18461         fts-lgpl: remove unused module
18462         * modules/fts-lgpl: Remove.
18463         * MODULES.html.sh (func_all_modules): Adjust.
18464         * check-module (find_included_lib_files): Adjust.
18465         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18466
18467 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18468
18469         copy-acl: enhance Solaris ACL error handling
18470         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18471         * lib/set-mode-acl.c (qset_acl): Likewise.
18472
18473 2010-03-02  Bruno Haible  <bruno@clisp.org>
18474
18475         spawn: Don't override the system defined values on FreeBSD 8.
18476         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18477         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18478         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18479         if HAVE_POSIX_SPAWN is 1.
18480         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18481
18482 2010-03-01  Bruno Haible  <bruno@clisp.org>
18483
18484         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18485         regarding Automake.
18486
18487 2010-02-25  Bruno Haible  <bruno@clisp.org>
18488
18489         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18490         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18491         setting, not afterwards.
18492         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18493
18494 2010-02-24  Eric Blake  <eblake@redhat.com>
18495
18496         bootstrap, git-version-gen: use timestamp
18497         * build-aux/git-version-gen (scriptversion): Force UTC.
18498         * build-aux/bootstrap (scriptversion): New variable.
18499
18500         bootstrap: allow older git
18501         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18502         older than 1.6.4.  Requested by the libvirt project.
18503
18504 2010-02-23  Eric Blake  <eblake@redhat.com>
18505
18506         warn-on-use: work with old autoconf
18507         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18508         AS_VAR semantics of autoconf 2.60.
18509         Reported by Bruno Haible.
18510
18511         bootstrap: improve some comments
18512         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18513         clarification comments.
18514
18515         gettimeofday: provide correct function
18516         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18517         when replacement is declared, otherwise provide gettimeofday.
18518         Reported by Michael Goffioul.
18519
18520 2010-02-23  Jim Meyering  <meyering@redhat.com>
18521
18522         lib-ignore: relax license to "unlimited", not LGPLv2+
18523         * modules/lib-ignore (License): Relax to "unlimited".
18524
18525 2010-02-23  Jim Meyering  <meyering@redhat.com>
18526
18527         lib-ignore: relax license to LGPLv2+
18528         * modules/lib-ignore (License): Relax to LGPLv2+.
18529
18530 2010-02-22  Eric Blake  <eblake@redhat.com>
18531
18532         lseek: avoid bash 3.2 broken pipe bug
18533         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18534         warning from bash 3.2.
18535         Reported by Ben Pfaff, with analysis from Bruno Haible.
18536
18537         bootstrap: support non-FSF copyright holder
18538         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18539         bootstrap.conf override of COPYRIGHT_HOLDER.
18540         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18541
18542         bootstrap: interoperate with gettext 0.14.1
18543         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18544
18545         bootstrap: allow for alternate submodule location
18546         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18547         hardcoding submodule location.
18548         (gnulib_mk): Allow direct use of Makefile.am.
18549
18550         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18551         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18552         rather than reconfiguring where the submodule points.
18553
18554         gettimeofday: restore support for platforms that lack function
18555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18556         replacement if function is missing.
18557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18558         * modules/sys_time (Makefile.am): Substitute it.
18559         * lib/sys_time.in.h (gettimeofday): Check it.
18560         Reported by Michael Goffioul.
18561
18562 2010-02-21  Bruno Haible  <bruno@clisp.org>
18563
18564         * lib/stdio.in.h (obstack_printf): Fix typo.
18565
18566 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18567
18568         vc-list-files: use bzr ls's -R option
18569         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18570         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18571
18572 2010-02-21  Jim Meyering  <meyering@redhat.com>
18573
18574         init.sh: fix EXEEXT shims to work also for names like test-prog
18575         * tests/init.sh: Re-exec a better shell, when needed.
18576         If the current shell lacks support for posix $(...), an init.sh-using
18577         test will now try to find a shell that supports that.  If EXEEXT is
18578         nonempty, we also require support for hyphen-in-alias-name and shell
18579         substitutions like ${var#glob}.  Failure to find such a shell results
18580         in a skipped test.
18581
18582 2010-02-21  Bruno Haible  <bruno@clisp.org>
18583
18584         Really work around around "broken pipe" error message from bash 3.2.
18585         * gnulib-tool (func_reset_sigpipe): Remove function.
18586         (echo): In bash 3.2, define to a function that uses printf.
18587         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18588
18589 2010-02-20  Bruno Haible  <bruno@clisp.org>
18590
18591         Restore support for automake 1.9.6 with autoconf 2.61.
18592         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18593         Reported by James Youngman <jay@gnu.org>.
18594
18595 2010-02-20  Bruno Haible  <bruno@clisp.org>
18596
18597         Improve *printf warning condition.
18598         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18599         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18600         and the function is overridden due to SIGPIPE emulation.
18601
18602 2010-02-20  Bruno Haible  <bruno@clisp.org>
18603
18604         * lib/stdio.in.h: Tweak comments.
18605
18606 2010-02-19  Bruno Haible  <bruno@clisp.org>
18607
18608         Make it easier to find modules. New gnulib-tool option '--find'.
18609         * gnulib-tool: New option --find.
18610         (func_usage): Document it.
18611         (func_sanitize_modulelist): New function, extracted from
18612         func_all_modules.
18613         (func_all_modules): Invoke it.
18614         * doc/gnulib-tool.texi (Which modules?): New node.
18615
18616 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18617
18618         * lib/sys_select.in.h: Provide select replacement even if
18619         sys/select.h exists on a system, for Interix.
18620
18621 2010-02-18  Jim Meyering  <meyering@redhat.com>
18622
18623         init.sh: don't use $(...) just yet
18624         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18625         to accommodate e.g., Solaris' /bin/sh.
18626
18627 2010-02-17  Bruno Haible  <bruno@clisp.org>
18628
18629         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18630         Reported by Ludovic Courtès <ludo@gnu.org>.
18631
18632 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18633
18634         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18635         linking with -lintl.
18636
18637 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18638
18639         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18640         if not provided by the system's netdb.h.  Reported by
18641         ludo@gnu.org (Ludovic Courtès).
18642
18643 2010-02-15  Jim Meyering  <meyering@redhat.com>
18644
18645         init.sh: improve portability and efficiency
18646         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18647         "dummy" in a for loop.
18648         Use '!', not '^' to select the complement of a character set used
18649         in a "case" statement.
18650         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18651         Suggestions from Eric Blake.
18652
18653         init.sh: automatically accommodate programs with the .exe suffix
18654         Automatically arrange for an invocation of "prog" to execute the
18655         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18656         may use the simpler "prog", yet still work when built on a system
18657         that requires specifying the added suffix.
18658         Do this by constructing a function named "prog" that invokes
18659         "prog.exe" for each .exe file in selected directories.
18660         * tests/init.sh (find_exe_basenames_): New function.
18661         (create_exe_shim_functions_): New function.
18662         (path_prepend_): Use it.
18663
18664         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18665         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18666         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18667
18668 2010-02-14  Jim Meyering  <meyering@redhat.com>
18669
18670         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18671         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18672         (sc_prohibit_hash_pjw_without_use): New rule.
18673
18674         maint.mk: allow the default upload destination dir to be overridden
18675         * top/maint.mk (upload_dest_dir_): Define with a default that
18676         preserves the status quo.
18677         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18678         Reported by Peter Simons.
18679
18680         maint.mk: prohibit inclusion of "hash.h" without_use
18681         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18682
18683 2010-02-10  Jim Meyering  <meyering@redhat.com>
18684
18685         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18686         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18687
18688 2010-02-09  Eric Blake  <ebb9@byu.net>
18689         and Bruno Haible  <bruno@clisp.org>
18690
18691         obstack-printf-posix: ensure declaration
18692         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18693         extracted from gl_FUNC_OBSTACK_PRINTF.
18694         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18695         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18696         Likewise.
18697         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18698         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18699         0.
18700
18701 2010-02-08  Bruno Haible  <bruno@clisp.org>
18702
18703         gnulib-tool: Fix typo in 2010-02-07 commit.
18704         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18705         Reported by Eric Blake.
18706
18707 2010-02-07  Bruno Haible  <bruno@clisp.org>
18708
18709         gnulib-tool: Fix up caching patches.
18710         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18711         option --no-cache. Use associative arrays when supported by the shell.
18712         (sed_comments): New variable.
18713         (modcache): Renamed from do_cache.
18714         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18715         abbreviate unnecessarily.
18716         (have_associative): New variable.
18717         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18718         way also for ksh and zsh.
18719         (func_init_sed_convert_to_cache_statements): New function, extracted
18720         from func_cache_lookup_module. Add support for associative arrays.
18721         Don't set the c_MODULE_cached variable here. Ignore all lines before
18722         the first field header. Remove only the final newline, not all trailing
18723         newlines. Support empty fields correctly. Limit the use of 'eval' to
18724         assignments.
18725         (func_get_description, func_get_status, func_get_notice,
18726         func_get_applicability, func_get_filelist, func_get_dependencies,
18727         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18728         func_get_automake_snippet, func_get_include_directive,
18729         func_get_link_directive, func_get_license, func_get_maintainer):
18730         Update documentation. List the unoptimized code first. Add support for
18731         associative arrays. Limit the use of 'eval' to assignments.
18732         (func_get_applicability): Undo stylistic pessimisations.
18733         (func_get_automake_snippet, func_get_include_directive): Reduce code
18734         duplication.
18735         (func_modules_transitive_closure, func_modules_add_dummy,
18736         func_modules_notice, func_modules_to_filelist, func_add_file,
18737         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18738         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18739         func_create_testdir, func_create_megatestdir): Update documentation.
18740
18741 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18742
18743         * gnulib-tool (func_cache_lookup_module): Store the module name
18744         belonging to the cache variable; error out if two different
18745         module names map to the same cache variable name.
18746
18747 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18748
18749         gnulib-tool: Make caching optional.
18750         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18751         Update matching short versions of --no-changelog.
18752         (func_usage): Update.
18753         (sed_extract_cache_prog): Renamed from ...
18754         (sed_extract_prog): ... this; revert to old extraction script.
18755         (func_get_description, func_get_status)
18756         (func_get_notice, func_get_applicability, func_get_filelist)
18757         (func_get_dependencies, func_get_autoconf_early_snippet)
18758         (func_get_autoconf_snippet, func_get_automake_snippet)
18759         (func_get_include_directive, func_get_link_directive)
18760         (func_get_license, func_get_maintainer): If $do_cache is false,
18761         use old, non-caching extraction scripts.
18762         Suggestion by Bruno Haible.
18763
18764 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18765
18766         gnulib-tool: cache module metainformation.
18767         * gnulib-tool (sed_extract_prog): Match newline before each
18768         header, and rewrite header to a shell variable suffix.
18769         (func_cache_var, func_cache_lookup_module): New functions,
18770         to turn a module name into a cache variable prefix, and to
18771         look up and cache module metainformation.
18772         (func_get_description, func_get_status)
18773         (func_get_notice, func_get_applicability, func_get_filelist)
18774         (func_get_dependencies, func_get_autoconf_early_snippet)
18775         (func_get_autoconf_snippet, func_get_automake_snippet)
18776         (func_get_include_directive, func_get_link_directive)
18777         (func_get_license, func_get_maintainer): Use
18778         func_cache_lookup_module.
18779
18780 2010-02-07  Bruno Haible  <bruno@clisp.org>
18781
18782         fnctl: Fix missing dependency.
18783         * modules/fcntl (Depends-on): Add getdtablesize.
18784         Reported by John W. Eaton <jwe@gnu.org>.
18785
18786 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18787
18788         Argp: fix recognition of short alias options.
18789
18790         * lib/argp-parse.c (convert_options): Fix improper use of
18791         `|' between character values.
18792         * tests/test-argp.c (group1_option): New alias option
18793         --read (-r).
18794         (group1_parser): Special handling for 'r'.
18795         (test15): New test case.
18796         (test_fun): Add test15.
18797         * tests/test-argp-2.sh: Update expected --help and --usage
18798         outputs.
18799
18800 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18801
18802         * tests/test-argp.c: Fix indentation.
18803
18804 2010-02-04  Eric Blake  <ebb9@byu.net>
18805
18806         gettimeofday: expose type of second argument
18807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18808         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18809         * tests/test-gettimeofday.c: Use it to silence warning.
18810         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18811         the issue.
18812
18813 2010-02-03  Jim Meyering  <meyering@redhat.com>
18814
18815         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18816         * lib/regcomp.c (TYPE_SIGNED): Define.
18817         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18818
18819         regcomp.c: avoid a new -Wshadow warning
18820         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18821
18822 2010-02-01  Jim Meyering  <meyering@redhat.com>
18823
18824         removing useless parentheses in cpp #define directives
18825         For motivation, see commit c0221df4, "define STREQ(a,b)
18826         consistently, removing useless parentheses"
18827         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18828         * lib/mountlist.c (MNT_IGNORE): Likewise.
18829         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18830
18831 2010-02-01  Eric Blake  <ebb9@byu.net>
18832
18833         sys_time: use link-warning
18834         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18835         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18836         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18837         * modules/sys_time (Depends-on): Add warn-on-use.
18838         (Makefile.am): Always build replacement.
18839         (configure.ac): Update substitutions.
18840         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18841         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18842         bother with SYS_TIME_H.
18843         * modules/gettimeofday (configure.ac): Declare indicator.
18844         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18845         in use.
18846
18847         closein-tests: silence compiler warning
18848         * tests/test-closein.c (main): Ignore fread result.
18849         * modules/closein-tests (Depends-on): Add ignore-value.
18850
18851         tests: silence warning about system return
18852         * tests/test-areadlink-with-size.c (main): Ignore system result.
18853         * tests/test-areadlink.c (main): Likewise.
18854         * tests/test-areadlinkat-with-size.c (main): Likewise.
18855         * tests/test-areadlinkat.c (main): Likewise.
18856         * tests/test-canonicalize-lgpl.c (main): Likewise.
18857         * tests/test-canonicalize.c (main): Likewise.
18858         * tests/test-chown.c (main): Likewise.
18859         * tests/test-fchownat.c (main): Likewise.
18860         * tests/test-fdutimensat.c (main): Likewise.
18861         * tests/test-fstatat.c (main): Likewise.
18862         * tests/test-futimens.c (main): Likewise.
18863         * tests/test-lchown.c (main): Likewise.
18864         * tests/test-link.c (main): Likewise.
18865         * tests/test-linkat.c (main): Likewise.
18866         * tests/test-lstat.c (main): Likewise.
18867         * tests/test-mkdir.c (main): Likewise.
18868         * tests/test-mkdirat.c (main): Likewise.
18869         * tests/test-mkfifo.c (main): Likewise.
18870         * tests/test-mkfifoat.c (main): Likewise.
18871         * tests/test-mknod.c (main): Likewise.
18872         * tests/test-readlink.c (main): Likewise.
18873         * tests/test-remove.c (main): Likewise.
18874         * tests/test-rename.c (main): Likewise.
18875         * tests/test-renameat.c (main): Likewise.
18876         * tests/test-rmdir.c (main): Likewise.
18877         * tests/test-symlink.c (main): Likewise.
18878         * tests/test-symlinkat.c (main): Likewise.
18879         * tests/test-unlink.c (main): Likewise.
18880         * tests/test-unlinkat.c (main): Likewise.
18881         * tests/test-utimens.c (main): Likewise.
18882         * tests/test-utimensat.c (main): Likewise.
18883         * modules/areadlink-tests (Depends-on): Add ignore-value.
18884         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18885         * modules/areadlinkat-tests (Depends-on): Likewise.
18886         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18887         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18888         * modules/canonicalize-tests (Depends-on): Likewise.
18889         * modules/chown-tests (Depends-on): Likewise.
18890         * modules/fdutimensat-tests (Depends-on): Likewise.
18891         * modules/futimens-tests (Depends-on): Likewise.
18892         * modules/lchown-tests (Depends-on): Likewise.
18893         * modules/link-tests (Depends-on): Likewise.
18894         * modules/linkat-tests (Depends-on): Likewise.
18895         * modules/lstat-tests (Depends-on): Likewise.
18896         * modules/mkdir-tests (Depends-on): Likewise.
18897         * modules/mkfifo-tests (Depends-on): Likewise.
18898         * modules/mkfifoat-tests (Depends-on): Likewise.
18899         * modules/mknod-tests (Depends-on): Likewise.
18900         * modules/openat-tests (Depends-on): Likewise.
18901         * modules/readlink-tests (Depends-on): Likewise.
18902         * modules/remove-tests (Depends-on): Likewise.
18903         * modules/rename-tests (Depends-on): Likewise.
18904         * modules/renameat-tests (Depends-on): Likewise.
18905         * modules/rmdir-tests (Depends-on): Likewise.
18906         * modules/symlink-tests (Depends-on): Likewise.
18907         * modules/symlinkat-tests (Depends-on): Likewise.
18908         * modules/unlink-tests (Depends-on): Likewise.
18909         * modules/utimens-tests (Depends-on): Likewise.
18910         * modules/utimensat-tests (Depends-on): Likewise.
18911
18912 2010-01-31  Bruno Haible  <bruno@clisp.org>
18913
18914         Perform the same test for many <math.h> functions.
18915         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18916         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18917         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18918         of gl_MATHFUNC.
18919         * modules/acos (configure.ac): Likewise.
18920         * modules/asin (configure.ac): Likewise.
18921         * modules/atan (configure.ac): Likewise.
18922         * modules/atan2 (configure.ac): Likewise.
18923         * modules/cbrt (configure.ac): Likewise.
18924         * modules/copysign (configure.ac): Likewise.
18925         * modules/cos (configure.ac): Likewise.
18926         * modules/cosh (configure.ac): Likewise.
18927         * modules/erf (configure.ac): Likewise.
18928         * modules/erfc (configure.ac): Likewise.
18929         * modules/exp (configure.ac): Likewise.
18930         * modules/fmod (configure.ac): Likewise.
18931         * modules/hypot (configure.ac): Likewise.
18932         * modules/j0 (configure.ac): Likewise.
18933         * modules/j1 (configure.ac): Likewise.
18934         * modules/jn (configure.ac): Likewise.
18935         * modules/lgamma (configure.ac): Likewise.
18936         * modules/log (configure.ac): Likewise.
18937         * modules/log10 (configure.ac): Likewise.
18938         * modules/log1p (configure.ac): Likewise.
18939         * modules/pow (configure.ac): Likewise.
18940         * modules/remainder (configure.ac): Likewise.
18941         * modules/sin (configure.ac): Likewise.
18942         * modules/sinh (configure.ac): Likewise.
18943         * modules/tan (configure.ac): Likewise.
18944         * modules/tanh (configure.ac): Likewise.
18945         * modules/y0 (configure.ac): Likewise.
18946         * modules/y1 (configure.ac): Likewise.
18947         * modules/yn (configure.ac): Likewise.
18948         Suggested by Paolo Bonzini.
18949
18950 2010-01-31  Bruno Haible  <bruno@clisp.org>
18951
18952         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18953
18954 2010-01-31  Bruno Haible  <bruno@clisp.org>
18955
18956         Work around getdelim() bug on FreeBSD 8.0.
18957         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18958         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18959         not work.
18960         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18961         is 1.
18962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18963         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18964         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18965         a non-zero size.
18966         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18967
18968 2010-01-31  Bruno Haible  <bruno@clisp.org>
18969
18970         Work around getline() bug on FreeBSD 8.0.
18971         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18972         and a non-zero size.
18973         * tests/test-getline.c (main): Likewise.
18974         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18975         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18976
18977 2010-01-28  Eric Blake  <ebb9@byu.net>
18978
18979         regex: fix build failure
18980         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18981         platforms.
18982
18983 2010-01-28  Jim Meyering  <meyering@redhat.com>
18984
18985         regex: do not ignore memory allocation failure
18986         * lib/regex_internal.c (create_cd_newstate): Detect
18987         re_node_set_init_copy failure.   Extracted from glibc commit
18988         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18989
18990         regex: sync more white-space changes from libc
18991         * lib/regex_internal.c: White-space only changes.
18992         * lib/regexec.c: Likewise.
18993
18994         regex: add many uses of __attribute_warn_unused_result__
18995         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18996         * lib/regexec.c: Likewise.
18997         Extracted from a messy glibc commit.
18998
18999         regcomp.c: spelling and merge-artifact from glibc
19000         * lib/regcomp.c: Merge remainder of glibc's
19001         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19002
19003         regcomp.c: sync white-space changes from glibc
19004         * lib/regcomp.c: Merge to accommodate white space
19005         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19006
19007         regcomp.c: do not ignore internal return values
19008         * lib/regcomp.c: Do not ignore internal return values.
19009         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19010         but without its white-space changes and spelling fixes.
19011
19012         regex_internal.h: define __attribute_warn_unused_result__
19013         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19014
19015         maint: add a syntax-check rule to check for vulnerable Makefile.in
19016         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19017
19018 2010-01-27  Jim Meyering  <meyering@redhat.com>
19019
19020         ncftpput-ftp: clean up spaces
19021         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19022         Remove trailing blanks.
19023
19024 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19025
19026         * build-aux/git-version-gen: Fix copyright statement.
19027         * build-aux/gnupload: Likewise.
19028         * tests/test-arcfour.c: Likewise.
19029         * tests/test-arctwo.c: Likewise.
19030         * tests/test-count-one-bits.c: Likewise.
19031         * tests/test-crc.c: Likewise.
19032         * tests/test-des.c: Likewise.
19033         * tests/test-gc-arcfour.c: Likewise.
19034         * tests/test-gc-arctwo.c: Likewise.
19035         * tests/test-gc-des.c: Likewise.
19036         * tests/test-gc-hmac-md5.c: Likewise.
19037         * tests/test-gc-hmac-sha1.c: Likewise.
19038         * tests/test-gc-md2.c: Likewise.
19039         * tests/test-gc-md4.c: Likewise.
19040         * tests/test-gc-md5.c: Likewise.
19041         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19042         * tests/test-gc-rijndael.c: Likewise.
19043         * tests/test-gc-sha1.c: Likewise.
19044         * tests/test-gc.c: Likewise.
19045         * tests/test-gethostname.c: Likewise.
19046         * tests/test-gettimeofday.c: Likewise.
19047         * tests/test-hash.c: Likewise.
19048         * tests/test-hmac-md5.c: Likewise.
19049         * tests/test-hmac-sha1.c: Likewise.
19050         * tests/test-md2.c: Likewise.
19051         * tests/test-md4.c: Likewise.
19052         * tests/test-md5.c: Likewise.
19053         * tests/test-memchr.c: Likewise.
19054         * tests/test-memchr2.c: Likewise.
19055         * tests/test-memcmp.c: Likewise.
19056         * tests/test-memmem.c: Likewise.
19057         * tests/test-memrchr.c: Likewise.
19058         * tests/test-rawmemchr.c: Likewise.
19059         * tests/test-read-file.c: Likewise.
19060         * tests/test-rijndael.c: Likewise.
19061         * tests/test-sockets.c: Likewise.
19062         * tests/test-strchrnul.c: Likewise.
19063         * tests/test-strstr.c: Likewise.
19064         * tests/test-strtod.c: Likewise.
19065         * build-aux/ncftpput-ftp: Likewise.
19066
19067 2010-01-26  Eric Blake  <ebb9@byu.net>
19068
19069         ignore-value: update recommended header name
19070         * modules/ignore-value (Include): Only use <> for headers that
19071         exist in glibc.
19072
19073 2010-01-26  Jim Meyering  <meyering@redhat.com>
19074
19075         test-userspec.c: avoid compiler warnings
19076         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19077         and "initialization discards qualifiers..." warnings.
19078         Put the first "uid" in its own scope, and make char* members "const".
19079
19080 2010-01-25  Bruno Haible  <bruno@clisp.org>
19081
19082         gnulib-tool: Make warning diagnostics consistent.
19083         * gnulib-tool (func_warning): New function.
19084         Use it everywhere where gnulib-tool produces output to stderr and it is
19085         not a fatal error.
19086
19087 2010-01-25  Bruno Haible  <bruno@clisp.org>
19088
19089         Fix test dependencies.
19090         * modules/xstrtol-tests (Depends-on): Add inttypes.
19091         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19092
19093 2010-01-25 Pádraig Brady <P@draigBrady.com>
19094
19095         syntax-check: detect incorrect boolean macro values in config.h
19096         * modules/maintainer-makefile (configure.ac): Parameterize the location
19097         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19098         The logic is from Eric Blake and the location indicated by Jim Meyering.
19099         Note the more natural CONFIG_HEADER name is prohibited by automake
19100         for backwards compatibility reasons.
19101         * top/maint.mk (sc_Wundef_boolean): New rule.
19102
19103 2010-01-25  Jim Meyering  <meyering@redhat.com>
19104
19105         bootstrap: detect MacOS 10.6's shasum, too
19106         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19107         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19108
19109 2010-01-23  Jim Meyering  <meyering@redhat.com>
19110
19111         xstrtoll: new module
19112         * modules/xstrtoll: New file.
19113         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19114         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19115         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19116         ./configure fails if you use this module and lack "long long".
19117         * modules/xstrtoll-tests: New module.
19118         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19119         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19120         new init.sh-based test framework.
19121
19122 2010-01-24  Bruno Haible  <bruno@clisp.org>
19123
19124         Tests for module 'yn'.
19125         * modules/yn-tests: New file.
19126         * tests/test-yn.c: New file.
19127
19128         Tests for module 'y1'.
19129         * modules/y1-tests: New file.
19130         * tests/test-y1.c: New file.
19131
19132         Tests for module 'y0'.
19133         * modules/y0-tests: New file.
19134         * tests/test-y0.c: New file.
19135
19136         Tests for module 'tanh'.
19137         * modules/tanh-tests: New file.
19138         * tests/test-tanh.c: New file.
19139
19140         Tests for module 'tan'.
19141         * modules/tan-tests: New file.
19142         * tests/test-tan.c: New file.
19143
19144         Tests for module 'sqrt'.
19145         * modules/sqrt-tests: New file.
19146         * tests/test-sqrt.c: New file.
19147
19148         Tests for module 'sinh'.
19149         * modules/sinh-tests: New file.
19150         * tests/test-sinh.c: New file.
19151
19152         Tests for module 'sin'.
19153         * modules/sin-tests: New file.
19154         * tests/test-sin.c: New file.
19155
19156         Tests for module 'rint'.
19157         * modules/rint-tests: New file.
19158         * tests/test-rint.c: New file.
19159
19160         Tests for module 'remainder'.
19161         * modules/remainder-tests: New file.
19162         * tests/test-remainder.c: New file.
19163
19164         Tests for module 'pow'.
19165         * modules/pow-tests: New file.
19166         * tests/test-pow.c: New file.
19167
19168         Tests for module 'nextafter'.
19169         * modules/nextafter-tests: New file.
19170         * tests/test-nextafter.c: New file.
19171
19172         Tests for module 'modf'.
19173         * modules/modf-tests: New file.
19174         * tests/test-modf.c: New file.
19175
19176         Tests for module 'logb'.
19177         * modules/logb-tests: New file.
19178         * tests/test-logb.c: New file.
19179
19180         Tests for module 'log1p'.
19181         * modules/log1p-tests: New file.
19182         * tests/test-log1p.c: New file.
19183
19184         Tests for module 'log10'.
19185         * modules/log10-tests: New file.
19186         * tests/test-log10.c: New file.
19187
19188         Tests for module 'log'.
19189         * modules/log-tests: New file.
19190         * tests/test-log.c: New file.
19191
19192         Tests for module 'lgamma'.
19193         * modules/lgamma-tests: New file.
19194         * tests/test-lgamma.c: New file.
19195
19196         Tests for module 'ldexp'.
19197         * modules/ldexp-tests: New file.
19198         * tests/test-ldexp.c: New file.
19199
19200         Tests for module 'jn'.
19201         * modules/jn-tests: New file.
19202         * tests/test-jn.c: New file.
19203
19204         Tests for module 'j1'.
19205         * modules/j1-tests: New file.
19206         * tests/test-j1.c: New file.
19207
19208         Tests for module 'j0'.
19209         * modules/j0-tests: New file.
19210         * tests/test-j0.c: New file.
19211
19212         Tests for module 'hypot'.
19213         * modules/hypot-tests: New file.
19214         * tests/test-hypot.c: New file.
19215
19216         Tests for module 'fmod'.
19217         * modules/fmod-tests: New file.
19218         * tests/test-fmod.c: New file.
19219
19220         Tests for module 'fabs'.
19221         * modules/fabs-tests: New file.
19222         * tests/test-fabs.c: New file.
19223
19224         Tests for module 'exp'.
19225         * modules/exp-tests: New file.
19226         * tests/test-exp.c: New file.
19227
19228         Tests for module 'erfc'.
19229         * modules/erfc-tests: New file.
19230         * tests/test-erfc.c: New file.
19231
19232         Tests for module 'erf'.
19233         * modules/erf-tests: New file.
19234         * tests/test-erf.c: New file.
19235
19236         Tests for module 'cosh'.
19237         * modules/cosh-tests: New file.
19238         * tests/test-cosh.c: New file.
19239
19240         Tests for module 'cos'.
19241         * modules/cos-tests: New file.
19242         * tests/test-cos.c: New file.
19243
19244         Tests for module 'copysign'.
19245         * modules/copysign-tests: New file.
19246         * tests/test-copysign.c: New file.
19247
19248         Tests for module 'cbrt'.
19249         * modules/cbrt-tests: New file.
19250         * tests/test-cbrt.c: New file.
19251
19252         Tests for module 'atan2'.
19253         * modules/atan2-tests: New file.
19254         * tests/test-atan2.c: New file.
19255
19256         Tests for module 'atan'.
19257         * modules/atan-tests: New file.
19258         * tests/test-atan.c: New file.
19259
19260         Tests for module 'asin'.
19261         * modules/asin-tests: New file.
19262         * tests/test-asin.c: New file.
19263
19264         Tests for module 'acos'.
19265         * modules/acos-tests: New file.
19266         * tests/test-acos.c: New file.
19267
19268 2010-01-24  Bruno Haible  <bruno@clisp.org>
19269
19270         Fix tests for common <math.h> functions.
19271         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19272         code snippet that references the function pointer, rather than merely
19273         calling the function. Substitute the FUNC_LIBM variable.
19274         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19275         * modules/acos (configure.ac): Likewise.
19276         * modules/asin (configure.ac): Likewise.
19277         * modules/atan (configure.ac): Likewise.
19278         * modules/atan2 (configure.ac): Likewise.
19279         * modules/cbrt (configure.ac): Likewise.
19280         * modules/copysign (configure.ac): Likewise.
19281         * modules/cos (configure.ac): Likewise.
19282         * modules/cosh (configure.ac): Likewise.
19283         * modules/erf (configure.ac): Likewise.
19284         * modules/erfc (configure.ac): Likewise.
19285         * modules/exp (configure.ac): Likewise.
19286         * modules/fabs (configure.ac): Likewise.
19287         * modules/fmod (configure.ac): Likewise.
19288         * modules/hypot (configure.ac): Likewise.
19289         * modules/j0 (configure.ac): Likewise.
19290         * modules/j1 (configure.ac): Likewise.
19291         * modules/jn (configure.ac): Likewise.
19292         * modules/ldexp (configure.ac): Likewise.
19293         * modules/lgamma (configure.ac): Likewise.
19294         * modules/log (configure.ac): Likewise.
19295         * modules/log10 (configure.ac): Likewise.
19296         * modules/log1p (configure.ac): Likewise.
19297         * modules/logb (configure.ac): Likewise.
19298         * modules/modf (configure.ac): Likewise.
19299         * modules/nextafter (configure.ac): Likewise.
19300         * modules/pow (configure.ac): Likewise.
19301         * modules/remainder (configure.ac): Likewise.
19302         * modules/rint (configure.ac): Likewise.
19303         * modules/sin (configure.ac): Likewise.
19304         * modules/sinh (configure.ac): Likewise.
19305         * modules/tan (configure.ac): Likewise.
19306         * modules/tanh (configure.ac): Likewise.
19307         * modules/y0 (configure.ac): Likewise.
19308         * modules/y1 (configure.ac): Likewise.
19309         * modules/yn (configure.ac): Likewise.
19310
19311 2010-01-24  Bruno Haible  <bruno@clisp.org>
19312
19313         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19314         * tests/test-acosl.c (x): New variable.
19315         (main): Store argument in x and fetch it from x.
19316         * tests/test-asinl.c (x): New variable.
19317         (main): Store argument in x and fetch it from x.
19318         * tests/test-atanl.c (x): New variable.
19319         (main): Store argument in x and fetch it from x.
19320         * tests/test-cosl.c (x): New variable.
19321         (main): Store argument in x and fetch it from x.
19322         * tests/test-expl.c (x): New variable.
19323         (main): Store argument in x and fetch it from x.
19324         * tests/test-logl.c (x): New variable.
19325         (main): Store argument in x and fetch it from x.
19326         * tests/test-sinl.c (x): New variable.
19327         (main): Store argument in x and fetch it from x.
19328         * tests/test-sqrtl.c (x): New variable.
19329         (main): Store argument in x and fetch it from x.
19330         * tests/test-tanl.c (x): New variable.
19331         (main): Store argument in x and fetch it from x.
19332
19333 2010-01-24  Bruno Haible  <bruno@clisp.org>
19334
19335         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19336         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19337         assignments to the initial TESTS_ENVIRONMENT.
19338         * doc/gnulib.texi (Unit test modules): Document it.
19339         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19340         TESTS_ENVIRONMENT.
19341         * modules/btowc-tests (Makefile.am): Likewise.
19342         * modules/c-stack-tests (Makefile.am): Likewise.
19343         * modules/c-strcase-tests (Makefile.am): Likewise.
19344         * modules/copy-file-tests (Makefile.am): Likewise.
19345         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19346         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19347         * modules/mbrtowc-tests (Makefile.am): Likewise.
19348         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19349         * modules/mbscasestr-tests (Makefile.am): Likewise.
19350         * modules/mbschr-tests (Makefile.am): Likewise.
19351         * modules/mbscspn-tests (Makefile.am): Likewise.
19352         * modules/mbsinit-tests (Makefile.am): Likewise.
19353         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19354         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19355         * modules/mbspbrk-tests (Makefile.am): Likewise.
19356         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19357         * modules/mbsrchr-tests (Makefile.am): Likewise.
19358         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19359         * modules/mbsspn-tests (Makefile.am): Likewise.
19360         * modules/mbsstr-tests (Makefile.am): Likewise.
19361         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19362         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19363         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19364         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19365         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19366         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19367         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19368         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19369         * modules/wcrtomb-tests (Makefile.am): Likewise.
19370         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19371         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19372         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19373         assignments from TESTS_ENVIRONMENT.
19374         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19375         augmentation.
19376         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19377         * modules/atexit-tests (Makefile.am): Likewise.
19378         * modules/binary-io-tests (Makefile.am): Likewise.
19379         * modules/closein-tests (Makefile.am): Likewise.
19380         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19381         * modules/exclude-tests (Makefile.am): Likewise.
19382         * modules/fflush-tests (Makefile.am): Likewise.
19383         * modules/fpending-tests (Makefile.am): Likewise.
19384         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19385         * modules/freadahead-tests (Makefile.am): Likewise.
19386         * modules/freadptr-tests (Makefile.am): Likewise.
19387         * modules/freadseek-tests (Makefile.am): Likewise.
19388         * modules/fseek-tests (Makefile.am): Likewise.
19389         * modules/fseeko-tests (Makefile.am): Likewise.
19390         * modules/ftell-tests (Makefile.am): Likewise.
19391         * modules/ftello-tests (Makefile.am): Likewise.
19392         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19393         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19394         * modules/lseek-tests (Makefile.am): Likewise.
19395         * modules/parse-duration-tests (Makefile.am): Likewise.
19396         * modules/perror-tests (Makefile.am): Likewise.
19397         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19398         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19399         * modules/pipe-tests (Makefile.am): Likewise.
19400         * modules/pread-tests (Makefile.am): Likewise.
19401         * modules/printf-posix-tests (Makefile.am): Likewise.
19402         * modules/select-tests (Makefile.am): Likewise.
19403         * modules/sigpipe-tests (Makefile.am): Likewise.
19404         * modules/tsearch-tests (Makefile.am): Likewise.
19405         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19406         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19407         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19408         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19409         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19410         * modules/version-etc-tests (Makefile.am): Likewise.
19411         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19412         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19413         * modules/xalloc-die-tests (Makefile.am): Likewise.
19414         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19415         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19416         * modules/xstrtol-tests (Makefile.am): Likewise.
19417         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19418         * modules/yesno-tests (Makefile.am): Likewise.
19419         Suggested by Jim Meyering.
19420
19421 2010-01-24  Bruno Haible  <bruno@clisp.org>
19422
19423         More documentation.
19424         * doc/gnulib.texi (Writing modules): New chapter.
19425         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19426         the new chapter.
19427
19428 2010-01-24  Jim Meyering  <meyering@redhat.com>
19429
19430         maint.mk: do not prepend "./" after filtering
19431         * top/maint.mk (_prepend_srcdir_prefix): New variable
19432         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19433         "./" when $(srcdir) is ".".
19434
19435         define STREQ(a,b) consistently, removing useless parentheses
19436         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19437         since the only risk is that "a" or "b" contains an unparenthesized
19438         comma, but if either did that, STREQ would have 3 or more arguments.
19439         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19440         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19441         * lib/hash-triple.c (STREQ): Likewise.
19442         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19443         * lib/getugroups.c (STREQ): Likewise.
19444
19445 2010-01-23  Jim Meyering  <meyering@redhat.com>
19446
19447         maint.mk: fix syntax-check in a non-srcdir build directory
19448         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19449         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19450
19451 2010-01-22  Jim Meyering  <meyering@redhat.com>
19452
19453         userspec: add unit tests
19454         * tests/test-userspec.c: New file.
19455         * modules/userspec-tests: Likewise.
19456
19457 2010-01-21  Jim Meyering  <meyering@redhat.com>
19458
19459         maint.mk: handle source file names containing "." robustly
19460         * top/maint.mk (_dot_escaped_srcdir): Define.
19461         (VC_LIST): Use it in LHS of sed substitution.
19462
19463 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19464
19465         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19466         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19467         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19468         from a non-srcdir build.
19469
19470 2010-01-20  Eric Blake  <ebb9@byu.net>
19471
19472         warn-on-use: use instead of link-warning
19473         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19474         * modules/unistd (Depends-on, Makefile.am): Likewise.
19475         * modules/arpa_inet (Depends-on): Replace link-warning with
19476         warn-on-use.
19477         (Makefile.am): Update rules accordingly.
19478         * modules/ctype (Depends-on, Makefile.am): Likewise.
19479         * modules/dirent (Depends-on, Makefile.am): Likewise.
19480         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19481         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19482         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19483         * modules/locale (Depends-on, Makefile.am): Likewise.
19484         * modules/math (Depends-on, Makefile.am): Likewise.
19485         * modules/search (Depends-on, Makefile.am): Likewise.
19486         * modules/signal (Depends-on, Makefile.am): Likewise.
19487         * modules/spawn (Depends-on, Makefile.am): Likewise.
19488         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19489         * modules/string (Depends-on, Makefile.am): Likewise.
19490         * modules/strings (Depends-on, Makefile.am): Likewise.
19491         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19492         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19493         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19494         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19495         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19496         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19497         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19498         * modules/wchar (Depends-on, Makefile.am): Likewise.
19499         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19500         should be poisoned.
19501         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19502         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19503         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19504         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19505         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19506         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19507         * m4/math_h.m4 (gl_MATH_H): Likewise.
19508         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19509         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19510         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19511         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19512         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19513         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19514         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19515         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19516         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19520         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19522         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19523         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19524         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19525         GL_LINK_WARNING.
19526         * lib/ctype.in.h: Likewise.
19527         * lib/dirent.in.h: Likewise.
19528         * lib/fcntl.in.h: Likewise.
19529         * lib/inttypes.in.h: Likewise.
19530         * lib/langinfo.in.h: Likewise.
19531         * lib/locale.in.h: Likewise.
19532         * lib/math.in.h: Likewise.
19533         * lib/search.in.h: Likewise.
19534         * lib/signal.in.h: Likewise.
19535         * lib/spawn.in.h: Likewise.
19536         * lib/stdio.in.h: Likewise.
19537         * lib/stdlib.in.h: Likewise.
19538         * lib/string.in.h: Likewise.
19539         * lib/strings.in.h: Likewise.
19540         * lib/sys_file.in.h: Likewise.
19541         * lib/sys_ioctl.in.h: Likewise.
19542         * lib/sys_select.in.h: Likewise.
19543         * lib/sys_socket.in.h: Likewise.
19544         * lib/sys_stat.in.h: Likewise.
19545         * lib/sys_times.in.h: Likewise.
19546         * lib/sys_utsname.in.h: Likewise.
19547         * lib/unistd.in.h: Likewise.
19548         * lib/wchar.in.h: Likewise.
19549
19550 2010-01-20  Bruno Haible  <bruno@clisp.org>
19551
19552         Avoid duplicate -lm.
19553         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19554         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19556         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19557         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19558         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19559         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19560         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19561         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19562         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19563         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19564         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19565         Reported by Paolo Bonzini.
19566
19567 2010-01-19  Bruno Haible  <bruno@clisp.org>
19568
19569         langinfo, nl_langinfo: Relicense under LGPLv2+.
19570         * modules/langinfo (License): Change to LGPLv2+.
19571         * modules/nl_langinfo (License): Likewise.
19572         Patch by David Lutterkort <lutter@redhat.com>.
19573
19574 2010-01-19  Bruno Haible  <bruno@clisp.org>
19575
19576         Avoid compilation error with cc on OSF/1 5.1.
19577         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19578         statement, not before.
19579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19580
19581 2010-01-18  Bruno Haible  <bruno@clisp.org>
19582
19583         Avoid a link error due to the __printf__ symbol.
19584         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19585         and 2.6.x.
19586         (__format__, __printf__): Remove definitions.
19587         * lib/argp-fmtstream.h: Likewise.
19588         * lib/argp.h: Likewise.
19589         * lib/error.h: Likewise.
19590         * lib/vasnprintf.h: Likewise.
19591         * lib/xprintf.h: Likewise.
19592         * lib/xvasprintf.h: Likewise.
19593         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19594
19595 2010-01-18  Bruno Haible  <bruno@clisp.org>
19596
19597         Tests for module 'tanl'.
19598         * modules/tanl-tests: New file.
19599         * tests/test-tanl.c: New file.
19600
19601         Tests for module 'sqrtl'.
19602         * modules/sqrtl-tests: New file.
19603         * tests/test-sqrtl.c: New file.
19604
19605         Tests for module 'sinl'.
19606         * modules/sinl-tests: New file.
19607         * tests/test-sinl.c: New file.
19608
19609         Tests for module 'logl'.
19610         * modules/logl-tests: New file.
19611         * tests/test-logl.c: New file.
19612
19613         Tests for module 'expl'.
19614         * modules/expl-tests: New file.
19615         * tests/test-expl.c: New file.
19616
19617         Tests for module 'cosl'.
19618         * modules/cosl-tests: New file.
19619         * tests/test-cosl.c: New file.
19620
19621         Tests for module 'atanl'.
19622         * modules/atanl-tests: New file.
19623         * tests/test-atanl.c: New file.
19624
19625         Tests for module 'asinl'.
19626         * modules/asinl-tests: New file.
19627         * tests/test-asinl.c: New file.
19628
19629         Tests for module 'acosl'.
19630         * modules/acosl-tests: New file.
19631         * tests/test-acosl.c: New file.
19632
19633         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19634         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19635         tanl): Use the standard gnulib idiom.
19636         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19637         * lib/sinl.c: Likewise.
19638         * lib/tanl.c: Don't include trigl.c.
19639         (kernel_tanl): Make static.
19640         * lib/sincosl.c: Include trigl.h first.
19641         * lib/trigl.c: Likewise.
19642         * m4/acosl.m4: New file.
19643         * m4/asinl.m4: New file.
19644         * m4/atanl.m4: New file.
19645         * m4/cosl.m4: New file.
19646         * m4/expl.m4: New file.
19647         * m4/logl.m4: New file.
19648         * m4/sinl.m4: New file.
19649         * m4/sqrtl.m4: New file.
19650         * m4/tanl.m4: New file.
19651         * m4/mathl.m4: Remove file.
19652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19653         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19654         Don't initialize GNULIB_MATHL.
19655         * modules/acosl: New file.
19656         * modules/asinl: New file.
19657         * modules/atanl: New file.
19658         * modules/cosl: New file.
19659         * modules/expl: New file.
19660         * modules/logl: New file.
19661         * modules/sinl: New file.
19662         * modules/sqrtl: New file.
19663         * modules/tanl: New file.
19664         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19665         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19666         substitute GNULIB_MATHL.
19667         * modules/mathl: Rewritten.
19668         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19669         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19670         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19671         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19672         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19673         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19674         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19675         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19676         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19677
19678 2010-01-18  Bruno Haible  <bruno@clisp.org>
19679
19680         sqrt: Make gl_FUNC_SQRT requirable.
19681         * m4/sqrt.m4: New file.
19682         * modules/sqrt (Files): Add it.
19683         (configure.ac): Invoke gl_FUNC_SQRT.
19684
19685 2010-01-18  Bruno Haible  <bruno@clisp.org>
19686
19687         New modules for common <math.h> functions.
19688         * m4/mathfunc.m4: New file.
19689         * modules/acos: New file.
19690         * modules/asin: New file.
19691         * modules/atan: New file.
19692         * modules/atan2: New file.
19693         * modules/cbrt: New file.
19694         * modules/copysign: New file.
19695         * modules/cos: New file.
19696         * modules/cosh: New file.
19697         * modules/erf: New file.
19698         * modules/erfc: New file.
19699         * modules/exp: New file.
19700         * modules/fabs: New file.
19701         * modules/fmod: New file.
19702         * modules/hypot: New file.
19703         * modules/j0: New file.
19704         * modules/j1: New file.
19705         * modules/jn: New file.
19706         * modules/ldexp: New file.
19707         * modules/lgamma: New file.
19708         * modules/log: New file.
19709         * modules/log10: New file.
19710         * modules/log1p: New file.
19711         * modules/logb: New file.
19712         * modules/modf: New file.
19713         * modules/nextafter: New file.
19714         * modules/pow: New file.
19715         * modules/remainder: New file.
19716         * modules/rint: New file.
19717         * modules/sin: New file.
19718         * modules/sinh: New file.
19719         * modules/sqrt: New file.
19720         * modules/tan: New file.
19721         * modules/tanh: New file.
19722         * modules/y0: New file.
19723         * modules/y1: New file.
19724         * modules/yn: New file.
19725         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19726         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19727         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19728         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19729         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19730         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19731         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19732         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19733         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19734         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19735         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19736         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19737         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19738         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19739         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19740         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19741         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19742         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19743         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19744         * doc/posix-functions/log.texi: Mention the 'log' module.
19745         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19746         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19747         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19748         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19749         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19750         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19751         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19752         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19753         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19754         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19755         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19756         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19757         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19758         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19759         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19760         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19761
19762 2010-01-18  Jim Meyering  <meyering@redhat.com>
19763
19764         ignore-value: relax license to LGPLv2+
19765         * modules/ignore-value (License): Relax to LGPLv2+.
19766
19767         getdate: don't leak when TZ contains two or more '"'s
19768         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19769         double quote in TZ after the first one.
19770
19771         readtokens: do not leak internal token_lengths buffer
19772         * lib/readtokens.c (readtokens): Free the local, lengths,
19773         when the supplied "token_lengths" parameter is NULL.
19774
19775 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19776
19777         Fix a couple of missing LIBTHREAD link failures on AIX.
19778         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19779         $(LIBTHREAD).
19780         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19781
19782         Link test-poll against INET_PTON_LIB.
19783         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19784         for inet_pton on Solaris 10.
19785
19786 2010-01-17  Bruno Haible  <bruno@clisp.org>
19787
19788         unistdio/*-sprintf: Fix typo in module description.
19789         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19790         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19791         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19792         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19793         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19794         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19795         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19796         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19797
19798 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19799
19800         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19801         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19802         variables in shell case patterns, for AIX and HP-UX ksh.
19803
19804         Split large sed scripts, for HP-UX sed.
19805         * modules/stdio: Split sed scripts around 50 sed commands,
19806         to avoid HP-UX limit of 99 commands, in the near future.
19807         * modules/string: Likewise.
19808         * modules/unistd: Likewise.
19809
19810         gnulib-tool: avoid writing in the current directory.
19811         * gnulib-tool (func_emit_lib_Makefile_am)
19812         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19813         not in the current directory, so concurrent gnulib-tool
19814         instances do not interfere.
19815
19816 2010-01-16  Jim Meyering  <meyering@redhat.com>
19817
19818         doc: update users.txt
19819         * users.txt: Add grep.
19820         (diffutils, gzip): Update URLs.
19821
19822 2010-01-12  Bruno Haible  <bruno@clisp.org>
19823
19824         posix_spawn: Avoid test failure on Cygwin.
19825         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19826         characters.
19827         Reported by Simon Josefsson.
19828
19829 2010-01-12  Bruno Haible  <bruno@clisp.org>
19830
19831         * tests/test-cond.c (main): When skipping the test, show the reason.
19832
19833 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19834
19835         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19836
19837 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19838
19839         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19840         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19841
19842 2010-01-12  Eric Blake  <ebb9@byu.net>
19843
19844         build: guarantee AS_VAR_IF
19845         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19846         (gl_AS_VAR_IF): Move...
19847         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19848         Reported by Simon Josefsson.
19849
19850 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19851
19852         * lib/stdio.in.h: Fix typo.
19853
19854 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19855
19856         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19857         libgpg-error.
19858
19859 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19860
19861         * tests/test-xalloc-die.sh: Use $EXEEXT.
19862
19863 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19864             Bruno Haible  <bruno@clisp.org>
19865
19866         getlogin, getlogin_r: Avoid test failure.
19867         * tests/test-getlogin.c: Include <stdio.h>.
19868         (main): Skip the test when the function fails because stdin is not a
19869         tty.
19870         * tests/test-getlogin_r.c: Include <stdio.h>.
19871         (main): Skip the test when the function fails because stdin is not a
19872         tty.
19873
19874 2010-01-11  Eric Blake  <ebb9@byu.net>
19875
19876         tests: avoid more large file warnings
19877         * tests/test-fflush.c: Avoid warning about ftell use.
19878         * tests/test-fseek.c: Avoid warning about fseek use.
19879
19880 2010-01-10  Bruno Haible  <bruno@clisp.org>
19881
19882         nproc: Work better on Linux when /proc and /sys are not mounted.
19883         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19884         as lower bound when, on glibc/Linux systems,
19885         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19886         Suggested by Pádraig Brady <P@draigbrady.com>.
19887         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19888
19889         nproc: Refactor.
19890         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19891         extracted from num_processors.
19892         (num_processors): Call it.
19893
19894 2010-01-11  Jim Meyering  <meyering@redhat.com>
19895
19896         utimecmp: avoid new warning from upcoming gcc-4.5.0
19897         * lib/utimecmp.c (BILLION): Define using #define rather than an
19898         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19899
19900 2010-01-11  Eric Blake  <ebb9@byu.net>
19901
19902         math: add portability warnings for classification macros
19903         * modules/math (Depends-on): Add warn-on-use.
19904         (Makefile.am): Provide new substitutions.
19905         * m4/math_h.m4 (gl_MATH_H): Require inline.
19906         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19907         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19908         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19909         implement warnings.
19910
19911         unistd: warn on use of environ without module
19912         * modules/unistd (Depends-on): Add warn-on-use.
19913         (Makefile.am): Provide new substitutions.
19914         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19915         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19916
19917         stdio: warn on suspicious uses
19918         * modules/stdio (Depends-on): Add warn-on-use.
19919         (Makefile.am): Provide new substitutions.
19920         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19921         fseeko.
19922         * lib/stdio.in.h (gets): Always warn on use.
19923         (fseek, ftell): Adjust when warnings are issued, and honor
19924         _GL_NO_LARGE_FILES as a way to silence the warning.
19925         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19926         any warning about large file offsets.
19927         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19928         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19929         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19930         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19931         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19932         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19933         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19934         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19935
19936         warn-on-use: new module
19937         * modules/warn-on-use: New file.
19938         * build-aux/warn-on-use.h: Likewise.
19939         * m4/warn-on-use.m4: Likewise.
19940         * MODULES.html.sh (Support for building): Mention it.
19941
19942 2010-01-10  Bruno Haible  <bruno@clisp.org>
19943
19944         Tests for module 'unistr/u32-strdup'.
19945         * modules/unistr/u32-strdup-tests: New file.
19946         * tests/unistr/test-u32-strdup.c: New file.
19947
19948         Tests for module 'unistr/u16-strdup'.
19949         * modules/unistr/u16-strdup-tests: New file.
19950         * tests/unistr/test-u16-strdup.c: New file.
19951
19952         Tests for module 'unistr/u8-strdup'.
19953         * modules/unistr/u8-strdup-tests: New file.
19954         * tests/unistr/test-u8-strdup.c: New file.
19955         * tests/unistr/test-strdup.h: New file.
19956
19957         Tests for module 'unistr/u32-strncmp'.
19958         * modules/unistr/u32-strncmp-tests: New file.
19959         * tests/unistr/test-u32-strncmp.c: New file.
19960
19961         Tests for module 'unistr/u16-strncmp'.
19962         * modules/unistr/u16-strncmp-tests: New file.
19963         * tests/unistr/test-u16-strncmp.c: New file.
19964
19965         Tests for module 'unistr/u8-strncmp'.
19966         * modules/unistr/u8-strncmp-tests: New file.
19967         * tests/unistr/test-u8-strncmp.c: New file.
19968         * tests/unistr/test-strncmp.h: New file.
19969
19970         Tests for module 'unistr/u32-strcoll'.
19971         * modules/unistr/u32-strcoll-tests: New file.
19972         * tests/unistr/test-u32-strcoll.c: New file.
19973
19974         Tests for module 'unistr/u16-strcoll'.
19975         * modules/unistr/u16-strcoll-tests: New file.
19976         * tests/unistr/test-u16-strcoll.c: New file.
19977
19978         Tests for module 'unistr/u8-strcoll'.
19979         * modules/unistr/u8-strcoll-tests: New file.
19980         * tests/unistr/test-u8-strcoll.c: New file.
19981
19982         Tests for module 'unistr/u32-strcmp'.
19983         * modules/unistr/u32-strcmp-tests: New file.
19984         * tests/unistr/test-u32-strcmp.c: New file.
19985         * tests/unistr/test-u32-strcmp.h: New file.
19986
19987         Tests for module 'unistr/u16-strcmp'.
19988         * modules/unistr/u16-strcmp-tests: New file.
19989         * tests/unistr/test-u16-strcmp.c: New file.
19990         * tests/unistr/test-u16-strcmp.h: New file.
19991
19992         Tests for module 'unistr/u8-strcmp'.
19993         * modules/unistr/u8-strcmp-tests: New file.
19994         * tests/unistr/test-u8-strcmp.c: New file.
19995         * tests/unistr/test-u8-strcmp.h: New file.
19996         * tests/unistr/test-strcmp.h: New file.
19997
19998         Tests for module 'unistr/u32-strncat'.
19999         * modules/unistr/u32-strncat-tests: New file.
20000         * tests/unistr/test-u32-strncat.c: New file.
20001
20002         Tests for module 'unistr/u16-strncat'.
20003         * modules/unistr/u16-strncat-tests: New file.
20004         * tests/unistr/test-u16-strncat.c: New file.
20005
20006         Tests for module 'unistr/u8-strncat'.
20007         * modules/unistr/u8-strncat-tests: New file.
20008         * tests/unistr/test-u8-strncat.c: New file.
20009         * tests/unistr/test-strncat.h: New file.
20010
20011         Tests for module 'unistr/u32-strcat'.
20012         * modules/unistr/u32-strcat-tests: New file.
20013         * tests/unistr/test-u32-strcat.c: New file.
20014
20015         Tests for module 'unistr/u16-strcat'.
20016         * modules/unistr/u16-strcat-tests: New file.
20017         * tests/unistr/test-u16-strcat.c: New file.
20018
20019         Tests for module 'unistr/u8-strcat'.
20020         * modules/unistr/u8-strcat-tests: New file.
20021         * tests/unistr/test-u8-strcat.c: New file.
20022         * tests/unistr/test-strcat.h: New file.
20023
20024         Tests for module 'unistr/u32-stpncpy'.
20025         * modules/unistr/u32-stpncpy-tests: New file.
20026         * tests/unistr/test-u32-stpncpy.c: New file.
20027
20028         Tests for module 'unistr/u16-stpncpy'.
20029         * modules/unistr/u16-stpncpy-tests: New file.
20030         * tests/unistr/test-u16-stpncpy.c: New file.
20031
20032         Tests for module 'unistr/u8-stpncpy'.
20033         * modules/unistr/u8-stpncpy-tests: New file.
20034         * tests/unistr/test-u8-stpncpy.c: New file.
20035         * tests/unistr/test-stpncpy.h: New file.
20036
20037         Tests for module 'unistr/u32-strncpy'.
20038         * modules/unistr/u32-strncpy-tests: New file.
20039         * tests/unistr/test-u32-strncpy.c: New file.
20040
20041         Tests for module 'unistr/u16-strncpy'.
20042         * modules/unistr/u16-strncpy-tests: New file.
20043         * tests/unistr/test-u16-strncpy.c: New file.
20044
20045         Tests for module 'unistr/u8-strncpy'.
20046         * modules/unistr/u8-strncpy-tests: New file.
20047         * tests/unistr/test-u8-strncpy.c: New file.
20048         * tests/unistr/test-strncpy.h: New file.
20049
20050         Tests for module 'unistr/u32-stpcpy'.
20051         * modules/unistr/u32-stpcpy-tests: New file.
20052         * tests/unistr/test-u32-stpcpy.c: New file.
20053
20054         Tests for module 'unistr/u16-stpcpy'.
20055         * modules/unistr/u16-stpcpy-tests: New file.
20056         * tests/unistr/test-u16-stpcpy.c: New file.
20057
20058         Tests for module 'unistr/u8-stpcpy'.
20059         * modules/unistr/u8-stpcpy-tests: New file.
20060         * tests/unistr/test-u8-stpcpy.c: New file.
20061         * tests/unistr/test-stpcpy.h: New file.
20062
20063         Tests for module 'unistr/u32-strcpy'.
20064         * modules/unistr/u32-strcpy-tests: New file.
20065         * tests/unistr/test-u32-strcpy.c: New file.
20066
20067         Tests for module 'unistr/u16-strcpy'.
20068         * modules/unistr/u16-strcpy-tests: New file.
20069         * tests/unistr/test-u16-strcpy.c: New file.
20070
20071         Tests for module 'unistr/u8-strcpy'.
20072         * modules/unistr/u8-strcpy-tests: New file.
20073         * tests/unistr/test-u8-strcpy.c: New file.
20074         * tests/unistr/test-strcpy.h: New file.
20075
20076         Tests for module 'unistr/u32-strnlen'.
20077         * modules/unistr/u32-strnlen-tests: New file.
20078         * tests/unistr/test-u32-strnlen.c: New file.
20079
20080         Tests for module 'unistr/u16-strnlen'.
20081         * modules/unistr/u16-strnlen-tests: New file.
20082         * tests/unistr/test-u16-strnlen.c: New file.
20083
20084         Tests for module 'unistr/u8-strnlen'.
20085         * modules/unistr/u8-strnlen-tests: New file.
20086         * tests/unistr/test-u8-strnlen.c: New file.
20087         * tests/unistr/test-strnlen.h: New file.
20088
20089         Tests for module 'unistr/u32-strlen'.
20090         * modules/unistr/u32-strlen-tests: New file.
20091         * tests/unistr/test-u32-strlen.c: New file.
20092
20093         Tests for module 'unistr/u16-strlen'.
20094         * modules/unistr/u16-strlen-tests: New file.
20095         * tests/unistr/test-u16-strlen.c: New file.
20096
20097         Tests for module 'unistr/u8-strlen'.
20098         * modules/unistr/u8-strlen-tests: New file.
20099         * tests/unistr/test-u8-strlen.c: New file.
20100
20101         Tests for module 'unistr/u32-prev'.
20102         * modules/unistr/u32-prev-tests: New file.
20103         * tests/unistr/test-u32-prev.c: New file.
20104
20105         Tests for module 'unistr/u16-prev'.
20106         * modules/unistr/u16-prev-tests: New file.
20107         * tests/unistr/test-u16-prev.c: New file.
20108
20109         Tests for module 'unistr/u8-prev'.
20110         * modules/unistr/u8-prev-tests: New file.
20111         * tests/unistr/test-u8-prev.c: New file.
20112
20113         Tests for module 'unistr/u32-next'.
20114         * modules/unistr/u32-next-tests: New file.
20115         * tests/unistr/test-u32-next.c: New file.
20116
20117         Tests for module 'unistr/u16-next'.
20118         * modules/unistr/u16-next-tests: New file.
20119         * tests/unistr/test-u16-next.c: New file.
20120
20121         Tests for module 'unistr/u8-next'.
20122         * modules/unistr/u8-next-tests: New file.
20123         * tests/unistr/test-u8-next.c: New file.
20124
20125         Tests for module 'unistr/u32-strmbtouc'.
20126         * modules/unistr/u32-strmbtouc-tests: New file.
20127         * tests/unistr/test-u32-strmbtouc.c: New file.
20128
20129         Tests for module 'unistr/u16-strmbtouc'.
20130         * modules/unistr/u16-strmbtouc-tests: New file.
20131         * tests/unistr/test-u16-strmbtouc.c: New file.
20132
20133         Tests for module 'unistr/u8-strmbtouc'.
20134         * modules/unistr/u8-strmbtouc-tests: New file.
20135         * tests/unistr/test-u8-strmbtouc.c: New file.
20136
20137         Tests for module 'unistr/u32-strmblen'.
20138         * modules/unistr/u32-strmblen-tests: New file.
20139         * tests/unistr/test-u32-strmblen.c: New file.
20140
20141         Tests for module 'unistr/u16-strmblen'.
20142         * modules/unistr/u16-strmblen-tests: New file.
20143         * tests/unistr/test-u16-strmblen.c: New file.
20144
20145         Tests for module 'unistr/u8-strmblen'.
20146         * modules/unistr/u8-strmblen-tests: New file.
20147         * tests/unistr/test-u8-strmblen.c: New file.
20148
20149         Tests for module 'unistr/u32-cpy-alloc'.
20150         * modules/unistr/u32-cpy-alloc-tests: New file.
20151         * tests/unistr/test-u32-cpy-alloc.c: New file.
20152
20153         Tests for module 'unistr/u16-cpy-alloc'.
20154         * modules/unistr/u16-cpy-alloc-tests: New file.
20155         * tests/unistr/test-u16-cpy-alloc.c: New file.
20156
20157         Tests for module 'unistr/u8-cpy-alloc'.
20158         * modules/unistr/u8-cpy-alloc-tests: New file.
20159         * tests/unistr/test-u8-cpy-alloc.c: New file.
20160         * tests/unistr/test-cpy-alloc.h: New file.
20161
20162         Tests for module 'unistr/u32-mbsnlen'.
20163         * modules/unistr/u32-mbsnlen-tests: New file.
20164         * tests/unistr/test-u32-mbsnlen.c: New file.
20165
20166         Tests for module 'unistr/u16-mbsnlen'.
20167         * modules/unistr/u16-mbsnlen-tests: New file.
20168         * tests/unistr/test-u16-mbsnlen.c: New file.
20169
20170         Tests for module 'unistr/u8-mbsnlen'.
20171         * modules/unistr/u8-mbsnlen-tests: New file.
20172         * tests/unistr/test-u8-mbsnlen.c: New file.
20173
20174         Tests for module 'unistr/u32-chr'.
20175         * modules/unistr/u32-chr-tests: New file.
20176         * tests/unistr/test-u32-chr.c: New file.
20177
20178         Tests for module 'unistr/u16-chr'.
20179         * modules/unistr/u16-chr-tests: New file.
20180         * tests/unistr/test-u16-chr.c: New file.
20181
20182         Tests for module 'unistr/u8-chr'.
20183         * modules/unistr/u8-chr-tests: New file.
20184         * tests/unistr/test-u8-chr.c: New file.
20185         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20186
20187         Tests for module 'unistr/u32-cmp2'.
20188         * modules/unistr/u32-cmp2-tests: New file.
20189         * tests/unistr/test-u32-cmp2.c: New file.
20190
20191         Tests for module 'unistr/u16-cmp2'.
20192         * modules/unistr/u16-cmp2-tests: New file.
20193         * tests/unistr/test-u16-cmp2.c: New file.
20194
20195         Tests for module 'unistr/u8-cmp2'.
20196         * modules/unistr/u8-cmp2-tests: New file.
20197         * tests/unistr/test-u8-cmp2.c: New file.
20198         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20199
20200         Tests for module 'unistr/u32-cmp'.
20201         * modules/unistr/u32-cmp-tests: New file.
20202         * tests/unistr/test-u32-cmp.c: New file.
20203
20204         Tests for module 'unistr/u16-cmp'.
20205         * modules/unistr/u16-cmp-tests: New file.
20206         * tests/unistr/test-u16-cmp.c: New file.
20207
20208         Tests for module 'unistr/u8-cmp'.
20209         * modules/unistr/u8-cmp-tests: New file.
20210         * tests/unistr/test-u8-cmp.c: New file.
20211         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20212
20213         Tests for module 'unistr/u32-set'.
20214         * modules/unistr/u32-set-tests: New file.
20215         * tests/unistr/test-u32-set.c: New file.
20216
20217         Tests for module 'unistr/u16-set'.
20218         * modules/unistr/u16-set-tests: New file.
20219         * tests/unistr/test-u16-set.c: New file.
20220
20221         Tests for module 'unistr/u8-set'.
20222         * modules/unistr/u8-set-tests: New file.
20223         * tests/unistr/test-u8-set.c: New file.
20224         * tests/unistr/test-set.h: New file.
20225
20226         Tests for module 'unistr/u32-move'.
20227         * modules/unistr/u32-move-tests: New file.
20228         * tests/unistr/test-u32-move.c: New file.
20229
20230         Tests for module 'unistr/u16-move'.
20231         * modules/unistr/u16-move-tests: New file.
20232         * tests/unistr/test-u16-move.c: New file.
20233
20234         Tests for module 'unistr/u8-move'.
20235         * modules/unistr/u8-move-tests: New file.
20236         * tests/unistr/test-u8-move.c: New file.
20237         * tests/unistr/test-move.h: New file.
20238
20239         Tests for module 'unistr/u32-cpy'.
20240         * modules/unistr/u32-cpy-tests: New file.
20241         * tests/unistr/test-u32-cpy.c: New file.
20242
20243         Tests for module 'unistr/u16-cpy'.
20244         * modules/unistr/u16-cpy-tests: New file.
20245         * tests/unistr/test-u16-cpy.c: New file.
20246
20247         Tests for module 'unistr/u8-cpy'.
20248         * modules/unistr/u8-cpy-tests: New file.
20249         * tests/unistr/test-u8-cpy.c: New file.
20250         * tests/unistr/test-cpy.h: New file.
20251
20252 2010-01-09  Bruno Haible  <bruno@clisp.org>
20253
20254         Tests for module 'unistr/u32-uctomb'.
20255         * modules/unistr/u32-uctomb-tests: New file.
20256         * tests/unistr/test-u32-uctomb.c: New file.
20257
20258         Tests for module 'unistr/u16-uctomb'.
20259         * modules/unistr/u16-uctomb-tests: New file.
20260         * tests/unistr/test-u16-uctomb.c: New file.
20261
20262         Tests for module 'unistr/u8-uctomb'.
20263         * modules/unistr/u8-uctomb-tests: New file.
20264         * tests/unistr/test-u8-uctomb.c: New file.
20265
20266         Tests for module 'unistr/u32-mbtoucr'.
20267         * modules/unistr/u32-mbtoucr-tests: New file.
20268         * tests/unistr/test-u32-mbtoucr.c: New file.
20269
20270         Tests for module 'unistr/u16-mbtoucr'.
20271         * modules/unistr/u16-mbtoucr-tests: New file.
20272         * tests/unistr/test-u16-mbtoucr.c: New file.
20273
20274         Tests for module 'unistr/u8-mbtoucr'.
20275         * modules/unistr/u8-mbtoucr-tests: New file.
20276         * tests/unistr/test-u8-mbtoucr.c: New file.
20277
20278         Tests for module 'unistr/u32-mbtouc'.
20279         * modules/unistr/u32-mbtouc-tests: New file.
20280         * tests/unistr/test-u32-mbtouc.c: New file.
20281
20282         Tests for module 'unistr/u16-mbtouc'.
20283         * modules/unistr/u16-mbtouc-tests: New file.
20284         * tests/unistr/test-u16-mbtouc.c: New file.
20285
20286         Tests for module 'unistr/u8-mbtouc'.
20287         * modules/unistr/u8-mbtouc-tests: New file.
20288         * tests/unistr/test-u8-mbtouc.c: New file.
20289
20290         Tests for module 'unistr/u32-mbtouc-unsafe'.
20291         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20292         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20293         * tests/unistr/test-u32-mbtouc.h: New file.
20294
20295         Tests for module 'unistr/u16-mbtouc-unsafe'.
20296         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20297         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20298         * tests/unistr/test-u16-mbtouc.h: New file.
20299
20300         Tests for module 'unistr/u8-mbtouc-unsafe'.
20301         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20302         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20303         * tests/unistr/test-u8-mbtouc.h: New file.
20304
20305         Tests for module 'unistr/u32-mblen'.
20306         * modules/unistr/u32-mblen-tests: New file.
20307         * tests/unistr/test-u32-mblen.c: New file.
20308
20309         Tests for module 'unistr/u16-mblen'.
20310         * modules/unistr/u16-mblen-tests: New file.
20311         * tests/unistr/test-u16-mblen.c: New file.
20312
20313         Tests for module 'unistr/u8-mblen'.
20314         * modules/unistr/u8-mblen-tests: New file.
20315         * tests/unistr/test-u8-mblen.c: New file.
20316
20317         Tests for module 'unistr/u32-to-u16'.
20318         * modules/unistr/u32-to-u16-tests: New file.
20319         * tests/unistr/test-u32-to-u16.c: New file.
20320
20321         Tests for module 'unistr/u32-to-u8'.
20322         * modules/unistr/u32-to-u8-tests: New file.
20323         * tests/unistr/test-u32-to-u8.c: New file.
20324
20325         Tests for module 'unistr/u16-to-u32'.
20326         * modules/unistr/u16-to-u32-tests: New file.
20327         * tests/unistr/test-u16-to-u32.c: New file.
20328
20329         Tests for module 'unistr/u16-to-u8'.
20330         * modules/unistr/u16-to-u8-tests: New file.
20331         * tests/unistr/test-u16-to-u8.c: New file.
20332
20333         Tests for module 'unistr/u8-to-u32'.
20334         * modules/unistr/u8-to-u32-tests: New file.
20335         * tests/unistr/test-u8-to-u32.c: New file.
20336
20337         Tests for module 'unistr/u8-to-u16'.
20338         * modules/unistr/u8-to-u16-tests: New file.
20339         * tests/unistr/test-u8-to-u16.c: New file.
20340
20341         Tests for module 'unistr/u32-check'.
20342         * modules/unistr/u32-check-tests: New file.
20343         * tests/unistr/test-u32-check.c: New file.
20344
20345         Tests for module 'unistr/u16-check'.
20346         * modules/unistr/u16-check-tests: New file.
20347         * tests/unistr/test-u16-check.c: New file.
20348
20349         Tests for module 'unistr/u8-check'.
20350         * modules/unistr/u8-check-tests: New file.
20351         * tests/unistr/test-u8-check.c: New file.
20352
20353         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20354         (category_equals): New function.
20355         (main): Add more tests.
20356         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20357
20358         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20359
20360 2010-01-10  Bruno Haible  <bruno@clisp.org>
20361
20362         unistr/u*-strcoll: Try harder to distinguish different strings.
20363         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20364         compare s1 and s2 to see if they are different.
20365
20366 2010-01-10  Bruno Haible  <bruno@clisp.org>
20367
20368         unistr/u*-stpncpy: Fix the return value.
20369         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20370         description of the return value consistent with stpncpy in glibc.
20371         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20372         written non-NUL unit.
20373
20374 2010-01-10  Bruno Haible  <bruno@clisp.org>
20375
20376         unistr/u*-next: Add missing dependencies.
20377         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20378         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20379         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20380
20381 2010-01-10  Bruno Haible  <bruno@clisp.org>
20382
20383         unistr/u8-mbsnlen: Fix return value for incomplete character.
20384         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20385         u8_mblen.
20386         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20387         Remove unistr/u8-mblen.
20388         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20389         u16_mblen.
20390         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20391         Remove unistr/u16-mblen.
20392
20393 2010-01-10  Bruno Haible  <bruno@clisp.org>
20394
20395         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20396         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20397         Reported by Brian Gough <bjg@gnu.org> and
20398         Chris Clayton <chris2553@googlemail.com> via
20399         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20400
20401 2010-01-09  Bruno Haible  <bruno@clisp.org>
20402
20403         unistr/u16-to-u32: Reject invalid input.
20404         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20405         u16_mbtouc.
20406         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20407         Remove unistr/u16-mbtouc.
20408
20409         unistr/u16-to-u8: Reject invalid input.
20410         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20411         u16_mbtouc.
20412         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20413         Remove unistr/u16-mbtouc.
20414
20415         unistr/u8-to-u32: Reject invalid input.
20416         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20417         u8_mbtouc.
20418         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20419         Remove unistr/u8-mbtouc.
20420
20421         unistr/u8-to-u16: Reject invalid input.
20422         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20423         u8_mbtouc.
20424         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20425         Remove unistr/u8-mbtouc.
20426
20427 2010-01-09  Bruno Haible  <bruno@clisp.org>
20428
20429         Tests for module 'getlogin'.
20430         * modules/getlogin-tests: New file.
20431         * tests/test-getlogin.c: New file.
20432
20433         New module 'getlogin'.
20434         * lib/unistd.in.h (getlogin): New declaration.
20435         * lib/getlogin.c: New file.
20436         * m4/getlogin.m4: New file.
20437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20438         HAVE_GETLOGIN.
20439         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20440         HAVE_GETLOGIN.
20441         * modules/getlogin: New file.
20442         * doc/posix-functions/getlogin.texi: Mention the new module.
20443         Reported by John W. Eaton <jwe@gnu.org>.
20444
20445 2010-01-09  Bruno Haible  <bruno@clisp.org>
20446
20447         getlogin_r: Support for native Windows.
20448         * lib/getlogin_r.c: Include <windows.h>
20449         (getlogin_r): Implement for native Windows.
20450         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20451         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20452         via John W. Eaton <jwe@gnu.org>.
20453
20454 2010-01-09  Bruno Haible  <bruno@clisp.org>
20455
20456         getlogin_r: Small fixes.
20457         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20458         succeeds.
20459         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20460         before testing whether getlogin_r is declared. No need to set
20461         HAVE_DECL_GETLOGIN_R to 1.
20462         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20463
20464 2010-01-09  Bruno Haible  <bruno@clisp.org>
20465
20466         * lib/unistd.in.h (getlogin_r): Add comment.
20467
20468 2010-01-09  Bruno Haible  <bruno@clisp.org>
20469
20470         Tests for module 'getlogin_r'.
20471         * modules/getlogin_r-tests: New file.
20472         * tests/test-getlogin_r.c: New file.
20473
20474 2010-01-09  Jim Meyering  <meyering@redhat.com>
20475
20476         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20477         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20478         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20479
20480 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20481
20482         * lib/dup2.c (rpl_dup2): Improve comment.
20483
20484 2010-01-08  Eric Blake  <ebb9@byu.net>
20485
20486         maint.mk: allow packages to add makefile @@ exceptions
20487         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20488         (sc_makefile_check): Rename...
20489         (sc_makefile_at_at_check): ...to this, and use hook.
20490
20491         dup2: work around mingw bug
20492         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20493         Reported by Simon Josefsson.
20494
20495 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20496
20497         glob: Fix C++ compilation.
20498         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20499         C++.
20500
20501 2010-01-07  Bruno Haible  <bruno@clisp.org>
20502
20503         Fix indentation of wctype.in.h, broken since 2007-01-06.
20504         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20505
20506 2010-01-07  Bruno Haible  <bruno@clisp.org>
20507
20508         mbslen: Avoid collision with system function.
20509         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20510         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20511         * m4/mbslen.m4: New file.
20512         * modules/mbslen (Files): Add it.
20513         (configure.ac): Invoke gl_MBSLEN.
20514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20515         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20516         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20517         via Ian Beckwith <ianb@erislabs.net>.
20518
20519 2010-01-07  Bruno Haible  <bruno@clisp.org>
20520
20521         dirent: Document the last fix.
20522         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20523
20524 2010-01-07  Bruno Haible  <bruno@clisp.org>
20525
20526         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20527         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20528         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20529         va_list are defined.
20530         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20531         Reported by Eric Blake.
20532
20533 2010-01-07  Bruno Haible  <bruno@clisp.org>
20534
20535         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20536         * modules/xlist (Depends-on): Add 'list',
20537         * modules/xoset (Depends-on): Add 'oset'.
20538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20539
20540 2010-01-07  Bruno Haible  <bruno@clisp.org>
20541
20542         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20543         * doc/posix-functions/strncasecmp.texi: Likewise.
20544
20545 2010-01-07  Bruno Haible  <bruno@clisp.org>
20546
20547         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20548
20549 2010-01-07  John W. Eaton  <jwe@octave.org>
20550
20551         wctype: allow C++ use
20552         * lib/wctype.in.h: Add extern "C" block for C++.
20553
20554 2010-01-06  Eric Blake  <ebb9@byu.net>
20555
20556         maint.mk: detect incorrect GFDL usage
20557         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20558
20559 2010-01-06  Jim Meyering  <meyering@redhat.com>
20560         and Eric Blake  <ebb9@byu.net>
20561
20562         maint.mk: ignore multi-line copyright in NEWS
20563         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20564
20565 2010-01-06  Eric Blake  <ebb9@byu.net>
20566
20567         select: add missing dependency
20568         * modules/select-tests (Depends-on): Move sockets dependency...
20569         * modules/select (Depends-on): ...here.
20570         Reported by Ian Beckwith.
20571
20572         doc: regenerate INSTALL
20573         * doc/INSTALL: Reflect recent autoconf update.
20574         * doc/INSTALL.ISO: Likewise.
20575         * doc/INSTALL.UTF-8: Likewise.
20576
20577         pread: fix compilation on glibc
20578         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20579         Reported by Ralf Wildenhues.
20580
20581         dirent: fix test failure
20582         * lib/dirent.in.h (includes): Guarantee ino_t.
20583         Reported by Ralf Wildenhues.
20584
20585 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20586
20587         linkat, renameat: avoid bad free
20588         * lib/at-func2.c (at_func2): Fix typo.
20589         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20590
20591 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20592
20593         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20594         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20595         to avoid failure of symlink test later.
20596
20597 2010-01-06  Eric Blake  <ebb9@byu.net>
20598
20599         stdio, unistd: guarantee ssize_t
20600         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20601         2008 are exposed when needed.
20602         * lib/stdio.in.h (includes): Likewise.
20603         Reported by Ralf Wildenhues.
20604
20605 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20606
20607         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20608         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20609         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20610
20611 2010-01-06  Jim Meyering  <meyering@redhat.com>
20612
20613         readtokens: this module *does* require xalloc.h
20614         It uses only functions that were omitted by the old syntax-check rule.
20615         * lib/readtokens.c: Include "xalloc.h" once again.
20616         * modules/readtokens (Depends-on): Add xalloc.
20617         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20618
20619 2010-01-05  Eric Blake  <ebb9@byu.net>
20620
20621         maint: support 'make announcement' from a VPATH build
20622         * top/maint.mk (announcement): Look for correct NEWS file.
20623
20624 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20625
20626         utimens (fdutimens): ignore a negative FD, per contract
20627         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20628         when we have a valid file descriptor.  Otherwise, using a brand
20629         new glibc (with just-patched futimens that now fails with EBADF)
20630         would cause this function to fail with ENOSYS.
20631         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20632         See also http://bugzilla.redhat.com/552320.
20633
20634 2010-01-05  Eric Blake  <ebb9@byu.net>
20635
20636         strcase: document what it provides
20637         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20638         gnulib module.
20639         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20640         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20641
20642 2010-01-05  Jim Meyering  <meyering@redhat.com>
20643
20644         maint: remove useless inclusions of "xalloc.h"
20645         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20646         * lib/readtokens.c: Likewise.
20647         * lib/same.c: Likewise.
20648         * modules/getloadavg (Depends-on): Remove xalloc.
20649         * modules/readtokens: Likewise.
20650         * modules/same: Likewise.
20651
20652         maint.mk: include 4 more function names in alloca.h-checking regexp
20653         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20654         regexp.  Before, we would give a false-positive (saying alloca.h
20655         is included unnecessarily) when the only uses involved omitted symbols.
20656
20657         xalloc.h: use consistent formatting
20658         * lib/xalloc.h: Move declarations to start in the first column.
20659
20660 2010-01-05  Eric Blake  <ebb9@byu.net>
20661
20662         mkdir: avoid xalloc
20663         * lib/mkdir.c (includes): Drop unused header.
20664         Reported by John W. Eaton.
20665
20666 2010-01-04  Jim Meyering  <meyering@redhat.com>
20667
20668         nl_langinfo: avoid configure-time syntax error
20669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20670         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20671         the empty string.  Don't let that provoke a shell syntax error.
20672
20673         regcomp, regexec, fnmatch: avoid array bounds read error
20674         * lib/regcomp.c (build_equiv_class): From glibc:
20675         Use only the low 24 bits of a findidx return value as an index
20676         into the weights array.  Patch by Ulrich Drepper:
20677         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20678         * lib/regexec.c (check_node_accept_bytes): Likewise.
20679         * lib/fnmatch_loop.c (FCT): Likewise.
20680
20681         regcomp: skip collseq lookup when there are no rules
20682         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20683         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20684
20685         regcomp: recognize ill-formed { } expressions
20686         * lib/regcomp.c (parse_dup_op): From glibc:
20687         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20688
20689         regcomp: fix typo in comment
20690         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20691         s/satisfy/satisfies/.
20692
20693         regcomp: sync from glibc: remove dead store
20694         * lib/regcomp.c (duplicate_node_closure): Remove useless
20695         search_duplicated_node call and dead store.
20696
20697         regcomp: sync from glibc; always use nl_langinfo
20698         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20699         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20700         * modules/regex (Depends-on): Add nl_langinfo.
20701
20702 2010-01-04  Eric Blake  <ebb9@byu.net>
20703
20704         fdopendir: fix configure test
20705         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20706
20707 2010-01-01  Bruno Haible  <bruno@clisp.org>
20708
20709         wchar: Remove unused configure check.
20710         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20711
20712 2010-01-01  Eric Blake  <ebb9@byu.net>
20713
20714         headers: make check of system header explicit
20715         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20716         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20717         ourselves.
20718         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20721         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20722         internals.
20723         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20724         missing.
20725         Suggested by Bruno Haible.
20726
20727 2010-01-01  Jim Meyering  <meyering@redhat.com>
20728
20729         ChangeLog: tweak to eliminate unnecessary copyright line
20730         * ChangeLog: Remove a copyright line that was mistakenly updated
20731         by today's update-copyright run.  Reported by Eric Blake.
20732
20733         test-update-copyright: don't let envvar setting cause test failure
20734         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20735
20736 2010-01-01  Bruno Haible  <bruno@clisp.org>
20737
20738         localename: Avoid gcc warning.
20739         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20740         function if it is not used.
20741
20742 2010-01-01  Jim Meyering  <meyering@redhat.com>
20743
20744         update nearly all FSF copyright year lists to include 2010
20745         Use the same procedure as for 2009, outlined in
20746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20747
20748         version-etc: set COPYRIGHT_YEAR to 2010
20749         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20750
20751 2009-12-31  Eric Blake  <ebb9@byu.net>
20752
20753         doc: correct availability of cygwin 1.5.x getopt
20754         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20755         variables.
20756         * doc/posix-functions/opterr.texi (opterr): Likewise.
20757         * doc/posix-functions/optind.texi (optind): Likewise.
20758         * doc/posix-functions/optopt.texi (optopt): Likewise.
20759         * doc/posix-functions/tzname.texi (tzname): Likewise.
20760
20761         openat: update maintainer
20762         * modules/openat (Maintainer): Add myself.
20763
20764         utimens: avoid shadowing warning
20765         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20766         buffers into one, to avoid shadowing, as well as avoiding a
20767         redundant stat.
20768         Reported by Jim Meyering.
20769
20770         test-dup2: avoid compiler warning
20771         * tests/test-dup2.c (is_inheritable): Only define if used.
20772
20773 2010-01-01  Bruno Haible  <bruno@clisp.org>
20774
20775         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20776         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20777         defined, use wctomb instead of wcrtomb.
20778
20779 2010-01-01  Bruno Haible  <bruno@clisp.org>
20780
20781         iconv: Reject native Solaris iconv.
20782         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20783         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20784
20785 2009-12-31  Bruno Haible  <bruno@clisp.org>
20786
20787         * tests/test-signal.c (main): Remove test of 'SIG'.
20788
20789 2009-12-31  Bruno Haible  <bruno@clisp.org>
20790
20791         spawn: Fix incomplete fix.
20792         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20793         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20794         warnings for GNULIB_POSIXCHECK again.
20795         Reported by Eric Blake.
20796
20797 2009-12-31  Bruno Haible  <bruno@clisp.org>
20798
20799         Avoid namespace pollution on glibc systems.
20800         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20801         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20802         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20803         glibc systems.
20804
20805 2009-12-31  Bruno Haible  <bruno@clisp.org>
20806
20807         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20808         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20809         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20810         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20811         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20812         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20813         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20814
20815 2009-12-31  Bruno Haible  <bruno@clisp.org>
20816
20817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20818         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20819         afterwards.
20820
20821 2009-12-31  Bruno Haible  <bruno@clisp.org>
20822
20823         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20824         SYS_UTSNAME_H.
20825
20826 2009-12-31  Bruno Haible  <bruno@clisp.org>
20827
20828         spawn: Fix misapplied patch.
20829         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20830         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20831         warnings for GNULIB_POSIXCHECK.
20832
20833 2009-12-31  Bruno Haible  <bruno@clisp.org>
20834
20835         times: Update after sys_times changed.
20836         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20837         * modules/times (Files): Add it.
20838         (configure.ac): Invoke gl_FUNC_TIMES.
20839
20840 2009-12-31  Bruno Haible  <bruno@clisp.org>
20841
20842         Use AC_C_INLINE where necessary.
20843         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20844         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20846         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20847         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20848         * m4/mbiter.m4 (gl_MBITER): Likewise.
20849         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20850         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20851         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20852         * modules/u64 (configure.ac): Likewise.
20853
20854 2009-12-31  Bruno Haible  <bruno@clisp.org>
20855
20856         Use AC_C_INLINE instead of module 'inline' where possible.
20857         * modules/inline (Description): Clarify purpose.
20858         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20859         * modules/count-one-bits (Depends-on): Remove inline.
20860         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20861         * modules/openat (Depends-on): Remove inline.
20862         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20863         instead of depending on module 'inline'.
20864         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20865         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20866         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20867         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20868         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20869         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20870         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20871         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20872         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20873         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20874         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20875         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20876         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20877         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20878         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20879         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20880         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20881         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20882         Likewise.
20883         * modules/unictype/property-ascii-hex-digit (Depends-on,
20884         configure.ac): Likewise.
20885         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20886         configure.ac): Likewise.
20887         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20888         configure.ac): Likewise.
20889         * modules/unictype/property-bidi-block-separator (Depends-on,
20890         configure.ac): Likewise.
20891         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20892         configure.ac): Likewise.
20893         * modules/unictype/property-bidi-common-separator (Depends-on,
20894         configure.ac): Likewise.
20895         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20896         Likewise.
20897         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20898         configure.ac): Likewise.
20899         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20900         configure.ac): Likewise.
20901         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20902         configure.ac): Likewise.
20903         * modules/unictype/property-bidi-european-digit (Depends-on,
20904         configure.ac): Likewise.
20905         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20906         configure.ac): Likewise.
20907         * modules/unictype/property-bidi-left-to-right (Depends-on,
20908         configure.ac): Likewise.
20909         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20910         configure.ac): Likewise.
20911         * modules/unictype/property-bidi-other-neutral (Depends-on,
20912         configure.ac): Likewise.
20913         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20914         Likewise.
20915         * modules/unictype/property-bidi-segment-separator (Depends-on,
20916         configure.ac): Likewise.
20917         * modules/unictype/property-bidi-whitespace (Depends-on,
20918         configure.ac): Likewise.
20919         * modules/unictype/property-combining (Depends-on, configure.ac):
20920         Likewise.
20921         * modules/unictype/property-composite (Depends-on, configure.ac):
20922         Likewise.
20923         * modules/unictype/property-currency-symbol (Depends-on,
20924         configure.ac): Likewise.
20925         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20926         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20927         Likewise.
20928         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20929         configure.ac): Likewise.
20930         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20931         Likewise.
20932         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20933         Likewise.
20934         * modules/unictype/property-extender (Depends-on, configure.ac):
20935         Likewise.
20936         * modules/unictype/property-format-control (Depends-on, configure.ac):
20937         Likewise.
20938         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20939         Likewise.
20940         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20941         Likewise.
20942         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20943         Likewise.
20944         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20945         Likewise.
20946         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20947         Likewise.
20948         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20949         Likewise.
20950         * modules/unictype/property-id-start (Depends-on, configure.ac):
20951         Likewise.
20952         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20953         Likewise.
20954         * modules/unictype/property-ids-binary-operator (Depends-on,
20955         configure.ac): Likewise.
20956         * modules/unictype/property-ids-trinary-operator (Depends-on,
20957         configure.ac): Likewise.
20958         * modules/unictype/property-ignorable-control (Depends-on,
20959         configure.ac): Likewise.
20960         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20961         Likewise.
20962         * modules/unictype/property-join-control (Depends-on, configure.ac):
20963         Likewise.
20964         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20965         Likewise.
20966         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20967         Likewise.
20968         * modules/unictype/property-logical-order-exception (Depends-on,
20969         configure.ac): Likewise.
20970         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20971         Likewise.
20972         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20973         * modules/unictype/property-non-break (Depends-on, configure.ac):
20974         Likewise.
20975         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20976         Likewise.
20977         * modules/unictype/property-numeric (Depends-on, configure.ac):
20978         Likewise.
20979         * modules/unictype/property-other-alphabetic (Depends-on,
20980         configure.ac): Likewise.
20981         * modules/unictype/property-other-default-ignorable-code-point
20982         (Depends-on, configure.ac): Likewise.
20983         * modules/unictype/property-other-grapheme-extend (Depends-on,
20984         configure.ac): Likewise.
20985         * modules/unictype/property-other-id-continue (Depends-on,
20986         configure.ac): Likewise.
20987         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20988         Likewise.
20989         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20990         Likewise.
20991         * modules/unictype/property-other-math (Depends-on, configure.ac):
20992         Likewise.
20993         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20994         Likewise.
20995         * modules/unictype/property-paired-punctuation (Depends-on,
20996         configure.ac): Likewise.
20997         * modules/unictype/property-paragraph-separator (Depends-on,
20998         configure.ac): Likewise.
20999         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21000         Likewise.
21001         * modules/unictype/property-pattern-white-space (Depends-on,
21002         configure.ac): Likewise.
21003         * modules/unictype/property-private-use (Depends-on, configure.ac):
21004         Likewise.
21005         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21006         Likewise.
21007         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21008         Likewise.
21009         * modules/unictype/property-radical (Depends-on, configure.ac):
21010         Likewise.
21011         * modules/unictype/property-sentence-terminal (Depends-on,
21012         configure.ac): Likewise.
21013         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21014         Likewise.
21015         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21016         * modules/unictype/property-terminal-punctuation (Depends-on,
21017         configure.ac): Likewise.
21018         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21019         Likewise.
21020         * modules/unictype/property-unassigned-code-value (Depends-on,
21021         configure.ac): Likewise.
21022         * modules/unictype/property-unified-ideograph (Depends-on,
21023         configure.ac): Likewise.
21024         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21025         Likewise.
21026         * modules/unictype/property-variation-selector (Depends-on,
21027         configure.ac): Likewise.
21028         * modules/unictype/property-white-space (Depends-on, configure.ac):
21029         Likewise.
21030         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21031         Likewise.
21032         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21033         Likewise.
21034         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21035         Likewise.
21036         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21037         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21038         Likewise.
21039
21040 2009-12-31  Bruno Haible  <bruno@clisp.org>
21041
21042         Remove unnecessary AC_C_INLINE invocation.
21043         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21044         since 2009-08-21.
21045
21046 2009-12-31  Jim Meyering  <meyering@redhat.com>
21047
21048         maint.mk: don't require explicit gpg_key_ID in cfg.mk
21049         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
21050         With this change, we can all remove the gpg_key_ID = ... definition
21051         from our respective cfg.mk files.
21052
21053         maint.mk: create announcement template in ~/, not in /tmp
21054         * top/maint.mk (emit_upload_commands): Adjust.
21055         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21056         Remove temporary file, .ci-msg.
21057
21058 2009-12-31  Eric Blake  <ebb9@byu.net>
21059
21060         link-warning: always build headers with link warnings
21061         * modules/arpa_inet (Makefile.am): Always build replacement
21062         header.
21063         * modules/ctype (Makefile.am): Likewise.
21064         * modules/dirent (Makefile.am): Likewise.
21065         * modules/inttypes (Makefile.am): Likewise.
21066         * modules/langinfo (Makefile.am): Likewise.
21067         * modules/locale (Makefile.am): Likewise.
21068         * modules/spawn (Makefile.am): Likewise.
21069         * modules/sys_file (Makefile.am): Likewise.
21070         * modules/sys_ioctl (Makefile.am): Likewise.
21071         * modules/sys_select (Makefile.am): Likewise.
21072         * modules/sys_socket (Makefile.am): Likewise.
21073         * modules/sys_times (Makefile.am): Likewise.
21074         * modules/sys_utsname (Makefile.am): Likewise.
21075         * modules/sys_wait (Makefile.am): Likewise.
21076         * modules/wchar (Makefile.am): Likewise.
21077         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21078         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21079         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21080         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21081         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21082         Likewise.
21083         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21084         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21085         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21086         Likewise.
21087         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21088         Likewise.
21089         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21090         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21091         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21093         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21094         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21095         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21096         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21097         (gl_WCHAR_H_DEFAULTS): Likewise.
21098
21099 2009-12-31  Eric Blake  <ebb9@byu.net>
21100
21101         signal, spawn: use link warnings
21102         * lib/signal.in.h (sigset_t): Make unconditional.
21103         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21104         (sigpending, sigprocmask, sigaction): Add link warnings.
21105         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21106         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21107         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21108         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21109         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21110         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21111         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21112         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21113         (posix_spawn_file_actions_destroy)
21114         (posix_spawn_file_actions_addopen)
21115         (posix_spawn_file_actions_addclose)
21116         (posix_spawn_file_actions_adddup2): Likewise.
21117         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21118         * tests/test-signal.c (main): Enhance test.
21119
21120         spawn: improve wrapper support
21121         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21122         (gl_SPAWN_H_DEFAULTS): New defaults.
21123         * modules/spawn (Makefile.am): Substitute them.
21124         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21125         Only declare if missing or broken.
21126
21127         sys_times, sys_utsname: use include_next
21128         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21129         header.
21130         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21131         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21132         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21133         * modules/sys_times (Depends-on): Add include_next.
21134         (Makefile.am): Substitute additional values.
21135         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21136         * lib/sys_times.in.h (includes): Include native header, if
21137         available.
21138         * lib/sys_utsname.in.h (includes): Likewise.
21139         * tests/test-sys_times.c (main): Enhance test.
21140
21141         fdutimensat: revert prior patch
21142         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21143         utimens.h.
21144         Reported by Bruno Haible.
21145
21146 2009-12-30  Eric Blake  <ebb9@byu.net>
21147
21148         sys_wait: drop link-warning dependency
21149         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21150         link-warning efforts.
21151         * lib/sys_wait.in.h: Likewise.
21152
21153         fdutimensat: remove bogus dependency
21154         * modules/fdutimensat (Depends-on): Drop inline.
21155
21156         unistd: fix typo
21157         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21158
21159 2009-12-30  Bruno Haible  <bruno@clisp.org>
21160
21161         Fix compilation error with Solaris cc.
21162         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21163         * lib/unicase/u16-is-invariant.c: Likewise.
21164         * lib/unicase/u32-is-invariant.c: Likewise.
21165         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21166
21167 2009-12-30  Bruno Haible  <bruno@clisp.org>
21168
21169         Fix test crash.
21170         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21171         locales.
21172         Reported by Simon Josefsson <simon@josefsson.org>.
21173
21174 2009-12-30  Bruno Haible  <bruno@clisp.org>
21175
21176         Fix compilation error on most platforms.
21177         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21178         Reported by Simon Josefsson <simon@josefsson.org>
21179         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21180
21181 2009-12-30  Eric Blake  <ebb9@byu.net>
21182
21183         futimens, utimensat: work around ntfs-3g bug
21184         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21185         a ctime bug is present, and expand workaround to cover ntfs-3g.
21186         * lib/utimens.c (fdutimens, lutimens): Likewise.
21187         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21188         (validate_timespec): Adjust return value.
21189         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21191         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21192
21193 2009-12-29  Eric Blake  <ebb9@byu.net>
21194
21195         link-warning: make usage consistent
21196         * modules/ctype (Depends-on): Add link-warning.
21197         (Makefile.am): Update rules accordingly.
21198         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21199         * modules/locale (Depends-on, Makefile.am): Likewise.
21200         * modules/sys_file (Makefile.am): Likewise.
21201         * modules/getopt-posix (Makefile.am): Delete unused link warning
21202         efforts.
21203         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21204         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21205         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21206         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21207
21208         stdio: remove unused variables
21209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21210         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21211         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21212
21213         tests: test more substitute headers
21214         * modules/ctype-tests: New file.
21215         * modules/dirent-tests: Likewise.
21216         * modules/spawn-tests: Likewise.
21217         * modules/sys_file-tests: Likewise.
21218         * modules/sys_ioctl-tests: Likewise.
21219         * modules/sys_wait-tests: Likewise.
21220         * tests/test-ctype.c: Likewise.
21221         * tests/test-dirent.c: Likewise.
21222         * tests/test-spawn.c: Likewise.
21223         * tests/test-sys_file.c: Likewise.
21224         * tests/test-sys_ioctl.c: Likewise.
21225         * tests/test-sys_wait.c: Likewise.
21226         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21227         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21228         whether or not flock is in use.
21229
21230         tests: remove License section from module
21231         * modules/arpa_inet-tests: Remove unneeded section.
21232         * modules/byteswap-tests: Likewise.
21233         * modules/ceilf-tests: Likewise.
21234         * modules/ceill-tests: Likewise.
21235         * modules/crypto/des-tests: Likewise.
21236         * modules/crypto/gc-arcfour-tests: Likewise.
21237         * modules/crypto/gc-arctwo-tests: Likewise.
21238         * modules/crypto/gc-des-tests: Likewise.
21239         * modules/crypto/gc-hmac-md5-tests: Likewise.
21240         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21241         * modules/crypto/gc-md2-tests: Likewise.
21242         * modules/crypto/gc-md4-tests: Likewise.
21243         * modules/crypto/gc-md5-tests: Likewise.
21244         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21245         * modules/crypto/gc-rijndael-tests: Likewise.
21246         * modules/crypto/gc-sha1-tests: Likewise.
21247         * modules/crypto/gc-tests: Likewise.
21248         * modules/crypto/md2-tests: Likewise.
21249         * modules/crypto/md4-tests: Likewise.
21250         * modules/fcntl-h-tests: Likewise.
21251         * modules/floorf-tests: Likewise.
21252         * modules/floorl-tests: Likewise.
21253         * modules/frexp-nolibm-tests: Likewise.
21254         * modules/frexp-tests: Likewise.
21255         * modules/frexpl-nolibm-tests: Likewise.
21256         * modules/frexpl-tests: Likewise.
21257         * modules/getaddrinfo-tests: Likewise.
21258         * modules/inttypes-tests: Likewise.
21259         * modules/isfinite-tests: Likewise.
21260         * modules/isinf-tests: Likewise.
21261         * modules/ldexpl-tests: Likewise.
21262         * modules/locale-tests: Likewise.
21263         * modules/math-tests: Likewise.
21264         * modules/netdb-tests: Likewise.
21265         * modules/netinet_in-tests: Likewise.
21266         * modules/printf-frexp-tests: Likewise.
21267         * modules/printf-frexpl-tests: Likewise.
21268         * modules/priv-set-tests: Likewise.
21269         * modules/random_r-tests: Likewise.
21270         * modules/round-tests: Likewise.
21271         * modules/roundf-tests: Likewise.
21272         * modules/roundl-tests: Likewise.
21273         * modules/search-tests: Likewise.
21274         * modules/select-tests: Likewise.
21275         * modules/signal-tests: Likewise.
21276         * modules/stdbool-tests: Likewise.
21277         * modules/stddef-tests: Likewise.
21278         * modules/stdint-tests: Likewise.
21279         * modules/stdio-tests: Likewise.
21280         * modules/stdlib-tests: Likewise.
21281         * modules/string-tests: Likewise.
21282         * modules/strings-tests: Likewise.
21283         * modules/sys_select-tests: Likewise.
21284         * modules/sys_socket-tests: Likewise.
21285         * modules/sys_stat-tests: Likewise.
21286         * modules/sys_time-tests: Likewise.
21287         * modules/sys_utsname-tests: Likewise.
21288         * modules/sysexits-tests: Likewise.
21289         * modules/time-tests: Likewise.
21290         * modules/trunc-tests: Likewise.
21291         * modules/truncf-tests: Likewise.
21292         * modules/truncl-tests: Likewise.
21293         * modules/tsearch-tests: Likewise.
21294         * modules/unistd-tests: Likewise.
21295         * modules/wchar-tests: Likewise.
21296         * modules/wctype-tests: Likewise.
21297
21298         tests: fix license on several tests
21299         * tests/test-des.c: Update to GPLv3+.
21300         * tests/test-flock.c: Likewise.
21301         * tests/test-fsync.c: Likewise.
21302         * tests/test-futimens.h: Likewise.
21303         * tests/test-gc-arcfour.c: Likewise.
21304         * tests/test-gc-arctwo.c: Likewise.
21305         * tests/test-gc-des.c: Likewise.
21306         * tests/test-gc-hmac-md5.c: Likewise.
21307         * tests/test-gc-hmac-sha1.c: Likewise.
21308         * tests/test-gc-md2.c: Likewise.
21309         * tests/test-gc-md4.c: Likewise.
21310         * tests/test-gc-md5.c: Likewise.
21311         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21312         * tests/test-gc-rijndael.c: Likewise.
21313         * tests/test-gc-sha1.c: Likewise.
21314         * tests/test-gc.c: Likewise.
21315         * tests/test-getcwd.c: Likewise.
21316         * tests/test-link.c: Likewise.
21317         * tests/test-link.h: Likewise.
21318         * tests/test-lutimens.h: Likewise.
21319         * tests/test-md2.c: Likewise.
21320         * tests/test-md4.c: Likewise.
21321         * tests/test-mkdir.h: Likewise.
21322         * tests/test-rename.c: Likewise.
21323         * tests/test-rename.h: Likewise.
21324         * tests/test-safe-alloc.c: Likewise.
21325         * tests/test-utimens-common.h: Likewise.
21326         * tests/test-utimens.h: Likewise.
21327
21328         maint: sync license texts
21329         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21330         * doc/gpl-3.0.texi: Revert copyright year update.
21331         * doc/lgpl-3.0.texi: Likewise.
21332
21333 2009-12-29  Jim Meyering  <meyering@redhat.com>
21334
21335         update nearly all FSF copyright year lists to include 2009
21336         The files named by the following are exempted:
21337             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21338               test -f "$dst" && { echo "$dst"; continue; }
21339               test -d "$dst" || continue
21340               echo "$dst"/$(basename "$src")
21341             done > exempt
21342             git ls-files tests/unictype >> exempt
21343         In the remaining files, convert to all-interval notation if
21344         - there is already at least one year interval like 2000-2003
21345         - the file is maintained by me
21346         - the file is in lib/uni*/, where that style already prevails
21347         Otherwise, use update-copyright's default.
21348
21349 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21350         and Eric Blake  <ebb9@byu.net>
21351
21352         tests: don't require debug system() to pass
21353         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21354         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21355         * tests/test-unlink.h (test_unlink_func): Likewise.
21356         * tests/test-fstatat.c (main): ...into callers.
21357         * tests/test-lstat.c (main): Likewise.
21358         * tests/test-rmdir.c (main): Likewise.
21359         * tests/test-unlink.c (main): Likewise.
21360         * tests/test-unlinkat.c (main): Likewise.
21361         * tests/test-areadlink-with-size.c (main): Don't require a
21362         debug-only system call to pass, aiding cross-testing to mingw.
21363         * tests/test-areadlink.c (main): Likewise.
21364         * tests/test-areadlinkat-with-size.c (main): Likewise.
21365         * tests/test-areadlinkat.c (main): Likewise.
21366         * tests/test-canonicalize-lgpl.c (main): Likewise.
21367         * tests/test-canonicalize.c (main): Likewise.
21368         * tests/test-chown.c (main): Likewise.
21369         * tests/test-fchownat.c (main): Likewise.
21370         * tests/test-lchown.c (main): Likewise.
21371         * tests/test-fdutimensat.c (main): Likewise.
21372         * tests/test-futimens.c (main): Likewise.
21373         * tests/test-link.c (main): Likewise.
21374         * tests/test-linkat.c (main): Likewise.
21375         * tests/test-mkdir.c (main): Likewise.
21376         * tests/test-mkdirat.c (main): Likewise.
21377         * tests/test-mkfifo.c (main): Likewise.
21378         * tests/test-mkfifoat.c (main): Likewise.
21379         * tests/test-mknod.c (main): Likewise.
21380         * tests/test-readlink.c (main): Likewise.
21381         * tests/test-remove.c (main): Likewise.
21382         * tests/test-rename.c (main): Likewise.
21383         * tests/test-renameat.c (main): Likewise.
21384         * tests/test-symlink.c (main): Likewise.
21385         * tests/test-symlinkat.c (main): Likewise.
21386         * tests/test-utimens.c (main): Likewise.
21387         * tests/test-utimensat.c (main): Likewise.
21388
21389 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21390
21391         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21392         on $(UNUSED_PARAMETER_H) to avoid build failure.
21393
21394 2009-12-28  Jim Meyering  <meyering@redhat.com>
21395
21396         update-copyright: you may specify a max. line length other than 72
21397         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21398
21399         maint: use consistent FSF copyright line syntax
21400         * lib/posixtm.c: Add missing comma in FSF copyright line.
21401         * lib/posixtm.h: Likewise.
21402         * lib/getugroups.c: Add missing ", Inc.".
21403
21404         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21405         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21406         FSF copyright line.  Remove trailing blanks.
21407
21408 2009-12-28  Eric Blake  <ebb9@byu.net>
21409
21410         test-dup2: reduce dependencies
21411         * modules/cloexec (Configure.ac): Set witness.
21412         * modules/dup2-tests (Depends-on): Drop cloexec.
21413         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21414         not present.
21415         Suggested by Bruno Haible.
21416
21417 2009-12-26  Bruno Haible  <bruno@clisp.org>
21418
21419         Remove an unneeded dependency.
21420         * modules/fseterr (Depends-on): Remove dup2.
21421
21422 2009-12-26  Eric Blake  <ebb9@byu.net>
21423
21424         tests: use macros.h in more places
21425         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21426         (ASSERT_STREAM): Provide default of stderr.
21427         * tests/test-dirent-safer.c: Include macros.h, using alternate
21428         stream for assertions.
21429         * tests/test-dup-safer.c: Likewise.
21430         * tests/test-freopen-safer.c: Likewise.
21431         * tests/test-getopt.c: Likewise.
21432         * tests/test-openat-safer.c: Likewise.
21433         * tests/test-pipe.c: Likewise.
21434         * tests/test-popen-safer.c: Likewise.
21435         * modules/dirent-safer-tests (Files): Include macros.h.
21436         * modules/unistd-safer-tests (Files): Likewise.
21437         * modules/freopen-safer-tests (Files): Likewise.
21438         * modules/getopt-posix-tests (Files): Likewise.
21439         * modules/openat-safer-tests (Files): Likewise.
21440         * modules/pipe-tests (Files): Likewise.
21441
21442 2009-12-26  Bruno Haible  <bruno@clisp.org>
21443
21444         javacomp: Portability fix.
21445         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21446         that it also works on Solaris.
21447
21448 2009-12-26  Bruno Haible  <bruno@clisp.org>
21449
21450         localename: Fix storage allocation of gl_locale_name_thread's result.
21451         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21452         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21453         all platforms that have 'uselocale'.
21454         (gl_locale_name_thread_unsafe): New function, extracted from
21455         gl_locale_name_thread.
21456         (gl_locale_name_thread): Call struniq on all platforms that have
21457         'uselocale'.
21458         * tests/test-localename.c (test_locale_name_thread): Check that the
21459         resulting strings are permanently allocated.
21460         * modules/localename-tests (Depends-on): Add strdup.
21461
21462 2009-12-26  Bruno Haible  <bruno@clisp.org>
21463
21464         * tests/test-localename.c (categories): Fill in the strings.
21465
21466 2009-12-26  Jim Meyering  <meyering@redhat.com>
21467
21468         isdir: complete the removal of m4/isdir.m4
21469         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21470
21471         isdir: clean up, since at least grep still uses it
21472         * lib/isdir.c: Include "isdir.h".
21473         (S_ISDIR): Remove now-unneeded definition.
21474         * modules/isdir (Files): Add lib/isdir.h.
21475         * lib/isdir.h: New file, with declaration.
21476         * m4/isdir.m4: Remove file -- unneeded.
21477
21478 2009-12-25  Bruno Haible  <bruno@clisp.org>
21479
21480         selinux-h: Make generated .h files standalone.
21481         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21482         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21483         * lib/se-selinux.in.h: Likewise.
21484         * modules/selinux-h (Depends-on): Add unused-parameter.
21485         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21486         selinux/selinux.h and selinux/context.h.
21487         Suggested by Eric Blake.
21488
21489 2009-12-25  Bruno Haible  <bruno@clisp.org>
21490
21491         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21492         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21493         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21494         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21495         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21496
21497 2009-12-24  Bruno Haible  <bruno@clisp.org>
21498
21499         openat: Fix warning.
21500         * lib/openat-proc.c: Include <unistd.h>.
21501
21502 2009-12-24  Bruno Haible  <bruno@clisp.org>
21503
21504         New module 'unused-parameter'.
21505         * build-aux/unused-parameter.h: New file, extracted from earlier
21506         gnulib-common.m4.
21507         * modules/unused-parameter: New file.
21508         * lib/unistr.h: Include unused-parameter.h.
21509         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21510         _GL_UNUSED.
21511         * modules/unistr/base (Depends-on): Add unused-parameter.
21512
21513 2009-12-24  Bruno Haible  <bruno@clisp.org>
21514
21515         Add missing dependencies to 'extensions' module.
21516         * m4/extensions.m4: Add comment.
21517         * modules/accept4 (Depends-on): Add extensions.
21518         * modules/dup3 (Depends-on): Likewise.
21519         * modules/fcntl (Depends-on): Likewise.
21520         * modules/futimens (Depends-on): Likewise.
21521         * modules/mknod (Depends-on): Likewise.
21522         * modules/pipe2 (Depends-on): Likewise.
21523         * modules/stat-time (Depends-on): Likewise.
21524         * modules/strcasestr-simple (Depends-on): Likewise.
21525         * modules/strsignal (Depends-on): Likewise.
21526         * modules/utimensat (Depends-on): Likewise.
21527         * modules/localcharset (Depends-on): Likewise. Needed because of
21528         gl_FCNTL_O_FLAGS.
21529         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21530         AC_TYPE_MBSTATE_T.
21531         * modules/wcsnrtombs (Depends-on): Likewise.
21532         * modules/wcsrtombs (Depends-on): Likewise.
21533
21534 2009-12-24  Bruno Haible  <bruno@clisp.org>
21535
21536         binary-io: Avoid gcc warning due to SET_BINARY.
21537         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21538         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21539
21540 2009-12-24  Bruno Haible  <bruno@clisp.org>
21541
21542         Avoid future namespace pollution on glibc systems.
21543         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21544         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21545         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21546         glibc systems.
21547
21548 2009-12-24  Bruno Haible  <bruno@clisp.org>
21549
21550         Refactor common macros used in tests.
21551         * tests/macros.h: New file.
21552         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21553         and/or <stdlib.h>, if appropriate.
21554         (ASSERT, SIZEOF): Remove macros.
21555         * tests/test-areadlink-with-size.c: Likewise.
21556         * tests/test-areadlinkat.c: Likewise.
21557         * tests/test-areadlinkat-with-size.c: Likewise.
21558         * tests/test-argmatch.c: Likewise.
21559         * tests/test-argv-iter.c: Likewise.
21560         * tests/test-array-mergesort.c: Likewise.
21561         * tests/test-array_list.c: Likewise.
21562         * tests/test-array_oset.c: Likewise.
21563         * tests/test-avltree_list.c: Likewise.
21564         * tests/test-avltree_oset.c: Likewise.
21565         * tests/test-avltreehash_list.c: Likewise.
21566         * tests/test-base64.c: Likewise.
21567         * tests/test-binary-io.c: Likewise.
21568         * tests/test-bitrotate.c: Likewise.
21569         * tests/test-btowc.c: Likewise.
21570         * tests/test-byteswap.c: Likewise.
21571         * tests/test-c-ctype.c: Likewise.
21572         * tests/test-c-stack.c: Likewise.
21573         * tests/test-c-strcasecmp.c: Likewise.
21574         * tests/test-c-strcasestr.c: Likewise.
21575         * tests/test-c-strncasecmp.c: Likewise.
21576         * tests/test-c-strstr.c: Likewise.
21577         * tests/test-canonicalize-lgpl.c: Likewise.
21578         * tests/test-canonicalize.c: Likewise.
21579         * tests/test-carray_list.c: Likewise.
21580         * tests/test-ceilf1.c: Likewise.
21581         * tests/test-ceilf2.c: Likewise.
21582         * tests/test-ceill.c: Likewise.
21583         * tests/test-chown.c: Likewise.
21584         * tests/test-cloexec.c: Likewise.
21585         * tests/test-copy-acl.c: Likewise.
21586         * tests/test-copy-file.c: Likewise.
21587         * tests/test-count-one-bits.c: Likewise.
21588         * tests/test-dprintf-posix.c: Likewise.
21589         * tests/test-dup2.c: Likewise.
21590         * tests/test-dup3.c: Likewise.
21591         * tests/test-duplocale.c: Likewise.
21592         * tests/test-fbufmode.c: Likewise.
21593         * tests/test-fchdir.c: Likewise.
21594         * tests/test-fchownat.c: Likewise.
21595         * tests/test-fcntl-safer.c: Likewise.
21596         * tests/test-fcntl.c: Likewise.
21597         * tests/test-fdopendir.c: Likewise.
21598         * tests/test-fdutimensat.c: Likewise.
21599         * tests/test-fflush2.c: Likewise.
21600         * tests/test-file-has-acl.c: Likewise.
21601         * tests/test-filevercmp.c: Likewise.
21602         * tests/test-flock.c: Likewise.
21603         * tests/test-floorf1.c: Likewise.
21604         * tests/test-floorf2.c: Likewise.
21605         * tests/test-floorl.c: Likewise.
21606         * tests/test-fnmatch.c: Likewise.
21607         * tests/test-fopen.h: Likewise.
21608         * tests/test-fpending.c: Likewise.
21609         * tests/test-fprintf-posix.c: Likewise.
21610         * tests/test-fpurge.c: Likewise.
21611         * tests/test-freadable.c: Likewise.
21612         * tests/test-freadahead.c: Likewise.
21613         * tests/test-freading.c: Likewise.
21614         * tests/test-freadptr.c: Likewise.
21615         * tests/test-freadptr2.c: Likewise.
21616         * tests/test-freadseek.c: Likewise.
21617         * tests/test-freopen.c: Likewise.
21618         * tests/test-frexp.c: Likewise.
21619         * tests/test-frexpl.c: Likewise.
21620         * tests/test-fseek.c: Likewise.
21621         * tests/test-fseeko.c: Likewise.
21622         * tests/test-fstatat.c: Likewise.
21623         * tests/test-fstrcmp.c: Likewise.
21624         * tests/test-fsync.c: Likewise.
21625         * tests/test-ftell.c: Likewise.
21626         * tests/test-ftello.c: Likewise.
21627         * tests/test-func.c: Likewise.
21628         * tests/test-futimens.c: Likewise.
21629         * tests/test-fwritable.c: Likewise.
21630         * tests/test-fwriting.c: Likewise.
21631         * tests/test-getcwd.c: Likewise.
21632         * tests/test-getdate.c: Likewise.
21633         * tests/test-getdelim.c: Likewise.
21634         * tests/test-getdtablesize.c: Likewise.
21635         * tests/test-getgroups.c: Likewise.
21636         * tests/test-getline.c: Likewise.
21637         * tests/test-getndelim2.c: Likewise.
21638         * tests/test-glob.c: Likewise.
21639         * tests/test-hash.c: Likewise.
21640         * tests/test-i-ring.c: Likewise.
21641         * tests/test-iconv-utf.c: Likewise.
21642         * tests/test-iconv.c: Likewise.
21643         * tests/test-idpriv-drop.c: Likewise.
21644         * tests/test-idpriv-droptemp.c: Likewise.
21645         * tests/test-inet_ntop.c: Likewise.
21646         * tests/test-inet_pton.c: Likewise.
21647         * tests/test-isblank.c: Likewise.
21648         * tests/test-isfinite.c: Likewise.
21649         * tests/test-isinf.c: Likewise.
21650         * tests/test-isnan.c: Likewise.
21651         * tests/test-isnand.h: Likewise.
21652         * tests/test-isnanf.h: Likewise.
21653         * tests/test-isnanl.h: Likewise.
21654         * tests/test-lchown.c: Likewise.
21655         * tests/test-ldexpl.c: Likewise.
21656         * tests/test-link.c: Likewise.
21657         * tests/test-linkat.c: Likewise.
21658         * tests/test-linked_list.c: Likewise.
21659         * tests/test-linkedhash_list.c: Likewise.
21660         * tests/test-localename.c: Likewise.
21661         * tests/test-lseek.c: Likewise.
21662         * tests/test-lstat.c: Likewise.
21663         * tests/test-mbmemcasecmp.c: Likewise.
21664         * tests/test-mbmemcasecoll.c: Likewise.
21665         * tests/test-mbrtowc.c: Likewise.
21666         * tests/test-mbscasecmp.c: Likewise.
21667         * tests/test-mbscasestr1.c: Likewise.
21668         * tests/test-mbscasestr2.c: Likewise.
21669         * tests/test-mbscasestr3.c: Likewise.
21670         * tests/test-mbscasestr4.c: Likewise.
21671         * tests/test-mbschr.c: Likewise.
21672         * tests/test-mbscspn.c: Likewise.
21673         * tests/test-mbsinit.c: Likewise.
21674         * tests/test-mbsncasecmp.c: Likewise.
21675         * tests/test-mbsnrtowcs.c: Likewise.
21676         * tests/test-mbspbrk.c: Likewise.
21677         * tests/test-mbspcasecmp.c: Likewise.
21678         * tests/test-mbsrchr.c: Likewise.
21679         * tests/test-mbsrtowcs.c: Likewise.
21680         * tests/test-mbsspn.c: Likewise.
21681         * tests/test-mbsstr1.c: Likewise.
21682         * tests/test-mbsstr2.c: Likewise.
21683         * tests/test-mbsstr3.c: Likewise.
21684         * tests/test-memchr.c: Likewise.
21685         * tests/test-memchr2.c: Likewise.
21686         * tests/test-memcmp.c: Likewise.
21687         * tests/test-memmem.c: Likewise.
21688         * tests/test-memrchr.c: Likewise.
21689         * tests/test-mkdir.c: Likewise.
21690         * tests/test-mkdirat.c: Likewise.
21691         * tests/test-mkfifo.c: Likewise.
21692         * tests/test-mkfifoat.c: Likewise.
21693         * tests/test-mknod.c: Likewise.
21694         * tests/test-nanosleep.c: Likewise.
21695         * tests/test-nl_langinfo.c: Likewise.
21696         * tests/test-obstack-printf.c: Likewise.
21697         * tests/test-open.c: Likewise.
21698         * tests/test-openat.c: Likewise.
21699         * tests/test-pipe-filter-gi1.c: Likewise.
21700         * tests/test-pipe-filter-gi2-main.c: Likewise.
21701         * tests/test-pipe-filter-ii1.c: Likewise.
21702         * tests/test-pipe-filter-ii2-main.c: Likewise.
21703         * tests/test-pipe2.c: Likewise.
21704         * tests/test-popen.h: Likewise.
21705         * tests/test-posixtm.c: Likewise.
21706         * tests/test-pread.c: Likewise.
21707         * tests/test-printf-frexp.c: Likewise.
21708         * tests/test-printf-frexpl.c: Likewise.
21709         * tests/test-printf-posix.c: Likewise.
21710         * tests/test-priv-set.c: Likewise.
21711         * tests/test-quotearg.c: Likewise.
21712         * tests/test-random_r.c: Likewise.
21713         * tests/test-rawmemchr.c: Likewise.
21714         * tests/test-rbtree_list.c: Likewise.
21715         * tests/test-rbtree_oset.c: Likewise.
21716         * tests/test-rbtreehash_list.c: Likewise.
21717         * tests/test-readlink.c: Likewise.
21718         * tests/test-remove.c: Likewise.
21719         * tests/test-rename.c: Likewise.
21720         * tests/test-renameat.c: Likewise.
21721         * tests/test-rmdir.c: Likewise.
21722         * tests/test-round1.c: Likewise.
21723         * tests/test-roundf1.c: Likewise.
21724         * tests/test-roundl.c: Likewise.
21725         * tests/test-safe-alloc.c: Likewise.
21726         * tests/test-sameacls.c: Likewise.
21727         * tests/test-set-mode-acl.c: Likewise.
21728         * tests/test-setenv.c: Likewise.
21729         * tests/test-sigaction.c: Likewise.
21730         * tests/test-signbit.c: Likewise.
21731         * tests/test-sleep.c: Likewise.
21732         * tests/test-snprintf-posix.c: Likewise.
21733         * tests/test-snprintf.c: Likewise.
21734         * tests/test-sprintf-posix.c: Likewise.
21735         * tests/test-stat-time.c: Likewise.
21736         * tests/test-stat.c: Likewise.
21737         * tests/test-strcasestr.c: Likewise.
21738         * tests/test-strchrnul.c: Likewise.
21739         * tests/test-strerror.c: Likewise.
21740         * tests/test-striconv.c: Likewise.
21741         * tests/test-striconveh.c: Likewise.
21742         * tests/test-striconveha.c: Likewise.
21743         * tests/test-strsignal.c: Likewise.
21744         * tests/test-strstr.c: Likewise.
21745         * tests/test-strtod.c: Likewise.
21746         * tests/test-strverscmp.c: Likewise.
21747         * tests/test-symlink.c: Likewise.
21748         * tests/test-symlinkat.c: Likewise.
21749         * tests/test-trunc1.c: Likewise.
21750         * tests/test-trunc2.c: Likewise.
21751         * tests/test-truncf1.c: Likewise.
21752         * tests/test-truncf2.c: Likewise.
21753         * tests/test-truncl.c: Likewise.
21754         * tests/test-uname.c: Likewise.
21755         * tests/test-unlink.c: Likewise.
21756         * tests/test-unlinkat.c: Likewise.
21757         * tests/test-unsetenv.c: Likewise.
21758         * tests/test-usleep.c: Likewise.
21759         * tests/test-utimens.c: Likewise.
21760         * tests/test-utimensat.c: Likewise.
21761         * tests/test-vasnprintf-posix.c: Likewise.
21762         * tests/test-vasnprintf-posix2.c: Likewise.
21763         * tests/test-vasnprintf.c: Likewise.
21764         * tests/test-vasprintf-posix.c: Likewise.
21765         * tests/test-vasprintf.c: Likewise.
21766         * tests/test-vdprintf-posix.c: Likewise.
21767         * tests/test-vfprintf-posix.c: Likewise.
21768         * tests/test-vprintf-posix.c: Likewise.
21769         * tests/test-vsnprintf-posix.c: Likewise.
21770         * tests/test-vsnprintf.c: Likewise.
21771         * tests/test-vsprintf-posix.c: Likewise.
21772         * tests/test-wcrtomb.c: Likewise.
21773         * tests/test-wcsnrtombs.c: Likewise.
21774         * tests/test-wcsrtombs.c: Likewise.
21775         * tests/test-wctype.c: Likewise.
21776         * tests/test-wcwidth.c: Likewise.
21777         * tests/test-xfprintf-posix.c: Likewise.
21778         * tests/test-xmemdup0.c: Likewise.
21779         * tests/test-xprintf-posix.c: Likewise.
21780         * tests/test-xvasprintf.c: Likewise.
21781         * tests/unicase/test-locale-language.c: Likewise.
21782         * tests/unicase/test-mapping-part1.h: Likewise.
21783         * tests/unicase/test-predicate-part1.h: Likewise.
21784         * tests/unicase/test-u8-casecmp.c: Likewise.
21785         * tests/unicase/test-u8-casecoll.c: Likewise.
21786         * tests/unicase/test-u8-casefold.c: Likewise.
21787         * tests/unicase/test-u8-is-cased.c: Likewise.
21788         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21789         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21790         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21791         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21792         * tests/unicase/test-u8-tolower.c: Likewise.
21793         * tests/unicase/test-u8-totitle.c: Likewise.
21794         * tests/unicase/test-u8-toupper.c: Likewise.
21795         * tests/unicase/test-u16-casecmp.c: Likewise.
21796         * tests/unicase/test-u16-casecoll.c: Likewise.
21797         * tests/unicase/test-u16-casefold.c: Likewise.
21798         * tests/unicase/test-u16-is-cased.c: Likewise.
21799         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21800         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21801         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21802         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21803         * tests/unicase/test-u16-tolower.c: Likewise.
21804         * tests/unicase/test-u16-totitle.c: Likewise.
21805         * tests/unicase/test-u16-toupper.c: Likewise.
21806         * tests/unicase/test-u32-casecmp.c: Likewise.
21807         * tests/unicase/test-u32-casecoll.c: Likewise.
21808         * tests/unicase/test-u32-casefold.c: Likewise.
21809         * tests/unicase/test-u32-is-cased.c: Likewise.
21810         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21811         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21812         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21813         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21814         * tests/unicase/test-u32-tolower.c: Likewise.
21815         * tests/unicase/test-u32-totitle.c: Likewise.
21816         * tests/unicase/test-u32-toupper.c: Likewise.
21817         * tests/unicase/test-ulc-casecmp.c: Likewise.
21818         * tests/unicase/test-ulc-casecoll.c: Likewise.
21819         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21820         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21821         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21822         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21823         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21824         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21825         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21826         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21827         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21828         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21829         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21830         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21831         * tests/unictype/test-bidi_byname.c: Likewise.
21832         * tests/unictype/test-bidi_name.c: Likewise.
21833         * tests/unictype/test-bidi_of.c: Likewise.
21834         * tests/unictype/test-bidi_test.c: Likewise.
21835         * tests/unictype/test-block_list.c: Likewise.
21836         * tests/unictype/test-block_of.c: Likewise.
21837         * tests/unictype/test-block_test.c: Likewise.
21838         * tests/unictype/test-categ_and.c: Likewise.
21839         * tests/unictype/test-categ_and_not.c: Likewise.
21840         * tests/unictype/test-categ_byname.c: Likewise.
21841         * tests/unictype/test-categ_name.c: Likewise.
21842         * tests/unictype/test-categ_none.c: Likewise.
21843         * tests/unictype/test-categ_of.c: Likewise.
21844         * tests/unictype/test-categ_or.c: Likewise.
21845         * tests/unictype/test-categ_test_withtable.c: Likewise.
21846         * tests/unictype/test-combining.c: Likewise.
21847         * tests/unictype/test-decdigit.c: Likewise.
21848         * tests/unictype/test-digit.c: Likewise.
21849         * tests/unictype/test-mirror.c: Likewise.
21850         * tests/unictype/test-numeric.c: Likewise.
21851         * tests/unictype/test-pr_byname.c: Likewise.
21852         * tests/unictype/test-pr_test.c: Likewise.
21853         * tests/unictype/test-predicate-part1.h: Likewise.
21854         * tests/unictype/test-scripts.c: Likewise.
21855         * tests/unictype/test-sy_c_ident.c: Likewise.
21856         * tests/unictype/test-sy_java_ident.c: Likewise.
21857         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21858         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21859         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21860         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21861         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21862         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21863         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21864         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21865         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21866         * tests/uninorm/test-compat-decomposition.c: Likewise.
21867         * tests/uninorm/test-composition.c: Likewise.
21868         * tests/uninorm/test-decomposing-form.c: Likewise.
21869         * tests/uninorm/test-decomposition.c: Likewise.
21870         * tests/uninorm/test-u8-nfc.c: Likewise.
21871         * tests/uninorm/test-u8-nfd.c: Likewise.
21872         * tests/uninorm/test-u8-nfkc.c: Likewise.
21873         * tests/uninorm/test-u8-nfkd.c: Likewise.
21874         * tests/uninorm/test-u8-normcmp.c: Likewise.
21875         * tests/uninorm/test-u8-normcoll.c: Likewise.
21876         * tests/uninorm/test-u16-nfc.c: Likewise.
21877         * tests/uninorm/test-u16-nfd.c: Likewise.
21878         * tests/uninorm/test-u16-nfkc.c: Likewise.
21879         * tests/uninorm/test-u16-nfkd.c: Likewise.
21880         * tests/uninorm/test-u16-normcmp.c: Likewise.
21881         * tests/uninorm/test-u16-normcoll.c: Likewise.
21882         * tests/uninorm/test-u32-nfc.c: Likewise.
21883         * tests/uninorm/test-u32-nfd.c: Likewise.
21884         * tests/uninorm/test-u32-nfkc.c: Likewise.
21885         * tests/uninorm/test-u32-nfkd.c: Likewise.
21886         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21887         * tests/uninorm/test-u32-normcmp.c: Likewise.
21888         * tests/uninorm/test-u32-normcoll.c: Likewise.
21889         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21890         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21891         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21892         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21893         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21894         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21895         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21896         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21897         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21898         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21899         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21900         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21901         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21902         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21903         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21904         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21905         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21906         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21907         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21908         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21909         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21910         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21911         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21912         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21913         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21914         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21915         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21916         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21917         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21918         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21919         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21920         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21921         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21922         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21923         * tests/uniwidth/test-u8-width.c: Likewise.
21924         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21925         * tests/uniwidth/test-u16-width.c: Likewise.
21926         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21927         * tests/uniwidth/test-u32-width.c: Likewise.
21928         * tests/uniwidth/test-uc_width.c: Likewise.
21929         * tests/uniwidth/test-uc_width2.c: Likewise.
21930         * modules/acl-tests (Files): Add tests/macros.h.
21931         * modules/areadlink-tests (Files): Likewise.
21932         * modules/areadlink-with-size-tests (Files): Likewise.
21933         * modules/areadlinkat-tests (Files): Likewise.
21934         * modules/areadlinkat-with-size-tests (Files): Likewise.
21935         * modules/argmatch-tests (Files): Likewise.
21936         * modules/argv-iter-tests (Files): Likewise.
21937         * modules/array-list-tests (Files): Likewise.
21938         * modules/array-mergesort-tests (Files): Likewise.
21939         * modules/array-oset-tests (Files): Likewise.
21940         * modules/avltree-list-tests (Files): Likewise.
21941         * modules/avltree-oset-tests (Files): Likewise.
21942         * modules/avltreehash-list-tests (Files): Likewise.
21943         * modules/base64-tests (Files): Likewise.
21944         * modules/binary-io-tests (Files): Likewise.
21945         * modules/bitrotate-tests (Files): Likewise.
21946         * modules/btowc-tests (Files): Likewise.
21947         * modules/byteswap-tests (Files): Likewise.
21948         * modules/c-ctype-tests (Files): Likewise.
21949         * modules/c-stack-tests (Files): Likewise.
21950         * modules/c-strcase-tests (Files): Likewise.
21951         * modules/c-strcasestr-tests (Files): Likewise.
21952         * modules/c-strstr-tests (Files): Likewise.
21953         * modules/canonicalize-lgpl-tests (Files): Likewise.
21954         * modules/canonicalize-tests (Files): Likewise.
21955         * modules/carray-list-tests (Files): Likewise.
21956         * modules/ceilf-tests (Files): Likewise.
21957         * modules/ceill-tests (Files): Likewise.
21958         * modules/chown-tests (Files): Likewise.
21959         * modules/cloexec-tests (Files): Likewise.
21960         * modules/copy-file-tests (Files): Likewise.
21961         * modules/count-one-bits-tests (Files): Likewise.
21962         * modules/dprintf-posix-tests (Files): Likewise.
21963         * modules/dup2-tests (Files): Likewise.
21964         * modules/dup3-tests (Files): Likewise.
21965         * modules/duplocale-tests (Files): Likewise.
21966         * modules/fbufmode-tests (Files): Likewise.
21967         * modules/fchdir-tests (Files): Likewise.
21968         * modules/fcntl-safer-tests (Files): Likewise.
21969         * modules/fcntl-tests (Files): Likewise.
21970         * modules/fdopendir-tests (Files): Likewise.
21971         * modules/fdutimensat-tests (Files): Likewise.
21972         * modules/fflush-tests (Files): Likewise.
21973         * modules/filevercmp-tests (Files): Likewise.
21974         * modules/flock-tests (Files): Likewise.
21975         * modules/floorf-tests (Files): Likewise.
21976         * modules/floorl-tests (Files): Likewise.
21977         * modules/fnmatch-tests (Files): Likewise.
21978         * modules/fopen-safer-tests (Files): Likewise.
21979         * modules/fopen-tests (Files): Likewise.
21980         * modules/fpending-tests (Files): Likewise.
21981         * modules/fprintf-posix-tests (Files): Likewise.
21982         * modules/fpurge-tests (Files): Likewise.
21983         * modules/freadable-tests (Files): Likewise.
21984         * modules/freadahead-tests (Files): Likewise.
21985         * modules/freading-tests (Files): Likewise.
21986         * modules/freadptr-tests (Files): Likewise.
21987         * modules/freadseek-tests (Files): Likewise.
21988         * modules/freopen-tests (Files): Likewise.
21989         * modules/frexp-nolibm-tests (Files): Likewise.
21990         * modules/frexp-tests (Files): Likewise.
21991         * modules/frexpl-nolibm-tests (Files): Likewise.
21992         * modules/frexpl-tests (Files): Likewise.
21993         * modules/fseek-tests (Files): Likewise.
21994         * modules/fseeko-tests (Files): Likewise.
21995         * modules/fstrcmp-tests (Files): Likewise.
21996         * modules/fsync-tests (Files): Likewise.
21997         * modules/ftell-tests (Files): Likewise.
21998         * modules/ftello-tests (Files): Likewise.
21999         * modules/func-tests (Files): Likewise.
22000         * modules/futimens-tests (Files): Likewise.
22001         * modules/fwritable-tests (Files): Likewise.
22002         * modules/fwriting-tests (Files): Likewise.
22003         * modules/getcwd-tests (Files): Likewise.
22004         * modules/getdate-tests (Files): Likewise.
22005         * modules/getdelim-tests (Files): Likewise.
22006         * modules/getdtablesize-tests (Files): Likewise.
22007         * modules/getgroups-tests (Files): Likewise.
22008         * modules/getline-tests (Files): Likewise.
22009         * modules/getndelim2-tests (Files): Likewise.
22010         * modules/glob-tests (Files): Likewise.
22011         * modules/hash-tests (Files): Likewise.
22012         * modules/i-ring-tests (Files): Likewise.
22013         * modules/iconv-tests (Files): Likewise.
22014         * modules/iconv_open-utf-tests (Files): Likewise.
22015         * modules/idpriv-drop-tests (Files): Likewise.
22016         * modules/idpriv-droptemp-tests (Files): Likewise.
22017         * modules/inet_ntop-tests (Files): Likewise.
22018         * modules/inet_pton-tests (Files): Likewise.
22019         * modules/isblank-tests (Files): Likewise.
22020         * modules/isfinite-tests (Files): Likewise.
22021         * modules/isinf-tests (Files): Likewise.
22022         * modules/isnan-tests (Files): Likewise.
22023         * modules/isnand-nolibm-tests (Files): Likewise.
22024         * modules/isnand-tests (Files): Likewise.
22025         * modules/isnanf-nolibm-tests (Files): Likewise.
22026         * modules/isnanf-tests (Files): Likewise.
22027         * modules/isnanl-nolibm-tests (Files): Likewise.
22028         * modules/isnanl-tests (Files): Likewise.
22029         * modules/lchown-tests (Files): Likewise.
22030         * modules/ldexpl-tests (Files): Likewise.
22031         * modules/link-tests (Files): Likewise.
22032         * modules/linkat-tests (Files): Likewise.
22033         * modules/linked-list-tests (Files): Likewise.
22034         * modules/linkedhash-list-tests (Files): Likewise.
22035         * modules/localename-tests (Files): Likewise.
22036         * modules/lseek-tests (Files): Likewise.
22037         * modules/lstat-tests (Files): Likewise.
22038         * modules/mbmemcasecmp-tests (Files): Likewise.
22039         * modules/mbmemcasecoll-tests (Files): Likewise.
22040         * modules/mbrtowc-tests (Files): Likewise.
22041         * modules/mbscasecmp-tests (Files): Likewise.
22042         * modules/mbscasestr-tests (Files): Likewise.
22043         * modules/mbschr-tests (Files): Likewise.
22044         * modules/mbscspn-tests (Files): Likewise.
22045         * modules/mbsinit-tests (Files): Likewise.
22046         * modules/mbsncasecmp-tests (Files): Likewise.
22047         * modules/mbsnrtowcs-tests (Files): Likewise.
22048         * modules/mbspbrk-tests (Files): Likewise.
22049         * modules/mbspcasecmp-tests (Files): Likewise.
22050         * modules/mbsrchr-tests (Files): Likewise.
22051         * modules/mbsrtowcs-tests (Files): Likewise.
22052         * modules/mbsspn-tests (Files): Likewise.
22053         * modules/mbsstr-tests (Files): Likewise.
22054         * modules/memchr-tests (Files): Likewise.
22055         * modules/memchr2-tests (Files): Likewise.
22056         * modules/memcmp-tests (Files): Likewise.
22057         * modules/memmem-tests (Files): Likewise.
22058         * modules/memrchr-tests (Files): Likewise.
22059         * modules/mkdir-tests (Files): Likewise.
22060         * modules/mkfifo-tests (Files): Likewise.
22061         * modules/mkfifoat-tests (Files): Likewise.
22062         * modules/mknod-tests (Files): Likewise.
22063         * modules/nanosleep-tests (Files): Likewise.
22064         * modules/nl_langinfo-tests (Files): Likewise.
22065         * modules/obstack-printf-tests (Files): Likewise.
22066         * modules/open-tests (Files): Likewise.
22067         * modules/openat-tests (Files): Likewise.
22068         * modules/pipe-filter-gi-tests (Files): Likewise.
22069         * modules/pipe-filter-ii-tests (Files): Likewise.
22070         * modules/pipe2-tests (Files): Likewise.
22071         * modules/popen-safer-tests (Files): Likewise.
22072         * modules/popen-tests (Files): Likewise.
22073         * modules/posixtm-tests (Files): Likewise.
22074         * modules/pread-tests (Files): Likewise.
22075         * modules/printf-frexp-tests (Files): Likewise.
22076         * modules/printf-frexpl-tests (Files): Likewise.
22077         * modules/printf-posix-tests (Files): Likewise.
22078         * modules/priv-set-tests (Files): Likewise.
22079         * modules/quotearg-tests (Files): Likewise.
22080         * modules/random_r-tests (Files): Likewise.
22081         * modules/rawmemchr-tests (Files): Likewise.
22082         * modules/rbtree-list-tests (Files): Likewise.
22083         * modules/rbtree-oset-tests (Files): Likewise.
22084         * modules/rbtreehash-list-tests (Files): Likewise.
22085         * modules/readlink-tests (Files): Likewise.
22086         * modules/remove-tests (Files): Likewise.
22087         * modules/rename-tests (Files): Likewise.
22088         * modules/renameat-tests (Files): Likewise.
22089         * modules/rmdir-tests (Files): Likewise.
22090         * modules/round-tests (Files): Likewise.
22091         * modules/roundf-tests (Files): Likewise.
22092         * modules/roundl-tests (Files): Likewise.
22093         * modules/safe-alloc-tests (Files): Likewise.
22094         * modules/setenv-tests (Files): Likewise.
22095         * modules/sigaction-tests (Files): Likewise.
22096         * modules/signbit-tests (Files): Likewise.
22097         * modules/sleep-tests (Files): Likewise.
22098         * modules/snprintf-posix-tests (Files): Likewise.
22099         * modules/snprintf-tests (Files): Likewise.
22100         * modules/sprintf-posix-tests (Files): Likewise.
22101         * modules/stat-tests (Files): Likewise.
22102         * modules/stat-time-tests (Files): Likewise.
22103         * modules/strcasestr-tests (Files): Likewise.
22104         * modules/strchrnul-tests (Files): Likewise.
22105         * modules/strerror-tests (Files): Likewise.
22106         * modules/striconv-tests (Files): Likewise.
22107         * modules/striconveh-tests (Files): Likewise.
22108         * modules/striconveha-tests (Files): Likewise.
22109         * modules/strsignal-tests (Files): Likewise.
22110         * modules/strstr-tests (Files): Likewise.
22111         * modules/strtod-tests (Files): Likewise.
22112         * modules/strverscmp-tests (Files): Likewise.
22113         * modules/symlink-tests (Files): Likewise.
22114         * modules/symlinkat-tests (Files): Likewise.
22115         * modules/trunc-tests (Files): Likewise.
22116         * modules/truncf-tests (Files): Likewise.
22117         * modules/truncl-tests (Files): Likewise.
22118         * modules/uname-tests (Files): Likewise.
22119         * modules/unicase/cased-tests (Files): Likewise.
22120         * modules/unicase/ignorable-tests (Files): Likewise.
22121         * modules/unicase/locale-language-tests (Files): Likewise.
22122         * modules/unicase/tolower-tests (Files): Likewise.
22123         * modules/unicase/totitle-tests (Files): Likewise.
22124         * modules/unicase/toupper-tests (Files): Likewise.
22125         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22126         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22127         * modules/unicase/u8-casefold-tests (Files): Likewise.
22128         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22129         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22130         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22131         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22132         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22133         * modules/unicase/u8-tolower-tests (Files): Likewise.
22134         * modules/unicase/u8-totitle-tests (Files): Likewise.
22135         * modules/unicase/u8-toupper-tests (Files): Likewise.
22136         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22137         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22138         * modules/unicase/u16-casefold-tests (Files): Likewise.
22139         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22140         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22141         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22142         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22143         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22144         * modules/unicase/u16-tolower-tests (Files): Likewise.
22145         * modules/unicase/u16-totitle-tests (Files): Likewise.
22146         * modules/unicase/u16-toupper-tests (Files): Likewise.
22147         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22148         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22149         * modules/unicase/u32-casefold-tests (Files): Likewise.
22150         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22151         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22152         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22153         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22154         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22155         * modules/unicase/u32-tolower-tests (Files): Likewise.
22156         * modules/unicase/u32-totitle-tests (Files): Likewise.
22157         * modules/unicase/u32-toupper-tests (Files): Likewise.
22158         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22159         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22160         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22161         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22162         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22163         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22164         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22165         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22166         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22167         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22168         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22169         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22170         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22171         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22172         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22173         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22174         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22175         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22176         * modules/unictype/block-list-tests (Files): Likewise.
22177         * modules/unictype/block-of-tests (Files): Likewise.
22178         * modules/unictype/block-test-tests (Files): Likewise.
22179         * modules/unictype/category-C-tests (Files): Likewise.
22180         * modules/unictype/category-Cc-tests (Files): Likewise.
22181         * modules/unictype/category-Cf-tests (Files): Likewise.
22182         * modules/unictype/category-Cn-tests (Files): Likewise.
22183         * modules/unictype/category-Co-tests (Files): Likewise.
22184         * modules/unictype/category-Cs-tests (Files): Likewise.
22185         * modules/unictype/category-L-tests (Files): Likewise.
22186         * modules/unictype/category-Ll-tests (Files): Likewise.
22187         * modules/unictype/category-Lm-tests (Files): Likewise.
22188         * modules/unictype/category-Lo-tests (Files): Likewise.
22189         * modules/unictype/category-Lt-tests (Files): Likewise.
22190         * modules/unictype/category-Lu-tests (Files): Likewise.
22191         * modules/unictype/category-M-tests (Files): Likewise.
22192         * modules/unictype/category-Mc-tests (Files): Likewise.
22193         * modules/unictype/category-Me-tests (Files): Likewise.
22194         * modules/unictype/category-Mn-tests (Files): Likewise.
22195         * modules/unictype/category-N-tests (Files): Likewise.
22196         * modules/unictype/category-Nd-tests (Files): Likewise.
22197         * modules/unictype/category-Nl-tests (Files): Likewise.
22198         * modules/unictype/category-No-tests (Files): Likewise.
22199         * modules/unictype/category-P-tests (Files): Likewise.
22200         * modules/unictype/category-Pc-tests (Files): Likewise.
22201         * modules/unictype/category-Pd-tests (Files): Likewise.
22202         * modules/unictype/category-Pe-tests (Files): Likewise.
22203         * modules/unictype/category-Pf-tests (Files): Likewise.
22204         * modules/unictype/category-Pi-tests (Files): Likewise.
22205         * modules/unictype/category-Po-tests (Files): Likewise.
22206         * modules/unictype/category-Ps-tests (Files): Likewise.
22207         * modules/unictype/category-S-tests (Files): Likewise.
22208         * modules/unictype/category-Sc-tests (Files): Likewise.
22209         * modules/unictype/category-Sk-tests (Files): Likewise.
22210         * modules/unictype/category-Sm-tests (Files): Likewise.
22211         * modules/unictype/category-So-tests (Files): Likewise.
22212         * modules/unictype/category-Z-tests (Files): Likewise.
22213         * modules/unictype/category-Zl-tests (Files): Likewise.
22214         * modules/unictype/category-Zp-tests (Files): Likewise.
22215         * modules/unictype/category-Zs-tests (Files): Likewise.
22216         * modules/unictype/category-and-not-tests (Files): Likewise.
22217         * modules/unictype/category-and-tests (Files): Likewise.
22218         * modules/unictype/category-byname-tests (Files): Likewise.
22219         * modules/unictype/category-name-tests (Files): Likewise.
22220         * modules/unictype/category-none-tests (Files): Likewise.
22221         * modules/unictype/category-of-tests (Files): Likewise.
22222         * modules/unictype/category-or-tests (Files): Likewise.
22223         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22224         * modules/unictype/combining-class-tests (Files): Likewise.
22225         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22226         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22227         * modules/unictype/ctype-blank-tests (Files): Likewise.
22228         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22229         * modules/unictype/ctype-digit-tests (Files): Likewise.
22230         * modules/unictype/ctype-graph-tests (Files): Likewise.
22231         * modules/unictype/ctype-lower-tests (Files): Likewise.
22232         * modules/unictype/ctype-print-tests (Files): Likewise.
22233         * modules/unictype/ctype-punct-tests (Files): Likewise.
22234         * modules/unictype/ctype-space-tests (Files): Likewise.
22235         * modules/unictype/ctype-upper-tests (Files): Likewise.
22236         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22237         * modules/unictype/decimal-digit-tests (Files): Likewise.
22238         * modules/unictype/digit-tests (Files): Likewise.
22239         * modules/unictype/mirror-tests (Files): Likewise.
22240         * modules/unictype/numeric-tests (Files): Likewise.
22241         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22242         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22243         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22244         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22245         Likewise.
22246         * modules/unictype/property-bidi-block-separator-tests (Files):
22247         Likewise.
22248         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22249         Likewise.
22250         * modules/unictype/property-bidi-common-separator-tests (Files):
22251         Likewise.
22252         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22253         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22254         Likewise.
22255         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22256         Likewise.
22257         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22258         Likewise.
22259         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22260         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22261         Likewise.
22262         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22263         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22264         Likewise.
22265         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22266         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22267         * modules/unictype/property-bidi-segment-separator-tests (Files):
22268         Likewise.
22269         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22270         * modules/unictype/property-byname-tests (Files): Likewise.
22271         * modules/unictype/property-combining-tests (Files): Likewise.
22272         * modules/unictype/property-composite-tests (Files): Likewise.
22273         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22274         * modules/unictype/property-dash-tests (Files): Likewise.
22275         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22276         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22277         Likewise.
22278         * modules/unictype/property-deprecated-tests (Files): Likewise.
22279         * modules/unictype/property-diacritic-tests (Files): Likewise.
22280         * modules/unictype/property-extender-tests (Files): Likewise.
22281         * modules/unictype/property-format-control-tests (Files): Likewise.
22282         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22283         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22284         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22285         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22286         * modules/unictype/property-hyphen-tests (Files): Likewise.
22287         * modules/unictype/property-id-continue-tests (Files): Likewise.
22288         * modules/unictype/property-id-start-tests (Files): Likewise.
22289         * modules/unictype/property-ideographic-tests (Files): Likewise.
22290         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22291         * modules/unictype/property-ids-trinary-operator-tests (Files):
22292         Likewise.
22293         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22294         * modules/unictype/property-iso-control-tests (Files): Likewise.
22295         * modules/unictype/property-join-control-tests (Files): Likewise.
22296         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22297         * modules/unictype/property-line-separator-tests (Files): Likewise.
22298         * modules/unictype/property-logical-order-exception-tests (Files):
22299         Likewise.
22300         * modules/unictype/property-lowercase-tests (Files): Likewise.
22301         * modules/unictype/property-math-tests (Files): Likewise.
22302         * modules/unictype/property-non-break-tests (Files): Likewise.
22303         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22304         * modules/unictype/property-numeric-tests (Files): Likewise.
22305         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22306         * modules/unictype/property-other-default-ignorable-code-point-tests
22307         (Files): Likewise.
22308         * modules/unictype/property-other-grapheme-extend-tests (Files):
22309         Likewise.
22310         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22311         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22312         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22313         * modules/unictype/property-other-math-tests (Files): Likewise.
22314         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22315         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22316         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22317         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22318         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22319         * modules/unictype/property-private-use-tests (Files): Likewise.
22320         * modules/unictype/property-punctuation-tests (Files): Likewise.
22321         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22322         * modules/unictype/property-radical-tests (Files): Likewise.
22323         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22324         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22325         * modules/unictype/property-space-tests (Files): Likewise.
22326         * modules/unictype/property-terminal-punctuation-tests (Files):
22327         Likewise.
22328         * modules/unictype/property-test-tests (Files): Likewise.
22329         * modules/unictype/property-titlecase-tests (Files): Likewise.
22330         * modules/unictype/property-unassigned-code-value-tests (Files):
22331         Likewise.
22332         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22333         * modules/unictype/property-uppercase-tests (Files): Likewise.
22334         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22335         * modules/unictype/property-white-space-tests (Files): Likewise.
22336         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22337         * modules/unictype/property-xid-start-tests (Files): Likewise.
22338         * modules/unictype/property-zero-width-tests (Files): Likewise.
22339         * modules/unictype/scripts-tests (Files): Likewise.
22340         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22341         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22342         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22343         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22344         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22345         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22346         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22347         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22348         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22349         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22350         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22351         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22352         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22353         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22354         * modules/uninorm/composition-tests (Files): Likewise.
22355         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22356         * modules/uninorm/decomposition-tests (Files): Likewise.
22357         * modules/uninorm/filter-tests (Files): Likewise.
22358         * modules/uninorm/nfc-tests (Files): Likewise.
22359         * modules/uninorm/nfd-tests (Files): Likewise.
22360         * modules/uninorm/nfkc-tests (Files): Likewise.
22361         * modules/uninorm/nfkd-tests (Files): Likewise.
22362         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22363         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22364         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22365         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22366         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22367         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22368         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22369         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22370         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22371         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22372         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22373         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22374         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22375         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22376         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22377         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22378         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22379         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22380         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22381         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22382         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22383         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22384         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22385         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22386         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22387         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22388         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22389         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22390         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22391         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22392         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22393         * modules/uniwidth/u8-width-tests (Files): Likewise.
22394         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22395         * modules/uniwidth/u16-width-tests (Files): Likewise.
22396         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22397         * modules/uniwidth/u32-width-tests (Files): Likewise.
22398         * modules/uniwidth/width-tests (Files): Likewise.
22399         * modules/unlink-tests (Files): Likewise.
22400         * modules/unsetenv-tests (Files): Likewise.
22401         * modules/usleep-tests (Files): Likewise.
22402         * modules/utimens-tests (Files): Likewise.
22403         * modules/utimensat-tests (Files): Likewise.
22404         * modules/vasnprintf-posix-tests (Files): Likewise.
22405         * modules/vasnprintf-tests (Files): Likewise.
22406         * modules/vasprintf-posix-tests (Files): Likewise.
22407         * modules/vasprintf-tests (Files): Likewise.
22408         * modules/vdprintf-posix-tests (Files): Likewise.
22409         * modules/vfprintf-posix-tests (Files): Likewise.
22410         * modules/vprintf-posix-tests (Files): Likewise.
22411         * modules/vsnprintf-posix-tests (Files): Likewise.
22412         * modules/vsnprintf-tests (Files): Likewise.
22413         * modules/vsprintf-posix-tests (Files): Likewise.
22414         * modules/wcrtomb-tests (Files): Likewise.
22415         * modules/wcsnrtombs-tests (Files): Likewise.
22416         * modules/wcsrtombs-tests (Files): Likewise.
22417         * modules/wctype-tests (Files): Likewise.
22418         * modules/wcwidth-tests (Files): Likewise.
22419         * modules/xmemdup0-tests (Files): Likewise.
22420         * modules/xprintf-posix-tests (Files): Likewise.
22421         * modules/xvasprintf-tests (Files): Likewise.
22422
22423 2009-12-24  Eric Blake  <ebb9@byu.net>
22424
22425         test-nanosleep: fix typo
22426         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22427         patch.
22428         Reported by Bruno Haible.
22429
22430 2009-12-24  Bruno Haible  <bruno@clisp.org>
22431
22432         Reduce namespace pollution on glibc systems.
22433         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22434         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22435         systems.
22436         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22437         <getopt.h> on glibc systems.
22438         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22439         systems.
22440         * lib/fcntl.c: Include <unistd.h> here instead.
22441
22442 2009-12-24  Bruno Haible  <bruno@clisp.org>
22443
22444         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22445
22446 2009-12-24  Eric Blake  <ebb9@byu.net>
22447
22448         tests: add signature checks
22449         * tests/signature.h (SIGNATURE_CHECK): New file.
22450         * modules/atexit-tests (Files): Use it.
22451         * modules/btowc-tests (Files): Likewise.
22452         * modules/canonicalize-lgpl-tests (Files): Likewise.
22453         * modules/ceilf-tests (Files): Likewise.
22454         * modules/ceill-tests (Files): Likewise.
22455         * modules/chown-tests (Files): Likewise.
22456         * modules/dprintf-posix-tests (Files): Likewise.
22457         * modules/dup2-tests (Files): Likewise.
22458         * modules/dup3-tests (Files): Likewise.
22459         * modules/duplocale-tests (Files): Likewise.
22460         * modules/fchdir-tests (Files): Likewise.
22461         * modules/fcntl-tests (Files): Likewise.
22462         * modules/fdopendir-tests (Files): Likewise.
22463         * modules/fflush-tests (Files): Likewise.
22464         * modules/flock-tests (Files): Likewise.
22465         * modules/floorf-tests (Files): Likewise.
22466         * modules/floorl-tests (Files): Likewise.
22467         * modules/fnmatch-tests (Files): Likewise.
22468         * modules/fopen-tests (Files): Likewise.
22469         * modules/fprintf-posix-tests (Files): Likewise.
22470         * modules/freopen-tests (Files): Likewise.
22471         * modules/frexp-nolibm-tests (Files): Likewise.
22472         * modules/frexp-tests (Files): Likewise.
22473         * modules/frexpl-nolibm-tests (Files): Likewise.
22474         * modules/frexpl-tests (Files): Likewise.
22475         * modules/fseek-tests (Files): Likewise.
22476         * modules/fseeko-tests (Files): Likewise.
22477         * modules/fsync-tests (Files): Likewise.
22478         * modules/ftell-tests (Files): Likewise.
22479         * modules/ftello-tests (Files): Likewise.
22480         * modules/futimens-tests (Files): Likewise.
22481         * modules/getaddrinfo-tests (Files): Likewise.
22482         * modules/getcwd-tests (Files): Likewise.
22483         * modules/getdelim-tests (Files): Likewise.
22484         * modules/getdtablesize-tests (Files): Likewise.
22485         * modules/getgroups-tests (Files): Likewise.
22486         * modules/gethostname-tests (Files): Likewise.
22487         * modules/getline-tests (Files): Likewise.
22488         * modules/getopt-posix-tests (Files): Likewise.
22489         * modules/gettimeofday-tests (Files): Likewise.
22490         * modules/glob-tests (Files): Likewise.
22491         * modules/iconv-tests (Files): Likewise.
22492         * modules/inet_ntop-tests (Files): Likewise.
22493         * modules/inet_pton-tests (Files): Likewise.
22494         * modules/isblank-tests (Files): Likewise.
22495         * modules/lchown-tests (Files): Likewise.
22496         * modules/ldexpl-tests (Files): Likewise.
22497         * modules/link-tests (Files): Likewise.
22498         * modules/linkat-tests (Files): Likewise.
22499         * modules/lseek-tests (Files): Likewise.
22500         * modules/lstat-tests (Files): Likewise.
22501         * modules/mbrtowc-tests (Files): Likewise.
22502         * modules/mbsinit-tests (Files): Likewise.
22503         * modules/mbsnrtowcs-tests (Files): Likewise.
22504         * modules/mbsrtowcs-tests (Files): Likewise.
22505         * modules/memchr-tests (Files): Likewise.
22506         * modules/memcmp-tests (Files): Likewise.
22507         * modules/memmem-tests (Files): Likewise.
22508         * modules/memrchr-tests (Files): Likewise.
22509         * modules/mkdir-tests (Files): Likewise.
22510         * modules/mkfifo-tests (Files): Likewise.
22511         * modules/mkfifoat-tests (Files): Likewise.
22512         * modules/mknod-tests (Files): Likewise.
22513         * modules/nanosleep-tests (Files): Likewise.
22514         * modules/nl_langinfo-tests (Files): Likewise.
22515         * modules/obstack-printf-tests (Files): Likewise.
22516         * modules/open-tests (Files): Likewise.
22517         * modules/openat-tests (Files): Likewise.
22518         * modules/perror-tests (Files): Likewise.
22519         * modules/pipe2-tests (Files): Likewise.
22520         * modules/poll-tests (Files): Likewise.
22521         * modules/popen-tests (Files): Likewise.
22522         * modules/posix_spawn-tests (Files): Likewise.
22523         * modules/posix_spawnp-tests (Files): Likewise.
22524         * modules/pread-tests (Files): Likewise.
22525         * modules/printf-posix-tests (Files): Likewise.
22526         * modules/pty-tests (Files): Likewise.
22527         * modules/random_r-tests (Files): Likewise.
22528         * modules/rawmemchr-tests (Files): Likewise.
22529         * modules/readlink-tests (Files): Likewise.
22530         * modules/remove-tests (Files): Likewise.
22531         * modules/rename-tests (Files): Likewise.
22532         * modules/renameat-tests (Files): Likewise.
22533         * modules/rmdir-tests (Files): Likewise.
22534         * modules/round-tests (Files): Likewise.
22535         * modules/roundf-tests (Files): Likewise.
22536         * modules/roundl-tests (Files): Likewise.
22537         * modules/select-tests (Files): Likewise.
22538         * modules/setenv-tests (Files): Likewise.
22539         * modules/sigaction-tests (Files): Likewise.
22540         * modules/sleep-tests (Files): Likewise.
22541         * modules/snprintf-posix-tests (Files): Likewise.
22542         * modules/snprintf-tests (Files): Likewise.
22543         * modules/sprintf-posix-tests (Files): Likewise.
22544         * modules/stat-tests (Files): Likewise.
22545         * modules/strcasestr-tests (Files): Likewise.
22546         * modules/strchrnul-tests (Files): Likewise.
22547         * modules/strerror-tests (Files): Likewise.
22548         * modules/strsignal-tests (Files): Likewise.
22549         * modules/strstr-tests (Files): Likewise.
22550         * modules/strtod-tests (Files): Likewise.
22551         * modules/strverscmp-tests (Files): Likewise.
22552         * modules/symlink-tests (Files): Likewise.
22553         * modules/symlinkat-tests (Files): Likewise.
22554         * modules/times-tests (Files): Likewise.
22555         * modules/trunc-tests (Files): Likewise.
22556         * modules/truncf-tests (Files): Likewise.
22557         * modules/truncl-tests (Files): Likewise.
22558         * modules/tsearch-tests (Files): Likewise.
22559         * modules/uname-tests (Files): Likewise.
22560         * modules/unlink-tests (Files): Likewise.
22561         * modules/unsetenv-tests (Files): Likewise.
22562         * modules/usleep-tests (Files): Likewise.
22563         * modules/utimensat-tests (Files): Likewise.
22564         * modules/vasprintf-tests (Files): Likewise.
22565         * modules/vdprintf-posix-tests (Files): Likewise.
22566         * modules/vfprintf-posix-tests (Files): Likewise.
22567         * modules/vprintf-posix-tests (Files): Likewise.
22568         * modules/vsnprintf-posix-tests (Files): Likewise.
22569         * modules/vsnprintf-tests (Files): Likewise.
22570         * modules/vsprintf-posix-tests (Files): Likewise.
22571         * modules/wcrtomb-tests (Files): Likewise.
22572         * modules/wcsnrtombs-tests (Files): Likewise.
22573         * modules/wcsrtombs-tests (Files): Likewise.
22574         * modules/wcwidth-tests (Files): Likewise.
22575         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22576         * tests/test-isinf.c (isinf): Likewise.
22577         * tests/test-isnan.c (isnan): Likewise.
22578         * tests/test-signbit.c (signbit): Likewise.
22579         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22580         declaration, either as macro or with correct signature.
22581         (select): Ensure function under test is declared with correct
22582         signature in correct header.
22583         * tests/test-atexit.c (atexit): Likewise.
22584         * tests/test-btowc.c (btowc): Likewise.
22585         * tests/test-canonicalize-lgpl.c (realpath)
22586         (canonicalize_file_name): Likewise.
22587         * tests/test-ceilf1.c (ceilf): Likewise.
22588         * tests/test-ceill.c (ceill): Likewise.
22589         * tests/test-chown.c (chown): Likewise.
22590         * tests/test-dprintf-posix.c (dprintf): Likewise.
22591         * tests/test-dup2.c (dup2): Likewise.
22592         * tests/test-dup3.c (dup3): Likewise.
22593         * tests/test-duplocale.c (duplocale): Likewise.
22594         * tests/test-fchdir.c (fchdir): Likewise.
22595         * tests/test-fchownat.c (fchownat): Likewise.
22596         * tests/test-fcntl.c (fcntl): Likewise.
22597         * tests/test-fdopendir.c (fdopendir): Likewise.
22598         * tests/test-fflush.c (fflush): Likewise.
22599         * tests/test-flock.c (flock): Likewise.
22600         * tests/test-floorf1.c (floorf): Likewise.
22601         * tests/test-floorl.c (floorl): Likewise.
22602         * tests/test-fnmatch.c (fnmatch): Likewise.
22603         * tests/test-fopen.c (fopen): Likewise.
22604         * tests/test-fprintf-posix.c (fprintf): Likewise.
22605         * tests/test-freopen.c (freopen): Likewise.
22606         * tests/test-frexp.c (frexp): Likewise.
22607         * tests/test-frexpl.c (frexpl): Likewise.
22608         * tests/test-fseek.c (fseek): Likewise.
22609         * tests/test-fseeko.c (fseeko): Likewise.
22610         * tests/test-fstatat.c (fstatat): Likewise.
22611         * tests/test-fsync.c (fsync): Likewise.
22612         * tests/test-ftell.c (ftell): Likewise.
22613         * tests/test-ftello.c (ftello): Likewise.
22614         * tests/test-futimens.c (futimens): Likewise.
22615         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22616         (gai_strerror): Likewise.
22617         * tests/test-getcwd.c (getcwd): Likewise.
22618         * tests/test-getdelim.c (getdelim): Likewise.
22619         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22620         * tests/test-getgroups.c (getgroups): Likewise.
22621         * tests/test-gethostname.c (gethostname): Likewise.
22622         * tests/test-getline.c (getline): Likewise.
22623         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22624         Likewise.
22625         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22626         * tests/test-glob.c (glob, globfree): Likewise.
22627         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22628         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22629         * tests/test-inet_pton.c (inet_pton): Likewise.
22630         * tests/test-isblank.c (isblank): Likewise.
22631         * tests/test-lchown.c (lchown): Likewise.
22632         * tests/test-ldexpl.c (ldexpl): Likewise.
22633         * tests/test-link.c (link): Likewise.
22634         * tests/test-linkat.c (linkat): Likewise.
22635         * tests/test-lseek.c (lseek): Likewise.
22636         * tests/test-lstat.c (lstat): Likewise.
22637         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22638         * tests/test-mbsinit.c (mbsinit): Likewise.
22639         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22640         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22641         * tests/test-memchr.c (memchr): Likewise.
22642         * tests/test-memcmp.c (memcmp): Likewise.
22643         * tests/test-memmem.c (memmem): Likewise.
22644         * tests/test-memrchr.c (memrchr): Likewise.
22645         * tests/test-mkdir.c (mkdir): Likewise.
22646         * tests/test-mkdirat.c (mkdirat): Likewise.
22647         * tests/test-mkfifo.c (mkfifo): Likewise.
22648         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22649         * tests/test-mknod.c (mknod): Likewise.
22650         * tests/test-nanosleep.c (nanosleep): Likewise.
22651         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22652         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22653         Likewise.
22654         * tests/test-open.c (open): Likewise.
22655         * tests/test-openat.c (openat): Likewise.
22656         * tests/test-perror.c (perror): Likewise.
22657         * tests/test-pipe2.c (pipe2): Likewise.
22658         * tests/test-poll.c (poll): Likewise.
22659         * tests/test-popen.c (popen, pclose): Likewise.
22660         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22661         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22662         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22663         (posix_spawn_file_actions_destroy)
22664         (posix_spawn_file_actions_addclose)
22665         (posix_spawn_file_actions_addopen)
22666         (posix_spawn_file_actions_adddup2): Likewise.
22667         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22668         * tests/test-pread.c (pread): Likewise.
22669         * tests/test-printf-posix.c (printf): Likewise.
22670         * tests/test-pty.c (openpty, forkpty): Likewise.
22671         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22672         (random_r): Likewise.
22673         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22674         * tests/test-readlink.c (readlink): Likewise.
22675         * tests/test-remove.c (remove): Likewise.
22676         * tests/test-rename.c (rename): Likewise.
22677         * tests/test-renameat.c (renameat): Likewise.
22678         * tests/test-rmdir.c (rmdir): Likewise.
22679         * tests/test-round1.c (round): Likewise.
22680         * tests/test-roundf1.c (roundf): Likewise.
22681         * tests/test-roundl.c (roundl): Likewise.
22682         * tests/test-setenv.c (setenv): Likewise.
22683         * tests/test-sigaction.c (sigaction): Likewise.
22684         * tests/test-sleep.c (sleep): Likewise.
22685         * tests/test-snprintf.c (snprintf): Likewise.
22686         * tests/test-sprintf-posix.c (sprintf): Likewise.
22687         * tests/test-stat.c (stat): Likewise.
22688         * tests/test-stpncpy.c (stpncpy): Likewise.
22689         * tests/test-strcasestr.c (strcasestr): Likewise.
22690         * tests/test-strchrnul.c (strchrnul): Likewise.
22691         * tests/test-strerror.c (strerror): Likewise.
22692         * tests/test-strsignal.c (strsignal): Likewise.
22693         * tests/test-strstr.c (strstr): Likewise.
22694         * tests/test-strtod.c (strtod): Likewise.
22695         * tests/test-strverscmp.c (strverscmp): Likewise.
22696         * tests/test-symlink.c (symlink): Likewise.
22697         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22698         * tests/test-times.c (times): Likewise.
22699         * tests/test-trunc1.c (trunc): Likewise.
22700         * tests/test-truncf1.c (truncf): Likewise.
22701         * tests/test-truncl.c (truncl): Likewise.
22702         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22703         Likewise.
22704         * tests/test-uname.c (uname): Likewise.
22705         * tests/test-unlink.c (unlink): Likewise.
22706         * tests/test-unlinkat.c (unlinkat): Likewise.
22707         * tests/test-unsetenv.c (unsetenv): Likewise.
22708         * tests/test-usleep.c (usleep): Likewise.
22709         * tests/test-utimensat.c (utimensat): Likewise.
22710         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22711         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22712         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22713         * tests/test-vprintf-posix.c (vprintf): Likewise.
22714         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22715         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22716         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22717         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22718         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22719         * tests/test-wcwidth.c (wcwidth): Likewise.
22720
22721         build: pull in conditional headers during GNULIB_POSIXCHECK
22722         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22723         definitions from any conditionally-included headers.
22724         * lib/stdlib.in.h (includes): Likewise.
22725         * lib/unistd.in.h (includes): Likewise.
22726
22727 2009-12-24  Bruno Haible  <bruno@clisp.org>
22728
22729         * tests/test-argv-iter.c: Include header file being tested immediately
22730         after config.h.
22731         * tests/test-base64.c: Likewise.
22732         * tests/test-flock.c: Likewise.
22733         * tests/test-fsync.c: Likewise.
22734         * tests/test-getdate.c: Likewise.
22735         * tests/test-getndelim2.c: Likewise.
22736         * tests/test-isfinite.c: Likewise.
22737         * tests/test-isinf.c: Likewise.
22738         * tests/test-strerror.c: Likewise.
22739         * tests/test-strsignal.c: Likewise.
22740
22741 2009-12-23  Eric Blake  <ebb9@byu.net>
22742
22743         unistd: work around cygwin bug
22744         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22745         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22747
22748 2009-12-23  Bruno Haible  <bruno@clisp.org>
22749
22750         localename: More tests.
22751         * tests/test-localename.c (SIZEOF): New macro.
22752         (categories): New variable.
22753         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22754         test_locale_name_default): Add test w.r.t. thread locale.
22755         (test_locale_name_thread): New function.
22756         (main): Invoke it.
22757
22758         localename: Make aware of thread locale.
22759         * lib/localename.h (gl_locale_name_thread): New declaration.
22760         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22761         behaviour with respect to thread locale.
22762         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22763         <langinfo.h>, glthread/lock.h.
22764         (SIZE_BITS): New macro.
22765         (string_hash): New function.
22766         (struct hash_node): New type.
22767         (HASH_TABLE_SIZE): New macro.
22768         (struniq_hash_table, struniq_lock): New variables.
22769         (struniq): New function.
22770         (gl_locale_name_thread): New function.
22771         (gl_locale_name): Invoke it.
22772         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22773         * modules/localename (Depends-on): Add lock.
22774         Reported by Mike Gran <spk121@yahoo.com>.
22775
22776 2009-12-23  Eric Blake  <ebb9@byu.net>
22777
22778         va-args: new module
22779         * modules/va-args: New file.
22780         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22781         * MODULES.html.sh (Core language properties): Mention it.
22782
22783         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22784         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22785         named alias for __attribute__((__unused__)).
22786         * lib/chown.c: Update client.
22787         * lib/fchmodat.c: Likewise.
22788         * lib/fts.c: Likewise.
22789         * lib/getdate.y: Likewise.
22790         * lib/getgroups.c: Likewise.
22791         * lib/getopt.c: Likewise.
22792         * lib/getugroups.c: Likewise.
22793         * lib/mkdir.c: Likewise.
22794         * lib/mkfifo.c: Likewise.
22795         * lib/mkfifoat.c: Likewise.
22796         * lib/mknod.c: Likewise.
22797         * lib/mknodat.c: Likewise.
22798         * lib/readlink.c: Likewise.
22799         * lib/se-context.in.h: Likewise.
22800         * lib/se-selinux.in.h: Likewise.
22801         * lib/sockets.c: Likewise.
22802         * lib/symlink.c: Likewise.
22803         * lib/symlinkat.c: Likewise.
22804         * lib/unicodeio.c: Likewise.
22805         * lib/unistr.h: Likewise.
22806         * tests/test-areadlink.c: Likewise.
22807         * tests/test-areadlinkat.c: Likewise.
22808         * tests/test-filenamecat.c: Likewise.
22809         * tests/test-fseeko.c: Likewise.
22810         * tests/test-ftello.c: Likewise.
22811         * tests/test-getdate.c: Likewise.
22812         * tests/test-getgroups.c: Likewise.
22813         * tests/test-gethostname.c: Likewise.
22814         * tests/test-quotearg.c: Likewise.
22815         * tests/test-version-etc.c: Likewise.
22816         * tests/test-xalloc-die.c: Likewise.
22817         * tests/test-xfprintf-posix.c: Likewise.
22818         * tests/test-xprintf-posix.c: Likewise.
22819         * tests/test-xvasprintf.c: Likewise.
22820
22821         tests: avoid compiler warnings
22822         * tests/test-fcntl.c (main): Delete unused parameters.
22823         * tests/test-freopen-safer.c (main): Likewise.
22824         * tests/test-xalloc-die.c (main): Mark unused parameters.
22825         * tests/test-fseeko.c (main): Likewise.
22826         * tests/test-ftello.c (main): Likewise.
22827         * tests/test-nanosleep.c (main): Avoid declaration warning.
22828         * tests/test-sleep.c (main): Likewise.
22829         * tests/test-unsetenv.c (main): Silence warning about string
22830         literal.
22831         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22832
22833 2009-12-23  Bruno Haible  <bruno@clisp.org>
22834
22835         * tests/test-localename.c (test_locale_name): New function, extracted
22836         from main. Also test mixed situations.
22837         (test_locale_name_posix, test_locale_name_environ,
22838         test_locale_name_default): New functions.
22839         (main): Invoke them all.
22840         * modules/localename-tests (configure.ac): Test for newlocale.
22841
22842 2009-12-23  Bruno Haible  <bruno@clisp.org>
22843
22844         unistd: Ensure getcwd gets declared before being overridden.
22845         * lib/unistd.in.h: Conditionally include <io.h>.
22846
22847 2009-12-22  Bruno Haible  <bruno@clisp.org>
22848
22849         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22850         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22851         (gl_WCHAR_H): Invoke it.
22852         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22853         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22854         Reported by Karl Berry <karl@freefriends.org>.
22855
22856 2009-12-22  Eric Blake  <ebb9@byu.net>
22857
22858         math, unistd: avoid redundant includes
22859         * lib/math.in.h (isnan): No need to re-include <math.h>.
22860         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22861
22862         getsubopt: work around cygwin bug
22863         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22864         avoid conflicting with system getsubopt.
22865         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22866         bug.
22867
22868         getopt: synchronize from glibc
22869         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22870         parameter order.  Adjust all callers.
22871         (_getopt_internal_r, main): Adjust quoting in error messages.
22872         Drop considerations for outdated POSIX 1003.2 error message.
22873         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22874         callers.
22875         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22876
22877         test-getopt: test stderr behavior
22878         * modules/getopt-posix-tests (Depends-on): Add dup2.
22879         * tests/test-getopt.c (ASSERT): Avoid stderr.
22880         (main): Move stderr to a temporary file.
22881         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22882         Instead, add parameter to inform caller if output occurred.
22883         (test_getopt): Adjust all existing tests to expect silence, and
22884         add new tests of leading ":".
22885         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22886         glibc shortcomings with leading "-:" or "+:" in optstring.
22887         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22888         Likewise.
22889         * doc/posix-functions/getopt.texi (getopt): Likewise.
22890
22891         test-getopt: enhance test
22892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22893         supports optind=0.
22894         * tests/test-getopt.c (OPTIND_MIN): Move...
22895         * tests/test-getopt.h (OPTIND_MIN): ...here.
22896         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22897         Require that optind=0 works, since modern BSD supports it in
22898         addition to optreset, and since coreutils expects it.
22899         (test_getopt_long_only): New test.
22900         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22901         glibc shortcomings with 'W;', and enforcement of optind=0.
22902         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22903         Likewise.
22904
22905 2009-12-21  Bruno Haible  <bruno@clisp.org>
22906
22907         localename: Improvements for MacOS X and Cygwin.
22908         * lib/localename.h (gl_locale_name_environ): New declaration.
22909         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22910         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22911         (gl_locale_name_posix): Invoke it.
22912         (gl_locale_name_default): Add comments. Use Windows native API also on
22913         Cygwin.
22914
22915 2009-12-21  Bruno Haible  <bruno@clisp.org>
22916
22917         Update list of Win32 locale ids.
22918         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22919         (LANG_SAMI): Renamed from LANG_SAAMI.
22920         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22921         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22922         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22923         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22924         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22925         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22926         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22927         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22928         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22929         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22930         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22931         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22932         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22933         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22934         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22935         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22936         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22937         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22938         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22939         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22940         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22941         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22942         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22943         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22944         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22945         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22946         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22947         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22948         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22949         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22950         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22951         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22952         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22953         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22954         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22955         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22956         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22957         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22958         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22959         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22960         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22961         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22962         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22963         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22964         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22965         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22966         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22967         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22968         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22969         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22970         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22971         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22972         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22973         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22974         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22975         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22976         Add more languages and countries for Sami, Sorbian. Add more countries
22977         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22978         for Pashto. Change country for Syriac, Tswana.
22979
22980 2009-12-21  Eric Blake  <ebb9@byu.net>
22981
22982         test-utimens: avoid spurious failure
22983         * tests/test-chown.h (nap): Factor...
22984         * tests/nap.h: ...into new file.
22985         * tests/test-lchown.h (nap): Avoid duplication.
22986         * tests/test-utimens-common.h (nap): Use shared implementation,
22987         necessary on file systems with 1-second resolution.
22988         * modules/chown-tests (Files): Include new file.
22989         * modules/fdutimensat-tests (Files): Likewise.
22990         * modules/futimens-tests (Files): Likewise.
22991         * modules/lchown-tests (Files): Likewise.
22992         * modules/openat-tests (Files): Likewise.
22993         * modules/utimens-tests (Files): Likewise.
22994         * modules/utimensat-tests (Files): Likewise.
22995
22996 2009-12-19  Eric Blake  <ebb9@byu.net>
22997
22998         futimens, utimensat: work around Linux bug
22999         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23000         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23001         * lib/utimensat.c (rpl_utimensat): Work around it.
23002         * lib/futimens.c (rpl_futimens): Adjust comment.
23003
23004         utimens: work around Linux ctime bug
23005         * lib/utimens.c (detect_ctime_bug): New helper function.
23006         (update_timespec): Differentiate between workaround needed for
23007         this bug vs. what is needed for systems that lack utimensat.
23008         (fdutimens, lutimens): Work around bug.
23009
23010         utimens: check for ctime update
23011         * tests/test-utimens-common.h (check_ctime): Define.
23012         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23013         * tests/test-futimens.h (test_futimens): Likewise.
23014         * tests/test-lutimens.h (test_lutimens): Likewise.
23015         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23016         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23017
23018 2009-12-19  Bruno Haible  <bruno@clisp.org>
23019
23020         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23021         * tests/test-dprintf-posix2.sh: New file.
23022         * tests/test-dprintf-posix2.c: New file.
23023         * modules/dprintf-posix-tests (Files): Add them.
23024         (configure.ac): Check for getrlimit and setrlimit.
23025         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23026
23027 2009-12-19  Bruno Haible  <bruno@clisp.org>
23028
23029         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23030         * tests/test-fprintf-posix3.sh: New file.
23031         * tests/test-fprintf-posix3.c: New file.
23032         * modules/fprintf-posix-tests (Files): Add them.
23033         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23034
23035 2009-12-19  Eric Blake  <ebb9@byu.net>
23036
23037         dirfd: fix prototype
23038         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23039         * lib/dirfd.c (dirfd): Likewise.
23040
23041         canonicalize: reduce memory usage
23042         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23043         allocation to size.
23044         Reported by Solar Designer <solar@openwall.com>.
23045
23046 2009-12-19  Bruno Haible  <bruno@clisp.org>
23047
23048         New module attribute 'Applicability'.
23049         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
23050         * gnulib-tool: New option --extract-applicability.
23051         (func_usage): Document it.
23052         (sed_extract_prog): Recognize it.
23053         (func_get_applicability): New function.
23054         (func_import): Generalize handling of 'link-warning' module.
23055         * modules/link-warning (Applicability): New section.
23056         * modules/arg-nonnull (Applicability): New section.
23057         Repoted by Simon Josefsson <simon@josefsson.org>.
23058
23059 2009-12-19  Bruno Haible  <bruno@clisp.org>
23060
23061         fflush: tweak
23062         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23063         * lib/fseeko.c (rpl_fseeko): Likewise.
23064
23065 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23066
23067         * lib/gl_list.h: Fix typo in comment.
23068
23069 2009-12-16  Eric Blake  <ebb9@byu.net>
23070
23071         fcntl: use to simplify other modules
23072         * modules/cloexec (Depends-on): Add fcntl.
23073         * modules/fchdir (Depends-on): Likewise.
23074         * modules/fd-safer-flag (Depends-on): Likewise.
23075         * modules/unistd-safer (Depends-on): Likewise.
23076         * modules/dup3 (configure.ac): Set module indicator.
23077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23078         missing.
23079         * lib/fchdir.c (_gl_register_dup): Fix comment.
23080         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23081         * lib/dup-safer.c (dup_safer): Likewise.
23082         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23083         * lib/dup3.c (dup3): Likewise.
23084         * tests/test-fchdir.c (main): Enhance test.
23085         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23086
23087         fcntl: port portions of fcntl to mingw
23088         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23089         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23090         replacement for mingw.
23091         * modules/fcntl (Description): Update.
23092         (Depends-on): Add dup2.
23093         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23094         * modules/fcntl-h (Makefile.am): Substitute it.
23095         * lib/fcntl.in.h (fcntl): Update declaration.
23096         (F_DUPFD, F_GETFD): New macros, when needed.
23097         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23098         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23099         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23100         we now guarantee.
23101
23102         fcntl: work around cygwin bug in F_DUPFD
23103         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23104         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23105         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23106         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23107         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23108
23109         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23110         * modules/fcntl (Files): List new files.
23111         (configure.ac): Run a test.
23112         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23113         * lib/fcntl.c (rpl_fcntl): Likewise.
23114         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23115         (gl_FCNTL_H): Always replace fcntl.h.
23116         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23117         * lib/fcntl.in.h (fcntl): Declare replacement.
23118         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23119         needed, plus a witness.
23120         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23121         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23122         * tests/test-fcntl.c: New file.
23123         * modules/fcntl-tests: Likewise.
23124
23125         binary-io: avoid potential compilation warning
23126         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23127         directives.
23128
23129         fflush: avoid compilation error on NetBSD
23130         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23131         between off_t and fpos_t, since the latter is sometimes a struct.
23132         * lib/fseeko.c (rpl_fseeko): Likewise.
23133         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23134
23135 2009-12-15  Eric Blake  <ebb9@byu.net>
23136
23137         fcntl-h, stdio, sys_ioctl: fix declarations
23138         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23139         function must not take arguments.
23140         * lib/sys_ioctl.in.h (ioctl): Likewise.
23141         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23142         (open): Add a link warning.
23143
23144 2009-12-15  Jim Meyering  <meyering@redhat.com>
23145
23146         areadlink, areadlink-with-size: relax license to LGPLv2+
23147         * modules/areadlink (License): Relax to LGPLv2+.
23148         * modules/areadlink-with-size (License): Likewise.
23149
23150 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23151             Bruno Haible  <bruno@clisp.org>
23152
23153         *printf: Fix memory leak.
23154         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23155         * lib/vfprintf.c (vfprintf): Likewise.
23156         * lib/dprintf.c (dprintf): Likewise.
23157         * lib/vdprintf.c (vdprintf): Likewise.
23158
23159 2009-12-14  Eric Blake  <ebb9@byu.net>
23160
23161         accept4: adjust module dependencies
23162         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23163
23164         utimens: one more try at avoiding compiler warning
23165         * lib/utimens.c (lutimens): Lower scope of result.
23166
23167 2009-12-13  Bruno Haible  <bruno@clisp.org>
23168
23169         Move the malloc checking from module 'list' to new module 'xlist'.
23170         * modules/xlist: New file.
23171         * lib/gl_xlist.h: New file.
23172         * lib/gl_xlist.c: New file.
23173         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23174         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23175         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23176         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23177         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23178         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23179         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23180         gl_sortedlist_nx_add): New declarations.
23181         (struct gl_list_implementation): Rename and change methods accordingly.
23182         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23183         (gl_list_nx_create): Renamed from gl_list_create.
23184         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23185         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23186         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23187         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23188         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23189         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23190         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23191         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23192         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23193         gl_list_create_empty.
23194         (gl_list_nx_create): Renamed from gl_list_create.
23195         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23196         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23197         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23198         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23199         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23200         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23201         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23202         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23203         * lib/gl_array_list.c: Don't include xalloc.h.
23204         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23205         NULL upon out-of-memory.
23206         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23207         out-of-memory.
23208         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23209         Change return type to 'int'.
23210         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23211         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23212         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23213         upon out-of-memory.
23214         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23215         upon out-of-memory.
23216         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23217         upon out-of-memory.
23218         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23219         upon out-of-memory.
23220         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23221         out-of-memory.
23222         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23223         Update.
23224         (gl_array_list_implementation): Update.
23225         * lib/gl_carray_list.c: Don't include xalloc.h.
23226         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23227         Return NULL upon out-of-memory.
23228         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23229         out-of-memory.
23230         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23231         Change return type to 'int'.
23232         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23233         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23234         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23235         upon out-of-memory.
23236         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23237         upon out-of-memory.
23238         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23239         out-of-memory.
23240         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23241         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23242         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23243         Update.
23244         (gl_carray_list_implementation): Update.
23245         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23246         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23247         gl_linked_create_empty. Return NULL upon out-of-memory.
23248         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23249         out-of-memory.
23250         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23251         Change return type to 'int'. Return -1 upon out-of-memory.
23252         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23253         out-of-memory.
23254         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23255         upon out-of-memory.
23256         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23257         upon out-of-memory.
23258         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23259         NULL upon out-of-memory.
23260         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23261         upon out-of-memory.
23262         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23263         out-of-memory.
23264         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23265         Update.
23266         * lib/gl_linked_list.c: Don't include xalloc.h.
23267         (gl_linked_list_implementation): Update.
23268         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23269         (add_to_bucket): Change return type to 'int'.
23270         (gl_linkedhash_list_implementation): Update.
23271         * lib/gl_anytree_list1.h (free_subtree): New function.
23272         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23273         gl_tree_create_empty. Return NULL upon out-of-memory.
23274         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23275         Change return type to 'int'. Return -1 upon out-of-memory.
23276         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23277         out-of-memory.
23278         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23279         (gl_tree_remove_node): New function, moved here from
23280         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23281         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23282         Update.
23283         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23284         malloc, not xmalloc. Return NULL upon out-of-memory.
23285         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23286         out-of-memory.
23287         (gl_tree_remove_node_from_tree): New function, extracted from
23288         gl_tree_remove_node.
23289         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23290         upon out-of-memory.
23291         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23292         out-of-memory.
23293         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23294         upon out-of-memory.
23295         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23296         upon out-of-memory.
23297         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23298         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23299         not xmalloc. Return NULL upon out-of-memory.
23300         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23301         out-of-memory.
23302         (gl_tree_remove_node_from_tree): New function, extracted from
23303         gl_tree_remove_node.
23304         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23305         upon out-of-memory.
23306         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23307         out-of-memory.
23308         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23309         upon out-of-memory.
23310         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23311         upon out-of-memory.
23312         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23313         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23314         gl_anytree_list1.h before gl_anyavltree_list2.h.
23315         (gl_avltree_list_implementation): Update.
23316         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23317         gl_anytree_list1.h before gl_anyavltree_list2.h.
23318         (gl_rbtree_list_implementation): Update.
23319         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23320         Change return type to 'int'. Return -1 upon out-of-memory. Use
23321         __builtin_expect.
23322         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23323         (gl_avltreehash_list_implementation): Update.
23324         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23325         (gl_rbtreehash_list_implementation): Update.
23326         * modules/array-list (Depends-on): Remove xalloc.
23327         * modules/carray-list (Depends-on): Likewise.
23328         * modules/linked-list (Depends-on): Likewise.
23329         * modules/linkedhash-list (Depends-on): Likewise.
23330         * modules/avltree-list (Depends-on): Likewise.
23331         * modules/rbtree-list (Depends-on): Likewise.
23332         * modules/avltreehash-list (Depends-on): Likewise.
23333         * modules/rbtreehash-list (Depends-on): Likewise.
23334
23335         * modules/xsublist: New file.
23336         * lib/gl_xsublist.h: New file.
23337         * lib/gl_xsublist.c: New file.
23338         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23339         (gl_sublist_nx_create): New declaration.
23340         * lib/gl_sublist.c: Don't include xalloc.h.
23341         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23342         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23343         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23344         Change return type to 'int'. Return -1 upon out-of-memory.
23345         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23346         upon out-of-memory.
23347         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23348         NULL upon out-of-memory.
23349         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23350         upon out-of-memory.
23351         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23352         NULL upon out-of-memory.
23353         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23354         NULL upon out-of-memory.
23355         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23356         upon out-of-memory.
23357         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23358         (gl_sublist_list_implementation): Update.
23359         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23360         upon out-of-memory.
23361         * modules/sublist (Depends-on): Remove xalloc.
23362
23363         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23364         * tests/test-carray_list.c: Likewise.
23365         * tests/test-linked_list.c: Likewise.
23366         * tests/test-linkedhash_list.c: Likewise.
23367         * tests/test-avltree_list.c: Likewise.
23368         * tests/test-rbtree_list.c: Likewise.
23369         * tests/test-avltreehash_list.c: Likewise.
23370         * tests/test-rbtreehash_list.c: Likewise.
23371         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23372         * modules/carray-list-tests (Makefile.am): Likewise.
23373         * modules/linked-list-tests (Makefile.am): Likewise.
23374         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23375         * modules/avltree-list-tests (Makefile.am): Likewise.
23376         * modules/rbtree-list-tests (Makefile.am): Likewise.
23377         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23378         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23379
23380         * NEWS: Mention the changes.
23381
23382         * lib/clean-temp.c: Include gl_xlist.h.
23383         * modules/clean-temp (Depends-on): Add xlist.
23384
23385         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23386         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23387
23388         * tests/test-array_oset.c: Include gl_xlist.h.
23389         * modules/array-oset-tests (Depends-on): Add xlist.
23390
23391         Reported by José E. Marchesi <jemarch@gnu.org>.
23392
23393 2009-12-13  Bruno Haible  <bruno@clisp.org>
23394
23395         Move the malloc checking from module 'oset' to new module 'xoset'.
23396         * modules/xoset: New file.
23397         * lib/gl_xoset.h: New file.
23398         * lib/gl_xoset.c: New file.
23399         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23400         declarations.
23401         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23402         (struct gl_oset_implementation): Rename and change methods accordingly.
23403         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23404         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23405         'int'. Mark as __warn_unused_result__.
23406         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23407         gl_oset_create_empty.
23408         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23409         'int'.
23410         * lib/gl_array_oset.c: Don't include xalloc.h.
23411         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23412         malloc, not xmalloc.
23413         (grow): Change return type to 'int'. Don't call xalloc_die.
23414         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23415         to 'int'.
23416         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23417         'int'.
23418         (gl_array_oset_implementation): Update.
23419         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23420         gl_tree_create_empty.
23421         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23422         'int'.
23423         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23424         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23425         xmalloc.
23426         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23427         not xmalloc.
23428         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23429         xmalloc.
23430         (gl_avltree_oset_implementation): Update.
23431         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23432         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23433         xmalloc.
23434         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23435         not xmalloc.
23436         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23437         xmalloc.
23438         (gl_rbtree_oset_implementation): Update.
23439         * modules/array-oset (Depends-on): Remove xalloc.
23440         * modules/avltree-oset (Depends-on): Likewise.
23441         * modules/rbtree-oset (Depends-on): Likewise.
23442         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23443         * tests/test-avltree_oset.c: Likewise.
23444         * tests/test-rbtree_oset.c: Likewise.
23445         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23446         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23447         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23448         * NEWS: Mention the change.
23449
23450 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23451
23452         maint.mk: allow a project to override release-prep commands
23453         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23454         commands into a new rule.
23455         (release-prep): New rule.
23456         (release-prep-hook): New overridable variable.
23457
23458 2009-12-13  Bruno Haible  <bruno@clisp.org>
23459
23460         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23461
23462 2009-12-13  Jim Meyering  <meyering@redhat.com>
23463
23464         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23465         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23466
23467 2009-12-12  Bruno Haible  <bruno@clisp.org>
23468
23469         duplocale: Tweak.
23470         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23471
23472 2009-12-12  Karl Berry  <karl@gnu.org>
23473
23474         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23475
23476 2009-12-12  Bruno Haible  <bruno@clisp.org>
23477
23478         * m4/po.m4: Undo incorrect untabification.
23479
23480 2009-12-12  Bruno Haible  <bruno@clisp.org>
23481
23482         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23483         * modules/c-strtod (Depends-on): Add locale.
23484         * modules/c-strtold (Depends-on): Likewise.
23485
23486 2009-12-12  Bruno Haible  <bruno@clisp.org>
23487
23488         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23489
23490 2009-12-11  Eric Blake  <ebb9@byu.net>
23491
23492         setenv: relax requirement in light of POSIX ruling
23493         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23494         not NULL.
23495         * tests/test-setenv.c (main): Relax test.
23496         * tests/test-unsetenv.c (main): Likewise.
23497         * doc/posix-functions/setenv.texi (setenv): Document this.
23498         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23499
23500 2009-12-11  Bruno Haible  <bruno@clisp.org>
23501
23502         New module 'fd-safer-flag'.
23503         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23504         * lib/dup-safer.c (dup_safer_flag): Remove function.
23505         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23506         * lib/fd-safer.c (fd_safer_flag): Remove function.
23507         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23508         * modules/cloexec (configure.ac): Drop indicator macro.
23509         * modules/fd-safer-flag: New file.
23510         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23511         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23512         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23513
23514 2009-12-11  Bruno Haible  <bruno@clisp.org>
23515
23516         Tests for module 'nl_langinfo'.
23517         * modules/nl_langinfo-tests: New file.
23518         * tests/test-nl_langinfo.sh: New file.
23519         * tests/test-nl_langinfo.c: New file.
23520
23521         New module 'nl_langinfo'.
23522         * lib/nl_langinfo.c: New file.
23523         * m4/nl_langinfo.m4: New file.
23524         * modules/nl_langinfo: New file.
23525         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23526
23527 2009-12-11  Bruno Haible  <bruno@clisp.org>
23528
23529         Tests for module 'langinfo'.
23530         * modules/langinfo-tests: New file.
23531         * tests/test-langinfo.c: New file.
23532
23533         New module 'langinfo'.
23534         * lib/langinfo.in.h: New file.
23535         * m4/langinfo_h.m4: New file.
23536         * modules/langinfo: New file.
23537         * doc/posix-headers/langinfo.texi: Mention the new module.
23538
23539 2009-12-11  Bruno Haible  <bruno@clisp.org>
23540
23541         * lib/config.charset: Untabify.
23542
23543 2009-12-11  Bruno Haible  <bruno@clisp.org>
23544
23545         * modules/unistd-safer (configure.ac): Drop indicator macro.
23546
23547 2009-12-11  Bruno Haible  <bruno@clisp.org>
23548
23549         Move pipe2-safer code to its own file.
23550         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23551         * lib/pipe-safer.c (pipe2_safer): Remove function.
23552         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23553         (Makefile.am): Add it to lib_SOURCES.
23554
23555 2009-12-10  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23558
23559 2009-12-10  Bruno Haible  <bruno@clisp.org>
23560
23561         Declare which arguments expect non-NULL values, for GCC and clang.
23562         * build-aux/arg-nonnull.h: New file.
23563         * modules/arg-nonnull: New file.
23564         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23565         (inet_ntop, inet_pton): Use it.
23566         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23567         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23568         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23569         (open, openat): Use it.
23570         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23571         (fnmatch): Use it.
23572         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23573         (getopt, getopt_long, getopt_long_only): Use it.
23574         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23575         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23576         Use it.
23577         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23578         (iconv_open): Use it.
23579         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23580         (strtoimax, strtoumax): Use it.
23581         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23582         (duplocale): Use it.
23583         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23584         (frexp, frexpl): Use it.
23585         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23586         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23587         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23588         (tsearch, tfind, tdelete, twalk): Use it.
23589         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23590         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23591         sigpending): Use it.
23592         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23593         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23594         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23595         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23596         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23597         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23598         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23599         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23600         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23601         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23602         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23603         Use it.
23604         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23605         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23606         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23607         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23608         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23609         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23610         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23611         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23612         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23613         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23614         strtoull, unsetenv): Use it.
23615         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23616         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23617         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23618         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23619         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23620         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23621         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23622         (strcasecmp, strncasecmp): Use it.
23623         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23624         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23625         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23626         rpl_setsockopt): Use it.
23627         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23628         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23629         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23630         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23631         (gettimeofday): Use it.
23632         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23633         (times): Use it.
23634         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23635         (uname): Use it.
23636         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23637         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23638         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23639         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23640         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23641         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23642         unlinkat, write): Use it.
23643         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23644         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23645         * lib/argv-iter.h: Include arg-nonnull.h.
23646         (_ATTRIBUTE_NONNULL_): Remove macro.
23647         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23648         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23649         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23650         optimization.
23651         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23652         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23653         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23654         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23655         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23656         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23657         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23658         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23659         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23660         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23661         * modules/dirent (Depends-on): Add arg-nonnull.
23662         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23663         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23664         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23665         * modules/fnmatch (Depends-on): Add arg-nonnull.
23666         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23667         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23668         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23669         * modules/glob (Depends-on): Add arg-nonnull.
23670         (Makefile.am): Insert arg-nonnull.h into glob.h.
23671         * modules/iconv_open (Depends-on): Add arg-nonnull.
23672         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23673         * modules/inttypes (Depends-on): Add arg-nonnull.
23674         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23675         * modules/locale (Depends-on): Add arg-nonnull.
23676         (Makefile.am): Insert arg-nonnull.h into locale.h.
23677         * modules/math (Depends-on): Add arg-nonnull.
23678         (Makefile.am): Insert arg-nonnull.h into math.h.
23679         * modules/netdb (Depends-on): Add arg-nonnull.
23680         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23681         * modules/search (Depends-on): Add arg-nonnull.
23682         (Makefile.am): Insert arg-nonnull.h into search.h.
23683         * modules/signal (Depends-on): Add arg-nonnull.
23684         (Makefile.am): Insert arg-nonnull.h into signal.h.
23685         * modules/spawn (Depends-on): Add arg-nonnull.
23686         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23687         * modules/stdio (Depends-on): Add arg-nonnull.
23688         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23689         * modules/stdlib (Depends-on): Add arg-nonnull.
23690         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23691         * modules/string (Depends-on): Add arg-nonnull.
23692         (Makefile.am): Insert arg-nonnull.h into string.h.
23693         * modules/strings (Depends-on): Add arg-nonnull.
23694         (Makefile.am): Insert arg-nonnull.h into strings.h.
23695         * modules/sys_socket (Depends-on): Add arg-nonnull.
23696         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23697         * modules/sys_stat (Depends-on): Add arg-nonnull.
23698         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23699         * modules/sys_time (Depends-on): Add arg-nonnull.
23700         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23701         * modules/sys_times (Depends-on): Add arg-nonnull.
23702         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23703         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23704         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23705         * modules/time (Depends-on): Add arg-nonnull.
23706         (Makefile.am): Insert arg-nonnull.h into time.h.
23707         * modules/unistd (Depends-on): Add arg-nonnull.
23708         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23709         * modules/wchar (Depends-on): Add arg-nonnull.
23710         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23711         * modules/argv-iter (Depends-on): Add arg-nonnull.
23712         * tests/test-canonicalize.c (null_ptr): New function.
23713         (main): Use it.
23714         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23715         (main): Use it.
23716         * tests/test-memmem.c (null_ptr): New function.
23717         (main): Use it.
23718         Reported by Jim Meyering.
23719
23720 2009-12-10  Bruno Haible  <bruno@clisp.org>
23721
23722         Use spaces for indentation, not tabs.
23723         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23724         * m4/*.m4: Untabify.
23725         * build-aux/*.h: Untabify.
23726         * tests/**/*.[hc]: Untabify.
23727         * README: New section "Indent with spaces, not TABs", based on
23728         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23729         * NEWS: Mention the change.
23730
23731 2009-12-10  Bruno Haible  <bruno@clisp.org>
23732
23733         pty test: Fix link error.
23734         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23735         test_pty_LDADD.
23736
23737 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23738
23739         * modules/pty: New file.
23740         * modules/pty-tests: New file.
23741         * m4/pty.m4: New file.
23742         * tests/test-pty.c: New file.
23743         * doc/glibc-headers/pty.texi: Modified.
23744         * doc/glibc-functions/forkpty.texi: Modified.
23745         * doc/glibc-functions/openpty.texi: Modified.
23746
23747 2009-12-10  Bruno Haible  <bruno@clisp.org>
23748
23749         Avoid syntax error in C++ mode.
23750         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23751
23752 2009-12-10  Bruno Haible  <bruno@clisp.org>
23753
23754         Use sed with option -e.
23755         * gnulib-tool (func_version, func_emit_copyright_notice,
23756         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23757         option -e to sed.
23758         * modules/link-warning (Makefile.am): Likewise.
23759
23760 2009-12-10  Jim Meyering  <meyering@redhat.com>
23761
23762         mgetgroups: do not write bytes beyond end of malloc'd buffer
23763         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23764         username, we call getgroups with a one-element-shorter buffer,
23765         but still told it the length was original, max_n_groups.
23766
23767 2009-12-09  Eric Blake  <ebb9@byu.net>
23768
23769         cloexec: relax license
23770         * modules/cloexec (Maintainer): Add myself.
23771         (License): Use LGPL, not GPL.
23772
23773         link-warning: optimize generation
23774         * modules/link-warning (Makefile.am): Reduce process usage.
23775
23776 2009-12-09  Bruno Haible  <bruno@clisp.org>
23777
23778         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23779         workaround was added on 2009-11-17.
23780
23781 2009-12-09  Jim Meyering  <meyering@redhat.com>
23782             Bruno Haible  <bruno@clisp.org>
23783
23784         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23785         * modules/link-warning (Makefile.am): Make the comment-removing sed
23786         command more robust in the face of bootstrap-prepended comment lines.
23787
23788 2009-12-09  Bruno Haible  <bruno@clisp.org>
23789
23790         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23791         most one group.
23792
23793 2009-12-09  Simon Josefsson <simon@josefsson.org>
23794             Bruno Haible  <bruno@clisp.org>
23795
23796         * build-aux/link-warning.h: Add copyright notice.
23797         * modules/link-warning (Makefile.am): Generate link-warning.h from
23798         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23799         * NEWS: Mention change in link-warning module.
23800         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23801         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23802         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23803         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23804         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23805         * modules/math (Makefile.am): Add dependency to math.h.
23806         * modules/search (Makefile.am): Add dependency to search.h.
23807         * modules/signal (Makefile.am): Add dependency to signal.h.
23808         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23809         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23810         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23811         * modules/string (Makefile.am): Add dependency to string.h.
23812         * modules/strings (Makefile.am): Add dependency to strings.h.
23813         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23814         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23815         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23816         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23817         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23818         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23819         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23820         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23821         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23822
23823 2009-12-09  Bruno Haible  <bruno@clisp.org>
23824
23825         fchdir: Optimize away rpl_fstat when possible.
23826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23827         REPLACE_OPEN_DIRECTORY.
23828         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23829
23830 2009-12-09  Bruno Haible  <bruno@clisp.org>
23831
23832         * lib/fchdir.c: Update comment.
23833
23834 2009-12-09  Bruno Haible  <bruno@clisp.org>
23835
23836         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23837
23838 2009-12-08  Eric Blake  <ebb9@byu.net>
23839
23840         fchdir: avoid memory leak on re-registration.
23841         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23842
23843 2009-12-08  Jim Meyering  <meyering@redhat.com>
23844
23845         init.sh: avoid Solaris 10 /bin/sh portability problem
23846         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23847         sourced script:
23848           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23849           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23850           bar
23851         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23852         and two tests used that idiom.
23853         * tests/init.sh: Update suggested usage comments.
23854         (path_prepend_): New function, to be used in place
23855         of the --src-path=DIR option.
23856         (setup_): Move PATH-prepending code into path_prepend_.
23857         * tests/test-pread.sh: Adapt to new usage.
23858         * tests/test-xalloc-die.sh: Likewise.
23859
23860 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23861
23862         * doc/gnulib.texi (Glibc pty.h): Add.
23863         * doc/glibc-functions/forkpty.texi: Add.
23864         * doc/glibc-functions/openpty.texi: Add.
23865         Suggested by Bruno Haible.
23866
23867 2009-12-08  Eric Blake  <ebb9@byu.net>
23868
23869         fchdir: fix logic bugs
23870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23871         * tests/test-fchdir.c (main): Enhance test.
23872         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23873         is in use.
23874
23875         dup2: fix logic bugs
23876         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23877         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23878         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23879         exists.
23880         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23881
23882 2009-12-07  Eric Blake  <ebb9@byu.net>
23883
23884         unlink: fix m4 detection
23885         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23886
23887         unistd-safer: add unit test
23888         * modules/unistd-safer-tests: New file.
23889         * tests/test-dup-safer.c: Likewise.
23890         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23891         * tests/test-dup2.c (setmode): Likewise.
23892         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23893
23894         cloexec: preserve text vs. binary across dup_cloexec
23895         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23896         mode.
23897         * modules/dup2-tests (Depends-on): Add binary-io.
23898         * modules/cloexec-tests (Depends-on): Likewise.
23899         * tests/test-dup2.c (setmode, is_mode): New helpers.
23900         (main): Add tests that translation mode is preserved.
23901         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23902         Reported by Bruno Haible.
23903
23904         mgetgroups: reduce duplicate listings
23905         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23906         resulting array.
23907         * tests/test-chown.h (test_chown): Simplify client.
23908         * tests/test-lchown.h (test_lchown): Likewise.
23909
23910 2009-12-06  Bruno Haible  <bruno@clisp.org>
23911
23912         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23913         value.
23914
23915 2009-12-06  Bruno Haible  <bruno@clisp.org>
23916
23917         * lib/progname.c: Include stdio.h, stdlib.h.
23918         (set_program_name): Reject a NULL argument.
23919
23920 2009-12-05  Eric Blake  <ebb9@byu.net>
23921
23922         pipe2-safer: new module
23923         * modules/pipe2-safer: New file.
23924         * lib/unistd-safer.h (pipe2_safer): New prototype.
23925         * lib/unistd--.h (pipe2): New wrapper.
23926         * lib/pipe-safer.c (pipe2_safer): New function.
23927         * modules/pipe (Depends-on): Add pipe2-safer.
23928         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23929
23930         stdlib-safer: preserve cloexec flag for mkostemp[s]
23931         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23932         fd_safer_flag.
23933
23934         unistd-safer: allow preservation of cloexec status via flag
23935         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23936         prototypes.
23937         * lib/dup-safer.c (dup_safer_flag): New function.
23938         * lib/fd-safer.c (fd_safer_flag): Likewise.
23939         * modules/cloexec (configure.ac): Set witness.
23940
23941         test-dup2: enhance test
23942         * modules/dup2-tests (Depends-on): Add cloexec.
23943         * tests/test-dup2.c (main): Enhance test.
23944
23945         cloexec: add dup_cloexec
23946         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23947         header and comments.
23948         * lib/cloexec.c (set_cloexec_flag): Add comments.
23949         (dup_cloexec): New function, with mingw implementation borrowed
23950         from...
23951         * lib/w32spawn.h (dup_noinherit): ...here.
23952         * modules/execute (Depends-on): Add cloexec.
23953         * modules/pipe (Depends-on): Likewise.
23954         * modules/cloexec (Depends-on): Add dup2.
23955         * modules/cloexec-tests (Files): New file.
23956         * tests/test-cloexec.c: Likewise.
23957
23958         test-xalloc-die: fix test for mingw
23959         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23960         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23961         directory and .exe suffix off argv[0] output.
23962
23963         test-fseeko: fix test for mingw
23964         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23965         than undefining fseek, so test will pass on mingw.
23966
23967 2009-12-05  Bruno Haible  <bruno@clisp.org>
23968
23969         * lib/progname.h (set_program_name): Clarify specification.
23970         * lib/progname.c (set_program_name): Likewise.
23971         Reported by Jim Meyering.
23972
23973 2009-12-05  Jim Meyering  <meyering@redhat.com>
23974
23975         maint.mk: backslash-escape parens in default regexp
23976         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23977         backslash-escape the literal parentheses.
23978
23979         maint.mk: news-date-check: use grep -E
23980         * top/maint.mk (today): Define a Make variable, not a...
23981         (news-date-check): ...shell variable.
23982         (news-date-regexp): Use the Make variable.
23983         Use grep's -E option.  Change the failing diagnostic to mention
23984         the variable, $(news-date-regexp).
23985
23986 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23987
23988         maintainer-makefile: allow customization of NEWS entry format
23989         * top/maint.mk (news-date-regexp): New overridable variable.
23990         (news-date-check): Use it.
23991
23992 2009-12-04  Eric Blake  <ebb9@byu.net>
23993
23994         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23995         * lib/mgetgroups.h (xgetgroups): New prototype.
23996         * lib/mgetgroups.c (xgetgroups): New wrapper.
23997         (mgetgroups): Handle ENOSYS.
23998         * modules/mgetgroups (Depends-on): Add realloc.
23999         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24000
24001         mgetgroups: avoid argument promotion issues with -1
24002         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24003         for invalid gid_t.
24004         * tests/test-chown.h (getegid, test_chown): Likewise.
24005         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24006
24007 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24008
24009         exclude: Fix header file problems.
24010         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24011
24012 2009-12-01  Jim Meyering  <meyering@redhat.com>
24013
24014         fts: fts_open: do not let an empty string cause immediate failure
24015         This is required in support of GNU rm, for which the command
24016         "rm A '' B" must process and remove both A and B, in spite of
24017         the empty string argument.
24018         * lib/fts.c (fts_open): Do not let the presence of an empty string
24019         cause fts_open to fail immediately.  Most fts-using tools must be
24020         able to process all arguments, in order, and can be expected to
24021         diagnose such arguments themselves.
24022
24023 2009-11-30  Eric Blake  <ebb9@byu.net>
24024
24025         utimens: fix compilation error
24026         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24027         Declare variable at right scope.
24028
24029 2009-11-29  Jim Meyering  <meyering@redhat.com>
24030
24031         bootstrap: handle perl-5.11's changed --version output
24032         * build-aux/bootstrap (get_version): Handle perl separately,
24033         since perl-5.11's --version output is different.
24034
24035 2009-11-28  Jim Meyering  <meyering@redhat.com>
24036
24037         userspec: depend on the inttostr module, too
24038         * modules/userspec (Depends-on): Add inttostr.
24039
24040         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24041         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24042         number of MAXUID when it evaluates to (uid_t) -1.
24043         Likewise for group ID.  Reported by Matt McCutchen in
24044         <http://savannah.gnu.org/bugs/?28113>
24045
24046         userspec: reformat to use spaces, not TABs
24047         * lib/userspec.c: Expand TABs to spaces.
24048         Add Emacs' "indent-tabs-mode: nil" hint.
24049
24050 2009-11-27  Eric Blake  <ebb9@byu.net>
24051
24052         getopt-gnu: flush out another BSD bug
24053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
24054         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24055         flush out BSD bug.
24056         * tests/test-getopt.h (test_getopt): End lists with NULL.
24057         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24058         (test_getopt_long_posix): Enhance test.
24059         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24060         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24061         getopt-gnu.
24062         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24063         Likewise.
24064
24065 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24066
24067         * modules/idpriv-droptemp-tests (Notice): Fix text.
24068
24069 2009-11-27  Jim Meyering  <meyering@redhat.com>
24070
24071         test-xalloc-die: avoid spurious failure due to libtool argv difference
24072         In a libtool-enabled project, this test would fail due to a difference
24073         in the emitted program name, e.g.,
24074         -test-xalloc-die: memory exhausted
24075         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24076         Use program to avoid that.
24077         * modules/xalloc-die-tests (Depends-on): Add progname.
24078         * tests/test-xalloc-die.c: Include progname.h".
24079         (program_name): Remove decl.
24080         (main): Call set_program_name.
24081         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24082
24083 2009-11-26  Richard Jones  <rjones@redhat.com>
24084
24085         w32sock: leave win32 error in place.
24086         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24087
24088 2009-11-26  Eric Blake  <ebb9@byu.net>
24089
24090         init.sh: suggest to use skip_ and fail_ functions in comments
24091         * tests/init.sh: Add a sentence.
24092
24093 2009-11-25  Bruno Haible  <bruno@clisp.org>
24094
24095         init.sh: add documentation in comments
24096         * tests/init.sh: Add some developer and user documentation.
24097
24098 2009-11-26  Jim Meyering  <meyering@redhat.com>
24099
24100         init.sh: accommodate even those who specify bogus srcdir manually
24101         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24102         configure-time tests to be sanitized, so that there is no need to
24103         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24104         (with no double quotes) suffices.  However, since tests may be
24105         invoked manually, and since you may explicitly set srcdir to the
24106         name of a directory containing spaces, do quote its uses here.
24107         * tests/test-pread.sh: Likewise.
24108         Suggested by Bruno Haible.
24109
24110         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24111         * tests/test-pread.sh: Write no data into the pipe, because
24112         test-pread actually reads none.  This avoids a diagnostic,
24113         "bash: echo: write error: Broken pipe", that arises in the unusual
24114         event something is ignoring SIGPIPE, and might be interpreted
24115         as some sort of failure.  Reported by Bruno Haible.
24116
24117 2009-11-25  Jim Meyering  <meyering@redhat.com>
24118
24119         test-pread: cover failure with ESPIPE and EINVAL
24120         * tests/test-pread.c (main): Test for failure, too.
24121         * tests/test-pread.sh: Invoke with stdin on a pipe.
24122         Suggested by Eric Blake.
24123
24124         pread: improvement and fix
24125         * modules/pread (Depends-on): Depend on lseek, for portability to
24126         e.g., mingw.  Suggested by Eric Blake.
24127         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24128
24129         unistd.in.h: correct declaration of pread
24130         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24131         Reported by Richard W.M. Jones.
24132
24133         test-pread.sh: distribute the test script
24134         * modules/pread-tests (Files): Include test-pread.sh.
24135
24136         test-pread.sh: clean up
24137         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24138         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24139         That is unnecessary, since it's always ".".
24140         Suggestion from Eric Blake.
24141
24142         test-pread.sh: make executable
24143         * tests/test-pread.sh: Set executable bit.
24144         Reported by Eric Blake.
24145
24146         correct typo in test-pread.sh
24147         * tests/test-pread.sh: Add #! line.
24148
24149         test pread
24150         * tests/test-pread.c: New file.
24151         * tests/test-pread.sh: Likewise.
24152         * modules/pread-tests: Likewise.
24153
24154         pread: new module
24155         * modules/pread: New file.
24156         * lib/unistd.in.h (pread): Define/declare.
24157         * lib/pread.c (pread): New file.
24158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24159         * modules/unistd (Makefile.am): Substitute witnesses.
24160         * doc/posix-functions/pread.texi (pread): Update.
24161         * MODULES.html.sh: Add pread.
24162
24163 2009-11-25  Jim Meyering  <meyering@redhat.com>
24164
24165         tests/init.sh: new file to be used via most *.sh tests
24166         * tests/init.sh: New file.
24167
24168 2009-11-25  Eric Blake  <ebb9@byu.net>
24169
24170         utimens: work around older Linux failure with symlinks
24171         * lib/utimens.c (lutimensat_works_really): New variable.
24172         (fdutimens, lutimens): Use it to manage kernels that support
24173         nanosecond times on files, but not on symlinks.
24174         Reported by OndÅ™ej Vašík.
24175
24176         utimes: fix configure grammar
24177         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24178
24179 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24180
24181         regex: Fix fastmap for multibyte character ranges.
24182         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24183         characters when a multibyte character range is included.
24184
24185 2009-11-22  Andy Wingo  <wingo@pobox.com>
24186
24187         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24188         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24189
24190 2009-11-24  Bruno Haible  <bruno@clisp.org>
24191
24192         doc: Most *_l functions exist in MacOS X 10.5.
24193         * doc/posix-functions/duplocale.texi: Update platforms list.
24194         * doc/posix-functions/freelocale.texi: Likewise.
24195         * doc/posix-functions/newlocale.texi: Likewise.
24196         * doc/posix-functions/uselocale.texi: Likewise.
24197         * doc/posix-functions/isalnum_l.texi: Likewise.
24198         * doc/posix-functions/isalpha_l.texi: Likewise.
24199         * doc/posix-functions/isblank_l.texi: Likewise.
24200         * doc/posix-functions/iscntrl_l.texi: Likewise.
24201         * doc/posix-functions/isdigit_l.texi: Likewise.
24202         * doc/posix-functions/isgraph_l.texi: Likewise.
24203         * doc/posix-functions/islower_l.texi: Likewise.
24204         * doc/posix-functions/isprint_l.texi: Likewise.
24205         * doc/posix-functions/ispunct_l.texi: Likewise.
24206         * doc/posix-functions/isspace_l.texi: Likewise.
24207         * doc/posix-functions/isupper_l.texi: Likewise.
24208         * doc/posix-functions/iswalnum_l.texi: Likewise.
24209         * doc/posix-functions/iswalpha_l.texi: Likewise.
24210         * doc/posix-functions/iswblank_l.texi: Likewise.
24211         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24212         * doc/posix-functions/iswctype_l.texi: Likewise.
24213         * doc/posix-functions/iswdigit_l.texi: Likewise.
24214         * doc/posix-functions/iswgraph_l.texi: Likewise.
24215         * doc/posix-functions/iswlower_l.texi: Likewise.
24216         * doc/posix-functions/iswprint_l.texi: Likewise.
24217         * doc/posix-functions/iswpunct_l.texi: Likewise.
24218         * doc/posix-functions/iswspace_l.texi: Likewise.
24219         * doc/posix-functions/iswupper_l.texi: Likewise.
24220         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24221         * doc/posix-functions/isxdigit_l.texi: Likewise.
24222         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24223         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24224         * doc/posix-functions/strcoll_l.texi: Likewise.
24225         * doc/posix-functions/strfmon_l.texi: Likewise.
24226         * doc/posix-functions/strftime_l.texi: Likewise.
24227         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24228         * doc/posix-functions/strxfrm_l.texi: Likewise.
24229         * doc/posix-functions/tolower_l.texi: Likewise.
24230         * doc/posix-functions/toupper_l.texi: Likewise.
24231         * doc/posix-functions/towctrans_l.texi: Likewise.
24232         * doc/posix-functions/towlower_l.texi: Likewise.
24233         * doc/posix-functions/towupper_l.texi: Likewise.
24234         * doc/posix-functions/wcscoll_l.texi: Likewise.
24235         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24236         * doc/posix-functions/wctrans_l.texi: Likewise.
24237         * doc/posix-functions/wctype_l.texi: Likewise.
24238         * doc/glibc-functions/strptime_l.texi: Likewise.
24239         * doc/glibc-functions/strtod_l.texi: Likewise.
24240         * doc/glibc-functions/strtof_l.texi: Likewise.
24241         * doc/glibc-functions/strtol_l.texi: Likewise.
24242         * doc/glibc-functions/strtold_l.texi: Likewise.
24243         * doc/glibc-functions/strtoll_l.texi: Likewise.
24244         * doc/glibc-functions/strtoul_l.texi: Likewise.
24245         * doc/glibc-functions/strtoull_l.texi: Likewise.
24246         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24247         * doc/glibc-functions/wcstod_l.texi: Likewise.
24248         * doc/glibc-functions/wcstof_l.texi: Likewise.
24249         * doc/glibc-functions/wcstol_l.texi: Likewise.
24250         * doc/glibc-functions/wcstold_l.texi: Likewise.
24251         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24252         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24253         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24254
24255 2009-11-24  Bruno Haible  <bruno@clisp.org>
24256
24257         duplocale: Fix logic bug.
24258         * lib/duplocale.c: Don't include <langinfo.h>.
24259         (_NL_LOCALE_NAME): Remove macro.
24260         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24261         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24262
24263 2009-11-23  Jim Meyering  <meyering@redhat.com>
24264
24265         test-update-copyright: don't hard-code /usr/bin/perl
24266         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24267         perl to print the current year.  Gilles Espinasse reported that
24268         the replaced use of perl was hard-coded as /usr/bin/perl.
24269
24270 2009-11-23  Bruno Haible  <bruno@clisp.org>
24271
24272         duplocale: Add support for glibc 2.3.x.
24273         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24274
24275 2009-11-22  Bruno Haible  <bruno@clisp.org>
24276
24277         vasnprintf: Tiny optimization.
24278         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24279         MacOS X.
24280
24281 2009-11-22  Bruno Haible  <bruno@clisp.org>
24282
24283         Tests for module 'duplocale'.
24284         * modules/duplocale-tests: New file.
24285         * tests/test-duplocale.c: New file.
24286
24287         New module 'duplocale'.
24288         * m4/duplocale.m4: New file.
24289         * lib/locale.in.h (duplocale): New declaration.
24290         * lib/duplocale.c: New file.
24291         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24292         gl_LOCALE_H_DEFAULTS): New macros.
24293         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24294         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24295         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24296         REPLACE_DUPLOCALE.
24297         * modules/duplocale: New file.
24298         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24299
24300 2009-11-22  Bruno Haible  <bruno@clisp.org>
24301
24302         * modules/locale-tests (configure.ac): Test for newlocale function.
24303         * tests/test-locale.c: When the system has extended locale functions,
24304         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24305
24306         locale: Make locale_t available when possible.
24307         * lib/locale.in.h: Include <xlocale.h> when it exists.
24308         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24309         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24310         * modules/locale (Depends-on): Add extensions.
24311         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24312         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24313
24314 2009-11-22  Bruno Haible  <bruno@clisp.org>
24315
24316         Add comments.
24317         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24318         invocation.
24319         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24320         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24321         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24322
24323 2009-11-22  Bruno Haible  <bruno@clisp.org>
24324
24325         error: account for the possibility of freopen (stdout).
24326         * lib/error.c: Include <unistd.h>.
24327         (flush_stdout): New function, extracted from error and error_at_line.
24328         Determine stdout's fd dynamically.
24329         (error, error_at_line): Invoke flush_stdout.
24330         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24331         * modules/error (Depends-on): Add unistd.
24332
24333 2009-11-22  Bruno Haible  <bruno@clisp.org>
24334
24335         diffseq: Add comment.
24336         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24337
24338 2009-11-22  Jim Meyering  <meyering@redhat.com>
24339
24340         c-stack: avoid defining an unused static function
24341         * lib/c-stack.c (find_stack_direction): Do not define this function
24342         when it will not be used.
24343
24344         diffseq: avoid spurious gcc warnings
24345         * lib/diffseq.h (IF_LINT2): Define.
24346         (compareseq): Use it to initialize two members of "part".
24347         This avoids two used-uninitialized warnings.
24348
24349 2009-11-21  Jim Meyering  <meyering@redhat.com>
24350
24351         c-stack: avoid "ignoring return value of `write'" warning
24352         * lib/c-stack.c: Include "ignore-value.h".
24353         (die): Explicitly ignore each write return value.
24354         * modules/c-stack (Depends-on): Add ignore-value.
24355
24356 2009-11-21  Bruno Haible  <bruno@clisp.org>
24357
24358         diffseq: reduce scope of variable 'best'.
24359         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24360         variable, earlier used for two different purposes.
24361
24362 2009-11-21  Jim Meyering  <meyering@redhat.com>
24363
24364         diffseq: remove useless assignment to "best"
24365         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24366         assignment.  At that point "best" is already guaranteed to be zero.
24367
24368 2009-11-20  Eric Blake  <ebb9@byu.net>
24369
24370         build: mention ftp redirector in release announcements
24371         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24372         values that used to come from cfg.mk; mention FTP redirect URL.
24373         * build-aux/announce-gen: Mention the mirror list.
24374         Suggested by Karl Berry.
24375
24376         nanosleep: improve port to mingw
24377         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24379         LIB_NANOSLEEP, but only when needed.
24380         * modules/select (Link): Document LIBSOCKET.
24381         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24382         enough.
24383
24384         nanosleep: work around cygwin bug
24385         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24386         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24387         bug.
24388         (getnow): Delete, not needed.
24389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24390         LIB_CLOCK_GETTIME.
24391         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24392         clock-time, gettime.
24393         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24394         bug.
24395         * modules/nanosleep-tests: New test.
24396         * tests/test-nanosleep.c: New file.
24397
24398         sleep: work around cygwin bug
24399         * lib/sleep.c (rpl_sleep): Work around the bug.
24400         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24401         (gl_PREREQ_SLEEP): Delete unused macro.
24402         * modules/sleep (Depends-on): Add verify.
24403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24404         * modules/unistd (Makefile.am): Substitute witness.
24405         * lib/unistd.in.h (sleep): Update prototype.
24406         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24407         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24408         * modules/sleep-tests (Depends-on): Check for alarm.
24409
24410 2009-11-20  Jim Meyering  <meyering@redhat.com>
24411
24412         maint.mk: improve sc_prohibit_magic_number_exit
24413         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24414         so it does not match uses like System.exit(1).
24415         Add comments showing how to correct all offenders.
24416
24417 2009-11-19  Eric Blake  <ebb9@byu.net>
24418
24419         xalloc-die-tests: add missing library
24420         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24421
24422         test-xvasprintf: silence compiler warnings
24423         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24424         empty string from gcc.
24425
24426 2009-11-19  Jim Meyering  <meyering@redhat.com>
24427
24428         xfreopen: new module, from coreutils
24429         * modules/xfreopen: New module.
24430         * lib/xfreopen.c: New file.
24431         * lib/xfreopen.h: New file.
24432         * MODULES.html.sh (File stream based Input/Output"): Add it.
24433
24434 2009-11-19  Eric Blake  <ebb9@byu.net>
24435
24436         manywarnings: depend on warnings
24437         * modules/manywarnings (Depends-on): Add warnings.
24438
24439         build: avoid compiler warnings
24440         * lib/select.c (rpl_select): Delete unused variable.
24441         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24442
24443 2009-11-18  Eric Blake  <ebb9@byu.net>
24444
24445         tests: avoid false negative with --with-packager
24446         * tests/test-version-etc.sh: Discard packager information.
24447         * tests/test-argp-version-etc-1.sh: Likewise.
24448         Reported by Mike Frysinger.
24449
24450         utimens: fix regression on Solaris
24451         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24452         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24453         can only change fd timestamps via futimesat.  Instead, use an
24454         additional witness macro to avoid BSD bug.
24455         Reported by Jim Meyering.
24456
24457 2009-11-17  Eric Blake  <ebb9@byu.net>
24458
24459         usleep: use it to simplify tests
24460         * modules/stat-time-tests (Depends-on): Add usleep.
24461         (configure.ac): Drop usleep check.
24462         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24463         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24464         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24465         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24466         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24467         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24468         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24469         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24470         Likewise.
24471         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24472         * tests/test-lchown.h (nap): Likewise.
24473         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24474         * tests/test-stat-time.c (nap): Likewise.
24475         * tests/test-utimens-common.h (nap): Update comments.
24476
24477         usleep: new module
24478         * modules/usleep: New file.
24479         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24480         * lib/usleep.c (usleep): Likewise.
24481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24482         * modules/unistd (Makefile.am): Substitute witnesses.
24483         * lib/unistd.in.h (usleep): Add declaration.
24484         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24485         * MODULES.html.sh (Date and time): Likewise.
24486         * modules/usleep-tests (Depends-on): New test.
24487         * tests/test-usleep.c: New file.
24488
24489         chown: work around OpenBSD bug
24490         * lib/chown.c (rpl_chown): Work around the bug.
24491         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24492         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24493         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24494         * modules/chown (Depends-on): Add stdbool.
24495         * modules/lchown (Depends-on): Likewise.
24496         * doc/posix-functions/chown.texi (chown): Document the bug.
24497         * doc/posix-functions/lchown.texi (lchown): Likewise.
24498         * tests/test-lchown.h (test_chown): Relax test.
24499
24500         mkstemp: avoid conflict with C++ keyword template
24501         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24502         * lib/mkostemp.c (mkostemp): Likewise.
24503         * lib/mkostemps.c (mkostemps): Likewise.
24504         * lib/mkstemp.c (mkstemp): Likewise.
24505         * lib/mkstemps.c (mkstemps): Likewise.
24506
24507         xalloc-die-tests: optimize
24508         * tests/test-xalloc-die.sh: Reduce number of processes.
24509
24510 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24511
24512         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24513         patch from ludo@gnu.org (Ludovic Courtès).
24514
24515 2009-11-17  Jim Meyering  <meyering@redhat.com>
24516
24517         version-etc: use proper license string
24518         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24519         * modules/version-etc-fsf: Likewise.
24520
24521 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24522
24523         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24524         printed to stdout.  Deal with EOL differences.
24525
24526 2009-11-17  Eric Blake  <ebb9@byu.net>
24527
24528         unsetenv: work around Solaris bug
24529         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24530         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24531         Reported by Jim Meyering.
24532
24533         vasnprintf: avoid compiler warnings
24534         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24535         variables.
24536         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24537
24538 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24539
24540         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24541         settings since xalloc-die is no longer the self test,
24542         xalloc-die.sh is.
24543
24544 2009-11-17  Jim Meyering  <meyering@redhat.com>
24545
24546         test-xalloc-die.sh: make the code agree with the commit log
24547         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24548         at the end, just in case you happen to have a test-xalloc-die
24549         program in some other PATH directory.
24550
24551         test-xalloc-die.sh: fix a portability bug
24552         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24553         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24554         Otherwise, argv[0] (as often seen in diagnostics) would be too
24555         system-dependent, sometimes with, and sometimes without the leading "./".
24556
24557         version-etc-fsf: relax license to LGPLv3+
24558         * modules/version-etc-fsf (License): Relax license.
24559
24560 2009-11-16  Eric Blake  <ebb9@byu.net>
24561
24562         xalloc-die-tests: avoid printing null pointer
24563         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24564         shell script.
24565         * tests/test-xalloc-die.c (program_name): Declare.
24566         * tests/test-xalloc-die.sh (tmpfiles): New file.
24567
24568         setenv, unsetenv: work around various bugs
24569         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24570         (setenv) [HAVE_SETENV]: Work around bugs.
24571         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24572         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24573         for bugs.
24574         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24575         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24577         * modules/stdlib (Makefile.am): Update substitutions.
24578         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24579         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24580         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24581         * modules/setenv-tests: New test.
24582         * modules/unsetenv-tests: Likewise.
24583         * tests/test-setenv.c: New file.
24584         * tests/test-unsetenv.c: Likewise.
24585
24586 2009-11-16  Jim Meyering  <meyering@redhat.com>
24587
24588         version-etc: relax license to LGPLv3+
24589         * modules/version-etc (License): Relax license.
24590
24591         better AC_REQUIRE expanded-before-required-warning avoidance
24592         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24593         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24594         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24595         which is no longer needed.
24596
24597 2009-11-16  Eric Blake  <ebb9@byu.net>
24598
24599         test-freading: clean up temporary file
24600         * tests/test-freading.c (main): Remove file on success, and use
24601         ASSERT more liberally.
24602         Reported by Jim Meyering.
24603
24604 2009-11-16  Jim Meyering  <meyering@redhat.com>
24605
24606         avoid new AC_REQUIRE expanded-before-required warnings
24607         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24608         merely using it.
24609         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24610         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24611
24612 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24613
24614         * tests/test-xalloc-die.c: New file.
24615         * modules/xalloc-die-tests: New file.
24616         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24617         XFAIL_TESTS so it can be appended by modules.
24618
24619 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24620
24621         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24622         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24623
24624 2009-11-14  Eric Blake  <ebb9@byu.net>
24625
24626         fnmatch: avoid compiler warning
24627         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24628         to silence compiler warning about mismatch signedness in ?:.
24629         Reported by Robert Millan.
24630
24631         intprops: add double-inclusion guard
24632         * lib/intprops.h: Allow idempotent includes.
24633         Suggested by Bruce Korb.
24634
24635         openat: detect Solaris fchownat bug
24636         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24637         penalizing glibc chownat when only lchownat is broken.
24638         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24639         trailing slash bugs.
24640         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24641         * modules/openat-tests (Files): Include more files.
24642         (Depends-on): Add mgetgroups, sleep, stat-time.
24643         (configure.ac): Add additional checks.
24644         (Makefile.am): Build new test.
24645         * tests/test-fchownat.c: New file.
24646
24647         lchown: detect Solaris and FreeBSD bug
24648         * lib/lchown.c (rpl_lchown): Work around bug.
24649         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24651         * modules/unistd (Makefile.am): Populate it.
24652         * lib/unistd.in.h (lchown): Update declaration.
24653         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24654         * modules/lchown-tests: New file.
24655         * tests/test-lchown.h (test_lchown): Likewise.
24656         * tests/test-lchown.c (main): Likewise.
24657
24658         chown: detect Solaris and FreeBSD bug
24659         * lib/chown.c (rpl_chown): Work around bug.
24660         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24661         (gl_PREREQ_CHOWN): Delete.
24662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24663         * modules/unistd (Makefile.am): Populate it.
24664         * lib/unistd.in.h (chown): Update declaration.
24665         * lib/lchown.c (chown): Update client.
24666         * modules/lchown (Depends-on): Add lstat.
24667         * doc/posix-functions/chown.texi (chown): Document the bug.
24668         * doc/posix-functions/getgroups.texi (getgroups): Document
24669         getgroups pitfall.
24670         * modules/chown-tests: New file.
24671         * tests/test-chown.h (test_chown): Likewise.
24672         * tests/test-chown.c (main): Likewise.
24673
24674 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24675
24676         gnulib-tool: correctly detect absence of m4 directories
24677         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24678
24679 2009-11-14  Jim Meyering  <meyering@redhat.com>
24680
24681         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24682         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24683
24684 2009-11-14  John W. Eaton  <jwe@gnu.org>
24685
24686         strftime.h: wrap funtion declaration in extern "C" block
24687         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24688
24689 2009-11-13  Eric Blake  <ebb9@byu.net>
24690
24691         getgroups: avoid compiler warning
24692         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24693
24694         getgroups: work around FreeBSD bug
24695         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24696         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24697         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24698         * tests/test-getgroups.c (main): Fix buffer overrun.
24699
24700         getgroups: avoid compilation failure
24701         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24702         * modules/getgroups (Depends-on): Add stdint.
24703
24704 2009-11-13  Jim Meyering  <meyering@redhat.com>
24705
24706         test-getgroups: avoid compilation failure
24707         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24708
24709 2009-11-13  Eric Blake  <ebb9@byu.net>
24710
24711         mgetgroups: new module, taken from coreutils
24712         * modules/mgetgroups: New file.
24713         * lib/mgetgroups.h: Likewise.
24714         * lib/mgetgroups.c (mgetgroups): Likewise.
24715         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24716         * MODULES.html.sh (Users and groups): Mention it.
24717
24718         getgroups: don't expose GETGROUPS_T to user
24719         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24720         an element at a time if GETGROUPS_T is wrong size.
24721         * lib/getugroups.h (getugroups): Change signature.
24722         * lib/unistd.in.h (getgroups): Likewise.
24723         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24724         signature needs fixing.
24725         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24726         AC_TYPE_GETGROUPS.
24727         * modules/group-member (Depends-on): Add getgroups.
24728         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24729         (group_member): Rely on getgroups replacement.
24730         * lib/getugroups.c (getugroups): Use gid_t.
24731         * tests/test-getgroups.c (main): Likewise.
24732         * NEWS: Mention the signature change.
24733         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24734         problem with signature.
24735         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24736         GETGROUPS_T is still useful for setgroups.
24737
24738         getgroups, getugroups: provide stubs for mingw
24739         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24740         * lib/getugroups.c (getugroups): Likewise.
24741         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24742         function.  Modernize replacement scheme.
24743         (gl_PREREQ_GETGROUPS): Delete.
24744         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24745         * modules/getgroups (configure.ac): Declare witness.
24746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24747         * modules/unistd (Depends-on): Substitute witness.
24748         * lib/unistd.in.h (getgroups): Declare replacement.
24749
24750         getgroups: avoid calling exit
24751         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24752         drop xalloc.
24753         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24754         dependencies.
24755         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24756         exiting, in the rare case of malloc failure.
24757
24758         getgroups: fix logic error
24759         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24760         has more than 20 groups.
24761         * modules/getgroups-tests: New test.
24762         * tests/test-getgroups.c: New file.
24763
24764 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24765
24766         * tests/test-base64.c: Improve.
24767
24768 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24769
24770         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24771         Blake <ebb9@byu.net>.
24772
24773 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24774
24775         * tests/test-xvasprintf.c: Add %s%s related checks.
24776
24777 2009-11-12  Eric Blake  <ebb9@byu.net>
24778
24779         version-etc: match standards.texi style
24780         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24781         and use <> only for URLs.
24782
24783 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24784
24785         fts: do not fail on a submount during traversal
24786         * lib/fts.c (fts_build): Read the stat info again after opening
24787         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24788         Original report at http://bugzilla.redhat.com/501848.
24789
24790 2009-11-12  Jim Meyering  <meyering@redhat.com>
24791
24792         bootstrap: sync from coreutils
24793         * build-aux/bootstrap (bootstrap_epilogue): New function.
24794         Use git_modules_config in one more place.  This make bootstrap's
24795         --gnulib-srcdir option more useful for testing.
24796
24797         bootstrap: generalize autoheader check
24798         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24799         AC_CONFIG_HEADERS.
24800
24801 2009-11-11  Eric Blake  <ebb9@byu.net>
24802
24803         mkfifoat: use new modules for Solaris and BSD bugs
24804         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24805         * lib/mkfifoat.c (mknodat): Split...
24806         * lib/mknodat.c (mknodat): ...into new file.
24807         * modules/mkfifoat (Files): Ship new file.
24808         (Depends-on): Add mkfifo, mknod.
24809         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24810         (Depends-on): Add symlink.
24811         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24812         redundant with test_mkfifo.h.
24813         (do_mkfifoat, do_mknodat): New helpers.
24814
24815         mknod: new module
24816         * modules/mknod: New file.
24817         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24818         * lib/mknod.c (mknod): Likewise.
24819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24820         defaults.
24821         * modules/sys_stat (Makefile.am): Substitute them.
24822         * lib/sys_stat.in.h (mknod): Declare replacement.
24823         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24824         Document it.
24825         * doc/posix-functions/mknod.texi (mknod): Likewise.
24826         * modules/mknod-tests: New test.
24827         * tests/test-mknod.c: Likewise.
24828
24829         mkfifo: new module
24830         * modules/mkfifo: New file.
24831         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24832         * lib/mkfifo.c (mkfifo): Likewise.
24833         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24834         defaults.
24835         * modules/sys_stat (Makefile.am): Substitute them.
24836         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24837         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24838         Document it.
24839         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24840         * modules/mkfifo-tests: New test.
24841         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24842         from test-mkfifoat.c.
24843         * tests/test-mkfifo.c: New file.
24844
24845         readlink: detect FreeBSD bug
24846         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24847         slash on symlink.
24848         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24849         * tests/test-readlink.h (test_readlink): Enhance test.
24850
24851         symlink: detect FreeBSD bug
24852         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24853         slash on symlink.
24854         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24855         * tests/test-symlink.h (test_symlink): Enhance test.
24856
24857 2009-11-10  Eric Blake  <ebb9@byu.net>
24858
24859         link: detect FreeBSD bug
24860         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24861         symlink.
24862         * doc/posix-functions/link.texi (link): Document the bug.
24863         * tests/test-link.h (test_link): Enhance test.
24864         * tests/test-linkat.c (main): Update caller.
24865
24866         unlink, remove: detect FreeBSD bug
24867         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24868         slash on symlink.
24869         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24870         * doc/posix-functions/remove.texi (remove): Likewise.
24871         * tests/test-unlink.h (test_unlink): Enhance test.
24872         * tests/test-remove.c (main): Likewise.
24873
24874 2009-11-09  Eric Blake  <ebb9@byu.net>
24875
24876         rename: detect FreeBSD bug
24877         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24878         slash on symlink.
24879         * modules/renameat-tests (Depends-on): Add filenamecat.
24880         * tests/test-rename.h (test_rename): Allow one more errno.
24881         * tests/test-renameat.c (main): Likewise.
24882         * doc/posix-functions/rename.texi (rename): Document the bug.
24883
24884         open: detect FreeBSD bug
24885         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24886         symlink.
24887         * doc/posix-functions/open.texi (open): Document the bug.
24888         * doc/posix-functions/utimes.texi (utimes): Likewise.
24889         * tests/test-open.h (test_open): Add parameters, and test symlink
24890         handling.
24891         * tests/test-open.c (main): Adjust caller.
24892         * tests/test-fcntl-safer.c (main): Likewise.
24893         * modules/open-tests (Depends-on): Add stdbool, symlink.
24894         * modules/fcntl-safer-tests (Depends-on): Likewise.
24895         * tests/test-openat.c (main): Add test-open tests.
24896
24897         stat: detect FreeBSD bug
24898         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24899         symlink.
24900         * doc/posix-functions/stat.texi (stat): Document the bug.
24901         * tests/test-stat.h (test_stat_func): Add argument.
24902         * tests/test-stat.c (main): Adjust caller.
24903         * tests/test-fstatat.c (main): Likewise.
24904         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24905         Reported by Jim Meyering.
24906
24907 2009-11-09  James Youngman  <jay@gnu.org>
24908
24909         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24910         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24911
24912 2009-11-08  Jim Meyering  <meyering@redhat.com>
24913
24914         utimens: remove invalid futimesat call
24915         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24916         It used the file descriptor of the target file as the DIR_FD
24917         parameter and NULL as the file name.  That caused failure with
24918         errno == EFAULT on FreeBSD-8.0-rc2
24919
24920 2009-11-07  Eric Blake  <ebb9@byu.net>
24921
24922         fflush, freadseek: use fseeko, not fseek
24923         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24924         (clear_ungetc_buffer): Avoid potential problems on large files.
24925         * lib/freadseek.c (freadseek): Likewise.
24926         * modules/freadseek (Depends-on): Add fseeko.
24927         * modules/fseek (configure.ac): Set a witness.
24928         * tests/test-fflush.c (main): Use fseeko.
24929         * tests/test-fpurge.c (fseek): Disable link warning.
24930         * tests/test-freadable.c (fseek): Likewise.
24931         * tests/test-freading.c (fseek): Likewise.
24932         * tests/test-fseeko.c (fseek): Likewise.
24933         * tests/test-ftell.c (fseek): Likewise.
24934         * tests/test-ftello.c (fseek): Likewise.
24935         * tests/test-fwritable.c (fseek): Likewise.
24936         * tests/test-fwriting.c (fseek): Likewise.
24937
24938 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24939
24940         * modules/memchr (Depends-on): Drop getpagesize dependency.
24941
24942 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24943
24944         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24945         Reported by Ludovic Courtès.
24946         * build-aux/pmccabe2html: Improve example usage.
24947         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24948
24949 2009-11-06  Jim Meyering  <meyering@redhat.com>
24950
24951         do-release-commit-and-tag: New module.
24952         Automate the release-commit and tag process.
24953         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24954         * modules/do-release-commit-and-tag: New file.
24955         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24956
24957 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24958
24959         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24960         because test-select.c uses inet_pton.
24961
24962 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24963
24964         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24965         GETADDRINFO_LIB.  Bump serial number.
24966         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24967         Suggested by Eric Blake <ebb9@byu.net>.
24968
24969 2009-11-05  Eric Blake  <ebb9@byu.net>
24970
24971         strtod: detect darwin bug
24972         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24973         Reported by Leo Davis.
24974
24975         freopen-safer: new module
24976         * modules/freopen-safer: New module.
24977         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24978         * lib/freopen-safer.c (freopen_safer): New file.
24979         * lib/stdio-safer.h (freopen_safer): New declaration.
24980         * lib/stdio--.h (freopen): New override.
24981         * MODULES.html.sh (File stream based Input/Output): Mention it.
24982         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24983         freopen-safer module.
24984         * doc/posix-functions/stderr.texi (stderr): Likewise.
24985         * doc/posix-functions/stdin.texi (stdin): Likewise.
24986         * doc/posix-functions/stdout.texi (stdout): Likewise.
24987         * modules/freopen-safer-tests: New test.
24988         * tests/test-reopen-safer.c: New file.
24989
24990 2009-11-05  Jim Meyering  <meyering@redhat.com>
24991
24992         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24993         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24994
24995 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24996
24997         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24998
24999 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25000
25001         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25002
25003 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25004
25005         Fix link error.
25006         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25007         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25008
25009 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25010
25011         * tests/test-func.c: Also test value of __func__.
25012
25013 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25014
25015         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25016         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25017
25018 2009-11-05  Bruno Haible  <bruno@clisp.org>
25019
25020         Fix link error.
25021         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25022         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25023         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25024
25025 2009-11-05  Bruno Haible  <bruno@clisp.org>
25026
25027         Tests for module 'inet_pton'.
25028         * modules/inet_pton-tests: New file.
25029         * tests/test-inet_pton.c: New file.
25030
25031 2009-11-05  Bruno Haible  <bruno@clisp.org>
25032
25033         Tests for module 'inet_ntop'.
25034         * modules/inet_ntop-tests: New file.
25035         * tests/test-inet_ntop.c: New file.
25036
25037 2009-11-04  Eric Blake  <ebb9@byu.net>
25038
25039         stdlib-safer: wrap all mkstemp variants
25040         * modules/mkostemp (configure.ac): Set witness.
25041         * modules/mkostemps (configure.ac): Likewise.
25042         * modules/mkstemps (configure.ac): Likewise.
25043         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25044         (mkstemps_safer): Wrap more functions.
25045         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
25046         wrapping.
25047         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
25048         (mkstemps_safer): Implement the wrappers.
25049
25050         mkstemps, mkostemps: new modules
25051         * modules/mkostemps: New module.
25052         * modules/mkstemps: Likewise.
25053         * lib/mkostemps.c (mkostemps): New file.
25054         * lib/mkstemps.c (mkstemps): Likewise.
25055         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25056         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25058         * modules/stdlib (Makefile.am): Substitute them.
25059         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25060         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25061         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25062         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25063         * MODULES.html.sh (File system functions): Mention them.
25064
25065         tempname: resync from glibc
25066         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25067         same values for __GT_FILE as glibc.  Abort even when assertions
25068         are disabled.
25069         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25070         match its value otherwise.  Allow idempotent inclusion.
25071         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25072         * lib/mkostemp.c (mkostemp): Likewise.
25073         * lib/mkstemp.c (mkstemp): Likewise.
25074         * lib/tmpfile.c (tmpfile): Likewise.
25075         * NEWS: Document this.
25076
25077         utimens: fix use of futimens on older Linux
25078         * lib/utimens.c (fdutimens): Use updated, rather than original,
25079         timespec to avoid bug in older Linux kernel.
25080         Reported by Simon Josefsson.
25081
25082 2009-11-04  Bruno Haible  <bruno@clisp.org>
25083
25084         Make num_processors more flexible and consistent.
25085         * lib/nproc.h (enum nproc_query): New type.
25086         (num_processors): Add a 'query' argument.
25087         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25088         (num_processors): Add a 'query' argument. Test the value of the
25089         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25090         mingw, count the number of CPUs available for the current process.
25091         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25092         Check for sched_getaffinity and sched_getaffinity_np.
25093         * modules/nproc (Depends-on): Add c-ctype, extensions.
25094         * NEWS: Mention the change.
25095
25096 2009-11-03  Bruno Haible  <bruno@clisp.org>
25097
25098         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25099
25100 2009-11-03  Jim Meyering  <meyering@redhat.com>
25101
25102         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25103         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25104         if it is defined.
25105
25106 2009-11-02  Eric Blake  <ebb9@byu.net>
25107
25108         mktime, timegm: share common declaration
25109         * lib/mktime-internal.h: New file.
25110         * lib/mktime.c: Use it rather than open-coding a declaration.
25111         * lib/timegm.c: Likewise.
25112         * modules/mktime (Files): Ship it.
25113         * modules/timegm (Files): Likewise.
25114         Suggested by Bruno Haible.
25115
25116         test-update-copyright: update test to match script changes
25117         * tests/test-update-copyright.sh: Avoid hard-coding perl
25118         location.  Don't update *.bak created by earlier runs.
25119
25120 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25121             Simon Josefsson  <simon@josefsson.org>
25122             Bruno Haible  <bruno@clisp.org>
25123
25124         Fix link error on Solaris 8.
25125         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25126         also in libnsl. Define also INET_PTON_LIB.
25127         * modules/inet_pton (Link): New section.
25128
25129 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25130             Bruno Haible  <bruno@clisp.org>
25131
25132         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25133         * modules/inet_ntop (Link): New section.
25134         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25135
25136 2009-11-02  Eric Blake  <ebb9@byu.net>
25137
25138         maint: avoid compiler warnings in m4 macros
25139         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25141
25142 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25143
25144         * m4/pmccabe2html.m4: Remove file.
25145         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25146         function.  Change maintainer.
25147         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25148         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25149         Courtès).
25150
25151 2009-10-31  Eric Blake  <ebb9@byu.net>
25152
25153         fseeko: fix m4 regression
25154         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25155         regression from 2009-10-27.
25156         Reported by Ralf Wildenhues.
25157
25158 2009-10-31  Jim Meyering  <meyering@redhat.com>
25159
25160         inttostr: aesthetics and improved (compile-time) safety
25161         Define inttype_is_signed rather than inttype_is_unsigned,
25162         since the sole use is via "#if inttype_is_signed".
25163         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25164         inttype_is_unsigned.
25165         * lib/offtostr.c (inttype_is_signed): Likewise.
25166         * lib/uinttostr.c (inttype_is_signed): Likewise.
25167         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25168         * lib/inttostr.c (inttostr): Use verify to cross-check the
25169         inttype_is_signed value and the signedness of the actual type.
25170         * modules/inttostr (Depends-on): Add verify.
25171
25172 2009-10-30  Eric Blake  <ebb9@byu.net>
25173
25174         build: avoid compiler warnings
25175         * lib/fchmodat.c (lchmod): Mark unused variables.
25176         * lib/getopt.c (_getopt_initialize): Likewise.
25177         * lib/mktime.c (__mktime_internal): Provide prototype.
25178         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25179         older gcc that do not understand #pragma GCC diagnostic.
25180         * lib/uinttostr.c (inttype_is_unsigned): Define.
25181         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25182
25183 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25184
25185         stat: fix compilation on AIX
25186         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25187         only see struct stat64.
25188
25189 2009-10-30  Eric Blake  <ebb9@byu.net>
25190
25191         exclude: make more robust
25192         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25193         rather than masking a coding bug.
25194         Suggested by Bruno Haible.
25195
25196 2009-10-30  Jim Meyering  <meyering@redhat.com>
25197
25198         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25199         Rather than putting #!/usr/bin/perl on the first line,
25200         start with a variant of what's recommended by "man perlrun" that
25201         invokes the first "perl" program from your shell's search path.
25202         * build-aux/gitlog-to-changelog: Replace #!... as above.
25203         Add a "Local Variables" perl mode setting.
25204         Prompted by a patch from Ludovic Courtès.
25205         Improved by Eric Blake.
25206         * build-aux/useless-if-before-free: Likewise.
25207         * build-aux/announce-gen: Likewise.
25208         * build-aux/update-copyright: Likewise.
25209
25210 2009-10-29  Eric Blake  <ebb9@byu.net>
25211
25212         filenamecat-lgpl: adjust clients
25213         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25214         filenamecat.
25215         * modules/renameat (Depends-on): Likewise.
25216
25217         filenamecat: split into filenamecat-lgpl
25218         * modules/filenamecat-lgpl: New module.
25219         * modules/filenamecat (Files): Move library-safe files into
25220         filenamecat-lgpl.
25221         (Depends-on): Add filenamecat-lgpl.
25222         (configure.ac): Declare witness.
25223         * lib/filenamecat.h (file_name_concat): Only declare when using
25224         GPL module.
25225         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25226         Move...
25227         * lib/filenamecat-lgpl.c: ...into new file.
25228         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25229         (gl_FILE_NAME_CONCAT): Use it.
25230         * MODULES.html.sh (File system functions): Mention new module.
25231
25232         argp: avoid memory leak
25233         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25234         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25235         base_name, since the latter malloc()s and can call exit().
25236         Leak introduced 2006-07-03.
25237
25238         dirname-lgpl: adjust clients that don't need full dirname
25239         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25240         * modules/filenamecat (Depends-on): Likewise.
25241         * modules/linkat (Depends-on): Likewise.
25242         * modules/mkancesdirs (Depends-on): Likewise.
25243         * modules/mkdir (Depends-on): Likewise.
25244         * modules/openat (Depends-on): Likewise.
25245         * modules/savewd (Depends-on): Likewise.
25246         * modules/rename (Depends-on): Likewise.
25247         (License): Relax license.
25248         * modules/mkdir-tests (Depends-on): Drop progname.
25249         (Makefile.am): Delete unneeded LDADD.
25250         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25251
25252         dirname: split into dirname-lgpl
25253         * modules/dirname-lgpl: New module.
25254         * modules/dirname (Files): Move library-safe files into
25255         dirname-lgpl.
25256         (Depends-on): Add dirname-lgpl.
25257         (configure.ac): Declare witness.
25258         * modules/double-slash-root (License): Relax license.
25259         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25260         module.
25261         * lib/dirname.c (dir_len, mdir_name): Move...
25262         * lib/dirname-lgpl.c: ...into new file.
25263         * lib/basename.c (last_component, base_len): Move...
25264         * lib/basename-lgpl.c: ...into new file.
25265         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25266         (gl_DIRNAME): Use it.
25267         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25268         Mention new module.
25269         * modules/dirname-tests (Depends-on): Add progname.
25270         * tests/test-dirname.c (program_name): Delete.
25271
25272         mkdir: make safe for libraries
25273         * modules/mkdir (Depends-on): Drop xalloc.
25274         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25275         exit.
25276
25277         tests: avoid some compiler warnings
25278         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25279         literals.
25280         * tests/test-memchr.c (main): Avoid type mismatch.
25281         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25282         * tests/test-base64.c (main): Likewise.
25283         * tests/test-getdelim.c (main): Likewise.
25284         * tests/test-gethostname.c (main): Likewise.
25285         * tests/test-getline.c (main): Likewise.
25286         * tests/test-netinet_in.c (main): Likewise.
25287         * tests/test-select.c (open_server_socket, main): Likewise.
25288         * tests/test-select-stdin.c (main): Likewise.
25289         * tests/test-sockets.c (main): Likewise.
25290         * tests/test-strsignal.c (main): Likewise.
25291         * tests/test-sys_select.c (main): Likewise.
25292         * tests/test-sys_socket.c (main): Likewise.
25293         * tests/test-u64.c (main): Likewise.
25294         * tests/test-xfprintf-posix.c (main): Likewise.
25295         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25296
25297         sockets: avoid compiler warning
25298         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25299
25300         maint: detect usage(1) and other suspicious exits
25301         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25302
25303 2009-10-29  Jim Meyering  <meyering@redhat.com>
25304
25305         timespec: long-to-int truncation could make timespec_cmp malfunction
25306         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25307         a multiple of 2^32 nanoseconds as no difference.
25308
25309 2009-10-28  Jim Meyering  <meyering@redhat.com>
25310
25311         fprintftime: wrap macro code argument in "do {...} while(0)"
25312         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25313         cpy macro must be a statement that can be followed by a semicolon.
25314         Now that the else clause contains a comment and is hence longer
25315         than one line, I require curly braces.  That in turn requires
25316         that we wrap this code block in the standard do...while(0).
25317
25318         fprintftime: remove stray semicolon from previous change
25319         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25320
25321         fprintftime: avoid a warning about ignored fwrite return value
25322         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25323         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25324         that is unsafe.
25325         * modules/fprintftime (Depends-on): Add ignore-value.
25326
25327         exclude: avoid an unwarranted warning
25328         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25329
25330 2009-10-27  Eric Blake  <ebb9@byu.net>
25331
25332         fseek: avoid compilation failure when fflush is replaced
25333         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25334         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25335         module is in use.
25336         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25337         module is not in use; since REPLACE_FSEEK worked otherwise.
25338         (GNULIB_FTELLO): Likewise for ftell.
25339         Reported by Ian Beckwith and others.
25340
25341 2009-10-27  Bruno Haible  <bruno@clisp.org>
25342
25343         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25344         Reported by Jim Meyering.
25345
25346 2009-10-27  Jim Meyering  <jim@meyering.net>
25347             Bruno Haible  <bruno@clisp.org>
25348
25349         Avoid warning despite dropping the return value of fwrite.
25350         * lib/unicodeio.c: Include ignore-value.h.
25351         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25352         * modules/unicodeio (Depends-on): Add ignore-value.
25353
25354 2009-10-26  Eric Blake  <ebb9@byu.net>
25355
25356         areadlinkat: fix fallback path
25357         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25358         pointer and zero.
25359
25360 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25361
25362         Use a better IO block size for modern systems
25363         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25364         * lib/md2.c: Likewise.
25365         * lib/md4.c: Likewise.
25366         * lib/md5.c: Likewise.
25367         * lib/sha1.c: Likewise.
25368         * lib/sha256.c: Likewise.
25369         * lib/sha512.c: Likewise.
25370
25371 2009-10-22  Eric Blake  <ebb9@byu.net>
25372
25373         tests: avoid several compiler warnings
25374         * tests/test-getcwd.c (main): Avoid buffer underflow.
25375         * tests/test-getdate.c (main): String literals are not safe with
25376         putenv, so use setenv.  Declare unused argument.
25377         * modules/getdate-tests (Depends-on): Add setenv.
25378         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25379         problems with string literals in char *.
25380         * tests/test-hash.c (main): Avoid shadowing declaration.
25381         (insert_new): Treat string literals as char const *.
25382         * tests/test-getopt.h (test_getopt): Likewise.
25383         (getopt_loop): Alter types to minimize casting elsewhere.
25384         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25385         (test_getopt_long_posix): Likewise.
25386         (do_getopt_long): Add wrapper to minimize casting.
25387         * tests/test-atexit.c (clear_temp_file): Use void.
25388         * tests/test-areadlink-with-size.c (main): Declare unused
25389         arguments.
25390         * tests/test-areadlink.c (main): Likewise.
25391         * tests/test-areadlinkat-with-size.c (main): Likewise.
25392         * tests/test-areadlinkat.c (main): Likewise.
25393         * tests/test-canonicalize-lgpl.c (main): Likewise.
25394         * tests/test-canonicalize.c (main): Likewise.
25395         * tests/test-dirent-safer.c (main): Likewise.
25396         * tests/test-dirname.c (main): Likewise.
25397         * tests/test-dup2.c (main): Likewise.
25398         * tests/test-fchdir.c (main): Likewise.
25399         * tests/test-fcntl-h.c (main): Likewise.
25400         * tests/test-fcntl-safer.c (main): Likewise.
25401         * tests/test-fdopendir.c (main): Likewise.
25402         * tests/test-fdutimensat.c (main): Likewise.
25403         * tests/test-fflush.c (main): Likewise.
25404         * tests/test-filenamecat.c (main): Likewise.
25405         * tests/test-filevercmp.c (main): Likewise.
25406         * tests/test-fopen-safer.c (main): Likewise.
25407         * tests/test-fopen.c (main): Likewise.
25408         * tests/test-fpending.c (main): Likewise.
25409         * tests/test-fpurge.c (main): Likewise.
25410         * tests/test-freading.c (main): Likewise.
25411         * tests/test-fstatat.c (main): Likewise.
25412         * tests/test-fsync.c (main): Likewise.
25413         * tests/test-futimens.c (main): Likewise.
25414         * tests/test-getndelim2.c (main): Likewise.
25415         * tests/test-gettimeofday.c (main): Likewise.
25416         * tests/test-getopt.c (main): Likewise.
25417         * tests/test-i-ring.c (main): Likewise.
25418         * tests/test-inttypes.c (main): Likewise.
25419         * tests/test-link.c (main): Likewise.
25420         * tests/test-lstat.c (main): Likewise.
25421         * tests/test-math.c (main): Likewise.
25422         * tests/test-md5.c (main): Likewise.
25423         * tests/test-memchr2.c (main): Likewise.
25424         * tests/test-memrchr.c (main): Likewise.
25425         * tests/test-mkdir.c (main): Likewise.
25426         * tests/test-mkdirat.c (main): Likewise.
25427         * tests/test-mkfifoat.c (main): Likewise.
25428         * tests/test-open.c (main): Likewise.
25429         * tests/test-openat-safer.c (main): Likewise.
25430         * tests/test-openat.c (main): Likewise.
25431         * tests/test-quotearg.c (main): Likewise.
25432         * tests/test-rawmemchr.c (main): Likewise.
25433         * tests/test-readlink.c (main): Likewise.
25434         * tests/test-remove.c (main): Likewise.
25435         * tests/test-rename.c (main): Likewise.
25436         * tests/test-renameat.c (main): Likewise.
25437         * tests/test-rmdir.c (main): Likewise.
25438         * tests/test-sha1.c (main): Likewise.
25439         * tests/test-signal.c (main): Likewise.
25440         * tests/test-sigaction.c (main): Likewise.
25441         * tests/test-stat.c (main): Likewise.
25442         * tests/test-stat-time.c (main): Likewise.
25443         * tests/test-stddef.c (main): Likewise.
25444         * tests/test-stdint.c (main): Likewise.
25445         * tests/test-stdio.c (main): Likewise.
25446         * tests/test-stdlib.c (main): Likewise.
25447         * tests/test-strchrnul.c (main): Likewise.
25448         * tests/test-strerror.c (main): Likewise.
25449         * tests/test-string.c (main): Likewise.
25450         * tests/test-strtod.c (main): Likewise.
25451         * tests/test-strverscmp.c (main): Likewise.
25452         * tests/test-symlink.c (main): Likewise.
25453         * tests/test-symlinkat.c (main): Likewise.
25454         * tests/test-sys_stat.c (main): Likewise.
25455         * tests/test-sys_time.c (main): Likewise.
25456         * tests/test-time.c (main): Likewise.
25457         * tests/test-unistd.c (main): Likewise.
25458         * tests/test-unlink.c (main): Likewise.
25459         * tests/test-unlinkat.c (main): Likewise.
25460         * tests/test-utimens.c (main): Likewise.
25461         * tests/test-utimensat.c (main): Likewise.
25462         * tests/test-version-etc.c (main): Likewise.
25463         * tests/test-wchar.c (main): Likewise.
25464         * tests/test-wctype.c (main): Likewise.
25465         * tests/test-xprintf-posix.c (main): Likewise.
25466         * tests/test-posixtm.c (main): Likewise.
25467         (STREQ): Delete unused macro.
25468         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25469         shadowed variables.
25470         * tests/test-memchr.c (main): Likewise.
25471
25472 2009-10-21  Eric Blake  <ebb9@byu.net>
25473
25474         areadlinkat: avoid failure on older glibc
25475         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25476         rather than mis-comparing 0 against FUNC_RESULT of char*.
25477
25478 2009-10-21  Bruno Haible  <bruno@clisp.org>
25479
25480         * modules/stpncpy (License): Relicense under LGPLv2+.
25481         Reported by David Lutterkort <lutter@redhat.com>.
25482
25483 2009-10-20  Eric Blake  <ebb9@byu.net>
25484
25485         utimensat: work around Solaris 9 bug
25486         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25487         has trailing slash bugs.
25488         * tests/test-lutimens.h (test_lutimens): Enhance test.
25489         * tests/test-utimens.h (test_utimens): Likewise.
25490         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25491         * doc/posix-functions/utimes.texi (utimes): Likewise.
25492         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25493         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25494         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25495         * doc/posix-functions/futimens.texi (futimens): Likewise.
25496
25497         fdutimensat: new module
25498         * modules/fdutimensat: New file.
25499         * lib/fdutimensat.c (fdutimensat): Likewise.
25500         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25501         * MODULES.html.sh (File system functions): Mention module.
25502         * modules/fdutimensat-tests: New test.
25503         * tests/test-fdutimensat.c: Likewise.
25504
25505         doc: regenerate INSTALL
25506         * doc/INSTALL: Reflect recent autoconf update.
25507         * doc/INSTALL.ISO: Likewise.
25508         * doc/INSTALL.UTF-8: Likewise.
25509
25510 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25511
25512         acl: warn if ACL support is not detected
25513         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25514
25515 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25516
25517         * lib/nproc.h: Add extern "C" block for C++.
25518
25519 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25520             Bruno Haible  <bruno@clisp.org>
25521
25522         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25523         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25524         * doc/posix-functions/isalpha.texi: Likewise.
25525         * doc/posix-functions/isblank.texi: Likewise.
25526         * doc/posix-functions/iscntrl.texi: Likewise.
25527         * doc/posix-functions/isdigit.texi: Likewise.
25528         * doc/posix-functions/isgraph.texi: Likewise.
25529         * doc/posix-functions/islower.texi: Likewise.
25530         * doc/posix-functions/isprint.texi: Likewise.
25531         * doc/posix-functions/ispunct.texi: Likewise.
25532         * doc/posix-functions/isspace.texi: Likewise.
25533         * doc/posix-functions/isupper.texi: Likewise.
25534         * doc/posix-functions/isxdigit.texi: Likewise.
25535
25536 2009-10-18  Bruno Haible  <bruno@clisp.org>
25537
25538         Tests for module 'isblank'.
25539         * modules/isblank-tests: New file.
25540         * tests/test-isblank.c: New file.
25541
25542         New module 'isblank'.
25543         * lib/isblank.c: New file.
25544         * m4/isblank.m4: New file.
25545         * modules/isblank: New file.
25546         * doc/posix-functions/isblank.texi: Mention the new module.
25547
25548 2009-10-18  Bruno Haible  <bruno@clisp.org>
25549
25550         New module 'ctype'.
25551         * lib/ctype.in.h: New file.
25552         * m4/ctype.m4: New file.
25553         * modules/ctype: New file.
25554         * doc/posix-headers/ctype.texi: Mention the new module.
25555
25556 2009-10-18  Jim Meyering  <meyering@redhat.com>
25557
25558         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25559         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25560         right after its initialization, rather than farther down.
25561         Keeping these in close proximity makes it easier to ensure
25562         that each such variable is initialized.  E.g.,
25563
25564             LIB_CLOCK_GETTIME=
25565             AC_SUBST([LIB_CLOCK_GETTIME])
25566
25567         This change also increments these serial numbers.
25568         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25569         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25571
25572 2009-10-18  Bruno Haible  <bruno@clisp.org>
25573
25574         Don't let environment variables perturb build.
25575         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25576         (gl_PREREQ_GETHRXTIME): ... not here.
25577
25578 2009-10-18  Bruno Haible  <bruno@clisp.org>
25579
25580         Avoid symlink attack in localcharset module.
25581         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25582         (O_NOFOLLOW): Define fallback.
25583         (get_charset_aliases): Don't open the file if it is a symbolic link.
25584         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25585         gl_FCNTL_H.
25586         (gl_FCNTL_H): Require it.
25587         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25588         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25589         Reported by Fergal Glynn <fglynn@veracode.com>.
25590
25591 2009-10-18  Bruno Haible  <bruno@clisp.org>
25592
25593         Implement nproc for mingw.
25594         * lib/nproc.c: Include <windows.h>
25595         (num_processors): On native Windows platforms, try GetSystemInfo.
25596
25597 2009-10-18  Bruno Haible  <bruno@clisp.org>
25598
25599         Implement nproc for IRIX.
25600         * lib/nproc.c: Include <sys/sysmp.h>.
25601         (num_processors): On IRIX systems, try sysmp.
25602         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25603
25604 2009-10-18  Bruno Haible  <bruno@clisp.org>
25605
25606         Implement nproc for HP-UX.
25607         * lib/nproc.c: Include <sys/pstat.h>
25608         (num_processors): On HP-UX systems, try pstat_getdynamic.
25609         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25610         pstat_getdynamic.
25611
25612 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25613             Bruno Haible  <bruno@clisp.org>
25614
25615         Implement nproc for NetBSD, OpenBSD.
25616         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25617         (ARRAY_SIZE): New macro.
25618         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25619         * m4/nproc.m4: New file.
25620         * modules/nproc (Files): Add m4/nproc.m4.
25621         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25622         (Makefile.am): Instead, augment lib_SOURCES.
25623
25624 2009-10-18  Bruno Haible  <bruno@clisp.org>
25625
25626         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25627         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25628         sys/param.h.
25629
25630 2009-10-16  Eric Blake  <ebb9@byu.net>
25631
25632         utimensat: new module
25633         * modules/utimensat: New file.
25634         * lib/utimensat.c (utimensat): Likewise.
25635         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25636         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25637         so we can work around Linux bugs.
25638         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25639         * modules/sys_stat (Makefile.am): Substitute them.
25640         * lib/sys_stat.in.h (utimensat): Declare it.
25641         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25642         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25643         * modules/utimensat-tests: New test.
25644         * tests/test-utimensat.c: Likewise.
25645
25646         utimens: let lutimens work on non-symlinks
25647         * lib/utimens.c (lutimens): Fall back to utimens rather than
25648         failing with ENOSYS, when file is not a symlink.
25649         (utimens): Reduce redirection.
25650         * tests/test-lutimens.h (test_lutimens): Update test to cover
25651         non-symlinks.
25652         * tests/test-utimens.h (test_utimens): Update test to cover
25653         symlinks.
25654         * tests/test-utimens.c (main): Update caller.
25655
25656         utimens: cache whether utimensat syscall works
25657         * lib/utimens.c (utimensat_works_really): New cache variable.
25658         (fdutimens, lutimens): Use it to avoid failing syscall.
25659
25660         test-stat-time, test-utimens: improve portability
25661         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25662         ext4 on alpha, and for cygwin.
25663         * tests/test-utimens-common.h: New file.
25664         (nap): Factor delays into single function.
25665         * tests/test-lutimens.h (test_lutimens): Use new header.
25666         * tests/test-futimens.h (test_futimens): Likewise.
25667         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25668         timestamps to occur from same machine, as was done previously for
25669         test_utimens.
25670         * modules/utimens-tests (Files): Ship new file.
25671         * modules/futimens-tests (Files): Likewise.
25672         Reported in part by Jim Meyering.
25673
25674         sys_stat: sort replacement declarations
25675         * lib/sys_stat.in.h: Sort declarations.
25676         * lib/futimens.c (futimens): Fix typo.
25677
25678 2009-10-15  Jim Meyering  <meyering@redhat.com>
25679
25680         don't let environment settings perturb build
25681         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25682         could cause a configure-time and/or build-time malfunction.
25683         Typically, a configure-time function-in-library test is performed
25684         via code like this:
25685
25686           LIB_VAR=
25687           AC_SUBST([LIB_VAR])
25688           prefix_saved_LIBS=$LIBS
25689             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25690                        [test "$ac_cv_search_FUNC" = "none required" ||
25691                         LIB_VAR=$ac_cv_search_FUNC])
25692           LIBS=$prefix_saved_LIBS
25693
25694         However, in each of the files affected by this change, the LIB_VAR=
25695         initialization was omitted.  Thus, when set in the environment, its
25696         value would propagate into generated Makefiles when FUNC is not found
25697         in LIB_NAME.
25698         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25699         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25701
25702 2009-10-14  Eric Blake  <ebb9@byu.net>
25703
25704         fchdir: avoid infinite recursion in mingw
25705         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25706         recursing.
25707
25708         test-stat-time: port to mingw
25709         * tests/test-stat-time.c (force_unlink): Return a value.
25710         (test_ctime) [W32]: Fix compilation error.
25711         (nap): Don't call usleep with too large an argument.  Use
25712         force_unlink.
25713         * doc/pastposix-functions/usleep.texi (usleep): Document the
25714         portability issue.
25715
25716 2009-10-13  Jim Meyering  <meyering@redhat.com>
25717
25718         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25719         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25720         * modules/pipe-filter-ii: Likewise.
25721         * modules/sys_socket-tests: Likewise.
25722         * modules/tsearch-tests: Likewise.
25723         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25724         (check): Depend on it.
25725
25726 2009-10-12  Eric Blake  <ebb9@byu.net>
25727
25728         utimens-tests: port to NFS file systems
25729         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25730         comparisons to avoid spurious failures from timestamp drift
25731         between NFS machines.
25732
25733 2009-10-12  Eric Blake  <ebb9@byu.net>
25734
25735         stat-time-tests: minor cleanups
25736         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25737         * tests/test-stat-time.c (nap): Separate assignment from call.
25738         Suggested by Paolo Bonzini and Bruno Haible.
25739
25740         sys_stat: guarantee struct timespec
25741         * lib/sys_stat.in.h (includes): Always include <time.h>
25742         * modules/sys_stat (Depends-on): Add time.
25743         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25744         mode_t permission values.
25745         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25746         get at subsecond timestamps.
25747
25748 2009-10-10  Eric Blake  <ebb9@byu.net>
25749
25750         futimens: new module
25751         * modules/futimens: New file.
25752         * lib/futimens.c (futimens): Likewise.
25753         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25754         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25755         we can work around Linux bugs.
25756         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25757         * modules/sys_stat (Makefile.am): Substitute them.
25758         * lib/sys_stat.in.h (futimens): Declare it.
25759         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25760         * doc/posix-functions/futimens.texi (futimens): Likewise.
25761         * modules/futimens-tests: New test.
25762         * tests/test-futimens.c: Likewise.
25763
25764         utimens: introduce fdutimens
25765         * lib/utimens.h (fdutimens): New prototype.
25766         * lib/utimens.c (gl_futimens): Move guts...
25767         (fdutimens): ...to new interface.
25768         * tests/test-utimens.c (do_fdutimens): Use it.
25769
25770         utimens: add UTIME_NOW and UTIME_OMIT support
25771         * lib/utimens.c (validate_timespec, update_timespec): New helper
25772         functions.
25773         (gl_futimens, lutimens): Use them.
25774         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25775         stdbool, sys_stat.
25776         (Link): Mention resulting library dependency.
25777         * modules/utimecmp (Link): Likewise.
25778         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25779         (Makefile.am): Pick up library dependency.
25780         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25781         definition.
25782         * tests/test-sys_stat.c: Test the definitions.
25783         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25784         * NEWS: Document library dependency.
25785
25786         utimecmp: support symlink timestamps
25787         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25788         hashing when possible.  Use pathconf when available.
25789         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25790         * modules/utimecmp (Depends-on): Add lstat.
25791
25792         utimens: add lutimens interface
25793         * lib/utimens.c (lutimens): New function.
25794         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25795         * lib/utimens.h (lutimens): Declare new interface.
25796         * tests/test-utimens.c (main): Enhance test.
25797         * tests/test-lutimens.h (test_lutimens): New file.
25798         * modules/utimens-tests (Files): Distribute it.
25799         (Depends-on): Add symlink.
25800         (configure.ac): Check for usleep.
25801
25802         utimens: validate futimens usage
25803         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25804         fewer syscalls on failure later on.  Avoid compiler warning on
25805         mingw.
25806         * modules/utimens (Depends-on): Add dup2.
25807
25808         utimens: add test
25809         * modules/utimens-tests: New test.
25810         * tests/test-utimens.h: New file.
25811         * tests/test-futimens.h: Likewise.
25812         * tests/test-utimens.c: Likewise.
25813
25814         doc: mention timestamp portability issues
25815         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25816         instead.
25817         * doc/posix-functions/utime.texi (utime): Likewise.
25818         * doc/posix-functions/utimes.texi (utimes): Likewise.
25819         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25820         instead.
25821         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25822         module.
25823         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25824         Mention weakness with symlink timestamps.
25825         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25826         to utimensat/futimens instead.
25827         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25828
25829         test-dup2: enhance test
25830         * tests/test-dup2.c (main): Also check AT_FDCWD.
25831
25832         test-stat-time: avoid more spurious failures
25833         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25834         xfs; and avoid race if the two timestamps cross quantization edge.
25835
25836         relocatable: prefer 'file system' over 'filesystem'
25837         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25838         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25839         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25840         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25841         * lib/relocatable.c (compute_curr_prefix): Likewise.
25842
25843 2009-10-10  Jim Meyering  <meyering@redhat.com>
25844
25845         stat-time-tests: check for the usleep function
25846         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25847
25848 2009-10-10  Bruno Haible  <bruno@clisp.org>
25849
25850         * modules/xnanosleep: Put the Link section after the Include section.
25851
25852 2009-10-09  Eric Blake  <ebb9@byu.net>
25853
25854         dup2: work around FreeBSD 6.1 bug
25855         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25856         * doc/posix-functions/dup2.texi (dup2): Document it.
25857         Reported by Nelson H. F. Beebe and Jim Meyering.
25858
25859         test-stat-time: port to buggy NFS clients
25860         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25861         (test_ctime): Also skip test if mtime and ctime are skewed.
25862
25863         maint: prefer 'file system' over 'filesystem'
25864         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25865         * doc/posix-functions/lstat.texi (lstat): Likewise.
25866         * lib/file-has-acl.c (file_has_acl): Likewise.
25867         * lib/fwriteerror.c [TEST]: Likewise.
25868         * tests/test-areadlink.h (test_areadlink): Likewise.
25869         * tests/test-areadlinkat-with-size.c (main): Likewise.
25870         * tests/test-areadlinkat.c (main): Likewise.
25871         * tests/test-canonicalize-lgpl.c (main): Likewise.
25872         * tests/test-canonicalize.c (main): Likewise.
25873         * tests/test-fstatat.c (main): Likewise.
25874         * tests/test-linkat.c (main): Likewise.
25875         * tests/test-lstat.h (test_lstat_func): Likewise.
25876         * tests/test-mkdir.h (test_mkdir): Likewise.
25877         * tests/test-readlink.h (test_readlink): Likewise.
25878         * tests/test-remove.c (main): Likewise.
25879         * tests/test-rename.h (test_rename): Likewise.
25880         * tests/test-renameat.c (main): Likewise.
25881         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25882         * tests/test-symlink.h (test_symlink): Likewise.
25883         * tests/test-symlinkat.c (main): Likewise.
25884         * tests/test-unlink.h (test_unlink_func): Likewise.
25885         * tests/test-unlinkat.c (main): Likewise.
25886
25887         maint: make realtime library usage explicit
25888         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25889         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25890         * modules/settime (Link): Likewise.
25891         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25892
25893         test-stat-time: speed up execution
25894         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25895         warning on mingw.
25896         (nap): New helper function.
25897         (prepare_test): Use it to reduce sleep time.
25898         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25899         execution.
25900         * modules/stat-time-tests (configure.ac): Check for usleep.
25901
25902 2009-10-09  Jim Meyering  <meyering@redhat.com>
25903
25904         selinux-h: always use getfilecon wrappers
25905         * lib/getfilecon.c: New file.
25906         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25907         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25908         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25909         (fgetfilecon): Provide a stub.
25910         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25911         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25912         file unconditionally.
25913         When <selinux/selinux.h> is found, arrange to use wrappers.
25914         * modules/selinux-h (Files): Add getfilecon.c.
25915         (Makefile.am): Substitute include-next-related bits
25916         into the now-always-generated selinux/selinux.h file.
25917         * doc/glibc-functions/lgetfilecon.texi: New file.
25918         * doc/glibc-functions/fgetfilecon.texi: New file.
25919         * doc/glibc-functions/getfilecon.texi: New file.
25920         * doc/glibc-functions/getfilecon-desc.texi: New file.
25921         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25922         which to pull in the new files.
25923         * MODULES.html.sh (Misc): Add selinux-h.
25924
25925 2009-10-08  Jim Meyering  <meyering@redhat.com>
25926
25927         unistd: fix comment typo
25928         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25929
25930 2009-10-08  Eric Blake  <ebb9@byu.net>
25931
25932         areadlink: use SIZE_MAX consistently
25933         * modules/areadlink (Depends-on): Add stdint.
25934         * modules/areadlink-with-size (Depends-on): Likewise.
25935         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25936         gives NULL; drop sys/types, since unistd gives size_t; and add
25937         stdint for SIZE_MAX.
25938         (SIZE_MAX): Rely on headers.
25939         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25940         and add stdint.
25941         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25942         (SIZE_MAX): Likewise.
25943         (INITIAL_BUF_SIZE): Turn into enum.
25944         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25945
25946 2009-10-08  Jim Meyering  <meyering@redhat.com>
25947
25948         areadlinkat: avoid compilation failure
25949         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25950         Fix typo in comment.
25951
25952 2009-10-07  Eric Blake  <ebb9@byu.net>
25953
25954         areadlinkat-with-size: new module
25955         * modules/areadlinkat-with-size: New module.
25956         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25957         * lib/areadlink.h (areadlinkat): Declare it.
25958         * MODULES.html.sh (File system functions): Mention it.
25959         * modules/areadlinkat-with-size-tests: New test.
25960         * tests/test-areadlinkat-with-size.c: New file.
25961
25962         xreadlinkat: new module
25963         * modules/xreadlinkat: New module.
25964         * lib/xreadlinkat.c (xreadlinkat): New file.
25965         * lib/xreadlink.h (xreadlinkat): Declare it.
25966         * MODULES.html.sh (File system functions): Mention it.
25967
25968         areadlinkat: new module
25969         * lib/at-func.c (FUNC_FAIL): New define.
25970         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25971         * modules/areadlinkat: New module.
25972         * lib/linkat.c (areadlinkat): Move...
25973         * lib/areadlinkat.c (areadlinkat): ...to new file.
25974         * lib/areadlink.h (areadlinkat): Declare it.
25975         * modules/linkat (Depends-on): Add areadlinkat.
25976         * MODULES.html.sh (File system functions): Mention it.
25977         * modules/areadlinkat-tests: New test.
25978         * tests/test-areadlinkat.c: New file.
25979
25980         areadlink, areadlink-with-size: add tests
25981         * modules/areadlink-tests: New test.
25982         * modules/areadlink-with-size-tests: Likewise.
25983         * tests/test-areadlink.h: New file.
25984         * tests/test-areadlink.c: Likewise.
25985         * tests/test-areadlink-with-size.c: Likewise.
25986
25987         maint: minor cleanups
25988         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25989         _UNUSED_PARAMETER_ instead.
25990         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25991         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25992         * modules/linkat-tests (Files): Distribute test-link.h.
25993
25994         openat, utimens: whitespace cleanup
25995         * lib/openat.c: Prefer space throughout, rather than mix of 8
25996         spaces vs. tabs.
25997         * lib/at-func.c: Likewise.
25998         * lib/utimens.c: Likewise.
25999
26000         openat: avoid using wrong fd
26001         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26002         working directory chooses same fd.
26003         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26004
26005         mkdir, mkdirat: fix cygwin 1.5.x bug
26006         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26007         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26008         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26009         bug.
26010         (gl_PREREQ_MKDIR): Delete unused macro.
26011         * modules/mkdir (Files): Track file rename.
26012         (configure.ac): Update macro name.
26013         * modules/openat (Depends-on): Add mkdir.
26014         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26015
26016         mkdir, mkdirat: add tests
26017         * modules/mkdir-tests: New test.
26018         * tests/test-mkdir.h: New file.
26019         * tests/test-mkdir.c: Likewise.
26020         * tests/test-mkdirat.c: Likewise.
26021         * modules/openat-tests (Files): Add new files.
26022         (Makefile.am): Run new test.
26023
26024 2009-10-06  Eric Blake  <ebb9@byu.net>
26025
26026         doc: tweak *at function documentation
26027         * doc/posix-functions/faccessat.texi (faccessat): Mention
26028         known issue with replacement.
26029         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26030         * doc/posix-functions/linkat.texi (linkat): Likewise.
26031         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26032         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26033         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26034         * doc/posix-functions/renameat.texi (renameat): Likewise.
26035         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26036
26037         openat: fix GNU/Hurd bug in unlinkat
26038         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26039         broken.
26040         * doc/posix-functions/unlink.texi (unlink): Document this.
26041         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26042
26043         fdopendir: fix GNU/Hurd bug
26044         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26045         allowing non-directory fds.
26046         * lib/fdopendir.c (rpl_fdopendir): Work around it.
26047         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26048         * modules/dirent (Makefile.am): Substitute it.
26049         * lib/dirent.in.h (fdopendir): Declare replacement.
26050         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
26051         * tests/test-fdopendir.c (main): Test something other than
26052         /dev/null, since on Hurd that behaves like a directory.
26053
26054         test-symlink: port to GNU/Hurd
26055         * tests/test-symlink.h (test_symlink): Relax expected errno.
26056
26057         doc: tweak more cygwin information
26058         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26059         now compatible with glibc.
26060         * doc/posix-functions/getopt.texi (getopt): Likewise.
26061
26062         getopt-gnu: add another test
26063         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26064         guarantee behavior relied on by m4.
26065         * tests/test-getopt.c (main): Use it.
26066         * modules/getopt-posix-tests (Depends-on): Add setenv.
26067         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26068
26069         getopt: fix compilation on darwin
26070         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26071         include.
26072         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26073         Reported by Ludovic Courtès.
26074
26075 2009-10-06  Bruno Haible  <bruno@clisp.org>
26076
26077         * modules/size_max (Description): Discourage its use.
26078         Reported by Simon Josefsson.
26079
26080 2009-10-06  Jim Meyering  <meyering@redhat.com>
26081
26082         linkat: avoid compilation failure
26083         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26084
26085 2009-10-05  Eric Blake  <ebb9@byu.net>
26086
26087         linkat: support Linux 2.6.17
26088         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26089         linkat on Linux, but allow cache variable override.
26090         * lib/linkat.c (rpl_linkat): Define override.
26091         * modules/linkat (Depends-on): Add symlinkat.
26092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26093         * modules/unistd (Makefile.am): Substitute it.
26094         * lib/unistd.in.h (linkat): Declare replacement.
26095         Reported by Pádraig Brady.
26096
26097         quotearg: port test to systems with C.UTF-8 locale
26098         * tests/test-quotearg.c (struct result_strings): Add another
26099         member, differentiating between C.ASCII and C.UTF-8 handling.
26100         (compare_strings): Add parameter.
26101         (main): Adjust all callers.
26102
26103         getopt: avoid clash with FreeBSD _getopt_internal
26104         * lib/getopt.in.h (_getopt_internal): Override the name.
26105         * lib/getopt_int.h (includes): Pick up any overrides.
26106         Reported by Reuben Thomas.
26107
26108         hash: allow C89 compilation
26109         * lib/hash.c (check_tuning): Move declaration before statement.
26110         Reported by Reuben Thomas.
26111
26112 2009-10-05  Karl Berry  <karl@gnu.org>
26113
26114         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26115
26116 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26117             Bruno Haible  <bruno@clisp.org>
26118
26119         * lib/uname.c (uname): Use a table-driven algorithm to compute
26120         Windows NT versions.
26121
26122 2009-10-04  Bruno Haible  <bruno@clisp.org>
26123
26124         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26125         program_invocation_short_name.
26126         * modules/progname (configure.ac): Test for presence of
26127         program_invocation_short_name.
26128         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26129
26130 2009-10-04  Bruno Haible  <bruno@clisp.org>
26131
26132         * lib/progname.c (set_program_name): Fix comment.
26133         Reported by Jim Meyering.
26134
26135 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26136             Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/uname.c: Include <string.h>.
26139         (uname): Do only one call to GetVersionEx in the common case.
26140
26141 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26142             Bruno Haible  <bruno@clisp.org>
26143
26144         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26145         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26146         (uname): Add support for Windows CE and various non-x86 CPU types.
26147
26148 2009-10-03  Bruno Haible  <bruno@clisp.org>
26149
26150         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26151         invocation to tests/configure.ac.
26152         Reported by Ian Beckwith <ianb@erislabs.net>.
26153
26154 2009-10-02  Eric Blake  <ebb9@byu.net>
26155
26156         fchdir: avoid compiler warning
26157         * lib/fchdir.c (canonicalize_file_name)
26158         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26159
26160         test-open: support mingw errno values
26161         * tests/test-open.h (test_open): Relax test.
26162         * tests/test-fopen.h (test_fopen): Likewise.
26163         * tests/test-openat-safer.c (main): Likewise.
26164
26165         open: fix opening directory on mingw
26166         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26167
26168         test-open: on GNU/Hurd, /dev/null is a directory
26169         * tests/test-fopen.h (main): Rename...
26170         (test_fopen): ...to this.  Use a guaranteed non-directory when
26171         confirming open behavior on trailing slash.
26172         * tests/test-openat-safer.c (main): Likewise.
26173         * tests/test-open.h (main): Likewise....
26174         (test_open): ...to this.
26175         * tests/test-fopen.c (main): Adjust caller.
26176         * tests/test-fopen-safer.c (main): Likewise.
26177         * tests/test-open.c (main): Likewise.
26178         * tests/test-fcntl-safer.c (main): Likewise.
26179         Reported by Samuel Thibault.
26180
26181         rename, fchdir: don't ignore chdir failure
26182         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26183         * lib/rename.c (rpl_rename) [W32]: Likewise.
26184         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26185         an empty destination directory if source cannot be renamed,
26186         although there is still possibility for failure.
26187         * doc/posix-functions/rename.texi (rename): Document the race.
26188         Reported by Jim Meyering.
26189
26190         maint: cleanup whitespace in recent commits
26191         * lib/rename.c (rpl_rename): Remove tabs.
26192         * tests/test-link.h (test_link): Likewise.
26193         * lib/fchdir.c (get_name): Likewise.
26194         Reported by Jim Meyering.
26195
26196 2009-10-02  Ben Pfaff  <blp@gnu.org>
26197
26198         relocatable-prog-wrapper: Add missing dependency on
26199         double-slash-root.
26200         * modules/relocatable-prog-wrapper: Add dependency.
26201         Reported by Ian Beckwith <ianb@erislabs.net>.
26202
26203 2009-10-02  Eric Blake  <ebb9@byu.net>
26204
26205         renameat: fix Solaris bugs
26206         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26207         needed fixing.
26208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26209         * modules/stdio (Makefile.am): Substitute it.
26210         * lib/stdio.in.h (renameat): Declare replacement.
26211         * lib/renameat.c (rpl_renameat): Implement fix.
26212
26213         renameat: new module
26214         * modules/renameat: New file.
26215         * lib/renameat.c (renameat): Likewise.
26216         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26218         * modules/stdio (Makefile.am): Substitute them.
26219         * lib/stdio.in.h (renameat): Declare it.
26220         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26221         * doc/posix-functions/renameat.texi (renameat): Likewise.
26222         * modules/renameat-tests: New test.
26223         * tests/test-renameat.c: Likewise.
26224
26225         rename: fix mingw bugs
26226         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26227         directory overwrite bugs.
26228
26229         rename: fix another cygwin 1.5 bug
26230         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26231         checks.
26232         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26233         unnecessary cygwin workarounds.  Also work around bug with moving
26234         full directory onto an empty one.
26235         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26236
26237         rename-dest-slash: merge into rename module
26238         * modules/rename-dest-slash (Status): Mark obsolete.
26239         (Depends-on): Add rename.
26240         (Files): Let rename do it all.
26241         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26242         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26243         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26244         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26245         * lib/rename.c (rpl_rename): Update comments.
26246
26247         rename: fix cygwin 1.5.x bugs
26248         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26249         * lib/rename.c (rpl_rename): Work around them.
26250         * modules/rename (Depends-on): Add same-inode.
26251
26252         rename: fix Solaris 10 bug
26253         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26254         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26255         was the only bug.
26256
26257         rename: fix Solaris 9 bug
26258         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26259         on non-directory.  Avoid calling exit.
26260         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26261         strdup.
26262         * modules/rename-tests (Depends-on): Drop lstat.
26263         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26264         (gl_PREREQ_RENAME): Delete unused macro.
26265
26266         rename-dest-slash: fix NetBSD bug
26267         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26268         links.
26269         * modules/rename-dest-slash (Depends-on): Add same-inode.
26270
26271         rename-tests: new test, exposes several platform bugs
26272         * modules/rename-tests: New file.
26273         * tests/test-rename.h: Likewise.
26274         * tests/test-rename.c: Likewise.
26275         * doc/posix-functions/rename.texi (rename): Improve documentation,
26276         including bugs that will eventually be fixed in gnulib.
26277
26278 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26279
26280         * lib/uname.c: Include <stdlib.h>
26281         (uname): Assume version info is available.
26282
26283 2009-10-02  Jim Meyering  <meyering@redhat.com>
26284
26285         gnu-web-doc-update: correct --help output
26286         * build-aux/gnu-web-doc-update: Make --help output relevant.
26287
26288         gnu-web-doc-update: add standard options
26289         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26290
26291         gnu-web-doc-update: New module.
26292         Use this script to automatically update the on-line web documentation
26293         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26294         * modules/gnu-web-doc-update: New file, from coreutils.
26295         * build-aux/gnu-web-doc-update: New script.
26296
26297 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26298
26299         link: LoadLibrary is not needed.
26300         * lib/link.c: Use GetModuleHandle.
26301
26302 2009-10-01  Eric Blake  <ebb9@byu.net>
26303
26304         getopt: bump serial number
26305         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26306         change.
26307
26308         tests: tighten link, rmdir, and remove tests
26309         * tests/test-link.h (includes): No need to use <config.h> here.
26310         Clean up if directory hard link was created, otherwise test for
26311         trailing '.'.
26312         * tests/test-linkat.c (main): Simplify.
26313         * tests/test-remove.c (main): Enhance test for trailing '.'.
26314         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26315
26316 2009-10-01  Jim Meyering  <meyering@redhat.com>
26317
26318         maint.mk: requiring "make major" was annoying, for a "minor" release.
26319         What is intended is "stable", to contrast with alpha and beta,
26320         so require "make stable", not "make major".
26321         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26322         (get_tool_versions): Likewise.
26323         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26324
26325 2009-09-30  Ben Pfaff  <blp@gnu.org>
26326
26327         Fix broken build of replacement for Windows tmpfile().
26328         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26329         flags argument added along with the 'mkostemp' module.
26330
26331 2009-09-28  Bruno Haible  <bruno@clisp.org>
26332
26333         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26334         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26335         to 'remove_elt'.
26336         (gl_list_remove): Update.
26337         * lib/gl_list.c (gl_list_remove): Update.
26338         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26339         to 'remove_elt'.
26340         (gl_oset_remove): Update.
26341         * lib/gl_list.c (gl_oset_remove): Update.
26342         Reported by Eric Blake.
26343
26344 2009-09-28  Eric Blake  <ebb9@byu.net>
26345
26346         doc: mention yet more cygwin 1.7 status
26347         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26348         cygwin.
26349         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26350         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26351
26352         argp: fix test failure
26353         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26354         that are not upper-case.  Pass correct range to tolower.
26355
26356 2009-09-27  Jim Meyering  <meyering@redhat.com>
26357
26358         test-yesno: work around sparc-dash here-document infelicity
26359         Without this change, the literal \177 byte in a here document
26360         would make dash 0.5.5.1-3 access uninitialized memory.
26361         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26362         Instead, use a marker, "@", and filter through tr to create the desired
26363         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26364
26365 2009-09-27  Bruno Haible  <bruno@clisp.org>
26366
26367         Disable untested support for new flavours of ACLs on AIX.
26368         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26369         progress.
26370         * lib/set-mode-acl.c (qset_acl): Likewise.
26371
26372 2008-12-07  Bruno Haible  <bruno@clisp.org>
26373
26374         Add support for new flavours of ACLs on AIX. (Untested.)
26375         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26376         (file_has_acl): Add support for newer AIX.
26377         * lib/set-mode-acl.c (qset_acl): Likewise.
26378         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26379         Rainer Tammer <tammer@tammer.net>.
26380
26381 2009-09-26  Eric Blake  <ebb9@byu.net>
26382
26383         argp: fix compilation of getopt
26384         * lib/getopt.in.h (includes): Use different guard than glibc.
26385         Reported by Sergey Poznyakoff.
26386
26387         doc: mention more cygwin 1.7 status
26388         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26389         bug.
26390         * doc/posix-functions/execl.texi (execl): Likewise.
26391         * doc/posix-functions/execle.texi (execle): Likewise.
26392         * doc/posix-functions/execlp.texi (execlp): Likewise.
26393         * doc/posix-functions/execv.texi (execv): Likewise.
26394         * doc/posix-functions/execve.texi (execve): Likewise.
26395         * doc/posix-functions/execvp.texi (execvp): Likewise.
26396         * doc/glibc-functions/canonicalize_file_name.texi
26397         (canonicalize_file_name): Cygwin 1.7 now provides this.
26398         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26399         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26400         on AT_SYMLINK_NOFOLLOW.
26401
26402 2009-09-24  Eric Blake  <ebb9@byu.net>
26403
26404         test-linkat: make test more robust
26405         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26406
26407         getopt: fix inclusion guards for cygwin
26408         * modules/getopt-posix (Depends-on): Add include-next.
26409         (Makefile.am): Substitute more items in replacement header.
26410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26411         <getopt.h>.
26412         * lib/getopt.in.h (includes): Use split inclusion guard, and
26413         prefer <getopt.h> over include <unistd.h> when one is present.
26414         (option): Also override name of 'struct option'.
26415
26416         same-inode: revert prior change; it is not yet ready
26417         * NEWS: Undo mention of this change.
26418         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26419         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26420         * lib/cycle-check.c (cycle_check): Likewise.
26421         * lib/same.c (same_name): Likewise.
26422         * lib/at-func2.c (at_func2): Likewise.
26423
26424 2009-09-23  Eric Blake  <ebb9@byu.net>
26425
26426         linkat: new module
26427         * modules/linkat: New file.
26428         * lib/at-func2.c (at_func2): Likewise.
26429         * lib/linkat.c (linkat): Likewise.
26430         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26431         * lib/openat-priv.h (at_func2): Add declaration.
26432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26433         * modules/unistd (Makefile.am): Substitute them.
26434         * lib/unistd.in.h (linkat): Declare it.
26435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26436         * doc/posix-functions/linkat.texi (linkat): Likewise.
26437         * doc/posix-functions/link.texi (link): Tweak wording.
26438         * tests/test-link.c (main): Move guts...
26439         * tests/test-link.h (test_link): ...into new file.
26440         * modules/linkat-tests: New test.
26441         * tests/test-linkat.c: Likewise.
26442         * modules/link-tests (Files): Ship new file.
26443         (Depends-on): Add stdbool.
26444
26445         dirname: add library-safe mdir_name
26446         * lib/dirname.h (mdir_name): New prototype.
26447         * lib/dirname.c (dir_name): Move guts...
26448         (mdir_name): ...to new function that avoids xalloc_die.
26449
26450         fchdir: another mingw fix
26451         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26452         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26453         on mingw (where it has not yet been ported), and make it optional
26454         elsewhere.
26455         (_gl_register_fd): Use it.
26456
26457         same-inode: make SAME_INODE tri-state, to port to mingw
26458         * NEWS: Mention this change.
26459         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26460         st_ino always being 0.
26461         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26462         * lib/cycle-check.c (cycle_check): Likewise.
26463         * lib/same.c (same_name): Likewise.
26464
26465         lstat: avoid mingw compilation error
26466         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26467         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26468         lstat ourselves.
26469         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26470         was adequate.
26471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26472         the checks for lstat.
26473         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26474
26475         link: fix test failure on Solaris 9
26476         * lib/link.c (rpl_link): Don't assume link will catch bogus
26477         trailing slash on source.
26478
26479         test-symlinkat: enhance test
26480         * tests/test-readlink.c (main): Move guts...
26481         * tests/test-readlink.h (test_readlink): ...into new file.
26482         * tests/test-symlink.c (main): Move guts...
26483         * tests/test-symlink.h (test_symlink): ...into new file.
26484         * tests/test-symlinkat.c (main): Use new files for further
26485         coverage.
26486         (do_symlink, do_readlink): New helper functions.
26487         * modules/symlink-tests (Files): Ship new file.
26488         (Depends-on): Add stdbool.
26489         * modules/readlink-tests (Files): Ship new file.
26490         (Depends-on): Add stdbool.
26491         * modules/symlinkat-tests (Files): Use new files.
26492
26493 2009-09-23  Eric Blake  <ebb9@byu.net>
26494
26495         readlink: document portability issue with symlink length
26496         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26497         systems have bogus st_size on symlinks, and mention the
26498         areadlink-with-size module.
26499         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26500         * doc/posix-functions/readlink.texi (readlink): Mention the
26501         areadlink module, and ERANGE failure.
26502         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26503         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26504
26505         readlink: fix Solaris 9 bug with trailing slash
26506         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26507         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26508         * doc/posix-functions/readlink.texi (readlink): Document this.
26509         * modules/readlink-tests: New test.
26510         * tests/test-readlink.c: Likewise.
26511
26512         readlink: fix cygwin 1.5.x bug with return type
26513         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26514         * lib/unistd.in.h (readlink): Use ssize_t.
26515         * lib/readlink.c (readlink): Likewise.
26516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26517         * modules/unistd (Makefile.am): Substitute it.
26518         * lib/unistd.in.h (readlink): Declare replacement.
26519         * doc/posix-functions/readlink.texi (readlink): Document this.
26520
26521         symlink: use throughout gnulib
26522         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26523         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26524         symlink is not used.
26525         * modules/symlinkat (Depends-on): Add symlink.
26526         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26527         * modules/canonicalize-tests (Depends-on): Likewise.
26528         * modules/lstat-tests (Depends-on): Likewise.
26529         * modules/openat-tests (Depends-on): Likewise.
26530         * modules/remove-tests (Depends-on): Likewise.
26531         * modules/rmdir-tests (Depends-on): Likewise.
26532         * modules/unlink-tests (Depends-on): Likewise.
26533         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26534         * tests/test-canonicalize.c (symlink): Likewise.
26535         * tests/test-fstatat.c (symlink): Likewise.
26536         * tests/test-lstat.c (symlink): Likewise.
26537         * tests/test-remove.c (symlink): Likewise.
26538         * tests/test-rmdir.c (symlink): Likewise.
26539         * tests/test-unlink.c (symlink): Likewise.
26540         * tests/test-unlinkat.c (symlink): Likewise.
26541
26542         symlink: new module, for Solaris 9 bug
26543         * modules/symlink: New file.
26544         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26545         * lib/symlink.c: Likewise.
26546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26547         * modules/unistd (Makefile.am): Substitute them.
26548         * lib/unistd.in.h (symlink): Declare replacement.
26549         * MODULES.html.sh (File system functions): Mention it.
26550         * doc/posix-functions/symlink.texi (symlink): Likewise.
26551         * modules/symlink-tests: New test.
26552         * tests/test-symlink.c: Likewise.
26553
26554 2009-09-23  Bruno Haible  <bruno@clisp.org>
26555
26556         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26557         when needed.
26558         Test case: gnulib-tool --import --with-tests atexit inttypes.
26559         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26560
26561 2009-09-23  Bruno Haible  <bruno@clisp.org>
26562
26563         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26564         subcommand, not in a subshell.
26565
26566 2009-09-22  Eric Blake  <ebb9@byu.net>
26567
26568         unistd: sort replacement declarations
26569         * lib/unistd.in.h: Sort declarations.
26570
26571         open, openat: minor optimization
26572         * lib/open.c (open): If open succeeded, len is non-zero.
26573         * lib/openat.c (rpl_openat): Likewise.
26574
26575         link-follow: ensure correct result
26576         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26577         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26578         distinguish between possible failures.
26579
26580 2009-09-21  Eric Blake  <ebb9@byu.net>
26581
26582         fts: avoid compiler warning
26583         * lib/fts.c (dirent_inode_sort_may_be_useful)
26584         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26585
26586 2009-09-19  Bruno Haible  <bruno@clisp.org>
26587
26588         * lib/progreloc.c (canonicalize_file_name): New declaration.
26589
26590 2009-09-19  Eric Blake  <ebb9@byu.net>
26591
26592         link: fix quoting
26593         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26594
26595         openat: fix openat bugs on Solaris 9
26596         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26597         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26598         * modules/openat (Depends-on): Add open.
26599         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26600         * modules/fcntl-h (Makefile.am): Substitute it.
26601         * lib/fcntl.in.h (openat): Declare replacement.
26602         * doc/posix-functions/openat.texi (openat): Document this.
26603
26604         openat: move fstatat and unlinkat into correct files
26605         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26606         compiled.
26607         * lib/openat.c (fstatat, unlinkat): Move...
26608         * lib/fstatat.c (fstatat): ...into correct files.
26609         * lib/unlinkat.c (unlinkat): Likewise.
26610
26611         openat: fix unlinkat bugs on Solaris 9
26612         * lib/unlinkat.c (unlinkat): New file.
26613         * modules/openat (Depends-on): Add unlink.
26614         (Files): Distribute it.
26615         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26616         trailing slash behavior is broken.
26617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26618         * modules/unistd (Makefile.am): Substitute it.
26619         * lib/unistd.in.h (unlinkat): Declare replacement.
26620         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26621
26622         openat: fix fstatat bugs on Solaris 9
26623         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26624         stat.
26625         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26626
26627         test-unlinkat: enhance test, to expose Solaris 9 bug
26628         * tests/test-unlink.c (main): Factor guts...
26629         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26630         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26631         * tests/test-rmdir.c (main): Adjust caller.
26632         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26633         (unlinker): New helper function.
26634         (rmdirat): Enhance check.
26635         * modules/rmdir-tests (Depends-on): Add stdbool.
26636         * modules/unlink-tests (Depends-on): Likewise.
26637         (Files): Add test-unlink.h.
26638         * modules/openat-tests (Files): Likewise.
26639         (Depends-on): Add unlinkdir.
26640
26641         test-fstatat: new test, to expose Solaris 9 bugs
26642         * tests/test-stat.c (main): Factor guts...
26643         * tests/test-stat.h (test_stat_func): ...into new file.
26644         * tests/test-lstat.c (main): Factor guts...
26645         * tests/test-lstat.h (test_lstat_func): ...into new file.
26646         * tests/test-fstatat.c: New file.
26647         * modules/stat-tests (Files): Add test-stat.h.
26648         * modules/lstat-tests (Files): Add test-lstat.h.
26649         (Depends-on): Add stdbool.
26650         * modules/openat-tests (Depends-on): Add pathmax.
26651         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26652         (Makefile.am): Run new test.
26653
26654         remove: new module, for mingw and Solaris 9 bugs
26655         * modules/remove: New file.
26656         * lib/remove.c: Likewise.
26657         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26659         * modules/stdio (Makefile.am): Use them.
26660         * lib/stdio.in.h (remove): Declare replacement.
26661         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26662         * doc/posix-functions/remove.texi (remove): Likewise.
26663         * modules/remove-tests: New test.
26664         * tests/test-remove.c: Likewise.
26665
26666         unlink: new module, for Solaris 9 bug
26667         * modules/unlink: New file.
26668         * lib/unlink.c: Likewise.
26669         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26671         * modules/unistd (Makefile.am): Use them.
26672         * lib/unistd.in.h (stat): Declare replacement.
26673         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26674         * doc/posix-functions/unlink.texi (unlink): Likewise.
26675         * modules/unlink-tests: New test.
26676         * tests/test-unlink.c: Likewise.
26677
26678         lstat: fix Solaris 9 bug
26679         * lib/lstat.c (lstat): Also check for trailing slash on
26680         non-symlink, non-directories.  Use stat module to simplify logic.
26681         * doc/posix-functions/lstat.texi (lstat): Document it.
26682         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26683         (configure.ac): Check for symlink.
26684         * tests/test-lstat.c (main): Add more tests.
26685
26686         stat: add as dependency to other modules
26687         * modules/chown (Depends-on): Add stat.
26688         * modules/euidaccess (Depends-on): Likewise.
26689         * modules/fchdir (Depends-on): Likewise.
26690         * modules/isdir (Depends-on): Likewise.
26691         * modules/link (Depends-on): Likewise.
26692         * modules/lstat (Depends-on): Likewise.
26693         * modules/mkdir-p (Depends-on): Likewise.
26694         * modules/modechange (Depends-on): Likewise.
26695         * modules/open (Depends-on): Likewise.
26696         * modules/readlink (Depends-on): Likewise.
26697         * modules/same (Depends-on): Likewise.
26698
26699         stat: fix Solaris 9 bug
26700         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26701         slash.
26702         * lib/stat.c (rpl_stat): Work around it.
26703         * doc/posix-functions/stat.texi (stat): Update documentation.
26704
26705         stat: new module, for mingw bug
26706         * modules/stat: New file.
26707         * lib/stat.c: Likewise.
26708         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26709         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26710         * modules/sys_stat (Makefile.am): Use them.
26711         * lib/sys_stat.in.h (stat): Declare replacement.
26712         * lib/openat.c (fstatat): Deal with lstat and stat being function
26713         macros.
26714         * modules/openat (Depends-on): Add inline.
26715         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26716         * doc/posix-functions/stat.texi (stat): Likewise.
26717         * modules/stat-tests: New test.
26718         * tests/test-stat.c: Likewise.
26719
26720 2009-09-19  Jim Meyering  <meyering@redhat.com>
26721
26722         syntax-check: detect unnecessary inclusion of canonicalize.h
26723         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26724
26725 2009-09-19  Eric Blake  <ebb9@byu.net>
26726
26727         canonicalize-lgpl: adjust clients to use correct header
26728         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26729         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26730         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26731         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26732         * lib/progreloc.c (includes): Likewise.
26733
26734 2009-09-19  Jim Meyering  <meyering@redhat.com>
26735
26736         test-posixtm.c: correct a comment
26737         * tests/test-posixtm.c: Correct first-line comment.
26738         Spotted by Eric Blake.
26739
26740 2009-09-16  Jim Meyering  <meyering@redhat.com>
26741
26742         posixtm-tests: make T const-correct; add a test case
26743         * tests/test-posixtm.c (T): Declare const.
26744         Add a test for -(2^31+1).
26745         Remove useless can-succeed-only-in-2002 test.
26746
26747         posixtm-tests: adjust the sole failing test
26748         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26749         expected output matches what mktime now produces.  Cross-checked via
26750         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26751
26752         posixtm: move #ifdef'd tests into a new module
26753         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26754         * tests/test-posixtm.c: ... this new file.
26755         * modules/posixtm-tests: New module.
26756
26757 2009-09-19  Eric Blake  <ebb9@byu.net>
26758
26759         openat: simplify use of at-func.c
26760         * lib/at-func.c (includes): Include prerequisites here, to
26761         simplify requirements on client files.
26762         * lib/openat-priv.h: Add double-inclusion guard.
26763         * lib/faccessat.c (includes): Simplify.
26764         * lib/fchmodat.c (includes): Likewise.
26765         * lib/fchownat.c (includes): Likewise.
26766         * lib/mkdirat.c (includes): Likewise.
26767         * lib/mkfifoat.c (includes): Likewise.
26768         * lib/symlinkat.c (includes): Likewise.
26769
26770         openat: allow return of fd 0
26771         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26772         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26773         unistd-safer.
26774         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26775         <fcntl.h>; this module does not leak fds.
26776         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26777         must be allowed to return 0, leaving openat_safer to add the
26778         safety.
26779         (openat_permissive): Avoid writing to just-opened fd 2 if
26780         restoring the current directory fails.
26781         * lib/openat-die.c (openat_restore_fail): Add comment.
26782         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26783         (save_cwd): Guarantee safe fd, but without use of open_safer.
26784         * tests/test-openat.c: New test.
26785         * modules/openat-tests (Files, Makefile.am): Distribute and build
26786         new file.
26787
26788         relocatable-prog-wrapper: fix build
26789         * modules/relocatable-prog-wrapper (Files): Update name of
26790         canonicalize m4 file, broken on 2009-09-17.
26791         Reported by emad hajjar <aleppos@hotmail.com>.
26792
26793 2009-09-19  Bruno Haible  <bruno@clisp.org>
26794
26795         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26796         * lib/safe-alloc.c: Likewise.
26797         Reported by Ian Beckwith <ianb@erislabs.net>.
26798
26799 2009-09-18  Bruno Haible  <bruno@clisp.org>
26800
26801         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26802         Reported by <erobles@sensacd.com.mx>.
26803
26804 2009-09-17  Eric Blake  <ebb9@byu.net>
26805
26806         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26807         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26808         slashes when checking if last component is missing.
26809         * tests/test-canonicalize.c (main): Test this.
26810
26811         canonicalize, canonicalize-lgpl: honor // if distinct from /
26812         * modules/canonicalize (Files): Add double-slash-root.m4.
26813         * modules/canonicalize-lgpl (Files): Likewise.
26814         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26815         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26816         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26817         fallback definition.
26818         (canonicalize_filename_mode): Use it to protect //.
26819         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26820         (__realpath): Likewise.
26821         * tests/test-canonicalize.c (main): Test this.
26822         * tests/test-canonicalize-lgpl.c (main): Likewise.
26823         * modules/canonicalize-tests (Depends-on): Add same-inode.
26824         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26825
26826         canonicalize-lgpl: fix glibc bug with trailing slash
26827         * m4/canonicalize-lgpl.m4: Move contents...
26828         * m4/canonicalize.m4: ...here.
26829         (gl_CANONICALIZE_LGPL): Factor realpath check...
26830         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26831         glibc 2.3.5 bug, fixed 2005-04-27.
26832         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26833         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26834         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26835         * modules/canonicalize-lgpl (Files): Manage file rename.
26836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26837         * modules/stdlib (Makefile.am): Substitute witness.
26838         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26839         is needed.
26840         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26841         replacement is required.
26842         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26843         * doc/glibc-functions/canonicalize_file_name.texi
26844         (canonicalize_file_name): Document this.
26845         * doc/posix-functions/realpath.texi (realpath): Likewise.
26846
26847         canonicalize-lgpl: reject non-directory with trailing slash
26848         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26849         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26850         catches failures in glibc 2.3.5.
26851         * tests/test-canonicalize.c (main): Likewise.
26852
26853         canonicalize-lgpl: use native realpath if it works
26854         * lib/canonicalize-lgpl.c (realpath): Guard with
26855         FUNC_REALPATH_WORKS.
26856         * lib/stdlib.in.h (realpath): Make declaration optional based on
26857         HAVE_REALPATH.
26858         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26859         native realpath works.
26860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26861         * modules/stdlib (Makefile.am): Substitute witness.
26862
26863         canonicalize, canonicalize-lgpl: use <stdlib.h>
26864         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26865         (Include): Mention <stdlib.h>.
26866         (configure.ac): Mention functions we provide.
26867         * modules/canonicalize (configure.ac): Likewise.
26868         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26869         realpath if canonicalize_file_name is missing.
26870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26871         * modules/stdlib (Makefile.am): Substitute witnesses.
26872         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26873         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26874         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26875         * NEWS: Document this.
26876         * doc/glibc-functions/canonicalize_file_name.texi
26877         (canonicalize_file_name): Likewise.
26878         * doc/posix-functions/realpath.texi (realpath): Likewise.
26879         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26880
26881         test-canonicalize: consolidate into single C program
26882         * tests/test-canonicalize.sh: Delete; move setup into...
26883         * tests/test-canonicalize.c (main): ...the program, making it
26884         easier to run in debugger.  Add some tests.
26885         * modules/canonicalize-tests (Files): Remove unused file.
26886         (Depends-on): Add progname.
26887         (configure.ac, Makefile.am): Simplify.
26888
26889         test-canonicalize-lgpl: consolidate into single C program
26890         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26891         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26892         easier to run in debugger.  Add some tests.
26893         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26894         (configure.ac, Makefile.am): Simplify.
26895
26896         canonicalize: avoid resolvepath
26897         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26898         unnecessary checks.
26899         * lib/canonicalize.c (includes): Simplify.
26900         (canonicalize_file_name): Drop resolvepath implementation.
26901         * modules/canonicalize (Depends-on): Drop filenamecat.
26902
26903         canonicalize: don't lose errno
26904         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26905         over calls to free.
26906
26907         canonicalize: simplify errno handling
26908         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26909         assignment.
26910
26911         canonicalize, canonicalize-lgpl: update module dependencies
26912         * modules/canonicalize (Depends-on): Add extensions, lstat,
26913         pathmax, stdlib.
26914         (Files): Drop pathmax.h.
26915         (configure.ac): Adjust macro name.
26916         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26917         lstat, stdlib, sys_stat.
26918         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26919         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26920         extensions.
26921         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26922         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26923         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26924         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26925         declaration, if available.
26926         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26927         we can rely on the readlink module.
26928         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26929         (includes): Use <unistd.h> unconditionally.
26930
26931 2009-09-17  Eric Blake  <ebb9@byu.net>
26932
26933         maint: make Include sections of modules consistent
26934         * modules/alloca: Use only header name; no need to list #include.
26935         * modules/alloca-opt: Likewise.
26936         * modules/arpa_inet: Likewise.
26937         * modules/canon-host: Likewise.
26938         * modules/configmake: Likewise.
26939         * modules/dirent: Likewise.
26940         * modules/eealloc: Likewise.
26941         * modules/environ: Likewise.
26942         * modules/fchdir: Likewise.
26943         * modules/fcntl: Likewise.
26944         * modules/fcntl-h: Likewise.
26945         * modules/gethrxtime: Likewise.
26946         * modules/gettime: Likewise.
26947         * modules/ignore-value: Likewise.
26948         * modules/inet_ntop: Likewise.
26949         * modules/inet_pton: Likewise.
26950         * modules/inttypes: Likewise.
26951         * modules/isnand-nolibm: Likewise.
26952         * modules/isnanf-nolibm: Likewise.
26953         * modules/mbchar: Likewise.
26954         * modules/mbfile: Likewise.
26955         * modules/mbiter: Likewise.
26956         * modules/mbuiter: Likewise.
26957         * modules/netdb: Likewise.
26958         * modules/netinet_in: Likewise.
26959         * modules/nproc: Likewise.
26960         * modules/pagealign_alloc: Likewise.
26961         * modules/poll: Likewise.
26962         * modules/printf-frexp: Likewise.
26963         * modules/pthread: Likewise.
26964         * modules/putenv: Likewise.
26965         * modules/random_r: Likewise.
26966         * modules/relocatable-prog: Likewise.
26967         * modules/search: Likewise.
26968         * modules/select: Likewise.
26969         * modules/selinux-h: Likewise.
26970         * modules/settime: Likewise.
26971         * modules/signal: Likewise.
26972         * modules/size_max: Likewise.
26973         * modules/socklen: Likewise.
26974         * modules/ssize_t: Likewise.
26975         * modules/stdarg: Likewise.
26976         * modules/stdbool: Likewise.
26977         * modules/stddef: Likewise.
26978         * modules/stdint: Likewise.
26979         * modules/stdio: Likewise.
26980         * modules/stdlib: Likewise.
26981         * modules/string: Likewise.
26982         * modules/strings: Likewise.
26983         * modules/sys_file: Likewise.
26984         * modules/sys_ioctl: Likewise.
26985         * modules/sys_select: Likewise.
26986         * modules/sys_socket: Likewise.
26987         * modules/sys_stat: Likewise.
26988         * modules/sys_time: Likewise.
26989         * modules/sys_times: Likewise.
26990         * modules/sys_utsname: Likewise.
26991         * modules/sys_wait: Likewise.
26992         * modules/sysexits: Likewise.
26993         * modules/time: Likewise.
26994         * modules/times: Likewise.
26995         * modules/tmpfile: Likewise.
26996         * modules/trim: Likewise.
26997         * modules/unistd: Likewise.
26998         * modules/wchar: Likewise.
26999         * modules/wctype: Likewise.
27000
27001 2009-09-17  Bruno Haible  <bruno@clisp.org>
27002
27003         Make getdate.y compile on QNX and NetBSD 5 / i386.
27004         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27005         TIME_T_FITS_IN_LONG_INT.
27006         * lib/getdate.y (long_time_t): New type.
27007         (relative_time): Change type of 'seconds' field to long_time_t.
27008         (get_date): Update types of local variables. Check against overflow
27009         during conversion from long_time_t to time_t.
27010         Reported by Matt Kraai <kraai@ftbfs.org>
27011         and Hasso Tepper <hasso@netbsd.org>.
27012
27013 2009-09-17  Bruno Haible  <bruno@clisp.org>
27014
27015         * modules/COPYING: Update copyright years.
27016         * modules/README: Likeiwse.
27017         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27018         Reported by Ian Beckwith <ianb@erislabs.net>.
27019
27020 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27021
27022         * users.txt: Update references for gnuit package.
27023
27024 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27025
27026         * m4/getdelim.m4: Fix typo in copyright line.
27027
27028 2009-09-17  Bruno Haible  <bruno@clisp.org>
27029
27030         * lib/atoll.c: Use the standard header with GPL copyright.
27031         * lib/argz.in.h: Likewise.
27032         * lib/glob.c: Likewise.
27033         * lib/glob-libc.h: Likewise.
27034         * lib/random_r.c: Likewise.
27035         * lib/siglist.h: Likewise.
27036         * lib/strsignal.c: Likewise.
27037         Reported by Ian Beckwith <ianb@erislabs.net>.
27038
27039 2009-09-17  Eric Blake  <ebb9@byu.net>
27040
27041         rmdir: ensure correct dependency order
27042         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27043
27044 2009-09-17  Bruno Haible  <bruno@clisp.org>
27045
27046         Disable assertion that fails on NetBSD 5 / i386.
27047         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
27048         Reported by Sam Steingold <sds@gnu.org>
27049         and Hasso Tepper <hasso@netbsd.org>.
27050
27051 2009-09-16  Eric Blake  <ebb9@byu.net>
27052
27053         unlinkdir: port to mingw
27054         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27055         on which no one can unlink a directory.
27056
27057         stdlib: sort witness names
27058         * modules/stdlib (Makefile.am): Sort replacements.
27059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27060         * lib/stdlib.in.h: Likewise.
27061
27062         parse-duration-tests: avoid link failure
27063         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27064         LIBINTL.
27065         Reported by Tom G. Christensen.
27066
27067         openat-tests: ensure unlinkat behaves like rmdir
27068         * tests/test-rmdir.c (main): Factor guts...
27069         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27070         * modules/rmdir-tests (Files): Ship new file.
27071         * modules/openat-tests: New test.
27072         * tests/test-unlinkat.c: Likewise.
27073
27074         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27075         * modules/rmdir-errno (Status, Notice): Now obsolete.
27076
27077         rmdir: work around cygwin 1.5.x and mingw bugs
27078         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27079         * lib/rmdir.c (rmdir): Work around it.
27080         * modules/rmdir (Status, Notice): No longer obsolete.
27081         (Files): Add dos.m4.
27082         (Depends-on): Add unistd.
27083         (configure.ac): Set witnesses.
27084         (License): Relax to LGPLv2+.
27085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27086         * modules/unistd (Makefile.am): Substitute witnesses.
27087         * lib/unistd.in.h (rmdir): Declare replacement.
27088         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27089         * modules/rmdir-tests: New tests.
27090         * tests/test-rmdir.c: Likewise.
27091
27092 2009-09-15  Eric Blake  <ebb9@byu.net>
27093
27094         fchdir: improve use of replacement functions
27095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27097         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27098         REPLACE_CLOSEDIR.
27099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27100         * modules/sys_stat (Makefile.am): Substitute correct witness.
27101         * modules/dirent (Makefile.am): Likewise.
27102         * modules/unistd (Makefile.am): Likewise.
27103         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27104         * lib/unistd.in.h (dup): Likewise.
27105         * lib/sys_stat.in.h (fstat): Likewise.
27106
27107         maint: ignore gnulib-tool temp files
27108         * .gitignore: Ignore files created during gnulib-tool --test.
27109
27110 2009-09-13  Jim Meyering  <meyering@redhat.com>
27111
27112         posixtm: don't reject a time that specify "60" as the number of seconds
27113         * lib/posixtm.c (posixtime): The code to reject invalid dates
27114         would also reject a time specified with the .60 suffix.
27115         But POSIX allows that, in order to accommodate leap seconds.
27116         So don't reject it.
27117         (main): Adjust tests accordingly.
27118         * modules/posixtm (Depends-on): Add stpcpy.
27119
27120 2009-09-11  Jim Meyering  <meyering@redhat.com>
27121
27122         announce-gen: include [$release_type] in emitted Subject:
27123         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27124         e.g., [stable] in the emitted Subject: line.
27125
27126 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27127
27128         Remove obsolete macros from several modules.
27129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27130         obsolete Autoconf macros with their modern counterparts.
27131         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27132         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27134         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27136         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27138         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27139         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27140         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27141         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27143         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27144         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27145         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27146         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27147         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27148         * m4/time_r.m4 (gl_TIME_R): Likewise.
27149         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27150         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27151         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27152
27153         Fix copyright header in build-aux scripts.
27154         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27155         recommendation.
27156         * build-aux/ncftpput-ftp: Likewise.
27157         * build-aux/update-copyright: Likewise.
27158
27159 2009-09-09  Eric Blake  <ebb9@byu.net>
27160
27161         test-link: allow Linux choice of errno
27162         * tests/test-link.c (main): Relax test for alternate error.
27163
27164         strndup: fix improper m4 caching
27165         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27166         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27167         (gl_PREREQ_STRNDUP): Delete.
27168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27169         * modules/string (Makefile.am): Substitute it.
27170         * lib/string.in.h (strndup): Modernize prototype.
27171
27172         getcwd: port to mingw
27173         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27174         different from the POSIX assumptions made throughout the getcwd
27175         module; fortunately, the mingw getcwd does not need replacement.
27176         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27177         * modules/getcwd-tests: New test.
27178         * tests/test-getcwd.c: Likewise.
27179
27180         link: fix platform bugs
27181         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27182         * lib/link.c (link): Work around them.  Fix related mingw bug.
27183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27184         * modules/unistd (Makefile.am): Substitute it.
27185         * lib/unistd.in.h (link): Declare replacement.
27186         * doc/posix-functions/link.texi (link): Document this.
27187         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27188
27189         test-link: consolidate into single C program, test more cases
27190         * tests/test-link.sh: Delete.
27191         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27192         at least Cygwin and Solaris.
27193         * modules/link-tests (Files): Remove unused file.
27194         (Depends-on): Add errno, sys_stat.
27195         (Makefile.am): Simplify.
27196
27197 2009-09-08  Bruno Haible  <bruno@clisp.org>
27198
27199         Work around towlower, towupper bug on mingw.
27200         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27201         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27202         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27203         * doc/posix-functions/towupper.texi: Likewise.
27204         Reported by Eric Blake.
27205
27206 2009-09-08  Jim Meyering  <meyering@redhat.com>
27207
27208         build: don't try to run autoheader if we don't use it
27209         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27210         is not used in configure.ac.
27211
27212 2009-09-08  Eric Blake  <ebb9@byu.net>
27213
27214         euidaccess: fix compilation error
27215         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27216
27217         rawmemchr: relax license
27218         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27219         okay.
27220         Reported by Jim Meyering.
27221
27222         mkfifoat: new module
27223         * modules/mkfifoat: New file.
27224         * lib/mkfifoat.c: Likewise.
27225         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27226         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27227         * modules/sys_stat (Makefile.am): Use them.
27228         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27229         * MODULES.html.sh (File system functions): Mention module.
27230         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27231         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27232         * modules/mkfifoat-tests: New test.
27233         * tests/test-mkfifoat.c: Likewise.
27234
27235         strchrnul: relax license
27236         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27237         okay.
27238         Reported by Jim Meyering.
27239
27240 2009-09-08  Eric Blake  <ebb9@byu.net>
27241
27242         fstatat: fix compilation on Solaris
27243         * lib/fstatat.c (includes): Add fcntl.h.
27244         Reported by Pádraig Brady.
27245
27246 2009-09-07  Eric Blake  <ebb9@byu.net>
27247
27248         rename: modernize replacement
27249         * modules/rename (Depends-on): Add stdio.
27250         (configure.ac): Declare witness.
27251         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27252         stdio take care of replacement.
27253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27254         * modules/stdio (Makefile.am): Substitute them.
27255         * lib/stdio.in.h (rename): Declare replacement.
27256         * lib/rename.c (includes): Allow cross-compilation to non-windows
27257         machines.
27258         * doc/posix-functions/rename.texi (rename): Improve
27259         documentation.
27260
27261         stdio: sort witness names
27262         * modules/stdio (Makefile.am): Sort replacements.
27263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27264         * lib/stdio.in.h: Likewise.
27265
27266         getcwd: minor cleanups
27267         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27268         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27269
27270         openat: provide more convenience names
27271         * modules/faccessat (configure.ac): Add C witness.
27272         * lib/unistd.in.h (readlinkat): Fix typo.
27273         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27274         convenience wrappers.
27275         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27276         wrappers in syntax checks.
27277
27278 2009-09-06  Eric Blake  <ebb9@byu.net>
27279
27280         doc: fix comments in recent patches
27281         * lib/faccessat.c: Mention correct function.
27282         * lib/fchmodat.c: Likewise.
27283         * lib/fchownat.c: Likewise.
27284         * lib/symlinkat.c: Likewise.
27285         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27286         constants.
27287
27288         faccessat, symlinkat: continue cleanup of previous patch
27289         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27290         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27291         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27293         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27294         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27295         set.
27296
27297 2009-09-06  Bruno Haible  <bruno@clisp.org>
27298
27299         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27300         (fstatat): Declare if GNULIB_FSTATAT is set.
27301         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27302         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27303         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27304         * modules/fcntl-h (Files): Remove m4/openat.m4.
27305         * modules/sys_stat (Files): Remove m4/openat.m4.
27306         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27307         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27308         * modules/unistd (Files): Remove m4/openat.m4.
27309         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27310         GNULIB_OPENAT.
27311         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27312         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27314         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27315         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27316         gl_OPENAT_DEFAULTS.
27317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27318         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27319         Don't require gl_OPENAT_DEFAULTS.
27320         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27321         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27322         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27323         (gl_OPENAT_DEFAULTS): Remove macro.
27324
27325 2009-09-06  Bruno Haible  <bruno@clisp.org>
27326
27327         * modules/openat (configure.ac): Remove unneeded witness.
27328
27329 2009-09-06  Bruno Haible  <bruno@clisp.org>
27330
27331         Set errno to ENOSYS when a function is entirely unsupported.
27332         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27333         EOPNOTSUPP.
27334         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27335         * modules/chown (Depends-on): Remove errno.
27336
27337 2009-09-06  Bruno Haible  <bruno@clisp.org>
27338
27339         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27340
27341 2009-09-06  Bruno Haible  <bruno@clisp.org>
27342
27343         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27344
27345 2009-09-06  Ben Pfaff  <blp@gnu.org>
27346             Bruno Haible  <bruno@clisp.org>
27347
27348         Work around a glibc bug in strtok_r.
27349         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27350         Undefine if UNDEFINE_STRTOK_R is set.
27351         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27353         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27355         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27356         UNDEFINE_STRTOK_R.
27357         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27358
27359 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27360
27361         exclude: minor fix
27362         * lib/exclude.c: Include wctype.h
27363
27364 2009-09-06  Akim Demaille  <demaille@gostai.com>
27365
27366         bootstrap: improve error message
27367         * build-aux/bootstrap (find_tool): Upon failure, report the list
27368         of candidates.
27369         Honor the initial value of the envvar.
27370
27371 2009-09-05  Eric Blake  <ebb9@byu.net>
27372
27373         symlinkat: new module
27374         * modules/symlinkat: New file.
27375         * lib/symlinkat.c: Likewise.
27376         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27378         * modules/unistd (Makefile.am): Use them.
27379         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27380         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27381         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27382         * MODULES.html.sh (File system functions): Mention module.
27383         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27384         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27385         * modules/symlinkat-tests: New test.
27386         * tests/test-symlinkat.c: Likewise.
27387
27388         test-openat-safer: add more checks
27389         * tests/test-openat-safer.c (main): Check more code paths.
27390
27391 2009-09-05  Jim Meyering  <meyering@redhat.com>
27392
27393         syntax-check: detect unnecessary inclusion of openat.h
27394         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27395
27396 2009-09-05  Bruno Haible  <bruno@clisp.org>
27397
27398         Support towlower, towupper.
27399         * doc/posix-functions/towlower.texi: Mention module wctype.
27400         * doc/posix-functions/towupper.texi: Likewise.
27401         * lib/wctype.in.h (towlower, towupper): New functions.
27402         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27403         (ASSERT): New macro.
27404         (e): New variable.
27405         (main): Test also towlower, towupper. Test WEOF argument.
27406         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27407
27408 2009-09-05  Bruno Haible  <bruno@clisp.org>
27409
27410         Fix conversion behaviour when the input is invalid.
27411         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27412         mark occurring in first pass of indirect conversion.
27413         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27414         input.
27415         Found by clang's static analyzer.
27416
27417 2009-09-05  Bruno Haible  <bruno@clisp.org>
27418
27419         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27420         where direct conversion is possible.
27421
27422 2009-09-04  Eric Blake  <ebb9@byu.net>
27423
27424         openat: fail with ENOENT on empty name
27425         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27426         buffer.
27427
27428         link-follow: fix logic bug in prior patch
27429         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27430         reversed sense of yes and no in prior patch.  Avoid confusing
27431         compilation failure with desired semantics.
27432
27433         link-follow: accomodate mingw and cross-compilation
27434         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27435         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27436         cross-compilation results to -1, to make linkat easier to
27437         implement when cross-compiling.  Trivially support mingw.
27438         * modules/link-follow (configure.ac): Call new name.
27439         * NEWS: Mention this.
27440
27441 2009-09-03  Eric Blake  <ebb9@byu.net>
27442
27443         faccessat: compile replacement
27444         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27445         needed.
27446
27447         fts: fix compilation error
27448         * lib/fts.c (includes): Re-add "openat.h", for
27449         openat_needs_fchdir.
27450
27451         faccessat: new module
27452         * modules/faccessat: New file.
27453         * lib/faccessat.c: Likewise.
27454         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27456         * modules/unistd (Makefile.am): Use it.
27457         * lib/unistd.in.h (faccessat): Declare it.
27458         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27459         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27460         * MODULES.html.sh (File system functions): Mention it.
27461         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27462         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27463
27464         euidaccess: prefer POSIX over non-standard implementation
27465         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27466         * lib/euidaccess.c (euidaccess): Use it if available.
27467
27468         openat: make template easier to use
27469         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27470         AT_FUNC_F2 to be undefined.
27471         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27472         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27473         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27474         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27475         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27476         Likewise.
27477         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27478         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27479         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27480         Likewise.
27481
27482         openat: declare in POSIX headers
27483         * NEWS: Mention this.
27484         * modules/openat (configure.ac): Declare witnesses.
27485         (Depends-on): Add fcntl-h, sys_stat, unistd.
27486         (Include): Mention correct headers.
27487         * modules/fcntl-h (Depends-on): Add link-warning.
27488         (Files): Add openat.m4.
27489         (Makefile.am): Substitute witnesses.
27490         * modules/sys_stat (Files, Makefile.am): Likewise.
27491         * modules/unistd (Files, Makefile.am): Likewise.
27492         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27493         (gl_OPENAT_DEFAULTS): New macro.
27494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27497         (SYS_STAT_H): Remove unused variable.
27498         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27499         * lib/fcntl--.h (includes): Remove unneeded header.
27500         * lib/openat-safer.c (includes): Likewise.
27501         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27502         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27503         appropriate headers.
27504         (__OPENAT_PREFIX): Delete.
27505         * lib/fcntl.in.h (openat): Provide declaration.
27506         (AT_FDCWD): Fix Solaris bug.
27507         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27508         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27509         * lib/fchmodat.c (includes):  Adjust to find declaration.
27510         * lib/fchownat.c (includes): Likewise.
27511         * lib/mkdirat.c (includes): Likewise.
27512         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27513         still visible.
27514
27515 2009-09-02  Eric Blake  <ebb9@byu.net>
27516
27517         errno: use consistently
27518         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27519         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27520         * lib/canonicalize.c (ELOOP): Likewise.
27521         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27522         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27523         * lib/lchown.c (EOPNOTSUPP): Likewise.
27524         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27525         * lib/savewd.c (ESTALE): Likewise.
27526         * lib/settime.c (ENOSYS): Likewise.
27527         * lib/utimens.c (ENOSYS): Likewise.
27528         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27529         * lib/chdir-safer.c (ELOOP): Likewise.
27530         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27531         * modules/c-stack (Depends-on): Add errno.
27532         * modules/canonicalize (Depends-on): Likewise.
27533         * modules/chdir-safer (Depends-on): Likewise.
27534         * modules/fdopendir (Depends-on): Likewise.
27535         * modules/inet_ntop (Depends-on): Likewise.
27536         * modules/inet_pton (Depends-on): Likewise.
27537         * modules/lchown (Depends-on): Likewise.
27538         * modules/openat (Depends-on): Likewise.
27539         * modules/savewd (Depends-on): Likewise.
27540         * modules/settime (Depends-on): Likewise.
27541         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27542
27543         fts: avoid leaking fds
27544         * modules/fts (Depends-on): Add cloexec.
27545         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27546         flag.
27547
27548         fts: make directory fds more robust
27549         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27550         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27551
27552         backupfile, chdir-long, fts, savedir: make safer
27553         * lib/backupfile.c (includes): Use "dirent--.h", since
27554         numbered_backup can write to stderr during readdir.
27555         * lib/savedir.c (includes): Likewise.
27556         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27557         emulation can write to stderr on failure.
27558         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27559         * lib/getcwd.c: Document why opendir_safer is unused.
27560         * lib/glob.c: Likewise.
27561         * lib/scandir.c: Likewise.
27562         * lib/openat-proc.c: Likewise, for open_safer.
27563         * modules/backupfile (Depends-on): Add dirent-safer.
27564         * modules/savedir (Depends-on): Likewise.
27565         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27566         * modules/chdir-long (Depends-on): Add openat-safer.
27567
27568         openat-safer: new module
27569         * modules/openat-safer: New file.
27570         * lib/openat-safer.c: Likewise.
27571         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27572         * lib/fcntl-safer.h (openat_safer): Declare.
27573         * lib/fcntl--.h (openat): Override.
27574         * MODULES.html.sh (File descriptor based I/O): Mention it.
27575         * lib/openat.h: Add double-inclusion guards.
27576         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27577         "fcntl--.h", so we can implement openat.
27578         * modules/openat-safer-tests: New test.
27579         * tests/test-openat-safer.c: New file.
27580
27581         dirent-safer: new module
27582         * modules/dirent-safer: New file.
27583         * lib/dirent--.h: Likewise.
27584         * lib/dirent-safer.h: Likewise.
27585         * lib/opendir-safer.c: Likewise.
27586         * m4/dirent-safer.m4: Likewise.
27587         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27588         * modules/dirent-safer-tests: New test.
27589         * tests/test-dirent-safer.c: New file.
27590         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27591
27592         fdopendir: optimize on mingw
27593         * lib/unistd.in.h (_gl_directory_name): New prototype.
27594         * lib/fchdir.c (_gl_directory_name): Implement it.
27595         (fchdir): Use it to simplify implementation.
27596         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27597         fchdir, when available, to avoid calling [f]chdir().
27598
27599         fdopendir: split into its own module
27600         * lib/openat.c (fdopendir): Move...
27601         * lib/fdopendir.c: ...into new file.
27602         * modules/fdopendir: New module.
27603         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27604         * modules/openat (Depends-on): Add fdopendir.
27605         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27606         fdopendir here.
27607         * modules/savedir (Depends-on): Only need fdopendir, not full
27608         openat.
27609         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27610         * lib/openat.h (fdopendir): Drop prototype.
27611         * lib/dirent.in.h (fdopendir): Provide prototype.
27612         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27613         * modules/dirent (Makefile.am): Substitute them.
27614         * MODULES.html.sh (File system functions): Mention it.
27615         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27616         * modules/fdopendir-tests: New file.
27617         * tests/test-fdopendir.c: Likewise.
27618
27619         fchdir: use more consistent macro convention
27620         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27621         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27622         REPLACE_FCHDIR, rather than relying on config.h macros.
27623         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27624         inside a single make-time REPLACE_FCHDIR block, rather than using
27625         the config.h FCHDIR_REPLACEMENT.
27626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27627         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27628         Manage fstat replacement.
27629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27630         REPLACE_FCHDIR.
27631         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27632         (Makefile.am): Substitute REPLACE_FCHDIR.
27633         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27634         FCHDIR_REPLACEMENT.
27635         * lib/dup-safer.c (dup_safer): Likewise.
27636         * lib/dup2.c (rpl_dup2): Likewise.
27637         * lib/dup3.c (rpl_dup3): Likewise.
27638         * lib/open.c (rpl_open): Likewise.
27639
27640         fchdir: simplify error handling, and support dup3
27641         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27642         stdbool, malloc-posix, realloc-posix.
27643         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27644         (ensure_dirs_slot): Return false on allocation failure.
27645         (rpl_dup2): Delete.
27646         (_gl_register_dup): New function.
27647         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27648         (_gl_register_fd): Close fd on allocation failure.
27649         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27650         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27651         prototype.
27652         (rpl_dup2_fchdir): Delete prototype.
27653         * lib/open.c (open): Update caller.
27654         * lib/dup2.c (dup2): Track fchdir metadata.
27655         * lib/dup3.c (dup3): Likewise.
27656         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27658
27659 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27660
27661         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27662         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27663         don't pass arguments to AC_OUTPUT.
27664
27665 2009-09-02  Bruno Haible  <bruno@clisp.org>
27666
27667         * modules/mkdtemp (License): Relicense under LGPLv2+.
27668         Reported by Paolo Bonzini.
27669
27670 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27671
27672         Replace uses of obsolete autoconf macros in Jim's modules.
27673         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27674         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27675         can evoke a warning from autoconf when run with -Wobsolete
27676         enabled.  They were declared obsolete for good reasons (see
27677         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27678         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27679         should not continue using the deprecated macros.
27680         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27681         obsolete Autoconf macros with modern counterparts.
27682         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27683         * m4/dos.m4 (gl_AC_DOS): Likewise.
27684         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27686         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27687         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27688         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27689         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27690         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27691         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27692         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27693         Likewise.
27694         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27695         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27696         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27697         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27698         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27699         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27700
27701 2009-09-01  Eric Blake  <ebb9@byu.net>
27702
27703         fchdir: fix off-by-one bug in previous patch
27704         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27705         (_gl_unregister_fd): Delete useless if.
27706
27707 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27708
27709         maint.mk: sort the list of syntax-check rules
27710         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27711         easier to get a sense of progress when the rules are run sequentially
27712         and take a long time.
27713
27714 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27715
27716         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27717         * modules/netinet_in: Likewise.
27718         * modules/sys_file: Likewise.
27719         * modules/sys_ioctl: Likewise.
27720         * modules/sys_select: Likewise.
27721         * modules/sys_socket: Likewise.
27722         * modules/sys_stat: Likewise.
27723         * modules/sys_time: Likewise.
27724         * modules/sys_times: Likewise.
27725         * modules/sys_utsname: Likewise.
27726         * modules/sys_wait: Likewise.
27727
27728 2009-09-01  Jim Meyering  <meyering@redhat.com>
27729
27730         fts: help ensure that return values are not ignored
27731         * lib/fts_.h (__GNUC_PREREQ): Define.
27732         (__attribute_warn_unused_result__): Define.
27733         (fts_children, fts_close, fts_open, fts_read): Declare with
27734         __attribute_warn_unused_result__.
27735
27736         fts: fts_close now fails also when closing a dir file descriptor fails
27737         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27738         and propagate to caller, along with errno.
27739
27740         announce-gen: correct formatting in --help output
27741         * build-aux/announce-gen (usage): Move the one-line description in
27742         --help output "up", to where it belongs, just after Usage:.
27743
27744 2009-08-31  Eric Blake  <ebb9@byu.net>
27745
27746         fchdir: port to mingw
27747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27748         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27749         opened, then use a substitute.
27750         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27751         replacement.
27752         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27753         (_gl_register_fd): No need to check stat if open already filters
27754         all directories.
27755         (fchdir): Fix error condition to match POSIX.
27756         * modules/fchdir (Depends-on): Add sys_stat.
27757         * doc/posix-functions/open.texi (open): Document the limitation.
27758         * modules/fchdir-tests: New file.
27759         * tests/test-fchdir.c: Likewise.
27760
27761         canonicalize: allow cross-testing from cygwin to mingw
27762         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27763         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27764         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27765         Likewise.
27766         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27767         target does not support symlinks.
27768         * tests/test-canonicalize-lgpl.sh: Likewise.
27769
27770         chown: avoid compilation warning on mingw
27771         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27772         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27773         mingw.
27774         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27775         * modules/chown (Depends-on): Add errno.
27776
27777 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27778
27779         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27780         command.
27781
27782 2009-08-31  Jim Meyering  <meyering@redhat.com>
27783
27784         canonicalize: remove useless initialization
27785         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27786         initialization of local, "end".
27787
27788 2009-08-30  Bruno Haible  <bruno@clisp.org>
27789
27790         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27791         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27792         ENOSYS.
27793
27794 2009-08-30  Bruno Haible  <bruno@clisp.org>
27795
27796         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27797         /usr/xpg4/bin/tr when it exists.
27798         * tests/test-pipe-filter-gi1.sh: Likewise.
27799
27800 2009-08-30  Bruno Haible  <bruno@clisp.org>
27801
27802         Work around deficient /usr/bin/id program on Solaris.
27803         * tests/test-file-has-acl.sh (ID): New variable.
27804         * tests/test-set-mode-acl.sh (ID): Likewise.
27805         * tests/test-copy-acl.sh (ID): Likewise.
27806         * tests/test-copy-file.sh (ID): Likewise.
27807
27808 2009-08-30  Bruno Haible  <bruno@clisp.org>
27809
27810         New module 'xstriconveh'.
27811         * lib/xstriconveh.h: New file.
27812         * lib/xstriconveh.c: New file.
27813         * modules/xstriconveh: New file.
27814
27815 2009-08-30  Bruno Haible  <bruno@clisp.org>
27816
27817         Make it easier to use mem_cd_iconveh.
27818         * lib/striconveh.h (iconveh_t): New type.
27819         (iconveh_open, iconveh_close): New declarations.
27820         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27821         with a single 'const iconveh_t *' argument.
27822         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27823         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27824         with a single 'const iconveh_t *' argument.
27825         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27826         * tests/test-striconveh.c (main): Update.
27827         * NEWS: Mention the change.
27828
27829 2009-08-30  Bruno Haible  <bruno@clisp.org>
27830
27831         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27832         problem.
27833
27834 2009-08-30  Bruno Haible  <bruno@clisp.org>
27835
27836         Work around iconv_open problem on Solaris.
27837         * lib/iconv_open-solaris.gperf: New file.
27838         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27839         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27840         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27841         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27842         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27843         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27844
27845 2009-08-29  Jim Meyering  <meyering@redhat.com>
27846
27847         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27848         * top/maint.mk (cvs-check): Remove target; it was just an alias
27849         to the better-named vc-diff-check.
27850         (maintainer-distcheck): Remove rule.  It was used only from
27851         the (alpha/beta/major) target, and all of its commands but one
27852         were coreutils-specific.
27853         (vc-dist): Remove rule.
27854         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27855         Run vc-diff-check, not vc-dist.
27856         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27857
27858 2009-08-27  Bruno Haible  <bruno@clisp.org>
27859
27860         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27861         of 0.
27862
27863 2009-08-27  Bruno Haible  <bruno@clisp.org>
27864
27865         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27866         compilers.
27867         * doc/func.texi: Document the SunPRO C bug.
27868
27869 2009-08-27  Bruno Haible  <bruno@clisp.org>
27870
27871         Fix link error on Solaris.
27872         * tests/test-parse-duration.c (xstrdup): Remove function.
27873
27874 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27875
27876         ignore-value: handle pointer types, too
27877         * lib/ignore-value.h (__attribute__): Remove definition.
27878         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27879         of a more concise and more-often effective "(void) i" statement.
27880         (ignore_ptr): New function to suppress warnings from functions that
27881         return pointers, and to make it explicit that one function doesn't
27882         handle all cases.
27883
27884 2009-08-25  Bruno Haible  <bruno@clisp.org>
27885
27886         dup2: work around a Linux bug.
27887         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27888         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27889         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27890         Reported by Simon Josefsson.
27891
27892 2009-08-25  Jim Meyering  <meyering@redhat.com>
27893
27894         libguestfs uses gnulib
27895         * users.txt: Add libguestfs.
27896
27897 2009-08-24  Eric Blake  <ebb9@byu.net>
27898
27899         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27900         * lib/pipe2.c (includes): Add binary-io.h.
27901         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27902
27903 2009-08-24  Bruno Haible  <bruno@clisp.org>
27904
27905         Tolerate declared but missing accept4 syscall.
27906         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27907         available.
27908         * lib/sys_socket.in.h (accept4): If the function is already present,
27909         override it.
27910         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27911         * modules/accept4 (Makefile.am): Compile accept4.c always.
27912         Reported by Paolo Bonzini and Eric Blake.
27913
27914 2009-08-23  Bruno Haible  <bruno@clisp.org>
27915
27916         New module 'accept4'.
27917         * lib/sys_socket.in.h (accept4): New declaration.
27918         * lib/accept4.c: New file.
27919         * m4/accept4.m4: New file.
27920         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27921         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27922         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27923         HAVE_ACCEPT4.
27924         * modules/accept4: New file.
27925         * doc/glibc-functions/accept4.texi: Mention the new module.
27926
27927 2009-08-24  Jim Meyering  <meyering@redhat.com>
27928
27929         progname: also set global program_invocation_name, when possible
27930         Before this change, a libtool-enabled program that calls glibc's
27931         error function would report the program name as
27932         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27933         * modules/progname (configure.ac): Check for a declaration of
27934         program_invocation_name.
27935         * lib/progname.c:  Include <errno.h>.
27936         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27937         Set program_invocation_name.
27938
27939 2009-08-23  Bruno Haible  <bruno@clisp.org>
27940
27941         * lib/dup3.c: Include <string.h>.
27942
27943 2009-08-23  Bruno Haible  <bruno@clisp.org>
27944
27945         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27946         * lib/pipe2.c (pipe2): Likewise.
27947         Suggested by Eric Blake.
27948
27949 2009-08-23  Bruno Haible  <bruno@clisp.org>
27950
27951         Tolerate declared but missing dup3 syscall.
27952         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27953         * lib/unistd.in.h (dup3): If the function is already present,
27954         override it.
27955         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27956         * modules/dup3 (Makefile.am): Compile dup3.c always.
27957         Reported by Paolo Bonzini.
27958
27959 2009-08-23  Bruno Haible  <bruno@clisp.org>
27960
27961         Tolerate declared but missing pipe2 syscall.
27962         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27963         available.
27964         * lib/unistd.in.h (pipe2): If the function is already present,
27965         override it.
27966         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27967         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27968         Reported by Paolo Bonzini.
27969
27970 2009-08-23  Bruno Haible  <bruno@clisp.org>
27971
27972         * lib/pipe2.c (pipe2): Move #ifs inside function.
27973
27974 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27975
27976         quotearg: document limitations of quote_these_too
27977         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27978         those limitations are created.
27979         * lib/quotearg.h (set_char_quoting): Document that digits and
27980         letters that are special after backslash are not permitted.
27981         (quotearg_char): Cross-reference set_char_quoting documentation.
27982
27983 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27984
27985         quotearg: implement custom_quoting_style
27986         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27987         right_quote fields.
27988         (set_custom_quoting): New public function.
27989         (quotearg_buffer_restyled): Add left_quote and right_quote
27990         arguments, handle them very much like locale quoting, and update
27991         all uses.
27992         (quotearg_n_custom): New public function.
27993         (quotearg_n_custom_mem): New public function.
27994         (quotearg_custom): New public function.
27995         (quotearg_custom_mem): New public function.
27996         * lib/quotearg.h: Prototype and document new public functions.
27997         (enum quoting_style): For escape_quoting_style and
27998         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27999         ignored even though they're otherwise like c_quoting_style.
28000         Add custom_quoting_style member and document with comparison to
28001         clocale_quoting_style.
28002         * tests/test-quotearg.c (custom_quotes): New array.
28003         (custom_results): New array.
28004         (main): Extend to test custom quoting.
28005
28006 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28007
28008         quotearg: fix right quote escaping when it's in quote_these_too
28009         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28010         quote, be sure to prepend only one backslash.
28011         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28012         (main): Test it.
28013
28014 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28015
28016         quotearg-tests: test escaping of embedded locale quotes
28017         * tests/test-quotearg.c (struct result_strings): Add member for
28018         new input.
28019         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28020         (inputs): Add new input.
28021         (results_g): Add expected results.
28022         (flag_results): Likewise.
28023         (locale_results): Likewise.
28024         (compare_strings): Check those.
28025
28026 2009-08-23  Bruno Haible  <bruno@clisp.org>
28027
28028         Tests for module 'dup3'.
28029         * modules/dup3-tests: New file.
28030         * tests/test-dup3.c: New file.
28031
28032         New module 'dup3'.
28033         * lib/unistd.in.h (dup3): New declaration.
28034         * lib/dup3.c: New file.
28035         * m4/dup3.m4: New file.
28036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28037         HAVE_DUP3.
28038         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28039         * modules/dup3: New file.
28040         * doc/glibc-functions/dup3.texi: Mention the new module.
28041
28042 2009-08-23  Bruno Haible  <bruno@clisp.org>
28043
28044         Tweak the dup2 test.
28045         * tests/test-dup2.c (main): Create the test file empty. Verify that an
28046         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
28047         the test file is still empty. Fix argument order of lseek.
28048
28049 2009-08-23  Bruno Haible  <bruno@clisp.org>
28050
28051         Avoid test link errors when the modules getopt-gnu, gettext are used.
28052         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
28053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28054
28055 2009-08-23  Bruno Haible  <bruno@clisp.org>
28056
28057         Fix getdtablesize() on mingw.
28058         * lib/getdtablesize.c (getdtablesize): Implement differently.
28059         * lib/unistd.in.h (getdtablesize): Improve comment.
28060
28061 2009-08-23  Bruno Haible  <bruno@clisp.org>
28062
28063         New module 'mkostemp'.
28064         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28065         * lib/stdlib.in.h (mksotemp): New declaration.
28066         * lib/mkostemp.c: New file, from glibc with modifications.
28067         * lib/tempname.h (GT_FILE): Remove outdated comment.
28068         (gen_tempname): Add flags argument.
28069         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28070         (__GT_FILE): Map to 1.
28071         (small_open, large_open): Remove macros.
28072         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28073         * lib/mkstemp.c (mkstemp): Update.
28074         * lib/mkdtemp.c (mkdtemp): Likewise.
28075         * m4/mkostemp.m4: New file.
28076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28077         HAVE_MKOSTEMP.
28078         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28079         HAVE_MKOSTEMP.
28080         * modules/mkostemp: New file, based on modules/mkstemp.
28081         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28082         * NEWS: Mention the change.
28083
28084 2009-08-23  Bruno Haible  <bruno@clisp.org>
28085
28086         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28087         Reported by Eric Blake.
28088
28089 2009-08-23  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28092         Reported by Eric Blake.
28093
28094 2009-08-23  Bruno Haible  <bruno@clisp.org>
28095
28096         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28097         * modules/pipe2 (Depends-on): Likewise.
28098
28099 2009-08-23  Eric Blake  <ebb9@byu.net>
28100
28101         fcntl-h: add O_TTY_INIT support
28102         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28103         * tests/test-fcntl-h.c (o): Test it.
28104         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28105
28106         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28107         * modules/fcntl: Move <fcntl.h> header replacement...
28108         * modules/fcntl-h: ...to new name, so as not to collide with
28109         like-named function.
28110         * tests/test-fcntl.c: Rename...
28111         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28112         * modules/fcntl-tests: Rename...
28113         * modules/fcntl-h-tests: ...to this.  Update test file name.
28114         * modules/chdir-long (Depends-on): Update clients.
28115         * modules/chdir-safer (Depends-on): Likewise.
28116         * modules/fcntl-safer (Depends-on): Likewise.
28117         * modules/fts (Depends-on): Likewise.
28118         * modules/mkancesdirs (Depends-on): Likewise.
28119         * modules/mkdir-p (Depends-on): Likewise.
28120         * modules/open (Depends-on): Likewise.
28121         * modules/savewd (Depends-on): Likewise.
28122         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28123         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28124
28125 2009-08-22  Bruno Haible  <bruno@clisp.org>
28126
28127         * modules/binary-io (License): Relicense under LGPL.
28128         * modules/pipe2 (License): Likewise.
28129
28130 2009-08-22  Bruno Haible  <bruno@clisp.org>
28131
28132         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28133         return value.
28134         * lib/pipe-filter-gi.c (filter_init): Likewise.
28135         Reported by Eric Blake.
28136
28137 2009-08-22  Bruno Haible  <bruno@clisp.org>
28138
28139         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28140         * modules/pipe (Depends-on): Add pipe2.
28141
28142 2009-08-22  Bruno Haible  <bruno@clisp.org>
28143
28144         Tests for module 'pipe2'.
28145         * modules/pipe2-tests: New file.
28146         * tests/test-pipe2.c: New file.
28147
28148         New module 'pipe2'.
28149         * lib/unistd.in.h (pipe2): New declaration.
28150         * lib/pipe2.c: New file.
28151         * m4/pipe2.m4: New file.
28152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28153         HAVE_PIPE2.
28154         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28155         * modules/pipe2: New file.
28156         * doc/glibc-functions/pipe2.texi: Mention the new module.
28157
28158 2009-08-22  Bruno Haible  <bruno@clisp.org>
28159
28160         Reference some new glibc functions.
28161         * doc/glibc-functions/accept4.texi: New file.
28162         * doc/glibc-functions/dup3.texi: New file.
28163         * doc/glibc-functions/mkostemp.texi: New file.
28164         * doc/glibc-functions/pipe2.texi: New file.
28165         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28166         (Glibc sys/socket.h): Refer to accept4.
28167         (Glibc unistd.h): Refer to dup3, pipe2.
28168         Reported by Eric Blake.
28169
28170 2009-08-22  Jim Meyering  <meyering@redhat.com>
28171             Bruno Haible  <bruno@clisp.org>
28172
28173         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28174         This makes it so packages using automake-1.11's silent-rules option
28175         can print e.g., a single "GEN    configmake.h" line, rather than
28176         the 30+ statements that perform the job.  If you want to see the
28177         actual commands, you can still run "make V=1".
28178         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28179         so that make output is abbreviated when those variables are defined
28180         appropriately.
28181         * modules/argz: Likewise.
28182         * modules/arpa_inet: Likewise.
28183         * modules/byteswap: Likewise.
28184         * modules/configmake: Likewise.
28185         * modules/dirent: Likewise.
28186         * modules/errno: Likewise.
28187         * modules/fcntl: Likewise.
28188         * modules/float: Likewise.
28189         * modules/fnmatch: Likewise.
28190         * modules/getopt-posix: Likewise.
28191         * modules/glob: Likewise.
28192         * modules/iconv_open: Likewise.
28193         * modules/inttypes: Likewise.
28194         * modules/localcharset: Likewise.
28195         * modules/locale: Likewise.
28196         * modules/math: Likewise.
28197         * modules/netdb: Likewise.
28198         * modules/netinet_in: Likewise.
28199         * modules/poll: Likewise.
28200         * modules/posix_spawnp-tests: Likewise.
28201         * modules/sched: Likewise.
28202         * modules/search: Likewise.
28203         * modules/selinux-h: Likewise.
28204         * modules/signal: Likewise.
28205         * modules/spawn: Likewise.
28206         * modules/stdarg: Likewise.
28207         * modules/stdbool: Likewise.
28208         * modules/stddef: Likewise.
28209         * modules/stdint: Likewise.
28210         * modules/stdio: Likewise.
28211         * modules/stdlib: Likewise.
28212         * modules/string: Likewise.
28213         * modules/strings: Likewise.
28214         * modules/sys_file: Likewise.
28215         * modules/sys_ioctl: Likewise.
28216         * modules/sys_select: Likewise.
28217         * modules/sys_socket: Likewise.
28218         * modules/sys_stat: Likewise.
28219         * modules/sys_time: Likewise.
28220         * modules/sys_times: Likewise.
28221         * modules/sys_utsname: Likewise.
28222         * modules/sys_wait: Likewise.
28223         * modules/sysexits: Likewise.
28224         * modules/time: Likewise.
28225         * modules/unistd: Likewise.
28226         * modules/wchar: Likewise.
28227         * modules/wctype: Likewise.
28228
28229 2009-08-22  Jim Meyering  <meyering@redhat.com>
28230
28231         announce-gen: detect write failure
28232         * build-aux/announce-gen: Add Coda at end.
28233         Remove equivalent-but-more-verbose block at top.
28234
28235 2009-08-19  Akim Demaille  <demaille@gostai.com>
28236
28237         bootstrap: --help to stdout.
28238         * bootstrap (usage): Don't send --help to stderr.
28239         Use a here doc instead of a long string.
28240
28241 2009-08-21  Eric Blake  <ebb9@byu.net>
28242
28243         test-popen-safer: split from test-popen
28244         * tests/test-popen.c (main): Move...
28245         * tests/test-popen.h: ...into new file.
28246         * tests/test-popen-safer2.c: New file.
28247         * modules/popen-tests (Files): Add test-popen.h.
28248         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28249         Suggested by Bruno Haible.
28250
28251         test-fcntl-safer: split from test-open
28252         * tests/test-open.c (main): Move...
28253         * tests/test-open.h: ...into new file.
28254         * tests/test-fcntl-safer.c: New file.
28255         * modules/open-tests (Files): Add test-open.h.
28256         * modules/fcntl-safer-tests: New file.
28257         Suggested by Bruno Haible.
28258
28259         test-fopen-safer: split from test-fopen
28260         * tests/test-fopen.c (main): Move...
28261         * tests/test-fopen.h: ...into new file.
28262         * tests/test-fopen-safer.c: New file.
28263         * modules/fopen-tests (Files): Add test-fopen.h.
28264         * modules/fopen-safer-tests: New file.
28265         Suggested by Bruno Haible.
28266
28267 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28268
28269         popen-safer: test O_CLOEXEC at run-time.
28270         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28271
28272 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28273
28274         fcntl: move more flags to the header
28275         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28276         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28277         * lib/fcntl.in.h: Do both things here.
28278
28279 2009-08-21  Jim Meyering  <meyering@redhat.com>
28280
28281         consistently remove $@-t before redirecting to it
28282         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28283         * modules/alloca-opt: Likewise.
28284         * modules/byteswap: Likewise.
28285         * modules/fnmatch: Likewise.
28286         * modules/getopt-posix: Likewise.
28287         * modules/glob: Likewise.
28288         * modules/poll: Likewise.
28289         * modules/posix_spawnp-tests: Likewise.
28290         * modules/sys_socket: Likewise.
28291         * modules/sysexits: Likewise.
28292
28293 2009-08-21  Eric Blake  <ebb9@byu.net>
28294
28295         popen: simplify access to original popen
28296         * lib/popen.c (rpl_popen): No need to worry about popen being a
28297         macro.
28298         Reported by Bruno Haible.
28299
28300 2009-08-20  Eric Blake  <ebb9@byu.net>
28301
28302         build: avoid some compiler warnings
28303         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28304         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28305         type.
28306         (new_exclude_segment, excluded_file_pattern_p)
28307         (excluded_file_name_p): Reduce scope.
28308         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28309         old-style declaration.
28310
28311 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28312
28313         * tests/test-exclude1.sh: Handle Windows EOL.
28314         * tests/test-exclude2.sh: Likewise.
28315         * tests/test-exclude3.sh: Likewise.
28316         * tests/test-exclude4.sh: Likewise.
28317         * tests/test-exclude5.sh: Likewise.
28318         * tests/test-exclude6.sh: Likewise.
28319         * tests/test-exclude7.sh: Likewise.
28320
28321 2009-08-19  Akim Demaille  <demaille@gostai.com>
28322
28323         bootstrap: find sha1sum when named gsha1sum.
28324         * bootstrap (find_tool): New.
28325         ($SHA1SUM): New.
28326         Use it.
28327
28328 2009-08-20  Jim Meyering  <meyering@redhat.com>
28329
28330         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28331         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28332         expression that converts "." in a file name to "\." in the resulting
28333         regexp.  Start with a dummy statement, so that prior shell variable
28334         definitions are expanded portably.  Reported by Simon Josefsson.
28335
28336 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28337
28338         Fix polling for writeability of a screen buffer.
28339         * lib/poll.c: Distinguish input and screen buffers for the
28340         Win32 implementation.
28341         * lib/select.c: Likewise.
28342
28343 2009-08-19  Eric Blake  <ebb9@byu.net>
28344
28345         popen-safer: prevent popen from clobbering std descriptors
28346         * modules/popen-safer: New file.
28347         * lib/popen-safer.c: Likewise.
28348         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28349         * lib/stdio--.h (popen): Provide override.
28350         * lib/stdio-safer.h (popen_safer): Provide declaration.
28351         * tests/test-popen.c (includes): Partially test this.
28352         * modules/popen-safer-tests: New file, for more tests.
28353         * tests/test-popen-safer.c: Likewise.
28354         * MODULES.html.sh (file stream based Input/Output): Mention it.
28355
28356         tests: test some of the *-safer modules
28357         * modules/fopen-safer (Depends-on): Add fopen.
28358         * modules/fcntl-safer (Depends-on): Add fcntl.
28359         * modules/stdlib-safer (Depends-on): Add stdlib.
28360         (configure.ac): Set indicator.
28361         * modules/unistd-safer (configure.ac): Likewise.
28362         * modules/tmpfile-safer (configure.ac): Likewise.
28363         (Depends-on): Add tmpfile.
28364         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28365         active.
28366         * tests/test-fopen.c (includes): Test safer versions when they are
28367         in use.
28368         * tests/test-open.c (includes): Likewise.
28369
28370         popen: fix cygwin 1.5 bug when stdin closed
28371         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28372         * modules/popen: New file.
28373         * modules/popen-tests: Likewise.
28374         * tests/test-popen.c: Likewise.
28375         * m4/popen.m4: Likewise.
28376         * lib/popen.c: Likewise.
28377         * lib/stdio.in.h (popen): New declaration.
28378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28379         * modules/stdio (Makefile.am): Likewise.
28380         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28381
28382 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28383
28384         maint.mk: give full control over update-copyright exclusions
28385         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28386         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28387         (update-copyright): Don't force inclusion of top-level
28388         ChangeLog.  Don't force exclusion of all COPYING files, but make
28389         them the default exclusion instead.
28390
28391 2009-08-16  Bruno Haible  <bruno@clisp.org>
28392
28393         Fix test failures on Solaris 10.
28394         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28395         tests when Solaris iconv() is used.
28396         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28397         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28398         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28399         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28400         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28401
28402 2009-08-16  Bruno Haible  <bruno@clisp.org>
28403
28404         Fix test failures on Solaris 10.
28405         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28406         'tr' program and pass it as first argument.
28407         * tests/test-pipe-filter-gi1.sh: Likewise.
28408         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28409         program as first argument.
28410         * tests/test-pipe-filter-gi1.c (main): Likewise.
28411
28412 2009-08-16  Eric Blake  <ebb9@byu.net>
28413
28414         fpurge: fix previous commits
28415         * modules/fpurge (Makefile.am): Make replacement conditional,
28416         partially reverting 2007-04-29 change; missed in previous
28417         attempt.
28418         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28419         is missing.
28420
28421 2009-08-16  Bruno Haible  <bruno@clisp.org>
28422
28423         Clarify fpurge's effect on the file position.
28424         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28425         * tests/test-fpurge.c (main): Make a second pass for checking the file
28426         position.
28427
28428 2009-08-16  Bruno Haible  <bruno@clisp.org>
28429
28430         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28431         declaration of fpurge is missing.
28432         * tests/test-fpurge.c (main): Check that the file has not more contents
28433         than expected. Close the file before removing it.
28434
28435 2009-08-15  Eric Blake  <ebb9@byu.net>
28436
28437         fpurge: don't wrap working cygwin implementation
28438         * lib/fpurge.c (fpurge): Fix comment typo.
28439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28440         1.7 to avoid replacement.
28441         * tests/test-fpurge.c (main): Enhance test.
28442
28443 2009-08-15  Eric Blake  <ebb9@byu.net>
28444         and Jim Meyering  <meyering@redhat.com>
28445
28446         test-update-copyright: skip if perl is insufficient
28447         * tests/test-update-copyright.sh: Failure to run maintainer tool
28448         should not cause testsuite failure on cygwin 1.5.
28449
28450 2009-08-14  Eric Blake  <ebb9@byu.net>
28451
28452         doc: mention more functions added in cygwin 1.7.0
28453         * doc/posix-headers/limits.texi (limits.h): Update for recent
28454         cygwin additions.
28455         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28456         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28457         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28458         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28459         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28460
28461 2009-08-14  Eric Blake  <ebb9@byu.net>
28462
28463         maint.mk: simplify update-copyright rule
28464         * top/maint.mk (update-copyright-local): Delete, and document how
28465         to do it in cfg.mk instead.
28466         (update-copyright-exclude-regexp): Delete, and document how to do
28467         it in .x-update-copyright instead.
28468         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28469         exclude ChangeLog.
28470
28471 2009-08-14  Bruno Haible  <bruno@clisp.org>
28472
28473         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28474
28475 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28476
28477         maint.mk: support update-copyright-env
28478         * top/maint.mk (update-copyright-env): Define place-holder.
28479         (update-copyright): Expand $(update-copyright-env) before
28480         invoking update-copyright.
28481
28482 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28483
28484         update-copyright: implement forced reformatting
28485         * build-aux/update-copyright: Implement and document
28486         UPDATE_COPYRIGHT_FORCE.
28487         * tests/test-update-copyright.sh: Test it.
28488
28489 2009-08-14  Eric Blake  <ebb9@byu.net>
28490         and Bruno Haible  <bruno@clisp.org>
28491
28492         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28493         * tests/test-locale.c: Revert previous patch related to NULL.
28494         * tests/test-stdio.c: Likewise.
28495         * tests/test-stdlib.c: Likewise.
28496         * tests/test-string.c: Likewise.
28497         * tests/test-unistd.c: Likewise.
28498         * modules/time-tests (Depends-on): Add verify.
28499         * modules/wchar-tests (Depends-on): Likewise.
28500         * tests/test-time.c: Test for NULL compliance.
28501         * tests/test-wchar.c: Likewise.
28502         * modules/locale (Depends-on): Add stddef.
28503         * modules/stdio (Depends-on): Likewise.
28504         * modules/stdlib (Depends-on): Likewise.
28505         * modules/string (Depends-on): Likewise.
28506         * modules/time (Depends-on): Likewise.
28507         * modules/unistd (Depends-on): Likewise.
28508         * modules/wchar (Depends-on): Likewise.
28509         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28510         * lib/stdlib.in.h (includes): Likewise.
28511         * lib/string.in.h (includes): Likewise.
28512         * lib/time.in.h (includes): Likewise.
28513         * lib/unistd.in.h (includes): Likewise.
28514         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28515         replaced.
28516         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28517         * m4/stddef_h.m4: New file.
28518         * modules/stddef: Likewise.
28519         * lib/stddef.in.h: Likewise.
28520         * modules/stddef-tests: Likewise.
28521         * tests/test-stddef.c: Likewise.
28522         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28523         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28524         * doc/posix-headers/locale.texi (locale.h): Likewise.
28525         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28526         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28527         * doc/posix-headers/string.texi (string.h): Likewise.
28528         * doc/posix-headers/time.texi (time.h): Likewise.
28529         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28530         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28531
28532 2009-08-14  Eric Blake  <ebb9@byu.net>
28533
28534         doc: improve git diff of texinfo files
28535         * .gitattributes: Add rule for *.texi files, with hint on how to
28536         use it.
28537         Copied from m4, and based on a report by Bruno Haible.
28538
28539 2009-08-14  Bruno Haible  <bruno@clisp.org>
28540
28541         Disable multithread support by default on Cygwin 1.5.x for real.
28542         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28543
28544 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28545
28546         update-copyright: much ado about intervals
28547         * build-aux/update-copyright: Implement and document
28548         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28549         of copyright year intervals.
28550         Also, document UPDATE_COPYRIGHT_YEAR.
28551         * tests/test-update-copyright.sh: Test it.
28552
28553         update-copyright: convert 2-digit to 4-digit years
28554         * build-aux/update-copyright: Implement and document.
28555         * tests/test-update-copyright.sh: Update.
28556
28557 2009-08-14  Jim Meyering  <meyering@redhat.com>
28558
28559         test-exclude: avoid coreutils "make check" failure
28560         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28561         just as in test-argmatch.c.
28562
28563 2009-08-13  Eric Blake  <ebb9@byu.net>
28564
28565         test-dup2: fix bad assumption
28566         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28567         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28568
28569         test-version-etc: fix CRLF portability issue
28570         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28571         recognize \r.
28572         * tests/test-argp-version-etc-1.sh: Likewise.
28573
28574         getopt: update client modules
28575         * modules/argp (Depends-on): Use getopt-gnu.
28576         * modules/git-merge-changelog (Depends-on): Likewise.
28577         * modules/long-options (Depends-on): Likewise.
28578         * modules/xstrtol (Depends-on): Likewise.
28579
28580 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28581
28582         * tests/test-version-etc.sh: Don't fail on different
28583         project/version.  Don't fail on CRLF differences.  Rewrite to use
28584         multiple -e instead of multiple sed forks, suggested by Eric Blake
28585         <ebb9@byu.net>.
28586         * tests/test-argp-version-etc-1.sh: Likewise.
28587
28588 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28589
28590         * tests/test-version-etc.sh: Don't fail on different
28591         project/version.
28592
28593 2009-08-12  Bruno Haible  <bruno@clisp.org>
28594
28595         Tests for modules 'getopt-posix', 'getopt-gnu'.
28596         * modules/getopt-posix-tests: New file.
28597         * tests/test-getopt.c: New file.
28598         * tests/test-getopt.h: New file.
28599         * tests/test-getopt_long.h: New file.
28600
28601         New modules 'getopt-posix', 'getopt-gnu'.
28602         * modules/getopt-gnu: New file, renamed from modules/getopt.
28603         * modules/getopt-posix: New file.
28604         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28605         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28606         (gl_GETOPT): Remove macro.
28607         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28608         Disable the test against BSD systems that declare optreset. Test
28609         against mingw bug. Test against lack of support of optional arguments
28610         on many platforms.
28611         * doc/glibc-headers/getopt.texi: Update module name and list of
28612         relevant platforms.
28613         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28614         'getopt-gnu' and more portability problems.
28615         * NEWS: Mention the changes.
28616
28617 2009-08-12  Bruno Haible  <bruno@clisp.org>
28618
28619         Ensure that optarg etc. get declared by <unistd.h>.
28620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28621         AC_USE_SYSTEM_EXTENSIONS.
28622         * modules/getopt (Depends-on): Add 'extensions'.
28623
28624 2009-08-12  Bruno Haible  <bruno@clisp.org>
28625
28626         Avoid test link errors.
28627         * modules/pipe-filter-ii-tests (Makefile.am): Define
28628         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28629         * modules/pipe-filter-gi-tests (Makefile.am): Define
28630         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28632
28633 2009-08-12  Bruno Haible  <bruno@clisp.org>
28634
28635         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28636         gl_GETOPT_SUBSTITUTE before.
28637         (gl_GETOPT): Use it.
28638         * m4/argp.m4 (gl_ARGP): Update.
28639         Reported by Sergey Poznyakoff.
28640
28641         * m4/getopt.m4: Reorder macros.
28642         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28643         (gl_GETOPT_SUBSTITUTE): Remove macro.
28644
28645 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28646
28647         Minor improvement in gitlog-to-changelog
28648
28649         * build-aux/gitlog-to-changelog: New option `--format' makes
28650         output format string configurable.
28651
28652 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28653
28654         Optimize exclude: use hash tables for non-wildcard patterns.
28655
28656         * lib/exclude.c: Include hash.h and mbuiter.h
28657         (struct exclude_pattern, exclude_segment): New data types.
28658         (struct exclude): Rewrite.
28659         (fnmatch_pattern_has_wildcards): New function.
28660         (new_exclude_segment, free_exclude_segment): New functions.
28661         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28662         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28663         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28664         * modules/exclude: Depend on hash and mbuiter.
28665
28666         * modules/exclude-tests: New file.
28667         * tests/test-exclude.c: New file.
28668         * tests/test-exclude1.sh: New file.
28669         * tests/test-exclude2.sh: New file.
28670         * tests/test-exclude3.sh: New file.
28671         * tests/test-exclude4.sh: New file.
28672         * tests/test-exclude5.sh: New file.
28673         * tests/test-exclude6.sh: New file.
28674         * tests/test-exclude7.sh: New file.
28675
28676 2009-08-12  Bruno Haible  <bruno@clisp.org>
28677
28678         Ensure that getopt() gets declared by <unistd.h>.
28679         * lib/unistd.in.h: Conditionally include getopt.h.
28680         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28681         Set GNULIB_UNISTD_H_GETOPT.
28682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28683         GNULIB_UNISTD_H_GETOPT.
28684         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28685
28686 2009-08-12  Bruno Haible  <bruno@clisp.org>
28687
28688         Clarify logic.
28689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28690         gl_replace_getopt instead of GETOPT_H.
28691
28692 2009-08-12  Bruno Haible  <bruno@clisp.org>
28693
28694         * m4/getopt.m4: Add comments.
28695
28696 2009-08-12  Bruno Haible  <bruno@clisp.org>
28697
28698         Disable multithread support by default on Cygwin 1.5.x.
28699         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28700         set gl_use_threads=no if not specified otherwise.
28701
28702 2009-08-11  Bruno Haible  <bruno@clisp.org>
28703
28704         Avoid compilation error on NetBSD 5.0.
28705         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28706         * tests/test-stdio.c: Likewise.
28707         * tests/test-stdlib.c: Likewise.
28708         * tests/test-string.c: Likewise.
28709         * tests/test-unistd.c: Likewise.
28710         Reported by Greg Troxel <gdt@ir.bbn.com>
28711         at <https://savannah.gnu.org/support/?106973>.
28712
28713 2009-08-11  Bruno Haible  <bruno@clisp.org>
28714
28715         * modules/dup2-tests (Depends-on): Remove close.
28716
28717         Undo 2009-07-19 commit.
28718         * modules/acl-tests (Depends-on): Remove close.
28719         * modules/binary-io-tests (Depends-on): Likewise.
28720         * modules/closein-tests (Depends-on): Likewise.
28721         * modules/flock-tests (Depends-on): Likewise.
28722         * modules/fsync-tests (Depends-on): Likewise.
28723         * modules/lseek-tests (Depends-on): Likewise.
28724         * modules/pipe-tests (Depends-on): Likewise.
28725         * modules/posix_spawn-tests (Depends-on): Likewise.
28726         * modules/posix_spawnp-tests (Depends-on): Likewise.
28727         * modules/stat-time-tests (Depends-on): Likewise.
28728         * modules/yesno-tests (Depends-on): Likewise.
28729
28730 2009-08-10  Bruno Haible  <bruno@clisp.org>
28731
28732         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28733
28734 2009-08-10  Bruno Haible  <bruno@clisp.org>
28735
28736         Fix a gcc warning.
28737         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28738
28739 2009-08-10  Bruno Haible  <bruno@clisp.org>
28740
28741         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28742         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28743         not only the first time.
28744         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28745         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28746         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28747         is 1, not only the the first time.
28748
28749 2009-08-10  Bruno Haible  <bruno@clisp.org>
28750
28751         Make it possible to use module 'gethostname' without module 'close'.
28752         * lib/unistd.in.h (close): Evoke a link error only if
28753         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28755         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28756         * modules/unistd (Makefile.am): Substitute
28757         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28758         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28759         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28760         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28761         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28762         * modules/sys_ioctl (Makefile.am): Substitute
28763         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28764         * modules/socket (configure.ac): On native Windows, set
28765         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28766         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28767         Reported by Sam Steingold <sds@gnu.org>.
28768
28769 2009-08-10  Bruno Haible  <bruno@clisp.org>
28770
28771         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28772         * modules/ioctl (configure.ac): Likewise.
28773
28774 2009-08-10  Bruno Haible  <bruno@clisp.org>
28775
28776         Avoid collision between gnulib wrapper and libintl wrapper.
28777         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28778         already defined in intl/printf.c.
28779         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28780         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28781
28782 2009-08-09  Bruno Haible  <bruno@clisp.org>
28783
28784         Make <sys/select.h> really self-contained, also on Solaris 10.
28785         * lib/sys_select.in.h: Include <string.h>.
28786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28787         Solaris 10 problem.
28788         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28789         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28790         Reported by Jim Meyering.
28791
28792 2009-08-09  Bruno Haible  <bruno@clisp.org>
28793
28794         Avoid warnings from 'aclocal' that are due to a use of macro name
28795         AM_XGETTEXT_OPTION that is not defined in automake.
28796         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28797         automake.
28798         * modules/error (configure.ac): Likewise.
28799         * modules/propername (configure.ac): Likewise.
28800         * modules/vasprintf (configure.ac): Likewise.
28801         * modules/verror (configure.ac): Likewise.
28802         * modules/xprintf (configure.ac): Likewise.
28803         * modules/xvasprintf (configure.ac): Likewise.
28804
28805 2009-08-08  Bruno Haible  <bruno@clisp.org>
28806
28807         Avoid compilation error in C++ mode.
28808         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28809         Reported by Sam Steingold <sds@gnu.org>.
28810
28811 2009-08-08  Bruno Haible  <bruno@clisp.org>
28812
28813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28814         for the various Unix platforms.
28815         * doc/posix-headers/limits.texi: Update platforms list regarding
28816         HOST_NAME_MAX.
28817         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28818
28819 2009-08-07  Jim Meyering  <meyering@redhat.com>
28820
28821         selinux-at: fix typo in a comment
28822         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28823         Spotted by Paolo Bonzini.
28824
28825         selinux-at: remove redundant m4 code, add documentation
28826         * modules/selinux-at (configure.ac): Remove redundant code.
28827         LIB_SELINUX is already set via the dependent module, selinux-h.
28828         (Include): Add quotes around selinux-at.h.
28829         * lib/selinux-at.h: Add documentation.
28830         Reported by Bruno Haible in
28831         http://marc.info/?l=gnulib-bug&m=124958988300749
28832
28833 2009-08-07  Bruno Haible  <bruno@clisp.org>
28834
28835         Avoid link error on MacOS X 10.3 and 10.4.
28836         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28837         on non-ELF systems.
28838         * lib/argp-pv.c (argp_program_version): Likewise.
28839         Reported by Simon Josefsson.
28840
28841 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28842
28843         * tests/test-version-etc.sh: Use $EXEEXT.
28844
28845 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28846
28847         update-copyright: update documentation to point to maint.mk
28848         * build-aux/update-copyright: Here.
28849
28850 2009-08-06  Jim Meyering  <meyering@redhat.com>
28851
28852         maint.mk: support update-copyright-local
28853         * top/maint.mk (update-copyright-local): Define place-holder.
28854         (update-copyright): Depend on $(update-copyright-local).
28855
28856 2009-08-06  Jim Meyering  <meyering@redhat.com>
28857
28858         selinux-at: new module
28859         Initially written for coreutils, this module will soon be
28860         used by findutils, too.
28861         * MODULES.html.sh [Misc]: Add selinux-at.
28862         * lib/selinux-at.h: New file, from coreutils.
28863         * lib/selinux-at.c: Likewise.
28864         * modules/selinux-at: Likewise.
28865         (License): Change from LGPL to GPL, since it depends
28866         on the GPL'd openat module.
28867
28868         doc: update README
28869         * README: Remove references to cogito.
28870         Remove cvs-repo-updating instructions from 2007.
28871         Don't imply that CVS is better if you have limited disk space.
28872
28873 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28874
28875         update-copyright: support C-style comments
28876         * build-aux/update-copyright: Implement and document.
28877         * tests/test-update-copyright.sh: Test.
28878
28879 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28880
28881         update-copyright: support omitted "(C)"
28882         * build-aux/update-copyright: Implement and document.  Also,
28883         allow variable whitespace before "(C)".
28884         * tests/test-update-copyright.sh: Test.
28885
28886 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28887
28888         update-copyright: don't trip on non-FSF copyright statements
28889         * build-aux/update-copyright: Fix so that the first correctly
28890         formatted FSF copyright statement is recognized no matter what
28891         appears before it.  Update documentation.
28892         * tests/test-update-copyright.sh: Test that.
28893
28894 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28895
28896         update-copyright: clean up code a little
28897         * build-aux/update-copyright: Append "_re" to the name of any
28898         variable holding a regular expression.
28899         Replace "old" and "new" with "stmt" in variable names.
28900         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28901         handled correctly.
28902         Format code more consistently.
28903
28904 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28905
28906         update-copyright-tests: improve portability
28907         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28908         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28909
28910 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28911
28912         update-copyright: support @copyright{} and &copy;
28913         * build-aux/update-copyright: Implement and document.
28914         * tests/test-update-copyright.sh: Test.
28915
28916 2009-08-04  Jim Meyering  <meyering@redhat.com>
28917
28918         update-copyright-tests: correctly test EOL=\r\n handling
28919         * tests/test-update-copyright.sh: Put \r at the end of some lines
28920         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28921
28922         maint.mk: make update-copyright exclusion list more configurable
28923         * top/maint.mk (update-copyright): Default to excluding COPYING,
28924         but allow an override, in case someone does want to update that file.
28925
28926         maint.mk: don't update copyright date in COPYING
28927         * top/maint.mk (update-copyright): Exclude COPYING.
28928
28929         maint.mk: add a copyright-updating rule
28930         * top/maint.mk (update-copyright): New rule.
28931         Derived from coreutils/Makefile.am.
28932
28933         update-copyright: rename some variables
28934         * build-aux/update-copyright: Rename a few variables for clarity.
28935         Tweak syntax.  List Joel E. Denny as coauthor.
28936
28937 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28938
28939         update-copyright: fix bug for 2-digit last year and add tests
28940         * build-aux/update-copyright: Fix bug.
28941         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28942         specified.
28943         * modules/update-copyright-tests: New
28944         * tests/test-update-copyright.sh: New.
28945
28946 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28947
28948         update-copyright: handle leading tabs in line prefix
28949         * build-aux/update-copyright: Count leading tabs as 8 spaces
28950         when computing margin.  This helps with the formatting of
28951         ChangeLogs, for example.
28952         Fix documentation a little.
28953
28954 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28955
28956         update-copyright: support EOL=\r\n
28957         * build-aux/update-copyright: Implement that.
28958
28959 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28960
28961         update-copyright: automatically format copyright statements
28962         * build-aux/update-copyright: Implement that.
28963         Also, be a little more predictable and safer by always failing
28964         when the full copyright format is not perfectly recognized as an
28965         unbroken whole.  Discussed at
28966         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28967         Rewrite documentation.
28968
28969 2009-08-03  Bruno Haible  <bruno@clisp.org>
28970
28971         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28972
28973 2009-08-02  Bruno Haible  <bruno@clisp.org>
28974
28975         Tests for module 'uname'.
28976         * modules/uname-tests: New file.
28977         * tests/test-uname.c: New file.
28978
28979         New module 'uname'.
28980         * lib/uname.c: New file.
28981         * m4/uname.m4: New file.
28982         * modules/uname: New file.
28983         * doc/posix-functions/uname.texi: Mention the new module.
28984
28985 2009-08-02  Bruno Haible  <bruno@clisp.org>
28986
28987         Tests for module 'sys_utsname'.
28988         * modules/sys_utsname-tests: New file.
28989         * tests/test-sys_utsname.c: New file.
28990
28991         New module 'sys_utsname'.
28992         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28993         * m4/sys_utsname_h.m4: New file.
28994         * modules/sys_utsname: New file.
28995         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28996
28997 2009-08-02  Bruno Haible  <bruno@clisp.org>
28998
28999         Implicitly initialize the sockets library.
29000         * lib/gethostname.c: Include sockets.h.
29001         (rpl_gethostname): Invoke gl_sockets_startup.
29002         * lib/socket.c: Include sockets.h.
29003         (rpl_socket): Invoke gl_sockets_startup.
29004         * modules/gethostname (Depends-on): Add sockets.
29005         * modules/socket (Depends-on): Likewise.
29006         * tests/test-poll.c: Don't include sockets.h.
29007         (main): Don't invoke gl_sockets_startup.
29008         * tests/test-select.c: Don't include sockets.h.
29009         (main): Don't invoke gl_sockets_startup.
29010
29011 2009-08-02  Bruno Haible  <bruno@clisp.org>
29012
29013         Allow multiple calls to gl_sockets_startup.
29014         * lib/sockets.c (initialized_sockets_version): New variable.
29015         (gl_sockets_startup): Do nothing if already called for this or a higher
29016         version.
29017         (gl_sockets_cleanup): Reset initialized_sockets_version.
29018
29019 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29020
29021         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29022         different project/version.
29023
29024 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29025             Bruno Haible  <bruno@clisp.org>
29026
29027         Tests for module 'pipe-filter-gi'.
29028         * modules/pipe-filter-gi-tests: New file.
29029         * tests/test-pipe-filter-gi1.sh: New file.
29030         * tests/test-pipe-filter-gi1.c: New file.
29031         * tests/test-pipe-filter-gi2.sh: New file.
29032         * tests/test-pipe-filter-gi2-main.c: New file.
29033         * tests/test-pipe-filter-gi2-child.c: New file.
29034
29035         New module 'pipe-filter-gi'.
29036         * lib/pipe-filter-gi.c: New file.
29037         * modules/pipe-filter-gi: New file.
29038
29039 2009-08-02  Bruno Haible  <bruno@clisp.org>
29040             Paolo Bonzini  <bonzini@gnu.org>
29041
29042         Tests for module 'pipe-filter-ii'.
29043         * modules/pipe-filter-ii-tests: New file.
29044         * tests/test-pipe-filter-ii1.sh: New file.
29045         * tests/test-pipe-filter-ii1.c: New file.
29046         * tests/test-pipe-filter-ii2.sh: New file.
29047         * tests/test-pipe-filter-ii2-main.c: New file.
29048         * tests/test-pipe-filter-ii2-child.c: New file.
29049
29050         New module 'pipe-filter-ii'.
29051         * lib/pipe-filter.h: New file.
29052         * lib/pipe-filter-ii.c: New file.
29053         * lib/pipe-filter-aux.h: New file.
29054         * modules/pipe-filter-ii: New file.
29055
29056 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29057
29058         * lib/gc-libgcrypt.c: Change copyright to FSF.
29059         * lib/gc-gnulib.c: Likewise.
29060
29061 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29062
29063         * lib/gethostname.c: Include limits.h.
29064
29065 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29066             Bruno Haible  <bruno@clisp.org>
29067
29068         Ensure HOST_NAME_MAX as part of the gethostname module.
29069         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29070         define also HOST_NAME_MAX.
29071         * tests/test-gethostname.c: Include <limits.h>.
29072         (main): Check also HOST_NAME_MAX.
29073         * doc/posix-headers/limits.texi: Document the mingw problem.
29074
29075 2009-08-02  Bruno Haible  <bruno@clisp.org>
29076
29077         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29078         Add comments.
29079
29080 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29081
29082         * lib/gethostname.c: Add Windows wrapper.
29083         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29084         * modules/gethostname: Depend on sys_socket & errno, for also
29085         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29086         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29087
29088 2009-07-31  Jim Meyering  <meyering@redhat.com>
29089
29090         getloadavg: fix symbol name in comment
29091         * lib/getloadavg.c: Correct a typo I introduced when adding
29092         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29093         Matt Kraai spotted the problem.
29094
29095 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29096
29097         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29098         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29099         code also if ! defined N_NAME_POINTER.
29100         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29101         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29102         but the n_name member is a 12-byte array.
29103
29104 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29105
29106         update-copyright: generalize comment handling
29107         * build-aux/update-copyright: Handle copyright statements
29108         within more comment styles.
29109         Document usage.
29110         Report any file with an external copyright holder or parse failure.
29111
29112 2009-07-29  Jim Meyering  <meyering@redhat.com>
29113
29114         mktime: correct setting of REPLACE_MKTIME
29115         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29116
29117         update-copyright: new module
29118         * modules/update-copyright: New file.
29119         * build-aux/update-copyright: New file.
29120         * MODULES.html.sh (maint+release support): Add update-copyright.
29121
29122 2009-07-27  Bruno Haible  <bruno@clisp.org>
29123
29124         Fix compilation error when <ctime> is used and mktime is replaced.
29125         * lib/time.in.h (mktime): New declaration.
29126         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29127         REPLACE_MKTIME instead of defining mktime in config.h.
29128         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29129         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29130         Reported by Ross McFarland <rwmcfa1@neces.com>.
29131
29132 2009-07-27  Bruno Haible  <bruno@clisp.org>
29133
29134         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29135         Reported by Matt Kraai <mkraai@beckman.com>.
29136
29137 2009-07-25  Jim Meyering  <meyering@redhat.com>
29138
29139         maint.mk: avoid warnings about missing files
29140         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29141         diagnostic when .prev-version does not exist.
29142         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29143         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29144         nonexistent cfg.mk.
29145         Suggestions from Simon Josefsson.
29146
29147 2009-07-25  Bruno Haible  <bruno@clisp.org>
29148
29149         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29150         defined as macros. Needed on QNX 6.4.1.
29151         Reported by Matt Kraai <mkraai@beckman.com>.
29152
29153 2009-07-23  Jim Meyering  <meyering@redhat.com>
29154
29155         maint.mk: invoke "make dist" with a working value of XZ_OPT
29156         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29157
29158 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29159
29160         Make fseeko.c compile on QNX.
29161         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29162
29163 2009-07-22  Peter Simons  <simons@cryp.to>
29164
29165         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29166         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29167         * lib/md4.h: Likewise.
29168         * lib/md5.h: Likewise.
29169         * lib/sha1.h: Likewise.
29170         * lib/sha256.h: Likewise.
29171         * lib/sha512.h: Likewise.
29172
29173         tests-sha1: don't assign literal string to 'char *' variable
29174         * tests/test-sha1.c (main): Declare locals with "const" to match
29175         attributes of the right hand side.
29176
29177 2009-07-21  Eric Blake  <ebb9@byu.net>
29178
29179         dup2: fix more mingw problems
29180         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29181         fd to itself.
29182         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29183         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29184         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29185         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29186         care of mingw bugs.
29187
29188 2009-07-21  Jim Meyering  <meyering@redhat.com>
29189
29190         vc-list-files: avoid failure when /bin/sh is dash
29191         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29192         On some Debian based systems, /bin/sh is a symlink to dash, and running
29193         this command would omit the "/" following each 'tests' prefix:
29194           dash -x build-aux/vc-list-files -C . tests
29195         That is because bash and dash work differently:
29196           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29197           bash ok
29198           dash odd
29199
29200 2009-07-21  Eric Blake  <ebb9@byu.net>
29201
29202         dup2-tests: test previous patch
29203         * modules/dup2-tests: New file.
29204         * tests/test-dup2.c: Likewise.
29205         * tests/test-open.c (main): Avoid unspecified behavior.
29206         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29207         test.
29208
29209         dup2: work around mingw and cygwin 1.5 bug
29210         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29212         * modules/unistd (Makefile.am): Substitute it.
29213         * lib/unistd.in.h (dup2): Declare the replacement.
29214         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29215         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29216         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29217         * modules/execute (Depends-on): Add dup2.
29218         * modules/fseterr (Depends-on): Likewise.
29219         * modules/pipe (Depends-on): Likewise.
29220         * modules/posix_spawn-internal (Depends-on): Likewise.
29221
29222 2009-07-21  Bruno Haible  <bruno@clisp.org>
29223
29224         * modules/.gitattributes: New file.
29225
29226 2009-07-20  Bruno Haible  <bruno@clisp.org>
29227
29228         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29229         (main): Use it.
29230
29231 2009-07-20  Eric Blake  <ebb9@byu.net>
29232
29233         test-pipe: make a bit more robust.
29234         * tests/test-pipe.c (myerr): Allow error messages regardless of
29235         what we do to stderr.
29236         (test_pipe): Rearrange to avoid deadlock.
29237         (child_main): Try a larger read, to ensure we avoided deadlock.
29238         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29239         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29240         if misused.
29241
29242 2009-07-19  Jim Meyering  <meyering@redhat.com>
29243
29244         fts: avoid false-positive cycle-detection
29245         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29246         for each new command line argument.
29247
29248 2009-07-19  Bruno Haible  <bruno@clisp.org>
29249
29250         Fix build error on mingw with the modules sys_select and unistd.
29251         * modules/acl-tests (Depends-on): Add close.
29252         * modules/binary-io-tests (Depends-on): Likewise.
29253         * modules/closein-tests (Depends-on): Likewise.
29254         * modules/flock-tests (Depends-on): Likewise.
29255         * modules/fsync-tests (Depends-on): Likewise.
29256         * modules/lseek-tests (Depends-on): Likewise.
29257         * modules/pipe-tests (Depends-on): Likewise.
29258         * modules/posix_spawn-tests (Depends-on): Likewise.
29259         * modules/posix_spawnp-tests (Depends-on): Likewise.
29260         * modules/stat-time-tests (Depends-on): Likewise.
29261         * modules/yesno-tests (Depends-on): Likewise.
29262
29263 2009-07-19  Bruno Haible  <bruno@clisp.org>
29264
29265         Unify conditionals.
29266         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29267         macros, not at the compiler macros.
29268         * lib/pipe.c: Likewise.
29269         * lib/execute.c: Likewise.
29270         * lib/spawni.c: Likewise.
29271
29272 2009-07-19  Bruno Haible  <bruno@clisp.org>
29273
29274         Fix handling of closed stdin/stdout/stderr on mingw.
29275         * lib/w32spawn.h: Include unistd.h.
29276         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29277         file descriptor with O_NOINHERIT flag.
29278         (fd_safer_noinherit): New function, based on fd-safer.c.
29279         (dup_safer_noinherit): New function, based on dup-safer.c.
29280         (undup_safer_noinherit): New function.
29281         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29282         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29283         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29284         instead of fd_safer.
29285         * tests/test-pipe.c: Include <windows.h>.
29286         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29287         result.
29288
29289         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29290         from main.
29291         (test_pipe): Pass an extra argument for disambiguation.
29292         (main): Invoke parent_main or child_main.
29293
29294         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29295         consistently.
29296
29297 2009-07-18  Eric Blake  <ebb9@byu.net>
29298
29299         test-pipe: fix mingw build
29300         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29301
29302 2009-07-18  Bruno Haible  <bruno@clisp.org>
29303
29304         * modules/pipe-tests (Makefile.am): Fix typo.
29305
29306 2009-07-18  Eric Blake  <ebb9@byu.net>
29307
29308         error: fix mingw build
29309         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29310         Reported by Bruno Haible.
29311
29312         error: avoid undefined use of stdout
29313         * lib/error.c (error, error_at_line): Check that fd 1 is open
29314         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29315         is handling faults and the close_stdout module wants to report the
29316         detection of closed stdout as an error.
29317
29318 2009-07-17  Eric Blake  <ebb9@byu.net>
29319
29320         pipe: be robust in face of closed fds
29321         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29322         should cause child to misbehave.
29323         * modules/pipe-tests: New module.
29324         * tests/test-pipe.c: New file.
29325         * tests/test-pipe.sh: New file.
29326         Reported by Akim Demaille.
29327
29328 2009-07-14  Bruno Haible  <bruno@clisp.org>
29329
29330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29331         Reported by anonymous kc.
29332
29333 2009-07-07  Jim Meyering  <meyering@redhat.com>
29334
29335         maint.mk: don't look for translatable strings in *.m4 or *.mk
29336         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29337         when searching for translatable strings.
29338
29339 2009-07-05  Jim Meyering  <meyering@redhat.com>
29340
29341         remove superfluous parentheses in STREQ definition
29342         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29343         * lib/getugroups.c (STREQ): Likewise.
29344         * lib/fnmatch.c (STREQ): Likewise.
29345         Spotted by Bruno Haible.
29346
29347 2009-07-04  Jim Meyering  <meyering@redhat.com>
29348
29349         argv-iter: new module
29350         * MODULES.html.sh: Add argv-iter.
29351         * lib/argv-iter.c, lib/argv-iter.h: New files.
29352         * modules/argv-iter: New file.
29353         * modules/argv-iter-tests: New file.
29354         * tests/test-argv-iter.c: Test it.
29355
29356 2009-07-04  Bruno Haible  <bruno@clisp.org>
29357
29358         Fix assertion.
29359         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29360         contains more exact copies of a given entry than file2, leave the extra
29361         copies unpaired rather than aborting.
29362         Reported by Eric Blake.
29363
29364 2009-07-02  Bruno Haible  <bruno@clisp.org>
29365
29366         Speedup git-merge-changelog for git cherry-pick.
29367         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29368         (entries_mapping_get): New function, extracted from compute_mapping.
29369         (entries_mapping_reverse_get): New function.
29370         (compute_mapping): Add a 'full' argument. Return the result in a
29371         'struct entries_mapping'.
29372         (main): Update. Access the mappings through entries_mapping_get.
29373         Reported by Eric Blake.
29374
29375 2009-07-02  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29378         best_i.
29379
29380 2009-07-02  Bruno Haible  <bruno@clisp.org>
29381
29382         Speed up approximate search for matching ChangeLog entries.
29383         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29384         argument. Call fstrcmp_bounded instead of fstrcmp.
29385         (compute_mapping, try_split_merged_entry, main): Update callers.
29386
29387 2009-07-02  Bruno Haible  <bruno@clisp.org>
29388
29389         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29390
29391 2009-06-30  Bruno Haible  <bruno@clisp.org>
29392
29393         Reduce the number of uc_is_cased calls.
29394         * lib/unicase.h (casing_suffix_context_t): Add
29395         'first_char_except_ignorable' field.
29396         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29397         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29398         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29399         Update initializer.
29400         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29401         case-ignorable characters.
29402         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29403         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29404         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29405         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29406         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29407
29408 2009-06-30  Bruno Haible  <bruno@clisp.org>
29409
29410         Tests for module 'unicase/ignorable'.
29411         * modules/unicase/ignorable-tests: New file.
29412         * tests/unicase/test-ignorable.c: New file, generated by
29413         gen-uni-tables.
29414
29415         Tests for module 'unicase/cased'.
29416         * modules/unicase/cased-tests: New file.
29417         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29418         * tests/unicase/test-predicate-part1.h: New file, derived from
29419         tests/unictype/test-predicate-part1.h.
29420         * tests/unicase/test-predicate-part2.h: New file, same as
29421         tests/unictype/test-predicate-part2.h.
29422
29423         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29424         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29425         (output_casing_properties): New function.
29426         (main): Call it.
29427         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29428         * lib/unicase/cased.c: Include unictype/bitmap.h.
29429         (uc_is_cased): Define through a bitmap lookup.
29430         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29431         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29432         (uc_is_case_ignorable): Define through a bitmap lookup.
29433         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29434         lib/unictype/bitmap.h.
29435         (Depends-on): Add inline. Clean up.
29436         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29437         lib/unictype/bitmap.h.
29438         (Depends-on): Add inline. Clean up.
29439         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29440         recognition.
29441         * tests/unicase/test-u16-tolower.c (main): Likewise.
29442         * tests/unicase/test-u32-tolower.c (main): Likewise.
29443
29444 2009-06-30  Bruno Haible  <bruno@clisp.org>
29445
29446         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29447         * lib/unicase/u16-casemap.c: Likewise.
29448         * lib/unicase/u32-casemap.c: Likewise.
29449
29450 2009-06-29  Bruno Haible  <bruno@clisp.org>
29451
29452         Define u32_casefold as a wrapper around u32_ct_casefold.
29453         * lib/unicase/u32-casefold.c: Update.
29454         * modules/unicase/u32-casefold (Depends-on): Add
29455         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29456         unicase/empty-suffix-context. Clean up.
29457
29458         Define u16_casefold as a wrapper around u16_ct_casefold.
29459         * lib/unicase/u16-casefold.c: Update.
29460         * modules/unicase/u16-casefold (Depends-on): Add
29461         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29462         unicase/empty-suffix-context. Clean up.
29463
29464         Define u8_casefold as a wrapper around u8_ct_casefold.
29465         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29466         * lib/unicase/u8-casefold.c: Update.
29467         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29468         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29469
29470         Define u32_totitle as a wrapper around u32_ct_totitle.
29471         * lib/unicase/u32-totitle.c: Update.
29472         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29473         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29474
29475         Define u16_totitle as a wrapper around u16_ct_totitle.
29476         * lib/unicase/u16-totitle.c: Update.
29477         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29478         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29479
29480         Define u8_totitle as a wrapper around u8_ct_totitle.
29481         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29482         functions.
29483         (FUNC): Delegate to U_CT_TOTITLE.
29484         * lib/unicase/u8-totitle.c: Update.
29485         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29486         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29487
29488         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29489         invocation.
29490         * modules/unicase/u32-tolower (Depends-on): Add
29491         unicase/empty-prefix-context, unicase/empty-suffix-context.
29492
29493         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29494         invocation.
29495         * modules/unicase/u16-tolower (Depends-on): Add
29496         unicase/empty-prefix-context, unicase/empty-suffix-context.
29497
29498         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29499         * modules/unicase/u8-tolower (Depends-on): Add
29500         unicase/empty-prefix-context, unicase/empty-suffix-context.
29501
29502         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29503         invocation.
29504         * modules/unicase/u32-toupper (Depends-on): Add
29505         unicase/empty-prefix-context, unicase/empty-suffix-context.
29506
29507         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29508         invocation.
29509         * modules/unicase/u16-toupper (Depends-on): Add
29510         unicase/empty-prefix-context, unicase/empty-suffix-context.
29511
29512         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29513         * modules/unicase/u8-toupper (Depends-on): Add
29514         unicase/empty-prefix-context, unicase/empty-suffix-context.
29515
29516         New module 'unicase/u32-ct-casefold'.
29517         * lib/unicase/u32-ct-casefold.c: New file.
29518         * modules/unicase/u32-ct-casefold: New file.
29519
29520         New module 'unicase/u16-ct-casefold'.
29521         * lib/unicase/u16-ct-casefold.c: New file.
29522         * modules/unicase/u16-ct-casefold: New file.
29523
29524         New module 'unicase/u8-ct-casefold'.
29525         * lib/unicase/u8-ct-casefold.c: New file.
29526         * lib/unicase/u-ct-casefold.h: New file, derived from
29527         lib/unicase/u-casefold.h.
29528         * modules/unicase/u8-ct-casefold: New file.
29529
29530         New module 'unicase/u32-ct-totitle'.
29531         * lib/unicase/u32-ct-totitle.c: New file.
29532         * modules/unicase/u32-ct-totitle: New file.
29533
29534         New module 'unicase/u16-ct-totitle'.
29535         * lib/unicase/u16-ct-totitle.c: New file.
29536         * modules/unicase/u16-ct-totitle: New file.
29537
29538         New module 'unicase/u8-ct-totitle'.
29539         * lib/unicase/u8-ct-totitle.c: New file.
29540         * lib/unicase/u-ct-totitle.h: New file, derived from
29541         lib/unicase/u-totitle.h.
29542         * modules/unicase/u8-ct-totitle: New file.
29543
29544         New module 'unicase/u32-ct-tolower'.
29545         * lib/unicase/u32-ct-tolower.c: New file.
29546         * modules/unicase/u32-ct-tolower: New file.
29547
29548         New module 'unicase/u16-ct-tolower'.
29549         * lib/unicase/u16-ct-tolower.c: New file.
29550         * modules/unicase/u16-ct-tolower: New file.
29551
29552         New module 'unicase/u8-ct-tolower'.
29553         * lib/unicase/u8-ct-tolower.c: New file.
29554         * modules/unicase/u8-ct-tolower: New file.
29555
29556         New module 'unicase/u32-ct-toupper'.
29557         * lib/unicase/u32-ct-toupper.c: New file.
29558         * modules/unicase/u32-ct-toupper: New file.
29559
29560         New module 'unicase/u16-ct-toupper'.
29561         * lib/unicase/u16-ct-toupper.c: New file.
29562         * modules/unicase/u16-ct-toupper: New file.
29563
29564         New module 'unicase/u8-ct-toupper'.
29565         * lib/unicase/u8-ct-toupper.c: New file.
29566         * modules/unicase/u8-ct-toupper: New file.
29567
29568         Add context arguments to u*_casemap functions.
29569         * lib/unicase/unicasemap.h: Include unicase.h.
29570         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29571         suffix_context arguments.
29572         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29573         functions.
29574         (FUNC): Add prefix_context and suffix_context arguments. Use
29575         uc_is_cased and uc_is_case_ignorable.
29576         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29577         * lib/unicase/u16-casemap.c: Likewise.
29578         * lib/unicase/u32-casemap.c: Likewise.
29579         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29580         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29581         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29582         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29583         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29584         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29585
29586         New module 'unicase/u32-suffix-context'.
29587         * lib/unicase/u32-suffix-context.c: New file.
29588         * modules/unicase/u32-suffix-context: New file.
29589
29590         New module 'unicase/u16-suffix-context'.
29591         * lib/unicase/u16-suffix-context.c: New file.
29592         * modules/unicase/u16-suffix-context: New file.
29593
29594         New module 'unicase/u8-suffix-context'.
29595         * lib/unicase/u8-suffix-context.c: New file.
29596         * lib/unicase/u-suffix-context.h: New file.
29597         * modules/unicase/u8-suffix-context: New file.
29598
29599         New module 'unicase/empty-suffix-context'.
29600         * lib/unicase/empty-suffix-context.c: New file.
29601         * modules/unicase/empty-suffix-context: New file.
29602
29603         New module 'unicase/u32-prefix-context'.
29604         * lib/unicase/u32-prefix-context.c: New file.
29605         * modules/unicase/u32-prefix-context: New file.
29606
29607         New module 'unicase/u16-prefix-context'.
29608         * lib/unicase/u16-prefix-context.c: New file.
29609         * modules/unicase/u16-prefix-context: New file.
29610
29611         New module 'unicase/u8-prefix-context'.
29612         * lib/unicase/u8-prefix-context.c: New file.
29613         * lib/unicase/u-prefix-context.h: New file.
29614         * lib/unicase/context.h: New file.
29615         * modules/unicase/u8-prefix-context: New file.
29616
29617         New module 'unicase/empty-prefix-context'.
29618         * lib/unicase/empty-prefix-context.c: New file.
29619         * modules/unicase/empty-prefix-context: New file.
29620
29621         New module 'unicase/ignorable'.
29622         * lib/unicase/ignorable.c: New file.
29623         * modules/unicase/ignorable: New file.
29624
29625         New module 'unicase/cased'.
29626         * lib/unicase/caseprop.h: New file.
29627         * lib/unicase/cased.c: New file.
29628         * modules/unicase/cased: New file.
29629
29630         New functions for case mapping of substrings.
29631         * lib/unicase.h (casing_prefix_context_t): New type.
29632         (unicase_empty_prefix_context): New variable.
29633         (u8_casing_prefix_context, u16_casing_prefix_context,
29634         u32_casing_prefix_context, u8_casing_prefixes_context,
29635         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29636         declarations.
29637         (casing_suffix_context_t): New type.
29638         (unicase_empty_suffix_context): New variable.
29639         (u8_casing_suffix_context, u16_casing_suffix_context,
29640         u32_casing_suffix_context, u8_casing_suffixes_context,
29641         u16_casing_suffixes_context, u32_casing_suffixes_context,
29642         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29643         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29644         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29645         declarations.
29646
29647 2009-06-28  Jim Meyering  <meyering@redhat.com>
29648
29649         boostrap: indent only with spaces
29650         * build-aux/bootstrap: Indent only with spaces, never TABs.
29651
29652         bootstrap: split long lines
29653         * build-aux/bootstrap: Keep line length < 80.
29654
29655         bootstrap: sync from coreutils
29656         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29657         just as autoreconf does.  Verify a list of prerequisite
29658         package-name,version-number pairs if defined in bootstrap.conf.
29659         Refer to README-prereq, if prerequisites are not satisfied.
29660
29661 2009-06-27  Eric Blake  <ebb9@byu.net>
29662
29663         tests: add test for bogus NULL definition
29664         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29665         * tests/test-stdlib.c: Likewise.
29666         * tests/test-string.c: Likewise.
29667         * tests/test-locale.c: Likewise.
29668         * tests/test-unistd.c: Likewise.
29669         * modules/stdio-tests (Depends-on): Add verify.
29670         * modules/stdlib-tests (Depends-on): Likewise.
29671         * modules/string-tests (Depends-on): Likewise.
29672         * modules/locale-tests (Depends-on): Likewise.
29673         * modules/unistd-tests (Depends-on): Likewise.
29674
29675 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29676
29677         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29678         self-explaining comment.
29679         * m4/selinux-selinux-h: Update serial.
29680         (gl_LIBSELINUX): New macro, adding a warning for missing development
29681         packages to code extracted from...
29682         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29683         Add warning for missing development packages here, too.
29684
29685 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29686
29687         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29688
29689 2009-06-25  Eric Blake  <ebb9@byu.net>
29690
29691         version-etc: fix regression
29692         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29693         gcc.
29694         (version_etc): Use it, to catch bugs with trailing NULL.
29695         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29696         (version_etc_va): Fix logic bug.
29697         * modules/version-etc-tests: Add test.
29698         * tests/test-version-etc.c: New file.
29699         * tests/test-version-etc.sh: Likewise.
29700
29701 2009-06-25  Sam Steingold  <sds@gnu.org>
29702
29703         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29704         mbtowc declaration.
29705
29706 2009-06-25  Eric Blake  <ebb9@byu.net>
29707
29708         fpurge: migrate into <stdio.h>
29709         * lib/fpurge.h: Delete...
29710         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29711         * lib/fpurge.c (fpurge): Change declaring header.
29712         * modules/fpurge (Files): Drop deleted file.
29713         (Depends-on): Add stdio.
29714         (configure.ac): Set witness.
29715         * modules/stdio (Makefile.am): Support fpurge macros.
29716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29718         * lib/fflush.c: Update client.
29719         * tests/test-fpurge.c: Likewise.
29720         * NEWS: Mention the change.
29721
29722 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29723
29724         * lib/argp-version-etc.c (program_authors): Add const
29725         qualifier.
29726         * lib/version-etc.c: Fix typos in the comments.
29727         * modules/argp-version-etc: Depends on version-etc.
29728
29729 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29730
29731         argp-version-etc: new module.
29732
29733         * lib/argp-version-etc.c: New file.
29734         * lib/argp-version-etc.h: New file.
29735         * modules/argp-version-etc: New file.
29736         * modules/argp-version-etc-tests: New file.
29737         * tests/test-argp-version-etc.c: New test.
29738         * tests/test-argp-version-etc-1.sh: New test.
29739
29740 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29741
29742         Provide additional interfaces and documentation for version-etc
29743         module.
29744
29745         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29746         interfaces.
29747         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29748         prototypes.
29749
29750 2009-06-24  Bruno Haible  <bruno@clisp.org>
29751
29752         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29753         HAVE_LIB${NAME} macro.
29754         Reported by Sam Steingold <sds@gnu.org>.
29755
29756 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29757
29758         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29759         needed.
29760
29761 2009-06-21  Bruno Haible  <bruno@clisp.org>
29762
29763         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29764         work.
29765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29766         together with LIB${NAME}, LTLIB${NAME}.
29767         Reported by Sam Steingold <sds@gnu.org>.
29768
29769 2009-06-20  Jim Meyering  <meyering@redhat.com>
29770
29771         tests: make sc_require_test_exit_idiom more generic
29772         * top/maint.mk (Exit_witness_file): New overridable variable.
29773         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29774         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29775
29776 2009-06-19  Jim Meyering  <meyering@redhat.com>
29777
29778         hash: reverse order of src/dst parameters in an internal interface
29779         * lib/hash.c (transfer_entries): Reverse order of parameters to
29780         put DST before SRC.  Adjust callers.
29781
29782         tests: test-hash: avoid wholesale duplication
29783         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29784         Instead, use a loop and add a single conditional.
29785
29786         tests: test-hash: allow seed selection via a command line argument
29787         * tests/test-hash.c (get_seed): New function.
29788         (main): Use it.
29789
29790 2009-06-19  Eric Blake  <ebb9@byu.net>
29791
29792         hash: avoid memory leak on allocation failure
29793         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29794         failure.  Factor repeated algorithm...
29795         (transfer_entries): ...into new helper routine.
29796         (hash_delete): React to hash_rehash return value.
29797
29798         hash: reduce memory pressure in hash_rehash no-op case
29799         * lib/hash.c (next_prime): Avoid overflow.
29800         (hash_initialize): Factor bucket size computation...
29801         (compute_bucket_size): ...into new helper function.
29802         (hash_rehash): Use new function and open coding to reduce memory
29803         pressure, and avoid a memory leak in USE_OBSTACK code.
29804         Reported by Jim Meyering.
29805
29806 2009-06-18  Eric Blake  <ebb9@byu.net>
29807
29808         hash: make rotation more obvious
29809         * modules/hash (Depends-on): Add bitrotate and stdint.
29810         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29811         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29812         (SIZE_MAX): Rely on headers for definition.
29813         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29814         (raw_hasher): Use rotr_sz.
29815         Suggested by Jim Meyering.
29816
29817         hash: fix memory leak in last patch
29818         * lib/hash.c (hash_rehash): Avoid memory leak.
29819
29820         hash: avoid no-op rehashing
29821         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29822
29823         hash: provide default callback functions
29824         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29825         (hash_initialize): Use them as defaults.
29826         * tests/test-hash.c (main): Test this.
29827
29828         hash: minor optimization
29829         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29830         when possible.
29831         (hash_initialize): Document this promise.
29832         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29833         * tests/test-hash.c (hash_compare_strings): Test this.
29834
29835 2009-06-18  Bruno Haible  <bruno@clisp.org>
29836
29837         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29838         going to be replaced anyway.
29839
29840 2009-06-18  Bruno Haible  <bruno@clisp.org>
29841
29842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29843         in one place.
29844         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29845         be replaced anyway.
29846
29847 2009-06-18  Eric Blake  <ebb9@byu.net>
29848
29849         hash: check for resize before insertion
29850         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29851         threshold before insertion, so that a pathological hash_rehash
29852         that fills every bucket can still trigger another rehash.
29853
29854 2009-06-18  Jim Meyering  <meyering@redhat.com>
29855
29856         hash-tests: add a loop around the small tests
29857         * tests/test-hash.c (main): Repeat small tests with selected
29858         small initial table sizes.
29859
29860 2009-06-17  Eric Blake  <ebb9@byu.net>
29861
29862         hash: minor cleanups
29863         * lib/hash.h (hash_entry): Make opaque, by moving...
29864         * lib/hash.c (hash_entry): ...here.
29865         (hash_insert): Clarify restrictions on what can be inserted.
29866         (hash_get_next): Clarify when it is safe to remove an element
29867         during traversal.
29868         (check_tuning): Skip verification when tuning is known safe.
29869         (hash_initialize): Clarify restrictions on tuning.
29870
29871 2009-06-17  Jim Meyering  <jim@meyering.net>
29872         and Eric Blake  <ebb9@byu.net>
29873
29874         hash-tests: new module
29875         * modules/hash-tests: New file.
29876         * tests/test-hash.c: New file.
29877
29878 2009-06-17  Eric Blake  <ebb9@byu.net>
29879
29880         strstr-simple: document new module
29881         * MODULES.html.sh: Document new module.
29882
29883         strstr, strcasestr: replace on platforms with broken memchr
29884         * modules/strstr: Split into...
29885         * modules/strstr-simple: ...new module that does not care about
29886         performance, but does care about glibc bug.
29887         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29888         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29889         if platform memchr is broken, per Debian bug 521737.
29890         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29891         memchr.
29892         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29893         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29894         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29895         * modules/mountlist (Depends-on): Add strstr-simple.
29896         * modules/gen-uni-tables (Depends-on): Likewise.
29897         * modules/argz (Depends-on): Add strstr.
29898
29899 2009-06-17  Bruno Haible  <bruno@clisp.org>
29900
29901         * modules/posix_spawn-internal (Depends-on): Add errno.
29902
29903 2009-06-17  Bruno Haible  <bruno@clisp.org>
29904
29905         Define missing ESTALE on Interix 3.5.
29906         * lib/errno.in.h (ESTALE): Assign a value if missing.
29907         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29909         missing.
29910         * doc/posix-headers/errno.texi: Mention the Interix bug.
29911         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29912
29913 2009-06-15  Eric Blake  <ebb9@byu.net>
29914
29915         memchr, memchr2: add valgrind exception
29916         * lib/memchr.valgrind: New file.
29917         * lib/memchr2.valgrind: New file.
29918         * modules/memchr (Files): Distribute valgrind file.
29919         * modules/memchr2 (Files): Likewise.
29920
29921         docs: memchr is no longer obsolete
29922         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29923         * lib/string.in.h (memchr): Simplify logic.
29924
29925 2009-06-14  Jim Meyering  <meyering@redhat.com>
29926
29927         link-follow: fix the "checking..." message to not mention trailing slash
29928         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29929         never considered trailing slashes.
29930
29931 2009-06-14  Bruno Haible  <bruno@clisp.org>
29932
29933         * m4/memchr.m4: Mention also the bug on IA-64.
29934         * doc/posix-functions/memchr.texi: Likewise.
29935
29936 2009-06-12  Eric Blake  <ebb9@byu.net>
29937
29938         memchr: detect broken x86_64 and alpha implementations
29939         * modules/memchr-tests (Depends-on): Move mmap detection...
29940         * modules/memchr (Depends-on): ...here.
29941         (configure.ac): Set indicator.
29942         * lib/string.in.h (memchr): Declare replacement.
29943         * modules/string (Makefile.am): Trigger replacement.
29944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29945         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29946         bugs.
29947         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29948         * modules/getpagesize (License): Relax license.
29949
29950 2009-06-11  Bruno Haible  <bruno@clisp.org>
29951
29952         * lib/idpriv.h: Add more references.
29953
29954 2009-06-08  Bruno Haible  <bruno@clisp.org>
29955
29956         Tests for module 'idpriv-droptemp'.
29957         * modules/idpriv-droptemp-tests: New file.
29958         * tests/test-idpriv-droptemp.sh: New file.
29959         * tests/test-idpriv-droptemp.su.sh: New file.
29960         * tests/test-idpriv-droptemp.c: New file.
29961
29962         New module 'idpriv-droptemp'.
29963         * lib/idpriv-droptemp.c: New file.
29964         * modules/idpriv-droptemp: New file.
29965
29966 2009-06-08  Bruno Haible  <bruno@clisp.org>
29967
29968         Tests for module 'idpriv-drop'.
29969         * modules/idpriv-drop-tests: New file.
29970         * tests/test-idpriv-drop.sh: New file.
29971         * tests/test-idpriv-drop.su.sh: New file.
29972         * tests/test-idpriv-drop.c: New file.
29973
29974         New module 'idpriv-drop'.
29975         * lib/idpriv.h: New file.
29976         * lib-idpriv-drop.c: New file.
29977         * m4/idpriv.m4: New file.
29978         * modules/idpriv-drop: New file.
29979
29980 2009-06-08  Bruno Haible  <bruno@clisp.org>
29981
29982         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29983         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29987         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29989
29990 2009-06-08  Eric Blake  <ebb9@byu.net>
29991
29992         test-strstr: use memory fence, when possible
29993         * tests/test-strstr.c (main): Use memory fence, in order to be
29994         more likely to trigger Debian bug 521737.
29995         * modules/strstr-tests (Files): Pull in additional files.
29996
29997         memchr: no longer obsolete, for wider field testing
29998         * modules/memchr (Status, Notice): Delete, this module is no
29999         longer obsolete.
30000         * modules/vasnprintf (Depends-on): Add memchr.
30001
30002 2009-06-07  Jim Meyering  <meyering@redhat.com>
30003
30004         hash: declare some functions with the warn_unused_result attribute
30005         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30006
30007 2009-06-07  Bruno Haible  <bruno@clisp.org>
30008
30009         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30010         Reported by Eric Blake.
30011
30012 2009-06-06  Eric Blake  <ebb9@byu.net>
30013
30014         test-alignof: fix typo with long double
30015         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30016         compiler error.
30017
30018 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30019
30020         Escape non-texinfo { and }s.
30021         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30022         markup error.
30023
30024 2009-06-04  Jim Meyering  <meyering@redhat.com>
30025
30026         gitlog-to-changelog: don't infloop on an empty commit log
30027         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30028         Reported by Boris Petersen <transacid@centerim.org>.
30029
30030 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30031
30032         version-etc: extend for packagers
30033         Add three new configure options, intended for packagers:
30034           --with-packager="packager name"
30035           --with-packager-version="packager-specific version"
30036           --with-packager-bug-reports="packager bug reporting"
30037         An example with coreutils:
30038           $ ./configure \
30039             --with-packager=Gentoo \
30040             --with-packager-bug-report=http://bugs.gentoo.org/ \
30041             --with-packager-version="patchset 1.6"
30042           $ ./src/ls --version | head -n2
30043           ls (GNU coreutils) 7.1-dirty
30044           Packaged by Gentoo (patchset 1.6)
30045         Note that the bug reporting info via --help doesn't show up because
30046         coreutils uses its own custom emit_bug_reporting_address() implementation
30047         in src/system.h.  If it didn't, it'd look like:
30048           $ ./src/ls --help | tail -n4
30049           Report bugs to <bug-coreutils@gnu.org>.
30050           Report Gentoo bugs to <http://bugs.gentoo.org/>.
30051           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
30052           General help using GNU software: <http://www.gnu.org/gethelp/>.
30053         * lib/version-etc.c: Print new information, if provided.
30054         * m4/version-etc.m4: New file.
30055         * modules/version-etc (Files): Add m4/version-etc.m4.
30056         (configure.ac): Add gl_VERSION_ETC.
30057
30058 2009-05-31  Bruno Haible  <bruno@clisp.org>
30059
30060         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30061         and 'int64_t'.
30062         * modules/alignof-tests (Dependencies): Add stdint.
30063         Reported by Eric Blake.
30064
30065 2009-05-31  Bruno Haible  <bruno@clisp.org>
30066
30067         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30068         restriction due to compiler bugs.
30069         Reported by Eric Blake.
30070
30071 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30072             Bruno Haible  <bruno@clisp.org>
30073
30074         Fix test-alignof failure.
30075         * lib/alignof.h (alignof_slot): New macro.
30076         (alignof_type): New macro, with the same semantics as the previous
30077         'alignof'.
30078         (alignof): Alias to alignof_slot.
30079         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30080         check that the results are usable as constant expressions.
30081
30082 2009-05-31  Bruno Haible  <bruno@clisp.org>
30083
30084         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30085         * tests/test-memchr.c (main): Check that memchr does not read past the
30086         first occurrence of the byte.
30087         * tests/test-strstr.c (main): Update comment.
30088         Suggested by Eric Blake.
30089
30090 2009-05-30  Bruno Haible  <bruno@clisp.org>
30091
30092         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30093         detail how to use dumpbin.
30094         Reported by David Byron <dbyron@dbyron.com>.
30095
30096 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30097
30098         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30099
30100 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30101
30102         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30103
30104 2009-05-28  Bruno Haible  <bruno@clisp.org>
30105
30106         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30107         build-aux/ files.
30108
30109 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30110
30111         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30112
30113 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30114
30115         * gnulib-tool (sed_transform_main_lib_file)
30116         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30117         regexps.
30118
30119 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30120
30121         * tests/test-strstr.c: Add another self-test.
30122         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30123         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30124
30125 2009-05-23  Bruno Haible  <bruno@clisp.org>
30126
30127         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30128         change.
30129
30130 2009-05-21  Bruno Haible  <bruno@clisp.org>
30131
30132         Simplify use of mode_t varargs.
30133         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30134         uses 'mode_t' or 'int'.
30135         * lib/openat.c (openat): Likewise.
30136         * lib/open-safer.c (open_safer): Likewise.
30137         * m4/mode_t.m4: New file.
30138         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30139         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30140         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30141         * modules/open (Files): Add m4/mode_t.m4.
30142         * modules/openat (Files): Likewise.
30143         * modules/fcntl-safer (Files): Likewise.
30144         Suggested by Eric Blake.
30145
30146 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30147
30148         * doc/glibc-functions/fallocate.texi: New file.
30149         * doc/gnulib.texi: Include it.
30150
30151 2009-05-21  Eric Blake  <ebb9@byu.net>
30152             Bruno Haible  <bruno@clisp.org>
30153
30154         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30155         invocations.
30156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30157
30158 2009-05-21  Eric Blake  <ebb9@byu.net>
30159             Bruno Haible  <bruno@clisp.org>
30160
30161         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30162         include_next. Fix of 2008-11-20 commit.
30163         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30164         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30165         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30166         NEXT_MATH_H.
30167         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30168         instead of NEXT_MATH_H.
30169
30170 2009-05-21  Bruno Haible  <bruno@clisp.org>
30171
30172         Avoid redefinition warnings for SIZE_MAX.
30173         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30174         Reported by Simon Josefsson.
30175
30176 2009-05-21  Bruno Haible  <bruno@clisp.org>
30177
30178         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30179         AC_CACHE_VAL.
30180
30181 2009-05-20  Bruno Haible  <bruno@clisp.org>
30182
30183         Make zeroptr.h work on mingw.
30184         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30185         mprotect.
30186         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30187         * modules/memchr2-tests (configure.ac): Likewise.
30188         * modules/memcmp-tests (configure.ac): Likewise.
30189         * modules/memmem-tests (configure.ac): Likewise.
30190         * modules/memrchr-tests (configure.ac): Likewise.
30191         Reported by Simon Josefsson.
30192
30193 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30194
30195         * tests/test-glob.c: Include string.h for strcmp prototype.
30196
30197 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30198
30199         * modules/getdelim (Depends-on): Add explicit stdint, although it
30200         was implicitly already pulled in via realloc-posix.
30201         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30202
30203 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30204
30205         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30206         G. Christensen" <tgc@jupiterrise.com>.
30207         * m4/sys_socket_h.m4: Check for sa_family_t.
30208         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30209         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30210         * tests/test-sys_socket.c: Check that sa_family_t works.
30211
30212 2009-05-18  Eric Blake  <ebb9@byu.net>
30213
30214         maint.mk: allow gnulib_dir in VPATH build
30215         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30216
30217 2009-05-15  Jim Meyering  <meyering@redhat.com>
30218
30219         maint.mk: Give gnulib_dir a default definition.
30220         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30221         Thus, most packages no longer need to specify this variable in cfg.mk
30222
30223 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30224
30225         rename.m4: fix typos that would make non-mingw cross-configure fail
30226         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30227
30228 2009-05-13  Eric Blake  <ebb9@byu.net>
30229
30230         mmap-anon: avoid out-of-order autoconf expansion
30231         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30232         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30233         * modules/memchr-tests (Depends-on): Add extensions.
30234         * modules/memchr2-tests (Depends-on): Add extensions.
30235         * modules/memcmp-tests (Depends-on): Add extensions.
30236         * modules/memmem-tests (Depends-on): Add extensions.
30237         * modules/memrchr-tests (Depends-on): Add extensions.
30238
30239 2009-05-13  Bruno Haible  <bruno@clisp.org>
30240
30241         Make some tests ISO C 99 compliant.
30242         * tests/zerosize-ptr.h: New file.
30243         * tests/test-memchr.c: Include zerosize-ptr.h.
30244         (main): Use a zero-size object pointer instead of NULL.
30245         * tests/test-memchr2.c: Include zerosize-ptr.h.
30246         (main): Use a zero-size object pointer instead of NULL.
30247         * tests/test-memcmp.c: Include zerosize-ptr.h.
30248         (main): Use a zero-size object pointer instead of NULL.
30249         * tests/test-memmem.c: Include zerosize-ptr.h.
30250         (main): Use a zero-size object pointer instead of NULL.
30251         * tests/test-memrchr.c: Include zerosize-ptr.h.
30252         (main): Use a zero-size object pointer instead of NULL.
30253         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30254         m4/mmap-anon.m4.
30255         (Depends-on): Add getpagesize.
30256         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30257         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30258         m4/mmap-anon.m4.
30259         (Depends-on): Add getpagesize.
30260         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30261         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30262         m4/mmap-anon.m4.
30263         (Depends-on): Add getpagesize.
30264         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30265         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30266         m4/mmap-anon.m4.
30267         (Depends-on): Add getpagesize.
30268         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30269         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30270         m4/mmap-anon.m4.
30271         (Depends-on): Add getpagesize.
30272         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30273
30274 2009-05-12  Bruno Haible  <bruno@clisp.org>
30275
30276         Tests for module 'alignof'.
30277         * modules/alignof-tests: New file.
30278         * tests/test-alignof.c: New file.
30279
30280 2009-05-12  Bruno Haible  <bruno@clisp.org>
30281
30282         Fix alignof macro.
30283         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30284         vendor compilers that are always correct.
30285
30286 2009-05-12  Bruno Haible  <bruno@clisp.org>
30287
30288         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30289         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30290         not whether its fully works.
30291
30292 2009-05-12  Bruno Haible  <bruno@clisp.org>
30293
30294         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30295
30296 2009-05-12  Jim Meyering  <meyering@redhat.com>
30297
30298         * top/maint.mk: Adjust backslash alignment.
30299
30300 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30301
30302         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30303
30304 2009-05-11  Eric Blake  <ebb9@byu.net>
30305
30306         argp: avoid undefined behavior
30307         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30308         macros.
30309
30310 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30311
30312         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30313         user.name to prevent git commit from complaining.
30314
30315 2009-05-10  Bruno Haible  <bruno@clisp.org>
30316
30317         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30318         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30319         it rewrites every file name only once.
30320         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30321
30322 2009-05-08  Bruno Haible  <bruno@clisp.org>
30323
30324         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30325         instead of 'max'.
30326
30327 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30328
30329         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30330         sockaddr_storage test.
30331
30332 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30333
30334         * modules/sys_socket (Makefile.am): Substitute
30335         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30336         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30337         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30338         * tests/test-sys_socket.c: Check sockaddr_storage.
30339
30340 2009-05-08  Bruno Haible  <bruno@clisp.org>
30341
30342         New module 'alignof'.
30343         * lib/alignof.h: New file.
30344         * modules/alignof: New file.
30345
30346 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30347             Bruno Haible  <bruno@clisp.org>
30348
30349         Fix test-file-has-acl on FreeBSD.
30350         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30351         mask is implicitly added.
30352         * tests/test-file-has-acl.c: Include <signal.h>.
30353         (main): Terminate the test after 5 seconds.
30354         * modules/acl-tests (configure.ac): Check for alarm function.
30355
30356 2009-05-04  Bruno Haible  <bruno@clisp.org>
30357
30358         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30359         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30360         * modules/errno (configure.ac): Drop AC_REQUIRE.
30361         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30362         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30363
30364 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30365
30366         * modules/glob-tests: New module.
30367         * tests/test-glob.c: Add.
30368
30369 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30370
30371         * modules/fnmatch-tests: New module.
30372         * tests/test-fnmatch.c: Add.
30373
30374 2009-05-04  Eric Blake  <ebb9@byu.net>
30375
30376         maint: make the new no-submodule-changes rule VPATH-safe
30377         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30378
30379 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30380             Bruno Haible  <bruno@clisp.org>
30381
30382         acl: Fix infinite loop on FreeBSD.
30383         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30384         of return value from acl_get_entry.
30385         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30386         Likewise.
30387
30388 2009-05-03  Bruno Haible  <bruno@clisp.org>
30389
30390         * lib/acl-internal.h (acl_entries): Clarify return value.
30391         * lib/acl_entries.c (acl_entries): Likewise.
30392
30393 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30394
30395         Bug fix in acl module.
30396         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30397
30398 2009-05-03  Bruno Haible  <bruno@clisp.org>
30399
30400         Create gperf-generated file in the source dir, not in the build dir.
30401         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30402         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30403         * modules/unicase/locale-language (unicase/locale-languages.h):
30404         Likewise.
30405         * modules/unicase/special-casing (unicase/special-casing-table.h):
30406         Likewise.
30407         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30408         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30409         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30410         Reported by Ralf Wildenhues.
30411
30412 2009-05-03  Bruno Haible  <bruno@clisp.org>
30413
30414         * modules/fnmatch (Description, configure.ac): Taken from
30415         fnmatch-posix.
30416         * modules/fnmatch-posix: Turn into a symbolic reference to the
30417         'fnmatch' module, and deprecate.
30418         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30419
30420 2009-05-03  Bruno Haible  <bruno@clisp.org>
30421
30422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30423         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30424         Reported by Ralf Wildenhues.
30425
30426 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30427
30428         * m4/fnmatch.m4: Fix fnmatch re-define.
30429
30430 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30431
30432         priv-set: new module and tests; adapt write-any-file
30433         * lib/priv-set.c: New file.
30434         * lib/priv-set.h: New file.
30435         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30436         * lib/write-any-file.c: Simplify by using priv-set module.
30437         * m4/priv-set.m4: New file.
30438         * modules/priv-set: New file.
30439         * modules/unlinkdir: Add dependency on priv-set module.
30440         * modules/write-any-file: Likewise.
30441
30442         Tests for module 'priv-set'.
30443         * modules/priv-set-tests: New file.
30444         * tests/test-priv-set.c: New file.
30445
30446 2009-05-03  Jim Meyering  <meyering@redhat.com>
30447             Bruno Haible  <bruno@clisp.org>
30448
30449         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30450         use the converted UTF-8 variant of the name instead.
30451
30452 2009-05-03  Jim Meyering  <meyering@redhat.com>
30453
30454         tests: tighten some getdate tests
30455         * tests/test-getdate.c (main): Tighten tests: require equality,
30456         not just greater than.  Set TZ envvar to UTC0.
30457
30458 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30459
30460         getdate: correctly interpret "next monday" when run on a Monday
30461         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30462         that e.g., "next tues" (when run on a tuesday) results in a date
30463         that is one week in the future, and not today's date.
30464         I.e., add a week when the wday is the same as the current one.
30465         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30466         and earlier by Martin Bernreuther and Jan Minář.
30467         * tests/test-getdate.c (main): Check that "next DAY" is always in
30468         the future and that "last DAY" is always in the past.
30469
30470 2009-05-02  Jim Meyering  <meyering@redhat.com>
30471
30472         build: ensure that a release build fails when a submodule is unclean
30473         * top/maint.mk (no-submodule-changes): New rule.
30474         (alpha beta major): Depend on it.
30475
30476 2009-05-02  Bruno Haible  <bruno@clisp.org>
30477
30478         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30479         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30480         shell variable gl_fnmatch_required to detect which variant is
30481         requested.
30482         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30483         gl_FUNC_FNMATCH_POSIX.
30484         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30485         exclude fnmatch-posix.
30486
30487 2009-05-02  Bruno Haible  <bruno@clisp.org>
30488
30489         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30490         * modules/mbsrtowcs (License): Change to LGPLv2+.
30491         * modules/strnlen1 (License): Likewise.
30492         Reported by Simon Josefsson.
30493
30494 2009-05-02  Bruno Haible  <bruno@clisp.org>
30495
30496         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30497         "cross".
30498         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30499         gnulib-tool was called with option --source-base=lib.
30500
30501 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30502
30503         Use automake *-local hooks without commands, for extensibility.
30504         * modules/localcharset (Makefile.am): Rename install-exec-local
30505         rule to install-exec-localcharset, and make it a prerequisite of
30506         install-exec-local.  Likewise, rename the uninstall-local rule to
30507         uninstall-localcharset, and make it a prerequisite of the former.
30508
30509 2009-05-01  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30512         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30513         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30515         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30516         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30517         m4/locale-zh.m4, m4/codeset.m4.
30518
30519         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30520         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30521         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30522         m4/locale-zh.m4.
30523
30524         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30525         REPLACE_WCRTOMB if mbstate_t must be replaced.
30526         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30527         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30528
30529 2009-05-01  Bruno Haible  <bruno@clisp.org>
30530
30531         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30532         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30533         dngettext, dcngettext, textdomain, bindtextdomain,
30534         bind_textdomain_codeset): Undefine before redefining.
30535
30536 2009-04-30  Bruno Haible  <bruno@clisp.org>
30537
30538         Fix bug introduced on 2009-04-25.
30539         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30540         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30541         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30542         is defined.
30543         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30544         is defined.
30545         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30546         is defined.
30547         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30548
30549 2009-04-28  Bruno Haible  <bruno@clisp.org>
30550
30551         Comment tweaks.
30552         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30553         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30554         * lib/unicase.h (u*_casexfrm): Likewise.
30555         Reported by Paolo Bonzini.
30556
30557 2009-04-28  Bruno Haible  <bruno@clisp.org>
30558
30559         Fix a compilation error.
30560         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30561         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30562         Reported by Jim Meyering.
30563
30564 2009-04-27  Bruno Haible  <bruno@clisp.org>
30565
30566         New module 'libunistring'.
30567         * modules/libunistring: New file.
30568         * m4/libunistring.m4: New file.
30569         * MODULES.html.sh (Unicode string functions): Add it.
30570
30571 2009-04-27  Eric Blake  <ebb9@byu.net>
30572
30573         maint.mk: allow package-specific header to provide <config.h>
30574         * top/maint.mk (sc_require_config_h): New variable.
30575         (sc_require_config_h, sc_require_config_h_first): Use it.
30576
30577 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30578
30579         * top/maint.mk (sc_avoid_if_before_free): Except
30580         useless-if-before-free script.
30581
30582 2009-04-27  Eric Blake  <ebb9@byu.net>
30583
30584         maintainer-makefile: depend on all required helper scripts
30585         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30586         useless-if-before-free.
30587         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30588         version, rather than assuming gnulib checkout is available.
30589         Reported by Simen Josefsson.
30590
30591 2009-04-26  Bruno Haible  <bruno@clisp.org>
30592
30593         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30594         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30595         "../" or "..".
30596
30597 2009-04-26  Bruno Haible  <bruno@clisp.org>
30598
30599         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30600         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30601         AC_LIB_HAVE_LINKFLAGS.
30602
30603 2009-04-26  Bruno Haible  <bruno@clisp.org>
30604
30605         Simplify calling convention of u*_conv_from_encoding.
30606         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30607         u32_conv_from_encoding): Expect a resultbuf argument and return the
30608         result directly as a pointer.
30609         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30610         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30611         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30612         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30613         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30614         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30615         Update.
30616         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30617         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30618         * lib/vasnprintf.c (VASNPRINTF): Update.
30619         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30620         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30621         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30622         * NEWS: Mention the change.
30623
30624 2009-04-26  Bruno Haible  <bruno@clisp.org>
30625
30626         Simplify calling convention of u*_conv_to_encoding.
30627         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30628         u32_conv_to_encoding): Expect a resultbuf argument and return the
30629         result directly as a pointer.
30630         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30631         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30632         freeing scaled_offsets if mem_iconveha failed.
30633         * lib/unicase/u-casexfrm.h (FUNC): Update.
30634         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30635         * lib/vasnprintf.c (VASNPRINTF): Update.
30636         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30637         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30638         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30639         * NEWS: Mention the change.
30640
30641 2009-04-26  Bruno Haible  <bruno@clisp.org>
30642
30643         Avoid test failures on AIX and OSF/1.
30644         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30645         malloc(0).
30646         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30647         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30648         Likewise.
30649         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30650         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30651         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30652         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30653         * doc/posix-functions/malloc.texi: Document the portability problem
30654         related to malloc(0).
30655
30656 2009-04-26  Bruno Haible  <bruno@clisp.org>
30657
30658         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30659         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30660         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30661
30662 2009-04-25  Bruno Haible  <bruno@clisp.org>
30663
30664         Avoid link error when creating a namespace clean library.
30665         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30666         as macro with arguments if already defined as an alias.
30667         * lib/signbitf.c (gl_signbitf): Don't undefine.
30668         * lib/signbitd.c (gl_signbitd): Don't undefine.
30669         * lib/signbitl.c (gl_signbitl): Don't undefine.
30670
30671 2009-04-25  Jim Meyering  <meyering@redhat.com>
30672
30673         vc-list-files: fix another quoting bug
30674         * build-aux/vc-list-files: Avoid sed backslash expansion
30675         of pathological directory names.
30676
30677 2009-04-25  Eric Blake  <ebb9@byu.net>
30678
30679         vc-list-files: fix shell quoting error
30680         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30681         timestamp.
30682
30683 2009-04-25  Jim Meyering  <meyering@redhat.com>
30684
30685         vc-list-files: restore lost functionality with subdir argument
30686         * build-aux/vc-list-files: When given a non-"." sub-directory
30687         argument, substitute the $dir/ prefix back onto each resulting name.
30688         Otherwise, coreutils' root_tests check would fail.
30689
30690 2009-04-24  Eric Blake  <ebb9@byu.net>
30691
30692         vc-list-files: ignore git symlinks
30693         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30694         than ls-files, to ignore git symlinks.
30695
30696         maint.mk: import improvements from m4
30697         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30698         (move_if_change): Delete unused macro.
30699         (news-date-check, vc-diff-check): Support VPATH builds.
30700         (announcement): Likewise.  Split --bootstrap-tools list...
30701         (boostrap-tools): ...into separate list, which can be overridden
30702         in cfg.mk.
30703         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30704         requiring dependency on useless-if-before-free module.
30705         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30706         Support VPATH builds.
30707
30708 2009-04-24  Jim Meyering  <meyering@redhat.com>
30709
30710         maint.mk: remove coreutils-specific rules and variables
30711         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30712         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30713         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30714
30715         maint.mk: remove obsolete rule
30716         * top/maint.mk (rel-check): Remove rule.
30717         (WGET, WGETFLAGS): Remove now-unused variables.
30718
30719 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30720
30721         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30722         consistency.
30723
30724         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30725         '$(PATH_SEPARATOR)' instead of ':'.
30726
30727 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30728
30729         * lib/getopt1.c (main): Use 'const' for static array.
30730
30731 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30732
30733         * top/maint.mk: Sync with coreutils.
30734         * NEWS: Explain incompatibilities.
30735
30736 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30737             Bruno Haible  <bruno@clisp.org>
30738
30739         Fix cross-compilation results.
30740         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30741         statement, as third argument of AC_TRY_RUN.
30742         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30743         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30744         Likewise.
30745         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30746         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30747         Likewise.
30748         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30749         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30750         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30751
30752 2009-04-20  Bruno Haible  <bruno@clisp.org>
30753
30754         Avoid test failure on mingw.
30755         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30756
30757 2009-04-20  Bruno Haible  <bruno@clisp.org>
30758
30759         Avoid compilation error on mingw.
30760         * modules/localename-tests (Depends-on): Add locale.
30761
30762 2009-04-19  Bruno Haible  <bruno@clisp.org>
30763
30764         Support for building a shared library on Windows platforms.
30765         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30766         (main): Test the presence of UNINORM_NFC here.
30767         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30768         (main): Test the presence of UNINORM_NFD here.
30769         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30770         (main): Test the presence of UNINORM_NFKC here.
30771         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30772         (main): Test the presence of UNINORM_NFKD here.
30773
30774 2009-04-19  Bruno Haible  <bruno@clisp.org>
30775
30776         Avoid a compiler warning.
30777         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30778         Change type of variable 'sequence'.
30779
30780 2009-04-19  Bruno Haible  <bruno@clisp.org>
30781
30782         * modules/configmake (Makefile.am): When the contents of configmake.h
30783         does not change, arrange to preserve its modification time.
30784
30785 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30786
30787         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30788         gettext domain.
30789
30790 2009-04-16  Jim Meyering  <meyering@redhat.com>
30791
30792         useless-if-before-free: improve conversion code
30793         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30794         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30795
30796 2009-04-14  Bruno Haible  <bruno@clisp.org>
30797
30798         * modules/fcntl (Depends-on): Add extensions.
30799         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30800
30801 2009-04-12  Ben Pfaff  <blp@gnu.org>
30802
30803         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30804         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30805
30806 2009-03-20  Ben Pfaff  <blp@gnu.org>
30807
30808         Make rename replace existing destinations on Windows.
30809         * m4/rename.m4: Add test for Mingw.
30810         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30811         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30812         * doc/posix-functions/rename.texi: Document.
30813
30814 2009-04-10  Bruno Haible  <bruno@clisp.org>
30815
30816         New include file "iconveh.h".
30817         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30818         * lib/striconveh.h: Include it.
30819         (enum iconv_ilseq_handler): Remove definition.
30820         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30821         striconveh.h.
30822         * lib/striconveha.c: Include striconveh.h.
30823         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30824         * modules/striconveh (Files): Add lib/iconveh.h.
30825         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30826         lib/striconveh.h.
30827
30828 2009-04-10  Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/uniconv.h: Update comment.
30831
30832 2009-04-10  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30835         always.
30836         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30837         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30838         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30839         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30840         "unistring-notinline.h", so that the function gets defined always.
30841         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30842         * lib/unistr/u8-uctomb.c: Likewise.
30843         * lib/unistr/u16-mbtouc.c: Likewise.
30844         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30845         * lib/unistr/u16-uctomb.c: Likewise.
30846         * lib/unistr/u32-mbtouc.c: Likewise.
30847         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30848         * lib/unistr/u32-uctomb.c: Likewise.
30849
30850 2009-04-10  Bruno Haible  <bruno@clisp.org>
30851
30852         Mark 'utime' obsolete.
30853         * modules/utime (Status, Notice): New sections.
30854         Suggested by Jim Meyering.
30855
30856         Fix cross-compile guess for utime test.
30857         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30858         autoconf.
30859         * doc/posix-functions/utime.texi: Give more precisions.
30860         Reported by Jan <ipif@ymail.com>.
30861
30862 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30863
30864         filevercmp: correct today's change
30865         * lib/filevercmp.c: Also handle coreutils' test inputs.
30866         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30867
30868         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30869         for reporting it.
30870         * lib/filevercmp.c: Special handle for "", "." and "..".
30871         * tests/test-filevercmp.c: Enlarge the set suite.
30872
30873 2009-04-07  Jim Meyering  <meyering@redhat.com>
30874
30875         useless-if-before-free: show how to remove braced useless free, too
30876         * build-aux/useless-if-before-free: still only in a comment, though.
30877
30878 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30879
30880         maint.mk: import changes to syntax-check macros from coreutils
30881         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30882         Use them in the relevant macros.
30883
30884 2009-04-06  Bruno Haible  <bruno@clisp.org>
30885
30886         Fix unportable use of bit-fields.
30887         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30888         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30889         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30890
30891 2009-04-06  Bruno Haible  <bruno@clisp.org>
30892
30893         Avoid test failures on AIX and OSF/1.
30894         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30895         that malloc(0) = NULL.
30896         * tests/unicase/test-u8-tolower.c (check): Likewise.
30897         * tests/unicase/test-u8-totitle.c (check): Likewise.
30898         * tests/unicase/test-u8-toupper.c (check): Likewise.
30899         * tests/unicase/test-u16-casefold.c (check): Likewise.
30900         * tests/unicase/test-u16-tolower.c (check): Likewise.
30901         * tests/unicase/test-u16-totitle.c (check): Likewise.
30902         * tests/unicase/test-u16-toupper.c (check): Likewise.
30903         * tests/unicase/test-u32-casefold.c (check): Likewise.
30904         * tests/unicase/test-u32-tolower.c (check): Likewise.
30905         * tests/unicase/test-u32-totitle.c (check): Likewise.
30906         * tests/unicase/test-u32-toupper.c (check): Likewise.
30907         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30908         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30909         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30910         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30911         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30912         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30913         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30914         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30915         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30916         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30917         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30918         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30919
30920 2009-04-05  Bruno Haible  <bruno@clisp.org>
30921
30922         Work around an autoconf limitation.
30923         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30924         comment line if it would be longer than 3 KB.
30925
30926 2009-04-05  Bruno Haible  <bruno@clisp.org>
30927
30928         Avoid test failure with libiconv-1.13.
30929         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30930         of the expected test results.
30931
30932 2009-04-05  Bruno Haible  <bruno@clisp.org>
30933
30934         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30935         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30936         that it should be installed.
30937
30938 2009-04-05  Bruno Haible  <bruno@clisp.org>
30939
30940         * gnulib-tool: New option --copy-file.
30941         (func_usage): Document it.
30942         (func_dest_tmpfilename): Moved out of func_import.
30943         (func_add_file, func_update_file): New functions, extracted from
30944         func_import.
30945         (func_import): Update.
30946
30947 2009-04-05  Karl Berry  <karl@gnu.org>
30948
30949         * README: prominently mention gnulib-tool.
30950         Rearrange sections so getting the code is near the top.
30951
30952 2009-04-05  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/unicase.h: Mention u*_cmp2.
30955         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30956         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30957         * lib/unicase/ulc-casecmp.c: Likewise.
30958         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30959         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30960         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30961         unistr/u8-cmp.
30962         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30963         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30964         unistr/u16-cmp.
30965         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30966         unistr/u32-cmp.
30967
30968         * lib/uninorm.h: Mention u*_cmp2.
30969         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30970         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30971         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30972         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30973         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30974         unistr/u8-cmp.
30975         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30976         unistr/u16-cmp.
30977         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30978         unistr/u32-cmp.
30979
30980         New module 'unistr/u32-cmp2'.
30981         * lib/unistr/u32-cmp2.c: New file.
30982         * modules/unistr/u32-cmp2: New file.
30983
30984         New module 'unistr/u16-cmp2'.
30985         * lib/unistr/u16-cmp2.c: New file.
30986         * modules/unistr/u16-cmp2: New file.
30987
30988         New module 'unistr/u8-cmp2'.
30989         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30990         * lib/unistr/u8-cmp2.c: New file.
30991         * lib/unistr/u-cmp2.h: New file.
30992         * modules/unistr/u8-cmp2: New file.
30993
30994 2009-04-05  Bruno Haible  <bruno@clisp.org>
30995
30996         * lib/unictype.h (uc_property_is_valid): New macro.
30997         * tests/unictype/test-pr_byname.c (main): Use it.
30998
30999         * lib/unistr.h: Doc fixes.
31000         * lib/uniconv.h: Doc fixes.
31001         * lib/unictype.h: Doc fixes.
31002
31003 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31004
31005         Port coreutils 7.2 to Solaris 8.
31006
31007         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31008         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31009         for Solaris 8.  This is a bit of a hack, as it means it's the
31010         caller's responsibility to add -lnsl if needed, but most likely it
31011         won't be needed since only getaddrinfo uses this and getaddrinfo
31012         isn't needed on Solaris 8.
31013
31014         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31015         problem to Solaris 8 encountered with coreutils 7.2, which
31016         resulted in a message "fnmatch.c:292: warning: passing argument 4
31017         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31018         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31019
31020 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31021
31022         * m4/ld-version-script.m4: Add FIXME comment.
31023
31024 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31025
31026         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31027         SOVERSION variable.
31028
31029 2009-04-02  Bruno Haible  <bruno@clisp.org>
31030
31031         * Makefile (info, html, dvi, pdf): Combine the rules.
31032         Suggested by Jim Meyering.
31033
31034 2009-04-01  Bruno Haible  <bruno@clisp.org>
31035
31036         * Makefile (info, html, dvi, pdf): New targets.
31037         Reported by Reuben Thomas <rrt@sc3d.org>.
31038
31039 2009-04-01  Bruno Haible  <bruno@clisp.org>
31040
31041         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31042         can be put into PATH.
31043         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31044
31045 2009-04-01  Bruno Haible  <bruno@clisp.org>
31046
31047         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
31048
31049 2009-04-01  Bruno Haible  <bruno@clisp.org>
31050
31051         Rename module 'visibility'.
31052         * modules/lib-symbol-visibility: Renamed from modules/visibility.
31053         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
31054         * doc/gnulib.texi: Update.
31055         * MODULES.html.sh (Misc): Update.
31056         * NEWS: Mention the change.
31057
31058 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31059
31060         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31061         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31062         Eric Blake <ebb9@byu.net> for review.
31063         * MODULES.html.sh: Add lib-msvc-compat.
31064         * doc/gnulib.texi: Link to new section.
31065         * m4/ld-output-def.m4: New file.
31066         * doc/ld-output-def.texi: New file.
31067
31068 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31069
31070         Rename ld-version-script to lib-symbol-versions.  Suggested by
31071         Bruno Haible <bruno@clisp.org>.
31072         * modules/ld-version-script: Renamed to lib-symbol-versions.
31073         * doc/ld-version-script.texi: Fix module name.
31074         * MODULES.html.sh: Add lib-symbol-versions.
31075
31076 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31077
31078         * modules/u64-tests: New file.
31079         * tests/test-u64.c: New file.
31080
31081 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31082
31083         * MODULES.html.sh: Mention u64.
31084         * modules/u64: New module.
31085         * modules/crypto/sha512: Depend on u64 module instead of providing
31086         u64.h.
31087
31088 2009-03-27  Eric Blake  <ebb9@byu.net>
31089
31090         test-strerror: make debugging EAI_SYSTEM easier
31091         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31092         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31093         failure was EAI_SYSTEM.
31094
31095 2009-03-25  Bruno Haible  <bruno@clisp.org>
31096
31097         Fix a problem with --enable-relocatable on Solaris 7.
31098         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31099         since 2008-02-24.
31100
31101 2009-03-25  Eric Blake  <ebb9@byu.net>
31102
31103         test-sockets: avoid gcc warning
31104         * tests/test-sockets.c (main): Silence compiler warning.
31105
31106 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31107
31108         New modules nproc, pthread, contributed by Glen Lenker.
31109
31110         * MODULES.html.sh: Add pthread, nproc.
31111         * lib/nproc.c: New file.
31112         * lib/nproc.h: New file.
31113         * lib/pthread.in.h: New file.
31114         * m4/pthread.m4: New file.
31115         * modules/nproc: New file.
31116         * modules/pthread: New file.
31117
31118 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31119
31120         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31121         New variable.
31122
31123 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31124
31125         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31126         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31127         * tests/test-filevercmp.c: Add tests for backup suffixes.
31128
31129 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31130
31131         * modules/stdlib (Depends-on): Add stdint, needed when defining
31132         struct random_data on, for example, HP-UX 10.20.  Reported by
31133         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31134
31135 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31136
31137         * lib/readline.c (readline): Call fflush on stdout after printing
31138         prompt.
31139
31140 2009-03-20  Bruno Haible  <bruno@clisp.org>
31141
31142         Remove dependency from 'close' module to -lws2_32 on native Windows.
31143         * lib/close-hook.h: New file.
31144         * lib/close-hook.c: New file.
31145         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31146         w32sock.h.
31147         (_gl_close_fd_maybe_socket): Remove function.
31148         (rpl_close): Invoke execute_all_close_hooks instead of
31149         _gl_close_fd_maybe_socket.
31150         * lib/sockets.c: Include close-hook.h, w32sock.h.
31151         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31152         (close_sockets_hook): New variable.
31153         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31154         (gl_sockets_cleanup): Unregister it.
31155         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31156         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31157         * modules/close-hook: New file.
31158         * modules/close (Files): Remove lib/w32sock.h.
31159         (Depends-on): Add close-hook.
31160         (Link): Remove section.
31161         * modules/sockets (Files): Add lib/w32sock.h.
31162         (Depends-on): Add close-hook.
31163         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31164         invocation.
31165         * NEWS: Mention that LIB_CLOSE is gone.
31166
31167 2009-03-23  Eric Blake  <ebb9@byu.net>
31168
31169         signal-tests: test previous patch
31170         * tests/test-signal.c: New file.
31171         * modules/signal-tests: Likewise.
31172
31173         signal.h: always support 'volatile sig_atomic_t'
31174         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31175         (gl_SIGNAL_H_DEFAULTS): Add a default.
31176         * modules/signal (Makefile.am): Substitute if needed.
31177         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31178         users can blindly add volatile.
31179         * doc/posix-headers/signal.texi (signal.h): Document it.
31180         Reported by Matthew Woehlke.
31181
31182 2009-03-23  Jim Meyering  <meyering@redhat.com>
31183
31184         pathmax: PATH_MAX: use pathconf only when available
31185         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31186         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31187         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31188         This avoids a link failure in a PSP cross-compilation environment
31189         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31190
31191         * lib/vasnprintf.c (divide): Fix typo in comment.
31192
31193 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31194
31195         * gnulib-tool (func_filter_filelist): Fix comment.
31196
31197 2009-03-20  Bruno Haible  <bruno@clisp.org>
31198
31199         Make sockets.h self-contained.
31200         * lib/sockets.c: Include sockets.h first.
31201         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31202
31203 2009-03-19  Eric Blake  <ebb9@byu.net>
31204
31205         doc: mention more functions added in cygwin 1.7.0
31206         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31207         addition.
31208         * doc/posix-functions/log2f.texi: Likewise.
31209
31210 2009-03-19  Jim Meyering  <meyering@redhat.com>
31211
31212         fsusage: avoid syntax error due to statement-before-declaration
31213         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31214         after all declarations.  Reported by Matthew Woehlke in
31215         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31216
31217 2009-03-18  Eric Blake  <ebb9@byu.net>
31218
31219         build-aux/compile: sync from automake
31220         * build-aux/compile: New file, from automake.
31221         * config/srclist.txt: Mention build-aux/compile.
31222
31223 2009-03-17  Bruno Haible  <bruno@clisp.org>
31224
31225         * lib/git-merge-changelog.c: Fix typo in comment.
31226         Reported by Reuben Thomas <rrt@sc3d.org>.
31227
31228 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31229
31230         * m4/regex.m4: update and improve help for
31231         --without-included-regex.
31232
31233 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31234
31235         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31236         failure on missing include files.
31237
31238 2009-03-17  Eric Blake  <ebb9@byu.net>
31239
31240         doc: mention more functions added in cygwin 1.7.0
31241         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31242         addition.
31243         * doc/posix-functions/fwscanf.texi: Likewise.
31244         * doc/posix-functions/swprintf.texi: Likewise.
31245         * doc/posix-functions/swscanf.texi: Likewise.
31246         * doc/posix-functions/vfwprintf.texi: Likewise.
31247         * doc/posix-functions/vfwscanf.texi: Likewise.
31248         * doc/posix-functions/vswprintf.texi: Likewise.
31249         * doc/posix-functions/vswscanf.texi: Likewise.
31250         * doc/posix-functions/vwprintf.texi: Likewise.
31251         * doc/posix-functions/vwscanf.texi: Likewise.
31252         * doc/posix-functions/wcscasecmp.texi: Likewise.
31253         * doc/posix-functions/wcsdup.texi: Likewise.
31254         * doc/posix-functions/wcsftime.texi: Likewise.
31255         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31256         * doc/posix-functions/wprintf.texi: Likewise.
31257         * doc/posix-functions/wscanf.texi: Likewise.
31258         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31259
31260 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31261
31262         maint.mk: really add $(AM_MAKEFLAGS)
31263         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31264         was inadvertently omitted in the last commit.
31265         Spotted by Bruno Haible.
31266
31267         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31268         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31269         $(AM_MAKEFLAGS)' rather than plain `make'.
31270
31271         gnulib-tool: execute $MAKE not make
31272         * gnulib-tool: Default $MAKE to 'make'.
31273         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31274         than make.  Initialize $MAKE in the do-autobuild script.
31275
31276         gnulib-tool: use $MAKE not make in generated files
31277         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31278         make, in generated files.  Initialize $MAKE in the do-autobuild
31279         script.
31280
31281         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31282
31283         GNUmakefile: disable parallelism only for multiple, recursive targets
31284         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31285         additions in the Makefile.
31286         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31287         by Automake.
31288         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31289         are listed on the command line and at least one of them is
31290         listed in $(ALL_RECURSIVE_TARGETS).
31291
31292 2009-03-14  Bruno Haible  <bruno@clisp.org>
31293
31294         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31295         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31296         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31297         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31298         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31299         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31300         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31301         unistr/u8-uctomb.
31302         * modules/unistr/u8-strchr (Depends-on): Likewise.
31303         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31304         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31305         unistr/u16-uctomb.
31306         * modules/unistr/u16-strchr (Depends-on): Likewise.
31307         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31308
31309 2009-03-12  Bruno Haible  <bruno@clisp.org>
31310
31311         Work around select() bug on Interix 3.5.
31312         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31313         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31314         * m4/select.m4: New file.
31315         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31316         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31317         * modules/select (Files): Add m4/select.m4.
31318         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31319         * modules/nanosleep (Depends-on): Add select.
31320         * modules/poll (Depends-on): Likewise.
31321         * doc/posix-functions/select.texi: Mention the Interix bug.
31322         Reported by Markus Duft <mduft@gentoo.org>.
31323
31324         * lib/select.c: Renamed from lib/winsock-select.c.
31325         * modules/select (Files): Add lib/select.c, remove
31326         lib/winsock-select.c.
31327         (configure.ac): Update.
31328
31329 2009-03-12  Jim Meyering  <meyering@redhat.com>
31330
31331         avoid gcc warnings about unused macro definitions
31332         * lib/readtokens.c (STREQ): Remove unused definition.
31333         * lib/xmalloc.c (SIZE_MAX): Likewise.
31334         * lib/openat-die.c (N_): Likewise.
31335         * lib/mountlist.c (SIZE_MAX): Remove definition.
31336         Instead, include <stdint.h>.
31337         * lib/readutmp.c: Likewise.
31338         * modules/readutmp (Depends-on): Add stdint.
31339         * modules/mountlist (Depends-on): Add stdint.
31340         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31341
31342 2009-03-10  Bruno Haible  <bruno@clisp.org>
31343
31344         Tests for module 'mbmemcasecoll'.
31345         * modules/mbmemcasecoll-tests: New file.
31346         * tests/test-mbmemcasecoll1.sh: New file.
31347         * tests/test-mbmemcasecoll2.sh: New file.
31348         * tests/test-mbmemcasecoll3.sh: New file.
31349         * tests/test-mbmemcasecoll.c: New file.
31350
31351         New module 'mbmemcasecoll'.
31352         * lib/mbmemcasecoll.h: New file.
31353         * lib/mbmemcasecoll.c: New file.
31354         * modules/mbmemcasecoll: New file.
31355
31356         * tests/test-mbmemcasecmp.h: New file, extracted from
31357         tests/test-mbmemcasecmp.c.
31358         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31359         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31360         (main): Update.
31361         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31362
31363 2009-03-09  Bruno Haible  <bruno@clisp.org>
31364
31365         Tests for module 'mbmemcasecmp'.
31366         * modules/mbmemcasecmp-tests: New file.
31367         * tests/test-mbmemcasecmp1.sh: New file.
31368         * tests/test-mbmemcasecmp2.sh: New file.
31369         * tests/test-mbmemcasecmp3.sh: New file.
31370         * tests/test-mbmemcasecmp.c: New file.
31371
31372         New module 'mbmemcasecmp'.
31373         * lib/mbmemcasecmp.h: New file.
31374         * lib/mbmemcasecmp.c: New file.
31375         * modules/mbmemcasecmp: New file.
31376
31377 2009-03-09  Bruno Haible  <bruno@clisp.org>
31378
31379         Tests for module 'unicase/ulc-casecoll'.
31380         * modules/unicase/ulc-casecoll-tests: New file.
31381         * tests/unicase/test-ulc-casecoll1.sh: New file.
31382         * tests/unicase/test-ulc-casecoll2.sh: New file.
31383         * tests/unicase/test-ulc-casecoll.c: New file.
31384
31385         New module 'unicase/ulc-casecoll'.
31386         * lib/unicase.h (ulc_casecoll): New declaration.
31387         * lib/unicase/ulc-casecoll.c: New file.
31388         * modules/unicase/ulc-casecoll: New file.
31389
31390         New module 'unicase/ulc-casexfrm'.
31391         * lib/unicase.h (ulc_casexfrm): New declaration.
31392         * lib/unicase/ulc-casexfrm.c: New file.
31393         * modules/unicase/ulc-casexfrm: New file.
31394
31395 2009-03-09  Bruno Haible  <bruno@clisp.org>
31396
31397         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31398         invocations.
31399
31400         * m4/mbscasecmp.m4: Remove file.
31401         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31402         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31403
31404         * m4/mbscasestr.m4: Remove file.
31405         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31406         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31407
31408         * m4/mbschr.m4: Remove file.
31409         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31410         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31411
31412         * m4/mbscspn.m4: Remove file.
31413         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31414         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31415
31416         * m4/mbslen.m4: Remove file.
31417         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31418         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31419
31420         * m4/mbsncasecmp.m4: Remove file.
31421         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31422         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31423
31424         * m4/mbsnlen.m4: Remove file.
31425         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31426         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31427
31428         * m4/mbspbrk.m4: Remove file.
31429         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31430         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31431
31432         * m4/mbspcasecmp.m4: Remove file.
31433         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31434         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31435
31436         * m4/mbsrchr.m4: Remove file.
31437         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31438         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31439
31440         * m4/mbssep.m4: Remove file.
31441         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31442         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31443
31444         * m4/mbsspn.m4: Remove file.
31445         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31446         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31447
31448         * m4/mbsstr.m4: Remove file.
31449         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31450         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31451
31452         * m4/mbstok_r.m4: Remove file.
31453         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31454         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31455
31456         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31457
31458         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31459         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31460
31461         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31462
31463 2009-03-08  Bruno Haible  <bruno@clisp.org>
31464
31465         Tests for module 'unicase/ulc-casecmp'.
31466         * modules/unicase/ulc-casecmp-tests: New file.
31467         * tests/unicase/test-ulc-casecmp1.sh: New file.
31468         * tests/unicase/test-ulc-casecmp2.sh: New file.
31469         * tests/unicase/test-ulc-casecmp.c: New file.
31470
31471         New module 'unicase/ulc-casecmp'.
31472         * lib/unicase.h (ulc_casecmp): New declaration.
31473         * lib/unicase/ulc-casecmp.c: New file.
31474         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31475         'const SRC_UNIT *'.
31476         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31477         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31478         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31479         * modules/unicase/ulc-casecmp: New file.
31480
31481         Tests for module 'unicase/u32-is-cased'.
31482         * modules/unicase/u32-is-cased-tests: New file.
31483         * tests/unicase/test-u32-is-cased.c: New file.
31484
31485         Tests for module 'unicase/u16-is-cased'.
31486         * modules/unicase/u16-is-cased-tests: New file.
31487         * tests/unicase/test-u16-is-cased.c: New file.
31488
31489         Tests for module 'unicase/u8-is-cased'.
31490         * modules/unicase/u8-is-cased-tests: New file.
31491         * tests/unicase/test-u8-is-cased.c: New file.
31492         * tests/unicase/test-is-cased.h: New file.
31493
31494         New module 'unicase/u32-is-cased'.
31495         * lib/unicase/u32-is-cased.c: New file.
31496         * modules/unicase/u32-is-cased: New file.
31497
31498         New module 'unicase/u16-is-cased'.
31499         * lib/unicase/u16-is-cased.c: New file.
31500         * modules/unicase/u16-is-cased: New file.
31501
31502         New module 'unicase/u8-is-cased'.
31503         * lib/unicase/u8-is-cased.c: New file.
31504         * lib/unicase/u-is-cased.h: New file.
31505         * modules/unicase/u8-is-cased: New file.
31506
31507         Tests for module 'unicase/u32-is-casefolded'.
31508         * modules/unicase/u32-is-casefolded-tests: New file.
31509         * tests/unicase/test-u32-is-casefolded.c: New file.
31510
31511         Tests for module 'unicase/u16-is-casefolded'.
31512         * modules/unicase/u16-is-casefolded-tests: New file.
31513         * tests/unicase/test-u16-is-casefolded.c: New file.
31514
31515         Tests for module 'unicase/u8-is-casefolded'.
31516         * modules/unicase/u8-is-casefolded-tests: New file.
31517         * tests/unicase/test-u8-is-casefolded.c: New file.
31518         * tests/unicase/test-is-casefolded.h: New file.
31519
31520         New module 'unicase/u32-is-casefolded'.
31521         * lib/unicase/u32-is-casefolded.c: New file.
31522         * modules/unicase/u32-is-casefolded: New file.
31523
31524         New module 'unicase/u16-is-casefolded'.
31525         * lib/unicase/u16-is-casefolded.c: New file.
31526         * modules/unicase/u16-is-casefolded: New file.
31527
31528         New module 'unicase/u8-is-casefolded'.
31529         * lib/unicase/u8-is-casefolded.c: New file.
31530         * modules/unicase/u8-is-casefolded: New file.
31531
31532         Tests for module 'unicase/u32-is-titlecase'.
31533         * modules/unicase/u32-is-titlecase-tests: New file.
31534         * tests/unicase/test-u32-is-titlecase.c: New file.
31535
31536         Tests for module 'unicase/u16-is-titlecase'.
31537         * modules/unicase/u16-is-titlecase-tests: New file.
31538         * tests/unicase/test-u16-is-titlecase.c: New file.
31539
31540         Tests for module 'unicase/u8-is-titlecase'.
31541         * modules/unicase/u8-is-titlecase-tests: New file.
31542         * tests/unicase/test-u8-is-titlecase.c: New file.
31543         * tests/unicase/test-is-titlecase.h: New file.
31544
31545         New module 'unicase/u32-is-titlecase'.
31546         * lib/unicase/u32-is-titlecase.c: New file.
31547         * modules/unicase/u32-is-titlecase: New file.
31548
31549         New module 'unicase/u16-is-titlecase'.
31550         * lib/unicase/u16-is-titlecase.c: New file.
31551         * modules/unicase/u16-is-titlecase: New file.
31552
31553         New module 'unicase/u8-is-titlecase'.
31554         * lib/unicase/u8-is-titlecase.c: New file.
31555         * modules/unicase/u8-is-titlecase: New file.
31556
31557         Tests for module 'unicase/u32-is-lowercase'.
31558         * modules/unicase/u32-is-lowercase-tests: New file.
31559         * tests/unicase/test-u32-is-lowercase.c: New file.
31560
31561         Tests for module 'unicase/u16-is-lowercase'.
31562         * modules/unicase/u16-is-lowercase-tests: New file.
31563         * tests/unicase/test-u16-is-lowercase.c: New file.
31564
31565         Tests for module 'unicase/u8-is-lowercase'.
31566         * modules/unicase/u8-is-lowercase-tests: New file.
31567         * tests/unicase/test-u8-is-lowercase.c: New file.
31568         * tests/unicase/test-is-lowercase.h: New file.
31569
31570         New module 'unicase/u32-is-lowercase'.
31571         * lib/unicase/u32-is-lowercase.c: New file.
31572         * modules/unicase/u32-is-lowercase: New file.
31573
31574         New module 'unicase/u16-is-lowercase'.
31575         * lib/unicase/u16-is-lowercase.c: New file.
31576         * modules/unicase/u16-is-lowercase: New file.
31577
31578         New module 'unicase/u8-is-lowercase'.
31579         * lib/unicase/u8-is-lowercase.c: New file.
31580         * modules/unicase/u8-is-lowercase: New file.
31581
31582         Tests for module 'unicase/u32-is-uppercase'.
31583         * modules/unicase/u32-is-uppercase-tests: New file.
31584         * tests/unicase/test-u32-is-uppercase.c: New file.
31585
31586         Tests for module 'unicase/u16-is-uppercase'.
31587         * modules/unicase/u16-is-uppercase-tests: New file.
31588         * tests/unicase/test-u16-is-uppercase.c: New file.
31589
31590         Tests for module 'unicase/u8-is-uppercase'.
31591         * modules/unicase/u8-is-uppercase-tests: New file.
31592         * tests/unicase/test-u8-is-uppercase.c: New file.
31593         * tests/unicase/test-is-uppercase.h: New file.
31594
31595         New module 'unicase/u32-is-uppercase'.
31596         * lib/unicase/u32-is-uppercase.c: New file.
31597         * modules/unicase/u32-is-uppercase: New file.
31598
31599         New module 'unicase/u16-is-uppercase'.
31600         * lib/unicase/u16-is-uppercase.c: New file.
31601         * modules/unicase/u16-is-uppercase: New file.
31602
31603         New module 'unicase/u8-is-uppercase'.
31604         * lib/unicase/u8-is-uppercase.c: New file.
31605         * modules/unicase/u8-is-uppercase: New file.
31606
31607         New module 'unicase/u32-is-invariant'.
31608         * lib/unicase/u32-is-invariant.c: New file.
31609         * modules/unicase/u32-is-invariant: New file.
31610
31611         New module 'unicase/u16-is-invariant'.
31612         * lib/unicase/u16-is-invariant.c: New file.
31613         * modules/unicase/u16-is-invariant: New file.
31614
31615         New module 'unicase/u8-is-invariant'.
31616         * lib/unicase/u8-is-invariant.c: New file.
31617         * lib/unicase/invariant.h: New file.
31618         * lib/unicase/u-is-invariant.h: New file.
31619         * modules/unicase/u8-is-invariant: New file.
31620
31621         Tests for module 'unicase/u32-casecoll'.
31622         * modules/unicase/u32-casecoll-tests: New file.
31623         * tests/unicase/test-u32-casecoll.c: New file.
31624
31625         Tests for module 'unicase/u16-casecoll'.
31626         * modules/unicase/u16-casecoll-tests: New file.
31627         * tests/unicase/test-u16-casecoll.c: New file.
31628
31629         Tests for module 'unicase/u8-casecoll'.
31630         * modules/unicase/u8-casecoll-tests: New file.
31631         * tests/unicase/test-u8-casecoll.c: New file.
31632
31633         New module 'unicase/u32-casecoll'.
31634         * lib/unicase/u32-casecoll.c: New file.
31635         * modules/unicase/u32-casecoll: New file.
31636
31637         New module 'unicase/u16-casecoll'.
31638         * lib/unicase/u16-casecoll.c: New file.
31639         * modules/unicase/u16-casecoll: New file.
31640
31641         New module 'unicase/u8-casecoll'.
31642         * lib/unicase/u8-casecoll.c: New file.
31643         * lib/unicase/u-casecoll.h: New file.
31644         * modules/unicase/u8-casecoll: New file.
31645
31646         New module 'unicase/u32-casexfrm'.
31647         * lib/unicase/u32-casexfrm.c: New file.
31648         * modules/unicase/u32-casexfrm: New file.
31649
31650         New module 'unicase/u16-casexfrm'.
31651         * lib/unicase/u16-casexfrm.c: New file.
31652         * modules/unicase/u16-casexfrm: New file.
31653
31654         New module 'unicase/u8-casexfrm'.
31655         * lib/unicase/u8-casexfrm.c: New file.
31656         * lib/unicase/u-casexfrm.h: New file.
31657         * modules/unicase/u8-casexfrm: New file.
31658
31659         Tests for module 'unicase/u32-casecmp'.
31660         * modules/unicase/u32-casecmp-tests: New file.
31661         * tests/unicase/test-u32-casecmp.c: New file.
31662
31663         Tests for module 'unicase/u16-casecmp'.
31664         * modules/unicase/u16-casecmp-tests: New file.
31665         * tests/unicase/test-u16-casecmp.c: New file.
31666
31667         Tests for module 'unicase/u8-casecmp'.
31668         * modules/unicase/u8-casecmp-tests: New file.
31669         * tests/unicase/test-u8-casecmp.c: New file.
31670         * tests/unicase/test-casecmp.h: New file.
31671
31672         New module 'unicase/u32-casecmp'.
31673         * lib/unicase/u32-casecmp.c: New file.
31674         * modules/unicase/u32-casecmp: New file.
31675
31676         New module 'unicase/u16-casecmp'.
31677         * lib/unicase/u16-casecmp.c: New file.
31678         * modules/unicase/u16-casecmp: New file.
31679
31680         New module 'unicase/u8-casecmp'.
31681         * lib/unicase/u8-casecmp.c: New file.
31682         * lib/unicase/u-casecmp.h: New file.
31683         * modules/unicase/u8-casecmp: New file.
31684
31685         Tests for module 'unicase/u32-casefold'.
31686         * modules/unicase/u32-casefold-tests: New file.
31687         * tests/unicase/test-u32-casefold.c: New file.
31688
31689         Tests for module 'unicase/u16-casefold'.
31690         * modules/unicase/u16-casefold-tests: New file.
31691         * tests/unicase/test-u16-casefold.c: New file.
31692
31693         Tests for module 'unicase/u8-casefold'.
31694         * modules/unicase/u8-casefold-tests: New file.
31695         * tests/unicase/test-u8-casefold.c: New file.
31696
31697         New module 'unicase/u32-casefold'.
31698         * lib/unicase/u32-casefold.c: New file.
31699         * modules/unicase/u32-casefold: New file.
31700
31701         New module 'unicase/u16-casefold'.
31702         * lib/unicase/u16-casefold.c: New file.
31703         * modules/unicase/u16-casefold: New file.
31704
31705         New module 'unicase/u8-casefold'.
31706         * lib/unicase/u8-casefold.c: New file.
31707         * lib/unicase/u-casefold.h: New file.
31708         * modules/unicase/u8-casefold: New file.
31709
31710         New module 'unicase/tocasefold'.
31711         * lib/unicase/casefold.h: New file.
31712         * lib/unicase/tocasefold.c: New file.
31713         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31714         * modules/unicase/tocasefold: New file.
31715
31716         Tests for module 'unicase/u32-totitle'.
31717         * modules/unicase/u32-totitle-tests: New file.
31718         * tests/unicase/test-u32-totitle.c: New file.
31719
31720         Tests for module 'unicase/u16-totitle'.
31721         * modules/unicase/u16-totitle-tests: New file.
31722         * tests/unicase/test-u16-totitle.c: New file.
31723
31724         Tests for module 'unicase/u8-totitle'.
31725         * modules/unicase/u8-totitle-tests: New file.
31726         * tests/unicase/test-u8-totitle.c: New file.
31727
31728         New module 'unicase/u32-totitle'.
31729         * lib/unicase/u32-totitle.c: New file.
31730         * modules/unicase/u32-totitle: New file.
31731
31732         New module 'unicase/u16-totitle'.
31733         * lib/unicase/u16-totitle.c: New file.
31734         * modules/unicase/u16-totitle: New file.
31735
31736         New module 'unicase/u8-totitle'.
31737         * lib/unicase/u8-totitle.c: New file.
31738         * lib/unicase/u-totitle.h: New file.
31739         * modules/unicase/u8-totitle: New file.
31740
31741         Tests for module 'unicase/u32-tolower'.
31742         * modules/unicase/u32-tolower-tests: New file.
31743         * tests/unicase/test-u32-tolower.c: New file.
31744
31745         Tests for module 'unicase/u16-tolower'.
31746         * modules/unicase/u16-tolower-tests: New file.
31747         * tests/unicase/test-u16-tolower.c: New file.
31748
31749         Tests for module 'unicase/u8-tolower'.
31750         * modules/unicase/u8-tolower-tests: New file.
31751         * tests/unicase/test-u8-tolower.c: New file.
31752
31753         New module 'unicase/u32-tolower'.
31754         * lib/unicase/u32-tolower.c: New file.
31755         * modules/unicase/u32-tolower: New file.
31756
31757         New module 'unicase/u16-tolower'.
31758         * lib/unicase/u16-tolower.c: New file.
31759         * modules/unicase/u16-tolower: New file.
31760
31761         New module 'unicase/u8-tolower'.
31762         * lib/unicase/u8-tolower.c: New file.
31763         * modules/unicase/u8-tolower: New file.
31764
31765         Tests for module 'unicase/u32-toupper'.
31766         * modules/unicase/u32-toupper-tests: New file.
31767         * tests/unicase/test-u32-toupper.c: New file.
31768
31769         Tests for module 'unicase/u16-toupper'.
31770         * modules/unicase/u16-toupper-tests: New file.
31771         * tests/unicase/test-u16-toupper.c: New file.
31772
31773         Tests for module 'unicase/u8-toupper'.
31774         * modules/unicase/u8-toupper-tests: New file.
31775         * tests/unicase/test-u8-toupper.c: New file.
31776
31777         New module 'unicase/u32-toupper'.
31778         * lib/unicase/u32-toupper.c: New file.
31779         * modules/unicase/u32-toupper: New file.
31780
31781         New module 'unicase/u16-toupper'.
31782         * lib/unicase/u16-toupper.c: New file.
31783         * modules/unicase/u16-toupper: New file.
31784
31785         New module 'unicase/u8-toupper'.
31786         * lib/unicase/u8-toupper.c: New file.
31787         * modules/unicase/u8-toupper: New file.
31788
31789         New module 'unicase/u32-casemap'.
31790         * lib/unicase/u32-casemap.c: New file.
31791         * modules/unicase/u32-casemap: New file.
31792
31793         New module 'unicase/u16-casemap'.
31794         * lib/unicase/u16-casemap.c: New file.
31795         * modules/unicase/u16-casemap: New file.
31796
31797         New module 'unicase/u8-casemap'.
31798         * lib/unicase/unicasemap.h: New file.
31799         * lib/unicase/u8-casemap.c: New file.
31800         * lib/unicase/u-casemap.h: New file.
31801         * modules/unicase/u8-casemap: New file.
31802
31803         New module 'unicase/special-casing'.
31804         * lib/unicase/special-casing.h: New file.
31805         * lib/unicase/special-casing.c: New file.
31806         * lib/unicase/special-casing-table.gperf: New file, generated by
31807         gen-uni-tables.c.
31808         * modules/unicase/special-casing: New file.
31809
31810         Tests for module 'unicase/locale-language'.
31811         * modules/unicase/locale-language-tests: New file.
31812         * tests/unicase/test-locale-language.sh: New file.
31813         * tests/unicase/test-locale-language.c: New file.
31814
31815         New module 'unicase/locale-language'.
31816         * lib/unicase/locale-language.c: New file.
31817         * lib/unicase/locale-languages.gperf: New file.
31818         * modules/unicase/locale-language: New file.
31819
31820         Generate more tables for case conversion and case folding.
31821         * lib/gen-uni-tables.c (SCC_*): New enum items.
31822         (struct special_casing_rule): New type.
31823         (casing_rules, num_casing_rules, allocated_casing_rules): New
31824         variables.
31825         (add_casing_rule, fill_casing_rules): New functions.
31826         (struct casefold_rule): New type.
31827         (casefolding_rules, num_casefolding_rules,
31828         allocated_casefolding_rules): New variables.
31829         (fill_casefolding_rules): New function.
31830         (unicode_casefold): New variable.
31831         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31832         sort_casing_rules, output_casing_rules): New functions.
31833         (main): Accept to more arguments: SpecialCasing.txt and
31834         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31835         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31836         Output mapping for casefolding.
31837
31838         * lib/unicase.h: Include stdbool.h, uninorm.h.
31839         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31840         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31841         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31842         arguments.
31843         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31844         resultp arguments.
31845         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31846         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31847         resultp arguments.
31848         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31849         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31850         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31851         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31852         declarations.
31853         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31854
31855 2009-03-08  Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31858         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31859         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31860         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31861
31862 2009-03-07  Bruno Haible  <bruno@clisp.org>
31863
31864         Adjust u*_normcmp, u*_normcoll API.
31865         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31866         u16_normcoll, u32_normcoll): Change failure conventions.
31867         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31868         errno and return -1.
31869         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31870
31871 2009-03-07  Bruno Haible  <bruno@clisp.org>
31872
31873         Tests for module 'uninorm/u32-normcoll'.
31874         * modules/uninorm/u32-normcoll-tests: New file.
31875         * tests/uninorm/test-u32-normcoll.c: New file.
31876
31877         Tests for module 'uninorm/u16-normcoll'.
31878         * modules/uninorm/u16-normcoll-tests: New file.
31879         * tests/uninorm/test-u16-normcoll.c: New file.
31880
31881         Tests for module 'uninorm/u8-normcoll'.
31882         * modules/uninorm/u8-normcoll-tests: New file.
31883         * tests/uninorm/test-u8-normcoll.c: New file.
31884
31885 2009-03-07  Bruno Haible  <bruno@clisp.org>
31886
31887         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31888         tests/uninorm/test-u32-normcmp.c.
31889         * tests/uninorm/test-u32-normcmp.c: Include it.
31890         (test_nonascii): New function, extracted from main. Add some more
31891         tests.
31892         (main): Invoke test_ascii and test_nonascii.
31893         * modules/uninorm/u32-normcmp-tests (Files): Add
31894         tests/uninorm/test-u32-normcmp.h.
31895         (Depends-on): Remove uninorm/u32-normcmp.
31896
31897         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31898         tests/uninorm/test-u16-normcmp.c.
31899         * tests/uninorm/test-u16-normcmp.c: Include it.
31900         (test_nonascii): New function, extracted from main. Add some more
31901         tests.
31902         (main): Invoke test_ascii and test_nonascii.
31903         * modules/uninorm/u16-normcmp-tests (Files): Add
31904         tests/uninorm/test-u16-normcmp.h.
31905         (Depends-on): Remove uninorm/u16-normcmp.
31906
31907         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31908         tests/uninorm/test-u8-normcmp.c.
31909         * tests/uninorm/test-u8-normcmp.c: Include it.
31910         (test_nonascii): New function, extracted from main. Add some more
31911         tests.
31912         (main): Invoke test_ascii and test_nonascii.
31913         * modules/uninorm/u8-normcmp-tests (Files): Add
31914         tests/uninorm/test-u8-normcmp.h.
31915         (Depends-on): Remove uninorm/u8-normcmp.
31916
31917 2009-03-07  Bruno Haible  <bruno@clisp.org>
31918
31919         New module 'uninorm/u32-normcoll'.
31920         * lib/uninorm/u32-normcoll.c: New file.
31921         * modules/uninorm/u32-normcoll: New file.
31922
31923         New module 'uninorm/u16-normcoll'.
31924         * lib/uninorm/u16-normcoll.c: New file.
31925         * modules/uninorm/u16-normcoll: New file.
31926
31927         New module 'uninorm/u8-normcoll'.
31928         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31929         declarations.
31930         * lib/uninorm/u8-normcoll.c: New file.
31931         * lib/uninorm/u-normcoll.h: New file.
31932         * modules/uninorm/u8-normcoll: New file.
31933
31934         New module 'uninorm/u32-normxfrm'.
31935         * lib/uninorm/u32-normxfrm.c: New file.
31936         * modules/uninorm/u32-normxfrm: New file.
31937
31938         New module 'uninorm/u16-normxfrm'.
31939         * lib/uninorm/u16-normxfrm.c: New file.
31940         * modules/uninorm/u16-normxfrm: New file.
31941
31942         New module 'uninorm/u8-normxfrm'.
31943         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31944         declarations.
31945         * lib/uninorm/u8-normxfrm.c: New file.
31946         * lib/uninorm/u-normxfrm.h: New file.
31947         * modules/uninorm/u8-normxfrm: New file.
31948
31949 2009-03-07  Bruno Haible  <bruno@clisp.org>
31950
31951         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31952         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31953         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31954
31955 2009-03-07  Bruno Haible  <bruno@clisp.org>
31956
31957         New module 'memxfrm'.
31958         * lib/memxfrm.h: New file.
31959         * lib/memxfrm.c: New file.
31960         * modules/memxfrm: New file.
31961
31962 2009-03-07  Bruno Haible  <bruno@clisp.org>
31963
31964         New module 'memcmp2'.
31965         * lib/memcmp2.h: New file.
31966         * lib/memcmp2.c: New file.
31967         * modules/memcmp2: New file.
31968
31969 2009-03-07  Bruno Haible  <bruno@clisp.org>
31970
31971         Tests for module 'uninorm/decomposing-form'.
31972         * modules/uninorm/decomposing-form-tests: New file.
31973         * tests/uninorm/test-decomposing-form.c: New file.
31974
31975         New module 'uninorm/decomposing-form'.
31976         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31977         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31978         Add 'decomposing_variant' field.
31979         * lib/uninorm/decomposing-form.c: New file.
31980         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31981         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31982         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31983         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31984         * modules/uninorm/decomposing-form: New file.
31985         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31986         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31987
31988 2009-03-07  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31991         strings.
31992
31993 2009-03-06  Bruno Haible  <bruno@clisp.org>
31994
31995         Tests for module 'uninorm/u32-normcmp'.
31996         * tests/uninorm/test-u32-normcmp.c: New file.
31997         * modules/uninorm/u32-normcmp-tests: New file.
31998
31999         Tests for module 'uninorm/u16-normcmp'.
32000         * tests/uninorm/test-u16-normcmp.c: New file.
32001         * modules/uninorm/u16-normcmp-tests: New file.
32002
32003         Tests for module 'uninorm/u8-normcmp'.
32004         * tests/uninorm/test-u8-normcmp.c: New file.
32005         * modules/uninorm/u8-normcmp-tests: New file.
32006
32007         New module 'uninorm/u32-normcmp'.
32008         * lib/uninorm/u32-normcmp.c: New file.
32009         * modules/uninorm/u32-normcmp: New file.
32010
32011         New module 'uninorm/u16-normcmp'.
32012         * lib/uninorm/u16-normcmp.c: New file.
32013         * modules/uninorm/u16-normcmp: New file.
32014
32015         New module 'uninorm/u8-normcmp'.
32016         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32017         declarations.
32018         * lib/uninorm/u8-normcmp.c: New file.
32019         * lib/uninorm/u-normcmp.h: New file.
32020         * modules/uninorm/u8-normcmp: New file.
32021
32022 2009-03-06  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32025         Reported by Eric Blake.
32026
32027 2009-03-06  Eric Blake  <ebb9@byu.net>
32028             Bruno Haible  <bruno@clisp.org>
32029
32030         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32031         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32032         condition.
32033         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32034         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32035         condition.
32036         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32037
32038 2009-03-06  Eric Blake  <ebb9@byu.net>
32039
32040         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32041         to avoid compiler warnings.
32042         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32043
32044 2009-03-05  Bruno Haible  <bruno@clisp.org>
32045
32046         * tests/test-ftell.c (main): Disable test beyond end of file on
32047         FreeMiNT.
32048         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32049
32050 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
32051
32052         * lib/filevercmp.c: Move hidden files up in ordering.
32053         * tests/test-filevercmp.c: Add tests for hidden files.
32054
32055 2009-03-04  Bruno Haible  <bruno@clisp.org>
32056
32057         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32058         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32059         AM_CFLAGS.
32060         Reported by Simon Josefsson.
32061
32062 2009-03-03  Bruno Haible  <bruno@clisp.org>
32063
32064         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32065         Reported by Simon Josefsson.
32066
32067         * doc/ld-version-script.texi: Update node reference.
32068
32069 2009-03-03  Bruno Haible  <bruno@clisp.org>
32070
32071         * modules/visibility (License): Change to 'unlimited'.
32072         Suggested by Simon Josefsson.
32073
32074 2009-03-03  Jim Meyering  <meyering@redhat.com>
32075
32076         unlinkdir: cannot_unlink_dir may modify process state
32077         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32078         it's neither thread-safe nor appropriate for use in a library.
32079
32080 2009-03-03  Eric Blake  <ebb9@byu.net>
32081
32082         test-closein: silence test under Darwin
32083         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32084         care if it dies from EPIPE or EBADF.
32085
32086 2009-03-03  Bruno Haible  <bruno@clisp.org>
32087
32088         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32089         earlier.
32090         * doc/visibility.texi: Fix @node and @section.
32091
32092 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32093
32094         * doc/gnulib.texi: Link to sections for ld version script and
32095         visibility.
32096         * doc/visibility.texi: Add @node and @section.
32097         * modules/ld-version-script: New module.
32098         * m4/ld-version-script.m4: New file.
32099         * doc/ld-version-script.texi: New file.
32100
32101 2009-03-02  David Lutterkort  <lutter@redhat.com>
32102
32103         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32105
32106 2009-03-02  Bruno Haible  <bruno@clisp.org>
32107
32108         * doc/visibility.texi: Mention libtool's -export-symbols option.
32109
32110 2009-03-02  Jim Meyering  <meyering@redhat.com>
32111
32112         announce-gen: new option: --no-print-checksums
32113         * build-aux/announce-gen (usage): Describe it.
32114         (print_checksums): Print a newline here, not in the [*] footnote.
32115         (main): Honor it.
32116
32117 2009-03-01  Bruno Haible  <bruno@clisp.org>
32118
32119         Use socklen_t in the native Windows replacements prototypes.
32120         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32121         instead of 'int'.
32122         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32123         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32124         * modules/getsockopt (Depends-on): Add socklen.
32125         * modules/setsockopt (Depends-on): Add socklen.
32126
32127 2009-03-01  Bruno Haible  <bruno@clisp.org>
32128
32129         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32130         least 4.2.
32131
32132 2009-03-01  Eric Blake  <ebb9@byu.net>
32133             Bruno Haible  <bruno@clisp.org>
32134
32135         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32136         error messages.
32137         * lib/wait-process.c (wait_subprocess): Omit error message about
32138         deadly signal sent to the child of termsigp != NULL.
32139
32140 2009-03-01  Eric Blake  <ebb9@byu.net>
32141
32142         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32143
32144 2009-03-01  Bruno Haible  <bruno@clisp.org>
32145
32146         Avoid a gcc warning.
32147         * tests/test-sched.c (b): Make global.
32148         Reported by Eric Blake.
32149
32150 2009-01-19  Martin Lambers  <marlam@marlam.de>
32151
32152         Provide POSIX semantics for socket timeout options on W32.
32153         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32154         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32155         * modules/setsockopt: Depend on sys_time module for struct timeval.
32156         * modules/getsockopt: Depend on sys_time module for struct timeval.
32157
32158 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32159
32160         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32161         __USE_GNU, for consistency with netdb.in.h.
32162         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32163
32164 2009-03-01  Bruno Haible  <bruno@clisp.org>
32165
32166         More support for FreeMiNT.
32167         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32168         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32169
32170 2009-03-01  Bruno Haible  <bruno@clisp.org>
32171
32172         More support for FreeMiNT.
32173         * lib/fpurge.c (fpurge): Correct last commit.
32174         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32175
32176 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32177
32178         Fix unportable awk script in vc-list-files.
32179         * build-aux/vc-list-files: In the replacement awk script, use
32180         substr with a second argument of 1, not zero.
32181         Report by Simon Josefsson.
32182
32183 2009-02-28  Bruno Haible  <bruno@clisp.org>
32184
32185         More support for FreeMiNT.
32186         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32187         to FreeMiNT today.
32188         * lib/fwriting.c (fwriting): Likewise.
32189         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32190
32191 2009-02-28  Bruno Haible  <bruno@clisp.org>
32192
32193         * tests/test-freadseek.c (main): Disable test beyond end of file on
32194         FreeMiNT.
32195         * tests/test-ftello.c (main): Likewise.
32196         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32197
32198 2009-02-28  Bruno Haible  <bruno@clisp.org>
32199
32200         Add tentative support for FreeMiNT.
32201         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32202         * lib/fpurge.c (fpurge): Likewise.
32203         * lib/freadable.c (freadable): Likewise.
32204         * lib/freading.c (freading): Likewise.
32205         * lib/freadptr.c (freadptr): Likewise.
32206         * lib/freadseek.c (freadptrinc): Likewise.
32207         * lib/fseeko.c (rpl_fseeko): Likewise.
32208         * lib/fseterr.c (fseterr): Likewise.
32209         * lib/fwritable.c (fwritable): Likewise.
32210         * lib/fwriting.c (fwriting): Likewise.
32211         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32212         Hourihane.
32213         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32214
32215 2009-02-28  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32218         SIGCHLD.
32219         Reported by Jim Meyering.
32220
32221 2009-02-28  Bruno Haible  <bruno@clisp.org>
32222
32223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32224         Mention the results of these tests on various platforms.
32225         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32226         order.
32227         * doc/posix-functions/printf.texi: Likewise.
32228         * doc/posix-functions/snprintf.texi: Likewise.
32229         * doc/posix-functions/sprintf.texi: Likewise.
32230         * doc/posix-functions/vfprintf.texi: Likewise.
32231         * doc/posix-functions/vprintf.texi: Likewise.
32232         * doc/posix-functions/vsnprintf.texi: Likewise.
32233         * doc/posix-functions/vsprintf.texi: Likewise.
32234         * doc/glibc-functions/obstack_printf.texi: Likewise.
32235         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32236
32237 2009-02-28  Bruno Haible  <bruno@clisp.org>
32238
32239         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32240         Reported by Loïc Minier <lool@dooz.org>.
32241
32242 2009-02-27  Bruno Haible  <bruno@clisp.org>
32243
32244         * gnulib-tool (func_import): Make the sed expression used to create the
32245         sed script for updating the .gitignore file POSIX compliant.
32246         Reported by Eric Blake.
32247
32248 2009-02-27  Bruno Haible  <bruno@clisp.org>
32249
32250         * gnulib-tool (sed): Don't alias as "sed --posix".
32251         Reported by Eric Blake.
32252
32253 2009-02-27  Bruno Haible  <bruno@clisp.org>
32254
32255         Avoid test link errors.
32256         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32257         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32258         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32259         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32261
32262 2009-02-27  Bruno Haible  <bruno@clisp.org>
32263
32264         Avoid spurious "(cached)" in configure output.
32265         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32266         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32267         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32268         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32269         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32270         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32271         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32272         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32273         Reported by Eric Blake.
32274
32275 2009-02-27  Eric Blake  <ebb9@byu.net>
32276
32277         printf: fix regression in previous patch
32278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32279
32280 2009-02-27  Bruno Haible  <bruno@clisp.org>
32281
32282         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32283         value.
32284         * lib/stdint.in.h: Likewise.
32285         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32286
32287 2009-02-27  Eric Blake  <ebb9@byu.net>
32288
32289         doc: mention more functions added in cygwin 1.7.0
32290         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32291         addition.
32292         * doc/posix-functions/open_wmemstream.texi: Likewise.
32293         * doc/posix-functions/wcsnlen.texi: Likewise.
32294         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32295         * doc/posix-functions/wcstod.texi: Likewise.
32296         * doc/posix-functions/wcstof.texi: Likewise.
32297         * doc/posix-functions/wcstoimax.texi: Likewise.
32298         * doc/posix-functions/wcstok.texi: Likewise.
32299         * doc/posix-functions/wcstoumax.texi: Likewise.
32300
32301         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32303         * doc/posix-functions/fprintf.texi: Update.
32304         * doc/posix-functions/printf.texi: Update.
32305         * doc/posix-functions/snprintf.texi: Update.
32306         * doc/posix-functions/sprintf.texi: Update.
32307         * doc/posix-functions/vfprintf.texi: Update.
32308         * doc/posix-functions/vprintf.texi: Update.
32309         * doc/posix-functions/vsnprintf.texi: Update.
32310         * doc/posix-functions/vsprintf.texi: Update.
32311         * doc/glibc-functions/obstack_printf.texi: Update.
32312         * doc/glibc-functions/obstack_vprintf.texi: Update.
32313
32314 2009-02-26  Eric Blake  <ebb9@byu.net>
32315
32316         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32317         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32318         compilation bug by using runtime conversion.
32319         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32320         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32321         * modules/ceill-tests (Files): Use nan.h.
32322         * modules/floorl-tests (Files): Likewise.
32323         * modules/frexpl-tests (Files): Likewise.
32324         * modules/isnanl-tests (Files): Likewise.
32325         * modules/ldexpl-tests (Files): Likewise.
32326         * modules/roundl-tests (Files): Likewise.
32327         * modules/truncl-tests (Files): Likewise.
32328         * tests/test-ceill.c (main): Use a working NaN.
32329         * tests/test-floorl.c (main): Likewise.
32330         * tests/test-frexpl.c (main): Likewise.
32331         * tests/test-isnan.c (test_long_double): Likewise.
32332         * tests/test-isnanl.h (main): Likewise.
32333         * tests/test-ldexpl.h (main): Likewise.
32334         * tests/test-roundl.h (main): Likewise.
32335         * tests/test-truncl.h (main): Likewise.
32336         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32337
32338 2009-02-26  Eric Blake  <ebb9@byu.net>
32339             Bruno Haible  <bruno@clisp.org>
32340
32341         Work around a *printf bug with %ls on Solaris.
32342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32343         precision is specified, sprintf stops converting the wide string
32344         argument when the number of bytes that have been produced by this
32345         conversion equals or exceeds the precision.
32346         * doc/posix-functions/fprintf.texi: Update.
32347         * doc/posix-functions/printf.texi: Update.
32348         * doc/posix-functions/snprintf.texi: Update.
32349         * doc/posix-functions/sprintf.texi: Update.
32350         * doc/posix-functions/vfprintf.texi: Update.
32351         * doc/posix-functions/vprintf.texi: Update.
32352         * doc/posix-functions/vsnprintf.texi: Update.
32353         * doc/posix-functions/vsprintf.texi: Update.
32354         * doc/glibc-functions/obstack_printf.texi: Update.
32355         * doc/glibc-functions/obstack_vprintf.texi: Update.
32356
32357 2009-02-26  Eric Blake  <ebb9@byu.net>
32358
32359         stdlib: favor compiler check of random.h
32360         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32361         to avoid an ObjC random.h installed by Swarm.
32362
32363 2009-02-26  Bruno Haible  <bruno@clisp.org>
32364
32365         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32366         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32367         Reported by Gary V. Vaughan <gary@gnu.org>.
32368
32369 2009-02-26  Bruno Haible  <bruno@clisp.org>
32370
32371         Fix *printf behaviour regarding the %ls directive.
32372         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32373         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32374         NEED_PRINTF_DIRECTIVE_LS.
32375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32376         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32378         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32379         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32380         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32381         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32382         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32386         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32390         * doc/posix-functions/fprintf.texi: Update.
32391         * doc/posix-functions/printf.texi: Update.
32392         * doc/posix-functions/snprintf.texi: Update.
32393         * doc/posix-functions/sprintf.texi: Update.
32394         * doc/posix-functions/vfprintf.texi: Update.
32395         * doc/posix-functions/vprintf.texi: Update.
32396         * doc/posix-functions/vsnprintf.texi: Update.
32397         * doc/posix-functions/vsprintf.texi: Update.
32398         * doc/glibc-functions/obstack_printf.texi: Update.
32399         * doc/glibc-functions/obstack_vprintf.texi: Update.
32400         Reported by Eric Blake.
32401
32402 2009-02-25  Bruno Haible  <bruno@clisp.org>
32403
32404         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32405         with known value.
32406         Reported by Gary V. Vaughan <gary@gnu.org>.
32407
32408 2009-02-25  Bruno Haible  <bruno@clisp.org>
32409
32410         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32411         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32412         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32413         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32414         Reported by Gary V. Vaughan <gary@gnu.org>.
32415
32416 2009-02-25  Bruno Haible  <bruno@clisp.org>
32417
32418         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32419         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32420         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32421         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32422         Reported by Gary V. Vaughan <gary@gnu.org>.
32423
32424 2009-02-25  Eric Blake  <ebb9@byu.net>
32425
32426         tests: skip fseek/ftell tests if ungetc is broken
32427         * m4/ungetc.m4: New file.
32428         * modules/fseek-tests: Split test, so ungetc dependency is
32429         separate from rest of test.
32430         * modules/fseeko-tests: Likewise.
32431         * modules/ftell-tests: Likewise.
32432         * modules/ftello-tests: Likewise.
32433         * tests/test-fseek.c (main): Isolate ungetc dependency.
32434         * tests/test-fseeko.c (main): Likewise.
32435         * tests/test-ftell.c (main): Likewise.
32436         * tests/test-ftello.c (main): Likewise.
32437         * tests/test-fseek2.sh: New file.
32438         * tests/test-fseeko2.sh: Likewise.
32439         * tests/test-ftell2.sh: Likewise.
32440         * tests/test-ftello2.sh: Likewise.
32441
32442 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32443
32444         test-getaddrinfo: fix usage of skip return code 77
32445         * tests/test-gettaddrinfo.c: Return skip code 77 only
32446         for first occurance of skip (4x77 is not 77)
32447
32448 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32449
32450         strtod: avoid C99 decl-after-statement
32451         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32452
32453 2009-02-24  Eric Blake  <ebb9@byu.net>
32454
32455         strtod: detect HP-UX 11.31 bug
32456         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32457         Reported by Gary V. Vaughan.
32458
32459 2009-02-23  Bruno Haible  <bruno@clisp.org>
32460
32461         Fix invalid read past end of memory block.
32462         * lib/vasnprintf.c (DCHAR_SET): Define.
32463         (local_wcslen): Define only when needed.
32464         (local_strnlen, local_wcsnlen): New functions.
32465         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32466         directives that involve a conversion ourselves.
32467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32468         wcsnlen, mbrtowc, wcrtomb.
32469         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32470         * tests/test-vasprintf-posix.c (test_function): Likewise.
32471         * tests/test-snprintf-posix.h (test_function): Likewise.
32472         * tests/test-sprintf-posix.h (test_function): Likewise.
32473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32474
32475 2009-02-22  Bruno Haible  <bruno@clisp.org>
32476
32477         Implement new clarified decomposition of Hangul syllables.
32478         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32479         of type LTV, return only a pairwise decomposition.
32480         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32481         Likewise.
32482         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32483         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32484         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32485
32486 2009-02-22  Bruno Haible  <bruno@clisp.org>
32487
32488         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32489         zero-length results and shrink excess allocated memory.
32490         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32491         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32492         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32493         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32494         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32495         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32496         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32497         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32498         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32499         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32500         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32501         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32502
32503 2009-02-21  Bruno Haible  <bruno@clisp.org>
32504
32505         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32506         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32507         spaces after a period. Put a space between a macro name and its
32508         argument list. Trivial rewordings.
32509         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32510         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32511         (main): Return 0 explicitly.
32512
32513 2009-02-21  Bruno Haible  <bruno@clisp.org>
32514
32515         Tests for module 'uninorm/filter'.
32516         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32517         * modules/uninorm/filter-tests: New file.
32518
32519         New module 'uninorm/filter'.
32520         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32521         uninorm_filter_flush, uninorm_filter_free): New declarations.
32522         * lib/uninorm/uninorm-filter.c: New file.
32523         * modules/uninorm/filter: New file.
32524
32525 2009-02-21  Bruno Haible  <bruno@clisp.org>
32526
32527         Tests for module 'uninorm/nfkc'.
32528         * tests/uninorm/test-nfkc.c: New file.
32529         * tests/uninorm/test-u8-nfkc.c: New file.
32530         * tests/uninorm/test-u16-nfkc.c: New file.
32531         * tests/uninorm/test-u32-nfkc.c: New file.
32532         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32533         * tests/uninorm/test-u32-nfkc-big.c: New file.
32534         * modules/uninorm/nfkc-tests: New file.
32535
32536         New module 'uninorm/nfkc'.
32537         * lib/uninorm/nfkc.c: New file.
32538         * modules/uninorm/nfkc: New file.
32539
32540         Tests for module 'uninorm/nfkd'.
32541         * tests/uninorm/test-nfkd.c: New file.
32542         * tests/uninorm/test-u8-nfkd.c: New file.
32543         * tests/uninorm/test-u16-nfkd.c: New file.
32544         * tests/uninorm/test-u32-nfkd.c: New file.
32545         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32546         * tests/uninorm/test-u32-nfkd-big.c: New file.
32547         * modules/uninorm/nfkd-tests: New file.
32548
32549         New module 'uninorm/nfkd'.
32550         * lib/uninorm/nfkd.c: New file.
32551         * modules/uninorm/nfkd: New file.
32552
32553         Tests for module 'uninorm/nfc'.
32554         * tests/uninorm/test-nfc.c: New file.
32555         * tests/uninorm/test-u8-nfc.c: New file.
32556         * tests/uninorm/test-u16-nfc.c: New file.
32557         * tests/uninorm/test-u32-nfc.c: New file.
32558         * tests/uninorm/test-u32-nfc-big.sh: New file.
32559         * tests/uninorm/test-u32-nfc-big.c: New file.
32560         * modules/uninorm/nfc-tests: New file.
32561
32562         New module 'uninorm/nfc'.
32563         * lib/uninorm/nfc.c: New file.
32564         * modules/uninorm/nfc: New file.
32565
32566         Tests for module 'uninorm/nfd'.
32567         * tests/uninorm/test-nfd.c: New file.
32568         * tests/uninorm/test-u8-nfd.c: New file.
32569         * tests/uninorm/test-u16-nfd.c: New file.
32570         * tests/uninorm/test-u32-nfd.c: New file.
32571         * tests/uninorm/test-u32-nfd-big.sh: New file.
32572         * tests/uninorm/test-u32-nfd-big.c: New file.
32573         * tests/uninorm/test-u32-normalize-big.h: New file.
32574         * tests/uninorm/test-u32-normalize-big.c: New file.
32575         * tests/uninorm/NormalizationTest.txt: New file, created from
32576         Unicode 5.1.0 NormalizationTest.txt.
32577         * modules/uninorm/nfd-tests: New file.
32578
32579         New module 'uninorm/nfd'.
32580         * lib/uninorm/nfd.c: New file.
32581         * modules/uninorm/nfd: New file.
32582
32583         New module 'uninorm/u32-normalize'.
32584         * lib/uninorm/u32-normalize.c: New file.
32585         * modules/uninorm/u32-normalize: New file.
32586
32587         New module 'uninorm/u16-normalize'.
32588         * lib/uninorm/u16-normalize.c: New file.
32589         * modules/uninorm/u16-normalize: New file.
32590
32591         New module 'uninorm/u8-normalize'.
32592         * lib/uninorm/u8-normalize.c: New file.
32593         * lib/uninorm/normalize-internal.h: New file.
32594         * lib/uninorm/u-normalize-internal.h: New file.
32595         * modules/uninorm/u8-normalize: New file.
32596
32597         New module 'uninorm/decompose-internal'.
32598         * lib/uninorm/decompose-internal.c: New file.
32599         * modules/uninorm/decompose-internal: New file.
32600
32601         Tests for module 'uninorm/composition'.
32602         * tests/uninorm/test-composition.c: New file.
32603         * modules/uninorm/composition-tests: New file.
32604
32605         New module 'uninorm/composition'.
32606         * lib/uninorm/composition.c: New file.
32607         * lib/uninorm/composition-table.gperf: New file, generated by
32608         gen-uni-tables.
32609         * modules/uninorm/composition: New file.
32610
32611         Tests for module 'uninorm/compat-decomposition'.
32612         * tests/uninorm/test-compat-decomposition.c: New file.
32613         * modules/uninorm/compat-decomposition-tests: New file.
32614
32615         New module 'uninorm/compat-decomposition'.
32616         * lib/uninorm/decompose-internal.h: New file.
32617         * lib/uninorm/compat-decomposition.c: New file.
32618         * modules/uninorm/compat-decomposition: New file.
32619
32620         Tests for module 'uninorm/canonical-decomposition'.
32621         * tests/uninorm/test-canonical-decomposition.c: New file.
32622         * modules/uninorm/canonical-decomposition-tests: New file.
32623
32624         New module 'uninorm/canonical-decomposition'.
32625         * lib/uninorm/canonical-decomposition.c: New file.
32626         * modules/uninorm/canonical-decomposition: New file.
32627
32628         Tests for module 'uninorm/decomposition'.
32629         * tests/uninorm/test-decomposition.c: New file.
32630         * modules/uninorm/decomposition-tests: New file.
32631
32632         New module 'uninorm/decomposition'.
32633         * lib/uninorm/decomposition.c: New file.
32634         * modules/uninorm/decomposition: New file.
32635
32636         New module 'uninorm/decomposition-table'.
32637         * lib/uninorm/decomposition-table.h: New file.
32638         * lib/uninorm/decomposition-table.c: New file.
32639         * lib/uninorm/decomposition-table1.h: New file, generated by
32640         gen-uni-tables.
32641         * lib/uninorm/decomposition-table2.h: New file, generated by
32642         gen-uni-tables.
32643         * modules/uninorm/decomposition-table: New file.
32644
32645         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32646         (UC_DECOMP_*): New enumeration items.
32647         (get_decomposition): New function.
32648         (struct decomp_table): New type.
32649         (output_decomposition, output_decomposition_tables): New functions.
32650         (unicode_composition_exclusions): New variable.
32651         (fill_composition_exclusions, debug_output_composition_tables): New
32652         functions.
32653         (main): Accept one more argument. Invoke fill_composition_exclusions.
32654         Output decomposition and composition tables.
32655
32656         New module 'uninorm/base'.
32657         * lib/uninorm.h: New file.
32658         * lib/unictype.h: Update comment.
32659         * modules/uninorm/base: New file.
32660
32661 2009-02-21  David Lutterkort  <lutter@redhat.com>
32662
32663         Tests for module 'safe-alloc'.
32664         * tests/test-safe-alloc.c: New file.
32665         * modules/safe-alloc-tests: New file.
32666
32667         New module 'safe-alloc'.
32668         * lib/safe-alloc.h: New file.
32669         * lib/safe-alloc.c: New file.
32670         * m4/safe-alloc.m4: New file.
32671         * modules/safe-alloc: New file.
32672         * doc/safe-alloc.texi: New file.
32673         * doc/gnulib.texi: Include it.
32674         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32675         safe-alloc.
32676
32677 2009-02-18  Bruno Haible  <bruno@clisp.org>
32678
32679         Fix link error on non-glibc systems.
32680         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32681         variable.
32682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32683
32684 2009-02-18  Jim Meyering  <meyering@redhat.com>
32685
32686         fts: avoid used-uninitialized error due to recent change
32687         * lib/fts.c (fts_read): Guard uses of the new member,
32688         parent->fts_n_dirs_remaining, since it's not relevant for
32689         the parent of a directory specified on the command-line.
32690
32691 2009-02-17  James Youngman  <jay@gnu.org>
32692             Bruno Haible  <bruno@clisp.org>
32693
32694         * m4/include_next.m4: Reformulate comment.
32695
32696 2009-02-16  Jim Meyering  <meyering@redhat.com>
32697
32698         fts: add #if guards so that the fts_lgpl module still builds
32699         * lib/fts.c: Guard just-added hash-table-using parts with
32700         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32701         Reported by Simon Josefsson.
32702
32703 2009-02-15  Bruno Haible  <bruno@clisp.org>
32704
32705         * modules/array-mergesort-tests: New file.
32706         * tests/test-array-mergesort.c: New file.
32707
32708         New module 'array-mergesort'.
32709         * modules/array-mergesort: New file.
32710         * lib/array-mergesort.h: New file.
32711
32712 2009-02-15  Bruno Haible  <bruno@clisp.org>
32713
32714         Fix 2009-02-07 commit.
32715         * lib/gen-uni-tables.c (output_predicate, output_category,
32716         output_combclass, output_bidi_category, output_decimal_digit,
32717         output_digit, output_numeric, output_mirror, output_scripts,
32718         output_ident_category, output_simple_mapping): Fix format directives.
32719         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32720
32721 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32722
32723         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32724         fixes are available from IBM.
32725
32726 2009-02-13  Jim Meyering  <meyering@redhat.com>
32727
32728         fts: arrange not to stat non-directories in more cases
32729         This makes GNU find (when it doesn't need to stat each file)
32730         *much* more efficient at traversing reiserfs file systems.
32731         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32732         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32733         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32734         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32735         (leaf_optimization_applies): New function.
32736         (LCO_hash, LCO_compare): New helper functions.
32737         (link_count_optimize_ok): New function.
32738         (fts_stat): Initialize new member (if dir).
32739         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32740         we've just stat'ed a directory.  Skip the stat call when possible.
32741         ---
32742         Note this AFS-related exchange:
32743         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32744         and note find's pioctl call in find/fstype.c.
32745         But that is necessary only if you want to enable the
32746         optimization for AFS, and for now, I don't.
32747
32748         fts: move a function definition "up" (no semantic change)
32749         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32750         "up" to precede upcoming use of a related function.
32751
32752 2009-02-11  Jim Meyering  <meyering@redhat.com>
32753
32754         fts: correct internal computation of nlinks (optimization-related)
32755         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32756         whether the current entry is a directory, so don't test it.
32757
32758 2009-02-10  Bruno Haible  <bruno@clisp.org>
32759
32760         Tests for module 'uniwbrk/ulc-wordbreaks'.
32761         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32762         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32763         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32764
32765         Tests for module 'uniwbrk/u32-wordbreaks'.
32766         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32767         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32768
32769         Tests for module 'uniwbrk/u16-wordbreaks'.
32770         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32771         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32772
32773         Tests for module 'uniwbrk/u8-wordbreaks'.
32774         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32775         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32776
32777 2009-02-10  Bruno Haible  <bruno@clisp.org>
32778
32779         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32780         property.
32781         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32782         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32783         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32784
32785 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32786
32787         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32788         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32789
32790 2009-02-10  Bruno Haible  <bruno@clisp.org>
32791
32792         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32793         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32794         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32795         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32796         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32797         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32798
32799 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32800
32801         * lib/sockets.h (gl_fd_to_handle): New function.
32802
32803         * tests/test-sockets.c: Call gl_fd_to_handle.
32804
32805 2009-02-09  Bruno Haible  <bruno@clisp.org>
32806
32807         * doc/havelib.texi: Document the conventions on bi-arch systems.
32808
32809 2009-02-08  Bruno Haible  <bruno@clisp.org>
32810
32811         Document the AC_LIB_LINKFLAGS macro.
32812         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32813         * doc/gnulib.texi: Include it.
32814
32815 2009-02-08  Bruno Haible  <bruno@clisp.org>
32816
32817         Fix wrong order of sections, compared to TOC.
32818         * doc/gnulib.texi: Include relocatable-maint.texi after the
32819         "Regular expressions" node, not before.
32820
32821 2009-02-08  Bruno Haible  <bruno@clisp.org>
32822
32823         Tests for module 'unicase/totitle'.
32824         * modules/unicase/totitle-tests: New file.
32825
32826         Tests for module 'unicase/tolower'.
32827         * modules/unicase/tolower-tests: New file.
32828
32829         Tests for module 'unicase/toupper'.
32830         * modules/unicase/toupper-tests: New file.
32831         * tests/unicase/test-mapping-part1.h: New file.
32832         * tests/unicase/test-mapping-part2.h: New file.
32833
32834         New module 'unicase/totitle'.
32835         * modules/unicase/totitle: New file.
32836         * lib/unicase/totitle.c: New file.
32837
32838         New module 'unicase/tolower'.
32839         * modules/unicase/tolower: New file.
32840         * lib/unicase/tolower.c: New file.
32841
32842         New module 'unicase/toupper'.
32843         * modules/unicase/toupper: New file.
32844         * lib/unicase/toupper.c: New file.
32845         * lib/unicase/simple-mapping.h: New file.
32846
32847         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32848         (mapping_table): New structure.
32849         (output_simple_mapping): New function.
32850         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32851         * modules/gen-uni-tables (Description): Update.
32852         * lib/unicase/toupper.h: New file, automatically generated by
32853         gen-uni-tables.
32854         * lib/unicase/tolower.h: New file, automatically generated by
32855         gen-uni-tables.
32856         * lib/unicase/totitle.h: New file, automatically generated by
32857         gen-uni-tables.
32858         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32859         gen-uni-tables.
32860         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32861         gen-uni-tables.
32862         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32863         gen-uni-tables.
32864
32865         New module 'unicase/base'.
32866         * modules/unicase/base: New file.
32867         * lib/unicase.h: New file.
32868
32869 2009-02-08  Bruno Haible  <bruno@clisp.org>
32870
32871         New module 'uniwbrk/ulc-wordbreaks'.
32872         * modules/uniwbrk/ulc-wordbreaks: New file.
32873         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32874
32875         New module 'uniwbrk/u32-wordbreaks'.
32876         * modules/uniwbrk/u32-wordbreaks: New file.
32877         * lib/uniwbrk/u32-wordbreaks.c: New file.
32878
32879         New module 'uniwbrk/u16-wordbreaks'.
32880         * modules/uniwbrk/u16-wordbreaks: New file.
32881         * lib/uniwbrk/u16-wordbreaks.c: New file.
32882
32883         New module 'uniwbrk/u8-wordbreaks'.
32884         * modules/uniwbrk/u8-wordbreaks: New file.
32885         * lib/uniwbrk/u8-wordbreaks.c: New file.
32886         * lib/uniwbrk/u-wordbreaks.h: New file.
32887
32888         New module 'uniwbrk/table'.
32889         * modules/uniwbrk/table: New file.
32890         * lib/uniwbrk/wbrktable.h: New file.
32891         * lib/uniwbrk/wbrktable.c: New file.
32892
32893         New module 'uniwbrk/wordbreak-property'.
32894         * modules/uniwbrk/wordbreak-property: New file.
32895         * lib/uniwbrk/wordbreak-property.c: New file.
32896
32897         * lib/gen-uni-tables.c (WBP_*): New enum items.
32898         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32899         (unicode_org_wbp): New variable.
32900         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32901         New functions.
32902         (wbp_table): New structure.
32903         (output_wbp, output_wbrk_tables): New functions.
32904         (main): Accept additional argument. Invoke fill_org_wbp,
32905         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32906         output_wbrk_tables.
32907         * modules/gen-uni-tables (Description): Update.
32908         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32909         gen-uni-tables.
32910
32911         New module 'uniwbrk/base'.
32912         * modules/uniwbrk/base: New file.
32913         * lib/uniwbrk.h: New file.
32914
32915 2009-02-08  Bruno Haible  <bruno@clisp.org>
32916
32917         Update to Unicode 5.1.0.
32918         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32919         U+2185..U+2188.
32920         (is_property_default_ignorable_code_point): Don't include characters
32921         of category Cc or Cs and not-a-characters.
32922         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32923         U+0D79, U+109E, U+109F, U+A60C.
32924         * lib/unictype/bidi_of.h: Regenerated.
32925         * lib/unictype/blocks.h: Regenerated.
32926         * lib/unictype/categ_C.h: Regenerated.
32927         * lib/unictype/categ_Cf.h: Regenerated.
32928         * lib/unictype/categ_Cn.h: Regenerated.
32929         * lib/unictype/categ_L.h: Regenerated.
32930         * lib/unictype/categ_Ll.h: Regenerated.
32931         * lib/unictype/categ_Lm.h: Regenerated.
32932         * lib/unictype/categ_Lo.h: Regenerated.
32933         * lib/unictype/categ_Lu.h: Regenerated.
32934         * lib/unictype/categ_M.h: Regenerated.
32935         * lib/unictype/categ_Mc.h: Regenerated.
32936         * lib/unictype/categ_Me.h: Regenerated.
32937         * lib/unictype/categ_Mn.h: Regenerated.
32938         * lib/unictype/categ_N.h: Regenerated.
32939         * lib/unictype/categ_Nd.h: Regenerated.
32940         * lib/unictype/categ_Nl.h: Regenerated.
32941         * lib/unictype/categ_No.h: Regenerated.
32942         * lib/unictype/categ_P.h: Regenerated.
32943         * lib/unictype/categ_Pd.h: Regenerated.
32944         * lib/unictype/categ_Pe.h: Regenerated.
32945         * lib/unictype/categ_Pf.h: Regenerated.
32946         * lib/unictype/categ_Pi.h: Regenerated.
32947         * lib/unictype/categ_Po.h: Regenerated.
32948         * lib/unictype/categ_Ps.h: Regenerated.
32949         * lib/unictype/categ_S.h: Regenerated.
32950         * lib/unictype/categ_Sk.h: Regenerated.
32951         * lib/unictype/categ_Sm.h: Regenerated.
32952         * lib/unictype/categ_So.h: Regenerated.
32953         * lib/unictype/categ_of.h: Regenerated.
32954         * lib/unictype/combining.h: Regenerated.
32955         * lib/unictype/ctype_alnum.h: Regenerated.
32956         * lib/unictype/ctype_alpha.h: Regenerated.
32957         * lib/unictype/ctype_graph.h: Regenerated.
32958         * lib/unictype/ctype_lower.h: Regenerated.
32959         * lib/unictype/ctype_print.h: Regenerated.
32960         * lib/unictype/ctype_punct.h: Regenerated.
32961         * lib/unictype/ctype_upper.h: Regenerated.
32962         * lib/unictype/decdigit.h: Regenerated.
32963         * lib/unictype/digit.h: Regenerated.
32964         * lib/unictype/mirror.h: Regenerated.
32965         * lib/unictype/numeric.h: Regenerated.
32966         * lib/unictype/pr_alphabetic.h: Regenerated.
32967         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32968         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32969         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32970         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32971         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32972         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32973         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32974         * lib/unictype/pr_combining.h: Regenerated.
32975         * lib/unictype/pr_dash.h: Regenerated.
32976         * lib/unictype/pr_decimal_digit.h: Regenerated.
32977         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32978         * lib/unictype/pr_deprecated.h: Regenerated.
32979         * lib/unictype/pr_diacritic.h: Regenerated.
32980         * lib/unictype/pr_extender.h: Regenerated.
32981         * lib/unictype/pr_format_control.h: Regenerated.
32982         * lib/unictype/pr_grapheme_base.h: Regenerated.
32983         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32984         * lib/unictype/pr_grapheme_link.h: Regenerated.
32985         * lib/unictype/pr_id_continue.h: Regenerated.
32986         * lib/unictype/pr_id_start.h: Regenerated.
32987         * lib/unictype/pr_ideographic.h: Regenerated.
32988         * lib/unictype/pr_ignorable_control.h: Regenerated.
32989         * lib/unictype/pr_lowercase.h: Regenerated.
32990         * lib/unictype/pr_math.h: Regenerated.
32991         * lib/unictype/pr_numeric.h: Regenerated.
32992         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32993         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32994         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32995         * lib/unictype/pr_other_id_continue.h: Regenerated.
32996         * lib/unictype/pr_other_lowercase.h: Regenerated.
32997         * lib/unictype/pr_other_math.h: Regenerated.
32998         * lib/unictype/pr_punctuation.h: Regenerated.
32999         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33000         * lib/unictype/pr_soft_dotted.h: Regenerated.
33001         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33002         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33003         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33004         * lib/unictype/pr_uppercase.h: Regenerated.
33005         * lib/unictype/pr_xid_continue.h: Regenerated.
33006         * lib/unictype/pr_xid_start.h: Regenerated.
33007         * lib/unictype/pr_zero_width.h: Regenerated.
33008         * lib/unictype/scripts.h: Regenerated.
33009         * lib/unictype/scripts_byname.gperf: Regenerated.
33010         * lib/unictype/sy_java_ident.h: Regenerated.
33011         * lib/unilbrk/lbrkprop1.h: Regenerated.
33012         * lib/unilbrk/lbrkprop2.h: Regenerated.
33013         * tests/unictype/test-categ_C.c: Regenerated.
33014         * tests/unictype/test-categ_Cf.c: Regenerated.
33015         * tests/unictype/test-categ_Cn.c: Regenerated.
33016         * tests/unictype/test-categ_L.c: Regenerated.
33017         * tests/unictype/test-categ_Ll.c: Regenerated.
33018         * tests/unictype/test-categ_Lm.c: Regenerated.
33019         * tests/unictype/test-categ_Lo.c: Regenerated.
33020         * tests/unictype/test-categ_Lu.c: Regenerated.
33021         * tests/unictype/test-categ_M.c: Regenerated.
33022         * tests/unictype/test-categ_Mc.c: Regenerated.
33023         * tests/unictype/test-categ_Me.c: Regenerated.
33024         * tests/unictype/test-categ_Mn.c: Regenerated.
33025         * tests/unictype/test-categ_N.c: Regenerated.
33026         * tests/unictype/test-categ_Nd.c: Regenerated.
33027         * tests/unictype/test-categ_Nl.c: Regenerated.
33028         * tests/unictype/test-categ_No.c: Regenerated.
33029         * tests/unictype/test-categ_P.c: Regenerated.
33030         * tests/unictype/test-categ_Pd.c: Regenerated.
33031         * tests/unictype/test-categ_Pe.c: Regenerated.
33032         * tests/unictype/test-categ_Pf.c: Regenerated.
33033         * tests/unictype/test-categ_Pi.c: Regenerated.
33034         * tests/unictype/test-categ_Po.c: Regenerated.
33035         * tests/unictype/test-categ_Ps.c: Regenerated.
33036         * tests/unictype/test-categ_S.c: Regenerated.
33037         * tests/unictype/test-categ_Sk.c: Regenerated.
33038         * tests/unictype/test-categ_Sm.c: Regenerated.
33039         * tests/unictype/test-categ_So.c: Regenerated.
33040         * tests/unictype/test-ctype_alnum.c: Regenerated.
33041         * tests/unictype/test-ctype_alpha.c: Regenerated.
33042         * tests/unictype/test-ctype_graph.c: Regenerated.
33043         * tests/unictype/test-ctype_lower.c: Regenerated.
33044         * tests/unictype/test-ctype_print.c: Regenerated.
33045         * tests/unictype/test-ctype_punct.c: Regenerated.
33046         * tests/unictype/test-ctype_upper.c: Regenerated.
33047         * tests/unictype/test-decdigit.h: Regenerated.
33048         * tests/unictype/test-digit.h: Regenerated.
33049         * tests/unictype/test-numeric.h: Regenerated.
33050         * tests/unictype/test-pr_alphabetic.c: Regenerated.
33051         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
33052         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
33053         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
33054         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33055         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33056         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33057         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33058         * tests/unictype/test-pr_combining.c: Regenerated.
33059         * tests/unictype/test-pr_dash.c: Regenerated.
33060         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33061         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33062         * tests/unictype/test-pr_deprecated.c: Regenerated.
33063         * tests/unictype/test-pr_diacritic.c: Regenerated.
33064         * tests/unictype/test-pr_extender.c: Regenerated.
33065         * tests/unictype/test-pr_format_control.c: Regenerated.
33066         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33067         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33068         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33069         * tests/unictype/test-pr_id_continue.c: Regenerated.
33070         * tests/unictype/test-pr_id_start.c: Regenerated.
33071         * tests/unictype/test-pr_ideographic.c: Regenerated.
33072         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33073         * tests/unictype/test-pr_lowercase.c: Regenerated.
33074         * tests/unictype/test-pr_math.c: Regenerated.
33075         * tests/unictype/test-pr_numeric.c: Regenerated.
33076         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33077         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33078         Regenerated.
33079         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33080         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33081         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33082         * tests/unictype/test-pr_other_math.c: Regenerated.
33083         * tests/unictype/test-pr_punctuation.c: Regenerated.
33084         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33085         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33086         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33087         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33088         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33089         * tests/unictype/test-pr_uppercase.c: Regenerated.
33090         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33091         * tests/unictype/test-pr_xid_start.c: Regenerated.
33092         * tests/unictype/test-pr_zero_width.c: Regenerated.
33093
33094         Update to Unicode 5.1.0.
33095         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33096         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33097         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33098         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33099         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33100         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33101         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33102         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33103         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33104         (nonspacing_table_ind): Update.
33105         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33106
33107         Update to Unicode 5.1.0.
33108         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33109         code transform.
33110         * lib/uniname/uniname.c (unicode_character_name,
33111         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33112         * lib/uniname/uninames.h: Regenerated.
33113         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33114
33115 2009-02-07  Bruno Haible  <bruno@clisp.org>
33116
33117         Merge gen-ctype and gen-lbrk into a single program.
33118         * lib/gen-uni-tables.c: New file, incorporating
33119         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33120         Add directory prefixes to the names of the generated files.
33121         * lib/unictype/gen-ctype.c: Remove file.
33122         * lib/unilbrk/gen-lbrk.c: Remove file.
33123         * modules/gen-uni-tables: New file.
33124         * modules/unictype/gen-ctype: Remove file.
33125         * modules/unilbrk/gen-lbrk: Remove file.
33126
33127 2009-02-07  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33130
33131         New module 'unistr/u32-strcoll'.
33132         * modules/unistr/u32-strcoll: New file.
33133         * lib/unistr/u32-strcoll.c: New file.
33134
33135         New module 'unistr/u16-strcoll'.
33136         * modules/unistr/u16-strcoll: New file.
33137         * lib/unistr/u16-strcoll.c: New file.
33138
33139         New module 'unistr/u8-strcoll'.
33140         * modules/unistr/u8-strcoll: New file.
33141         * lib/unistr/u8-strcoll.c: New file.
33142         * lib/unistr/u-strcoll.h: New file.
33143
33144 2009-02-07  Bruno Haible  <bruno@clisp.org>
33145
33146         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33147         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33148         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33149         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33150         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33151         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33152
33153 2009-02-07  Bruno Haible  <bruno@clisp.org>
33154
33155         Make 64-bit clean.
33156         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33157         output_combclass, output_bidi_category, output_decimal_digit,
33158         output_digit, output_numeric, output_mirror, output_scripts,
33159         output_ident_category): Use proper width specifier in format strings.
33160
33161 2009-02-07  Bruno Haible  <bruno@clisp.org>
33162
33163         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33164         failure behaviour.
33165
33166 2009-02-07  Jim Meyering  <meyering@redhat.com>
33167
33168         regex: avoid compilation failure with upcoming gcc-4.4
33169         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33170         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33171         "... error: integer overflow in preprocessor expression".
33172
33173 2009-02-05  Ben Pfaff  <blp@gnu.org>
33174
33175         Fix link errors on Windows when close module is used.
33176         * modules/close: Add $(LIB_CLOSE) to Link section.
33177         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33178         $(LIB_CLOSE) on Windows.
33179
33180 2009-02-05  Jim Meyering  <meyering@redhat.com>
33181
33182         still avoid unused-parameter warnings, but do it cleanly
33183         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33184         (get_fs_usage): Cast to void instead.
33185         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33186         (dev_from_mount_options, read_file_system_list): Cast to void.
33187         Prompted by Bruno Haible.
33188
33189 2009-02-04  Jim Meyering  <meyering@redhat.com>
33190
33191         fsusage.c: correct copyright year
33192         * lib/fsusage.c: Reflect year in which the change is pushed into
33193
33194         avoid misc. warnings
33195         * lib/fsusage.c (UNUSED_PARAM): Define.
33196         (get_fs_usage): Mark parameter "disk" as unused.
33197         * lib/getugroups.c (getgrent): Use "void" in prototype.
33198         * lib/mountlist.c: Mark unused parameters.
33199         (read_file_system_list): Declare a local with "const".
33200         * lib/nanosleep.c (getnow): Declare static.
33201         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33202
33203         dirfd: set errno upon failure
33204         * lib/dirfd.c: Include <errno.h>.
33205         Set errno to ENOTSUP when returning -1.
33206         * modules/dirfd (Depends-on): Add errno.
33207         Suggested by John Kodis <kodis@comcast.net>.
33208
33209 2009-02-01  Bruno Haible  <bruno@clisp.org>
33210
33211         Don't assume sizeof (long) >= sizeof (void *).
33212         * lib/memcmp.c: Include stdint.h.
33213         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33214         srcp2 to 'const byte *'.
33215         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33216         types to uintptr_t.
33217         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33218         * modules/memcmp (Depends-on): Add stdint.
33219         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33220
33221 2009-01-30  Eric Blake  <ebb9@byu.net>
33222
33223         fix more require-before-expand issues
33224         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33225         expand, AC_PROG_AWK.
33226         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33227
33228 2009-01-28  Eric Blake  <ebb9@byu.net>
33229
33230         version-etc: use consistent URL formatting
33231         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33232         Improve formatting.  Use fputs for string without %.
33233
33234 2009-01-28  Jim Meyering  <meyering@redhat.com>
33235
33236         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33237         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33238         "underquoted definition of NAME" from autoconf-2.59.
33239
33240 2009-01-28  Bruno Haible  <bruno@clisp.org>
33241
33242         * doc/gnulib.texi: Add "Obsolete modules" to index.
33243
33244 2009-01-28  Jim Meyering  <meyering@redhat.com>
33245
33246         useless-if-before-free: recognize more variants
33247         * build-aux/useless-if-before-free: Also recognize e.g.,
33248         if (NULL != p) free (p);
33249
33250 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33251
33252         test-getaddrinfo: skip (don't fail) this test when there's no network
33253         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33254         on the presumption that it means you lack network access.
33255
33256 2009-01-26  Jim Meyering  <meyering@redhat.com>
33257
33258         fflush: avoid warnings on modern systems
33259         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33260         pos and result, into scopes where they're used.
33261
33262 2009-01-26  Eric Blake  <ebb9@byu.net>
33263
33264         Silence warning reintroduced by recent extensions patch.
33265         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33266         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33267         autoconf.
33268
33269         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33270         * m4/00gnulib.m4: New file.
33271         * gnulib-tool (func_get_filelist): Always use it.
33272         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33273         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33274
33275 2009-01-25  Bruno Haible  <bruno@clisp.org>
33276
33277         Make test-quotearg work on MacOS X and AIX.
33278         * tests/test-quotearg.sh: New file.
33279         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33280         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33281         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33282         include <libintl.h>.
33283         (fake_locale): Remove variable.
33284         (gettext, dgettext, dcgettext): Remove functions.
33285         (main): Instead of setting a fake locale, set a real locale. Call
33286         textdomain and bindtextdomain.
33287         * modules/quotearg-tests (Files): Add the new files.
33288         (Depends-on): Add gettext, setenv, unsetenv.
33289         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33290         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33291         Augment TESTS_ENVIRONMENT.
33292
33293 2009-01-25  Bruno Haible  <bruno@clisp.org>
33294
33295         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33296         fr_FR.ISO8859-1 locale on MacOS X.
33297         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33298         ja_JP.eucJP locale on MacOS X.
33299         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33300         zh_CN.GB18030 locale on MacOS X.
33301
33302 2009-01-25  Bruno Haible  <bruno@clisp.org>
33303
33304         Avoid link errors on MacOS X 10.3.
33305         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33306         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33307
33308 2009-01-25  Bruno Haible  <bruno@clisp.org>
33309
33310         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33311         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33312         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33313         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33314         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33315         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33316         posix_spawnattr_init, posix_spawnattr_setsigmask,
33317         posix_spawnattr_setflags, posix_spawnattr_destroy.
33318
33319         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33320         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33321         * modules/execute (Files): Remove m4/posix_spawn.m4.
33322         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33323         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33324         posix_spawnattr_init, posix_spawnattr_setsigmask,
33325         posix_spawnattr_setflags, posix_spawnattr_destroy.
33326
33327 2009-01-25  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/glthread/threadlib.c: Include <stdlib.h>.
33330
33331 2009-01-25  Bruno Haible  <bruno@clisp.org>
33332
33333         * lib/glthread/threadlib.c (dummy): New declaration.
33334
33335 2009-01-25  Bruno Haible  <bruno@clisp.org>
33336
33337         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33338         multibyte characters also for the GB18030 encoding. Don't crash when
33339         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33340
33341 2009-01-25  Bruno Haible  <bruno@clisp.org>
33342
33343         Avoid redefining 'struct random_data' on OSF/1 5.1.
33344         * lib/stdlib.in.h: Include <random.h> if it exists.
33345         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33346         HAVE_RANDOM_H. Include <random.h> when testing whether
33347         'struct random_data' exists.
33348         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33349
33350 2009-01-25  Bruno Haible  <bruno@clisp.org>
33351
33352         Don't install charset.alias on MacOS X >= 10.3.
33353         * lib/localcharset.c (DARWIN7): New macro.
33354         (get_charset_aliases): Hardcode the result for Darwin7.
33355         * modules/localcharset (install-exec-local): Don't install
33356         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33357
33358 2009-01-25  Bruno Haible  <bruno@clisp.org>
33359
33360         Don't install charset.alias on mingw and Cygwin.
33361         * modules/localcharset (install-exec-local): Don't install
33362         charset.alias on mingw and Cygwin, if the file does not yet exist.
33363         The result for these platforms is hardcoded in localcharset.c.
33364
33365 2009-01-25  Bruno Haible  <bruno@clisp.org>
33366
33367         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33369         before requiring AC_USE_SYSTEM_EXTENSIONS.
33370
33371 2009-01-25  Jim Meyering  <meyering@redhat.com>
33372
33373         c-strtod: avoid warnings
33374         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33375         "assignment discards qualifiers from pointer target type" warnings.
33376
33377 2009-01-24  Bruno Haible  <bruno@clisp.org>
33378
33379         Add support for non-UTF-8 locales on MacOS X.
33380         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33381         canonical encodings. For Darwin 7 and newer, don't map traditional
33382         encodings to UTF-8.
33383         Reported by Vincent Lefevre <vincent@vinc17.org>
33384         at <http://savannah.gnu.org/bugs/?25235>.
33385
33386 2009-01-24  Bruno Haible  <bruno@clisp.org>
33387
33388         * doc/gnulib.texi (Obsolete modules): New section.
33389         Reported by Mike Frysinger <vapier@gentoo.org>.
33390
33391 2009-01-24  Bruno Haible  <bruno@clisp.org>
33392
33393         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33394         (%.dvi): New rule.
33395
33396 2009-01-24  Bruno Haible  <bruno@clisp.org>
33397
33398         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33399         Reported by Eric Blake.
33400
33401 2009-01-24  Bruno Haible  <bruno@clisp.org>
33402
33403         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33404         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33405         Reported by Gary V. Vaughan <gary@gnu.org>.
33406
33407 2009-01-24  Bruno Haible  <bruno@clisp.org>
33408
33409         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33410
33411 2009-01-23  Bruno Haible  <bruno@clisp.org>
33412
33413         Make c-strtod, c-strtold usable in libraries.
33414         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33415         (C_STRTOD): Call strdup instead of xstrdup.
33416         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33417         * modules/c-strtold (Depends-on): Likewise.
33418         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33419         * NEWS: Mention the change.
33420         Reported by Michael Gold <mgold@ncf.ca>.
33421
33422 2009-01-23  Jim Meyering  <meyering@redhat.com>
33423
33424         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33425         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33426         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33427
33428 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33429
33430         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33431         GNU CoreUtils.
33432         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33433         * modules/version-etc (Description): Update.
33434
33435 2009-01-22  Bruno Haible  <bruno@clisp.org>
33436
33437         Cache the C locale object.
33438         * lib/c-strtod.c (c_locale_cache): New variable.
33439         (c_locale): New function.
33440         (C_STRTOD): Use it, and don't call freelocale.
33441         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33442         Suggested by Paolo Bonzini.
33443
33444 2009-01-21  Bruno Haible  <bruno@clisp.org>
33445
33446         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33447         conditions other than overflow.
33448
33449 2009-01-21  Bruno Haible  <bruno@clisp.org>
33450
33451         * lib/c-strtod.c: Include errno.h.
33452         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33453         value from STRTOD_L and STRTOD.
33454
33455 2009-01-21  Bruno Haible  <bruno@clisp.org>
33456         and Jim Meyering  <meyering@redhat.com>
33457
33458         nanosleep: skip configure test (fail it) for apple universal builds
33459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33460         universal builds, assume that nanosleep does not work.
33461         * modules/nanosleep (Depends-on): Add multiarch.
33462
33463         mktime: skip configure test (fail it) for apple universal builds
33464         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33465         universal builds, assume that mktime does not work.
33466         * modules/mktime (Depends-on): Add multiarch.
33467
33468 2009-01-21  Eric Blake  <ebb9@byu.net>
33469
33470         multiarch: avoid expand-before-require warning
33471         * modules/multiarch (configure.ac): Require, rather than expand,
33472         gl_MULTIARCH.
33473         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33474         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33475         enforce that all clients require it.  Partial reversion of
33476         2008-12-29 patch.
33477
33478         error: avoid expand-before-require warning
33479         * modules/errno (configure.ac): Require, rather than expand,
33480         gl_HEADER_ERRNO_H.
33481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33482         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33483         enforce that all clients require it.
33484
33485         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33486         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33487         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33488         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33489
33490 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33491
33492         Revert:
33493         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33494
33495         regex: do not depend on obsolete modules.
33496         * modules/regex: Remove memcmp and memmove.
33497
33498 2009-01-20  Bruno Haible  <bruno@clisp.org>
33499
33500         Make the 'link' module link on Windows NT 4.
33501         * lib/link.c (_WIN32_WINNT): Don't define.
33502         (CreateHardLinkFuncType): New type.
33503         (CreateHardLinkFunc, initialized): New variables.
33504         (initialize): New function.
33505         (link): Invoke CreateHardLink indirectly through the function pointer.
33506
33507 2009-01-20  Bruno Haible  <bruno@clisp.org>
33508
33509         Fix compilation failure on mingw.
33510         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33511
33512 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33513
33514         * doc/c-strtod.texi: Mention a couple of restrictions.
33515
33516 2009-01-20  Jim Meyering  <meyering@redhat.com>
33517
33518         gettimeofday: move more declarations out of functions
33519         * lib/gettimeofday.c: Move extern declarations of tzset and
33520         gmtime out of containing functions.  Prompted by Bruno Haible.
33521
33522 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33523
33524         regex: do not depend on obsolete modules.
33525         * modules/regex: Remove memcmp and memmove.
33526
33527 2009-01-19  Bruno Haible  <bruno@clisp.org>
33528
33529         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33530         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33531         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33532         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33533         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33534
33535 2009-01-19  Bruno Haible  <bruno@clisp.org>
33536
33537         * tests/test-link.c: Include <errno.h>.
33538         (main): Exit with code 77 when a hard link cannot be created due to
33539         the file system.
33540         * tests/test-link.sh: Skip test when a hard link cannot be created due
33541         to the file system.
33542         Suggested by Eric Blake.
33543
33544 2009-01-19  Martin Lambers  <marlam@marlam.de>
33545
33546         * modules/link-tests: New file.
33547         * tests/test-link.sh: New file.
33548         * tests/test-link.c: New file.
33549
33550 2009-01-19  Eric Blake  <ebb9@byu.net>
33551
33552         doc: mention another function added in cygwin 1.7.0
33553         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33554         Another new function in cygwin 1.7.
33555
33556 2009-01-19  Bruno Haible  <bruno@clisp.org>
33557
33558         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33559         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33560         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33561         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33562         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33563         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33564         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33565         * m4/md4.m4 (gl_MD4): Likewise.
33566         * m4/md5.m4 (gl_MD5): Likewise.
33567         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33568         * m4/sha1.m4 (gl_SHA1): Likewise.
33569         * m4/sha256.m4 (gl_SHA256): Likewise.
33570         * m4/sha512.m4 (gl_SHA512): Likewise.
33571
33572 2009-01-19  Bruno Haible  <bruno@clisp.org>
33573
33574         * modules/uniname/uniname-tests (Depends-on): Add progname.
33575         * tests/uniname/test-uninames.c: Include progname.h.
33576         (main): Call set_program_name.
33577
33578         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33579         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33580         (main): Call set_program_name.
33581
33582         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33583         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33584         (main): Call set_program_name.
33585
33586         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33587         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33588         (main): Call set_program_name.
33589
33590         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33591         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33592         (main): Call set_program_name.
33593
33594         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33595         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33596         (main): Call set_program_name.
33597
33598         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33599         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33600         (main): Call set_program_name.
33601
33602         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33603         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33604         (main): Call set_program_name.
33605
33606         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33607         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33608         (main): Call set_program_name.
33609
33610 2009-01-19  Eric Blake  <ebb9@byu.net>
33611
33612         test-unistd: test previous patch
33613         * tests/test-unistd.c: Test *_FILENO macros.
33614
33615         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33616         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33617         Guarantee a definition.
33618         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33619         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33620         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33621         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33622         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33623         Likewise.
33624         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33625         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33626         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33627         Likewise.
33628         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33629         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33630         (STDERR_FILENO): Likewise.
33631         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33632         (STDERR_FILENO): Likewise.
33633         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33634         (STDERR_FILENO): Likewise.
33635         Reported by Elbert Pol.
33636
33637 2009-01-19  Eric Blake  <ebb9@byu.net>
33638
33639         doc: mention more functions added in cygwin 1.7.0
33640         * doc/posix-functions/abort.texi (abort): Update wording related
33641         to cygwin.
33642         * doc/posix-functions/daylight.texi (daylight): Likewise.
33643         * doc/posix-functions/optarg.texi (optarg): Likewise.
33644         * doc/posix-functions/optarg.texi (opterr): Likewise.
33645         * doc/posix-functions/optarg.texi (optind): Likewise.
33646         * doc/posix-functions/optarg.texi (optopt): Likewise.
33647         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33648         worked in 1.5.x, and was withdrawn in 1.7.
33649         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33650         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33651         cygwin versions.
33652         * doc/posix-functions/perror.texi (perror): Likewise.
33653         * doc/posix-functions/printf.texi (printf): Likewise.
33654         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33655         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33656         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33657         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33658         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33659         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33660         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33661         Likewise.
33662         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33663         Likewise.
33664         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33665         this function.
33666         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33667         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33668         Likewise.
33669         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33670         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33671         * doc/posix-functions/confstr.texi (confstr): Likewise.
33672         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33673         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33674         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33675         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33676         * doc/posix-functions/fputws.texi (fputws): Likewise.
33677         * doc/posix-functions/fwide.texi (fwide): Likewise.
33678         * doc/posix-functions/getwc.texi (getwc): Likewise.
33679         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33680         * doc/posix-functions/putwc.texi (putwc): Likewise.
33681         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33682         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33683         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33684         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33685         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33686         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33687         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33688         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33689         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33690         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33691         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33692
33693 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33694
33695         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33696         * lib/ioctl.c: Include <sys/ioctl.h>.
33697
33698 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33699
33700         * modules/getdate-tests (Depends-on): Add progname.
33701         * tests/test-getdate.c: Use progname module, to avoid link errors
33702         on non-glibc systems.
33703
33704 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33705
33706         * modules/filenamecat-tests (Depends-on): Add progname.
33707         * modules/fstrcmp-tests (Depends-on): Likewise.
33708
33709         * tests/test-filenamecat.c: Use progname module, to avoid link
33710         errors on non-glibc systems.
33711         * tests/test-fstrcmp.c: Likewise.
33712
33713 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33714
33715         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33716         * lib/gettimeofday.c: Move extern declaration out of function.
33717
33718 2009-01-18  Bruno Haible  <bruno@clisp.org>
33719
33720         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33721         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33722         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33723
33724 2009-01-18  Bruno Haible  <bruno@clisp.org>
33725
33726         * lib/strftime.c (MEMPCPY): Remove unused macro.
33727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33728
33729 2009-01-18  Martin Lambers  <marlam@marlam.de>
33730
33731         New module 'link'.
33732         * lib/unistd.in.h (link): New declaration.
33733         * lib/link.c: New file.
33734         * m4/link.m4: New file.
33735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33736         HAVE_LINK.
33737         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33738         * modules/link: New file.
33739         * doc/posix-functions/link.texi: Mention the new module.
33740
33741 2009-01-18  Bruno Haible  <bruno@clisp.org>
33742
33743         * tests/test-avltree_list.c (main): Call set_program_name.
33744         * tests/test-avltree_oset.c (main): Likewise.
33745         * tests/test-obstack-printf.c: Include progname.h.
33746         (main): Call set_program_name.
33747         * tests/test-quotearg.c: Include progname.h.
33748         (main): Call set_program_name.
33749         * tests/test-xmemdup0.c: Include progname.h.
33750         (main): Call set_program_name.
33751
33752 2009-01-18  Bruno Haible  <bruno@clisp.org>
33753
33754         New module 'alphasort'.
33755         * lib/dirent.in.h (alphasort): New declaration.
33756         * lib/alphasort.c: New file, from glibc with modifications.
33757         * m4/alphasort.m4: New file.
33758         * modules/alphasort: New file.
33759         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33760         HAVE_ALPHASORT.
33761         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33762         HAVE_ALPHASORT.
33763         * doc/posix-functions/alphasort.texi: Mention the new module and the
33764         portability problems.
33765
33766 2009-01-18  Bruno Haible  <bruno@clisp.org>
33767
33768         New module 'scandir'.
33769         * lib/dirent.in.h (scandir): New declaration.
33770         * lib/scandir.c: New file, from glibc with modifications.
33771         * m4/scandir.m4: New file.
33772         * modules/scandir: New file.
33773         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33774         HAVE_SCANDIR.
33775         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33776         HAVE_SCANDIR.
33777         * doc/posix-functions/scandir.texi: Mention the new module and the
33778         portability problems.
33779
33780 2009-01-17  Bruno Haible  <bruno@clisp.org>
33781
33782         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33783         Update documentation.
33784         (func_remove_suffix): Escape all dots in the suffix. Update
33785         documentation.
33786         (func_filter_filelist): Update documentation.
33787         Reported by Ralf Wildenhues.
33788
33789 2009-01-17  Bruno Haible  <bruno@clisp.org>
33790
33791         * modules/dprintf-posix-tests: New file.
33792         * tests/test-dprintf-posix.sh: New file.
33793         * tests/test-dprintf-posix.c: New file.
33794
33795         New modules 'dprintf', 'dprintf-posix'.
33796         * lib/stdio.in.h (dprintf): New declaration.
33797         * lib/dprintf.c: New file.
33798         * m4/dprintf.m4: New file.
33799         * m4/dprintf-posix.m4: New file.
33800         * modules/dprintf: New file.
33801         * modules/dprintf-posix: New file.
33802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33803         HAVE_DPRINTF, REPLACE_DPRINTF.
33804         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33805         HAVE_DPRINTF, REPLACE_DPRINTF.
33806         * doc/posix-functions/dprintf.texi: Mention the new modules.
33807
33808 2009-01-17  Bruno Haible  <bruno@clisp.org>
33809
33810         * modules/vdprintf-posix-tests: New file.
33811         * tests/test-vdprintf-posix.sh: New file.
33812         * tests/test-vdprintf-posix.c: New file.
33813
33814         New modules 'vdprintf', 'vdprintf-posix'.
33815         * lib/stdio.in.h (vdprintf): New declaration.
33816         * lib/vdprintf.c: New file.
33817         * m4/vdprintf.m4: New file.
33818         * m4/vdprintf-posix.m4: New file.
33819         * modules/vdprintf: New file.
33820         * modules/vdprintf-posix: New file.
33821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33822         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33823         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33824         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33825         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33826
33827 2009-01-17  Bruno Haible  <bruno@clisp.org>
33828
33829         Fix replacement of fopen on mingw.
33830         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33831         mingw.
33832
33833 2009-01-17  Bruno Haible  <bruno@clisp.org>
33834
33835         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33836         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33837
33838 2009-01-17  Bruno Haible  <bruno@clisp.org>
33839
33840         Avoid test-fflush2.sh failure on mingw.
33841         * tests/test-fflush2.c: Include binary-io.h.
33842         (main): Put standard input into binary mode.
33843         * modules/fflush-tests (Depends-on): Add binary-io.
33844
33845 2009-01-17  Bruno Haible  <bruno@clisp.org>
33846
33847         * lib/wchar.in.h: In another particular situation, include only the
33848         system's <wchar.h> file.
33849         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33850         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33851         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33852
33853 2009-01-17  Bruno Haible  <bruno@clisp.org>
33854
33855         Support for stripping executables in --enable-relocatable.
33856         * build-aux/install-reloc: Expect one more argument, or an environment
33857         variable RELOC_STRIP_PROG. If set, strip the destination program and
33858         its wrapper.
33859         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33860         RELOC_STRIP_PROG.
33861         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33862         to set RELOCATABLE_STRIP.
33863         * NEWS: Mention the new Makefile requirement.
33864
33865 2009-01-17  Bruno Haible  <bruno@clisp.org>
33866
33867         * build-aux/install-reloc: Remove debugging information left over by
33868         C compiler on MacOS X.
33869
33870 2009-01-17  Bruno Haible  <bruno@clisp.org>
33871
33872         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33873         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33874         _NSGetExecutablePath.
33875
33876 2009-01-16  Jim Meyering  <meyering@redhat.com>
33877
33878         strerror: avoid warnings about discarding "const"
33879         * lib/strerror.c (rpl_strerror): Instead of returning a const
33880         string from each and every "case", use a variable, and add a single
33881         cast after the switch.
33882
33883 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33884
33885         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33886
33887 2009-01-16  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33890         array initializer syntax that also works in C++ mode.
33891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33892
33893 2009-01-16  Jim Meyering  <meyering@redhat.com>
33894
33895         poll: suppress a warning
33896         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33897         to ignore "...unsigned expression < 0 is always false" warnings.
33898
33899 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33900
33901         poll: remove declarations of unused variables
33902         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33903         sockbuf and optlen.
33904
33905 2009-01-15  Bruno Haible  <bruno@clisp.org>
33906
33907         Make fflush-after-ungetc POSIX compliant on BSD systems.
33908         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33909         (clear_ungetc_buffer): Implement also for other systems.
33910         (rpl_fflush): On glibc systems, invoke
33911         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33912         clear_ungetc_buffer after fetching the stream's position, not before.
33913
33914 2009-01-15  Bruno Haible  <bruno@clisp.org>
33915
33916         Make fflush-after-ungetc POSIX compliant on glibc systems.
33917         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33918         after ungetc.
33919         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33920         (rpl_fflush): On glibc systems, simply call the system's fflush
33921         function after clearing the ungetc buffer.
33922         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33923         Instead, lseek only to the end of file, then use the system's fseeko
33924         for the rest. On glibc systems, reset the EOF indicator bit.
33925
33926 2009-01-15  Jim Meyering  <meyering@redhat.com>
33927
33928         openmp.m4: revert quote-adding change, for portability to older autoconf
33929         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33930         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33931         Simon Josefsson noticed the problem when using autoconf-2.61.
33932
33933 2009-01-15  Bruno Haible  <bruno@clisp.org>
33934
33935         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33936         * tests/test-fflush2.c (ASSERT): Always fail.
33937         (main): Add two tests for fflush() after ungetc(), taking into account
33938         the Austin Group's clarification.
33939         Suggested by Eric Blake.
33940
33941 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33942
33943         mktime.m4: remove K&R-style function prototypes
33944         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33945         for the Sun C++ compiler.
33946
33947 2009-01-14  Bruno Haible  <bruno@clisp.org>
33948
33949         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33950         while including <wchar.h>.
33951         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33952         the system's <wchar.h> file.
33953         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33954
33955 2009-01-14  Bruno Haible  <bruno@clisp.org>
33956
33957         * m4/csharp.m4: Don't mention gettext on the serial number line.
33958         * m4/csharpexec.m4: Likewise.
33959         * m4/eaccess.m4: Likewise.
33960         * m4/javaexec.m4: Likewise.
33961         * m4/sig_atomic_t.m4: Likewise.
33962         * m4/tmpdir.m4: Likewise.
33963         * m4/intldir.m4: Bump gettext version.
33964         * m4/lib-ld.m4: Likewise.
33965
33966 2009-01-14  Bruno Haible  <bruno@clisp.org>
33967
33968         * lib/progname.c (set_program_name): Add more comments.
33969         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33970
33971 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33972
33973         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33974         were sys/stat.h does not define it.
33975
33976 2009-01-14  Jim Meyering  <meyering@redhat.com>
33977
33978         many *.m4 files: improve m4 quoting
33979         99% of this change was performed by running the following commands:
33980         git ls-files | grep '\.m4$' | xargs perl -pi \
33981           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33982           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33983           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33984           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33985         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33986         The remainder were to add Copyright dates, increment serial numbers,
33987         undo some changes in comments, exclude m4/intl.m4, and add quotes
33988         around the "1" in ",1" where the unusual spacing prohibited the
33989         above regexps from doing the job.  For more details, see
33990         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33991         * m4/acl.m4: Modified.
33992         * m4/afs.m4: Likewise.
33993         * m4/alloca.m4: Likewise.
33994         * m4/argp.m4: Likewise.
33995         * m4/argz.m4: Likewise.
33996         * m4/atexit.m4: Likewise.
33997         * m4/bison-i18n.m4: Likewise.
33998         * m4/bison.m4: Likewise.
33999         * m4/byteswap.m4: Likewise.
34000         * m4/c-stack.m4: Likewise.
34001         * m4/c-strtod.m4: Likewise.
34002         * m4/calloc.m4: Likewise.
34003         * m4/canonicalize-lgpl.m4: Likewise.
34004         * m4/chown.m4: Likewise.
34005         * m4/clock_time.m4: Likewise.
34006         * m4/codeset.m4: Likewise.
34007         * m4/copy-file.m4: Likewise.
34008         * m4/csharp.m4: Likewise.
34009         * m4/csharpcomp.m4: Likewise.
34010         * m4/csharpexec.m4: Likewise.
34011         * m4/d-ino.m4: Likewise.
34012         * m4/d-type.m4: Likewise.
34013         * m4/dirfd.m4: Likewise.
34014         * m4/double-slash-root.m4: Likewise.
34015         * m4/eaccess.m4: Likewise.
34016         * m4/eealloc.m4: Likewise.
34017         * m4/environ.m4: Likewise.
34018         * m4/errno_h.m4: Likewise.
34019         * m4/euidaccess.m4: Likewise.
34020         * m4/execute.m4: Likewise.
34021         * m4/fatal-signal.m4: Likewise.
34022         * m4/fchdir.m4: Likewise.
34023         * m4/fcntl_h.m4: Likewise.
34024         * m4/fileblocks.m4: Likewise.
34025         * m4/filenamecat.m4: Likewise.
34026         * m4/findprog.m4: Likewise.
34027         * m4/flexmember.m4: Likewise.
34028         * m4/fnmatch.m4: Likewise.
34029         * m4/fopen.m4: Likewise.
34030         * m4/fpending.m4: Likewise.
34031         * m4/fprintf-posix.m4: Likewise.
34032         * m4/free.m4: Likewise.
34033         * m4/frexp.m4: Likewise.
34034         * m4/frexpl.m4: Likewise.
34035         * m4/fsusage.m4: Likewise.
34036         * m4/ftruncate.m4: Likewise.
34037         * m4/gc-camellia.m4: Likewise.
34038         * m4/gc-random.m4: Likewise.
34039         * m4/gc.m4: Likewise.
34040         * m4/getaddrinfo.m4: Likewise.
34041         * m4/getcwd-abort-bug.m4: Likewise.
34042         * m4/getcwd-path-max.m4: Likewise.
34043         * m4/getdate.m4: Likewise.
34044         * m4/getdomainname.m4: Likewise.
34045         * m4/getgroups.m4: Likewise.
34046         * m4/gethostname.m4: Likewise.
34047         * m4/gethrxtime.m4: Likewise.
34048         * m4/getline.m4: Likewise.
34049         * m4/getloadavg.m4: Likewise.
34050         * m4/getndelim2.m4: Likewise.
34051         * m4/getpass.m4: Likewise.
34052         * m4/gettext.m4: Likewise.
34053         * m4/gettime.m4: Likewise.
34054         * m4/gettimeofday.m4: Likewise.
34055         * m4/gnulib-common.m4: Likewise.
34056         * m4/group-member.m4: Likewise.
34057         * m4/host-os.m4: Likewise.
34058         * m4/iconv.m4: Likewise.
34059         * m4/iconv_open.m4: Likewise.
34060         * m4/inet_ntop.m4: Likewise.
34061         * m4/inet_pton.m4: Likewise.
34062         * m4/inline.m4: Likewise.
34063         * m4/intldir.m4: Likewise.
34064         * m4/intlmacosx.m4: Likewise.
34065         * m4/intmax.m4: Likewise.
34066         * m4/intmax_t.m4: Likewise.
34067         * m4/inttypes.m4: Likewise.
34068         * m4/inttypes_h.m4: Likewise.
34069         * m4/inttypes-pri.m4: Likewise.
34070         * m4/isapipe.m4: Likewise.
34071         * m4/isnand.m4: Likewise.
34072         * m4/isnanf.m4: Likewise.
34073         * m4/isnanl.m4: Likewise.
34074         * m4/javacomp.m4: Likewise.
34075         * m4/javaexec.m4: Likewise.
34076         * m4/jm-winsz1.m4: Likewise.
34077         * m4/jm-winsz2.m4: Likewise.
34078         * m4/lchown.m4: Likewise.
34079         * m4/lcmessage.m4: Likewise.
34080         * m4/ldexpl.m4: Likewise.
34081         * m4/lib-ld.m4: Likewise.
34082         * m4/lib-link.m4: Likewise.
34083         * m4/libsigsegv.m4: Likewise.
34084         * m4/link-follow.m4: Likewise.
34085         * m4/localcharset.m4: Likewise.
34086         * m4/locale-fr.m4: Likewise.
34087         * m4/locale-ja.m4: Likewise.
34088         * m4/locale-tr.m4: Likewise.
34089         * m4/locale-zh.m4: Likewise.
34090         * m4/lock.m4: Likewise.
34091         * m4/longlong.m4: Likewise.
34092         * m4/ls-mntd-fs.m4: Likewise.
34093         * m4/lstat.m4: Likewise.
34094         * m4/malloc.m4: Likewise.
34095         * m4/mathl.m4: Likewise.
34096         * m4/mbrtowc.m4: Likewise.
34097         * m4/mbstate_t.m4: Likewise.
34098         * m4/mbswidth.m4: Likewise.
34099         * m4/memchr.m4: Likewise.
34100         * m4/memcmp.m4: Likewise.
34101         * m4/memcpy.m4: Likewise.
34102         * m4/memmem.m4: Likewise.
34103         * m4/memmove.m4: Likewise.
34104         * m4/mempcpy.m4: Likewise.
34105         * m4/memrchr.m4: Likewise.
34106         * m4/memset.m4: Likewise.
34107         * m4/minmax.m4: Likewise.
34108         * m4/mkdir-slash.m4: Likewise.
34109         * m4/mkdtemp.m4: Likewise.
34110         * m4/mktime.m4: Likewise.
34111         * m4/mmap-anon.m4: Likewise.
34112         * m4/mountlist.m4: Likewise.
34113         * m4/nanosleep.m4: Likewise.
34114         * m4/nls.m4: Likewise.
34115         * m4/nocrash.m4: Likewise.
34116         * m4/open.m4: Likewise.
34117         * m4/openat.m4: Likewise.
34118         * m4/openmp.m4: Likewise.
34119         * m4/pathmax.m4: Likewise.
34120         * m4/perl.m4: Likewise.
34121         * m4/physmem.m4: Likewise.
34122         * m4/pipe.m4: Likewise.
34123         * m4/po.m4: Likewise.
34124         * m4/poll.m4: Likewise.
34125         * m4/posixtm.m4: Likewise.
34126         * m4/posixver.m4: Likewise.
34127         * m4/printf-frexp.m4: Likewise.
34128         * m4/printf-frexpl.m4: Likewise.
34129         * m4/printf-posix.m4: Likewise.
34130         * m4/printf-posix-rpl.m4: Likewise.
34131         * m4/printf.m4: Likewise.
34132         * m4/progtest.m4: Likewise.
34133         * m4/putenv.m4: Likewise.
34134         * m4/readline.m4: Likewise.
34135         * m4/readlink.m4: Likewise.
34136         * m4/readutmp.m4: Likewise.
34137         * m4/realloc.m4: Likewise.
34138         * m4/regex.m4: Likewise.
34139         * m4/relocatable.m4: Likewise.
34140         * m4/relocatable-lib.m4: Likewise.
34141         * m4/rename-dest-slash.m4: Likewise.
34142         * m4/rename.m4: Likewise.
34143         * m4/rmdir-errno.m4: Likewise.
34144         * m4/rmdir.m4: Likewise.
34145         * m4/roundf.m4: Likewise.
34146         * m4/roundl.m4: Likewise.
34147         * m4/rpmatch.m4: Likewise.
34148         * m4/save-cwd.m4: Likewise.
34149         * m4/selinux-selinux-h.m4: Likewise.
34150         * m4/setenv.m4: Likewise.
34151         * m4/settime.m4: Likewise.
34152         * m4/sig2str.m4: Likewise.
34153         * m4/sig_atomic_t.m4: Likewise.
34154         * m4/signalblocking.m4: Likewise.
34155         * m4/signbit.m4: Likewise.
34156         * m4/sigpipe.m4: Likewise.
34157         * m4/sockets.m4: Likewise.
34158         * m4/sockpfaf.m4: Likewise.
34159         * m4/st_dm_mode.m4: Likewise.
34160         * m4/stat-time.m4: Likewise.
34161         * m4/stdbool.m4: Likewise.
34162         * m4/stdint.m4: Likewise.
34163         * m4/stdint_h.m4: Likewise.
34164         * m4/stpcpy.m4: Likewise.
34165         * m4/stpncpy.m4: Likewise.
34166         * m4/strcase.m4: Likewise.
34167         * m4/strchrnul.m4: Likewise.
34168         * m4/strcspn.m4: Likewise.
34169         * m4/strdup.m4: Likewise.
34170         * m4/strftime.m4: Likewise.
34171         * m4/strndup.m4: Likewise.
34172         * m4/strnlen.m4: Likewise.
34173         * m4/strpbrk.m4: Likewise.
34174         * m4/strptime.m4: Likewise.
34175         * m4/strsep.m4: Likewise.
34176         * m4/strtod.m4: Likewise.
34177         * m4/strtoimax.m4: Likewise.
34178         * m4/strtok_r.m4: Likewise.
34179         * m4/strtol.m4: Likewise.
34180         * m4/strtoll.m4: Likewise.
34181         * m4/strtoul.m4: Likewise.
34182         * m4/strtoull.m4: Likewise.
34183         * m4/strtoumax.m4: Likewise.
34184         * m4/strverscmp.m4: Likewise.
34185         * m4/threadlib.m4: Likewise.
34186         * m4/timegm.m4: Likewise.
34187         * m4/tm_gmtoff.m4: Likewise.
34188         * m4/tmpdir.m4: Likewise.
34189         * m4/tmpfile.m4: Likewise.
34190         * m4/tzset.m4: Likewise.
34191         * m4/uintmax_t.m4: Likewise.
34192         * m4/unlinkdir.m4: Likewise.
34193         * m4/unlocked-io.m4: Likewise.
34194         * m4/uptime.m4: Likewise.
34195         * m4/userspec.m4: Likewise.
34196         * m4/utimbuf.m4: Likewise.
34197         * m4/utime.m4: Likewise.
34198         * m4/utimes-null.m4: Likewise.
34199         * m4/utimes.m4: Likewise.
34200         * m4/vararrays.m4: Likewise.
34201         * m4/vasnprintf.m4: Likewise.
34202         * m4/vfprintf-posix.m4: Likewise.
34203         * m4/vprintf-posix.m4: Likewise.
34204         * m4/wait-process.m4: Likewise.
34205         * m4/wchar_t.m4: Likewise.
34206         * m4/wint_t.m4: Likewise.
34207         * m4/write-any-file.m4: Likewise.
34208         * m4/yield.m4: Likewise.
34209
34210 2009-01-13  Bruno Haible  <bruno@clisp.org>
34211
34212         Avoid test-copy-file.sh failures when ACL support insufficient.
34213         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34214         TESTS_ENVIRONMENT.
34215         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34216         Reported by Jim Meyering.
34217
34218 2009-01-13  Bruno Haible  <bruno@clisp.org>
34219
34220         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34221         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34222         * modules/unistdio/u8-printf-parse (Files): Likewise.
34223         * modules/unistdio/u32-printf-parse (Files): Likewise.
34224         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34225
34226 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34227
34228         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34229         and m4/inttypes_h.m4 too.
34230
34231 2009-01-12  Eric Blake  <ebb9@byu.net>
34232
34233         tests: IRIX 6.2 cc can't compile -0.0 into .data
34234         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34235         rather than at compile-time.
34236         * tests/test-floorl.c (minus_zero): Likewise.
34237         * tests/test-frexpl.c (minus_zero): Likewise.
34238         * tests/test-isnan.c (minus_zerol): Likewise.
34239         * tests/test-isnanl.h (minus_zero): Likewise.
34240         * tests/test-ldexpl.c (minus_zero): Likewise.
34241         * tests/test-roundl.c (minus_zero): Likewise.
34242         * tests/test-signbit.c (minus_zerol): Likewise.
34243         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34244         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34245         * tests/test-truncl.c (minus_zero): Likewise.
34246         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34247         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34248         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34249
34250 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34251
34252         regex: fix glibc bug 9697
34253         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34254         handling.
34255
34256 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34257
34258         regex: fix glibc bug 697
34259         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34260         being NULL also if there are no backreferences.
34261
34262 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34263
34264         regex: merge glibc changes
34265         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34266         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34267         re_string_skip_chars, re_string_reconstruct): Likewise.
34268         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34269
34270 2009-01-07  Jim Meyering  <meyering@redhat.com>
34271
34272         poll: filter through cppi
34273         * lib/poll.c: Indent cpp directives to reflect nesting.
34274
34275 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34276
34277         poll: don't return uninitialized
34278         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34279
34280 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34281
34282         avoid compile failure on AIX 6.1
34283         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34284         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34285
34286 2009-01-04  Jim Meyering  <meyering@redhat.com>
34287
34288         remove duplicate inclusion of <stdio.h>
34289         * tests/test-fprintf-posix.c: Likewise.
34290         * tests/test-printf-posix.c: Likewise.
34291         * tests/test-snprintf-posix.c: Likewise.
34292         * tests/test-sprintf-posix.c: Likewise.
34293         * tests/test-vasprintf-posix.c: Likewise.
34294         * tests/test-vfprintf-posix.c: Likewise.
34295         * tests/test-vprintf-posix.c: Likewise.
34296         * tests/test-vsnprintf-posix.c: Likewise.
34297         * tests/test-vsprintf-posix.c: Likewise.
34298
34299 2009-01-03  Jim Meyering  <meyering@redhat.com>
34300
34301         gnulib-tool: fix sed-based filtering
34302         * gnulib-tool (func_filter_filelist): Remove extra backslash
34303         in sed_fff_filter definition.
34304
34305 2009-01-02  Jim Meyering  <meyering@redhat.com>
34306
34307         strftime: avoid compilation failure on Solaris 2.6
34308         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34309         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34310         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34311         be available.  Reported by Tom G. Christensen.  Details in
34312         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34313
34314 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34315             Bruno Haible  <bruno@clisp.org>
34316
34317         Speed up gnulib-tool by doing more string processing through shell
34318         built-ins.
34319         * gnulib-tool (fast_func_append): New variable.
34320         (func_remove_prefix, func_remove_suffix): New functions.
34321         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34322         (func_filter_filelist): New function.
34323         (func_get_dependencies): Use func_remove_suffix instead of sed.
34324         (func_get_automake_snippet): Use func_filter_filelist instead of a
34325         subshell and sed invocation.
34326
34327 2009-01-01  Bruno Haible  <bruno@clisp.org>
34328
34329         Fix a security bug.
34330         * gnulib-tool (func_import, import, update): Don't allow the characters
34331         '"', '$', '`', '\' in macro arguments that become part of commands that
34332         are evaluated.
34333
34334 2009-01-01  Bruno Haible  <bruno@clisp.org>
34335
34336         * gnulib-tool (func_reset_sigpipe): Add more comments.
34337
34338 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34339
34340         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34341         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34342         already know the answer.
34343
34344 2009-01-01  Jim Meyering  <meyering@redhat.com>
34345
34346         * lib/version-etc.c (version_etc_va): Update copyright year.
34347
34348 2008-12-30  Bruno Haible  <bruno@clisp.org>
34349
34350         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34351         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34352         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34353
34354 2008-12-29  Eric Blake  <ebb9@byu.net>
34355
34356         multiarch: avoid autoconf AC_REQUIRE bug
34357         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34358         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34359         2.63 and older.
34360         Reported by Bruno Haible, and analyzed in
34361         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34362
34363 2008-12-29  Bruno Haible  <bruno@clisp.org>
34364
34365         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34366         files in subdirectories correctly.
34367         Reported by Ralf Wildenhues.
34368
34369 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34370
34371         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34372         rather than 'join FILE -', for Solaris join.
34373
34374 2008-12-29  Bruno Haible  <bruno@clisp.org>
34375
34376         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34377         quoting.
34378         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34379         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34380         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34381         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34382         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34383         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34384         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34385         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34386         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34387         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34388         * m4/nls.m4 (AM_NLS): Likewise.
34389         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34390         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34391         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34392         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34393         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34394         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34395         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34396         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34397         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34398         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34399         * m4/xsize.m4 (gl_XSIZE): Likewise.
34400         Suggested by Jim Meyering.
34401
34402 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34403
34404         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34405         * lib/parse-duration.c: use a switch instead of cascading if's.
34406
34407 2008-12-29  Eric Blake  <ebb9@byu.net>
34408
34409         wchar.h: supply WEOF on Irix 5.3
34410         * lib/wchar.in.h (wint_t): Also supply WEOF.
34411         * lib/wctype.in.h (wint_t): Likewise.
34412         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34413         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34414         Reported by Tom G. Christensen.
34415
34416 2008-12-26  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34419         i486, i586, i686.
34420
34421 2008-12-26  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34424
34425 2008-12-26  Bruno Haible  <bruno@clisp.org>
34426
34427         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34428         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34429         not __STDC_CONSTANT_MACROS.
34430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34431
34432 2008-12-25  Bruno Haible  <bruno@clisp.org>
34433
34434         Add support for universal builds to vasnprintf.
34435         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34436         universal builds, guess no.
34437         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34438         * modules/vasprintf-posix (Depends-on): Likewise.
34439         * modules/fprintf-posix (Depends-on): Likewise.
34440         * modules/vfprintf-posix (Depends-on): Likewise.
34441         * modules/snprintf-posix (Depends-on): Likewise.
34442         * modules/vsnprintf-posix (Depends-on): Likewise.
34443         * modules/sprintf-posix (Depends-on): Likewise.
34444         * modules/vsprintf-posix (Depends-on): Likewise.
34445         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34446         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34447         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34448         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34449         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34450         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34451         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34452
34453         Add support for universal builds to <inttypes.h>.
34454         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34455         _SCNu64_PREFIX): In Apple
34456         universal builds, define directly, using _LP64.
34457         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34458         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34459         * modules/inttypes (Depends-on): Add multiarch.
34460         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34461
34462         Add support for universal builds to <stdint.h>.
34463         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34464         universal builds, define directly, using _LP64.
34465         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34466         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34467         and size_t.
34468         * modules/stdint (Depends-on): Add multiarch.
34469         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34470
34471         New module 'multiarch'.
34472         * modules/multiarch: New file.
34473         * m4/multiarch.m4: New file.
34474
34475 2008-12-25  Bruno Haible  <bruno@clisp.org>
34476
34477         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34478
34479 2008-12-25  Bruno Haible  <bruno@clisp.org>
34480
34481         * modules/btowc (License): Relicense under LGPLv2+.
34482         * modules/mbsinit (License): Likewise.
34483         * modules/mbrtowc (License): Likewise.
34484         * modules/wcrtomb (License): Likewise.
34485         * modules/streq (License): Likewise.
34486         Reported by David Lutterkort <lutter@redhat.com>.
34487
34488 2008-12-23  Bruno Haible  <bruno@clisp.org>
34489
34490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34491
34492 2008-12-23  Bruno Haible  <bruno@clisp.org>
34493
34494         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34496         GETADDRINFO_LIB, not in LIBS.
34497         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34498         * modules/canon-host (Link): Likewise.
34499         * NEWS: Mention the change.
34500         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34501         GETADDRINFO_LIB.
34502
34503 2008-12-22  Bruno Haible  <bruno@clisp.org>
34504
34505         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34506         * doc/posix-functions/iswalpha_l.texi: Likewise.
34507         * doc/posix-functions/iswblank_l.texi: Likewise.
34508         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34509         * doc/posix-functions/iswctype_l.texi: Likewise.
34510         * doc/posix-functions/iswdigit_l.texi: Likewise.
34511         * doc/posix-functions/iswgraph_l.texi: Likewise.
34512         * doc/posix-functions/iswlower_l.texi: Likewise.
34513         * doc/posix-functions/iswprint_l.texi: Likewise.
34514         * doc/posix-functions/iswpunct_l.texi: Likewise.
34515         * doc/posix-functions/iswspace_l.texi: Likewise.
34516         * doc/posix-functions/iswupper_l.texi: Likewise.
34517         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34518         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34519         * doc/posix-functions/open_wmemstream.texi: Likewise.
34520         * doc/posix-functions/swscanf.texi: Likewise.
34521         * doc/posix-functions/towctrans_l.texi: Likewise.
34522         * doc/posix-functions/towlower.texi: Likewise.
34523         * doc/posix-functions/towlower_l.texi: Likewise.
34524         * doc/posix-functions/towupper.texi: Likewise.
34525         * doc/posix-functions/towupper_l.texi: Likewise.
34526         * doc/posix-functions/vfwprintf.texi: Likewise.
34527         * doc/posix-functions/vfwscanf.texi: Likewise.
34528         * doc/posix-functions/vswscanf.texi: Likewise.
34529         * doc/posix-functions/vwprintf.texi: Likewise.
34530         * doc/posix-functions/vwscanf.texi: Likewise.
34531         * doc/posix-functions/wcpcpy.texi: Likewise.
34532         * doc/posix-functions/wcpncpy.texi: Likewise.
34533         * doc/posix-functions/wcscasecmp.texi: Likewise.
34534         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34535         * doc/posix-functions/wcscoll_l.texi: Likewise.
34536         * doc/posix-functions/wcsdup.texi: Likewise.
34537         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34538         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34539         * doc/posix-functions/wcsnlen.texi: Likewise.
34540         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34541         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34542         * doc/posix-functions/wctrans_l.texi: Likewise.
34543         * doc/posix-functions/wctype_l.texi: Likewise.
34544         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34545         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34546         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34547         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34548         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34549         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34550         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34551         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34552         * doc/glibc-functions/wcschrnul.texi: Likewise.
34553         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34554         * doc/glibc-functions/wcstod_l.texi: Likewise.
34555         * doc/glibc-functions/wcstof_l.texi: Likewise.
34556         * doc/glibc-functions/wcstol_l.texi: Likewise.
34557         * doc/glibc-functions/wcstold_l.texi: Likewise.
34558         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34559         * doc/glibc-functions/wcstoq.texi: Likewise.
34560         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34561         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34562         * doc/glibc-functions/wcstouq.texi: Likewise.
34563         * doc/glibc-functions/wmempcpy.texi: Likewise.
34564
34565 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34566             Eric Blake  <ebb9@byu.net>
34567             Paolo Bonzini  <bonzini@gnu.org>
34568             Bruno Haible  <bruno@clisp.org>
34569
34570         Make c-stack work on Haiku.
34571         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34572         (c_stack_action): Use SA_ONSTACK flag.
34573
34574 2008-12-22  Bruno Haible  <bruno@clisp.org>
34575
34576         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34577
34578 2008-12-22  Bruno Haible  <bruno@clisp.org>
34579
34580         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34581         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34582         being overridden.
34583         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34584         New macros.
34585         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34586         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34587         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34588         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34589
34590 2008-12-22  Bruno Haible  <bruno@clisp.org>
34591
34592         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34593         from test code.
34594
34595 2008-12-22  Eric Blake  <ebb9@byu.net>
34596
34597         Avoid gcc warnings on cygwin.
34598         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34599         Avoid unused variable.
34600         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34601         Likewise.
34602
34603 2008-12-22  Bruno Haible  <bruno@clisp.org>
34604
34605         Remove HAVE_MBRTOWC conditionals.
34606         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34607         (mbscasecmp): Assume mbrtowc function.
34608         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34609         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34610         * lib/mbschr.c: Include mbuiter.h unconditionally.
34611         (mbschr): Assume mbrtowc function.
34612         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34613         (mbscspn): Assume mbrtowc function.
34614         * lib/mbslen.c: Include mbuiter.h unconditionally.
34615         (mbslen): Assume mbrtowc function.
34616         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34617         (mbsncasecmp): Assume mbrtowc function.
34618         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34619         (mbsnlen): Assume mbrtowc function.
34620         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34621         (mbspbrk): Assume mbrtowc function.
34622         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34623         (mbspcasecmp): Assume mbrtowc function.
34624         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34625         (mbsrchr): Assume mbrtowc function.
34626         * lib/mbssep.c: Include mbuiter.h unconditionally.
34627         (mbssep): Assume mbrtowc function.
34628         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34629         (mbsspn): Assume mbrtowc function.
34630         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34631         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34632         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34633         (mbstok_r): Assume mbrtowc function.
34634         * lib/propername.c: Include mbuiter.h unconditionally.
34635         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34636         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34637         (trim2): Assume mbrtowc function.
34638         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34639         (mbsnwidth): Assume mbrtowc function.
34640         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34641         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34642         fallback definitions.
34643         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34644
34645 2008-12-22  Bruno Haible  <bruno@clisp.org>
34646
34647         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34648
34649 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34650
34651         * modules/regex: Request emulations for the mb*/wc* functions we need.
34652         * m4/regex.m4: Don't look for those functions here.
34653         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34654
34655 2008-12-22  Bruno Haible  <bruno@clisp.org>
34656
34657         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34658
34659 2008-12-21  Bruno Haible  <bruno@clisp.org>
34660
34661         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34662         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34663         (Include): Remove conditionalization.
34664         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34665         (Include): Remove conditionalization.
34666         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34667         (Include): Remove conditionalization.
34668         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34669         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34670         * NEWS: Mention the change.
34671         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34672         via Sergey Poznyakoff <gray@gnu.org.ua>.
34673
34674 2008-12-21  Bruno Haible  <bruno@clisp.org>
34675
34676         * MODULES.html.sh (Extended multibyte and wide character utilities
34677         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34678         wcrtomb, wcsrtombs.
34679         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34680         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34681         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34682         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34683
34684 2008-12-21  Bruno Haible  <bruno@clisp.org>
34685
34686         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34687
34688 2008-12-21  Bruno Haible  <bruno@clisp.org>
34689
34690         * modules/wcsnrtombs-tests: New file.
34691         * tests/test-wcsnrtombs1.sh: New file.
34692         * tests/test-wcsnrtombs2.sh: New file.
34693         * tests/test-wcsnrtombs3.sh: New file.
34694         * tests/test-wcsnrtombs4.sh: New file.
34695         * tests/test-wcsnrtombs.c: New file.
34696
34697         New module 'wcsnrtombs'.
34698         * lib/wchar.in.h (wcsnrtombs): New declaration.
34699         * lib/wcsnrtombs.c: New file.
34700         * lib/wcsrtombs-state.c: New file.
34701         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34702         (internal_state): Remove variable.
34703         * m4/wcsnrtombs.m4: New file.
34704         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34705         compilation units.
34706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34707         HAVE_WCSNRTOMBS.
34708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34709         HAVE_WCSNRTOMBS.
34710         * modules/wcsnrtombs: New file.
34711         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34712         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34713
34714 2008-12-21  Bruno Haible  <bruno@clisp.org>
34715
34716         * modules/wcsrtombs-tests: New file.
34717         * tests/test-wcsrtombs1.sh: New file.
34718         * tests/test-wcsrtombs2.sh: New file.
34719         * tests/test-wcsrtombs3.sh: New file.
34720         * tests/test-wcsrtombs4.sh: New file.
34721         * tests/test-wcsrtombs.c: New file.
34722
34723         New module 'wcsrtombs'.
34724         * lib/wchar.in.h (wcsrtombs): New declaration.
34725         * lib/wcsrtombs.c: New file.
34726         * m4/wcsrtombs.m4: New file.
34727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34728         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34730         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34731         * modules/wcsrtombs: New file.
34732         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34733         bugs.
34734
34735 2008-12-21  Bruno Haible  <bruno@clisp.org>
34736
34737         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34738         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34740         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34741         if not correct.
34742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34743         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34744         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34745         m4/locale-zh.m4, m4/codeset.m4.
34746         * doc/posix-functions/wcrtomb.texi: Document the bug.
34747
34748 2008-12-21  Bruno Haible  <bruno@clisp.org>
34749
34750         Work around a btowc() bug on IRIX 6.5.
34751         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34752         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34753         REPLACE_WTOBC if not.
34754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34755         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34756         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34757
34758 2008-12-21  Bruno Haible  <bruno@clisp.org>
34759
34760         * modules/wcrtomb-tests: New file.
34761         * tests/test-wcrtomb.sh: New file.
34762         * tests/test-wcrtomb.c: New file.
34763
34764         New module 'wcrtomb'.
34765         * lib/wchar.in.h (wcrtomb): New declaration.
34766         * lib/wcrtomb.c: New file.
34767         * m4/wcrtomb.m4: New file.
34768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34769         HAVE_WCRTOMB.
34770         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34771         HAVE_WCRTOMB.
34772         * modules/wcrtomb: New file.
34773         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34774
34775 2008-12-21  Bruno Haible  <bruno@clisp.org>
34776
34777         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34778         * modules/mbsrtowcs (Files): Likewise.
34779         * modules/wctob (Files): Likewise.
34780         * modules/c-strcase-tests (Files): Likewise.
34781         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34782         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34783         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34784         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34785         * modules/vasnprintf-posix-tests (Files): Likewise.
34786
34787 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34788
34789         gitlog-to-changelog: pass all command-line arguments to git-log
34790         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34791         it is sometimes convenient to filter the commits in various ways.
34792         gitlog-to-changelog only allows --since to specify a start date,
34793         but git-log itself supports many other filtering mechanisms.
34794         At the moment, I want to filter by branch name.  Rather than
34795         adding a --branch option to gitlog-to-changelog, it seems more
34796         flexible to simply pass all options directly to git-log and let
34797         git do the work.  Notice that this effectively makes --since a
34798         redundant option for gitlog-to-changelog, but removing it would
34799         require current usage to change since calls would then require
34800         an additional '--'.
34801
34802 2008-12-21  Bruno Haible  <bruno@clisp.org>
34803
34804         * modules/mbsnrtowcs-tests: New file.
34805         * tests/test-mbsnrtowcs1.sh: New file.
34806         * tests/test-mbsnrtowcs2.sh: New file.
34807         * tests/test-mbsnrtowcs3.sh: New file.
34808         * tests/test-mbsnrtowcs4.sh: New file.
34809         * tests/test-mbsnrtowcs.c: New file.
34810
34811         New module 'mbsnrtowcs'.
34812         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34813         * lib/mbsnrtowcs.c: New file.
34814         * lib/mbsrtowcs-state.c: New file.
34815         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34816         (internal_state): Remove variable.
34817         * m4/mbsnrtowcs.m4: New file.
34818         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34819         compilation units.
34820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34821         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34822         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34823         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34824         * modules/mbsnrtowcs: New file.
34825         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34826         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34827         portability problem.
34828
34829 2008-12-21  Bruno Haible  <bruno@clisp.org>
34830
34831         Work around mbsrtowcs bug.
34832         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34833         (gl_FUNC_MBSRTOWCS): Invoke it.
34834         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34835         m4/locale-zh.m4.
34836         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34837
34838 2008-12-21  Bruno Haible  <bruno@clisp.org>
34839
34840         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34841
34842 2008-12-21  Bruno Haible  <bruno@clisp.org>
34843
34844         Update doc for AIX.
34845         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34846         16-bit wchar_t type.
34847         * doc/posix-functions/btowc.texi: Likewise.
34848         * doc/posix-functions/fgetwc.texi: Likewise.
34849         * doc/posix-functions/fgetws.texi: Likewise.
34850         * doc/posix-functions/fputwc.texi: Likewise.
34851         * doc/posix-functions/fputws.texi: Likewise.
34852         * doc/posix-functions/fwide.texi: Likewise.
34853         * doc/posix-functions/fwprintf.texi: Likewise.
34854         * doc/posix-functions/fwscanf.texi: Likewise.
34855         * doc/posix-functions/getwchar.texi: Likewise.
34856         * doc/posix-functions/getwc.texi: Likewise.
34857         * doc/posix-functions/iswalnum.texi: Likewise.
34858         * doc/posix-functions/iswalpha.texi: Likewise.
34859         * doc/posix-functions/iswblank.texi: Likewise.
34860         * doc/posix-functions/iswcntrl.texi: Likewise.
34861         * doc/posix-functions/iswctype.texi: Likewise.
34862         * doc/posix-functions/iswdigit.texi: Likewise.
34863         * doc/posix-functions/iswgraph.texi: Likewise.
34864         * doc/posix-functions/iswlower.texi: Likewise.
34865         * doc/posix-functions/iswprint.texi: Likewise.
34866         * doc/posix-functions/iswpunct.texi: Likewise.
34867         * doc/posix-functions/iswspace.texi: Likewise.
34868         * doc/posix-functions/iswupper.texi: Likewise.
34869         * doc/posix-functions/iswxdigit.texi: Likewise.
34870         * doc/posix-functions/mbrtowc.texi: Likewise.
34871         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34872         * doc/posix-functions/mbstowcs.texi: Likewise.
34873         * doc/posix-functions/mbtowc.texi: Likewise.
34874         * doc/posix-functions/putwchar.texi: Likewise.
34875         * doc/posix-functions/putwc.texi: Likewise.
34876         * doc/posix-functions/swprintf.texi: Likewise.
34877         * doc/posix-functions/tolower.texi: Likewise.
34878         * doc/posix-functions/toupper.texi: Likewise.
34879         * doc/posix-functions/towctrans.texi: Likewise.
34880         * doc/posix-functions/ungetwc.texi: Likewise.
34881         * doc/posix-functions/vswprintf.texi: Likewise.
34882         * doc/posix-functions/wcrtomb.texi: Likewise.
34883         * doc/posix-functions/wcscat.texi: Likewise.
34884         * doc/posix-functions/wcschr.texi: Likewise.
34885         * doc/posix-functions/wcscmp.texi: Likewise.
34886         * doc/posix-functions/wcscoll.texi: Likewise.
34887         * doc/posix-functions/wcscpy.texi: Likewise.
34888         * doc/posix-functions/wcscspn.texi: Likewise.
34889         * doc/posix-functions/wcsftime.texi: Likewise.
34890         * doc/posix-functions/wcslen.texi: Likewise.
34891         * doc/posix-functions/wcsncat.texi: Likewise.
34892         * doc/posix-functions/wcsncmp.texi: Likewise.
34893         * doc/posix-functions/wcsncpy.texi: Likewise.
34894         * doc/posix-functions/wcspbrk.texi: Likewise.
34895         * doc/posix-functions/wcsrchr.texi: Likewise.
34896         * doc/posix-functions/wcsrtombs.texi: Likewise.
34897         * doc/posix-functions/wcsspn.texi: Likewise.
34898         * doc/posix-functions/wcsstr.texi: Likewise.
34899         * doc/posix-functions/wcstod.texi: Likewise.
34900         * doc/posix-functions/wcstof.texi: Likewise.
34901         * doc/posix-functions/wcstoimax.texi: Likewise.
34902         * doc/posix-functions/wcstok.texi: Likewise.
34903         * doc/posix-functions/wcstold.texi: Likewise.
34904         * doc/posix-functions/wcstoll.texi: Likewise.
34905         * doc/posix-functions/wcstol.texi: Likewise.
34906         * doc/posix-functions/wcstombs.texi: Likewise.
34907         * doc/posix-functions/wcstoull.texi: Likewise.
34908         * doc/posix-functions/wcstoul.texi: Likewise.
34909         * doc/posix-functions/wcstoumax.texi: Likewise.
34910         * doc/posix-functions/wcswidth.texi: Likewise.
34911         * doc/posix-functions/wcsxfrm.texi: Likewise.
34912         * doc/posix-functions/wctob.texi: Likewise.
34913         * doc/posix-functions/wctomb.texi: Likewise.
34914         * doc/posix-functions/wctrans.texi: Likewise.
34915         * doc/posix-functions/wctype.texi: Likewise.
34916         * doc/posix-functions/wcwidth.texi: Likewise.
34917         * doc/posix-functions/wmemchr.texi: Likewise.
34918         * doc/posix-functions/wmemcmp.texi: Likewise.
34919         * doc/posix-functions/wmemcpy.texi: Likewise.
34920         * doc/posix-functions/wmemmove.texi: Likewise.
34921         * doc/posix-functions/wmemset.texi: Likewise.
34922         * doc/posix-functions/wprintf.texi: Likewise.
34923         * doc/posix-functions/wscanf.texi: Likewise.
34924
34925 2008-12-21  Bruno Haible  <bruno@clisp.org>
34926
34927         Update doc for HP-UX 11.11.
34928         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34929         in HP-UX version 11.00, not in all versions of HP-UX 11.
34930         * doc/posix-functions/fwide.texi: Likewise.
34931         * doc/posix-functions/fwprintf.texi: Likewise.
34932         * doc/posix-functions/fwscanf.texi: Likewise.
34933         * doc/posix-functions/inet_ntop.texi: Likewise.
34934         * doc/posix-functions/inet_pton.texi: Likewise.
34935         * doc/posix-functions/mbrlen.texi: Likewise.
34936         * doc/posix-functions/mbrtowc.texi: Likewise.
34937         * doc/posix-functions/mbsinit.texi: Likewise.
34938         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34939         * doc/posix-functions/swprintf.texi: Likewise.
34940         * doc/posix-functions/swscanf.texi: Likewise.
34941         * doc/posix-functions/towctrans.texi: Likewise.
34942         * doc/posix-functions/vfwprintf.texi: Likewise.
34943         * doc/posix-functions/vswprintf.texi: Likewise.
34944         * doc/posix-functions/vwprintf.texi: Likewise.
34945         * doc/posix-functions/wcrtomb.texi: Likewise.
34946         * doc/posix-functions/wcsrtombs.texi: Likewise.
34947         * doc/posix-functions/wcsstr.texi: Likewise.
34948         * doc/posix-functions/wctob.texi: Likewise.
34949         * doc/posix-functions/wctrans.texi: Likewise.
34950         * doc/posix-functions/wmemchr.texi: Likewise.
34951         * doc/posix-functions/wmemcmp.texi: Likewise.
34952         * doc/posix-functions/wmemcpy.texi: Likewise.
34953         * doc/posix-functions/wmemmove.texi: Likewise.
34954         * doc/posix-functions/wmemset.texi: Likewise.
34955         * doc/posix-functions/wprintf.texi: Likewise.
34956         * doc/posix-functions/wscanf.texi: Likewise.
34957
34958 2008-12-21  Bruno Haible  <bruno@clisp.org>
34959
34960         Work around a portability problem.
34961         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34962         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34963
34964 2008-12-20  Bruno Haible  <bruno@clisp.org>
34965
34966         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34967         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34968         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34970         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34971
34972         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34973         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34974         set.
34975         (GNULIB_defined_mbstate_t): New macro.
34976         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34977         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34978         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34979         reuses the system's mbrtowc function but works around the bugs.
34980         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34981         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34982         macros.
34983         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34984         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34985         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34987         REPLACE_MBSINIT if mbsinit needs to be overridden.
34988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34989         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34990         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34991         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34992         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34993         m4/locale-zh.m4.
34994         (Depends): Add mbsinit.
34995         * modules/mbsinit (Depends): Add mbrtowc.
34996         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34997
34998 2008-12-20  Bruno Haible  <bruno@clisp.org>
34999
35000         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35001         so that there are no conversion errors on AIX.
35002         * tests/test-mbsrtowcs.c (main): LIkewise.
35003
35004 2008-12-20  Bruno Haible  <bruno@clisp.org>
35005
35006         Work around wctob bug on Solaris <= 9.
35007         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35008         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35010         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35011         * modules/wctob (Files): Add m4/locale-fr.m4.
35012         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35013
35014 2008-12-20  Bruno Haible  <bruno@clisp.org>
35015
35016         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35017         /dev/null.
35018         * tests/test-select-in.sh: Likewise.
35019         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35020
35021 2008-12-20  Bruno Haible  <bruno@clisp.org>
35022
35023         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35024         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35025         Cygwin 1.5.x.
35026
35027 2008-12-20  Bruno Haible  <bruno@clisp.org>
35028
35029         Ensure mbstate_t is defined on HP-UX 11.11.
35030         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35031         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35032         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35033         AC_USE_SYSTEM_EXTENSIONS.
35034         * modules/fnmatch (Depends-on): Add extensions.
35035         * modules/mbrlen (Depends-on): Likewise.
35036         * modules/mbrtowc (Depends-on): Likewise.
35037         * modules/mbsinit (Depends-on): Likewise.
35038         * modules/mbsrtowcs (Depends-on): Likewise.
35039         * modules/mbswidth (Depends-on): Likewise.
35040         * modules/quotearg (Depends-on): Likewise.
35041         * modules/strftime (Depends-on): Likewise.
35042
35043 2008-12-20  Bruno Haible  <bruno@clisp.org>
35044
35045         Ensure wctob is declared on IRIX 6.5.
35046         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
35047         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
35048         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
35049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
35050         of HAVE_WCTOB.
35051         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
35052         HAVE_WCTOB.
35053         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
35054
35055 2008-12-19  Bruno Haible  <bruno@clisp.org>
35056
35057         * modules/mbsrtowcs-tests: New file.
35058         * tests/test-mbsrtowcs1.sh: New file.
35059         * tests/test-mbsrtowcs2.sh: New file.
35060         * tests/test-mbsrtowcs3.sh: New file.
35061         * tests/test-mbsrtowcs4.sh: New file.
35062         * tests/test-mbsrtowcs.c: New file.
35063
35064         New module 'mbsrtowcs'.
35065         * lib/wchar.in.h (mbsrtowcs): New declaration.
35066         * lib/mbsrtowcs.c: New file.
35067         * m4/mbsrtowcs.m4: New file.
35068         * modules/mbsrtowcs: New file.
35069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35070         HAVE_MBSRTOWCS.
35071         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35072         HAVE_MBSRTOWCS.
35073         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35074
35075 2008-12-19  Bruno Haible  <bruno@clisp.org>
35076
35077         New module 'mbrlen'.
35078         * lib/wchar.in.h (mbrlen): New declaration.
35079         * lib/mbrlen.c: New file.
35080         * m4/mbrlen.m4: New file.
35081         * modules/mbrlen: New file.
35082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35083         HAVE_MBRLEN.
35084         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35085         HAVE_MBRLEN.
35086         * doc/posix-functions/mbrlen.texi: Document the new module.
35087
35088 2008-12-19  Bruno Haible  <bruno@clisp.org>
35089
35090         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35091         * modules/mbrtowc (Depends-on): Add verify.
35092         Suggested by Paul Eggert.
35093
35094 2008-12-18  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/mbsinit-tests: New file.
35097         * tests/test-mbsinit.sh: New file.
35098         * tests/test-mbsinit.c: New file.
35099
35100 2008-12-18  Bruno Haible  <bruno@clisp.org>
35101
35102         * modules/mbrtowc-tests: New file.
35103         * tests/test-mbrtowc1.sh: New file.
35104         * tests/test-mbrtowc2.sh: New file.
35105         * tests/test-mbrtowc3.sh: New file.
35106         * tests/test-mbrtowc4.sh: New file.
35107         * tests/test-mbrtowc.c: New file.
35108
35109         New module 'mbrtowc'.
35110         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35111         mbsinit and mbrtowc.
35112         (mbrtowc): New declaration.
35113         * lib/mbrtowc.c: New file.
35114         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35115         * modules/mbrtowc: New file.
35116         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35117         HAVE_MBRTOWC.
35118         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35119         HAVE_MBRTOWC.
35120         * doc/posix-functions/mbrtowc.texi: Document the new module.
35121
35122 2008-12-18  Bruno Haible  <bruno@clisp.org>
35123
35124         New module 'wctob'.
35125         * lib/wchar.in.h (wctob): New declaration.
35126         * lib/wctob.c: New file.
35127         * m4/wctob.m4: New file.
35128         * modules/wctob: New file.
35129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35130         HAVE_WCTOB.
35131         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35132         * doc/posix-functions/wctob.texi: Document the new module.
35133
35134 2008-12-18  Bruno Haible  <bruno@clisp.org>
35135
35136         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35137         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35138
35139 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35140
35141         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35142         G. Christensen" <tgc@jupiterrise.com>.
35143
35144         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35145         G. Christensen" <tgc@jupiterrise.com>.
35146
35147         * lib/flock.c: Need to include string.h.  Reported by "Tom
35148         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35149         <ebb9@byu.net>.
35150
35151 2008-12-18  Bruno Haible  <bruno@clisp.org>
35152
35153         * m4/locale-ja.m4: New file, from GNU gettext.
35154
35155 2008-12-17  Bruno Haible  <bruno@clisp.org>
35156
35157         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35158         Suggested by Eric Blake.
35159
35160 2008-12-17  Bruno Haible  <bruno@clisp.org>
35161
35162         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35163
35164 2008-12-17  Bruno Haible  <bruno@clisp.org>
35165
35166         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35167         * modules/mbsinit (Depends-on): Add verify.
35168         Suggested by Paul Eggert.
35169
35170 2008-12-17  Bruno Haible  <bruno@clisp.org>
35171
35172         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35173         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35174         gl_FUNC_MBRTOWC.
35175         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35176         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35177         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35178         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35179         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35180         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35181         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35182         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35183         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35184         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35185         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35186         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35187         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35188         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35189         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35190         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35191         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35192         * modules/trim (configure.ac): Likewise.
35193
35194 2008-12-17  Bruno Haible  <bruno@clisp.org>
35195
35196         * modules/btowc-tests: New file.
35197         * tests/test-btowc1.sh: New file.
35198         * tests/test-btowc2.sh: New file.
35199         * tests/test-btowc.c: New file.
35200
35201         New module 'btowc'.
35202         * lib/wchar.in.h (btowc): New declaration.
35203         * lib/btowc.c: New file.
35204         * m4/btowc.m4: New file.
35205         * modules/btowc: New file.
35206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35207         HAVE_BTOWC.
35208         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35209         * doc/posix-functions/btowc.texi: Document the new module.
35210
35211 2008-12-17  Bruno Haible  <bruno@clisp.org>
35212
35213         New module 'mbsinit'.
35214         * lib/wchar.in.h (mbsinit): New declaration.
35215         * lib/mbsinit.c: New file.
35216         * m4/mbsinit.m4: New file.
35217         * modules/mbsinit: New file.
35218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35219         HAVE_MBSINIT.
35220         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35221         HAVE_MBSINIT.
35222         * doc/posix-functions/mbsinit.texi: Document the new module.
35223
35224 2008-12-16  Bruno Haible  <bruno@clisp.org>
35225
35226         * lib/unistd.in.h: Add comment.
35227         * tests/test-environ.c: Don't include <stdlib.h>.
35228
35229 2008-12-16  Bruno Haible  <bruno@clisp.org>
35230
35231         * lib/parse-duration.h (parse_duration): Document return value
35232         convention.
35233         * lib/parse-duration.c: Include specification header first. Add
35234         comments.
35235         (_): Remove macro.
35236         (parse_year_month_day, parse_hour_minute_second): Move side effects
35237         outside of strchr call.
35238         (parse_non_iso8601): Move side effects outside of isspace call.
35239         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35240         call.
35241
35242 2008-12-16  Bruno Haible  <bruno@clisp.org>
35243
35244         * tests/test-parse-duration.sh: Produce no output when the test
35245         succeeds.
35246
35247 2008-12-16  Bruno Haible  <bruno@clisp.org>
35248
35249         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35250         expressions.
35251
35252 2008-12-15  Bruno Haible  <bruno@clisp.org>
35253
35254         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35255         * doc/glibc-functions/flistxattr.texi: Likewise.
35256         * doc/glibc-functions/fopencookie.texi: Likewise.
35257         * doc/glibc-functions/fremovexattr.texi: Likewise.
35258         * doc/glibc-functions/fsetxattr.texi: Likewise.
35259         * doc/glibc-functions/getxattr.texi: Likewise.
35260         * doc/glibc-functions/lgetxattr.texi: Likewise.
35261         * doc/glibc-functions/listxattr.texi: Likewise.
35262         * doc/glibc-functions/llistxattr.texi: Likewise.
35263         * doc/glibc-functions/lremovexattr.texi: Likewise.
35264         * doc/glibc-functions/lsetxattr.texi: Likewise.
35265         * doc/glibc-functions/removexattr.texi: Likewise.
35266         * doc/glibc-functions/setxattr.texi: Likewise.
35267         * doc/posix-functions/open_memstream.texi: Likewise.
35268
35269 2008-12-15  Eric Blake  <ebb9@byu.net>
35270
35271         Update doc for cygwin 1.7.
35272         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35273         functions.
35274         * doc/posix-functions/fchmodat.texi: Likewise.
35275         * doc/posix-functions/fchownat.texi: Likewise.
35276         * doc/posix-functions/fdopendir.texi: Likewise.
35277         * doc/posix-functions/fmemopen.texi: Likewise.
35278         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35279         * doc/posix-functions/fstatat.texi: Likewise.
35280         * doc/posix-functions/futimens.texi: Likewise.
35281         * doc/posix-functions/gai_strerror.texi: Likewise.
35282         * doc/posix-functions/getaddrinfo.texi: Likewise.
35283         * doc/posix-functions/getnameinfo.texi: Likewise.
35284         * doc/posix-functions/if_freenameindex.texi: Likewise.
35285         * doc/posix-functions/if_indextoname.texi: Likewise.
35286         * doc/posix-functions/if_nameindex.texi: Likewise.
35287         * doc/posix-functions/if_nametoindex.texi: Likewise.
35288         * doc/posix-functions/insque.texi: Likewise.
35289         * doc/posix-functions/linkat.texi: Likewise.
35290         * doc/posix-functions/llrint.texi: Likewise.
35291         * doc/posix-functions/llrintf.texi: Likewise.
35292         * doc/posix-functions/llrintl.texi: Likewise.
35293         * doc/posix-functions/lockf.texi: Likewise.
35294         * doc/posix-functions/lrintl.texi: Likewise.
35295         * doc/posix-functions/mkdirat.texi: Likewise.
35296         * doc/posix-functions/mkfifoat.texi: Likewise.
35297         * doc/posix-functions/mknodat.texi: Likewise.
35298         * doc/posix-functions/mq_close.texi: Likewise.
35299         * doc/posix-functions/mq_getattr.texi: Likewise.
35300         * doc/posix-functions/mq_notify.texi: Likewise.
35301         * doc/posix-functions/mq_open.texi: Likewise.
35302         * doc/posix-functions/mq_receive.texi: Likewise.
35303         * doc/posix-functions/mq_send.texi: Likewise.
35304         * doc/posix-functions/mq_setattr.texi: Likewise.
35305         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35306         * doc/posix-functions/mq_timedsend.texi: Likewise.
35307         * doc/posix-functions/mq_unlink.texi: Likewise.
35308         * doc/posix-functions/open_memstream.texi: Likewise.
35309         * doc/posix-functions/openat.texi: Likewise.
35310         * doc/posix-functions/posix_fadvise.texi: Likewise.
35311         * doc/posix-functions/posix_fallocate.texi: Likewise.
35312         * doc/posix-functions/posix_madvise.texi: Likewise.
35313         * doc/posix-functions/posix_memalign.texi: Likewise.
35314         * doc/posix-functions/posix_openpt.texi: Likewise.
35315         * doc/posix-functions/readlinkat.texi: Likewise.
35316         * doc/posix-functions/remque.texi: Likewise.
35317         * doc/posix-functions/renameat.texi: Likewise.
35318         * doc/posix-functions/rintl.texi: Likewise.
35319         * doc/posix-functions/sem_unlink.texi: Likewise.
35320         * doc/posix-functions/shm_open.texi: Likewise.
35321         * doc/posix-functions/shm_unlink.texi: Likewise.
35322         * doc/posix-functions/signgam.texi: Likewise.
35323         * doc/posix-functions/sigset.texi: Likewise.
35324         * doc/posix-functions/stpcpy.texi: Likewise.
35325         * doc/posix-functions/stpncpy.texi: Likewise.
35326         * doc/posix-functions/strerror.texi: Likewise.
35327         * doc/posix-functions/strtod.texi: Likewise.
35328         * doc/posix-functions/symlinkat.texi: Likewise.
35329         * doc/posix-functions/unlinkat.texi: Likewise.
35330         * doc/posix-functions/utimensat.texi: Likewise.
35331         * doc/glibc-functions/bindresvport.texi: Likewise.
35332         * doc/glibc-functions/dn_expand.texi: Likewise.
35333         * doc/glibc-functions/exp10.texi: Likewise.
35334         * doc/glibc-functions/exp10f.texi: Likewise.
35335         * doc/glibc-functions/fgetxattr.texi: Likewise.
35336         * doc/glibc-functions/flistxattr.texi: Likewise.
35337         * doc/glibc-functions/fopencookie.texi: Likewise.
35338         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35339         * doc/glibc-functions/fremovexattr.texi: Likewise.
35340         * doc/glibc-functions/fsetxattr.texi: Likewise.
35341         * doc/glibc-functions/getifaddrs.texi: Likewise.
35342         * doc/glibc-functions/getxattr.texi: Likewise.
35343         * doc/glibc-functions/lgetxattr.texi: Likewise.
35344         * doc/glibc-functions/listxattr.texi: Likewise.
35345         * doc/glibc-functions/llistxattr.texi: Likewise.
35346         * doc/glibc-functions/lremovexattr.texi: Likewise.
35347         * doc/glibc-functions/lsetxattr.texi: Likewise.
35348         * doc/glibc-functions/pow10.texi: Likewise.
35349         * doc/glibc-functions/pow10f.texi: Likewise.
35350         * doc/glibc-functions/rcmd_af.texi: Likewise.
35351         * doc/glibc-functions/removexattr.texi: Likewise.
35352         * doc/glibc-functions/res_init.texi: Likewise.
35353         * doc/glibc-functions/res_mkquery.texi: Likewise.
35354         * doc/glibc-functions/res_query.texi: Likewise.
35355         * doc/glibc-functions/res_querydomain.texi: Likewise.
35356         * doc/glibc-functions/res_send.texi: Likewise.
35357         * doc/glibc-functions/rresvport_af.texi: Likewise.
35358         * doc/glibc-functions/setxattr.texi: Likewise.
35359         * doc/glibc-functions/strcasestr.texi: Likewise.
35360
35361 2008-12-15  Bruno Haible  <bruno@clisp.org>
35362
35363         Fix compilation error on OSF/1 4.0.
35364         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35365         <sys/time.h>, simply delegate to the system header.
35366         Reported by Daniel Richard G. <oss@teragram.com>.
35367
35368 2008-12-15  Bruno Haible  <bruno@clisp.org>
35369
35370         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35371         * doc/posix-functions/fchmodat.texi: Likewise.
35372         * doc/posix-functions/fchownat.texi: Likewise.
35373         * doc/posix-functions/fdopendir.texi: Likewise.
35374         * doc/posix-functions/fstatat.texi: Likewise.
35375         * doc/posix-functions/mkdirat.texi: Likewise.
35376         * doc/posix-functions/unlinkat.texi: Likewise.
35377
35378 2008-12-14  Bruno Haible  <bruno@clisp.org>
35379
35380         Update doc for POSIX:2008.
35381         * doc/posix-functions/faccessat.texi: New file.
35382         * doc/posix-functions/fchmodat.texi: New file.
35383         * doc/posix-functions/fchownat.texi: New file.
35384         * doc/posix-functions/fdopendir.texi: New file.
35385         * doc/posix-functions/fstatat.texi: New file.
35386         * doc/posix-functions/futimens.texi: New file.
35387         * doc/posix-functions/linkat.texi: New file.
35388         * doc/posix-functions/mkdirat.texi: New file.
35389         * doc/posix-functions/mkfifoat.texi: New file.
35390         * doc/posix-functions/mknodat.texi: New file.
35391         * doc/posix-functions/open_wmemstream.texi: New file.
35392         * doc/posix-functions/openat.texi: New file.
35393         * doc/posix-functions/psiginfo.texi: New file.
35394         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35395         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35396         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35397         * doc/posix-functions/readlinkat.texi: New file.
35398         * doc/posix-functions/renameat.texi: New file.
35399         * doc/posix-functions/strerror_l.texi: New file.
35400         * doc/posix-functions/symlinkat.texi: New file.
35401         * doc/posix-functions/unlinkat.texi: New file.
35402         * doc/posix-functions/utimensat.texi: New file.
35403         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35404
35405 2008-12-14  Bruno Haible  <bruno@clisp.org>
35406
35407         Update doc for POSIX:2008.
35408         * doc/posix-functions/alphasort.texi: Renamed from
35409         doc/glibc-functions/alphasort.texi.
35410         * doc/posix-functions/dirfd.texi: Renamed from
35411         doc/glibc-functions/dirfd.texi.
35412         * doc/posix-functions/dprintf.texi: Renamed from
35413         doc/glibc-functions/dprintf.texi.
35414         * doc/posix-functions/duplocale.texi: Renamed from
35415         doc/glibc-functions/duplocale.texi.
35416         * doc/posix-functions/fexecve.texi: Renamed from
35417         doc/glibc-functions/fexecve.texi.
35418         * doc/posix-functions/fmemopen.texi: Renamed from
35419         doc/glibc-functions/fmemopen.texi.
35420         * doc/posix-functions/freelocale.texi: Renamed from
35421         doc/glibc-functions/freelocale.texi.
35422         * doc/posix-functions/getdate_err.texi: Renamed from
35423         doc/glibc-functions/getdate_err.texi.
35424         * doc/posix-functions/isalnum_l.texi: Renamed from
35425         doc/glibc-functions/isalnum_l.texi.
35426         * doc/posix-functions/isalpha_l.texi: Renamed from
35427         doc/glibc-functions/isalpha_l.texi.
35428         * doc/posix-functions/isblank_l.texi: Renamed from
35429         doc/glibc-functions/isblank_l.texi.
35430         * doc/posix-functions/iscntrl_l.texi: Renamed from
35431         doc/glibc-functions/iscntrl_l.texi.
35432         * doc/posix-functions/isdigit_l.texi: Renamed from
35433         doc/glibc-functions/isdigit_l.texi.
35434         * doc/posix-functions/isgraph_l.texi: Renamed from
35435         doc/glibc-functions/isgraph_l.texi.
35436         * doc/posix-functions/islower_l.texi: Renamed from
35437         doc/glibc-functions/islower_l.texi.
35438         * doc/posix-functions/isprint_l.texi: Renamed from
35439         doc/glibc-functions/isprint_l.texi.
35440         * doc/posix-functions/ispunct_l.texi: Renamed from
35441         doc/glibc-functions/ispunct_l.texi.
35442         * doc/posix-functions/isspace_l.texi: Renamed from
35443         doc/glibc-functions/isspace_l.texi.
35444         * doc/posix-functions/isupper_l.texi: Renamed from
35445         doc/glibc-functions/isupper_l.texi.
35446         * doc/posix-functions/iswalnum_l.texi: Renamed from
35447         doc/glibc-functions/iswalnum_l.texi.
35448         * doc/posix-functions/iswalpha_l.texi: Renamed from
35449         doc/glibc-functions/iswalpha_l.texi.
35450         * doc/posix-functions/iswblank_l.texi: Renamed from
35451         doc/glibc-functions/iswblank_l.texi.
35452         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35453         doc/glibc-functions/iswcntrl_l.texi.
35454         * doc/posix-functions/iswctype_l.texi: Renamed from
35455         doc/glibc-functions/iswctype_l.texi.
35456         * doc/posix-functions/iswdigit_l.texi: Renamed from
35457         doc/glibc-functions/iswdigit_l.texi.
35458         * doc/posix-functions/iswgraph_l.texi: Renamed from
35459         doc/glibc-functions/iswgraph_l.texi.
35460         * doc/posix-functions/iswlower_l.texi: Renamed from
35461         doc/glibc-functions/iswlower_l.texi.
35462         * doc/posix-functions/iswprint_l.texi: Renamed from
35463         doc/glibc-functions/iswprint_l.texi.
35464         * doc/posix-functions/iswpunct_l.texi: Renamed from
35465         doc/glibc-functions/iswpunct_l.texi.
35466         * doc/posix-functions/iswspace_l.texi: Renamed from
35467         doc/glibc-functions/iswspace_l.texi.
35468         * doc/posix-functions/iswupper_l.texi: Renamed from
35469         doc/glibc-functions/iswupper_l.texi.
35470         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35471         doc/glibc-functions/iswxdigit_l.texi.
35472         * doc/posix-functions/isxdigit_l.texi: Renamed from
35473         doc/glibc-functions/isxdigit_l.texi.
35474         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35475         doc/glibc-functions/mbsnrtowcs.texi.
35476         * doc/posix-functions/mkdtemp.texi: Renamed from
35477         doc/glibc-functions/mkdtemp.texi.
35478         * doc/posix-functions/newlocale.texi: Renamed from
35479         doc/glibc-functions/newlocale.texi.
35480         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35481         doc/glibc-functions/nl_langinfo_l.texi.
35482         * doc/posix-functions/open_memstream.texi: Renamed from
35483         doc/glibc-functions/open_memstream.texi.
35484         * doc/posix-functions/opterr.texi: Renamed from
35485         doc/glibc-functions/opterr.texi.
35486         * doc/posix-functions/optind.texi: Renamed from
35487         doc/glibc-functions/optind.texi.
35488         * doc/posix-functions/optopt.texi: Renamed from
35489         doc/glibc-functions/optopt.texi.
35490         * doc/posix-functions/psignal.texi: Renamed from
35491         doc/glibc-functions/psignal.texi.
35492         * doc/posix-functions/scandir.texi: Renamed from
35493         doc/glibc-functions/scandir.texi.
35494         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35495         doc/glibc-functions/sched_get_priority_min.texi.
35496         * doc/posix-functions/signgam.texi: Renamed from
35497         doc/glibc-functions/signgam.texi.
35498         * doc/posix-functions/stpcpy.texi: Renamed from
35499         doc/glibc-functions/stpcpy.texi.
35500         * doc/posix-functions/stpncpy.texi: Renamed from
35501         doc/glibc-functions/stpncpy.texi.
35502         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35503         doc/glibc-functions/strcasecmp_l.texi.
35504         * doc/posix-functions/strcoll_l.texi: Renamed from
35505         doc/glibc-functions/strcoll_l.texi.
35506         * doc/posix-functions/strfmon_l.texi: Renamed from
35507         doc/glibc-functions/strfmon_l.texi.
35508         * doc/posix-functions/strftime_l.texi: Renamed from
35509         doc/glibc-functions/strftime_l.texi.
35510         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35511         doc/glibc-functions/strncasecmp_l.texi.
35512         * doc/posix-functions/strndup.texi: Renamed from
35513         doc/glibc-functions/strndup.texi.
35514         * doc/posix-functions/strnlen.texi: Renamed from
35515         doc/glibc-functions/strnlen.texi.
35516         * doc/posix-functions/strsignal.texi: Renamed from
35517         doc/glibc-functions/strsignal.texi.
35518         * doc/posix-functions/strxfrm_l.texi: Renamed from
35519         doc/glibc-functions/strxfrm_l.texi.
35520         * doc/posix-functions/timer_gettime.texi: Renamed from
35521         doc/glibc-functions/timer_gettime.texi.
35522         * doc/posix-functions/tolower_l.texi: Renamed from
35523         doc/glibc-functions/tolower_l.texi.
35524         * doc/posix-functions/toupper_l.texi: Renamed from
35525         doc/glibc-functions/toupper_l.texi.
35526         * doc/posix-functions/towctrans_l.texi: Renamed from
35527         doc/glibc-functions/towctrans_l.texi.
35528         * doc/posix-functions/towlower_l.texi: Renamed from
35529         doc/glibc-functions/towlower_l.texi.
35530         * doc/posix-functions/towupper_l.texi: Renamed from
35531         doc/glibc-functions/towupper_l.texi.
35532         * doc/posix-functions/uselocale.texi: Renamed from
35533         doc/glibc-functions/uselocale.texi.
35534         * doc/posix-functions/vdprintf.texi: Renamed from
35535         doc/glibc-functions/vdprintf.texi.
35536         * doc/posix-functions/wcpcpy.texi:
35537         Renamed from doc/glibc-functions/wcpcpy.texi.
35538         * doc/posix-functions/wcpncpy.texi: Renamed from
35539         doc/glibc-functions/wcpncpy.texi.
35540         * doc/posix-functions/wcscasecmp.texi: Renamed from
35541         doc/glibc-functions/wcscasecmp.texi.
35542         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35543         doc/glibc-functions/wcscasecmp_l.texi.
35544         * doc/posix-functions/wcscoll_l.texi: Renamed from
35545         doc/glibc-functions/wcscoll_l.texi.
35546         * doc/posix-functions/wcsdup.texi: Renamed from
35547         doc/glibc-functions/wcsdup.texi.
35548         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35549         doc/glibc-functions/wcsncasecmp.texi.
35550         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35551         doc/glibc-functions/wcsncasecmp_l.texi.
35552         * doc/posix-functions/wcsnlen.texi: Renamed from
35553         doc/glibc-functions/wcsnlen.texi.
35554         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35555         doc/glibc-functions/wcsnrtombs.texi.
35556         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35557         doc/glibc-functions/wcsxfrm_l.texi.
35558         * doc/posix-functions/wctrans_l.texi: Renamed from
35559         doc/glibc-functions/wctrans_l.texi.
35560         * doc/posix-functions/wctype_l.texi: Renamed from
35561         doc/glibc-functions/wctype_l.texi.
35562         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35563         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35564         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35565         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35566         these subsections.
35567         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35568         Remove sections.
35569
35570 2008-12-14  Bruno Haible  <bruno@clisp.org>
35571
35572         Update doc for POSIX:2008.
35573         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35574
35575 2008-12-14  Bruno Haible  <bruno@clisp.org>
35576
35577         Update doc for POSIX:2008.
35578         * doc/pastposix-functions/bcmp.texi: Renamed from
35579         doc/posix-functions/bcmp.texi.
35580         * doc/pastposix-functions/bcopy.texi: Renamed from
35581         doc/posix-functions/bcopy.texi.
35582         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35583         doc/posix-functions/bsd_signal.texi.
35584         * doc/pastposix-functions/bzero.texi: Renamed from
35585         doc/posix-functions/bzero.texi.
35586         * doc/pastposix-functions/ecvt.texi: Renamed from
35587         doc/posix-functions/ecvt.texi.
35588         * doc/pastposix-functions/fcvt.texi: Renamed from
35589         doc/posix-functions/fcvt.texi.
35590         * doc/pastposix-functions/ftime.texi: Renamed from
35591         doc/posix-functions/ftime.texi.
35592         * doc/pastposix-functions/gcvt.texi: Renamed from
35593         doc/posix-functions/gcvt.texi.
35594         * doc/pastposix-functions/getcontext.texi: Renamed from
35595         doc/posix-functions/getcontext.texi.
35596         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35597         doc/posix-functions/gethostbyaddr.texi.
35598         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35599         doc/posix-functions/gethostbyname.texi.
35600         * doc/pastposix-functions/getwd.texi: Renamed from
35601         doc/posix-functions/getwd.texi.
35602         * doc/pastposix-functions/h_errno.texi: Renamed from
35603         doc/posix-functions/h_errno.texi.
35604         * doc/pastposix-functions/index.texi: Renamed from
35605         doc/posix-functions/index.texi.
35606         * doc/pastposix-functions/makecontext.texi: Renamed from
35607         doc/posix-functions/makecontext.texi.
35608         * doc/pastposix-functions/mktemp.texi: Renamed from
35609         doc/posix-functions/mktemp.texi.
35610         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35611         doc/posix-functions/pthread_attr_getstackaddr.texi.
35612         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35613         doc/posix-functions/pthread_attr_setstackaddr.texi.
35614         * doc/pastposix-functions/rindex.texi: Renamed from
35615         doc/posix-functions/rindex.texi.
35616         * doc/pastposix-functions/scalb.texi: Renamed from
35617         doc/posix-functions/scalb.texi.
35618         * doc/pastposix-functions/setcontext.texi: Renamed from
35619         doc/posix-functions/setcontext.texi.
35620         * doc/pastposix-functions/swapcontext.texi: Renamed from
35621         doc/posix-functions/swapcontext.texi.
35622         * doc/pastposix-functions/ualarm.texi: Renamed from
35623         doc/posix-functions/ualarm.texi.
35624         * doc/pastposix-functions/usleep.texi: Renamed from
35625         doc/posix-functions/usleep.texi.
35626         * doc/pastposix-functions/vfork.texi: Renamed from
35627         doc/posix-functions/vfork.texi.
35628         * doc/pastposix-functions/wcswcs.texi: Renamed from
35629         doc/posix-functions/wcswcs.texi.
35630         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35631         (Function Substitutes): Update.
35632
35633 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35634
35635         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35636         m4/strerror.m4.
35637
35638 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35639             Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35642
35643 2008-12-13  Bruno Haible  <bruno@clisp.org>
35644
35645         * modules/strtoull (Depends-on): Remove unistd.
35646
35647 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35648
35649         * modules/strtoull (Depends-on): Add stdlib.
35650
35651 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35652
35653         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35654
35655 2008-12-10  Jim Meyering  <meyering@redhat.com>
35656
35657         gl_ASSERT: don't say assertions are disabled when they're not
35658         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35659         "checking whether to enable assertions... no", when they are in
35660         fact enabled.  This is solely a bug in the output of configure.
35661         In spite of saying "no", NDEBUG was not defined in that case.
35662         Also, as noted by Eric Blake, leave assertions enabled upon
35663         --enable-assert=INVALID.
35664
35665 2008-12-10  Bruno Haible  <bruno@clisp.org>
35666
35667         Change MODULES.html to refer to POSIX:2008 where possible.
35668         * MODULES.html.sh (POSIX2008_URL): New variable.
35669         (posix_headers): Remove sys/timeb, ucontext.
35670         (posix2001_headers): New variable.
35671         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35672         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35673         index, makecontext, mktemp, pthread_attr_getstackaddr,
35674         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35675         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35676         (posix2001_functions): New variable.
35677         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35678         otherwise.
35679
35680 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35681
35682         add missing include to parse-duration.c
35683         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35684         * modules/parse-duration (Depends-on): Add xalloc.
35685
35686         fix sed script reading maint.mk
35687         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35688         (syntax-check-rules): Use it.
35689
35690 2008-12-09  Bruno Haible  <bruno@clisp.org>
35691
35692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35693         MacOS X 10.4/PowerPC.
35694         Reported by Simon Josefsson.
35695
35696 2008-12-08  Jim Meyering  <meyering@redhat.com>
35697
35698         work around mingw's lack of some S_IF definitions
35699         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35700         Reported by Simon Josefsson.
35701
35702 2008-12-08  Bruno Haible  <bruno@clisp.org>
35703
35704         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35705         applied to variables. Needed on MacOS X 10.4/PowerPC.
35706         Reported by Simon Josefsson.
35707
35708 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35709         and Eric Blake  <ebb9@byu.net>
35710
35711         assert: honor --enable-assert
35712         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35713         order to honor --enable-assert, rather than treating it as a
35714         synonym for --disable-assert.
35715
35716 2008-12-08  Jim Meyering  <meyering@redhat.com>
35717
35718         * lib/posixtm.c: Remove now-useless declaration of mktime.
35719
35720         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35721
35722 2008-12-07  Bruno Haible  <bruno@clisp.org>
35723
35724         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35725         test_once): Mark functions as static.
35726         * tests/test-tls.c (test_tls): Likewise.
35727
35728 2008-12-07  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35731         iconv_register_autodetect.
35732
35733 2008-12-07  Jim Meyering  <meyering@redhat.com>
35734
35735         posixtm.c: avoid a warning
35736         * lib/posixtm.c (posixtime): Don't initialize tm0.
35737         It's no longer needed to placate gcc4's -Wuninitialized,
35738         and the attempt to placate would elicit a new warning.
35739
35740         unicodeio.c: mark unused parameters
35741         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35742         (fallback_failure_callback): Likewise.
35743
35744 2008-12-07  Bruno Haible  <bruno@clisp.org>
35745
35746         * gnulib-tool (func_create_testdir): When building the tests
35747         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35748         Reported by Simon Josefsson.
35749
35750 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35751
35752         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35753
35754 2008-12-06  Bruno Haible  <bruno@clisp.org>
35755
35756         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35757         Suggested by Eric Blake.
35758
35759 2008-12-06  Bruno Haible  <bruno@clisp.org>
35760
35761         Fix a c-stack test failure on MacOS X.
35762         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35763         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35764         handler for SIGBUS as well.
35765         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35766         install a signal handler for SIGBUS as well.
35767         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35768
35769 2008-12-06  Bruno Haible  <bruno@clisp.org>
35770
35771         Advocacy documentation.
35772         * doc/gnulib-intro.texi (Benefits): New section.
35773         * doc/gnulib.texi: Update.
35774
35775 2008-12-06  Bruno Haible  <bruno@clisp.org>
35776
35777         Document the 'manywarnings' module.
35778         * doc/manywarnings.texi: New file.
35779         * doc/gnulib.texi: Include it.
35780
35781 2008-12-05  Eric Blake  <ebb9@byu.net>
35782
35783         tests: silence some gcc warnings
35784         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35785         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35786         type mismatches.
35787
35788 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35789             Bruno Haible  <bruno@clisp.org>
35790
35791         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35792
35793 2008-11-29  Jim Meyering  <meyering@redhat.com>
35794
35795         unicodeio.c: mark unused parameters
35796         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35797         (fallback_failure_callback): Likewise.
35798
35799         fts: fix a thinko
35800         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35801         (set_stat_type): Return S_IF*-valued "type" directly.
35802         Prompted by James Youngman's spotting a related bug.
35803         Confirmed by further testing through find.
35804
35805         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35806         * lib/fts.c (D_TYPE): Define.
35807         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35808         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35809         (s_ifmt_shift_bits): New function.
35810         (set_stat_type): New function.
35811         (fts_build): When not calling fts_stat, call set_stat_type
35812         to propagate dirent.d_type info to fts_read caller.
35813         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35814         fts_statp->st_mode type information may be valid.
35815
35816 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35817
35818         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35819         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35820         <sds@gnu.org>.
35821
35822 2008-11-20  Bruno Haible  <bruno@clisp.org>
35823
35824         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35825         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35826         INCLUDE_NEXT.
35827         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35828         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35829         * modules/math (Makefile.am): Substitute
35830         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35831         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35832
35833 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35834             Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/stdint.in.h: Define all type macros so that their expansion is
35837         a single typedef'ed token. Fixes a compilation failure in Boost which
35838         does "using ::int8_t;".
35839
35840 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35841
35842         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35843         gl_MANYWARN_ALL_GCC.
35844         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35845         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35846         * modules/manywarnings: New file.
35847         * MODULES.html.sh: Mention manywarnings module.
35848
35849 2008-11-18  Bruno Haible  <bruno@clisp.org>
35850
35851         * doc/gnulib-tool.texi (Unit tests): New section.
35852
35853 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35854
35855         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35856         paths like 'lib/po/foo.po'.
35857
35858 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35859
35860         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35861         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35862
35863 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35864
35865         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35866         parameter works.
35867
35868 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35869
35870         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35871
35872 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35873
35874         * modules/parse-duration-tests: New file.
35875         * tests/test-parse-duration.sh: New file.
35876         * tests/test-parse-duration.c: New file.
35877
35878         New module 'parse-duration'.
35879         * lib/parse-duration.h: New file.
35880         * lib/parse-duration.c: New file.
35881         * modules/parse-duration: New file.
35882
35883 2008-11-17  Bruno Haible  <bruno@clisp.org>
35884
35885         * tests/test-select-out.sh: Comment out the first pipe test.
35886         Reported by Simon Josefsson.
35887
35888 2008-11-17  Bruno Haible  <bruno@clisp.org>
35889
35890         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35892         gl_HOSTENT.
35893
35894 2008-11-17  Bruno Haible  <bruno@clisp.org>
35895
35896         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35897         -lnetwork and -lnet. Needed for Haiku and BeOS.
35898
35899 2008-11-16  Bruno Haible  <bruno@clisp.org>
35900
35901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35902
35903 2008-11-16  Bruno Haible  <bruno@clisp.org>
35904
35905         Avoid test failure on Haiku.
35906         * tests/test-fsync.c: Include <errno.h>.
35907         (main): Don't require that fsync (0) fails.
35908
35909 2008-11-15  Bruno Haible  <bruno@clisp.org>
35910
35911         New module 'hostent'.
35912         * modules/hostent: New file.
35913         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35914
35915 2008-11-15  Bruno Haible  <bruno@clisp.org>
35916
35917         New module 'servent'.
35918         * modules/servent: New file.
35919         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35920
35921 2008-11-15  Bruno Haible  <bruno@clisp.org>
35922
35923         Avoid generating same test program with two different rules.
35924         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35925         test-frexp to test-frexp-nolibm.
35926         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35927         test-frexpl to test-frexpl-nolibm.
35928
35929 2008-11-15  Bruno Haible  <bruno@clisp.org>
35930
35931         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35932         $(FREXPL_LIBM).
35933
35934 2008-11-15  Bruno Haible  <bruno@clisp.org>
35935
35936         * lib/netdb.in.h: Activate the definitions also when the system's
35937         <netdb.h> has 'struct addrinfo'.
35938         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35939         EAI_OVERFLOW or AI_NUMERICSERV.
35940         * doc/posix-headers/netdb.texi: Document the problem.
35941
35942 2008-11-15  Bruno Haible  <bruno@clisp.org>
35943
35944         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35945
35946         Make the 'sched' module work on platforms where <sched.h> exists but
35947         is incomplete (such as Haiku).
35948         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35949         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35950         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35951         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35952         HAVE_STRUCT_SCHED_PARAM.
35953         * modules/sched (Depends-on): Add include_next.
35954         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35955         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35956         * doc/posix-headers/sched.texi: Document the issue.
35957
35958 2008-11-13  Jim Meyering  <meyering@redhat.com>
35959
35960         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35961         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35962         test would fail due to the difference in the Report bugs to ...
35963         line.  The expected address is empty, "<>", while the actual
35964         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35965
35966 2008-11-12  Bruno Haible  <bruno@clisp.org>
35967
35968         lstat: don't compile lstat.c on systems lacking lstat
35969         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35970         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35971         Reported by Daniel P. Berrange via Jim Meyering.
35972
35973 2008-11-12  Jim Meyering  <meyering@redhat.com>
35974
35975         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35976
35977 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35978
35979         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35980         instead.
35981
35982 2008-11-12  Bruno Haible  <bruno@clisp.org>
35983
35984         * lib/unicodeio.c: Include unistr.h.
35985         (utf8_wctomb): Remove function.
35986         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35987
35988 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35989
35990         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35991         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35992         <bruno@clisp.org>.
35993         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35994
35995 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35996
35997         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35998         * doc/gnulib.texi: Add section for warnings.
35999
36000 2008-11-11  Bruno Haible  <bruno@clisp.org>
36001
36002         * lib/sockets.h: Add a comment.
36003
36004 2008-11-11  Karl Berry  <karl@gnu.org>
36005
36006         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36007
36008 2008-11-11  Eric Blake  <ebb9@byu.net>
36009
36010         fdl.texi: avoid git symlinks
36011         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36012
36013 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36014
36015         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36016
36017 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36018
36019         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36020         (gl_WARN_ADD): Substitute $2 if literal.
36021
36022 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36023
36024         * m4/warning.m4: Remove.
36025
36026 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36027
36028         * m4/warnings.m4: Almost complete rewrite. :-)
36029
36030 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36031
36032         * modules/warnings: New module.
36033         * m4/warnings.m4: New file.
36034         * MODULES.html.sh: Mention warnings module.
36035         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36036         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36037
36038 2008-11-10  Eric Blake  <ebb9@byu.net>
36039
36040         fdl.texi: make a symlink to the latest version
36041         * doc/standards.texi: Revert today's earlier change.
36042         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36043         * doc/fdl.texi: ...and replace this with a symlink to the newer
36044         fdl-1.3.texi.
36045
36046 2008-11-10  Bruno Haible  <bruno@clisp.org>
36047
36048         * tests/test-select-fd.c (main): Accept the result file name as fourth
36049         argument.
36050         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
36051         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
36052
36053 2008-11-10  Bruno Haible  <bruno@clisp.org>
36054
36055         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36056         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36057         as autoconf-substituted macros.
36058         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36059         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36060         gl_NETDB_H_DEFAULTS. Set these variables.
36061         * modules/netdb (Makefile.am): Substitute these variables.
36062
36063 2008-11-10  Eric Blake  <ebb9@byu.net>
36064
36065         standards.texi: include correct file for FDL 1.3
36066         * doc/standards.texi (GNU Free Documentation License): Change
36067         include file to pull in FDL 1.3, not 1.2.
36068
36069         fdl.texi: revert accidental change to license
36070         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36071
36072 2008-11-10  Bruno Haible  <bruno@clisp.org>
36073
36074         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36075         cross-compiling guesses also when the native compile gives no result.
36076
36077 2008-11-10  Bruno Haible  <bruno@clisp.org>
36078
36079         * lib/spawni.c (__spawni): Force variable into the stack.
36080
36081 2008-11-10  Bruno Haible  <bruno@clisp.org>
36082
36083         Add support for Haiku.
36084         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36085         glibc and BeOS, but also on Haiku.
36086         * lib/fpurge.c (fpurge): Likewise.
36087         * lib/freadable.c (freadable): Likewise.
36088         * lib/freadahead.c (freadahead): Likewise.
36089         * lib/freading.c (freading): Likewise.
36090         * lib/freadptr.c (freadptr): Likewise.
36091         * lib/freadseek.c (freadptrinc): Likewise.
36092         * lib/fseeko.c (rpl_fseeko): Likewise.
36093         * lib/fseterr.c (fseterr): Likewise.
36094         * lib/fwritable.c (fwritable): Likewise.
36095         * lib/fwriting.c (fwriting): Likewise.
36096         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36097
36098 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36099
36100         * lib/config.charset: Treat Haiku like BeOS.
36101
36102 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36103
36104         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36105         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36106
36107 2008-11-08  Bruno Haible  <bruno@clisp.org>
36108
36109         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36110         AC_CACHE_CHECK.
36111
36112 2008-11-08  Bruno Haible  <bruno@clisp.org>
36113
36114         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36115
36116 2008-11-08  Bruno Haible  <bruno@clisp.org>
36117
36118         * tests/test-select-fd.c: New file.
36119         * tests/test-select-in.sh: New file.
36120         * tests/test-select-out.sh: New file.
36121         * tests/test-select-stdin.c: New file.
36122         * modules/select-tests (Files): Add the new files.
36123         (Depends-on): Add gettimeofday.
36124         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36125         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36126         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36127
36128 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36129             Bruno Haible  <bruno@clisp.org>
36130
36131         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36132
36133 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36134
36135         * build-aux/pmccabe2html: Added support for C++ source files.
36136
36137 2008-11-05  Ben Pfaff  <blp@gnu.org>
36138
36139         Fix lib/close.c build on Windows.
36140         * modules/close (Files): Add lib/w32sock.h.
36141
36142 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36143
36144         Accept Bison's NEWS format.
36145         * build-aux/announce-gen (print_news_deltas): Tweak
36146         $re_prefix.
36147
36148 2008-11-04  Bruno Haible  <bruno@clisp.org>
36149
36150         * modules/random_r (Maintainer): Add glibc.
36151
36152 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36153
36154         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36155         by karl@freefriends.org (Karl Berry).
36156         * doc/alloca.texi: Likewise.
36157         * doc/c-ctype.texi: Likewise.
36158         * doc/c-strcase.texi: Likewise.
36159         * doc/c-strcaseeq.texi: Likewise.
36160         * doc/c-strcasestr.texi: Likewise.
36161         * doc/c-strstr.texi: Likewise.
36162         * doc/c-strtod.texi: Likewise.
36163         * doc/c-strtold.texi: Likewise.
36164         * doc/ctime.texi: Likewise.
36165         * doc/error.texi: Likewise.
36166         * doc/fdl.texi: Likewise.
36167         * doc/gcd.texi: Likewise.
36168         * doc/getdate.texi: Likewise.
36169         * doc/gnulib-intro.texi: Likewise.
36170         * doc/gnulib-tool.texi: Likewise.
36171         * doc/gnulib.texi: Likewise.
36172         * doc/inet_ntoa.texi: Likewise.
36173         * doc/maintain.texi: Likewise.
36174         * doc/make-stds.texi: Likewise.
36175         * doc/quote.texi: Likewise.
36176         * doc/regexprops-generic.texi: Likewise.
36177         * doc/standards.texi: Likewise.
36178         * doc/verify.texi: Likewise.
36179         * doc/visibility.texi: Likewise.
36180         * doc/gnulib.texi (GNU Free Documentation License): Include
36181         fdl-1.3.texi instead of fdl.texi.
36182
36183 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36184
36185         * doc/fdl-1.3.texi: New file, from
36186         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36187         * modules/fdl-1.3: Add.
36188         * MODULES.html.sh: Add fdl-1.3.
36189
36190 2008-11-03  Bruno Haible  <bruno@clisp.org>
36191
36192         Make determination of absolute name of header file work with AIX xlc.
36193         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36194         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36195         preprocessing.
36196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36197         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36198
36199 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36200
36201         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36202         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36203         <ludo@gnu.org>.
36204
36205 2008-11-02  Bruno Haible  <bruno@clisp.org>
36206
36207         Mark 'strpbrk' obsolete.
36208         * modules/strpbrk (Status, Notice): New sections.
36209         * modules/strtok_r (Depends-on): Add strpbrk.
36210
36211 2008-11-02  Bruno Haible  <bruno@clisp.org>
36212
36213         Mark 'strdup' obsolete.
36214         * modules/strdup (Status, Notice): New sections.
36215         * modules/findprog (Depends-on): Add strdup.
36216         * modules/getaddrinfo (Depends-on): Likewise.
36217         * modules/localename (Depends-on): Likewise.
36218         * modules/relocatable-lib (Depends-on): Likewise.
36219         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36220         * modules/relocatable-prog (Depends-on): Likewise.
36221         * modules/trim (Depends-on): Likewise.
36222         * modules/unictype/gen-ctype (Depends-on): Likewise.
36223         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36224
36225 2008-11-02  Bruno Haible  <bruno@clisp.org>
36226
36227         Mark 'strcspn' obsolete.
36228         * modules/strcspn (Status, Notice): New sections.
36229
36230 2008-11-02  Bruno Haible  <bruno@clisp.org>
36231
36232         Mark 'rmdir' obsolete.
36233         * modules/rmdir (Status, Notice): New sections.
36234         * modules/clean-temp (Depends-on): Add rmdir.
36235         * modules/openat (Depends-on): Likewise.
36236
36237 2008-11-02  Bruno Haible  <bruno@clisp.org>
36238
36239         Mark 'raise' obsolete.
36240         * modules/raise (Status, Notice): New sections.
36241         (Include): Specify <signal.h>.
36242         * modules/stdio (Depends-on): Add raise.
36243         * modules/write (Depends-on): Likewise.
36244
36245 2008-11-02  Bruno Haible  <bruno@clisp.org>
36246
36247         Mark 'memset' obsolete.
36248         * modules/memset (Status, Notice): New sections.
36249
36250 2008-11-02  Bruno Haible  <bruno@clisp.org>
36251
36252         Mark 'memmove' obsolete.
36253         * modules/memmove (Status, Notice): New sections.
36254         * modules/argp (Depends-on): Add memmove.
36255         * modules/argz (Depends-on): Likewise.
36256         * modules/canonicalize (Depends-on): Likewise.
36257         * modules/canonicalize-lgpl (Depends-on): Likewise.
36258         * modules/fts (Depends-on): Likewise.
36259         * modules/getcwd (Depends-on): Likewise.
36260         * modules/human (Depends-on): Likewise.
36261         * modules/regex (Depends-on): Likewise.
36262         * modules/striconveh (Depends-on): Likewise.
36263         * modules/trim (Depends-on): Likewise.
36264         * modules/unistr/u8-move (Depends-on): Likewise.
36265         * modules/unistr/u16-move (Depends-on): Likewise.
36266         * modules/unistr/u32-move (Depends-on): Likewise.
36267
36268 2008-11-02  Bruno Haible  <bruno@clisp.org>
36269
36270         Mark 'memcpy' obsolete.
36271         * modules/memcpy (Status, Notice): New sections.
36272
36273 2008-11-02  Bruno Haible  <bruno@clisp.org>
36274
36275         Mark 'memcmp' obsolete.
36276         * modules/memcmp (Status, Notice): New sections.
36277         * modules/argmatch (Depends-on): Add memchr.
36278         * modules/backupfile (Depends-on): Likewise.
36279         * modules/c-strcasestr (Depends-on): Likewise.
36280         * modules/crypto/des (Depends-on): Likewise.
36281         * modules/csharpcomp (Depends-on): Likewise.
36282         * modules/fnmatch (Depends-on): Likewise.
36283         * modules/git-merge-changelog (Depends-on): Likewise.
36284         * modules/isnand (Depends-on): Likewise.
36285         * modules/isnand-nolibm (Depends-on): Likewise.
36286         * modules/isnanf (Depends-on): Likewise.
36287         * modules/isnanf-nolibm (Depends-on): Likewise.
36288         * modules/isnanl (Depends-on): Likewise.
36289         * modules/isnanl-nolibm (Depends-on): Likewise.
36290         * modules/mbchar (Depends-on): Likewise.
36291         * modules/memcoll (Depends-on): Likewise.
36292         * modules/quotearg (Depends-on): Likewise.
36293         * modules/regex (Depends-on): Likewise.
36294         * modules/relocatable-prog (Depends-on): Likewise.
36295         * modules/same (Depends-on): Likewise.
36296         * modules/signbit (Depends-on): Likewise.
36297         * modules/strcasestr-simple (Depends-on): Likewise.
36298         * modules/unictype/gen-ctype (Depends-on): Likewise.
36299         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36300         * modules/uniname/uniname (Depends-on): Likewise.
36301         * modules/unistr/u8-cmp (Depends-on): Likewise.
36302
36303 2008-11-02  Bruno Haible  <bruno@clisp.org>
36304
36305         Mark 'memchr' obsolete.
36306         * modules/memchr (Status, Notice): New sections.
36307         * modules/argp (Depends-on): Add memchr.
36308         * modules/base64 (Depends-on): Likewise.
36309         * modules/c-strcasestr (Depends-on): Likewise.
36310         * modules/chdir-long (Depends-on): Likewise.
36311         * modules/fnmatch (Depends-on): Likewise.
36312         * modules/getsubopt (Depends-on): Likewise.
36313         * modules/git-merge-changelog (Depends-on): Likewise.
36314         * modules/glob (Depends-on): Likewise.
36315         * modules/strcasestr-simple (Depends-on): Likewise.
36316         * modules/strnlen (Depends-on): Likewise.
36317
36318 2008-11-02  Bruno Haible  <bruno@clisp.org>
36319
36320         Mark 'atexit' obsolete.
36321         * modules/atexit (Status, Notice): New sections.
36322         * modules/chdir-long (Depends-on): Add atexit.
36323         * modules/wait-process (Depends-on): Likewise.
36324
36325 2008-11-02  Bruno Haible  <bruno@clisp.org>
36326
36327         * gnulib-tool: New option --with-obsolete.
36328         (func_usage): Document it.
36329         (func_modules_transitive_closure): Drop obsolete dependencies if
36330         incobsolete is not true.
36331         (func_import): Read and save the incobsolete variable to the cache.
36332
36333 2008-11-02  Bruno Haible  <bruno@clisp.org>
36334
36335         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36336         * gnulib-tool: New option --extract-status.
36337         (func_usage): Document it.
36338         (sed_extract_prog): Recognize it.
36339         (func_get_status): New function.
36340
36341 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36342
36343         * modules/sockets (License): Change from LGPL to LGPLv2+.
36344
36345 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36346
36347         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36348
36349 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36350
36351         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36352         Mention times and sys_times.
36353         * modules/sys_times, modules/sys_times-tests: New modules.
36354         * modules/times, modules/times-tests: Likewise
36355         * m4/sys_times_h.m4: New file.
36356         * lib/sys_times.in.h: Likewise
36357         * lib/times.c: Likewise.
36358         * tests/test-sys_times.c: Likewise.
36359         * tests/test-times.c: Likewise.
36360         * doc/posix-headers/sys_times.texi: Update.
36361         * doc/posix-functions/times.texi: Update.
36362
36363 2008-10-28  Jim Meyering  <meyering@redhat.com>
36364
36365         * modules/tempname (Depends-on): Add lstat.
36366
36367         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36368
36369 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36370
36371         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36372         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36373         using idiom used elsewhere in gnulib.
36374
36375 2008-10-27  Jim Meyering  <meyering@redhat.com>
36376
36377         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36378
36379 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36380
36381         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36382         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36383         programs.
36384         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36385
36386 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36387
36388         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36389
36390 2008-10-27  Bruno Haible  <bruno@clisp.org>
36391
36392         * tests/test-lstat.c: Include <stdio.h>.
36393
36394 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36395
36396         * modules/lstat-tests: New module.
36397         * tests/test-lstat.c: New file.
36398
36399 2008-10-26  Jim Meyering  <meyering@redhat.com>
36400
36401         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36402
36403 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36404             Bruno Haible  <bruno@clisp.org>
36405
36406         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36407         * modules/configmake (Include): Add a note that the include must come
36408         after all system headers.
36409         * lib/javaversion.c: Include configmake.h after all other includes.
36410
36411 2008-10-26  Bruno Haible  <bruno@clisp.org>
36412
36413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36414         HAVE_STRUCT_RANDOM_DATA to 1.
36415         (gl_STDLIB_H): Simplify.
36416
36417 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36418
36419         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36420         substitute HAVE_STRUCT_RANDOM_DATA.
36421         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36422         random_data.
36423         * modules/stdlib (Makefile.am): Substitute
36424         HAVE_STRUCT_RANDOM_DATA.
36425
36426 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36427
36428         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36429         * doc/gnulib-intro.texi (Copyright): Likewise.
36430
36431 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36432
36433         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36434         findings.
36435
36436 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36437             Bruno Haible  <bruno@clisp.org>
36438
36439         * lib/unistd.in.h: Include <winsock2.h>.
36440         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36441         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36442         Provide dummy declarations.
36443         (gethostname): Override.
36444         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36445         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36446         gl_PREREQ_SYS_H_WINSOCK2.
36447         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36448         * doc/posix-functions/gethostname.texi: More details.
36449
36450 2008-10-25  Bruno Haible  <bruno@clisp.org>
36451
36452         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36453         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36454         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36455
36456         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36457         here ...
36458         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36460         gl_UNISTD_H_DEFAULTS.
36461
36462 2008-10-25  Eric Blake  <ebb9@byu.net>
36463
36464         signbit: avoid spurious compiler failure
36465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36466         declarations inside function.
36467
36468 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36469             Bruno Haible  <bruno@clisp.org>
36470
36471         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36472         * modules/random_r (Depends-on): Add stdint.
36473
36474 2008-10-24  Bruno Haible  <bruno@clisp.org>
36475
36476         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36477         Eggert.
36478         * modules/strerror (License): Likewise.
36479
36480 2008-10-24  Jim Meyering  <meyering@redhat.com>
36481
36482         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36483         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36484
36485 2008-10-24  Eric Blake  <ebb9@byu.net>
36486
36487         getgroups: fix compilation when getgroups is available
36488         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36489         but with <config.h> override of getgroups disabled.
36490
36491 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36492
36493         * doc/gnulib.texi (Header files): Add note about C++ problems.
36494         Explained by Bruno Haible <bruno@clisp.org>.
36495
36496 2008-10-23  Bruno Haible  <bruno@clisp.org>
36497
36498         Define a dummy SA_NODEFER macro on Interix.
36499         * lib/signal.in.h (SA_NODEFER): Define fallback.
36500         Reported by Aleksey Cheusov <cheusov@tut.by> via
36501         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36502
36503 2008-10-23  Bruno Haible  <bruno@clisp.org>
36504
36505         * modules/freadahead (License): Change to LGPLv2+.
36506         Suggested by Simon Josefsson.
36507
36508 2008-10-23  Jim Meyering  <meyering@redhat.com>
36509
36510         random_r: new module
36511         * modules/random_r: New file.
36512         * m4/random_r.m4: New file.
36513         * lib/random_r.c: New file, from glibc.
36514         * modules/random_r-tests: New file.
36515         * tests/test-random_r.c: New file.
36516         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36517          Declare.
36518         (RAND_MAX): Define.
36519         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36520         * modules/stdlib: Substitute them, too.
36521         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36522         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36523         * doc/glibc-functions/random_r.texi: Likewise.
36524         * doc/glibc-functions/setstate_r.texi: Likewise.
36525         * doc/glibc-functions/srandom_r.texi: Likewise.
36526         * config/srclist.txt: Mention it.
36527
36528 2008-10-23  David Lutterkort  <lutter@redhat.com>
36529
36530         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36531         link requirement
36532
36533 2008-10-23  Jim Meyering  <meyering@redhat.com>
36534
36535         selinux-h: mark parameters of stub functions as intentionally unused
36536         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36537         * lib/se-context.in.h: Likewise.
36538
36539 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36540
36541         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36542
36543 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36544
36545         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36546
36547 2008-10-22  Eric Blake  <ebb9@byu.net>
36548
36549         glthread/thread: avoid compiler warning
36550         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36551         Add unreachable abort to silence compiler.
36552
36553 2008-10-22  Eric Blake  <ebb9@byu.net>
36554
36555         netdb: also supply struct addrinfo for cygwin 1.5.x
36556         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36557         older cygwin.
36558         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36559         cygwin.
36560         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36561
36562 2008-10-22  Bruno Haible  <bruno@clisp.org>
36563
36564         * users.txt: Update entry about pspp.
36565
36566 2008-10-21  Bruno Haible  <bruno@clisp.org>
36567
36568         Simplification.
36569         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36570         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36571
36572         Simplification.
36573         * lib/ioctl.c (ioctl): Don't undefine.
36574         * lib/socket.c (socket): Don't undefine.
36575
36576         Remove unused module indicator macros.
36577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36578         GNULIB_$1 as a C macro.
36579
36580         * doc/posix-functions/close.texi: Undo last change.
36581         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36582         Windows platforms.
36583
36584 2008-10-21  Bruno Haible  <bruno@clisp.org>
36585
36586         Add gethostname() declaration to <unistd.h>.
36587         * lib/unistd.in.h (gethostname): New declaration.
36588         * lib/gethostname.c: Include <unistd.h>.
36589         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36590         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36592         and HAVE_GETHOSTNAME.
36593         * modules/gethostname (Depends-on): Add unistd.
36594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36595         (Include): Specify <unistd.h>.
36596         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36597         HAVE_GETHOSTNAME.
36598         * tests/test-gethostname.c: Include <unistd.h> first.
36599
36600 2008-10-21  Bruno Haible  <bruno@clisp.org>
36601
36602         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36603         * modules/select-tests (Depends-on): Likewise.
36604         Reported by Simon Josefsson.
36605
36606 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36607
36608         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36609         * lib/accept.c: New file, based on winsock.c.
36610         * lib/bind.c: New file, based on winsock.c.
36611         * lib/connect.c: New file, based on winsock.c.
36612         * lib/getpeername.c: New file, based on winsock.c.
36613         * lib/getsockname.c: New file, based on winsock.c.
36614         * lib/getsockopt.c: New file, based on winsock.c.
36615         * lib/ioctl.c: New file, based on winsock.c.
36616         * lib/listen.c: New file, based on winsock.c.
36617         * lib/recv.c: New file, based on winsock.c.
36618         * lib/recvfrom.c: New file, based on winsock.c.
36619         * lib/send.c: New file, based on winsock.c.
36620         * lib/sendto.c: New file, based on winsock.c.
36621         * lib/setsockopt.c: New file, based on winsock.c.
36622         * lib/shutdown.c: New file, based on winsock.c.
36623         * lib/socket.c: New file, based on winsock.c.
36624         * lib/w32sock.h: New file, based on winsock.c.
36625         * lib/winsock.c: Remove file.
36626         * modules/accept: Likewise.
36627         * modules/bind: Likewise.
36628         * modules/connect: Likewise.
36629         * modules/getpeername: Likewise.
36630         * modules/getsockname: Likewise.
36631         * modules/getsockopt: Likewise.
36632         * modules/ioctl: Likewise.
36633         * modules/listen: Likewise.
36634         * modules/recv: Likewise.
36635         * modules/recvfrom: Likewise.
36636         * modules/send: Likewise.
36637         * modules/sendto: Likewise.
36638         * modules/setsockopt: Likewise.
36639         * modules/shutdown: Likewise.
36640         * modules/socket: Use socket.c instead of winsock.c.
36641         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36642         * doc/posix-functions/accept.texi: Doc fix.
36643         * doc/posix-functions/bind.texi: Doc fix.
36644         * doc/posix-functions/close.texi: Doc fix.
36645         * doc/posix-functions/connect.texi: Doc fix.
36646         * doc/posix-functions/getpeername.texi: Doc fix.
36647         * doc/posix-functions/getsockname.texi: Doc fix.
36648         * doc/posix-functions/getsockopt.texi: Doc fix.
36649         * doc/posix-functions/ioctl.texi: Doc fix.
36650         * doc/posix-functions/listen.texi: Doc fix.
36651         * doc/posix-functions/recv.texi: Doc fix.
36652         * doc/posix-functions/recvfrom.texi: Doc fix.
36653         * doc/posix-functions/send.texi: Doc fix.
36654         * doc/posix-functions/sendto.texi: Doc fix.
36655         * doc/posix-functions/setsockopt.texi: Doc fix.
36656         * doc/posix-functions/shutdown.texi: Doc fix.
36657         * doc/posix-functions/socket.texi: Doc fix.
36658
36659 2008-10-20  Bruno Haible  <bruno@clisp.org>
36660
36661         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36662         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36663         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36664         as an alias for SIGABRT.
36665         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36666         (sigaction): Map it to SIGABRT.
36667         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36668
36669 2008-10-20  Bruno Haible  <bruno@clisp.org>
36670
36671         * lib/fts.c: Don't include lstat.h.
36672         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36673
36674         Move the lstat() declaration to <sys/stat.h>.
36675         * lib/lstat.h: Remove file.
36676         * lib/sys_stat.in.h: Add special invocation convention.
36677         (lstat): New declaration.
36678         * lib/lstat.c (orig_lstat): New function.
36679         (rpl_lstat): Use orig_lstat instead of lstat.
36680         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36681         AC_C_INLINE. Set REPLACE_LSTAT.
36682         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36683         and REPLACE_LSTAT.
36684         * modules/lstat (Files): Remove lib/lstat.h.
36685         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36686         (Include): Specify <sys/stat.h> instead of lstat.h.
36687         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36688         REPLACE_LSTAT.
36689         * NEWS: Mention the change.
36690
36691 2008-10-20  Bruno Haible  <bruno@clisp.org>
36692
36693         * modules/posix_spawn-tests: New file.
36694         * tests/test-posix_spawn3.c: New file.
36695
36696 2008-10-20  Bruno Haible  <bruno@clisp.org>
36697
36698         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36699         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36700         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36701         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36702         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36703
36704 2008-10-20  Bruno Haible  <bruno@clisp.org>
36705
36706         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36707         of posix_spawn on AIX 5.3.
36708
36709 2008-10-20  Bruno Haible  <bruno@clisp.org>
36710
36711         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36712
36713 2008-10-20  Bruno Haible  <bruno@clisp.org>
36714
36715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36716         of AC_LANG_PROGRAM.
36717
36718 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36719
36720         * lib/netdb.in.h: Don't define GNU specific constants until they
36721         are supported or needed.  Reported by Bruno Haible
36722         <bruno@clisp.org>.
36723
36724 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36725
36726         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36727
36728 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36729
36730         * lib/getaddrinfo.h: Remove file.
36731         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36732         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36733         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36734         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36735         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36736         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36737         * tests/test-getaddrinfo.c: Likewise.
36738         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36739         * NEWS: Mention change.
36740
36741 2008-10-19  Bruno Haible  <bruno@clisp.org>
36742
36743         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36744
36745 2008-10-19  Bruno Haible  <bruno@clisp.org>
36746
36747         * lib/wait-process.c: Include simply <sys/wait.h>.
36748         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36749         WIFSTOPPED): Remove fallback definitions.
36750         * modules/wait-process (Depends-on): Add sys_wait.
36751
36752         New module 'sys_wait'.
36753         * modules/sys_wait: New file.
36754         * lib/sys_wait.in.h: New file, partially copied from
36755         lib/wait-process.c.
36756         * m4/sys_wait_h.m4: New file.
36757         * doc/posix-headers/sys_wait.texi: Mention the new module.
36758
36759 2008-10-19  Bruno Haible  <bruno@clisp.org>
36760
36761         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36762
36763 2008-10-19  Bruno Haible  <bruno@clisp.org>
36764
36765         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36766         * lib/wait-process.c (WAIT_T): Remove type.
36767         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36768         (wait_subprocess): Update.
36769
36770 2008-10-19  Bruno Haible  <bruno@clisp.org>
36771
36772         New module 'atoll'.
36773         * modules/atoll: New file.
36774         * lib/stdlib.in.h (atoll): New declaration.
36775         * lib/atoll.c: New file, from glibc with modifications.
36776         * m4/atoll.m4: New file.
36777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36778         HAVE_ATOLL.
36779         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36780         * doc/posix-functions/atoll.texi: Mention the new module.
36781
36782 2008-10-19  Bruno Haible  <bruno@clisp.org>
36783
36784         Add strtoull() declaration to <stdlib.h>.
36785         * lib/stdlib.in.h (strtoull): New declaration.
36786         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36787         Set HAVE_STRTOULL.
36788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36789         HAVE_STRTOULL.
36790         * modules/strtoull (Depends-on): Add stdlib.
36791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36792         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36793         HAVE_STRTOULL.
36794
36795 2008-10-19  Bruno Haible  <bruno@clisp.org>
36796
36797         Add strtoll() declaration to <stdlib.h>.
36798         * lib/stdlib.in.h (strtoll): New declaration.
36799         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36800         Set HAVE_STRTOLL.
36801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36802         HAVE_STRTOLL.
36803         * modules/strtoll (Depends-on): Add stdlib.
36804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36805         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36806
36807 2008-10-19  Bruno Haible  <bruno@clisp.org>
36808
36809         * modules/bcopy (Depends-on): Add strings.
36810         (Include): Specify <strings.h>.
36811
36812 2008-10-19  Bruno Haible  <bruno@clisp.org>
36813
36814         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36815
36816 2008-10-19  Bruno Haible  <bruno@clisp.org>
36817
36818         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36819         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36820         mingw.
36821
36822 2008-10-19  Bruno Haible  <bruno@clisp.org>
36823
36824         * lib/atanl.c: Don't include isnanl.h.
36825         * lib/cosl.c: Likewise.
36826         * lib/ldexpl.c: Likewise.
36827         * lib/logl.c: Likewise.
36828         * lib/sinl.c: Likewise.
36829         * lib/sqrtl.c: Likewise.
36830         * lib/tanl.c: Likewise.
36831
36832         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36833         * lib/isnanf.h: Remove file.
36834         * lib/isnand.h: Remove file.
36835         * lib/isnanl.h: Remove file.
36836         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36837         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36838         macros.
36839         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36840         HAVE_ISNANF, don't define it as a C macro.
36841         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36842         HAVE_ISNAND, don't define it as a C macro.
36843         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36844         HAVE_ISNANL, don't define it as a C macro.
36845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36846         HAVE_ISNAN[FDL].
36847         * modules/isnanf (Files): Remove lib/isnanf.h.
36848         (Depends-on): Add math.
36849         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36850         (Include): Specify <math.h> instead of isnanf.h.
36851         * modules/isnand (Files): Remove lib/isnand.h.
36852         (Depends-on): Add math.
36853         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36854         (Include): Specify <math.h> instead of isnand.h.
36855         * modules/isnanl (Files): Remove lib/isnanl.h.
36856         (Depends-on): Add math.
36857         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36858         (Include): Specify <math.h> instead of isnanl.h.
36859         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36860         HAVE_ISNAN[FDL].
36861         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36862         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36863         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36864         * NEWS: Mention the change.
36865
36866 2008-10-18  Bruno Haible  <bruno@clisp.org>
36867
36868         Add getusershell(), setusershell(), endusershell() declarations to
36869         <unistd.h>.
36870         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36871         declarations.
36872         * lib/getusershell.c: Include unistd.h.
36873         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36874         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36875         HAVE_GETUSERSHELL.
36876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36877         and HAVE_GETUSERSHELL.
36878         * modules/getusershell (Depends-on): Add unistd, extensions.
36879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36880         (Include): Specify <unistd.h>.
36881         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36882         HAVE_GETUSERSHELL.
36883
36884 2008-10-18  Bruno Haible  <bruno@clisp.org>
36885
36886         Add a getloadavg() declaration to <stdlib.h>.
36887         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36888         getloadavg declaration.
36889         (getloadavg): New declaration.
36890         * lib/getloadavg.c: Include <stdlib.h> first.
36891         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36892         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36893         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36895         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36896         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36897         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36898         (Include): Specify <stdlib.h>.
36899         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36900         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36901
36902 2008-10-18  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/dirchownmod.c: Don't include lchmod.h.
36905
36906         Move the lchmod() declaration to <sys/stat.h>.
36907         * lib/lchmod.h: Remove file.
36908         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36909         (lchmod): New declaration, moved here from lib/lchown.h.
36910         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36911         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36913         and HAVE_LCHMOD.
36914         * modules/lchmod (Files): Remove lib/lchmod.h.
36915         (Depends-on): Add sys_stat, extensions.
36916         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36917         (Include): Specify <sys/stat.h> instead of lchmod.h.
36918         * modules/sys_stat (Depends-on): Add link-warning.
36919         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36920         definition of GL_LINK_WARNING.
36921         * NEWS: Mention the change.
36922
36923 2008-10-18  Bruno Haible  <bruno@clisp.org>
36924
36925         * lib/fchdir.c: Don't include dirfd.h.
36926         * lib/fts.c: Likewise.
36927         * lib/getcwd.c: Likewise.
36928         * lib/glob.c: Likewise.
36929
36930         Move the dirfd() declaration to <dirent.h>.
36931         * lib/dirfd.h: Remove file.
36932         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36933         (dirfd): New declaration.
36934         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36936         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36937         HAVE_DECL_DIRFD.
36938         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36939         HAVE_DECL_DIRFD.
36940         * modules/dirfd (Files): Remove lib/dirfd.h.
36941         (Depends-on): Add dirent, extensions.
36942         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36943         (Include): Specify <dirent.h> instead of dirfd.h.
36944         * modules/dirent (Depends-on): Add link-warning.
36945         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36946         definition of GL_LINK_WARNING.
36947         * NEWS: Mention the change.
36948
36949 2008-10-18  Bruno Haible  <bruno@clisp.org>
36950
36951         Move the euidaccess() declaration to <unistd.h>.
36952         * lib/euidaccess.h: Remove file.
36953         * lib/unistd.in.h (euidaccess): New declaration.
36954         * lib/euidaccess.c: Don't include euidaccess.h.
36955         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36956         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36958         and HAVE_EUIDACCESS.
36959         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36960         (Depends-on): Add unistd.
36961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36962         (Include): Specify <unistd.h> instead of euidaccess.h.
36963         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36964         HAVE_EUIDACCESS.
36965         * NEWS: Mention the change.
36966
36967 2008-10-18  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36970
36971         Move the getdomainname() declaration to <unistd.h>.
36972         * lib/getdomainname.h: Remove file.
36973         * lib/unistd.in.h (getdomainname): New declaration.
36974         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36975         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36976         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36977         HAVE_GETDOMAINNAME.
36978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36979         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36980         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36981         (Depends-on): Add unistd, extensions.
36982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36983         (Includes): Specify <unistd.h> instead of getdomainname.h.
36984         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36985         HAVE_GETDOMAINNAME.
36986         * NEWS: Mention the change.
36987
36988 2008-10-18  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/dirent: New file.
36991         * m4/dirent_h.m4: New file.
36992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36993         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36994         * modules/fchdir (Files): Remove lib/dirent.in.h.
36995         (Depends-on): Add dirent.
36996         (Makefile.am): Move rules to modules/dirent.
36997         * doc/posix-headers/dirent.texi: Mention the new module.
36998
36999 2008-10-18  Bruno Haible  <bruno@clisp.org>
37000
37001         Avoid -Wunused-parameter warnings in public gnulib header files.
37002         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37003         macro.
37004         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37005
37006 2008-10-18  Bruno Haible  <bruno@clisp.org>
37007
37008         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37009         * doc/glibc-functions/error.texi: Mention the module 'error'.
37010         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37011         * doc/glibc-functions/getdomainname.texi: Mention the module
37012         'getdomainname'.
37013         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37014         * doc/glibc-functions/getpagesize.texi: Mention the module
37015         'getpagesize'.
37016         * doc/glibc-functions/getusershell.texi: Mention the module
37017         'getusershell'.
37018         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37019         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37020         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37021         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37022         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37023         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37024         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37025         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37026         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37027         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37028         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37029         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37030         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37031         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37032
37033 2008-10-17  Bruno Haible  <bruno@clisp.org>
37034
37035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37036         HP-UX and IRIX, use -0.0L.
37037         * tests/test-ceill.c (minus_zero): Likewise.
37038         * tests/test-floorl.c (minus_zero): Likewise.
37039         * tests/test-frexpl.c (minus_zero): Likewise.
37040         * tests/test-isnan.c (minus_zerol): Likewise.
37041         * tests/test-isnanl.h (minus_zero): Likewise.
37042         * tests/test-ldexpl.c (minus_zero): Likewise.
37043         * tests/test-roundl.c (minus_zero): Likewise.
37044         * tests/test-signbit.c (minus_zerol): Likewise.
37045         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
37046         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
37047         * tests/test-truncl.c (minus_zero): Likewise.
37048         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
37049         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
37050         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
37051         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
37052
37053 2008-10-17  Bruno Haible  <bruno@clisp.org>
37054
37055         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37056         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37057         that it gets activated only for gcc >= 3.0.
37058         * lib/dirent.in.h: Likewise.
37059         * lib/errno.in.h: Likewise.
37060         * lib/fcntl.in.h: Likewise.
37061         * lib/float.in.h: Likewise.
37062         * lib/iconv.in.h: Likewise.
37063         * lib/inttypes.in.h: Likewise.
37064         * lib/locale.in.h: Likewise.
37065         * lib/math.in.h: Likewise.
37066         * lib/netdb.in.h: Likewise.
37067         * lib/netinet_in.in.h: Likewise.
37068         * lib/search.in.h: Likewise.
37069         * lib/signal.in.h: Likewise.
37070         * lib/spawn.in.h: Likewise.
37071         * lib/stdarg.in.h: Likewise.
37072         * lib/stdint.in.h: Likewise.
37073         * lib/stdio.in.h: Likewise.
37074         * lib/stdlib.in.h: Likewise.
37075         * lib/string.in.h: Likewise.
37076         * lib/strings.in.h: Likewise.
37077         * lib/sys_file.in.h: Likewise.
37078         * lib/sys_ioctl.in.h: Likewise.
37079         * lib/sys_select.in.h: Likewise.
37080         * lib/sys_socket.in.h: Likewise.
37081         * lib/sys_stat.in.h: Likewise.
37082         * lib/sys_time.in.h: Likewise.
37083         * lib/sysexits.in.h: Likewise.
37084         * lib/time.in.h: Likewise.
37085         * lib/unistd.in.h: Likewise.
37086         * lib/wchar.in.h: Likewise.
37087         * lib/wctype.in.h: Likewise.
37088         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37089
37090 2008-10-17  Jim Meyering  <meyering@redhat.com>
37091
37092         ignore-value: don't depend on inline module
37093         * modules/ignore-value (Depends-on): Remove 'inline'.
37094         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37095         Suggestion from Bruno Haible.
37096
37097 2008-10-17  Bruno Haible  <bruno@clisp.org>
37098
37099         New implementation of condition variables for Win32.
37100         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37101         (gl_linked_waitqueue_t): New type.
37102         (gl_cond_t): Use it.
37103         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37104         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37105         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37106         (glthread_cond_init_func, glthread_cond_wait_func,
37107         glthread_cond_timedwait_func, glthread_cond_signal_func,
37108         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37109         Reimplemented on the basis of gl_linked_waitqueue_t.
37110         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37111         gl_waitqueue_t.
37112         (gl_rwlock_t): Update.
37113         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37114
37115 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37116
37117         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37118         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37119
37120 2008-10-17  Jim Meyering  <meyering@redhat.com>
37121
37122         ignore-value: new module
37123         * modules/ignore-value: New file.
37124         * lib/ignore-value.h: New file.
37125         * MODULES.html.sh (Compiler warning management): New section,
37126         just for this module.  More to come.
37127
37128 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37129
37130         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37131         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37132         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37133
37134 2008-10-16  Jim Meyering  <meyering@redhat.com>
37135
37136         openat-die.c: avoid 'no previous prototype' warning
37137         * lib/openat-die.c: Include "openat.h".
37138         Reported by Reuben Thomas <rrt@sc3d.org>.
37139
37140 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37141
37142         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37143         * lib/netdb.in.h: Fix typo.
37144         Reported by Bruno Haible  <bruno@clisp.org>
37145
37146         * lib/netdb.in.h: Include sys/socket.h for platforms without
37147         netdb.h, to get structures like hostent on MinGW.
37148         * modules/netdb (Depends-on): Add sys_socket.
37149
37150 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37151
37152         * modules/netdb, modules/netdb-tests: New file.
37153         * m4/netdb_h.m4: New file.
37154         * lib/netdb.in.h: Add, currently just an empty file pending
37155         definitions.
37156         * tests/test-netdb.c: New file.
37157         * doc/posix-headers/netdb.texi: Mention that we replace it if
37158         needed.
37159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37160         netdb.
37161
37162 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37163
37164         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37165         with code.
37166
37167 2008-10-13  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/glthread/cond.c (glthread_cond_wait_func,
37170         glthread_cond_timedwait_func): Add a comment.
37171
37172 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37173
37174         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37175         * tests/test-select.c: Likewise,
37176
37177 2008-10-13  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/glthread/cond.c (glthread_cond_wait_func,
37180         glthread_cond_timedwait_func): Fix variable name.
37181         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37182
37183 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37184
37185         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37186         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37187         struct sockaddr.sa_len.
37188         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37189
37190 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37191
37192         * build-aux/pmccabe2html: Add css and css_url parameters.
37193
37194 2008-10-12  Bruno Haible  <bruno@clisp.org>
37195
37196         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37197         calling aclx_get.
37198         Reported by Rainer Tammer <tammer@tammer.net>.
37199
37200 2008-10-12  Bruno Haible  <bruno@clisp.org>
37201
37202         Use msvcrt aware primitives for creation/termination of Win32 threads.
37203         * lib/glthread/thread.c: Include <process.h>.
37204         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37205         (wrapper_func): Update signature.
37206         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37207
37208 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37209             Bruno Haible  <bruno@clisp.org>
37210
37211         Provide a Win32 implementation of the 'cond' module.
37212         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37213         * lib/glthread/cond.c (glthread_cond_init_func,
37214         glthread_cond_wait_func, glthread_cond_timedwait_func,
37215         glthread_cond_signal_func, glthread_cond_broadcast_func,
37216         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37217         * modules/cond (Dependencies): Add gettimeofday.
37218
37219 2008-10-11  Bruno Haible  <bruno@clisp.org>
37220
37221         Make sleep work on older versions of mingw.
37222         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37223         only whether it exists.
37224         * doc/posix-functions/sleep.texi: Mention the problem with older
37225         versions of mingw.
37226
37227 2008-10-11  Bruno Haible  <bruno@clisp.org>
37228
37229         New module 'shutdown'.
37230         * modules/shutdown: New file.
37231         * lib/sys_socket.in.h (shutdown): New declaration.
37232         * lib/winsock.c (shutdown): New function.
37233         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37234         GNULIB_SHUTDOWN.
37235         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37236         * doc/posix-functions/shutdown.texi: Document the new module.
37237
37238 2008-10-11  Jim Meyering  <meyering@redhat.com>
37239
37240         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37241
37242 2008-10-11  Bruno Haible  <bruno@clisp.org>
37243
37244         New module 'fclose'.
37245         * modules/fclose: New file.
37246         * lib/stdio.in.h (fclose): New declaration.
37247         * lib/fclose.c: New file.
37248         * m4/fclose.m4: New file.
37249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37250         REPLACE_FCLOSE.
37251         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37252         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37253         REPLACE_FCLOSE.
37254         * modules/close (Depends-on): fclose.
37255         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37256
37257 2008-10-11  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37260         set errno and don't call _close.
37261
37262 2008-10-10  Bruno Haible  <bruno@clisp.org>
37263
37264         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37265         ACL, not afterwards. Fixes test failure on Cygwin.
37266
37267 2008-10-09  Ben Pfaff  <blp@gnu.org>
37268
37269         * build-aux/announce-gen: Fix gnulib version related part of usage
37270         message.  Die with a useful error message if no tarballs are
37271         found.
37272
37273 2008-10-10  Jim Meyering  <meyering@redhat.com>
37274
37275         bootstrap: use git's --depth=N option only if it's supported
37276         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37277         recognize the --depth option.  Reported by Pádraig Brady.
37278
37279 2008-10-09  Bruno Haible  <bruno@clisp.org>
37280
37281         New module 'ioctl'.
37282         * modules/ioctl: New file.
37283         * lib/sys_socket.in.h (ioctl): Remove declaration.
37284         * lib/winsock.c: Include <sys/ioctl.h>.
37285         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37286         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37287         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37288         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37289         * doc/posix-functions/ioctl.texi: Mention the new module.
37290
37291 2008-10-09  Bruno Haible  <bruno@clisp.org>
37292
37293         New module 'sys_ioctl'.
37294         * lib/sys_ioctl.in.h: New file.
37295         * m4/sys_ioctl_h.m4: New file.
37296         * modules/sys_ioctl: New file.
37297         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37298
37299 2008-10-09  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37302         * lib/winsock.c: Include <stdarg.h>.
37303         (rpl_ioctl): Change to second argument 'int' and then varargs.
37304
37305 2008-10-09  Bruno Haible  <bruno@clisp.org>
37306
37307         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37308         when the sys_socket module is present and the system has <winsock2.h>.
37309
37310 2008-10-09  Bruno Haible  <bruno@clisp.org>
37311
37312         * doc/posix-functions/close.texi: Mention module 'close' instead of
37313         module 'sys_socket'.
37314
37315 2008-10-09  Bruno Haible  <bruno@clisp.org>
37316
37317         * doc/glibc-headers/sys_ioctl.texi: New file.
37318         * doc/gnulib.texi: Include it.
37319
37320 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37321             Bruno Haible  <bruno@clisp.org>
37322
37323         Combine the two replacements of 'close'.
37324         * lib/sys_socket.in.h (close): Define to a reminder to include
37325         <unistd.h>.
37326         (_gl_close_fd_maybe_socket): New declaration.
37327         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37328         * lib/winsock.c (close): Remove undefinition.
37329         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37330         needed for the gnulib module 'close'.
37331         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37332         define to an error symbol or to a warning, if suitable.
37333         * lib/close.c: Include <sys/socket.h>.
37334         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37335         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37336         UNISTD_H_HAVE_WINSOCK2_H.
37337         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37339         UNISTD_H_HAVE_WINSOCK2_H.
37340         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37341         (configure.ac): Set a module indicator.
37342         (Makefile.am): Substitute GNULIB_CLOSE.
37343         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37344         * modules/poll-tests (Depends-on): Add close.
37345         * modules/select-tests (Depends-on): Likewise.
37346
37347 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37348             Bruno Haible  <bruno@clisp.org>
37349
37350         New module 'close'.
37351         * modules/close: New file.
37352         * lib/unistd.in.h (close): Move declaration out of the
37353         FCHDIR_REPLACEMENT scope.
37354         (_gl_unregister_fd): New declaration.
37355         * lib/close.c: New file.
37356         * lib/fchdir.c (rpl_close): Remove function.
37357         * m4/close.m4: New file.
37358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37359         close.
37360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37361         REPLACE_CLOSE.
37362         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37363         REPLACE_CLOSE.
37364         * modules/fchdir (Depends-on): Add close.
37365
37366 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37367             Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/fcntl.in.h (open): Simplify conditionals.
37370         (_gl_register_fd): New declaration.
37371         * lib/fchdir.c (rpl_open): Remove function.
37372         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37373         also.
37374         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37376         open.
37377
37378 2008-10-09  Jim Meyering  <meyering@redhat.com>
37379
37380         GNUmakefile: use the more name-space-friendly "_version"
37381         * top/GNUmakefile (_dummy): Update.
37382         (_version): Rename from "version".
37383
37384 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37385             Bruno Haible  <bruno@clisp.org>
37386
37387         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37388         rpl_close.
37389         (_gl_register_fd): New function, extracted from rpl_open.
37390         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37391         (rpl_open, rpl_opendir): Use _gl_register_fd.
37392
37393 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37394
37395         Fix organization of 'open' replacement.
37396         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37397         (gl_FUNC_OPEN): Use it.
37398         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37399
37400 2008-10-08  Bruno Haible  <bruno@clisp.org>
37401
37402         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37403
37404 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37405
37406         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37407         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37408         listen).
37409
37410 2008-10-08  Eric Blake  <ebb9@byu.net>
37411
37412         GNUmakefile: add 'make version' target
37413         * top/GNUmakefile (_curr-ver): Split version update rules...
37414         (version): ...into a target.
37415
37416 2008-10-07  Bruno Haible  <bruno@clisp.org>
37417
37418         Use a more portable replacement expression for -0.0L.
37419         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37420         instead of -0.0L. Fix m4 quotation.
37421
37422         * tests/test-signbit.c: Include <float.h>.
37423         (minus_zero): New variable.
37424         (test_signbitl): Use minus_zero instead of -zero.
37425         * modules/signbit-tests (Depends-on): Add float.
37426
37427         * tests/test-ceill.c: Include <float.h>.
37428         (zero): Remove variable.
37429         (minus_zero): New variable.
37430         (main): Use minus_zero instead of -zero.
37431         * modules/ceill-tests (Depends-on): Add float.
37432
37433         * tests/test-floorl.c: Include <float.h>.
37434         (zero): Remove variable.
37435         (minus_zero): New variable.
37436         (main): Use minus_zero instead of -zero.
37437         * modules/floorl-tests (Depends-on): Add float.
37438
37439         * tests/test-roundl.c: Include <float.h>.
37440         (zero): Remove variable.
37441         (minus_zero): New variable.
37442         (main): Use minus_zero instead of -zero.
37443         * modules/roundl-tests (Depends-on): Add float.
37444
37445         * tests/test-truncl.c: Include <float.h>.
37446         (zero): Remove variable.
37447         (minus_zero): New variable.
37448         (main): Use minus_zero instead of -zero.
37449         * modules/truncl-tests (Depends-on): Add float.
37450
37451         * tests/test-frexpl.c (zero): Remove variable.
37452         (minus_zero): New variable.
37453         (main): Use minus_zero instead of -zero.
37454         * modules/frexpl-tests (Depends-on): Add float.
37455
37456         * tests/test-isnan.c (zerol): Remove variable.
37457         (minus_zerol): New variable.
37458         (test_long_double): Use minus_zerol instead of -zerol.
37459         * modules/isnan-tests (Depends-on): Add float.
37460
37461         * tests/test-isnanl.h (zero): Remove variable.
37462         (minus_zero): New variable.
37463         (main): Use minus_zero instead of -zero.
37464         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37465         * modules/isnanl-tests (Depends-on): Add float.
37466
37467         * tests/test-ldexpl.c (zero): Remove variable.
37468         (minus_zero): New variable.
37469         (main): Use minus_zero instead of -zero.
37470         * modules/ldexpl-tests (Depends-on): Add float.
37471
37472         * tests/test-snprintf-posix.h (zerol): Remove variable.
37473         (minus_zerol): New variable.
37474         (test_function): Use minus_zerol instead of -zerol.
37475         * modules/snprintf-posix-tests (Depends-on): Add float.
37476         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37477
37478         * tests/test-sprintf-posix.h (zerol): Remove variable.
37479         (minus_zerol): New variable.
37480         (test_function): Use minus_zerol instead of -zerol.
37481         * modules/sprintf-posix-tests (Depends-on): Add float.
37482         * modules/vsprintf-posix-tests (Depends-on): Add float.
37483
37484         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37485         (minus_zerol): New variable.
37486         (test_function): Use minus_zerol instead of -zerol.
37487         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37488
37489         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37490         (minus_zerol): New variable.
37491         (test_function): Use minus_zerol instead of -zerol.
37492         * modules/vasprintf-posix-tests (Depends-on): Add float.
37493
37494 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37495
37496         * MODULES.html.sh (Support for building documentation): Mention
37497         pmccabe2html.  Sort entries.
37498
37499         Add pmccabe2html module, from gnupdf.
37500         * build-aux/pmccabe.css: New file.
37501         * build-aux/pmccabe2html: New file.
37502         * m4/pmccabe2html.m4: New file.
37503         * modules/pmccabe2html: New file.
37504
37505 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37506
37507         flock: new module
37508         * MODULES.html.sh: Add to list of modules.
37509         * lib/flock.c: flock implementation for Windows and Unix systems
37510         which have fcntl.
37511         * doc/glibc-functions/flock.texi: Update documentation.
37512         * lib/sys_file.in.h: <sys/file.h> header file.
37513         * m4/flock.m4: M4 macros.
37514         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37515         * modules/flock: flock module.
37516         * modules/flock-tests: flock tests module.
37517         * modules/sys_file: sys/file.h module.
37518         * tests/test-flock.c: test suite for flock.
37519
37520 2008-10-06  Jim Meyering  <meyering@redhat.com>
37521
37522         bootstrap: check for LT_INIT more portably still ;-)
37523         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37524         Spotted by Bruno Haible.
37525
37526 2008-10-06  Eric Blake  <ebb9@byu.net>
37527
37528         test-signbit: avoid tripping Irix cc bug on -0.0L
37529         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37530         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37531         entire testsuite consistent and avoids an Irix 6.2 bug.
37532
37533 2008-10-05  Bruno Haible  <bruno@clisp.org>
37534             Jim Meyering  <jim@meyering.net>
37535
37536         Add an option for ignoring EPIPE during close_stdout.
37537         * lib/closeout.h: Include <stdbool.h>.
37538         (close_stdout_set_ignore_EPIPE): New declaration.
37539         * lib/closeout.c: Include <stdbool.h>.
37540         (ignore_EPIPE): New variable.
37541         (close_stdout_set_ignore_EPIPE): New function.
37542         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37543         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37544         failure.
37545         * modules/closeout (Depends-on): Add stdbool.
37546
37547 2008-10-05  Bruno Haible  <bruno@clisp.org>
37548
37549         * modules/accept: New file.
37550         * modules/bind: New file.
37551         * modules/connect: New file.
37552         * modules/getpeername: New file.
37553         * modules/getsockname: New file.
37554         * modules/getsockopt: New file.
37555         * modules/listen: New file.
37556         * modules/recv: New file.
37557         * modules/recvfrom: New file.
37558         * modules/send: New file.
37559         * modules/sendto: New file.
37560         * modules/setsockopt: New file.
37561         * modules/socket: New file.
37562         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37563         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37564         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37565         the particular module is requested. Add a link warning when the
37566         particular module is not requested.
37567         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37568         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37569         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37570         the particular module is requested.
37571         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37572         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37573         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37574         * modules/sys_socket (Depends-on): Add link-warning.
37575         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37576         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37577         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37578         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37579         GL_LINK_WARNING.
37580         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37581         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37582         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37583         * doc/posix-functions/getpeername.texi: Mention the new module
37584         'getpeername'.
37585         * doc/posix-functions/getsockname.texi: Mention the new module
37586         'getsockname'.
37587         * doc/posix-functions/getsockopt.texi: Mention the new module
37588         'getsockopt'.
37589         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37590         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37591         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37592         * doc/posix-functions/send.texi: Mention the new module 'send'.
37593         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37594         * doc/posix-functions/setsockopt.texi: Mention the new module
37595         'setsockopt'.
37596         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37597         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37598         listen, connect, accept.
37599         * modules/select-tests (Depends-on): Likewise.
37600
37601 2008-10-05  Bruno Haible  <bruno@clisp.org>
37602
37603         * lib/winsock.c (strerror): Remove unused #undef.
37604         (rpl_close): Remove unused local variable.
37605
37606         * modules/sys_socket (Depends-on); Add errno.
37607
37608 2008-10-05  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37611         (select): Add a link warning when the 'select' module is not used.
37612         * modules/sys_select (Depends-on): Add link-warning.
37613         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37614         Suggested by Paolo Bonzini.
37615
37616 2008-10-05  Jim Meyering  <meyering@redhat.com>
37617
37618         bootstrap: check for LT_INIT more portably
37619         * build-aux/bootstrap: Avoid using grep -E, since it's not
37620         portable enough.  Suggestion from Bruno Haible.
37621
37622 2008-10-05  Bruno Haible  <bruno@clisp.org>
37623
37624         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37625         as being fixed by gnulib.
37626
37627 2008-10-05  Bruno Haible  <bruno@clisp.org>
37628
37629         * modules/select-tests: New file, mostly copied from
37630         modules/sys_select-tests.
37631         * tests/test-select.c: New file, mostly copied from
37632         tests/test-sys_select.c.
37633         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37634         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37635         (Makefile.am): Remove test_sys_select_LDADD.
37636
37637         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37638         to an undefined symbol, for an error message.
37639         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37640         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37641         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37642         winsock-select.c here.
37643         * modules/sys_select (Files): Remove lib/winsock-select.c.
37644         (Depends-on): Remove alloca.
37645         (Makefile.am): Substitute GNULIB_SELECT.
37646         * modules/select: New file.
37647         * doc/posix-functions/select.texi: Update.
37648
37649 2008-10-05  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37652         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37653         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37654         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37655         getdtablesize.
37656         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37657         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37658
37659 2008-10-05  Bruno Haible  <bruno@clisp.org>
37660
37661         * modules/getdtablesize-tests: New file.
37662         * tests/test-getdtablesize.c: New file.
37663
37664         New module 'getdtablesize'.
37665         * lib/unistd.in.h (getdtablesize): New declaration.
37666         * lib/getdtablesize.c: New file.
37667         * m4/getdtablesize.m4: New file.
37668         * modules/getdtablesize: New file.
37669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37670         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37671         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37672         HAVE_GETDTABLESIZE.
37673         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37674
37675 2008-10-05  Bruno Haible  <bruno@clisp.org>
37676
37677         * modules/sched (Makefile.am): Fix typo.
37678         Reported by Simon Josefsson.
37679
37680 2008-10-05  Jim Meyering  <meyering@redhat.com>
37681
37682         bootstrap: check for LT_INIT, too
37683         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37684         are deprecated.  Suggestion from Ralf Wildenhues.
37685
37686 2008-10-05  Bruno Haible  <bruno@clisp.org>
37687
37688         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37689         overriding them by ours.
37690         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37691
37692 2008-10-05  Jim Meyering  <meyering@redhat.com>
37693
37694         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37695         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37696         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37697
37698 2008-10-04  Bruno Haible  <bruno@clisp.org>
37699
37700         * modules/dup2 (License): Change to LGPLv2+.
37701         * modules/sleep (License): Likewise.
37702         * modules/perror (License): Likewise.
37703         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37704         Blake.
37705         * modules/signal (License): Likewise.
37706         * modules/sigprocmask (License): Likewise.
37707         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37708         Meyering.
37709
37710 2008-10-04  Bruno Haible  <bruno@clisp.org>
37711
37712         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37713         Reported by Rainer Tammer <tammer@tammer.net>.
37714
37715 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37716             Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37719         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37720         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37721
37722 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37723
37724         filevercmp: new module
37725         * lib/filevercmp.h: New function filevercmp comparing version strings.
37726         * lib/filevercmp.c: Implementation of filevercmp function.
37727         * modules/filevercmp: Module metadata.
37728         * tests/test-filevercmp.c: Unit test for new module.
37729         * modules/filevercmp-tests: Unit test metadata.
37730         * MODULES.html.sh: Add filevercmp module.
37731
37732 2008-10-03  Bruno Haible  <bruno@clisp.org>
37733
37734         * lib/c-ctype.h: Add comment.
37735         Reported by Jim Meyering.
37736
37737 2008-10-02  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37740
37741 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37742
37743         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37744         name of bootstrap.conf accordingly.
37745
37746 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37747
37748         * build-aux/bootstrap: Install git-merge-changelog configuration
37749         items into .gitconfig if needed.
37750
37751 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37752
37753         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37754         git repository, and initialize/update it accordingly.
37755
37756 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37757
37758         * modules/fsync-tests: New file.
37759         * tests/test-fsync.c: New file.
37760
37761         New module 'fsync'.
37762         * lib/fsync.c: New file.
37763         * m4/fsync.m4: New file.
37764         * modules/fsync: New file.
37765         * lib/unistd.in.h (fsync): New declaration.
37766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37767         GNULIB_FSYNC and HAVE_FSYNC.
37768         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37769         * MODULES.html.sh (posix_functions): Add fsync.
37770         * doc/posix-functions/fsync.texi: Mention the new module.
37771
37772 2008-10-02  Jim Meyering  <meyering@redhat.com>
37773
37774         fts.c: sync with similar code from coreutils' remove.c
37775         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37776         Guard also with "#if defined __linux__", since for now at least,
37777         this code is Linux-kernel-specific.
37778
37779 2008-10-02  Jim Meyering  <meyering@redhat.com>
37780
37781         fts: bug fixes
37782         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37783         Include <sys/vfs.h>, not <sys/statfs.h>.
37784
37785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37786         Include <sys/vfs.h>, not <sys/statfs.h>.
37787
37788 2008-10-01  Bruno Haible  <bruno@clisp.org>
37789
37790         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37792         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37793         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37794         * doc/posix-functions/posix_spawnp.texi: Likewise.
37795         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37796         whether posix_spawn actually works.
37797         * m4/pipe.m4 (gl_PIPE): Likewise.
37798         * modules/execute (Files): Add m4/posix_spawn.m4.
37799         * modules/pipe (Files): Add m4/posix_spawn.m4.
37800         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37801
37802 2008-10-01  Jim Meyering  <meyering@redhat.com>
37803
37804         remove trailing spaces
37805         * NEWS: Likewise.
37806         * lib/poll.c (poll): Likewise.
37807         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37808         * lib/winsock.c (rpl_close): Likewise.
37809         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37810         * modules/yield: Likewise.
37811         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37812         * tests/test-sys_select.c (connect_to_socket): Likewise.
37813
37814         fts.c: adjust a new interface to be more generally useful
37815         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37816         (fts_build): Adjust caller.
37817
37818 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37819
37820         * modules/cond-tests: New file.
37821         * tests/test-cond.c: New file.
37822
37823 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37824             Bruno Haible  <bruno@clisp.org>
37825
37826         * modules/cond (Dependencies): Add errno, time.
37827         * lib/glthread/cond.h: Include <time.h>.
37828         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37829         across platforms.
37830
37831 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37832             Bruno Haible  <bruno@clisp.org>
37833
37834         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37835
37836 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37837             Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/tls-tests (Depends-on): Add thread, yield.
37840         (configure.ac): Remove all checks.
37841         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37842         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37843         gl_thread_self): Remove definitions. Include glthread/thread.h and
37844         glthread/yield.h instead.
37845         (test_tls): Pass an additional NULL argument to gl_thread_join.
37846
37847 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37848             Bruno Haible  <bruno@clisp.org>
37849
37850         * modules/lock-tests (Depends-on): Add thread, yield.
37851         (configure.ac): Remove all checks.
37852         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37853         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37854         gl_thread_self): Remove definitions. Include glthread/thread.h and
37855         glthread/yield.h instead.
37856         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37857         additional NULL argument to gl_thread_join.
37858
37859 2008-09-30  Bruno Haible  <bruno@clisp.org>
37860
37861         Fix the Win32 implementation of the 'thread' module.
37862         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37863         pointer type.
37864         (gl_thread_self): Invoke gl_thread_self_func.
37865         (gl_thread_self_func): New declaration.
37866         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37867         (do_init_self_key, init_self_key): New functions.
37868         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37869         Remove some fields.
37870         (running_threads, running_lock): Remove variables.
37871         (get_current_thread_handle): New function.
37872         (gl_thread_self_func, wrapper_func, glthread_create_func,
37873         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37874         simplified.
37875
37876 2008-09-30  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37879         files.
37880
37881 2008-09-30  Jim Meyering  <meyering@redhat.com>
37882
37883         fts.m4: correct the test for statfs.f_type
37884         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37885         when checking for statfs.f_type.
37886
37887 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37888
37889         tests: avoid some compiler warnings
37890         * tests/test-memchr.c (main): Pass NULL indirectly.
37891         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37892
37893 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37894
37895         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37896         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37897         exactly specified dayshifts.
37898         (dayshift): New rule.
37899         (rel): Add dayshift.
37900         (relative_time_table) [tomorrow, yesterday, today, now]:
37901         Use tDAY_SHIFT in place of tDAY_UNIT.
37902         * tests/test-getdate.c: Add tests for now-disallowed countable
37903         dayshifts, e.g., "4 yesterday ago".
37904
37905 2008-09-29  Bruno Haible  <bruno@clisp.org>
37906
37907         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37908         * tests/test-posix_spawn1.in.sh: Renamed from
37909         tests/test-posix_spawn.in.sh.
37910         * tests/test-posix_spawn2.c: New file.
37911         * tests/test-posix_spawn2.in.sh: New file.
37912         * modules/posix_spawnp-tests (Files): Update.
37913         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37914
37915 2008-09-29  Bruno Haible  <bruno@clisp.org>
37916
37917         Propagate effects of putenv/setenv/unsetenv to child processes.
37918         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37919         * lib/pipe.c (create_pipe): Likewise.
37920
37921 2008-09-29  Bruno Haible  <bruno@clisp.org>
37922
37923         Enable use of shell scripts as executables in mingw.
37924         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37925         run the program as a shell script.
37926         * lib/pipe.c (create_pipe): Likewise.
37927         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37928         resulting array.
37929
37930 2008-09-29  Eric Blake  <ebb9@byu.net>
37931
37932         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37933
37934 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37935
37936         * doc/posix-functions/accept.texi: Update mingw problems.
37937         * doc/posix-functions/bind.texi: Update mingw problems.
37938         * doc/posix-functions/close.texi: Update mingw problems.
37939         * doc/posix-functions/connect.texi: Update mingw problems.
37940         * doc/posix-functions/getpeername.texi: Update mingw problems.
37941         * doc/posix-functions/getsockname.texi: Update mingw problems.
37942         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37943         * doc/posix-functions/ioctl.texi: Update mingw problems.
37944         * doc/posix-functions/listen.texi: Update mingw problems.
37945         * doc/posix-functions/recv.texi: Update mingw problems.
37946         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37947         * doc/posix-functions/select.texi: Update mingw problems.
37948         * doc/posix-functions/send.texi: Update mingw problems.
37949         * doc/posix-functions/sendto.texi: Update mingw problems.
37950         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37951         * doc/posix-functions/socket.texi: Update mingw problems.
37952
37953 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37954             Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/sys_select.in.h: Include sys/time.h.
37957         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37958         * modules/sys_select: Depend on sys_time.
37959         * tests/test-sys_select.c: Test that sys/select.h defines struct
37960         timeval fully.
37961
37962 2008-09-29  Bruno Haible  <bruno@clisp.org>
37963
37964         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37965         * lib/sys_select.in.h: Likewise.
37966
37967 2008-09-29  Bruno Haible  <bruno@clisp.org>
37968
37969         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37970
37971 2008-09-29  Bruno Haible  <bruno@clisp.org>
37972
37973         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37974         Set LIBSOCKET instead of augmenting LIBS.
37975         * modules/sockets (Link): New section.
37976         * modules/sockets-tests (test_sockets_LDADD): New variable.
37977         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37978         * modules/poll-tests (test_poll_LDADD): New variable.
37979         * NEWS: Document the change.
37980
37981 2008-09-29  Bruno Haible  <bruno@clisp.org>
37982
37983         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37984         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37985         ARPA_INET_H directly.
37986         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37987
37988 2008-09-28  Bruno Haible  <bruno@clisp.org>
37989
37990         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37991         from gl_HEADER_SYS_SOCKET.
37992         (gl_HEADER_SYS_SOCKET): Invoke it.
37993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37994
37995 2008-09-28  Bruno Haible  <bruno@clisp.org>
37996
37997         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37998         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37999         Needed on OSF/1 4.0.
38000
38001 2008-09-28  Bruno Haible  <bruno@clisp.org>
38002
38003         Override open more carefully.
38004         * lib/open.c (orig_open): New function.
38005         (rpl_open): Use orig_open instead of open.
38006         * lib/fcntl.in.h: Add special invocation convention.
38007         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38008         (gl_FUNC_OPEN): Invoke it.
38009
38010         Override freopen more carefully.
38011         * lib/freopen.c (orig_freopen): New function.
38012         (rpl_freopen): Use orig_freopen instead of freopen.
38013         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38014         (gl_FUNC_FREOPEN): Invoke it.
38015
38016         Override fopen more carefully.
38017         * lib/fopen.c (orig_fopen): New function.
38018         (rpl_fopen): Use orig_fopen instead of fopen.
38019         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38020         (gl_FUNC_FOPEN): Invoke it.
38021         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38022
38023 2008-09-28  Bruno Haible  <bruno@clisp.org>
38024
38025         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38026         SIGPIPE.
38027
38028 2008-09-28  Bruno Haible  <bruno@clisp.org>
38029
38030         * tests/test-sigaction.c (handler, main): Disable the check whether
38031         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38032         glibc systems with LinuxThreads.
38033
38034 2008-09-28  Bruno Haible  <bruno@clisp.org>
38035
38036         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38037
38038         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38039         with AIX xlc.
38040         * lib/fcntl.in.h (open): Likewise.
38041         Reported by Rainer Tammer <tammer@tammer.net>.
38042
38043 2008-09-28  Bruno Haible  <bruno@clisp.org>
38044
38045         * modules/posix_spawnp-tests: New file.
38046         * tests/test-posix_spawn.c: New file.
38047         * tests/test-posix_spawn.in.sh: New file.
38048
38049         New module 'posix_spawnp'.
38050         * modules/posix_spawnp: New file.
38051         * lib/spawnp.c: New file, from GNU libc with modifications.
38052         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
38053
38054         New module 'posix_spawn'.
38055         * modules/posix_spawn: New file.
38056         * lib/spawn.c: New file, from GNU libc with modifications.
38057         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38058
38059         New module 'posix_spawnattr_destroy'.
38060         * modules/posix_spawnattr_destroy: New file.
38061         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38062         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38063         module.
38064
38065         New module 'posix_spawnattr_setsigmask'.
38066         * modules/posix_spawnattr_setsigmask: New file.
38067         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38068         modifications.
38069         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38070         new module.
38071
38072         New module 'posix_spawnattr_getsigmask'.
38073         * modules/posix_spawnattr_getsigmask: New file.
38074         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38075         modifications.
38076         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38077         new module.
38078
38079         New module 'posix_spawnattr_setsigdefault'.
38080         * modules/posix_spawnattr_setsigdefault: New file.
38081         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38082         modifications.
38083         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38084         new module.
38085
38086         New module 'posix_spawnattr_getsigdefault'.
38087         * modules/posix_spawnattr_getsigdefault: New file.
38088         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38089         modifications.
38090         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38091         new module.
38092
38093         New module 'posix_spawnattr_setschedpolicy'.
38094         * modules/posix_spawnattr_setschedpolicy: New file.
38095         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38096         modifications.
38097         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38098         new module.
38099
38100         New module 'posix_spawnattr_getschedpolicy'.
38101         * modules/posix_spawnattr_getschedpolicy: New file.
38102         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38103         modifications.
38104         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38105         new module.
38106
38107         New module 'posix_spawnattr_setschedparam'.
38108         * modules/posix_spawnattr_setschedparam: New file.
38109         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38110         modifications.
38111         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38112         new module.
38113
38114         New module 'posix_spawnattr_getschedparam'.
38115         * modules/posix_spawnattr_getschedparam: New file.
38116         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38117         modifications.
38118         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38119         new module.
38120
38121         New module 'posix_spawnattr_setpgroup'.
38122         * modules/posix_spawnattr_setpgroup: New file.
38123         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38124         modifications.
38125         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38126         module.
38127
38128         New module 'posix_spawnattr_getpgroup'.
38129         * modules/posix_spawnattr_getpgroup: New file.
38130         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38131         modifications.
38132         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38133         module.
38134
38135         New module 'posix_spawnattr_setflags'.
38136         * modules/posix_spawnattr_setflags: New file.
38137         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38138         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38139         module.
38140
38141         New module 'posix_spawnattr_getflags'.
38142         * modules/posix_spawnattr_getflags: New file.
38143         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38144         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38145         module.
38146
38147         New module 'posix_spawnattr_init'.
38148         * modules/posix_spawnattr_init: New file.
38149         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38150         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38151         module.
38152
38153         New module 'posix_spawn_file_actions_destroy'.
38154         * modules/posix_spawn_file_actions_destroy: New file.
38155         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38156         modifications.
38157         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38158         the new module.
38159
38160         New module 'posix_spawn_file_actions_addopen'.
38161         * modules/posix_spawn_file_actions_addopen: New file.
38162         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38163         modifications.
38164         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38165         the new module.
38166
38167         New module 'posix_spawn_file_actions_adddup2'.
38168         * modules/posix_spawn_file_actions_adddup2: New file.
38169         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38170         modifications.
38171         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38172         the new module.
38173
38174         New module 'posix_spawn_file_actions_addclose'.
38175         * modules/posix_spawn_file_actions_addclose: New file.
38176         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38177         modifications.
38178         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38179         the new module.
38180
38181         New module 'posix_spawn_file_actions_init'.
38182         * modules/posix_spawn_file_actions_init: New file.
38183         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38184         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38185         new module.
38186
38187         New module 'posix_spawn-internal'.
38188         * modules/posix_spawn-internal: New file.
38189         * lib/spawn_int.h: New file, from GNU libc with modifications.
38190         * lib/spawni.c: New file, from GNU libc with modifications.
38191         * m4/posix_spawn.m4: New file.
38192
38193         New module 'spawn'.
38194         * modules/spawn: New file.
38195         * lib/spawn.in.h: New file, from GNU libc with modifications.
38196         * m4/spawn_h.m4: New file.
38197         * doc/posix-headers/spawn.texi: Mention the new module.
38198
38199 2008-09-28  Bruno Haible  <bruno@clisp.org>
38200
38201         * modules/sched-tests: New file.
38202         * tests/test-sched.c: New file.
38203
38204         New module 'sched'.
38205         * modules/sched: New file.
38206         * lib/sched.in.h: New file.
38207         * m4/sched_h.m4: New file.
38208         * doc/posix-headers/sched.texi: Mention the new module.
38209
38210 2008-09-27  Eric Blake  <ebb9@byu.net>
38211
38212         Fix previous patch, and tweak references to $0.
38213         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38214         (func_version, func_gnulib_dir): Don't call this program
38215         gnulib-tool.
38216         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38217         with using $0 in function.
38218         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38219         (func_fatal_error): Reuse the name the user invoked us with.
38220
38221 2008-09-27  Bruno Haible  <bruno@clisp.org>
38222
38223         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38224         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38225         (gl_ICONV_H): Not here.
38226         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38227         instead of assigning ICONV_H directly.
38228
38229         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38231         WCHAR_H directly.
38232
38233 2008-09-27  Bruno Haible  <bruno@clisp.org>
38234
38235         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38236         * modules/arpa_inet (Depends-on): Add link-warning.
38237         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38238         * modules/unistd (Makefile.am): Likewise.
38239
38240 2008-09-26  Bruno Haible  <bruno@clisp.org>
38241
38242         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38243         variables.
38244         (func_version): Essentially copied from gnulib-tool.
38245         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38246         func_readlink): Copied from gnulib-tool.
38247
38248 2008-09-26  Bruno Haible  <bruno@clisp.org>
38249
38250         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38251         invoking git-version-gen.
38252
38253 2008-09-26  Bruno Haible  <bruno@clisp.org>
38254
38255         * posix-modules: Update to directory names changed on 2008-01-19.
38256         Remove commas in output before splitting into words. No more need to
38257         avoid 'ftruncate' since 2007-02-19.
38258
38259 2008-09-26  Bruno Haible  <bruno@clisp.org>
38260
38261         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38262
38263 2008-09-26  Bruno Haible  <bruno@clisp.org>
38264
38265         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38266         * modules/fwriteerror (Depends-on): Add errno.
38267
38268 2008-09-26  Bruno Haible  <bruno@clisp.org>
38269
38270         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38271         * tests/test-vc-list-files-cvs.sh: Likewise.
38272
38273 2008-09-26  Bruno Haible  <bruno@clisp.org>
38274
38275         * doc/posix-headers/sys_resource.texi: Reorder items.
38276
38277 2008-09-26  Jim Meyering  <meyering@redhat.com>
38278
38279         fts: tweak inode comparison function
38280         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38281         inode numbers, as documented.
38282
38283         fts: sort dirent entries on inode number before traversing
38284         This avoids a quadratic, seek-related performance penalty when
38285         operating on a directory containing many entries (measurable at 10k;
38286         3.5 hours at 2 million entries with a cold cache) on certain types
38287         of file systems, including ext3 and ext4, but not tmpfs.
38288         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38289         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38290         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38291         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38292         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38293         (fts_build): Set the stat.st_ino member from D_INO.
38294         If it is likely to be useful, sort dirent entries on inode number.
38295
38296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38297         and the struct statfs.f_type member.
38298         * modules/fts (Depends-on): Add d-ino.
38299
38300 2008-09-26  Bruno Haible  <bruno@clisp.org>
38301
38302         * modules/sigpipe-die (Depends-on): Add sigpipe.
38303
38304         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38305         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38306         and GNULIB_STDIO_H_SIGPIPE are set.
38307         * lib/stdio-write.c: New file.
38308         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38309         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38310         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38311         REPLACE_STDIO_WRITE_FUNCS.
38312         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38313         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38314         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38315         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38316         * modules/stdio (Files): Add lib/stdio-write.c.
38317         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38318         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38319         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38320         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38321         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38322         REPLACE_FPRINTF_POSIX.
38323         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38324         REPLACE_PRINTF_POSIX.
38325         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38326         REPLACE_VFPRINTF_POSIX.
38327         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38328         REPLACE_VPRINTF_POSIX.
38329         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38330         SIGPIPE issue.
38331         * doc/posix-functions/fputc.texi: Likewise.
38332         * doc/posix-functions/fputs.texi: Likewise.
38333         * doc/posix-functions/fwrite.texi: Likewise.
38334         * doc/posix-functions/printf.texi: Likewise.
38335         * doc/posix-functions/putc.texi: Likewise.
38336         * doc/posix-functions/putchar.texi: Likewise.
38337         * doc/posix-functions/puts.texi: Likewise.
38338         * doc/posix-functions/vfprintf.texi: Likewise.
38339         * doc/posix-functions/vprintf.texi: Likewise.
38340
38341         * modules/safe-write (Depends-on): Add write.
38342
38343         * modules/sigpipe-tests: New file.
38344         * tests/test-sigpipe.c: New file.
38345         * tests/test-sigpipe.sh: New file.
38346
38347         * modules/write: New file.
38348         * lib/unistd.in.h: Include <sys/types.h>.
38349         (write): New declaration.
38350         * lib/write.c: New file.
38351         * m4/write.m4: New file.
38352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38353         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38354         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38355         GNULIB_WRITE, REPLACE_WRITE.
38356         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38357         and the SIGPIPE issue.
38358
38359         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38360         (raise): New declaration.
38361         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38362         (ext_signal): New function.
38363         (rpl_raise): New function.
38364         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38365         GNULIB_SIGNAL_H_SIGPIPE.
38366         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38367         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38368
38369         * modules/sigpipe: New file.
38370         * m4/sigpipe.m4: New file.
38371
38372 2008-09-25  Derek Price  <derek@ximbiot.com>
38373             Bruno Haible  <bruno@clisp.org>
38374
38375         * gnulib-tool (func_import): Report all license incompatibilities, not
38376         just the first one.
38377
38378 2008-09-25  Bruno Haible  <bruno@clisp.org>
38379
38380         * gnulib-tool (func_import): When computing the edits, consider not
38381         only the Makefile.ams that exist but also those that will be generated.
38382
38383 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38384
38385         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38386         fixes gnulib-tool --test warning about duplicate dependency.
38387
38388 2008-09-25  Bruno Haible  <bruno@clisp.org>
38389
38390         * gnulib-tool: Don't ask the user to perform edits in the generated
38391         Makefile.ams.
38392         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38393         apply to the Makefile.am being generated.
38394         (func_emit_tests_Makefile_am): Execute edits that apply to the
38395         Makefile.am being generated.
38396         (func_import): Setup list of Makefile.am edits before emitting the
38397         Makefile.ams, not at the end.
38398         (func_create_testdir): Update.
38399         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38400
38401 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38402
38403         * gnulib-tool (func_import): Store the --tests-base option in the
38404         comment in gnulib-cache.m4.
38405
38406 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38407
38408         * NEWS: Document increased portability that sys_select now provides.
38409
38410         * lib/sys_select.in.h: Install select wrapper.
38411         * lib/sys_socket.in.h: Use more descriptive name when there is no
38412         select wrapper.
38413         * lib/winsock-select.c: New.
38414         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38415         Require gl_HEADER_SYS_SOCKET.
38416         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38417         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38418         * tests/test-sys_select.c: Add functional tests.
38419
38420 2008-09-24  Eric Blake  <ebb9@byu.net>
38421
38422         open, fopen: close fd leak in last patch
38423         * lib/open.c (rpl_open): Close fd before returning error.
38424         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38425         * doc/posix-functions/open.texi (open): Document that Irix also
38426         has the bug.
38427         * doc/posix-functions/fopen.texi (fopen): Likewise.
38428         Reported by Paolo Bonzini.
38429
38430 2008-09-24  Bruno Haible  <bruno@clisp.org>
38431
38432         Ensure that a filename ending in a slash cannot be used to access a
38433         non-directory.
38434         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38435         to check whether it's really a directory.
38436         * lib/fopen.c: Include fcntl.h, unistd.h.
38437         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38438         and fdopen().
38439         * modules/fopen (Depends-on): Add unistd.
38440         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38441         * tests/test-fopen.c (main): Likewise.
38442         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38443         * doc/posix-functions/fopen.texi: Likewise.
38444         Reported by Eric Blake.
38445
38446 2008-09-23  Eric Blake  <ebb9@byu.net>
38447
38448         c-stack: avoid compiler optimizations when provoking overflow
38449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38450         recursion harder to optimize, to ensure a stack overflow occurs.
38451         * tests/test-c-stack.c (recurse): Likewise.
38452         Borrowed from libsigsegv.
38453
38454         c-stack: work around Irix sigaltstack bug
38455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38456         whether sigaltstack uses wrong end of stack_t (copied in part from
38457         libsigsegv).
38458         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38459         Irix bug, without requiring an over-allocation.
38460         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38461         bug.
38462
38463         fopen: document mingw bug on directories
38464         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38465         not allowing a stream visiting a directory, even though reading
38466         from such a stream is not portable.
38467
38468 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38469
38470         * lib/poll.c: Rewrite.
38471         * modules/poll: Depend on alloca.
38472
38473 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38474
38475         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38476         instead define prototypes for a full set of wrappers.  Ensure
38477         that Cygwin does not use the compatibility code, which is only
38478         for MinGW.
38479         * lib/winsock.c: New.
38480         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38481         * modules/sys_socket: Add lib/winsock.c.
38482
38483         * modules/poll-tests: Add errno and perror.
38484         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38485
38486 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38487
38488         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38489
38490 2008-09-23  Bruno Haible  <bruno@clisp.org>
38491
38492         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38493         * doc/glibc-functions/*: Likewise.
38494
38495 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38496
38497         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38498         success.
38499
38500 2008-09-22  Eric Blake  <ebb9@byu.net>
38501             Bruno Haible  <bruno@clisp.org>
38502
38503         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38504         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38505         supply %A but mishandle pseudo-NaN.
38506         Reported by Simon Josefsson.
38507
38508 2008-09-21  Bruno Haible  <bruno@clisp.org>
38509
38510         * tests/test-lock.c (main): Tweak skip message.
38511         * tests/test-tls.c (main): Likewise.
38512
38513 2008-09-21  Bruno Haible  <bruno@clisp.org>
38514
38515         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38516         whether 'struct sigaction' has sa_sigaction here...
38517         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38518         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38519
38520 2008-09-21  Bruno Haible  <bruno@clisp.org>
38521
38522         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38523         section.
38524         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38525         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38526         the new section.
38527         (Support for obsolete systems lacking POSIX:2001): New section.
38528         (String handling <string.h>): Move strdup to the new section.
38529         Suggested by Simon Josefsson and Paolo Bonzini.
38530
38531 2008-09-21  Bruno Haible  <bruno@clisp.org>
38532
38533         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38534         exponents in %e and %g results on 'long double'. Needed for mingw's
38535         improved *printf functions.
38536         * tests/test-vasprintf-posix.c (test_function): Likewise.
38537         * tests/test-snprintf-posix.h (test_function): Likewise.
38538         * tests/test-sprintf-posix.h (test_function): Likewise.
38539         Reported by Eric Blake.
38540
38541 2008-09-21  Bruno Haible  <bruno@clisp.org>
38542
38543         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38544         * tests/test-sprintf-posix.h (test_function): Likewise.
38545
38546 2008-09-21  Bruno Haible  <bruno@clisp.org>
38547
38548         * modules/getpass (Depends-on): Add strdup-posix.
38549
38550         New module 'strdup-posix'.
38551         * modules/strdup-posix: New file.
38552         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38553         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38555         REPLACE_STRDUP.
38556         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38557         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38559         strdup-posix.
38560
38561         * modules/strdup (Depends-on): Remove malloc-posix.
38562
38563 2008-09-20  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38566         Wildenhues.
38567
38568 2008-09-20  Bruno Haible  <bruno@clisp.org>
38569
38570         Ensure that wint_t gets defined on IRIX 5.3.
38571         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38572         * lib/wctype.in.h (wint_t): Likewise.
38573         (__wctype_wint_t): Remove type.
38574         (isw*): Use wint_t instead of __wctype_wint_t.
38575         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38576         * modules/wchar (Files): Add m4/wint_t.m4.
38577         (Makefile.am): Substitute HAVE_WINT_T.
38578         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38579         * tests/test-wctype.c: Check that wint_t is defined.
38580         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38581         * doc/posix-headers/wctype.texi: Likewise.
38582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38583
38584 2008-09-18  Bruno Haible  <bruno@clisp.org>
38585
38586         * gnulib-tool (func_exit): Update comment.
38587
38588 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38589
38590         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38591         assumes strdup exists and does not depend on strdup to return
38592         ENOMEM on out of memory conditions.
38593
38594 2008-09-18  Bruno Haible  <bruno@clisp.org>
38595
38596         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38597         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38598         digits for the exponent.
38599
38600 2008-09-18  Jim Meyering  <meyering@redhat.com>
38601             Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/vasnprintf.c (decimal_point_char): Define also if
38604         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38605
38606 2008-09-16  Bruno Haible  <bruno@clisp.org>
38607         and Eric Blake  <ebb9@byu.net>
38608
38609         vasnprintf: support Irix 5.3
38610         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38611         that mishandle long double infinity.
38612         Reported by Tom G. Christensen.
38613
38614 2008-09-16  Bruno Haible  <bruno@clisp.org>
38615
38616         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38617         Solaris 9.
38618         * doc/glibc-functions/alphasort.texi: Likewise.
38619         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38620
38621 2008-09-16  Jim Meyering  <meyering@redhat.com>
38622
38623         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38624         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38625         a umask modification leak out of a subshell.  Otherwise, the
38626         opensolaris /bin/sh would be accepted and thus cause unwarranted
38627         failures in the coreutils test suite.
38628
38629 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38630
38631         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38632         to succeed.
38633
38634 2008-09-16  Jim Meyering  <meyering@redhat.com>
38635
38636         avoid spurious test failure when library is built without ACL support
38637         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38638         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38639         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38640         * tests/test-copy-acl.sh: Likewise.
38641
38642 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38643
38644         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38645         based on character occurrence counts.
38646
38647 2008-09-15  Eric Blake  <ebb9@byu.net>
38648
38649         tests: avoid some compiler warnings
38650         * tests/test-memchr.c (main): Pass NULL indirectly.
38651         * tests/test-closein.c (main): Avoid unused variable.
38652
38653 2008-09-15  Bruno Haible  <bruno@clisp.org>
38654
38655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38656         are missing on OpenBSD 4.0 individually.
38657         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38658
38659 2008-09-15  Bruno Haible  <bruno@clisp.org>
38660
38661         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38662         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38663         * doc/posix-functions/perror.texi: Likewise.
38664         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38665         is missing.
38666         Reported by Eric Blake.
38667
38668         * lib/errno.in.h: Use replacement values >= 2000.
38669         Reported by Eric Blake.
38670
38671 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38672
38673         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38674         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38675         limit.
38676         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38677         compareseq was aborted.
38678
38679 2008-09-14  Bruno Haible  <bruno@clisp.org>
38680
38681         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38682         yvec_edit_count.
38683         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38684         (fstrcmp_bounded): Simplify result computation accordingly.
38685
38686 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38687
38688         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38689         (fstrcmp): Define in terms of fstrcmp_bounded.
38690         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38691         lower_bound argument.
38692         Return quickly if the result is certainly < lower_bound.
38693         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38694
38695 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38696
38697         * lib/diffseq.h (EARLY_ABORT): New macro.
38698         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38699         evaluates to true.
38700
38701 2008-09-14  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/perror-tests: New file.
38704         * tests/test-perror.sh: New file.
38705         * tests/test-perror.c: New file.
38706
38707         New module 'perror'.
38708         * lib/stdio.in.h (perror): New declaration.
38709         * lib/perror.c: New file.
38710         * m4/perror.m4: New file.
38711         * modules/perror: New file.
38712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38713         * doc/posix-functions/perror.texi: Mention the perror module.
38714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38715         REPLACE_PERROR.
38716         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38717         REPLACE_PERROR.
38718
38719 2008-09-14  Bruno Haible  <bruno@clisp.org>
38720
38721         * modules/stdio (Makefile.am): Reorder to match the order in
38722         lib/stdio.in.h.
38723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38724
38725 2008-09-13  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38728
38729 2008-09-13  Bruno Haible  <bruno@clisp.org>
38730
38731         Extend strerror to cover the added errno values.
38732         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38733         (rpl_strerror): Provide error messages for the added errno values and
38734         for the WSA* values.
38735         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38736         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38737         strerror.
38738         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38739         * modules/strerror (Depends-on): Add errno.
38740         * doc/posix-functions/strerror.texi: Document the change.
38741         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38742         and EOVERFLOW.
38743
38744 2008-09-13  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/EOVERFLOW: Remove file.
38747         * m4/eoverflow.m4: Remove file.
38748         * modules/EOVERFLOW-tests: Remove file.
38749         * tests/test-EOVERFLOW.c: Remove file.
38750         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38751         * modules/ftell (Depends-on): Likewise.
38752         * modules/getdelim (Depends-on): Likewise.
38753         * modules/getugroups (Depends-on): Likewise.
38754         * modules/poll (Depends-on): Likewise.
38755         * modules/snprintf (Depends-on): Likewise.
38756         * modules/sprintf-posix (Depends-on): Likewise.
38757         * modules/vasnprintf (Depends-on): Likewise.
38758         * modules/vasprintf (Depends-on): Likewise.
38759         * modules/vfprintf-posix (Depends-on): Likewise.
38760         * modules/vsnprintf (Depends-on): Likewise.
38761         * modules/vsprintf-posix (Depends-on): Likewise.
38762         * modules/xvasprintf (Depends-on): Likewise.
38763         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38764         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38765         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38766         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38767         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38768         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38769         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38770         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38771         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38772         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38773         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38774         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38775         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38776         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38777         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38778         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38779         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38780         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38781         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38782         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38783         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38784         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38785         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38786         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38787         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38788         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38789         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38790         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38791         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38792         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38793         * MODULES.html.sh: Remove EOVERFLOW.
38794         * NEWS: Mention the change.
38795
38796 2008-09-13  Bruno Haible  <bruno@clisp.org>
38797
38798         * modules/errno-tests: New file.
38799         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38800
38801         * lib/errno.in.h: New file.
38802         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38803         * modules/errno: New file.
38804         * doc/posix-headers/errno.texi: Update documentation.
38805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38806
38807 2008-09-13  Bruno Haible  <bruno@clisp.org>
38808
38809         * tests/test-poll.c: Use #if for native Windows, rather than testing
38810         __MSVCRT__.
38811
38812 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38813             Bruno Haible  <bruno@clisp.org>
38814
38815         * lib/glob.c: Don't include <pwd.h> on native Windows.
38816         (WINDOWS32): New macro.
38817         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38818
38819 2008-09-13  Bruno Haible  <bruno@clisp.org>
38820
38821         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38822         (ETIMEDOUT): Remove macro.
38823         (glthread_cond_timedwait_multithreaded): New declaration.
38824         (glthread_cond_timedwait): Use it.
38825         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38826         (glthread_cond_timedwait_multithreaded): New function.
38827
38828 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38829
38830         * modules/poll-tests: Do not check for io.h.
38831         * tests/test-poll.c: Check for __MSVCRT__ instead.
38832
38833 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38834
38835         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38836         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38837         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38838
38839 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38840
38841         * modules/poll-tests: New.
38842         * tests/test-poll.c: New.
38843
38844 2008-09-12  Eric Blake  <ebb9@byu.net>
38845
38846         frexp: test for NetBSD failure on -0.0
38847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38848         not all, bugs from NetBSD 3.0 have been fixed.
38849         * doc/posix-functions/frexp.texi (frexp): Document bug.
38850         Reported by Thomas Klausner.
38851
38852         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38853         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38854         literal -0.0.
38855         Reported by Jonathan C. Patschke <jp@centtech.com>.
38856
38857 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38858
38859         * lib/glthread/cond.h: Use dummy implementation also if
38860         USE_WIN32_THREADS.
38861
38862 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38863
38864         * modules/fnmatch-posix (License): Change to LGPLv2+.
38865         * modules/fnmatch-gnu (License): Likewise.
38866
38867 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38868
38869         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38870
38871 2008-09-11  Jim Meyering  <meyering@redhat.com>
38872
38873         * users.txt: Add gtk-vnc.
38874
38875 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38876
38877         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38878         rotate amounts.
38879
38880         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38881         required for 16-bit and 8-bit rotates.
38882         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38883         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38884         UINT8_MAX instead of hard-coded constants.
38885         Suggested by Paul Eggert.
38886
38887 2008-09-07  Bruno Haible  <bruno@clisp.org>
38888
38889         * tests/test-striconveh.c (main): Check behaviour when converting from
38890         UTF-7.
38891
38892         Make striconveh work better with stateful encodings.
38893         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38894         that iconv does not increment the inptr when returning -1/EINVAL.
38895
38896 2008-09-07  Bruno Haible  <bruno@clisp.org>
38897
38898         * build-aux/config.rpath: Update according to libtool-2.2.6.
38899         * build-aux/config.libpath: Likewise.
38900
38901 2008-09-06  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38904         * lib/freadptr.c (freadptr): Likewise.
38905         * lib/freadseek.c (freadptrinc): Likewise.
38906         Reported by Simon Josefsson.
38907
38908 2008-09-06  Bruno Haible  <bruno@clisp.org>
38909
38910         * modules/freadptr (License): Change to LGPLv2+.
38911         * modules/freadseek (License): Likewise.
38912         Suggested by Eric Blake.
38913
38914         * modules/memchr2 (License): Change to LGPLv2+.
38915         Approved by Eric Blake.
38916
38917 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38918             Bruno Haible  <bruno@clisp.org>
38919
38920         Make gnulib-tool work with native 'sed' on AIX.
38921         * gnulib-tool (sed_noop): New variable.
38922         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38923         func_add_or_update, func_create_testdir): Use it to initialize sed
38924         script variables.
38925         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38926
38927 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38928             Bruno Haible  <bruno@clisp.org>
38929
38930         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38931         also works after #include directives.
38932
38933 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38934
38935         getdate.y: reject an out-of-range timezone value
38936         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38937         the range [-24...+24].  When specified with only one or two digits,
38938         * tests/test-getdate.c: Tests for the fix.
38939         * doc/getdate.texi: Document this change.
38940
38941 2008-09-03  Bruno Haible  <bruno@clisp.org>
38942
38943         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38944
38945 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38946
38947         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38948         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38949         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38950         Blake <ebb9@byu.net>.
38951
38952         * tests/test-bitrotate.c: Add more test vectors.
38953
38954 2008-09-02  Eric Blake  <ebb9@byu.net>
38955
38956         vasnprintf-posix: handle large precision via %.*d
38957         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38958         when handling it ourselves.
38959         * tests/test-vasnprintf-posix.c (test_function): Add test.
38960         * tests/test-snprintf-posix.h (test_function): Likewise.
38961         * tests/test-sprintf-posix.h (test_function): Likewise.
38962         * tests/test-vasprintf-posix.c (test_function): Likewise.
38963         Reported by Alain Guibert.
38964
38965 2008-09-01  Eric Blake  <ebb9@byu.net>
38966
38967         c-stack: make configure-time check more robust
38968         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38969         successful sigaction call.
38970         Reported by Tom G. Christensen.
38971
38972 2008-09-01  Bruno Haible  <bruno@clisp.org>
38973
38974         New module 'findprog-lgpl'.
38975         * modules/findprog-lgpl: New file.
38976         * lib/findprog-lgpl.c: New file.
38977         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38978         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38979         to decide whether to use strdup or xstrdup, concatenated_filename or
38980         xconcatenated_filename.
38981
38982 2008-09-01  Bruno Haible  <bruno@clisp.org>
38983
38984         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38985         'xconcat-filename' (GPL).
38986         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38987         (License): Change to LGPLv2+.
38988         * modules/xconcat-filename: New file.
38989         * lib/concat-filename.h (concatenated_filename): Change specification.
38990         (xconcatenated_filename): New declaration.
38991         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38992         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38993         memory situations.
38994         * lib/xconcat-filename.c: New file.
38995         * NEWS: Mention the change.
38996         * lib/findprog.c: Include concat-filename.h, not filename.h.
38997         (find_in_path): Use xconcatenated_filename instead of
38998         concatenated_filename.
38999         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39000         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39001         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39002         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39003         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39004         instead of concatenated_filename.
39005         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39006         (execute_java_class): Use xconcatenated_filename instead of
39007         concatenated_filename.
39008         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39009         * modules/javacomp (Depends-on): Likewise.
39010         * modules/javaexec (Depends-on): Likewise.
39011
39012 2008-09-01  Bruno Haible  <bruno@clisp.org>
39013
39014         Split module 'filename' into 'filename' and 'concat-filename'.
39015         * modules/filename: Keep only lib/filename.h.
39016         (License): Change to LGPLv2+.
39017         * modules/concat-filename: New file, extracted from modules/filename.
39018         * lib/filename.h (concatenated_filename): Remove declaration.
39019         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39020         * lib/concat-filename.c: Include concat-filename.h.
39021         * NEWS: Mention the change.
39022
39023 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39024
39025         * lib/bitrotate.h (rotl8, rotr8): Add.
39026
39027         * modules/bitrotate (configure.ac): Need
39028         AC_REQUIRE([AC_C_INLINE]).
39029         (Description): Mention stdint.h.  Reported by Bruno Haible
39030         <bruno@clisp.org>.
39031
39032         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39033         Paolo Bonzini <bonzini@gnu.org>.
39034
39035 2008-08-31  Bruno Haible  <bruno@clisp.org>
39036
39037         Assume Solaris specific bi-arch conventions on Solaris systems.
39038         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39039         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39041         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39042         like acl_libdirstem.
39043         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39044         acl_libdirstem.
39045         * NEWS: Mention the change.
39046         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
39047
39048 2008-08-31  Jim Meyering  <meyering@redhat.com>
39049
39050         * lib/strftime.h: Add comments describing the two added arguments.
39051
39052         remove duplicate #include directives
39053         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
39054         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39055
39056 2008-08-31  Bruno Haible  <bruno@clisp.org>
39057
39058         New module 'sigpipe-die'.
39059         * modules/sigpipe-die: New file.
39060         * lib/sigpipe-die.h: New file.
39061         * lib/sigpipe-die.c: New file.
39062         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39063
39064 2008-08-31  Bruno Haible  <bruno@clisp.org>
39065
39066         Don't override previously installed signal handlers.
39067         * lib/fatal-signal.c (saved_sigactions): New variable.
39068         (uninstall_handlers): Reset the signal to the saved handler, not
39069         to SIG_DFL (except when ignored).
39070         (install_handlers): Save the previous handlers.
39071
39072 2008-08-30  Bruno Haible  <bruno@clisp.org>
39073
39074         * gnulib-tool (func_reset_sigpipe): New function.
39075         (func_get_automake_snippet, func_modules_transitive_closure,
39076         func_import): Invoke it before a join command that reads from stdin,
39077         to avoid "echo: write error: Broken pipe" error messages on stderr.
39078         Reported by Sam Steingold <sds@gnu.org>.
39079
39080 2008-08-30  Bruno Haible  <bruno@clisp.org>
39081
39082         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39083         Code copied from m4/open.m4.
39084         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39085         access and the filename ends in a slash. Code copied from lib/open.c.
39086         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39087         * tests/test-fopen.c (main): Check against bug with trailing slash.
39088
39089 2008-08-29  Bruno Haible  <bruno@clisp.org>
39090
39091         Avoid some "gcc -pedantic" warnings.
39092         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39093         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39094         * lib/dirent.in.h: Likewise.
39095         * lib/fcntl.in.h: Likewise.
39096         * lib/float.in.h: Likewise.
39097         * lib/iconv.in.h: Likewise.
39098         * lib/inttypes.in.h: Likewise.
39099         * lib/locale.in.h: Likewise.
39100         * lib/math.in.h: Likewise.
39101         * lib/netinet_in.in.h: Likewise.
39102         * lib/search.in.h: Likewise.
39103         * lib/signal.in.h: Likewise.
39104         * lib/stdarg.in.h: Likewise.
39105         * lib/stdint.in.h: Likewise.
39106         * lib/stdio.in.h: Likewise.
39107         * lib/stdlib.in.h: Likewise.
39108         * lib/string.in.h: Likewise.
39109         * lib/strings.in.h: Likewise.
39110         * lib/sys_select.in.h: Likewise.
39111         * lib/sys_socket.in.h: Likewise.
39112         * lib/sys_stat.in.h: Likewise.
39113         * lib/sys_time.in.h: Likewise.
39114         * lib/sysexits.in.h: Likewise.
39115         * lib/time.in.h: Likewise.
39116         * lib/unistd.in.h: Likewise.
39117         * lib/wchar.in.h: Likewise.
39118         * lib/wctype.in.h: Likewise.
39119         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39120         * modules/fchdir (Makefile.am): Likewise.
39121         * modules/fcntl (Makefile.am): Likewise.
39122         * modules/float (Makefile.am): Likewise.
39123         * modules/iconv_open (Makefile.am): Likewise.
39124         * modules/inttypes (Makefile.am): Likewise.
39125         * modules/locale (Makefile.am): Likewise.
39126         * modules/math (Makefile.am): Likewise.
39127         * modules/netinet_in (Makefile.am): Likewise.
39128         * modules/search (Makefile.am): Likewise.
39129         * modules/signal (Makefile.am): Likewise.
39130         * modules/stdarg (Makefile.am): Likewise.
39131         * modules/stdint (Makefile.am): Likewise.
39132         * modules/stdio (Makefile.am): Likewise.
39133         * modules/stdlib (Makefile.am): Likewise.
39134         * modules/string (Makefile.am): Likewise.
39135         * modules/strings (Makefile.am): Likewise.
39136         * modules/sys_select (Makefile.am): Likewise.
39137         * modules/sys_socket (Makefile.am): Likewise.
39138         * modules/sys_stat (Makefile.am): Likewise.
39139         * modules/sys_time (Makefile.am): Likewise.
39140         * modules/sysexits (Makefile.am): Likewise.
39141         * modules/time (Makefile.am): Likewise.
39142         * modules/unistd (Makefile.am): Likewise.
39143         * modules/wchar (Makefile.am): Likewise.
39144         * modules/wctype (Makefile.am): Likewise.
39145         Reported by Reuben Thomas <rrt@sc3d.org>.
39146
39147 2008-08-29  Bruno Haible  <bruno@clisp.org>
39148
39149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39150         any more.
39151
39152 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39153
39154         * MODULES.html.sh (Misc): Add bitrotate.
39155
39156         * modules/bitrotate: New file.
39157
39158         * lib/bitrotate.h: New file.
39159
39160         * modules/bitrotate-tests: New file.
39161
39162         * tests/test-bitrotate.c: New file.
39163
39164         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39165         on the bitrotate module.
39166
39167         * lib/arctwo.c: Use new bitrotate module.
39168
39169 2008-08-29  Jim Meyering  <meyering@redhat.com>
39170
39171         bootstrap: merge changes from coreutils
39172         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39173         of copied files.  Remove a kludge, now that this is fixed.
39174         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39175         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39176         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39177
39178 2008-08-29  Bruno Haible  <bruno@clisp.org>
39179
39180         * MODULES.html.sh: Remove --cvs-urls option.
39181
39182 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39183
39184         maint.mk: adjust to file name change
39185         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39186
39187 2008-08-28  Jim Meyering  <meyering@redhat.com>
39188
39189         * modules/getndelim2 (License): Relicense to LGPLv2+.
39190         Approved by Richard Stallman for the version of 1995, and by
39191         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39192
39193 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39194
39195         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39196         dummy if one is not available.  Do not touch them if
39197         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39198         (getc_maybe_unlocked): New.
39199         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39200
39201 2008-08-26  Eric Blake  <ebb9@byu.net>
39202
39203         doc/INSTALL: resync from autoconf
39204         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39205         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39206         moving...
39207         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39208         * INSTALL: Regenerate.
39209         * INSTALL.ISO: New file.
39210         * INSTALL.UTF-8: Likewise.
39211
39212 2008-08-26  Jim Meyering  <meyering@redhat.com>
39213
39214         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39215         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39216         these definitions conditional, so that they may be overridden, too.
39217
39218 2008-08-26  Bruno Haible  <bruno@clisp.org>
39219
39220         Generate INSTALL file variants with prettier quotes.
39221         * doc/Makefile (INSTALL_PRELUDE): New macro.
39222         (INSTALL): Use it.
39223         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39224
39225 2008-08-26  Bruno Haible  <bruno@clisp.org>
39226
39227         Run makeinfo in an English locale.
39228         * doc/Makefile (MAKEINFO): New variable.
39229
39230 2008-08-26  Bruno Haible  <bruno@clisp.org>
39231
39232         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39233         Suggested by Eric Blake.
39234
39235 2008-08-25  Bruno Haible  <bruno@clisp.org>
39236
39237         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39238
39239 2008-08-25  Eric Blake  <ebb9@byu.net>
39240
39241         c-stack: test that stack overflow can be caught
39242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39243         that platform allows handling stack overflow; at least OS/2 EMX
39244         has sigaltstack, but crashes before transferring control to
39245         handler on stack overflow.
39246         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39247         check for HAVE_STACK_OVERFLOW_HANDLING.
39248         Reported by Elbert Pol.
39249
39250 2008-08-25  Bruno Haible  <bruno@clisp.org>
39251
39252         * doc/posix-functions/strftime.texi: Fix description of strftime
39253         module.
39254
39255 2008-08-24  Bruno Haible  <bruno@clisp.org>
39256
39257         * tests/uniwidth/test-uc_width2.c: New file.
39258         * tests/uniwidth/test-uc_width2.sh: New file.
39259         * modules/uniwidth/width-tests (Files): Add the new files.
39260         (TESTS): Add uniwidth/test-uc_width2.sh.
39261         (TESTS_ENVIRONMENT): New variable.
39262         (check_PROGRAMS): Add test-uc_width2.
39263         (test_uc_width2_SOURCES): New variable.
39264
39265         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39266         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39267         not 0x00AB.
39268         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39269
39270 2008-08-22  Eric Blake  <ebb9@byu.net>
39271
39272         test-lock, test-tls: mention why a test is skipped
39273         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39274         skipped.
39275         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39276
39277         count-one-bits: relax license
39278         * modules/count-one-bits (License): Relicense to LGPLv2+.
39279         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39280
39281 2008-08-22  Andreas Schwab  <schwab@suse.de>
39282
39283         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39284         Remove spurious space in assignment.
39285
39286 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39287
39288         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39289         Paul Eggert <eggert@CS.UCLA.EDU>.
39290
39291 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39292
39293         * modules/gettext: Add m4/threadlib.m4.
39294
39295 2008-08-19  Eric Blake  <ebb9@byu.net>
39296
39297         test-c-stack: fix compilation failure on FreeBSD 5.0
39298         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39299         headers before <sys/resource.h>.
39300         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39301         the bug.
39302         Reported by Nelson H. F. Beebe.
39303
39304         strverscmp: migrate from "strverscmp.h" to <string.h>
39305         * modules/string (Makefile.am): Add new hooks.
39306         * modules/strverscmp (Files): Remove strverscmp.h.
39307         (Depends-on): Add string.
39308         (configure.ac): Add indicator.
39309         (Include): Mention new header.
39310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39311         defaults.
39312         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39313         results.
39314         * lib/strverscmp.h: Delete.
39315         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39316         * tests/test-strverscmp.c (includes): Adjust client.
39317         * lib/check-version.c (includes): Likewise.
39318         * NEWS: Document the change.
39319
39320         strverscmp: add unit test
39321         * modules/strverscmp-tests: New file.
39322         * tests/test-strverscmp.c: Likewise.
39323
39324 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39325
39326         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39327         regarding Windows crypto stuff, from Mono.
39328
39329 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39330
39331         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39332         if present, for intel RND.  Return error on failures.
39333
39334 2008-08-18  Ben Pfaff  <blp@gnu.org>
39335
39336         gitlog-to-changelog: give better diagnostic for failed pipe-open
39337         * build-aux/gitlog-to-changelog: Improve error message: suggest
39338         that the version of Git may be too old.
39339
39340 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39341
39342         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39343         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39344
39345 2008-08-18  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39348         pthread_in_use().
39349
39350 2008-08-18  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/glthread/threadlib.c: Include <pthread.h>.
39353
39354 2008-08-18  Bruno Haible  <bruno@clisp.org>
39355
39356         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39357         glthread_recursive_lock_* macros.
39358         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39359         Fix syntax error.
39360
39361 2008-08-18  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/glthread/thread.c: Avoid forcing a context switch right after
39364         thread creation.
39365
39366 2008-08-17  Bruno Haible  <bruno@clisp.org>
39367
39368         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39369         * lib/glthread/thread.h: Provide Win32 specific implementation.
39370         * modules/thread (Files): Add lib/glthread/thread.c.
39371         (Depends-on): Add lock.
39372         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39373
39374 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39375
39376         New module 'yield'.
39377         * modules/yield: New file.
39378         * lib/glthread/yield.h: New file.
39379         * m4/yield.m4: New file.
39380         * MODULES.html.sh (Multithreading): Add yield.
39381
39382 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39383
39384         New module 'thread'.
39385         * modules/thread: New file.
39386         * lib/glthread/thread.h: New file.
39387         * m4/thread.m4: New file.
39388         * MODULES.html.sh (Multithreading): Add thread.
39389
39390 2008-08-17  Bruno Haible  <bruno@clisp.org>
39391
39392         * lib/glthread/lock.h: Include <stdlib.h> always.
39393         * lib/glthread/tls.h: Likewise.
39394         * lib/glthread/cond.h: Likewise.
39395
39396 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39397
39398         New module 'cond'.
39399         * modules/cond: New file.
39400         * lib/glthread/cond.h: New file.
39401         * lib/glthread/cond.c: New file.
39402         * m4/cond.m4: New file.
39403         * MODULES.html.sh (Multithreading): Add cond.
39404
39405 2008-08-16  Eric Blake  <ebb9@byu.net>
39406
39407         c-stack: fix regression on Irix 5.3 from 2008-06-21
39408         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39409         sa_sigaction...
39410         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39411         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39412         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39413         * modules/signal (Makefile.am): Use the value.
39414         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39415         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39416         * doc/posix-headers/signal.texi (signal.h): Document this
39417         portability issue.
39418         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39419         Reported by Tom G. Christensen.
39420
39421 2008-08-17  Bruno Haible  <bruno@clisp.org>
39422
39423         New module 'threadlib'.
39424         * modules/threadlib: New file.
39425         * lib/glthread/threadlib.c: New file, extracted from
39426         lib/glthread/lock.c.
39427         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39428         functions.
39429         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39430         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39431         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39432         macros.
39433         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39434         (gl_DISABLE_THREADS): Remove macro.
39435         * modules/lock (Files): Remove build-aux/config.rpath.
39436         (Depends-on): Remove havelib. Add threadlib.
39437         (configure.ac-early): Remove section.
39438         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39439         * modules/tls (Depends-on): Remove lock. Add threadlib.
39440         (Link): New section, copied from threadlib.
39441         * MODULES.html.sh (Multithreading): Add threadlib.
39442
39443 2008-08-14  Bruno Haible  <bruno@clisp.org>
39444
39445         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39446         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39447         glthread_rwlock_unlock, glthread_rwlock_destroy,
39448         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39449         glthread_recursive_lock_destroy): Define as macros always.
39450         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39451         glthread_lock_lock.
39452         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39453         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39454         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39455         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39456         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39457         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39458         (glthread_recursive_lock_lock_func): Renamed from
39459         glthread_recursive_lock_lock.
39460         (glthread_recursive_lock_unlock_func): Renamed from
39461         glthread_recursive_lock_unlock.
39462         (glthread_recursive_lock_destroy_func): Renamed from
39463         glthread_recursive_lock_destroy.
39464
39465 2008-08-14  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/glthread/lock.h: Renamed from lib/lock.h.
39468         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39469         * lib/glthread/tls.h: Renamed from lib/tls.h.
39470         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39471         * lib/fstrcmp.c: Update includes.
39472         * lib/strsignal.c: Update includes.
39473         * modules/lock (Files, Makefile.am): Update.
39474         (Include): Change to "glthread/lock.h".
39475         * modules/tls (Files, Makefile.am): Update.
39476         (Include): Change to "glthread/tls.h".
39477         * tests/test-lock.c: Update includes.
39478         * tests/test-tls.c: Update includes.
39479         * NEWS: Mention the renamed header files.
39480
39481 2008-08-11  Jim Meyering  <meyering@redhat.com>
39482
39483         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39484
39485 2008-08-11  Eric Blake  <ebb9@byu.net>
39486
39487         test-c-stack: avoid C99-ism
39488         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39489         before statement.
39490         Reported by Alain Guibert.
39491
39492 2008-08-10  Jim Meyering  <meyering@redhat.com>
39493
39494         ensure that return value of uinttostr et al are not ignored
39495         * lib/inttostr.h (__GNUC_PREREQ): Define.
39496         (__attribute_warn_unused_result__): Define.
39497         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39498
39499 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39500
39501         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39502         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39503
39504 2008-08-07  Jim Meyering  <meyering@redhat.com>
39505
39506         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39507
39508         * modules/mkstemp (License): Relicense under LGPLv2+.
39509         * modules/tempname (License): Likewise.
39510
39511 2008-08-06  Bruno Haible  <bruno@clisp.org>
39512
39513         * lib/poll.c (poll): Further micro-optimization.
39514
39515 2008-08-06  Jim Meyering  <meyering@redhat.com>
39516
39517         inet_pton.c: use locale-independent tolower
39518         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39519         (inet_pton6): Use c_tolower rather than tolower.
39520         * modules/inet_pton (Depends-on): Add c-ctype.
39521
39522 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39523
39524         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39525         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39526
39527 2008-08-06  Jim Meyering  <meyering@redhat.com>
39528
39529         * modules/inet_pton (License): Relicense under LGPLv2+.
39530
39531 2008-08-03  Bruno Haible  <bruno@clisp.org>
39532
39533         Additional non-aborting API for lock and tls.
39534         * lib/lock.h: Include <errno.h>.
39535         (glthread_lock_init): New macro/function.
39536         (gl_lock_init): Define as wrapper around glthread_lock_init.
39537         (glthread_lock_lock): New macro/function.
39538         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39539         (glthread_lock_unlock): New macro/function.
39540         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39541         (glthread_lock_destroy): New macro/function.
39542         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39543         (glthread_rwlock_init): New macro/function.
39544         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39545         (glthread_rwlock_rdlock): New macro/function.
39546         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39547         (glthread_rwlock_wrlock): New macro/function.
39548         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39549         (glthread_rwlock_unlock): New macro/function.
39550         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39551         (glthread_rwlock_destroy): New macro/function.
39552         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39553         (glthread_recursive_lock_init): New macro/function.
39554         (gl_recursive_lock_init): Define as wrapper around
39555         glthread_recursive_lock_init.
39556         (glthread_recursive_lock_lock): New macro/function.
39557         (gl_recursive_lock_lock): Define as wrapper around
39558         glthread_recursive_lock_lock.
39559         (glthread_recursive_lock_unlock): New macro/function.
39560         (gl_recursive_lock_unlock): Define as wrapper around
39561         glthread_recursive_lock_unlock.
39562         (glthread_recursive_lock_destroy): New macro/function.
39563         (gl_recursive_lock_destroy): Define as wrapper around
39564         glthread_recursive_lock_destroy.
39565         (glthread_once): New macro/function.
39566         (gl_once): Define as wrapper around glthread_once.
39567         Update function declarations.
39568         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39569         glthread_rwlock_init. Return error code.
39570         (glthread_rwlock_rdlock_multithreaded): Renamed from
39571         glthread_rwlock_rdlock. Return error code.
39572         (glthread_rwlock_wrlock_multithreaded): Renamed from
39573         glthread_rwlock_wrlock. Return error code.
39574         (glthread_rwlock_unlock_multithreaded): Renamed from
39575         glthread_rwlock_unlock. Return error code.
39576         (glthread_rwlock_destroy_multithreaded): Renamed from
39577         glthread_rwlock_destroy. Return error code.
39578         (glthread_recursive_lock_init_multithreaded): Renamed from
39579         glthread_recursive_lock_init. Return error code.
39580         (glthread_recursive_lock_lock_multithreaded): Renamed from
39581         glthread_recursive_lock_lock. Return error code.
39582         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39583         glthread_recursive_lock_unlock. Return error code.
39584         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39585         glthread_recursive_lock_destroy. Return error code.
39586         (glthread_once_call): Make static.
39587         (glthread_once_multithreaded): Renamed from glthread_once.
39588         * lib/tls.h: Include <errno.h>.
39589         (glthread_tls_key_init): New macro/function.
39590         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39591         (glthread_tls_set): New macro/function.
39592         (gl_tls_set): Define as wrapper around glthread_tls_set.
39593         (glthread_tls_key_destroy): New macro/function.
39594         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39595         Update function declarations.
39596         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39597         glthread_tls_get.
39598         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39599
39600 2008-08-04  Eric Blake  <ebb9@byu.net>
39601
39602         gnumakefile: use space, not TAB, outside of targets
39603         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39604
39605 2008-08-02  Jim Meyering  <meyering@redhat.com>
39606
39607         getdate.y: avoid locale-dependent date parsing failure
39608         In Turkish locales, getdate would fail to recognize keywords
39609         containing a lowercase "i".  The solution is not to rely on
39610         locale-sensitive case-conversion.
39611         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39612         (lookup_word): Use c_toupper in place of toupper.
39613         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39614         Reported by Vefa Bicakci <bicave@superonline.com> in
39615         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39616         * modules/getdate (Depends-on): Add c-ctype.
39617
39618 2008-08-02  Bruno Haible  <bruno@clisp.org>
39619
39620         * gnulib-tool (func_import): When updating or creating a .gitignore
39621         file, prepend each added line with a slash, and ignore leading slashes
39622         from the existing lines.
39623         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39624
39625 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39626
39627         Portability fix for GNU make 3.79.1.
39628         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39629         versions do not understand.
39630
39631 2008-08-01  Bruno Haible  <bruno@clisp.org>
39632
39633         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39634         * tests/test-isnanf.h (zero): New variable.
39635         (main): Avoid literal -0.0f.
39636         * tests/test-isnand.h (zero): New variable.
39637         (main): Avoid literal -0.0.
39638         * tests/test-isnanl.h (zero): New variable.
39639         (main): Avoid literal -0.0L.
39640         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39641         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39642         -0.0, -0.0L.
39643         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39644         (test_signbitd): Avoid literal -0.0.
39645         (test_signbitl): Avoid literal -0.0L.
39646         * tests/test-ceilf1.c (zero): New variable.
39647         (main): Avoid literal -0.0f.
39648         * tests/test-ceill.c (zero): New variable.
39649         (main): Avoid literal -0.0L.
39650         * tests/test-floorf1.c (zero): New variable.
39651         (main): Avoid literal -0.0f.
39652         * tests/test-floorl.c (zero): New variable.
39653         (main): Avoid literal -0.0L.
39654         * tests/test-roundf1.c (zero): New variable.
39655         (main): Avoid literal -0.0f.
39656         * tests/test-round1.c (zero): New variable.
39657         (main): Avoid literal -0.0.
39658         * tests/test-roundl.c (zero): New variable.
39659         (main): Avoid literal -0.0L.
39660         * tests/test-truncf1.c (zero): New variable.
39661         (main): Avoid literal -0.0f.
39662         * tests/test-trunc1.c (zero): New variable.
39663         (main): Avoid literal -0.0.
39664         * tests/test-truncl.c (zero): New variable.
39665         (main): Avoid literal -0.0L.
39666         * tests/test-frexp.c (zero): New variable.
39667         (main): Avoid literal -0.0.
39668         * tests/test-frexpl.c (zero): New variable.
39669         (main): Avoid literal -0.0L.
39670         * tests/test-ldexpl.c (zero): New variable.
39671         (main): Avoid literal -0.0L.
39672         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39673         (zerod, zerol): New variables.
39674         (test_function): Avoid literals -0.0, -0.0L.
39675         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39676         (zerod, zerol): New variables.
39677         (test_function): Avoid literals -0.0, -0.0L.
39678         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39679         (zerod, zerol): New variables.
39680         (test_function): Avoid literals -0.0, -0.0L.
39681         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39682         (zerod, zerol): New variables.
39683         (test_function): Avoid literals -0.0, -0.0L.
39684         * tests/test-strtod.c (zero): New variable.
39685         (main): Avoid literal -0.0.
39686         Reported by Jonathan C. Patschke <jp@centtech.com>.
39687
39688 2008-07-31  Jim Meyering  <meyering@redhat.com>
39689
39690         sha256.h: correct definition of SHA224_DIGEST_SIZE
39691         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39692         Reported by Paulie Pena IV <paulie4@gmail.com>.
39693         Define as 224 / 8, rather than as a literal.
39694         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39695         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39696         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39697
39698 2008-07-31  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39701         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39702         Reported by Jonathan Patschke <jp@centtech.com>.
39703
39704 2008-07-31  Bruno Haible  <bruno@clisp.org>
39705
39706         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39707         Reported by Paolo Bonzini <bonzini@gnu.org>.
39708
39709 2008-07-30  Eric Blake  <ebb9@byu.net>
39710
39711         test-strtod: allow compilation without -lm
39712         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39713         Reported by Dennis Clarke <blastwave@gmail.com>.
39714
39715 2008-07-28  Jim Meyering  <meyering@redhat.com>
39716
39717         bootstrap: work also when there are no .po files in po/
39718         * build-aux/bootstrap (update_po_files): Complete the change
39719         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39720
39721 2008-07-27  Jim Meyering  <meyering@redhat.com>
39722
39723         * users.txt: Add zile.
39724
39725 2008-07-26  Ben Pfaff  <blp@gnu.org>
39726
39727         Add missing dependencies on new m4/exponent[fdl].m4 files.
39728         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39729         * modules/isnand-nolibm: Add m4/exponentd.m4.
39730         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39731         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39732         m4/isnan[fdl].m4, because the macros actually used moved.
39733         Reported by Jim Meyering.
39734
39735 2008-07-14  Ben Pfaff  <blp@gnu.org>
39736
39737         Add isinf module.
39738         * lib/isinf.c: New file.
39739         * lib/math.in.h: Define isinf macro if we have decided to replace
39740         it.
39741         * m4/isinf.m4: New file.
39742         * m4/math_h.m4: Initialize and substitute variables for isinf
39743         module.
39744         * modules/isinf: New file.
39745         * modules/isinf-tests: New file.
39746         * modules/math: Add substitutions for new module.
39747         * tests/test-isinf.c: New file.
39748         * doc/posix-functions/isinf.texi: Mention new module.
39749         * MODULES.html.sh: Mention new module.
39750
39751 2008-07-14  Ben Pfaff  <blp@gnu.org>
39752
39753         Factor out some macros for use by additional modules.
39754         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39755         exponentf.m4.
39756         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39757         exponentd.m4.
39758         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39759         file exponentl.m4.
39760         * m4/exponentf.m4: New file.
39761         * m4/exponentd.m4: New file.
39762         * m4/exponentl.m4: New file.
39763         * modules/isnanf: Use new file m4/exponentf.m4.
39764         * modules/isnand: Use new file m4/exponentd.m4.
39765         * modules/isnanl: Use new file m4/exponentl.m4.
39766
39767 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39768
39769         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39770         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39771         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39772         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39773
39774         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39775         readlink on platforms without PATH_MAX.
39776
39777 2008-07-21  Eric Blake  <ebb9@byu.net>
39778
39779         Warn, not fail, on stale version.
39780         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39781
39782         Don't allow installation with stale devel version number.
39783         * top/GNUmakefile (_is-install-target): New macro.
39784         (_curr-ver): Forbid installation with stale version number.
39785
39786 2008-07-20  Bruno Haible  <bruno@clisp.org>
39787
39788         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39789         TESTS_ENVIRONMENT.
39790         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39791
39792 2008-07-20  Bruno Haible  <bruno@clisp.org>
39793
39794         * lib/c-stack.h (c_stack_action): Add documentation.
39795         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39796
39797 2008-07-20  Bruno Haible  <bruno@clisp.org>
39798
39799         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39800         * modules/readlink (License): Likewise.
39801
39802 2008-07-17  Eric Blake  <ebb9@byu.net>
39803
39804         * modules/c-stack (Link): Fix typo.
39805
39806         Make c-stack use libsigsegv, when available.
39807         * modules/c-stack (Depends-on): Add libsigsegv.
39808         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39809         needed.
39810         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39811         (segv_handler, overflow_handler, c_stack_action)
39812         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39813         implementation when libsigsegv is available, but only when using
39814         the library is necessary.
39815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39816         comment, explaining why XSI check fails on Linux.
39817         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39818         * tests/test-c-stack2.sh: Tweak skip message.
39819         * NEWS: Document new link-time requirements.
39820
39821 2008-07-16  Eric Blake  <ebb9@byu.net>
39822
39823         c-stack: Expose false positives when not using libsigsegv.
39824         * modules/c-stack-tests (Files): Expand test.
39825         * tests/test-c-stack.c (main): Add means to conditionally trigger
39826         non-overflow SIGSEGV.
39827         * tests/test-c-stack2.sh: New file.
39828
39829 2008-07-14  Bruno Haible  <bruno@clisp.org>
39830
39831         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39832         Reported by Eric Blake.
39833
39834 2008-07-14  Sam Steingold  <sds@gnu.org>
39835             Bruno Haible  <bruno@clisp.org>
39836
39837         New module libsigsegv.
39838         * modules/libsigsegv: New file.
39839         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39840         modifications.
39841         * MODULES.html.sh (Signal handling): New section.
39842
39843 2008-07-14  Bruno Haible  <bruno@clisp.org>
39844
39845         * modules/unictype/ctype-* (Description): Add the word "function".
39846         Improves the resulting doc in MODULES.html.
39847
39848 2008-07-12  Ben Pfaff  <blp@gnu.org>
39849
39850         Add longlong module.
39851         * modules/longlong: New file.
39852
39853 2008-07-12  Bruno Haible  <bruno@clisp.org>
39854
39855         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39856         to empty.
39857
39858 2008-07-10  Ben Pfaff  <blp@gnu.org>
39859
39860         Add isnan module.
39861         * doc/posix-functions/isnan.texi: Mention new module.
39862         * lib/math.in.h: Define isnan macro if we have decided to replace
39863         it.
39864         * m4/isnan.m4: New file.
39865         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39866         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39867         also.
39868         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39869         redundancy.
39870         * m4/math_h.m4: Initialize and substitute variables for isnan
39871         module.
39872         * modules/isnan: New file.
39873         * modules/isnan-tests: New file.
39874         * modules/math: Add substitutions for new module.
39875         * tests/test-isnan.c: New file.
39876         * MODULES.html.sh: Mention new module.
39877
39878 2008-07-10  Ben Pfaff  <blp@gnu.org>
39879
39880         Add isnanf module.
39881         * lib/isnanf.m4: New file.
39882         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39883         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39884         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39885         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39886         * modules/isnanf: New file.
39887         * modules/isnanf-tests: New file.
39888         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39889         files.
39890         * tests/test-isnanf-nolibm.c: factored most of its contents into
39891         new file tests/test-isnanf.h.
39892         * tests/test-isnanf.h: New file.
39893         * tests/test-isnanf.c: New file.
39894         * MODULES.html.sh: Mention new module.
39895         * doc/glibc-functions/isnanf.texi: Mention new module.
39896
39897 2008-07-10  Ben Pfaff  <blp@gnu.org>
39898
39899         Add isnand module.
39900         * lib/isnand.h: New file.
39901         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39902         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39903         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39904         functionality also.
39905         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39906         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39907         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39908         * modules/isnand: New file.
39909         * modules/isnand-tests: New file.
39910         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39911         files.
39912         * tests/test-isnand-nolibm.c: factored most of its contents into
39913         new file tests/test-isnand.h.
39914         * tests/test-isnand.h: New file.
39915         * tests/test-isnand.c: New file.
39916         * MODULES.html.sh: Mention new module.
39917
39918 2008-07-10  Ben Pfaff  <blp@gnu.org>
39919
39920         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39921         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39922         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39923         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39924         * modules/isnanf-nolibm: Update references to renamed files.
39925         * modules/isnand-nolibm: Likewise.
39926         * modules/isnanf-nolibm-tests: Likewise.
39927         * modules/isnand-nolibm-tests: Likewise.
39928         * lib/frexp.c: Likewise.
39929         * lib/isfinite.c: Likewise.
39930         * lib/signbitd.c: Likewise.
39931         * lib/signbitf.c: Likewise.
39932         * lib/vasnprintf.c: Likewise.
39933         * tests/test-ceilf1.c: Likewise.
39934         * tests/test-ceilf2.c: Likewise.
39935         * tests/test-floorf1.c: Likewise.
39936         * tests/test-floorf2.c: Likewise.
39937         * tests/test-frexp.c: Likewise.
39938         * tests/test-round1.c: Likewise.
39939         * tests/test-round2.c: Likewise.
39940         * tests/test-roundf1.c: Likewise.
39941         * tests/test-strtod.c: Likewise.
39942         * tests/test-trunc1.c: Likewise.
39943         * tests/test-trunc2.c: Likewise.
39944         * tests/test-truncf1.c: Likewise.
39945         * tests/test-truncf2.c: Likewise.
39946         * NEWS: Mention the renamed header files.
39947
39948 2008-07-11  Jim Meyering  <meyering@redhat.com>
39949
39950         vc-list-files: make the last-resort awk code more portable
39951         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39952         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39953         does not support it.
39954
39955 2008-07-10  Eric Blake  <ebb9@byu.net>
39956
39957         Work with tar's bootstrap.
39958         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39959         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39960         an m4 comment.
39961
39962 2008-07-09  Jim Meyering  <meyering@redhat.com>
39963
39964         posix-shell.m4: fix typo that made this test malfunction
39965         * m4/posix-shell.m4: Remove capitalization in variable name.
39966
39967 2008-07-08  Bruno Haible  <bruno@clisp.org>
39968
39969         * m4/onceonly.m4: Update comments.
39970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39971
39972 2008-07-04  Jim Meyering  <meyering@redhat.com>
39973
39974         * users.txt: Add vc-dwim.
39975         (bison, coreutils): Use the gitweb URL.
39976
39977 2008-07-03  Jim Meyering  <meyering@redhat.com>
39978
39979         * users.txt: Add libffcall.  From Sam Steingold.
39980
39981 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39982
39983         getdate.y: do not ignore TZ with relative day, month or year offset
39984         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39985         relative-date-handling, since otherwise, the latter would clobber the
39986         sole output (an updated Start value) of the tz-handling block.
39987         * tests/test-getdate.c: Tests for the fix
39988
39989 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39990
39991         Recognize 'foo_LIBRARIES += libgnu.a'.
39992         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39993         makefile snippet has already specified an installation location,
39994         also using '+='.
39995
39996 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39997
39998         getdate.y: factor out common actions
39999         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40000         Use them in place of open-coded actions.
40001
40002 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40003
40004         Add self-test for getdate module.
40005         * modules/getdate-tests: New file.
40006         * tests/test-getdate.c: New file.
40007
40008 2008-06-29  Bruno Haible  <bruno@clisp.org>
40009
40010         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40011         .gitignore.
40012         Reported by Sylvain Beucler <beuc@beuc.net>.
40013
40014 2008-06-29  Bruno Haible  <bruno@clisp.org>
40015
40016         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40017         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40018
40019 2008-06-29  Bruno Haible  <bruno@clisp.org>
40020
40021         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40022         EXTRA_DIST.
40023         Reported by Sylvain Beucler <beuc@beuc.net>.
40024
40025 2008-06-26  Jim Meyering  <meyering@redhat.com>
40026
40027         make several modules depend on the "open" module
40028         This provides slightly increased consistency when opening-for-write
40029         the name of a non-directory spelled with a trailing slash.
40030         * modules/chdir-safer: Likewise.
40031         * modules/chown: Likewise.
40032         * modules/clean-temp: Likewise.
40033         * modules/copy-file: Likewise.
40034         * modules/fchdir: Likewise.
40035         * modules/fcntl-safer: Likewise.
40036         * modules/pipe: Likewise.
40037         * modules/utime: Likewise.
40038         Prompted by Eric Blake and Bruno Haible.
40039
40040 2008-06-24  Andreas Schwab  <schwab@suse.de>
40041
40042         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40043         literals can be used as initializers for global variables.
40044
40045 2008-06-23  Eric Blake  <ebb9@byu.net>
40046
40047         Make gnulib-cache.m4 easier to diff.
40048         * gnulib-tool (func_import): Allow newlines when reading cached
40049         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
40050
40051 2008-06-23  Bruno Haible  <bruno@clisp.org>
40052
40053         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
40054         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40055         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40056         m4/signalblocking.m4.
40057         (gl_PREREQ_SIGACTION): Don't invoke it.
40058         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40059         gl_PREREQ_SIG_HANDLER_H.
40060         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40061         Don't check for sigaction here.
40062
40063 2008-06-23  Bruno Haible  <bruno@clisp.org>
40064
40065         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40066         (install_handlers): Don't set the SA_RESETHAND flag.
40067
40068 2008-06-23  Bruno Haible  <bruno@clisp.org>
40069
40070         * m4/sigaction.m4: Comment fixes.
40071         * lib/signal.in.h: Likewise.
40072
40073 2008-06-23  Eric Blake  <ebb9@byu.net>
40074
40075         Fix typo.
40076         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40077
40078         Avoid SA_ namespace.
40079         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40080         Reported by Ralf Wildenhues.
40081
40082         Avoid test failure due to SA_RESTORER.
40083         * tests/test-sigaction.c (SA_MASK): New macro.
40084         (main): Avoid failing due to extension flags being set.
40085         Reported by Jim Meyering.
40086
40087         Revert use of sig-handler.h in sigprocmask.c.
40088         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40089         it requires the existence of struct sigaction.
40090         * lib/sigprocmask.c (handler_t): Restore typedef.
40091         (rpl_signal, old_handlers): Use local type.
40092
40093 2008-06-22  Bruno Haible  <bruno@clisp.org>
40094
40095         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40096         conditionally.
40097         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40098
40099 2008-06-22  Bruno Haible  <bruno@clisp.org>
40100
40101         * doc/posix-functions/siginterrupt.texi: Move note.
40102
40103         * lib/signal.in.h (SA_RESTART): New macro.
40104         * lib/sigaction.c: Update comment.
40105
40106         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40107
40108         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40109         (gl_PREREQ_SIGPROCMASK): Invoke it.
40110         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40111
40112         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40113
40114         * lib/sigprocmask.c: Update a comment.
40115
40116 2008-06-21  Eric Blake  <ebb9@byu.net>
40117
40118         Use sigaction module rather than signal().
40119         * modules/c-stack (Depends-on): Add sigaction.
40120         * modules/fatal-signal (Depends-on): Likewise.
40121         * modules/nanosleep (Depends-on): Likewise.
40122         * modules/sigprocmask (Files): Add sig-handler.h.
40123         * modules/sigaction (Files): Likewise.
40124         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40125         Eggert.
40126         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40127         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40128         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40129         (init_fatal_signals): Likewise.
40130         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40131         (siginterrupt): Delete fallback.
40132         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40133         instead.
40134         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40135         siginterrupt.
40136
40137         New module sigaction, for mingw.
40138         * modules/sigaction: New module...
40139         * modules/sigaction-tests: ...and its test.
40140         * m4/sigaction.m4: New file.
40141         * lib/sigaction.c: Likewise.
40142         * tests/test-sigaction.c: Likewise.
40143         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40144         * modules/signal (Makefile.am): Likewise.
40145         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40146         needed.
40147         * doc/posix-headers/signal.texi (signal.h): Mention provided
40148         types.
40149         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40150         that sigaction is preferable.
40151         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40152         module.
40153         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40154         sigaction.
40155
40156         Improve robustness of sigprocmask by overriding signal.
40157         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40158         is in use.
40159         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40160         (SIGKILL, SIGSTOP): Provide fallbacks.
40161         (rpl_signal): Implement.
40162         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40163         signal can be called inside handlers.
40164
40165         Fix nanosleep module on mingw.
40166         * modules/nanosleep (Depends-on): Add sys_select.
40167         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40168
40169         Fix licensing of sigprocmask.
40170         * modules/raise (License): Relicense as LGPL.
40171
40172 2008-06-21  Bruno Haible  <bruno@clisp.org>
40173
40174         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40175         result if it contains question marks.
40176         Reported by Michael Geng <linux@michaelgeng.de>.
40177
40178 2008-06-19  Bruno Haible  <bruno@clisp.org>
40179
40180         Fix CVS-ism.
40181         * doc/gnulib.texi: Include updated-stamp.texi.
40182         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40183         (updated-stamp.texi): New rule.
40184         (gnulib.info): Depend on it.
40185         * doc/.gitignore: Add updated-stamp.texi.
40186         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40187
40188 2008-06-19  Bruno Haible  <bruno@clisp.org>
40189
40190         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40191         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40192
40193 2008-06-19  Eric Blake  <ebb9@byu.net>
40194
40195         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40196         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40197         Reported by Stepan Kasal.
40198
40199 2008-06-18  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40202         Reported by Eric Blake.
40203
40204 2008-06-18  Eric Blake  <ebb9@byu.net>
40205
40206         Work around cygwin 1.5.25 strsignal bug.
40207         * tests/test-strsignal.c: Allow for const char *.
40208         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40209
40210 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40211
40212         * users.txt: Update URL to article and add author/date
40213         information.
40214
40215 2008-06-17  Bruno Haible  <bruno@clisp.org>
40216
40217         New macro gl_DISABLE_THREADS.
40218         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40219         if the user did not pass --enable-threads or --disable-threads option.
40220         (gl_DISABLE_THREADS): New macro.
40221         Reported by Eric Blake <ebb9@byu.net>.
40222
40223 2008-06-17  Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40226         when the macro ignores it.
40227         Based on a patch by Eric Blake <ebb9@byu.net>.
40228
40229 2008-06-17  Bruno Haible  <bruno@clisp.org>
40230
40231         * modules/tls (License): Change to LGPLv2+.
40232         Reported by Eric Blake.
40233
40234 2008-06-17  Eric Blake  <ebb9@byu.net>
40235
40236         Simplify c-stack prerequisites.
40237         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40238         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40239         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40240         check.
40241         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40242         <sys/resource.h>.
40243
40244         Move c-stack test into testsuite.
40245         * modules/c-stack-tests: New file.
40246         * lib/c-stack.c [DEBUG]: Move test program...
40247         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40248         fail test if sigaltstack is lacking.
40249         * tests/test-c-stack.sh: New driver file.
40250
40251 2008-06-16  Eric Blake  <ebb9@byu.net>
40252
40253         Use raise module consistently.
40254         * modules/fatal-signal (Depends-on): Add raise.
40255         * modules/sigprocmask (Depends-on): Likewise.
40256         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40257         * lib/sigprocmask.c (sigprocmask): Likewise.
40258         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40259         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40260
40261         Fix compliance bug in sigpending.
40262         * lib/sigprocmask.c (sigpending): Return pending array via
40263         parameter, not return value.
40264
40265 2008-06-14  Eric Blake  <ebb9@byu.net>
40266
40267         Improve obstack-printf test code.
40268         * tests/test-obstack-printf.c (test_function): Fix comment, and
40269         simplify usage of obstack_* in macros.  Add a test for coverage.
40270         Reported by Bruno Haible.
40271
40272 2008-06-14  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40275         array size as a constant, not as a const variable.
40276         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40277         AC_USE_SYSTEM_EXTENSIONS.
40278         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40279         Test whether the obstack_printf function actually exists.
40280         * modules/obstack-printf (Depends-on): Add extensions.
40281         (Include): Remove obstack.h.
40282         * modules/obstack-printf-posix (Depends-on): Add extensions.
40283         (Include): Remove obstack.h.
40284
40285 2008-06-13  Eric Blake  <ebb9@byu.net>
40286
40287         Add obstack-printf and obstack-printf-posix modules.
40288         * modules/obstack-printf: New file.
40289         * modules/obstack-printf-posix: Likewise.
40290         * MODULES.html.sh (Misc): Mention them.
40291         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40292         Likewise.
40293         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40294         Likewise.
40295         * modules/stdio (Makefile.am): Accomodate new modules.
40296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40297         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40298         Declare.
40299         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40300         functions.
40301         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40302         (gl_REPLACE_OBSTACK_PRINTF): New macros
40303         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40304         * tests/test-obstack-printf.c: New file.
40305         * modules/obstack-printf-tests: Likewise.
40306         * modules/obstack-printf-posix-tests: Likewise.
40307
40308 2008-06-11  Bruno Haible  <bruno@clisp.org>
40309
40310         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40311         * lib/open.c: Include errno.h.
40312         (open): Fail when attempting to write to a file that has a trailing
40313         slash.
40314         * tests/test-open.c (main): Test against trailing slash bug.
40315         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40316
40317 2008-06-10  Bruno Haible  <bruno@clisp.org>
40318
40319         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40320         for $? to work inside the trap command, with various /bin/sh-s.
40321         * tests/test-vc-list-files-cvs.sh: Likewise.
40322
40323 2008-06-10  Bruno Haible  <bruno@clisp.org>
40324
40325         * lib/acl-internal.h: Don't include gettext.h here.
40326         * lib/set-mode-acl.c: Include gettext.h here.
40327         * lib/copy-acl.c: Likewise.
40328
40329 2008-06-10  Bruno Haible  <bruno@clisp.org>
40330
40331         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40332         * lib/wait-process.c (wait_subprocess): Likewise.
40333         * lib/execute.h (execute): Add termsigp argument.
40334         * lib/execute.c (execute): Likewise.
40335         * lib/csharpcomp.c (compile_csharp_using_pnet,
40336         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40337         * lib/csharpexec.c (execute_csharp_using_pnet,
40338         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40339         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40340         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40341         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40342         is_jikes_present): Update.
40343         * lib/javaexec.c (execute_java_class): Update.
40344         * lib/javaversion.c (execute_and_read_line): Update.
40345         * NEWS: Document the changes.
40346         Reported by Eric Blake.
40347
40348 2008-06-10  Eric Blake  <ebb9@byu.net>
40349
40350         Add missing include.
40351         * tests/test-strstr.c (includes): Add <signal.h>.
40352         * tests/test-strcasestr.c (includes): Likewise.
40353         * tests/test-memmem.c (includes): Likewise.
40354
40355 2008-06-10  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/wait-process.c (wait_subprocess): Add an assertion.
40358
40359 2008-06-10  Bruno Haible  <bruno@clisp.org>
40360
40361         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40362
40363 2008-06-10  Bruno Haible  <bruno@clisp.org>
40364
40365         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40366         using alarm().
40367         * tests/test-strcasestr.c (main): Likewise.
40368         * tests/test-strstr.c (main): Likewise.
40369
40370 2008-06-09  Bruno Haible  <bruno@clisp.org>
40371
40372         Work around the Solaris 10 ACE ACLs ABI change.
40373         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40374         declare if ACL_NO_TRIVIAL is present.
40375         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40376         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40377         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40378         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40379         define if ACL_NO_TRIVIAL is present.
40380         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40381         and use the current ABI.
40382         (file_has_acl): Use same #if condition as elsewhere.
40383         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40384         in use, and use the current ABI.
40385         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40386         Reported by Jim Meyering.
40387
40388 2008-06-09  Eric Blake  <ebb9@byu.net>
40389
40390         Work around environments that (stupidly) ignore SIGALRM.
40391         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40392         before using alarm().
40393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40395         Reported by Ian Beckwith <ianb@erislabs.net>.
40396
40397         Produce autobuild blurb earlier in log.
40398         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40399
40400 2008-06-09  Jim Meyering  <meyering@redhat.com>
40401         and OndÅ™ej Vašík  <ovasik@redhat.com>
40402
40403         utimens.c: correct kernel bug work-around
40404         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40405         failure, not success, and the kernel bug we're trying to work
40406         around affects not just the utimensat call, but also the fallback
40407         futimens call.
40408         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40409         not success.
40410         [HAVE_FUTIMENS]: Use the same work-around, here.
40411
40412 2008-06-09  Jim Meyering  <meyering@redhat.com>
40413
40414         add more guards around definition of ACE_-related code
40415         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40416         ALLOW and ACE_OWNER are also defined.
40417
40418 2008-06-08  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/acl-internal.h: Add me as co-author.
40421         * lib/file-has-acl.c: Likewise.
40422         * lib/set-mode-acl.c: Likewise.
40423         * lib/copy-acl.c: Likewise.
40424
40425 2008-06-08  Bruno Haible  <bruno@clisp.org>
40426
40427         Add support for AIX ACLs.
40428         * lib/acl-internal.h (acl_nontrivial): New declaration.
40429         * lib/file-has-acl.c (acl_nontrivial): New function.
40430         (file_has_acl): Add implementation using AIX 4 ACL API.
40431         * lib/set-mode-acl.c (qset_acl): Likewise.
40432         * lib/copy-acl.c (qcopy_acl): Likewise.
40433
40434 2008-06-08  Bruno Haible  <bruno@clisp.org>
40435
40436         Add support for HP-UX ACLs.
40437         * lib/acl-internal.h (acl_nontrivial): New declaration.
40438         * lib/file-has-acl.c (acl_nontrivial): New function.
40439         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40440         * lib/set-mode-acl.c (qset_acl): Likewise.
40441         * lib/copy-acl.c (qcopy_acl): Likewise.
40442
40443 2008-06-08  Bruno Haible  <bruno@clisp.org>
40444
40445         Add support for Cygwin ACLs.
40446         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40447         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40448         the chmod_or_fchmod call.
40449         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40450
40451 2008-06-08  Bruno Haible  <bruno@clisp.org>
40452
40453         Fix bug with setuid modes in Solaris 10+ code.
40454         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40455         succeeded, when the mode contains some special bits.
40456
40457 2008-06-08  Bruno Haible  <bruno@clisp.org>
40458
40459         Add support for Solaris 7..10 ACLs.
40460         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40461         declarations.
40462         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40463         functions.
40464         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40465         * lib/set-mode-acl.c (qset_acl): Likewise.
40466         * lib/copy-acl.c (qcopy_acl): Likewise.
40467
40468 2008-06-08  Bruno Haible  <bruno@clisp.org>
40469
40470         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40471         declaration.
40472         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40473         (acl_access_nontrivial): Remove MacOS X case.
40474         (file_has_acl): Use acl_extended_nontrivial.
40475         * lib/copy-acl.c (qcopy_acl): Likewise.
40476
40477 2008-06-08  Bruno Haible  <bruno@clisp.org>
40478
40479         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40480
40481 2008-06-08  Jim Meyering  <meyering@redhat.com>
40482
40483         * modules/acl (Maintainer): Add Bruno Haible.
40484
40485 2008-06-07  Bruno Haible  <bruno@clisp.org>
40486
40487         Improve support for Tru64 ACLs.
40488         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40489         ACL on OSF/1.
40490
40491 2008-06-07  Bruno Haible  <bruno@clisp.org>
40492
40493         Add support for MacOS X ACLs.
40494         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40495         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40496         * lib/set-mode-acl.c (qset_acl): Likewise.
40497         * lib/copy-acl.c (qcopy_acl): Likewise.
40498
40499 2008-06-07  Bruno Haible  <bruno@clisp.org>
40500
40501         Fix memory leak introduced on 2008-05-22.
40502         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40503         use.
40504
40505 2008-06-07  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40508         to construct an empty ACL.
40509
40510 2008-06-07  Bruno Haible  <bruno@clisp.org>
40511
40512         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40513         precisely.
40514         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40515
40516 2008-06-07  Bruno Haible  <bruno@clisp.org>
40517
40518         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40519         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40520
40521 2008-06-07  Bruno Haible  <bruno@clisp.org>
40522
40523         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40524         regardless of POSIX.
40525         * doc/posix-functions/_longjmp.texi: Likewise.
40526         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40527         SystemV platform in this case.
40528
40529 2008-06-06  Eric Blake  <ebb9@byu.net>
40530
40531         Document abort() bugs.
40532         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40533
40534         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40535         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40536         sigsetjmp.
40537         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40538         siglongjmp, but only as a macro.
40539         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40540         is obsolete.
40541         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40542
40543         Tweak documentation to cover cygwin argz bugs.
40544         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40545         argz bug fix; no code change needed since no cygwin releases
40546         occurred between the last fix and the bug being tested.
40547         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40548         module and recently fixed cygwin bugs.
40549         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40550         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40551         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40552         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40553         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40554         Likewise.
40555         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40556         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40557         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40558         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40559         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40560         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40561         Likewise.
40562
40563         Avoid gcc warning on cygwin.
40564         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40565         !ACL_NO_TRIVIAL]: Avoid unused variable.
40566
40567 2008-06-05  Eric Blake  <ebb9@byu.net>
40568
40569         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40570         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40571         git-version-gen fails to come up with a version.
40572         Reported by Simon Josefsson.
40573
40574 2008-06-05  Jim Meyering  <meyering@redhat.com>
40575             Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         utimens.c: work around a probable Linux kernel bug
40578         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40579         appears to be a kernel bug that causes utimensat to return 280
40580         instead of 0, indicating success.
40581
40582 2008-06-04  Bruno Haible  <bruno@clisp.org>
40583
40584         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40585         2008-06-01 commit.
40586
40587 2008-06-04  Bruno Haible  <bruno@clisp.org>
40588
40589         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40590         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40591         (file_has_acl): Use it. Save errno afterwards.
40592         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40593
40594 2008-06-03  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40597         draft code. Simplify #ifs.
40598         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40599         Put Solaris code after POSIX-draft code. Fix comments regarding
40600         Solaris 10, HP-UX. Mention Cygwin.
40601         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40602
40603 2008-06-03  Eric Blake  <ebb9@byu.net>
40604
40605         Provide fallback for older kernels.
40606         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40607         Provide runtime fallback if kernel lacks support.
40608         Reported by Mike Frysinger.
40609
40610 2008-06-02  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40613         it exists.
40614
40615 2008-06-02  Bruno Haible  <bruno@clisp.org>
40616
40617         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40618         * lib/copy-acl.c (qcopy_acl): Update comment.
40619
40620 2008-06-02  Bruno Haible  <bruno@clisp.org>
40621
40622         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40623         like ACL APIs.
40624
40625 2008-06-02  Bruno Haible  <bruno@clisp.org>
40626
40627         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40628         * tests/test-set-mode-acl.sh: Likewise.
40629         * tests/test-copy-acl.sh: Likewise.
40630         * tests/test-copy-file.sh: Likewise.
40631
40632 2008-06-02  Bruno Haible  <bruno@clisp.org>
40633
40634         * tests/test-file-has-acl.sh: Remove unused code.
40635
40636 2008-06-01  Bruno Haible  <bruno@clisp.org>
40637
40638         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40639         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40640         messages.
40641         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40642
40643 2008-06-01  Bruno Haible  <bruno@clisp.org>
40644
40645         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40646         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40647         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40648         APIs.
40649         * modules/acl-tests (configure.ac): Remove tests now contained in
40650         m4/acl.m4.
40651
40652 2008-06-02  Jim Meyering  <meyering@redhat.com>
40653
40654         announce-gen: use a better key-server host name
40655         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40656         it may be more consistently reliable.  Suggested by Werner Koch
40657         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40658
40659 2008-06-01  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40662         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40663
40664 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40665
40666         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40667
40668 2008-06-01  Bruno Haible  <bruno@clisp.org>
40669
40670         New ACL tests.
40671         * tests/test-file-has-acl.sh: New file.
40672         * tests/test-file-has-acl.c: New file.
40673         * tests/test-set-mode-acl.sh: New file.
40674         * tests/test-set-mode-acl.c: New file.
40675         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40676         * tests/test-copy-acl.c: New file.
40677         * modules/acl-tests: New file, based on modules/copy-file-tests.
40678         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40679         (Depends-on): Add acl-tests.
40680         (configure.ac): Remove checks.
40681         (Makefile.am): Don't create test-sameacls program here any more.
40682
40683 2008-06-01  Bruno Haible  <bruno@clisp.org>
40684
40685         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40686         * tests/test-sameacls.c: Include progname.h.
40687         (main): Invoke set_program_name. Portability fixes for MacOS X,
40688         Solaris, HP-UX.
40689
40690 2008-06-01  Bruno Haible  <bruno@clisp.org>
40691
40692         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40693         function.
40694         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40695
40696 2008-06-01  Bruno Haible  <bruno@clisp.org>
40697
40698         * modules/rpmatch (Depends-on): Add strdup.
40699
40700 2008-06-01  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/pipe.c: Include unistd-safer.h.
40703         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40704         * modules/pipe (Depends-on): Add unistd-safer.
40705
40706 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40707
40708         * modules/autobuild (configure.ac): Call AB_INIT.
40709
40710 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40711
40712         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40713         Suggested by Bruno Haible <bruno@clisp.org>.
40714
40715 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40716
40717         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40718         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40719         <bruno@clisp.org>.
40720
40721 2008-05-29  Eric Blake  <ebb9@byu.net>
40722
40723         Prefer new POSIX 200x interfaces over futimesat.
40724         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40725         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40726         when available.
40727         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40728
40729 2008-05-28  Bruno Haible  <bruno@clisp.org>
40730
40731         * modules/stpcpy (License): Change to LGPLv2+.
40732         Requested by David Lutterkort <dlutter@redhat.com>.
40733
40734 2008-05-27  Bruno Haible  <bruno@clisp.org>
40735
40736         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40737         current mingw.
40738         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40739
40740 2008-05-27  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/iconv_open (Link): New section, from module 'iconv'.
40743         * modules/striconv (Link): Likewise.
40744         * modules/striconveh (Link): Likewise.
40745         * modules/xstriconv (Link): Likewise.
40746         * modules/unicodeio (Link): Likewise.
40747         * modules/propername (Link): Likewise.
40748         Reported by Jim Meyering.
40749
40750 2008-05-26  Jim Meyering  <meyering@redhat.com>
40751
40752         sha256: do not artificially restrict buffer length to be < 2^32
40753         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40754         uint32_t to size_t.
40755         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40756         to match.
40757
40758         avoid unaligned access errors, e.g., on sparc
40759         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40760         direct access through a possibly-unaligned uint64* pointer.
40761         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40762         direct access through a possibly-unaligned uint32* pointer.
40763         Prompted by this patch from Tom "spot" Callaway:
40764         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40765
40766         sha512.c: fix typo in comment
40767         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40768
40769 2008-05-25  Bruno Haible  <bruno@clisp.org>
40770
40771         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40772         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40773         (Makefile.am): Update lib_SOURCES.
40774
40775 2008-05-25  Bruno Haible  <bruno@clisp.org>
40776
40777         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40778
40779 2008-05-25  Jim Meyering  <meyering@redhat.com>
40780
40781         useless-if-before-free: freed expr may have white-space differences
40782         * build-aux/useless-if-before-free: Recognize cases in which the
40783         freed expression differs from the tested one in embedded white
40784         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40785         $1 was used, so we can't make any regexp shy.  Improved tests now
40786         detect this.
40787
40788         useless-if-before-free: accept white space in the expression.
40789         * build-aux/useless-if-before-free: For now, any white space
40790         in the expression must be identical in the free argument.
40791
40792         useless-if-before-free: efficiency tweak
40793         * build-aux/useless-if-before-free: Make the expression-matching
40794         regexp "shy".
40795         Make the *outer* regexp shy, not the expr-matching one.
40796
40797         update code-in-comment to accept cast of free arg
40798         * build-aux/useless-if-before-free: Update regexp.
40799
40800 2008-05-25  Bruno Haible  <bruno@clisp.org>
40801
40802         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40803         * modules/copy-file-tests (Files, Makefile.am): Update.
40804         * tests/test-copy-file.c (func_test_copy): Update.
40805
40806 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40807
40808         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40809
40810 2008-05-23  Bruno Haible  <bruno@clisp.org>
40811
40812         Improve support for ACLs on OSF/1.
40813         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40814         Remove fallback for unknown flavors of ACLs.
40815
40816 2008-05-22  Bruno Haible  <bruno@clisp.org>
40817
40818         Add support for ACLs on OSF/1.
40819         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40820         replacements.
40821         (acl_free_text): New macro fallback.
40822         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40823         acl_free.
40824         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40825         acl_free_text function. Require AC_C_INLINE.
40826
40827 2008-05-22  Bruno Haible  <bruno@clisp.org>
40828
40829         Make copy_acl work on MacOS X 10.5.
40830         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40831         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40832         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40833         If MODE_INSIDE_ACL, don't assume that every system has the same text
40834         representation for ACLs as FreeBSD.
40835         * lib/copy-acl.c (copy_acl): Add support for platforms with
40836         !MODE_INSIDE_ACL.
40837         * lib/file-has-acl.c (file_has_acl): Likewise.
40838         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40839         FreeBSD, MacOS X, or IRIX, respectively.
40840
40841 2008-05-22  Bruno Haible  <bruno@clisp.org>
40842
40843         * lib/acl.h: Don't include <sys/acl.h>.
40844         (GETACLCNT): Move fallback to lib/acl-internal.h.
40845         * lib/acl-internal.h: Include <sys/acl.h> here.
40846         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40847
40848 2008-05-22  Bruno Haible  <bruno@clisp.org>
40849
40850         Split off copy_acl function to separate file.
40851         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40852         * lib/acl.c (copy_acl): Moved function to separate file.
40853         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40854         * modules/acl (Files): Add lib/copy-acl.c.
40855         (Makefiles.am): Augment lib_SOURCES.
40856
40857 2008-05-22  Bruno Haible  <bruno@clisp.org>
40858
40859         * modules/copy-file-tests: New file.
40860         * tests/test-copy-file.sh: New file.
40861         * tests/test-copy-file.c: New file.
40862         * tests/test-copy-file-sameacls.c: New file.
40863
40864 2008-05-22  Eric Blake  <ebb9@byu.net>
40865
40866         Avoid gcc warning.
40867         * tests/test-memcmp.c (main): Pass NULL indirectly.
40868
40869 2008-05-21  Bruno Haible  <bruno@clisp.org>
40870
40871         Add reference doc about ACLs.
40872         * doc/acl-resources.txt: New file.
40873         * doc/acl-cygwin.txt: New file.
40874
40875 2008-05-21  Bruno Haible  <bruno@clisp.org>
40876
40877         Avoid one more warning from gcc.
40878         * lib/vasnprintf.c (IF_LINT): Update comments.
40879         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40880
40881 2008-05-21  Jim Meyering  <meyering@redhat.com>
40882
40883         avoid a warning from gcc
40884         * lib/vasnprintf.c (IF_LINT): Define.
40885         (scale10_round_decimal_long_double):
40886         Use it to avoid a "may be used uninitialized" warning.
40887         (scale10_round_decimal_double): Likewise.
40888
40889 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40890
40891         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40892         declared.
40893
40894 2008-05-20  Bruno Haible  <bruno@clisp.org>
40895
40896         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40897         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40898
40899 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40900
40901         * modules/memcmp-tests: New file.
40902         * tests/test-memcmp.c: New file.
40903
40904 2008-05-19  Bruno Haible  <bruno@clisp.org>
40905
40906         * modules/propername (Notice, configure.ac): Put quoted "..." into
40907         --keyword option.
40908         * lib/propername.h: Update comments accordingly.
40909         Reported by Eric Blake.
40910
40911 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40912
40913         * modules/getpass-gnu (Depends-on): Add fseeko.
40914
40915 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40916
40917         * modules/base64-tests: New file.
40918
40919 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40920
40921         * lib/base64.c (base64_decode_ctx): If a decode context structure
40922         was passed in use it to ignore newlines.  If a context structure
40923         was _not_ passed in, continue to treat newlines as garbage (this
40924         is the historical behavior).  Formerly base64_decode.
40925         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40926         takes a decode context structure.
40927         * lib/base64.h (base64_decode): Macro for four-argument calls.
40928         (base64_decode_alloc): Likewise.
40929         * lib/base64.c (base64_decode_ctx): If a decode context structure
40930         was passed in use it to ignore newlines.  If a context structure
40931         was _not_ passed in, continue to treat newlines as garbage (this
40932         is the historical behavior).  Formerly base64_decode.
40933         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40934         takes a decode context structure.
40935         * lib/base64.h (base64_decode): Macro for four-argument calls.
40936         (base64_decode_alloc): Likewise.
40937
40938 2008-05-19  Jim Meyering  <meyering@redhat.com>
40939
40940         avoid a warning from gcc
40941         * lib/trim.c (IF_LINT): Define.
40942         (trim2): Use it to avoid a "may be used uninitialized" warning.
40943
40944         Fix doc typo.
40945         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40946
40947 2008-05-19  Bruno Haible  <bruno@clisp.org>
40948
40949         * doc/glibc-functions/getpass.texi: Document limits of other
40950         implementations.
40951
40952 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40953             Bruno Haible <bruno@clisp.org>
40954
40955         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40956
40957 2008-05-18  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/propername: New file, from GNU gettext.
40960         * lib/propername.h: New file, from GNU gettext.
40961         * lib/propername.c: New file, from GNU gettext.
40962         * MODULES.html.sh (Internationalization functions): Add propername.
40963
40964 2008-05-16  Jim Meyering  <meyering@redhat.com>
40965             Bruno Haible  <bruno@clisp.org>
40966
40967         Avoid some warnings from "gcc -Wshadow".
40968         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40969
40970 2008-05-15  Eric Blake  <ebb9@byu.net>
40971
40972         Extend previous patch to cygwin 1.7.0.
40973         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40974         fast implementation in cygwin >= 1.7.0.
40975         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40977
40978 2008-05-15  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40981         implementation in glibc >= 2.9.
40982         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40984
40985 2008-05-15  Bruno Haible  <bruno@clisp.org>
40986
40987         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40988         (Unicode string functions): Add unilbrk/*.
40989         Reported by Karl Berry.
40990
40991 2008-05-15  Eric Blake  <ebb9@byu.net>
40992
40993         Fix violation of <stdbool.h> replacement in regex.
40994         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40995         * lib/regexec.c (re_search_internal): Likewise.
40996         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40997
40998 2008-05-15  Jim Meyering  <meyering@redhat.com>
40999
41000         avoid distracting test output when git or cvs is not found
41001         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41002         * tests/test-vc-list-files-git.sh: Likewise.
41003
41004 2008-05-15  Eric Blake  <ebb9@byu.net>
41005
41006         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41007         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41008         glibc version.
41009         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41010         * doc/posix-functions/strstr.texi (strstr): Likewise.
41011         * lib/str-two-way.h (MAX): Sychronize with glibc.
41012
41013 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41014
41015         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41016         opr.ctx_type.
41017         (calc_first): Initialize constraint field.
41018         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41019         Fix grammar.
41020         (duplicate_node): Merge constraint field for all node types.
41021         (calc_eclosure_iter): Look at constraint field for all node types.
41022         * lib/regex_internal.c (create_cd_newstate): Don't look at
41023         opr.ctx_type.
41024
41025 2008-05-14  Bruno Haible  <bruno@clisp.org>
41026
41027         Help GCC to do better code generation.
41028         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41029         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41030         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41031         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41032         Declare with attribute 'malloc' if supported.
41033
41034 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41035
41036         use "echo STR|wc -c" rather than unportable "expr length STR"
41037         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41038         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41039
41040 2008-05-14  Jim Meyering  <meyering@redhat.com>
41041
41042         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41043         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41044         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41045         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
41046         via Collin Lasse.
41047
41048 2008-05-14  Eric Blake  <ebb9@byu.net>
41049
41050         Avoid quadratic growth in gl_LIBSOURCES.
41051         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
41052         Suggested by Bruno Haible.
41053
41054         Test xmemdup0.
41055         * modules/xmemdup0-tests: New file.
41056         * tests/test-xmemdup0.c: Likewise.
41057
41058 2008-05-13  Eric Blake  <ebb9@byu.net>
41059
41060         Split xmemdup0 into its own module.
41061         * modules/xmemdup0: New file.
41062         * lib/xmemdup0.h: Likewise.
41063         * lib/xmemdup0.c: Likewise.
41064         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41065         * lib/xalloc.h (xmemdup0): Remove.
41066         * lib/xmalloc.c (xmemdup0): Likewise.
41067
41068 2008-05-13  Eric Blake  <ebb9@byu.net>
41069             Bruno Haible  <bruno@clisp.org>
41070
41071         Reduce number of forks required during autoconf.
41072         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41073         and gl_LIBSOURCES_DIR.
41074         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41075         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41076         m4_syscmd per file.
41077         <m4_foreach_w>: Move...
41078         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41079
41080 2008-05-13  Eric Blake  <ebb9@byu.net>
41081
41082         * gnulib-tool: Fix various comment typos.
41083
41084 2008-05-12  Bruno Haible  <bruno@clisp.org>
41085
41086         Tailor the linebreaking algorithm.
41087         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41088
41089 2008-05-12  Bruno Haible  <bruno@clisp.org>
41090
41091         Update to Unicode 5.0.0.
41092         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41093         LBP_JV, LBP_JT. Redistribute values.
41094         (unilbrk_table): Change size.
41095         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41096         Unicode TR#14 rev. 22.
41097         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41098         LBP_JV, LBP_JT. Redistribute values.
41099         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41100         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41101         Update.
41102         * lib/unilbrk/lbrkprop1.h: Regenerated.
41103         * lib/unilbrk/lbrkprop2.h: Regenerated.
41104         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41105         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41106         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41107         Likewise.
41108         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41109         Likewise.
41110         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41111         result.
41112         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41113         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41114         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41115         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41116         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41117         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41118
41119 2008-05-11  Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41122
41123 2008-05-11  Bruno Haible  <bruno@clisp.org>
41124
41125         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41126         * modules/unilbrk/gen-lbrk: New file.
41127
41128 2008-05-11  Bruno Haible  <bruno@clisp.org>
41129
41130         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41131         * m4/sha512.m4 (gl_SHA512): Likewise.
41132
41133 2008-05-11  Jim Meyering  <meyering@redhat.com>
41134
41135         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41136         * modules/crypto/sha256: New file.
41137         * modules/crypto/sha512: Likewise.
41138         * lib/sha256.c: Likewise.
41139         * lib/sha256.h: Likewise.
41140         * lib/sha512.c: Likewise.
41141         * lib/sha512.h: Likewise.
41142         * lib/u64.h: Likewise.
41143         * m4/sha256.m4: Likewise.
41144         * m4/sha512.m4: Likewise.
41145         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41146
41147 2008-05-10  Bruno Haible  <bruno@clisp.org>
41148
41149         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41150         (Input/Output <stdio.h>): Add xprintf.
41151         (Signal handling <signal.h>): Add strsignal.
41152         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41153         (Core language properties): Add func.
41154         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41155         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41156         strings.
41157         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41158         (Input/output): New section.
41159         (File system functions): Add openat-die, stat-macros.
41160         (Networking functions): Add sockets.
41161         (Unicode string functions): Add unictype/*.
41162         (Support for building libraries and executables): Add gperf.
41163         (Support for building documentation): Add agpl-3.0.
41164         (Misc): Add nocrash.
41165
41166 2008-05-10  Bruno Haible  <bruno@clisp.org>
41167
41168         * modules/unictype/gen-ctype: New file.
41169
41170 2008-05-10  Jim Meyering  <meyering@redhat.com>
41171
41172         Make chdir-safer.c more efficient on a system with no symlinks.
41173         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41174         also if ELOOP is zero.  Suggested by Bruno Haible.
41175
41176         Make chdir-safer.c slightly safer.
41177         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41178         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41179
41180         Avoid compile failure on systems without ELOOP (like mingw).
41181         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41182         Reported by Bruno Haible.
41183
41184 2008-05-10  Bruno Haible  <bruno@clisp.org>
41185
41186         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41187         (is_utf8_encoding): Use a case-insensitive comparison.
41188         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41189         streq.
41190
41191 2008-05-10  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41194         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41195         * lib/unilbrk/ulc-common.h (iconv_string_length,
41196         iconv_string_keeping_offsets): Remove declarations.
41197         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41198         Don't include <iconv.h>, streq.h, xsize.h.
41199         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41200         conversion.
41201         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41202         <iconv.h>, streq.h, xsize.h.
41203         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41204         conversion.
41205         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41206         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41207         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41208         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41209
41210 2008-05-10  Bruno Haible  <bruno@clisp.org>
41211
41212         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41213         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41214
41215         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41216         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41217
41218         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41219         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41220
41221         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41222         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41223
41224         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41225         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41226
41227         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41228         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41229
41230         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41231         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41232
41233         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41234         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41235
41236 2008-05-10  Bruno Haible  <bruno@clisp.org>
41237
41238         Split up 'linebreak' module.
41239         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41240         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41241         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41242         modifications.
41243         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41244         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41245         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41246         lib/linebreak.c.
41247         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41248         lib/linebreak.c.
41249         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41250         lib/linebreak.c.
41251         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41252         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41253         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41254         lib/linebreak.c.
41255         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41256         lib/linebreak.c.
41257         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41258         lib/linebreak.c.
41259         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41260         lib/linebreak.c.
41261         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41262         lib/linebreak.c.
41263         * modules/unilbrk/base: New file.
41264         * modules/unilbrk/tables: New file.
41265         * modules/unilbrk/u8-possible-linebreaks: New file.
41266         * modules/unilbrk/u16-possible-linebreaks: New file.
41267         * modules/unilbrk/u32-possible-linebreaks: New file.
41268         * modules/unilbrk/ulc-common: New file.
41269         * modules/unilbrk/ulc-possible-linebreaks: New file.
41270         * modules/unilbrk/u8-width-linebreaks: New file.
41271         * modules/unilbrk/u16-width-linebreaks: New file.
41272         * modules/unilbrk/u32-width-linebreaks: New file.
41273         * modules/unilbrk/ulc-width-linebreaks: New file.
41274         * lib/linebreak.h: Remove file.
41275         * lib/linebreak.c: Remove file.
41276         * m4/linebreak.m4: Remove file.
41277         * modules/linebreak: Remove file.
41278         * NEWS: Mention the changes.
41279
41280 2008-05-09  Eric Blake  <ebb9@byu.net>
41281
41282         Add xmemdup0.
41283         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41284         implementation.
41285         * lib/xmalloc.c (xmemdup0): New C implementation.
41286
41287 2008-05-08  Bruno Haible  <bruno@clisp.org>
41288
41289         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41290
41291 2008-05-07  Eric Blake  <ebb9@byu.net>
41292
41293         Support cross-compilation of <wctype.h>.
41294         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41295         AC_CACHE_CHECK.
41296
41297 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41298
41299         * build-aux/vc-list-files: Add support for bzr.
41300
41301 2008-05-03  Jim Meyering  <meyering@redhat.com>
41302
41303         avoid failed assertion with tight malloc
41304         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41305
41306 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41307
41308         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41309         are needed from arpa/inet.h.
41310         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41311         Reported by Bruno Haible.
41312
41313 2008-05-02  Jim Meyering  <meyering@redhat.com>
41314
41315         avoid compilation error on FreeBSD 6
41316         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41317
41318 2008-05-01  Jim Meyering  <meyering@redhat.com>
41319
41320         useless-if-before-free: correct --help's exit status description
41321         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41322         for one or more matches, etc.  Reported by Bruno Haible.
41323
41324         vc-list-files: make the stand-alone gnulib test work
41325         * modules/vc-list-files-tests (configure.ac):
41326         Define and AC_SUBST abs_aux_dir.
41327         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41328         $(abs_top_srcdir) to each script and having each of them
41329         duplicate the work of setting PATH, set PATH here, using
41330         the new variable, abs_aux_dir instead.
41331         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41332         * tests/test-vc-list-files-git.sh: Likewise.
41333         Reported by Bruno Haible.
41334
41335 2008-05-01  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41338         reallocation. Rename 'done' to 'found_delimiter'.
41339
41340 2008-05-01  Jim Meyering  <meyering@redhat.com>
41341
41342         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41343         * build-aux/vc-list-files: Use `...`, not $(...).
41344
41345 2008-04-30  Jim Meyering  <meyering@redhat.com>
41346
41347         add tests for vc-list-files
41348         * modules/vc-list-files-tests: New module.
41349         * tests/test-vc-list-files-cvs.sh: New file.
41350         * tests/test-vc-list-files-git.sh: New file.
41351
41352         avoid a warning from gcc
41353         * lib/getndelim2.c (IF_LINT): Define.
41354         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41355
41356         vc-list-files: work properly with build-aux/cvsu, too
41357         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41358         to all cvs-based clauses.
41359
41360         vc-list-files: work properly in the CVS+awk case, too
41361         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41362
41363         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41364         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41365         take more than one file argument, so .  Add quotes, just in case $dir
41366         ever contains a shell meta-character.  Prompted by Soren Hansen in
41367         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41368
41369 2008-04-29  Eric Blake  <ebb9@byu.net>
41370
41371         Optimize getndelim2 to use block operations when possible.
41372         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41373         freadseek, and memchr2.
41374         * lib/getndelim2.c (getndelim2): Use them for block reads.
41375
41376 2008-04-29  Bruno Haible  <bruno@clisp.org>
41377
41378         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41379         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41380         * modules/inet_ntop (Depends-on): Add extensions.
41381         * modules/inet_pton (Depends-on): Likewise.
41382         Reported by Simon Josefsson.
41383
41384 2008-04-29  Jim Meyering  <meyering@redhat.com>
41385
41386         When the is more than one match in a block, match all of them.
41387         * build-aux/useless-if-before-free: Iterate through each block
41388         until there are no more matches.
41389
41390         Fix broken useless-if-before-free script.
41391         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41392         the expression to match cast of argument to free-like function.
41393
41394 2008-04-29  Eric Blake  <ebb9@byu.net>
41395
41396         Use new header.
41397         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41398
41399 2008-04-29  Jim Meyering  <meyering@redhat.com>
41400
41401         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41402         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41403         by gnulib to exist and to declare e.g., inet_ntop.
41404         Don't include "inet_ntop.h", now removed.
41405
41406         * m4/arpa_inet_h.m4: Remove trailing blanks.
41407
41408 2008-04-29  Eric Blake  <ebb9@byu.net>
41409
41410         Silence valgrind on safe reads beyond potential array bounds.
41411         * lib/rawmemchr.valgrind: New file.
41412         * lib/strchrnul.valgrind: Likewise.
41413         * modules/rawmemchr (Files): Distribute new file.
41414         * modules/strchrnul (Files): Likewise.
41415         Suggested by Bruno Haible.
41416
41417 2008-04-29  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41420         (inet_ntop, inet_pton): Change portability warning's wording.
41421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41422         Invoke gl_CHECK_NEXT_HEADERS.
41423         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41424         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41425         set ARPA_INET_H.
41426         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41427         * modules/arpa_inet (Description): No longer only for systems that
41428         lack it.
41429         (Depends-on): Add include_next.
41430         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41431         HAVE_ARPA_INET_H.
41432
41433 2008-04-29  Jim Meyering  <meyering@redhat.com>
41434
41435         * modules/mkdir (License): Re-license as LGPLv2+.
41436
41437 2008-04-29  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/rawmemchr (Maintainer): Set to Eric.
41440         * modules/strchrnul (Maintainer): Likewise.
41441
41442 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41443
41444         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41445         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41446
41447         * modules/arpa_inet (arpa/inet.h): Use them.
41448
41449 2008-04-28  Eric Blake  <ebb9@byu.net>
41450
41451         Test getndelim2.
41452         * modules/getndelim2-tests: New file.
41453         * tests/test-getndelim2.c: Likewise.
41454         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41455         stream.
41456         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41457
41458         * MODULES.html.sh: Document new module.
41459
41460 2008-04-20  Bruno Haible  <bruno@clisp.org>
41461
41462         * lib/c-stack.c (die): Use raise.
41463         * modules/c-stack (Depends-on): Add raise.
41464
41465 2008-04-28  Bruno Haible  <bruno@clisp.org>
41466
41467         Expect rpmatch to be declared.
41468         * lib/yesno.c (rpmatch): Remove declaration.
41469
41470         Declare rpmatch.
41471         * lib/stdlib.in.h (rpmatch): New declaration.
41472         * lib/rpmatch.c: Include <stdlib.h> first.
41473         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41474         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41476         HAVE_RPMATCH.
41477         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41479         (Include): Set to <stdlib.h>.
41480         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41481         HAVE_RPMATCH.
41482         * NEWS: Document the change.
41483
41484 2008-04-28  Bruno Haible  <bruno@clisp.org>
41485
41486         Change rpmatch to use nl_langinfo when appropriate.
41487         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41488         (N_): New macro.
41489         (localized_pattern): New function/macro.
41490         (try): Remove match, nomatch arguments. Copy the pattern into safe
41491         memory before caching it.
41492         (rpmatch): Use localized_pattern. Add translator comments.
41493         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41494         Suggested by Eric Blake.
41495         * modules/rpmatch (Depends-on): Add stdbool.
41496
41497 2008-04-28  Eric Blake  <ebb9@byu.net>
41498
41499         Add rawmemchr module, matching glibc.
41500         * modules/string (Makefile.am): New indicator.
41501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41502         * lib/string.in.h (rawmemchr): Declare when appropriate.
41503         * modules/rawmemchr: New file.
41504         * m4/rawmemchr.m4: Likewise.
41505         * lib/rawmemchr.c: Likewise.
41506         * modules/rawmemchr-tests: Likewise.
41507         * tests/test-rawmemchr.c: Likewise.
41508         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41509         module.
41510         * modules/strchrnul (Depends-on): Add rawmemchr.
41511         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41512
41513         Whitespace cleanup.
41514         * tests/test-strchrnul.c: Reindent.
41515         * lib/strchrnul.c: Likewise.
41516
41517         Optimize and test strchrnul.
41518         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41519         * modules/strchrnul-tests: New file.
41520         * tests/test-strchrnul.c: Likewise.
41521
41522         Remove intprops dependency.
41523         * modules/memchr (Depends-on): Remove intprops.
41524         * modules/memrchr (Depends-on): Likewise.
41525         * modules/memchr2 (Depends-on): Likewise.
41526         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41527         * lib/memrchr.c (__memrchr): Likewise.
41528         * lib/memrchr2.c (memchr2): Likewise.
41529         Reported by Simon Josefsson.
41530
41531 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41532
41533         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41534         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41535
41536 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41537
41538         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41539
41540         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41541
41542         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41543
41544         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41545         declarations.
41546         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41547
41548         * m4/inet_pton.m4: Don't check for header files.
41549
41550         * m4/inet_ntop.m4: Don't check for header files.
41551
41552 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41553
41554         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41555         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41556         trigger for cygwin).
41557         Reported by Bruno Haible  <bruno@clisp.org>.
41558
41559 2008-04-28  Bruno Haible  <bruno@clisp.org>
41560
41561         * doc/posix-functions/strdup.texi: Mention mingw problem.
41562
41563 2008-04-27  Bruno Haible  <bruno@clisp.org>
41564
41565         * modules/stat-time-tests (Depends-on): Add sleep.
41566         * tests/test-stat-time.c (force_unlink): New function.
41567         (cleanup): Use it.
41568         (test_mtime): Remove the ctime related tests.
41569         (test_ctime): New function, containing the ctime related tests.
41570         (main): Call test_ctime, except on native Windows platforms.
41571
41572 2008-04-27  Bruno Haible  <bruno@clisp.org>
41573
41574         * lib/rpmatch.c (rpmatch): Add some comments.
41575         Reported by James Youngman <jay@gnu.org>.
41576
41577 2008-04-27  Bruno Haible  <bruno@clisp.org>
41578
41579         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41580         quiet NaNs.
41581
41582 2008-04-27  Bruno Haible  <bruno@clisp.org>
41583
41584         Make test-yesno.sh work on mingw.
41585         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41586         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41587         (main): Set stdin to binary mode.
41588         * modules/yesno-tests (Depends-on): Add binary-io.
41589
41590 2008-04-27  Bruno Haible  <bruno@clisp.org>
41591
41592         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41593         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41594         argument that lie outside the IEEE 854 domain.
41595         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41596         (gl_ISFINITE): Use it.
41597         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41598
41599 2008-04-27  Bruno Haible  <bruno@clisp.org>
41600
41601         Allow local renaming in config.h.
41602         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41603
41604 2008-04-27  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/memchr.c (__memchr): Change type of 'i'.
41607         * lib/memchr2.c (memchr2): Likewise.
41608
41609 2008-04-26  Eric Blake  <ebb9@byu.net>
41610         and Bruno Haible  <bruno@clisp.org>
41611
41612         Optimize and test memrchr.
41613         * modules/memrchr (Depends-on): Add intprops.
41614         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41615         * modules/memrchr-tests: New file.
41616         * tests/test-memrchr.c: New file.
41617
41618 2008-04-26  Bruno Haible  <bruno@clisp.org>
41619
41620         Add tentative support for DragonFly BSD.
41621         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41622         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41623         fp.
41624         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41625         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41626         * lib/fpurge.c (fpurge): Likewise.
41627         * lib/freadable.c (freaadable): Likewise.
41628         * lib/freadahead.c (freadahead): Likewise.
41629         * lib/freading.c (freading): Likewise.
41630         * lib/freadptr.c (freadptr): Likewise.
41631         * lib/freadseek.c (freadptrinc): Likewise.
41632         * lib/fseeko.c (fseeko): Likewise.
41633         * lib/fseterr.c (fseterr): Likewise.
41634         * lib/fwritable.c (fwritable): Likewise.
41635         * lib/fwriting.c (fwriting): Likewise.
41636
41637 2008-04-26  Bruno Haible  <bruno@clisp.org>
41638
41639         * lib/stdio-impl.h: New file.
41640         * lib/fbufmode.c: Include stdio-impl.h.
41641         (fbufmode): Use fp_, remove redundant #defines.
41642         * lib/fflush.c: Include stdio-impl.h.
41643         (clear_ungetc_buffer): Remove redundant #defines.
41644         * lib/fpurge.c: Include stdio-impl.h.
41645         (fpurge): Remove redundant #defines.
41646         * lib/freadable.c: Include stdio-impl.h.
41647         (freadable): Remove redundant #defines.
41648         * lib/freadahead.c: Include stdio-impl.h.
41649         (freadahead): Remove redundant #defines.
41650         * lib/freading.c: Include stdio-impl.h.
41651         (freading): Remove redundant #defines.
41652         * lib/freadptr.c: Include stdio-impl.h.
41653         (freadptr): Remove redundant #defines.
41654         * lib/freadseek.c: Include stdio-impl.h.
41655         (freadptrinc): Remove redundant #defines.
41656         * lib/fseeko.c: Include stdio-impl.h.
41657         (rpl_fseeko): Remove redundant #defines.
41658         * lib/fseterr.c: Include stdio-impl.h.
41659         (fseterr): Remove redundant #defines.
41660         * lib/fwritable.c: Include stdio-impl.h.
41661         (fwritable: Remove redundant #defines.
41662         * lib/fwriting.c: Include stdio-impl.h.
41663         (fwriting): Remove redundant #defines.
41664         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41665         * modules/fflush (Files): Likewise.
41666         * modules/fpurge (Files): Likewise.
41667         * modules/freadable (Files): Likewise.
41668         * modules/freadahead (Files): Likewise.
41669         * modules/freading (Files): Likewise.
41670         * modules/freadptr (Files): Likewise.
41671         * modules/freadseek (Files): Likewise.
41672         * modules/fseeko (Files): Likewise.
41673         * modules/fseterr (Files): Likewise.
41674         * modules/fwritable (Files): Likewise.
41675         * modules/fwriting (Files): Likewise.
41676
41677 2008-04-26  Bruno Haible  <bruno@clisp.org>
41678
41679         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41680         restore_seek_optimization, update_fpos_cache): New functions, extracted
41681         from rpl_fflush.
41682         (rpl_fflush): Use them.
41683         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41684         (gl_REPLACE_FFLUSH): Use it.
41685
41686 2008-04-26  Bruno Haible  <bruno@clisp.org>
41687
41688         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41689         on Solaris.
41690         * tests/test-xstrtoimax.sh: Likewise.
41691         * tests/test-xstrtoumax.sh: Likewise.
41692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41693
41694 2008-04-26  Bruno Haible  <bruno@clisp.org>
41695
41696         * modules/memchr-tests: New file.
41697         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41698
41699 2008-04-26  Eric Blake  <ebb9@byu.net>
41700             Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/memchr.c: Include intprops.h.
41703         (__memchr): Optimize parallel detection of matching bytes. Rename local
41704         variables. Add explanatory comments.
41705
41706 2008-04-26  Bruno Haible  <bruno@clisp.org>
41707
41708         Fix module 'memchr', broken since 2000-10-28.
41709         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41710
41711 2008-04-26  Bruno Haible  <bruno@clisp.org>
41712
41713         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41714         comments.
41715
41716 2008-04-25  Eric Blake  <ebb9@byu.net>
41717
41718         Use native fstatat on cygwin 1.7.0.
41719         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41720         first.
41721
41722 2008-04-23  Eric Blake  <ebb9@byu.net>
41723
41724         Improve memchr2 performance.
41725         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41726         NUL bytes.
41727         * modules/memchr2 (Depends-on): Use intprops.h.
41728
41729 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41730
41731         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41732         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41733         <blp@cs.stanford.edu>.
41734
41735 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41736
41737         * lib/arpa_inet.in.h: New file.
41738
41739         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41740         (Makefile.am): Sed in substitute header file.
41741
41742         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41743         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41744
41745         * modules/inet_ntop (configure.ac): Use
41746         gl_ARPA_INET_MODULE_INDICATOR.
41747
41748         * modules/inet_pton (configure.ac): Use
41749         gl_ARPA_INET_MODULE_INDICATOR.
41750
41751 2008-04-22  Jim Meyering  <meyering@redhat.com>
41752
41753         * modules/verify (License): Re-license as LGPLv2+.
41754
41755 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41756
41757         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41758         parameter to void* as per POSIX standard (MinGW uses char*).
41759
41760 2008-04-21  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41763         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41764         Define to replacements if REPLACE_ISWCNTRL is 1.
41765         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41766         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41767         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41768         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41769         what it fixes.
41770         * doc/posix-functions/iswalpha.texi: Likewise.
41771         * doc/posix-functions/iswblank.texi: Likewise.
41772         * doc/posix-functions/iswcntrl.texi: Likewise.
41773         * doc/posix-functions/iswdigit.texi: Likewise.
41774         * doc/posix-functions/iswgraph.texi: Likewise.
41775         * doc/posix-functions/iswlower.texi: Likewise.
41776         * doc/posix-functions/iswprint.texi: Likewise.
41777         * doc/posix-functions/iswpunct.texi: Likewise.
41778         * doc/posix-functions/iswspace.texi: Likewise.
41779         * doc/posix-functions/iswupper.texi: Likewise.
41780         * doc/posix-functions/iswxdigit.texi: Likewise.
41781         Reported by Alain Guibert.
41782
41783 2008-04-21  Bruno Haible  <bruno@clisp.org>
41784
41785         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41786         Patch by Alain Guibert.
41787
41788 2008-04-21  Bruno Haible  <bruno@clisp.org>
41789
41790         Fix test failures on mingw.
41791         * tests/test-xstrtol.c (print_no_progname): New function.
41792         (main): Install it in error_print_progname hook.
41793         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41794         * tests/test-xstrtoimax.sh: Likewise.
41795         * tests/test-xstrtoumax.sh: Likewise.
41796
41797 2008-04-21  Bruno Haible  <bruno@clisp.org>
41798
41799         Fix test failure on mingw.
41800         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41801
41802 2008-04-21  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41805         Actually assign a value.
41806
41807 2008-04-20  Bruno Haible  <bruno@clisp.org>
41808
41809         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41810         take 2.
41811         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41812         'canonicalize-lgpl' module is also used.
41813         * lib/canonicalize-lgpl.c: Undo last change.
41814         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41815
41816 2008-04-20  Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41819         config.h. Provide _mkdir based fallback for mingw.
41820         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41821         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41822         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41823         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41824         rather than defining mkdir in config.h.
41825         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41826         (gl_SYS_STAT_H_DEFAULTS): New macro.
41827         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41828         HAVE_IO_H any more.
41829         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41830         HAVE_DECL_MKDIR and HAVE_IO_H.
41831
41832 2008-04-20  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/isapipe.c: Port to native Windows platforms.
41835
41836 2008-04-20  Bruno Haible  <bruno@clisp.org>
41837
41838         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41839
41840 2008-04-21  Eric Blake  <ebb9@byu.net>
41841
41842         Work around preprocessors that don't handle UINTMAX_MAX.
41843         * lib/memchr2.c (memchr2): Avoid embedded #if.
41844         Reported by Alain Guibert, fix suggested by Bruno Haible.
41845
41846 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41847
41848         * doc/posix-functions/strftime.texi (strftime): Explain better
41849         Windows incompatibility.  Suggested by Micah Cowan
41850         <micah@cowan.name>.
41851
41852 2008-04-20  Bruno Haible  <bruno@clisp.org>
41853
41854         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41855         unistr/u8-mblen.
41856
41857 2008-04-20  Bruno Haible  <bruno@clisp.org>
41858
41859         Fix test failure on platforms with non-GNU iconv.
41860         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41861         (U_TO_U8): Use it, rather than u16_to_u8.
41862         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41863         units at the end of the input string.
41864         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41865
41866 2008-04-20  Bruno Haible  <bruno@clisp.org>
41867
41868         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41869         when the resulting length is 0.
41870         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41871
41872 2008-04-20  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41875         works.
41876         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41877
41878 2008-04-20  Bruno Haible  <bruno@clisp.org>
41879
41880         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41881         * modules/tsearch-tests (configure.ac): Test for initstate function.
41882
41883 2008-04-20  Bruno Haible  <bruno@clisp.org>
41884
41885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41886         for nlink_t if missing.
41887         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41888
41889 2008-04-19  Bruno Haible  <bruno@clisp.org>
41890
41891         Work around snprintf bug on Linux libc5.
41892         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41894         gl_SNPRINTF_SIZE1.
41895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41896         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41897         that test failed.
41898         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41899         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41900         * modules/snprintf (Files): Add m4/printf.m4.
41901         * modules/vsnprintf (Files): Likewise.
41902         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41903         * doc/posix-functions/vsnprintf.texi: Likewise.
41904
41905 2008-04-19  Bruno Haible  <bruno@clisp.org>
41906
41907         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41908         from 0.0058 to less than 10^-7.
41909
41910 2008-04-19  Bruno Haible  <bruno@clisp.org>
41911
41912         Fix rounding when a precision is given.
41913         * lib/vasnprintf.c (is_borderline): New function.
41914         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41915         9...9x.
41916         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41917         %e, %g.
41918         * tests/test-vasprintf-posix.c (test_function): Likewise.
41919         * tests/test-snprintf-posix.h (test_function): Likewise.
41920         * tests/test-sprintf-posix.h (test_function): Likewise.
41921         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41922         * tests/test-printf-posix.h (test_function): Likewise.
41923         * tests/test-printf-posix.output: Update.
41924         Reported by John Darrington <john@darrington.wattle.id.au> via
41925         Ben Pfaff <blp@cs.stanford.edu>.
41926
41927 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41928
41929         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41930         Suggested by Bruno Haible <bruno@clisp.org>.
41931
41932 2008-04-17  Bruno Haible  <bruno@clisp.org>
41933
41934         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41935         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41936         implementation.
41937         Patch by Bruce Merry <bmerry@gmail.com>.
41938
41939 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41940
41941         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41942         doesn't work under Windows.
41943
41944 2008-04-16  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41947         New macros.
41948         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41949         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41950         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41951         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41952         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41953         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41954         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41955         macros.
41956         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41957         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41958         Northern Sotho, Uighur.
41959
41960 2008-04-16  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41963         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41964         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41965         Reported by Daniel Bergström <daniel@octocode.com>.
41966
41967 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41968             Bruno Haible  <bruno@clisp.org>
41969
41970         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41971         function.
41972         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41973         New functions, mostly extracted from gl_locale_name_default.
41974         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41975
41976 2008-04-16  Eric Blake  <ebb9@byu.net>
41977
41978         Adjust strtod detection to catch glibc 2.7 bug.
41979         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41980         Reported by John Gatewood Ham.
41981
41982 2008-04-16  Bruno Haible  <bruno@clisp.org>
41983
41984         Add tentative support for Linux libc5.
41985         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41986         * lib/fpurge.c (fpurge): Likewise.
41987         * lib/freadable.c (freadable): Likewise.
41988         * lib/freadahead.c (freadahead): Likewise.
41989         * lib/freading.c (freading): Likewise.
41990         * lib/freadptr.c (freadptr): Likewise.
41991         * lib/freadseek.c (freadptrinc): Likewise.
41992         * lib/fseeko.c (rpl_fseeko): Likewise.
41993         * lib/fseterr.c (fseterr): Likewise.
41994         * lib/fwritable.c (fwritable): Likewise.
41995         * lib/fwriting.c (fwriting): Likewise.
41996         Reported by Alain Guibert <alguibert+bts@free.fr>.
41997
41998 2008-04-15  Bruno Haible  <bruno@clisp.org>
41999
42000         * modules/mathl (configure.ac): Define module indicator.
42001
42002 2008-04-15  Bruno Haible  <bruno@clisp.org>
42003
42004         * lib/logl.c (logl): Remove unused variables.
42005
42006 2008-04-15  Bruno Haible  <bruno@clisp.org>
42007
42008         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42009         fails.
42010
42011 2008-04-15  Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/trim.c (trim2): Fix argument of isspace() macro.
42014
42015 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42016
42017         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42018         to 0.
42019         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42020
42021 2008-04-14  Bruno Haible  <bruno@clisp.org>
42022
42023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42024         AC_LANG_PROGRAM argument.
42025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42026         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42029         * m4/math_h.m4 (gl_MATH_H): Likewise.
42030         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42031         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42032         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42033         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42034         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42035         * m4/regex.m4 (gl_REGEX): Likewise.
42036         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42037         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42039         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42040         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42041         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42044
42045 2008-04-14  Jim Meyering  <meyering@redhat.com>
42046
42047         test-strtod: fix typos: s/abs/fabs/
42048         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
42049
42050 2008-04-13  Bruno Haible  <bruno@clisp.org>
42051
42052         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
42053         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
42054         module is also used and while not building the reloc-wrapper.
42055
42056 2008-04-13  Bruno Haible  <bruno@clisp.org>
42057
42058         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42059
42060 2008-04-13  Bruno Haible  <bruno@clisp.org>
42061
42062         Fix AIX compilation failure introduced on 2008-04-02.
42063         * tests/test-frexp.c (exp): Undefine before redefining.
42064         * tests/test-frexpl.c (exp): Likewise.
42065
42066 2008-04-13  Bruno Haible  <bruno@clisp.org>
42067
42068         Work around a HP-UX stdio bug.
42069         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42070         * tests/test-ftello.c (main): Likewise.
42071         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42072         * doc/posix-functions/ftello.texi: Likewise.
42073
42074 2008-04-13  Bruno Haible  <bruno@clisp.org>
42075
42076         Make test-signbit pass on HP-UX/hppa.
42077         * tests/test-signbit.c (minus_zerol): New variable.
42078         (test_signbitl): Use it.
42079
42080 2008-04-13  Bruno Haible  <bruno@clisp.org>
42081
42082         Make truncl work on OSF/1 4.0.
42083         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42084         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42085         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42087         HAVE_DECL_TRUNCL.
42088         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42089         HAVE_DECL_TRUNCL.
42090         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42091
42092 2008-04-13  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42095
42096 2008-04-13  Bruno Haible  <bruno@clisp.org>
42097
42098         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42099         expression, so as to avoid HP-UX 11 cc compiler bug.
42100
42101 2008-04-13  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42104
42105 2008-04-13  Bruno Haible  <bruno@clisp.org>
42106
42107         * lib/git-merge-changelog.c: Remove empty declaration outside of
42108         functions.
42109
42110 2008-04-13  Bruno Haible  <bruno@clisp.org>
42111
42112         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42113
42114 2008-04-13  Bruno Haible  <bruno@clisp.org>
42115
42116         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42117         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42118         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42119         also if it exists but lacks definitions of the SHUT_* macros.
42120         * modules/sys_socket (Description): Update.
42121         Reported by Elbert Pol <e.pol@chello.nl>.
42122
42123 2008-04-13  Bruno Haible  <bruno@clisp.org>
42124
42125         * lib/localcharset.c (OS2): Don't redefine if already defined.
42126         Reported by Elbert Pol <e.pol@chello.nl>.
42127
42128 2008-04-13  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/binary-io.h [__EMX__]: Include <io.h>.
42131         Reported by Elbert Pol <e.pol@chello.nl>.
42132
42133 2008-04-12  Bruno Haible  <bruno@clisp.org>
42134
42135         * lib/fpucw.h: Enable the definitions also for x86_64.
42136         Needed for NetBSD/x86_64.
42137         Reported by Thomas Klausner <tk@giga.or.at>.
42138
42139 2008-04-12  Bruno Haible  <bruno@clisp.org>
42140
42141         * tests/test-strtod.c: Include isnand.h.
42142         (main): Use isnand instead of isnan.
42143         Reported by Jim Meyering.
42144
42145 2008-04-12  Bruno Haible  <bruno@clisp.org>
42146
42147         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42148         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42149
42150 2008-04-12  Jim Meyering  <meyering@redhat.com>
42151
42152         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42153
42154 2008-04-12  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42157         Reported by Elbert Pol <e.pol@chello.nl>.
42158
42159 2008-04-12  Eric Blake  <ebb9@byu.net>
42160
42161         Work around Solaris 10 math.h bug.
42162         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42163         (gl_MATH_H_DEFAULTS): Set up default.
42164         * modules/math (Makefile.am): Replace new indicators.
42165         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42166         * tests/test-math.c (main): Test this.
42167         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42168         * doc/posix-headers/math.texi (math.h): Mention bug.
42169         Reported by Nelson H. F. Beebe and Jim Meyering.
42170
42171 2008-04-11  Bruno Haible  <bruno@clisp.org>
42172
42173         Adapt to future versions of Apple GCC.
42174         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42175         Reported by Peter O'Gorman <peter@pogma.com>.
42176
42177 2008-04-11  Bruno Haible  <bruno@clisp.org>
42178
42179         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42180
42181 2008-04-11  Bruno Haible  <bruno@clisp.org>
42182
42183         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42184
42185         * modules/getaddrinfo-tests (Makefile.am): Define
42186         test_getaddrinfo_LDADD.
42187
42188 2008-04-11  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42191         (init): Fix syntax error.
42192         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42193         is declared.
42194
42195 2008-04-11  Bruno Haible  <bruno@clisp.org>
42196
42197         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42198         * modules/glob (Depends-on): Add stdbool.
42199
42200 2008-04-11  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/trim.c: Include <string.h>.
42203
42204 2008-04-11  Eric Blake  <ebb9@byu.net>
42205
42206         Avoid compile failure on OS/2.
42207         * lib/regex_internal.h (internal_function): Disable optimization
42208         on OS/2 (__EMX__), where it caused compiler error.
42209         Reported by Elbert Pol.
42210
42211 2008-04-11  Bruno Haible  <bruno@clisp.org>
42212
42213         Flush the standard error stream before aborting. Needed on mingw.
42214         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42215         * tests/test-array_list.c (ASSERT): Likewise.
42216         * tests/test-array_oset.c (ASSERT): Likewise.
42217         * tests/test-avltree_list.c (ASSERT): Likewise.
42218         * tests/test-avltree_oset.c (ASSERT): Likewise.
42219         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42220         * tests/test-binary-io.c (ASSERT): Likewise.
42221         * tests/test-byteswap.c (ASSERT): Likewise.
42222         * tests/test-c-ctype.c (ASSERT): Likewise.
42223         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42224         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42225         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42226         * tests/test-c-strstr.c (ASSERT): Likewise.
42227         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42228         * tests/test-canonicalize.c (ASSERT): Likewise.
42229         * tests/test-carray_list.c (ASSERT): Likewise.
42230         * tests/test-ceilf1.c (ASSERT): Likewise.
42231         * tests/test-ceilf2.c (ASSERT): Likewise.
42232         * tests/test-ceill.c (ASSERT): Likewise.
42233         * tests/test-count-one-bits.c (ASSERT): Likewise.
42234         * tests/test-fbufmode.c (ASSERT): Likewise.
42235         * tests/test-fflush2.c (ASSERT): Likewise.
42236         * tests/test-floorf1.c (ASSERT): Likewise.
42237         * tests/test-floorf2.c (ASSERT): Likewise.
42238         * tests/test-floorl.c (ASSERT): Likewise.
42239         * tests/test-fopen.c (ASSERT): Likewise.
42240         * tests/test-fpending.c (ASSERT): Likewise.
42241         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42242         * tests/test-fpurge.c (ASSERT): Likewise.
42243         * tests/test-freadable.c (ASSERT): Likewise.
42244         * tests/test-freadahead.c (ASSERT): Likewise.
42245         * tests/test-freading.c (ASSERT): Likewise.
42246         * tests/test-freadptr.c (ASSERT): Likewise.
42247         * tests/test-freadptr2.c (ASSERT): Likewise.
42248         * tests/test-freadseek.c (ASSERT): Likewise.
42249         * tests/test-freopen.c (ASSERT): Likewise.
42250         * tests/test-frexp.c (ASSERT): Likewise.
42251         * tests/test-frexpl.c (ASSERT): Likewise.
42252         * tests/test-fseek.c (ASSERT): Likewise.
42253         * tests/test-fseeko.c (ASSERT): Likewise.
42254         * tests/test-fstrcmp.c (ASSERT): Likewise.
42255         * tests/test-ftell.c (ASSERT): Likewise.
42256         * tests/test-ftello.c (ASSERT): Likewise.
42257         * tests/test-func.c (ASSERT): Likewise.
42258         * tests/test-fwritable.c (ASSERT): Likewise.
42259         * tests/test-fwriting.c (ASSERT): Likewise.
42260         * tests/test-getdelim.c (ASSERT): Likewise.
42261         * tests/test-getline.c (ASSERT): Likewise.
42262         * tests/test-i-ring.c (ASSERT): Likewise.
42263         * tests/test-iconv-utf.c (ASSERT): Likewise.
42264         * tests/test-iconv.c (ASSERT): Likewise.
42265         * tests/test-isfinite.c (ASSERT): Likewise.
42266         * tests/test-isnand.c (ASSERT): Likewise.
42267         * tests/test-isnanf.c (ASSERT): Likewise.
42268         * tests/test-isnanl.h (ASSERT): Likewise.
42269         * tests/test-ldexpl.c (ASSERT): Likewise.
42270         * tests/test-linked_list.c (ASSERT): Likewise.
42271         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42272         * tests/test-localename.c (ASSERT): Likewise.
42273         * tests/test-lseek.c (ASSERT): Likewise.
42274         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42275         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42276         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42277         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42278         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42279         * tests/test-mbschr.c (ASSERT): Likewise.
42280         * tests/test-mbscspn.c (ASSERT): Likewise.
42281         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42282         * tests/test-mbspbrk.c (ASSERT): Likewise.
42283         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42284         * tests/test-mbsrchr.c (ASSERT): Likewise.
42285         * tests/test-mbsspn.c (ASSERT): Likewise.
42286         * tests/test-mbsstr1.c (ASSERT): Likewise.
42287         * tests/test-mbsstr2.c (ASSERT): Likewise.
42288         * tests/test-mbsstr3.c (ASSERT): Likewise.
42289         * tests/test-memchr2.c (ASSERT): Likewise.
42290         * tests/test-memmem.c (ASSERT): Likewise.
42291         * tests/test-open.c (ASSERT): Likewise.
42292         * tests/test-printf-frexp.c (ASSERT): Likewise.
42293         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42294         * tests/test-printf-posix.c (ASSERT): Likewise.
42295         * tests/test-quotearg.c (ASSERT): Likewise.
42296         * tests/test-rbtree_list.c (ASSERT): Likewise.
42297         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42298         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42299         * tests/test-round1.c (ASSERT): Likewise.
42300         * tests/test-roundf1.c (ASSERT): Likewise.
42301         * tests/test-roundl.c (ASSERT): Likewise.
42302         * tests/test-signbit.c (ASSERT): Likewise.
42303         * tests/test-sleep.c (ASSERT): Likewise.
42304         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42305         * tests/test-snprintf.c (ASSERT): Likewise.
42306         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42307         * tests/test-stat-time.c (ASSERT): Likewise.
42308         * tests/test-strcasestr.c (ASSERT): Likewise.
42309         * tests/test-strerror.c (ASSERT): Likewise.
42310         * tests/test-striconv.c (ASSERT): Likewise.
42311         * tests/test-striconveh.c (ASSERT): Likewise.
42312         * tests/test-striconveha.c (ASSERT): Likewise.
42313         * tests/test-strsignal.c (ASSERT): Likewise.
42314         * tests/test-strstr.c (ASSERT): Likewise.
42315         * tests/test-strtod.c (ASSERT): Likewise.
42316         * tests/test-trunc1.c (ASSERT): Likewise.
42317         * tests/test-trunc2.c (ASSERT): Likewise.
42318         * tests/test-truncf1.c (ASSERT): Likewise.
42319         * tests/test-truncf2.c (ASSERT): Likewise.
42320         * tests/test-truncl.c (ASSERT): Likewise.
42321         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42322         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42323         * tests/test-vasnprintf.c (ASSERT): Likewise.
42324         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42325         * tests/test-vasprintf.c (ASSERT): Likewise.
42326         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42327         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42328         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42329         * tests/test-vsnprintf.c (ASSERT): Likewise.
42330         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42331         * tests/test-wcwidth.c (ASSERT): Likewise.
42332         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42333         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42334         * tests/test-xvasprintf.c (ASSERT): Likewise.
42335         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42336         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42337         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42338         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42339         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42340         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42341         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42342         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42343         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42344         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42345         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42346         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42347         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42348         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42349         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42350         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42351         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42352         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42353         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42354         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42355         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42356         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42357         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42358         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42359         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42360         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42361         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42362         * tests/unictype/test-combining.c (ASSERT): Likewise.
42363         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42364         * tests/unictype/test-digit.c (ASSERT): Likewise.
42365         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42366         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42367         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42368         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42369         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42370         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42371         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42372         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42373         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42374         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42375         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42376         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42377         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42378         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42379         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42380         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42381         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42382         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42383         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42384         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42385         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42386         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42387         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42388         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42389         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42390         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42391         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42392         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42393         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42394         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42395         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42396         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42397         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42398         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42399         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42400         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42401         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42402         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42403         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42404         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42405         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42406         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42407         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42408         Reported by Eric Blake.
42409
42410 2008-04-11  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/wchar.in.h: Tweak comment.
42413
42414 2008-04-11  Bruno Haible  <bruno@clisp.org>
42415
42416         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42417         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42418         gl_COMMON.
42419         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42420
42421 2008-04-11  Bruno Haible  <bruno@clisp.org>
42422
42423         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42424
42425 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42426
42427         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42428         of attempting to use non-existing /dev/*random.  Based on patch
42429         from Adam Strzelecki <ono@java.pl> in
42430         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42431
42432 2008-04-08  Bruno Haible  <bruno@clisp.org>
42433
42434         Add tentative support for emx+gcc.
42435         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42436         * lib/fpurge.c (fpurge): Likewise.
42437         * lib/freadable.c (freadable): Likewise.
42438         * lib/freadahead.c (freadahead): Likewise.
42439         * lib/freading.c (freading): Likewise.
42440         * lib/freadptr.c (freadptr): Likewise.
42441         * lib/freadseek.c (freadptrinc): Likewise.
42442         * lib/fseeko.c (rpl_fseeko): Likewise.
42443         * lib/fseterr.c (fseterr): Likewise.
42444         * lib/fwritable.c (fwritable): Likewise.
42445         * lib/fwriting.c (fwriting): Likewise.
42446         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42447
42448 2008-04-09  Eric Blake  <ebb9@byu.net>
42449
42450         Avoid some autoconf warnings.
42451         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42452         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42453         * m4/afs.m4 (gl_AFS): Likewise.
42454         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42455         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42457         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42458         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42459         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42460         (AC_CHECK_DECLS_ONCE): Likewise.
42461         Rename file...
42462         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42463         gnulib-tool requires autoconf 2.59 or better.
42464         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42465
42466 2008-04-08  Eric Blake  <ebb9@byu.net>
42467
42468         Use 'git describe --match' if present (added in git 1.5.5).
42469         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42470         if possible.
42471
42472 2008-04-08  Bruno Haible  <bruno@clisp.org>
42473
42474         Add tentative support for OpenServer.
42475         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42476         _ptr, _cnt.
42477         * lib/fpurge.c (fpurge): Likewise.
42478         * lib/freadable.c (freadable): Likewise.
42479         * lib/freadahead.c (freadahead): Likewise.
42480         * lib/freading.c (freading): Likewise.
42481         * lib/freadptr.c (freadptr): Likewise.
42482         * lib/freadseek.c (freadptrinc): Likewise.
42483         * lib/fseeko.c (rpl_fseeko): Likewise.
42484         * lib/fseterr.c (fseterr): Likewise.
42485         * lib/fwritable.c (fwritable): Likewise.
42486         * lib/fwriting.c (fwriting): Likewise.
42487         Reported by Roger Cornelius <rac@tenzing.org> and
42488         Brian K. White <brian@aljex.com>.
42489
42490 2008-04-06  Jim Meyering  <meyering@redhat.com>
42491
42492         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42493
42494 2008-04-06  Bruno Haible  <bruno@clisp.org>
42495
42496         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42497         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42498         * tests/test-printf-posix.sh: Likewise.
42499         * tests/test-vfprintf-posix.sh: Likewise.
42500         * tests/test-vprintf-posix.sh: Likewise.
42501         * tests/test-xprintf-posix.sh: Likewise.
42502
42503 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42504
42505         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42506         hide error from 'ls', needed on OS/2.
42507         Report by Elbert Pol <elbert.pol@gmail.com>.
42508
42509 2008-04-04  Eric Blake  <ebb9@byu.net>
42510
42511         Make test-fseeko.c failures meaningful.
42512         * tests/test-fseeko.c: Print line number on failure.
42513         * tests/test-fseek.c: Likewise.
42514         Reported by Nelson H. F. Beebe.
42515
42516         Improve strtod bug detection check.
42517         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42518         required for Solaris 10.
42519         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42520
42521 2008-04-04  Bruno Haible  <bruno@clisp.org>
42522
42523         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42524         by m4/setenv.m4.
42525
42526 2008-04-03  Eric Blake  <ebb9@byu.net>
42527
42528         Ensure sane .version contents.
42529         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42530         version string.
42531         * build-aux/git-version-gen: Improve documentation.
42532
42533         Make GNU make output nicer.
42534         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42535         MAKECMDGOALS to enforce message for all command line targets.  Set
42536         srcdir for use in maint.mk.
42537
42538         Another maintainer tweak.
42539         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42540         a target that regenerates version.
42541
42542 2008-04-03  Jim Meyering  <meyering@redhat.com>
42543
42544         vc-list-files: don't cause coreutils "make po-check" failure
42545         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42546
42547 2008-04-03  Eric Blake  <ebb9@byu.net>
42548
42549         Allow VPATH usage of vc-list-files.
42550         * build-aux/vc-list-files (scriptversion): Add timestamp.
42551         (options): Add --help, --version, -C.
42552         (CVS): Support installed cvsu.
42553
42554 2008-04-02  Bruno Haible  <bruno@clisp.org>
42555
42556         Avoid some "statement with no effect" warnings from gcc.
42557         * tests/test-wctype.c (main): Explicitly ignore unused values.
42558         Reported by Jim Meyering.
42559
42560 2008-04-02  Jim Meyering  <meyering@redhat.com>
42561
42562         Avoid some warnings from "gcc -Wshadow".
42563         * tests/test-frexp.c (exp): Define to a different identifier.
42564         * tests/test-frexpl.c (exp): Likewise.
42565
42566 2008-04-03  Jim Meyering  <meyering@redhat.com>
42567
42568         bootstrap: remove dangling *.[ch] symlinks from lib
42569         * build-aux/bootstrap [dangling symlink removal]: Move find's
42570         -depth option to precede all others, to avoid a warning.
42571         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42572
42573 2008-04-02  Bruno Haible  <bruno@clisp.org>
42574
42575         Avoid some warnings from "gcc -Wshadow".
42576         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42577         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42578         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42579         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42580         Reported by Jim Meyering.
42581
42582 2008-04-01  Bruno Haible  <bruno@clisp.org>
42583
42584         Fix test to work on IRIX 6.5 with cc.
42585         * tests/test-math.c (numeric_equal): New function.
42586         (main): Use it.
42587
42588 2008-04-01  Bruno Haible  <bruno@clisp.org>
42589
42590         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42591
42592 2008-04-01  Bruno Haible  <bruno@clisp.org>
42593
42594         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42595         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42596         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42597         (Depends-on): Remove math.
42598
42599         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42600         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42601         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42602         (Depends-on): Remove math.
42603
42604         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42605         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42606         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42607         (Depends-on): Remove math.
42608         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42609         (Depends-on): Remove math.
42610
42611         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42612         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42613         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42614         (Depends-on): Remove math.
42615         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42616         (Depends-on): Remove math.
42617
42618         * tests/test-round1.c: Include nan.h.
42619         (main): Use NaNd instead of NAN.
42620         * modules/round-tests (Files): Add tests/nan.h.
42621
42622         * tests/test-trunc1.c: Include nan.h.
42623         (main): Use NaNd instead of NAN.
42624         * modules/trunc-tests (Files): Add tests/nan.h.
42625
42626         * tests/test-roundf1.c: Include nan.h.
42627         (main): Use NaNf instead of NAN.
42628         * modules/roundf-tests (Files): Add tests/nan.h.
42629
42630         * tests/test-truncf1.c: Include nan.h.
42631         (main): Use NaNf instead of NAN.
42632         * modules/truncf-tests (Files): Add tests/nan.h.
42633
42634         * tests/test-ceilf1.c: Include nan.h.
42635         (main): Use NaNf instead of NAN.
42636         * modules/ceilf-tests (Files): Add tests/nan.h.
42637
42638         * tests/test-floorf1.c: Include nan.h.
42639         (main): Use NaNf instead of NAN.
42640         * modules/floorf-tests (Files): Add tests/nan.h.
42641
42642         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42643         (main): Use NaNf instead of NAN.
42644         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42645
42646         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42647         (main): Use NaNd instead of NAN.
42648         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42649
42650         * tests/test-frexp.c: Include nan.h.
42651         (main): Use NaNd instead of NAN.
42652         * modules/frexp-tests (Files): Add tests/nan.h.
42653
42654         * lib/isnan.c: Don't include <math.h>.
42655         (FUNC): Don't use NAN macro.
42656         * modules/isnand-nolibm (Depends-on): Remove math.
42657         * modules/isnanf-nolibm (Depends-on): Remove math.
42658         * modules/isnanl (Depends-on): Remove math.
42659         * modules/isnanl-nolibm (Depends-on): Remove math.
42660
42661         * tests/nan.h: New file.
42662
42663 2008-04-01  Eric Blake  <ebb9@byu.net>
42664
42665         Fix typos.
42666         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42667         values to be the right type.
42668
42669         For now, cater to gnulib strtod inaccuracies.
42670         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42671         fractional results.  While not as nice from a QoI perspective, it
42672         is a quicker patch than correctly implementing decimal to binary
42673         rounding.
42674
42675 2008-03-31  Eric Blake  <ebb9@byu.net>
42676
42677         Guarantee a definition of NAN.
42678         * lib/math.in.h (NAN): Define if missing.
42679         * tests/test-math.c (main): Test it.
42680         * doc/posix-headers/math.texi (math.h): Document this.
42681         * lib/isnan.c (rpl_isnand): Use it.
42682         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42683         * tests/test-floorf1.c (NaN): Likewise.
42684         * tests/test-frexp.c (NaN): Likewise.
42685         * tests/test-isnand.c (NaN): Likewise.
42686         * tests/test-isnanf.c (NaN): Likewise.
42687         * tests/test-round1.c (NaN): Likewise.
42688         * tests/test-roundf1.c (NaN): Likewise.
42689         * tests/test-snprintf-posix.h (NaN): Likewise.
42690         * tests/test-sprintf-posix.h (NaN): Likewise.
42691         * tests/test-trunc1.c (NaN): Likewise.
42692         * tests/test-truncf1.c (NaN): Likewise.
42693         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42694         * tests/test-vasprintf-posix.c (NaN): Likewise.
42695         * modules/isnand-nolibm (Depends-on): Add math.
42696         * modules/isnanf-nolibm (Depends-on): Likewise.
42697         * modules/isnanl (Depends-on): Likewise.
42698         * modules/isnanl-nolibm (Depends-on): Likewise.
42699         * modules/snprintf-posix-tests (Depends-on): Likewise.
42700         * modules/sprintf-posix-tests (Depends-on): Likewise.
42701         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42702         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42703         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42704         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42705
42706 2008-03-31  Bruno Haible  <bruno@clisp.org>
42707
42708         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42709         * doc/posix-functions/strtod.texi: Likewise.
42710
42711 2008-03-31  Bruno Haible  <bruno@clisp.org>
42712
42713         * tests/test-strtod.c (main): Don't use C99 syntax.
42714
42715 2008-03-31  Bruno Haible  <bruno@clisp.org>
42716
42717         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42718         Reported by Eric Blake.
42719
42720 2008-03-31  Jim Meyering  <meyering@redhat.com>
42721
42722         Don't compare actual signbit return values.
42723         * tests/test-strtod.c (main): Rather, compare only their
42724         zero/non-zero nature.
42725
42726 2008-03-31  Eric Blake  <ebb9@byu.net>
42727
42728         More strtod documentation.
42729         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42730         failures as distinct bugs.
42731
42732 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42735         Problem reported by Erik Benada in
42736         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42737
42738 2008-03-30  Bruno Haible  <bruno@clisp.org>
42739
42740         * tests/test-strtod.c: Add comments about which assertion fails on which
42741         platform.
42742         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42743
42744 2008-03-30  Eric Blake  <ebb9@byu.net>
42745
42746         Test signbit behavior on zeros.
42747         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42748         (test_signbitd, test_signbitl): Likewise.
42749
42750         More strtod touchups.
42751         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42752         sign of negative underflow, for now.  Use .5, not .1.
42753         * doc/posix-functions/strtod.texi (strtod): Mention these
42754         limitations.
42755         Reported by Jim Meyering.
42756
42757 2008-03-30  Bruno Haible  <bruno@clisp.org>
42758
42759         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42760         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42761
42762 2008-03-30  Bruno Haible  <bruno@clisp.org>
42763
42764         Avoid failure when attempting to return empty iconv results on some
42765         platforms.
42766         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42767         allocation, don't report ENOMEM when the resulting string is empty.
42768
42769 2008-03-30  Bruno Haible  <bruno@clisp.org>
42770
42771         Fix buffer overrun.
42772         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42773         Don't consider the width for tmp_length. Check count against tmp_length
42774         before doing the padding. Ensure enough allocation during padding.
42775
42776 2008-03-30  Eric Blake  <ebb9@byu.net>
42777
42778         strtod touchups.
42779         * lib/strtod.c (strtod): Avoid compiler warnings.
42780         Reported by Jim Meyering.
42781
42782 2008-03-30  Bruno Haible  <bruno@clisp.org>
42783
42784         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42785         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42786         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42787         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42788         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42789         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42790         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42791         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42792
42793         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42794         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42795         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42796         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42797         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42798         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42799         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42800         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42801
42802         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42803         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42804         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42805         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42806         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42807         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42808         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42809         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42810
42811         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42812         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42813
42814         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42815         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42816
42817         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42818         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42819
42820         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42822         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42823
42824         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42826         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42827
42828         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42829         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42830         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42831
42832         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42834         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42835
42836         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42837         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42839         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42840         (Depends-on): Add EOVERFLOW.
42841         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42842         (Depends-on): Add EOVERFLOW.
42843         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42844         (Depends-on): Add EOVERFLOW.
42845         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42846         (Depends-on): Add EOVERFLOW.
42847         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42848         (Depends-on): Add EOVERFLOW.
42849         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42850         (Depends-on): Add EOVERFLOW.
42851         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42852         (Depends-on): Add EOVERFLOW.
42853         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42854         (Depends-on): Add EOVERFLOW.
42855
42856         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42858         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42859
42860         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42862         * modules/snprintf (Depends-on): Add EOVERFLOW.
42863
42864         * lib/poll.c (EOVERFLOW): Remove fallback.
42865         * modules/poll (Depends-on): Add EOVERFLOW.
42866
42867         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42868         * modules/getugroups (Depends-on): Add EOVERFLOW.
42869
42870         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42871         * modules/getdelim (Depends-on): Add EOVERFLOW.
42872
42873         * lib/ftell.c (EOVERFLOW): Remove fallback.
42874         * modules/ftell (Depends-on): Add EOVERFLOW.
42875
42876         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42878         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42879
42880         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42881
42882         * modules/EOVERFLOW-tests: New file.
42883         * tests/test-EOVERFLOW.c: New file.
42884
42885         * modules/EOVERFLOW: New file.
42886         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42887
42888 2008-03-30  Bruno Haible  <bruno@clisp.org>
42889
42890         Fix bug introduced on 2007-06-10.
42891         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42892         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42893
42894 2008-03-30  Bruno Haible  <bruno@clisp.org>
42895
42896         Improve freadseek's efficiency after ungetc.
42897         * lib/freadseek.c: Include freadahead.h.
42898         (freadptrinc): New function, extracted from freadseek.
42899         (freadseek): Use it in a loop. Use freadahead to determine the number
42900         of loop iterations.
42901         * modules/freadseek (Depends-on): Add freadahead.
42902         (configure.ac): Require AC_C_INLINE.
42903
42904 2008-03-30  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/freadseek.c (freadseek): Don't ignore the return value of
42907         freadptr.
42908
42909 2008-03-29  Eric Blake  <ebb9@byu.net>
42910
42911         Add hex float support.
42912         * modules/strtod (Depends-on): Add c-ctype.
42913         (Link): Mention POW_LIB.
42914         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42915         whitespace between 'e' and exponent.
42916         * tests/test-strtod.c (main): Enable hex float tests.
42917         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42918         now provides.
42919
42920         Document various strtod bugs, with some fixes.
42921         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42922         "-0x", "inf", "nan", and hex constants.
42923         * doc/posix-functions/atof.texi (atof): Likewise.
42924         * modules/stdlib (Makefile.am): Support strtod.
42925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42926         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42927         detect additional strtod bugs.
42928         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42929         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42930         bool where appropriate.  Parse 'inf' and 'nan'.
42931         * tests/test-strtod.c: New file.
42932         * modules/strtod (Depends-on): Add stdbool, stdlib.
42933         (configure.ac): Turn on module indicator.
42934         * modules/strtod-tests: New module.
42935
42936 2008-03-29  Eric Blake  <ebb9@byu.net>
42937
42938         Fix ftell on mingw.
42939         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42940         * modules/ftell-tests (Depends-on): Add binary-io.
42941         * modules/ftello-tests (Depends-on): Likewise.
42942         * tests/test-ftell.c (main): Enhance test to cover behavior after
42943         ungetc.  Enforce binary mode.
42944         * tests/test-ftello.c (main): Likewise.
42945
42946         Pass test-freadseek on cygwin.
42947         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42948         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42949         ungetc buffer.
42950
42951         * tests/test-fflush2.c (main): Fix typo.
42952
42953 2008-03-29  Bruno Haible  <bruno@clisp.org>
42954
42955         * tests/test-fflush2.c (main): Temporarily disable the contents of
42956         this test.
42957         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42958         Reported by Eric Blake.
42959
42960 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42961
42962         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42963         (GC_SHA224_DIGEST_SIZE): Add.
42964
42965         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42966         (gc_hash_digest_length): Likewise.
42967         (gc_hash_buffer): Likewise.
42968
42969 2008-03-25  Bruno Haible  <bruno@clisp.org>
42970
42971         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42972         detail which gettext release to use.
42973         Reported by Simon Josefsson.
42974
42975 2008-03-26  Jim Meyering  <meyering@redhat.com>
42976
42977         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42978         * modules/gnumakefile (clean-GNUmakefile): Also, use
42979         test ... && ... || : syntax rather than if-then ... fi.
42980
42981         gnumakefile: Don't double-quote-expand $(VPATH) value.
42982         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42983
42984 2008-03-24  Eric Blake  <ebb9@byu.net>
42985
42986         Alter GNUmakefile to install into top directory.
42987         * modules/maintainer-makefile: Split, and add dependency...
42988         * modules/gnumakefile: to this new module.
42989         * build-aux/GNUmakefile: Move...
42990         * top/GNUmakefile: ...here.
42991         * build-aux/maint.mk: Move...
42992         * top/maint.mk: ...here.
42993         * MODULES.html.sh (Support for maintaining...): Document new
42994         module.
42995
42996 2008-03-23  Bruno Haible  <bruno@clisp.org>
42997
42998         * gnulib-tool: New options --vc-files, --no-vc-files.
42999         (func_usage): Document them.
43000         (vc_files): New variable.
43001         (func_import): Consider vc_files.
43002         (func_create_testdir): Set vc_files to empty.
43003         Suggested by Jim Meyering and Karl Berry.
43004
43005 2008-03-23  Bruno Haible  <bruno@clisp.org>
43006
43007         Fix regex compilation error on HP-UX 11.
43008         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43009         * modules/regex (Files): Add m4/mbstate_t.m4.
43010         Reported by Ton Voon <ton.voon@altinity.com>.
43011
43012 2008-03-23  Bruno Haible  <bruno@clisp.org>
43013
43014         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43015
43016 2008-03-23  Eric Blake  <ebb9@byu.net>
43017             Bruno Haible  <bruno@clisp.org>
43018
43019         Install files from top/ in the destination directory.
43020         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43021         augmentation also for the files from top/.
43022         (func_import, func_create_testdir): Rewrite file names:
43023         top/filename -> filename.
43024
43025 2008-03-23  Bruno Haible  <bruno@clisp.org>
43026
43027         Tweak "gnulib --version" output.
43028         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43029
43030 2008-03-23  Bruno Haible  <bruno@clisp.org>
43031
43032         Tweak "gnulib --version" output.
43033         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43034         rather than contents of ChangeLog, when possible.
43035
43036 2008-03-21  Eric Blake  <ebb9@byu.net>
43037
43038         More --version tweaks.
43039         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43040         date of last ChangeLog entry.
43041
43042 2008-03-21  Jim Meyering  <meyering@redhat.com>
43043
43044         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43045
43046 2008-03-20  Eric Blake  <ebb9@byu.net>
43047
43048         VPATH fix.
43049         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
43050
43051 2008-03-20  Simon Josefsson  <simon@josefsson.org>
43052
43053         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
43054         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43055
43056 2008-03-20  Eric Blake  <ebb9@byu.net>
43057
43058         Sync GNUmakefile with coreutils.
43059         * build-aux/GNUmakefile (have-Makefile): Rename...
43060         (_have-Makefile): ...to this, for namespace consideration.
43061         (GNUmakefile.cfg): Include, if present.
43062         (_autoreconf): Define a default.
43063         (_is-dist-target): New rule for rebuilds to pick up intra-release
43064         version.
43065         (maint-cfg.mk): Rename...
43066         (cfg.mk): ...to this.
43067
43068 2008-03-18  Jim Meyering  <meyering@redhat.com>
43069
43070         New script and module: mktempd
43071         * MODULES.html.sh (maint+release support): Add mktempd.
43072         * build-aux/mktempd: New file.
43073         * modules/mktempd: New file.
43074
43075 2008-03-15  Jim Meyering  <meyering@redhat.com>
43076
43077         Undo last change.
43078         * lib/sha1.c, lib/md5.c: 63 != ~63.
43079         Reported by Andreas Schwab.
43080
43081         sha1.c, md5.c: Hoist a redundant expression.
43082         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43083         "ctx->buflen" only once, before calling *_process_block.
43084         * lib/md5.c (md5_process_bytes): Likewise.
43085
43086 2008-03-14  Eric Blake  <ebb9@byu.net>
43087
43088         Bump copyright year in files generated by gnulib-tool.
43089         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43090         gnulib-tool, rather than hard-coding it.
43091
43092         Fix 'gnulib-tool --version' output to work with git.
43093         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43094         (startup): ...here.
43095         (func_version): Use it to invoke git-version-gen, rather than
43096         relying on CVS keyword expansion.  Modernize wording.
43097         (cvsdatestamp, last_checkin_date, version): Kill unused
43098         variables.
43099
43100 2008-03-12  Jim Meyering  <meyering@redhat.com>
43101
43102         Recognize optional cast of the argument to free.
43103         * build-aux/useless-if-before-free: Update regexps.
43104
43105         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43106
43107 2008-03-11  Bruno Haible  <bruno@clisp.org>
43108
43109         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43110         by a single package.
43111         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43112         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43113         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43114         Reported by Sam Steingold <sds@gnu.org>.
43115
43116 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43117
43118         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43119         repositories.
43120
43121 2008-03-11  Bruno Haible  <bruno@clisp.org>
43122
43123         Avoid conflicts between local macro definitions.
43124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43125         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43126
43127 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43128             Bruno Haible  <bruno@clisp.org>
43129
43130         Make va_copy work with some version of xlc on AIX 5.1.
43131         * lib/stdarg.in.h: New file.
43132         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43133         On AIX, use a <stdarg.h> file substitute.
43134         * modules/stdarg (Files): Add lib/stdarg.in.h.
43135         (Depends-on): Add include_next.
43136         (Makefile.am): Build a stdarg.h substitute if requested.
43137         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43138
43139 2008-03-10  Bruno Haible  <bruno@clisp.org>
43140
43141         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43142         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43143         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43144
43145 2008-03-10  Bruno Haible  <bruno@clisp.org>
43146
43147         * modules/stdlib (Depends-on): Add include_next, remove
43148         absolute-header.
43149
43150 2008-03-09  Bruno Haible  <bruno@clisp.org>
43151
43152         * lib/freadahead.h (freadahead): Document more precisely.
43153         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43154         the sum of both buffer sizes.
43155         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43156         * NEWS: Document the change.
43157
43158 2008-03-09  Bruno Haible  <bruno@clisp.org>
43159
43160         Extend freadptr to return also the buffer size.
43161         * lib/freadptr.h (freadptr): Add sizep argument.
43162         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43163         (freadptr): Add sizep argument. Determine buffer size like freadahead
43164         does.
43165         * tests/test-freadptr.c: Don't include freadahead.h.
43166         (main): Adapt for new calling convention of freadptr.
43167         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43168         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43169         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43170         tests/test-freadptr2.sh.
43171         (Depends): Remove freadahead.
43172         (TESTS): Add test-freadptr2.sh.
43173         (check_PROGRAMS): Add test-freadptr2.
43174
43175 2008-03-09  Bruno Haible  <bruno@clisp.org>
43176
43177         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43178         Report and solution by Simon Josefsson.
43179
43180 2008-03-06  Bruno Haible  <bruno@clisp.org>
43181
43182         Make fflush after ungetc work on BSD platforms.
43183         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43184         * tests/test-fflush2.c: New file.
43185         * tests/test-fflush2.sh: New file.
43186         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43187         tests/test-fflush2.c.
43188         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43189         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43190
43191 2008-03-06  Eric Blake  <ebb9@byu.net>
43192
43193         Likewise for ftello.
43194         * modules/ftello (Dependencies): Add extensions.
43195         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43196
43197 2008-03-06  Bruno Haible  <bruno@clisp.org>
43198
43199         * modules/fseeko (Dependencies): Add extensions.
43200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43201         Needed on glibc systems.
43202
43203 2008-03-06  Bruno Haible  <bruno@clisp.org>
43204
43205         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43206         email address.
43207         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43208
43209 2008-03-06  Bruno Haible  <bruno@clisp.org>
43210
43211         * users.txt: Add libgnupdf.
43212
43213 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43214
43215         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43216         (Header File Substitutes, Function Substitutes,
43217         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43218         (Build robot for gnulib): Fix typo.
43219
43220 2008-03-06  Bruno Haible  <bruno@clisp.org>
43221
43222         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43223         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43224
43225 2008-03-06  Bruno Haible  <bruno@clisp.org>
43226
43227         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43228         * doc/gnulib.texi: Include it.
43229
43230 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43231
43232         * modules/func (License): Change license to unlimited; there was
43233         no LGPL parts in the module anyway.
43234
43235 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43236
43237         * modules/__func__: Renamed to modules/func.
43238         * modules/__func__-tests: Renamed to modules/func-tests.
43239         * tests/test-__func__.c: Renamed to tests/test-func.c.
43240         * m4/__func__.m4: Renamed to m4/func.m4.
43241         * doc/gnulib.texi (__func__): Section renamed to func.
43242         Suggested by Eric Blake <ebb9@byu.net>.
43243
43244 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43245
43246         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43247         about __func__.  Make example self-contained.  Suggested by Eric
43248         Blake <ebb9@byu.net>.
43249
43250         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43251         Suggested by Eric Blake <ebb9@byu.net>.
43252
43253 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43254
43255         * modules/__func__: New file.
43256         * modules/__func__-tests: New file.
43257         * tests/test-__func__.c: New file.
43258         * m4/__func__.m4: New file.
43259         * doc/gnulib.texi (__func__): Document __func__ module.
43260
43261 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43262
43263         * modules/byteswap (License): Re-license as LGPLv2+.
43264
43265 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43266
43267         * doc/Makefile: Add pdf target.
43268
43269 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43270
43271         * modules/inline (License): Use 'unlimited', since there are only
43272         *.m4 files in this module.
43273
43274 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43275             Bruno Haible  <bruno@clisp.org>
43276
43277         Add support for HP C 7.1 on OpenVMS 8.3.
43278         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43279
43280 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43281
43282         Update VMS specifics.
43283         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43284
43285 2008-03-02  Jim Meyering  <meyering@redhat.com>
43286
43287         Remove the last dependency on the "free" module.
43288         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43289         Reported by Bob Proulx.
43290
43291         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43292
43293         Remove useless "if" tests before free.  Deprecate "free" module.
43294         * doc/posix-functions/free.texi: Mention that this
43295         module is no longer useful.
43296         * modules/free (Notice): Say this module is obsolete.
43297         * modules/readutmp (Depends-on): Remove free.
43298         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43299         * lib/putenv.c (putenv): Likewise.
43300         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43301         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43302         * tests/test-c-strcasestr.c (main): Likewise.
43303         * tests/test-c-strstr.c (main): Likewise.
43304         * tests/test-mbscasestr1.c (main): Likewise.
43305         * tests/test-mbscasestr2.c (main): Likewise.
43306         * tests/test-mbsstr1.c (main): Likewise.
43307         * tests/test-mbsstr2.c (main): Likewise.
43308         * tests/test-memmem.c (main): Likewise.
43309         * tests/test-strcasestr.c (main): Likewise.
43310         * tests/test-striconv.c (main): Likewise.
43311         * tests/test-striconveh.c (main): Likewise.
43312         * tests/test-striconveha.c (main): Likewise.
43313         * tests/test-strstr.c (main): Likewise.
43314
43315         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43316
43317         bootstrap: sync from coreutils again
43318         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43319
43320 2008-03-01  Jim Meyering  <meyering@redhat.com>
43321
43322         bootstrap: sync from coreutils
43323         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43324         also when the target doesn't exist.
43325
43326 2008-03-01  Eric Blake  <ebb9@byu.net>
43327
43328         Fix bugs in last patch.
43329         * lib/memchr2.c (memchr2): Fix typo.
43330         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43331         extension.
43332         Reported by Bruce Korb.
43333
43334         New module 'memchr2'.
43335         * modules/memchr2: New file.
43336         * modules/memchr2-tests: Likewise.
43337         * lib/memchr2.h: Likewise.
43338         * lib/memchr2.c: Likewise, based on memchr.c.
43339         * tests/test-memchr2.c: New test.
43340         * MODULES.html.sh (String handling): Add memchr2.
43341
43342 2008-02-29  Bruno Haible  <bruno@clisp.org>
43343
43344         * modules/freadseek-tests: New file.
43345         * tests/test-freadseek.sh: New file.
43346         * tests/test-freadseek.c: New file.
43347
43348         New module 'freadseek'.
43349         * modules/freadseek: New file.
43350         * lib/freadseek.h: New file.
43351         * lib/freadseek.c: New file.
43352         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43353
43354 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43355
43356         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43357         wydawca.
43358
43359         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43360         program_invocation_name and program_invocation_short_name are
43361         present.
43362
43363 2008-02-28  Bruno Haible  <bruno@clisp.org>
43364
43365         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43366         * tests/test-freadptr.sh: Also test non-seekable stdin.
43367
43368 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43369
43370         * build-aux/bootstrap (source_base, m4_base)
43371         (doc_base, tests_base): New variables.
43372         (gnulib_tool_options): Do not hardcode base directories, use
43373         the above variables instead.
43374
43375 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43376
43377         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43378
43379 2008-02-28  Bruno Haible  <bruno@clisp.org>
43380
43381         * modules/freadptr-tests: New file.
43382         * tests/test-freadptr.sh: New file.
43383         * tests/test-freadptr.c: New file.
43384
43385         New module 'freadptr'.
43386         * modules/freadptr: New file.
43387         * lib/freadptr.h: New file.
43388         * lib/freadptr.c: New file.
43389         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43390
43391 2008-02-26  Karl Berry  <karl@freefriends.org>
43392
43393         Sync from Libtool:
43394         * libltdl/argz.c (argz_add, argz_count): New functions.
43395         * libltdl/argz.in.h: Declare them.
43396         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43397
43398 2008-02-22  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43401         is a pointer type.  Needed for HP-UX 10.
43402         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43403         * doc/posix-functions/gmtime_r.texi: Likewise.
43404         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43405
43406 2008-02-24  Bruno Haible  <bruno@clisp.org>
43407
43408         * modules/environ-tests: New file.
43409         * tests/test-environ.c: New file.
43410
43411         New module 'environ'.
43412         * modules/environ: New file.
43413         * lib/unistd.in.h (environ): New declaration.
43414         * m4/environ.m4: New file.
43415         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43416         after use.
43417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43418         HAVE_DECL_ENVIRON.
43419         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43420         HAVE_DECL_ENVIRON.
43421         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43422         wrong claim that 'environ' is missing on some systems.
43423         * modules/execute (Depends-on): Add environ.
43424         * lib/execute.c (environ): Remove fallback declaration.
43425         * modules/pipe (Depends-on): Add environ.
43426         * lib/pipe.c (environ): Remove fallback declaration.
43427         * modules/setenv (Depends-on): Add environ.
43428         * lib/setenv.c (environ): Remove fallback declaration.
43429         * modules/unsetenv (Depends-on): Add environ.
43430         * lib/unsetenv.c (environ): Remove fallback declaration.
43431         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43432         m4/environ.m4.
43433         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43434         (gl_PREREQ_UNSETENV): Likewise.
43435
43436 2008-02-24  Bruno Haible  <bruno@clisp.org>
43437
43438         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43439
43440 2008-02-20  Bob Proulx  <bob@proulx.com>
43441
43442         Enable use of older two part flavor 'git describe'.
43443         * build-aux/git-version-gen: If using the older two part flavor of
43444         git version then recreate the third part now present in the
43445         newer three part flavor of git describe.
43446
43447 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43448
43449         * lib/fts.c (fts_build): Typo correction to comment.
43450
43451 2008-02-17  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43454         generating no-op conflicts.
43455
43456 2008-02-17  Bruno Haible  <bruno@clisp.org>
43457
43458         Speed up by 10%.
43459         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43460         result_entries, rather than an index-based loop.
43461
43462 2008-02-17  Bruno Haible  <bruno@clisp.org>
43463
43464         Speed up by 25%.
43465         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43466         'hashcode_cached'.
43467         (entry_create): New function.
43468         (entry_hashcode): Use the cached hashcode if possible.
43469         (read_changelog_file, try_split_merged_entry): Use entry_create.
43470
43471 2008-02-17  Bruno Haible  <bruno@clisp.org>
43472
43473         Speed up from O(n^2) to O(n) for long ChangeLog files.
43474         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43475         (read_changelog_file): Change implementation of entries_reversed list
43476         to rbtreehash.
43477         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43478
43479 2008-02-17  Bruno Haible  <bruno@clisp.org>
43480
43481         New option --split-merged-entry.
43482         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43483         (find_paragraph_end, try_split_merged_entry): New functions.
43484         (long_options): Add option --split-merged-entry.
43485         (usage): Document option --split-merged-entry.
43486         (main): Implement option --split-merged-entry.
43487         Reported by Eric Blake.
43488
43489 2008-02-17  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/git-merge-changelog.c: Include c-strstr.h.
43492         (main): Support the "git pull --rebase" situation.
43493         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43494         Reported by Eric Blake.
43495
43496 2008-02-16  Eric Blake  <ebb9@byu.net>
43497
43498         Avoid doubling \ in common case of "c-maybe" quoting style.
43499         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43500         eliding outer quotes.
43501         * lib/quotearg.h: Document this.
43502         * tests/test-quotearg.c (result_strings, inputs, results_g)
43503         (flag_results, locale_results): Test it by adding a new string to
43504         each test group.
43505         (compare_strings): Test new string.
43506
43507 2008-02-13  Eric Blake  <ebb9@byu.net>
43508
43509         Avoid trigraph quoting in default output.
43510         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43511         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43512         unless explicitly requested.
43513         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43514
43515 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43516
43517         Don't rely on signed integer overflowing to negative value.
43518         * lib/getugroups.c (getugroups): Include <limits.h>.
43519         Instead, compare against INT_MAX, and increment only if the test passes.
43520
43521 2008-02-13  Jim Meyering  <meyering@redhat.com>
43522         and Eric Blake  <ebb9@byu.net>
43523
43524         Avoid shadowing warning and compile errors on Linux.
43525         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43526         forwarding macros on Linux.
43527         (dcgettext): Define a stub, for Linux.
43528         (results_g, main): Avoid warnings.
43529
43530 2008-02-12  Eric Blake  <ebb9@byu.net>
43531
43532         Silence warning in last patch.
43533         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43534
43535         Quotearg part 4: add tests, fix c-maybe colon quoting.
43536         * lib/quotearg.h: Improve documentation.
43537         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43538         escapes when adding outer quotes.  When quoting trigraphs, use
43539         valid C notation.  When quoting NUL, omit extra characters if next
43540         character is not digit.  Alter prototype.
43541         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43542         callers.
43543         * modules/quotearg-tests: New module.
43544         * tests/test-quotearg.c: New test.
43545
43546 2008-02-07  Eric Blake  <ebb9@byu.net>
43547
43548         Quotearg part 3: add flag to control outer quote elision.
43549         * lib/quotearg.h (c_maybe_quoting_style): New style.
43550         (enum quoting_flags): Better documentation of flags.
43551         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43552         c-maybe style.
43553         (quotearg_buffer_restyled): Handle new flag to elide outer
43554         quotes.
43555
43556         Quotearg part 2: add flag that can control NUL elision.
43557         * lib/quotearg.h (set_quoting_flags): New prototype.
43558         * lib/quotearg.c (struct quoting_options): Add flag field.
43559         (set_quoting_flags): New function.
43560         (quotearg_buffer_restyled): Add flags parameter.
43561         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43562         (quotearg_n_options): Set the flag, since length cannot be
43563         returned.
43564         (quoting_options_from_style): Default flags correctly.
43565
43566         Quotearg part 1: more wrappers, restore quotearg_char state.
43567         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43568         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43569         (quotearg_colon_mem): New wrappers.
43570         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43571         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43572         functions.
43573         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43574         (quotearg_colon_mem): New functions.
43575
43576 2008-02-11  Bruno Haible  <bruno@clisp.org>
43577
43578         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43579         library in the current directory: it does not work with parallel make.
43580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43581
43582 2008-02-11  Bruno Haible  <bruno@clisp.org>
43583
43584         * .gitattributes: New file.
43585
43586 2008-02-11  Jim Meyering  <meyering@redhat.com>
43587
43588         useless-if-before-free: Fix reversed exit values.
43589         * build-aux/useless-if-before-free: Use correct values
43590         for EXIT_MATCH and EXIT_NO_MATCH.
43591
43592         * build-aux/useless-if-before-free: Close stdout carefully.
43593
43594 2008-02-10  Bruno Haible  <bruno@clisp.org>
43595
43596         New module 'git-merge-changelog'.
43597         * modules/git-merge-changelog: New file.
43598         * lib/git-merge-changelog.c: New file.
43599
43600 2008-02-10  Jim Meyering  <meyering@redhat.com>
43601
43602         useless-if-before-free: New option: --list (-l).
43603
43604         useless-if-before-free: Don't exit immediately upon open failure.
43605         * build-aux/useless-if-before-free: Exit 2 for errors.
43606         Upon failure to open a file, don't exit immediately.
43607         Rather, just warn and continue with any remaining files.
43608
43609 2008-02-10  Bruno Haible  <bruno@clisp.org>
43610
43611         New abstract list operation 'node_set_value'.
43612         * lib/gl_list.h (gl_list_node_set_value): New function.
43613         (struct gl_list_implementation): New field node_set_value.
43614         * lib/gl_list.c (gl_list_node_set_value): New function.
43615         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43616         (gl_array_list_implementation): Update.
43617         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43618         (gl_carray_list_implementation): Update.
43619         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43620         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43621         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43622         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43623         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43624         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43625         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43626         Update.
43627         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43628         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43629         (gl_sublist_list_implementation): Update.
43630
43631 2008-02-10  Bruno Haible  <bruno@clisp.org>
43632
43633         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43634         Needed when ELEMENT is #defined to 'some_type *'.
43635
43636 2008-02-10  Jim Meyering  <meyering@redhat.com>
43637
43638         New script and module: useless-if-before-free
43639         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43640         * build-aux/useless-if-before-free: New file.
43641         * modules/useless-if-before-free: New file.
43642
43643         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43644
43645         xstrtol_error: Fix typo.
43646         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43647         s/exit_failure/exit_status/.
43648
43649 2008-02-09  Jim Meyering  <meyering@redhat.com>
43650
43651         New script and module: gitlog-to-changelog
43652         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43653         * modules/gitlog-to-changelog: New file.
43654         * build-aux/gitlog-to-changelog: New file.
43655
43656 2008-02-08  Jim Meyering  <meyering@redhat.com>
43657
43658         Avoid two "parameter unused" warnings.
43659         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43660         Mark "st" as used.
43661
43662         Use "git COMMAND", not "git-COMMAND".
43663         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43664         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43665         * build-aux/git-version-gen: Use "git status", not "git-status".
43666
43667 2008-02-07  Bruno Haible  <bruno@clisp.org>
43668
43669         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43670         Avoids a crash on Windows Vista.
43671         Reported by Adam Strzelecki <ono@java.pl> via
43672         Simon Josefsson <simon@josefsson.org>.
43673
43674 2008-02-06  Bruno Haible  <bruno@clisp.org>
43675
43676         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43677         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43678         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43680         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43681         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43682         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43683         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43685         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43688         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43690         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43691         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43692         left-adjust flag.
43693         * tests/test-snprintf-posix.h (test_function): Likewise.
43694         * tests/test-sprintf-posix.h (test_function): Likewise.
43695         * tests/test-vasprintf-posix.c (test_function): Likewise.
43696         * doc/posix-functions/fprintf.texi: Update.
43697         * doc/posix-functions/printf.texi: Update.
43698         * doc/posix-functions/snprintf.texi: Update.
43699         * doc/posix-functions/sprintf.texi: Update.
43700         * doc/posix-functions/vfprintf.texi: Update.
43701         * doc/posix-functions/vprintf.texi: Update.
43702         * doc/posix-functions/vsnprintf.texi: Update.
43703         * doc/posix-functions/vsprintf.texi: Update.
43704         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43705
43706 2008-02-06  Bruno Haible  <bruno@clisp.org>
43707
43708         Fix bug introduced on 2008-01-26.
43709         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43710
43711 2008-02-06  Bruno Haible  <bruno@clisp.org>
43712
43713         Fix bug introduced on 2007-06-10.
43714         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43715         !NEED_PRINTF_FLAG_ZERO.
43716
43717 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43718
43719         getloadavg: use libperfstat on AIX5
43720         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43721
43722 2008-02-03  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/diffseq.h: Add comments about required #includes.
43725         Reported by Michael Biggs <gnulib@doubleplum.net>.
43726
43727 2008-02-01  Bruno Haible  <bruno@clisp.org>
43728
43729         * users.txt: Add gnuit.
43730
43731 2008-01-31  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/md4.c (set_uint32): Mark as inline.
43734         * lib/md5.c (set_uint32): Likewise.
43735         * lib/sha1.c (set_uint32): Likewise.
43736         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43737         * m4/md5.m4 (gl_MD5): Likewise.
43738         * m4/sha1.m4 (gl_SHA1): Likewise.
43739
43740 2008-01-31  Jim Meyering  <meyering@redhat.com>
43741
43742         Use "sizeof VAR", rather than a literal "4".
43743         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43744         * lib/md4.c (md4_read_ctx): Likewise.
43745         * lib/sha1.c (sha1_read_ctx): Likewise.
43746
43747 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43748
43749         * tests/test-sha1.c: New file, based on test-md5.c.
43750
43751         * modules/crypto/sha1-tests: New file.
43752
43753 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43754
43755         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43756
43757 2008-01-31  Jim Meyering  <meyering@redhat.com>
43758
43759         Prefer "sizeof v" over the equivalent "4".
43760         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43761         * lib/md5.c (set_uint32): Likewise.
43762         * lib/sha1.c (set_uint32): Likewise.
43763
43764 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43765
43766         * lib/sha1.c (set_uint32): Mark function as static.
43767
43768 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43769
43770         md2: clarify comments to say that alignment is not required.
43771         * lib/md2.h: Remove warning about alignment in comment.
43772         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43773         never been required.
43774
43775 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43776
43777         md4: adapt alignment constraint fix from sha1.
43778         * lib/md4.c (set_uint32): New function, from sha1.c
43779         (md4_read_ctx): Use it.
43780         (md4_finish_ctx): Doc fix.
43781         * lib/md4.h: Doc fix.
43782
43783 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43784
43785         md5: adapt alignment constraint fix from sha1.
43786         * lib/md5.c (set_uint32): New function, from sha1.c
43787         (md5_read_ctx): Use it.
43788         (md5_finish_ctx): Doc fix.
43789         * lib/md5.h: Doc fix.
43790
43791 2008-01-30  Peter Palfrader  <weasel@debian.org>
43792
43793         sha1: remove the result buffer alignment constraint
43794         * lib/sha1.c (set_uint32): New function.
43795         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43796         constraint.
43797         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43798         * lib/sha1.h: Likewise.
43799
43800 2008-01-30  Andreas Schwab  <schwab@suse.de>
43801             Bruno Haible  <bruno@clisp.org>
43802
43803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43804         correct definition of LDBL_MIN_EXP.
43805
43806 2008-01-30  Karl Berry  <karl@gnu.org>
43807
43808         * config/srclist-update: try to preserve x bit on updates.
43809         * config/srclistvars.sh: update for karl.
43810
43811 2008-01-29  Jim Meyering  <meyering@redhat.com>
43812
43813         vasnprintf.c: Avoid warning about unused label
43814         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43815         "overflow" label definition and associated code with the
43816         same cpp condition that guards the sole use of that label.
43817
43818 2008-01-26  Bruno Haible  <bruno@clisp.org>
43819
43820         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43821         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43822         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43823         * lib/isnanl-nolibm.h (isnanl): Likewise.
43824         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43825
43826 2008-01-26  Bruno Haible  <bruno@clisp.org>
43827
43828         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43829         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43830
43831 2008-01-26  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43834         GCC >= 4.0 built-in.
43835         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43836
43837 2008-01-26  Bruno Haible  <bruno@clisp.org>
43838
43839         Rename isnan, applicable to 'double' only, to isnand.
43840         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43841         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43842         (configure.ac): Update.
43843         (Include): Replace "isnan.h" with "isnand.h".
43844         * m4/isnand.m4: Renamed from m4/isnan.m4.
43845         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43846         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43847         instead of isnan.c.
43848         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43849         instead of HAVE_ISNAN_IN_LIBC.
43850         (isnand): Renamed from isnan.
43851         * lib/isnand.c: New file.
43852         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43853         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43854         (Makefile.am): Update.
43855         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43856         Include isnand.h instead of isnan.h.
43857         (main): Test isnand instead of isnan.
43858         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43859         isnan-nolibm.
43860         * modules/frexp (Depends-on): Likewise.
43861         * modules/frexp-tests (Depends-on): Likewise.
43862         * modules/frexp-nolibm (Depends-on): Likewise.
43863         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43864         * modules/isfinite (Depends-on): Likewise.
43865         * modules/round-tests (Depends-on): Likewise.
43866         * modules/signbit (Depends-on): Likewise.
43867         * modules/signbit-tests (Depends-on): Likewise.
43868         * modules/snprintf-posix (Depends-on): Likewise.
43869         * modules/sprintf-posix (Depends-on): Likewise.
43870         * modules/trunc-tests (Depends-on): Likewise.
43871         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43872         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43873         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43874         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43875         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43876         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43877         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43878         * modules/vasnprintf-posix (Depends-on): Likewise.
43879         * modules/vasprintf-posix (Depends-on): Likewise.
43880         * modules/vfprintf-posix (Depends-on): Likewise.
43881         * modules/vsnprintf-posix (Depends-on): Likewise.
43882         * modules/vsprintf-posix (Depends-on): Likewise.
43883         * lib/frexp.c: Include isnand.h instead of isnan.h.
43884         (ISNAN): Set to isnand instead of isnan.
43885         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43886         (gl_isfinited): Use isnand instead of isnan.
43887         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43888         (gl_signbitd): Use isnand instead of isnan.
43889         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43890         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43891         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43892         (main): Use isnand instead of isnan.
43893         * tests/test-round1.c: Include isnand.h.
43894         (main): Use isnand instead of isnan.
43895         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43896         (ISNAN): Set to isnand instead of isnan.
43897         * tests/test-trunc1.c: Include isnand.h.
43898         (main): Use isnand instead of isnan.
43899         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43900         (equal): Use isnand instead of isnan.
43901         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43902         isnand-nolibm.
43903         * NEWS: Mention the change.
43904
43905 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43906             Bruno Haible  <bruno@clisp.org>
43907
43908         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43909         the GCC builtins for signbits are present and set
43910         REPLACE_SIGNBIT_USING_GCC if so.
43911         * lib/math.in.h (signbit): Define using GCC builtins if
43912         REPLACE_SIGNBIT_USING_GCC is set.
43913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43914         REPLACE_SIGNBIT_USING_GCC.
43915         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43916
43917 2008-01-25  Jim Meyering  <meyering@redhat.com>
43918
43919         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43920         * lib/poll.c: Include <config.h>, not "config.h".
43921         * tests/test-getaddrinfo.c: Likewise.
43922
43923 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43924
43925         * modules/sockets-tests: New file.
43926
43927 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43928
43929         * modules/sockets: New module, can be used to call WSA_Startup and
43930         WSA_Cleanup when needed.
43931
43932         * lib/sockets.h, lib/sockets.c: New files.
43933
43934         * m4/sockets.m4: New file.
43935
43936         * tests/test-sockets.c: New file.
43937
43938 2008-01-19  Bruno Haible  <bruno@clisp.org>
43939
43940         * doc/posix-headers: Renamed from doc/headers.
43941         * doc/posix-functions: Renamed from doc/functions.
43942         * doc/gnulib.texi: Update.
43943
43944 2008-01-19  Bruno Haible  <bruno@clisp.org>
43945
43946         * doc/glibc-functions/strcasestr.texi: Include contents of
43947         doc/functions/strcasestr.texi, fixing the list of platforms.
43948         * doc/functions/strcasestr.texi: Remove file.
43949
43950 2008-01-19  Bruno Haible  <bruno@clisp.org>
43951
43952         * doc/glibc-functions/memmem.texi: Include contents of
43953         doc/functions/memmem.texi.
43954         * doc/functions/memmem.texi: Remove file.
43955
43956 2008-01-18  Bruno Haible  <bruno@clisp.org>
43957
43958         * doc/glibc-functions/*.texi: New files.
43959         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43960         to use the new files.
43961
43962 2008-01-17  Bruno Haible  <bruno@clisp.org>
43963
43964         * tests/test-gethostname.c (main): Fix printf statement.
43965
43966 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43967
43968         * modules/gethostname-tests: New file.
43969
43970         * tests/test-gethostname.c: New file.
43971
43972 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43973
43974         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43975         used by the UNAME case.  Reported by Bruno Haible
43976         <bruno@clisp.org>.
43977
43978 2008-01-17  Eric Blake  <ebb9@byu.net>
43979
43980         Convert c-strcasestr to be more efficient.
43981         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43982         (Depends-on): Add c-strcase, remove malloca, strnlen.
43983         * tests/test-c-strcasestr.c (main): Enhance test.
43984         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43985
43986 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43987
43988         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43989         Use it in creating po/Makevars.
43990
43991 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43992
43993         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43994         Applications that requires it should initialize libgcrypt
43995         manually.
43996
43997 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43998
43999         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44000
44001 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         Fix problem with getdate on mingw32 reported by Simon Josefsson
44004         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44005         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44006         tzname", when deciding whether to declare tzname.
44007         * lib/strftime.c (tzname): Likewise.
44008
44009 2008-01-15  Bruno Haible  <bruno@clisp.org>
44010
44011         Work around a MacOS X 10.5 bug in frexpl().
44012         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44013         * doc/functions/frexpl.texi: Document the bug.
44014         Reported by Elias Pipping <pipping@gentoo.org>.
44015
44016 2008-01-14  Eric Blake  <ebb9@byu.net>
44017
44018         Touch up previous patch.
44019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44020         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44021
44022         Convert strcasestr module to use Two-Way algorithm.
44023         * modules/strcasestr-simple: New module, based on the old
44024         strcasestr, but with Two-Way rather than KMP.
44025         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44026         * lib/string.in.h (rpl_strcasestr): Declare.
44027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44028         performance.
44029         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44030         * modules/string (Makefile.am): Support strcasestr.
44031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44032         * modules/strcasestr-tests (Depends-on): Check for alarm.
44033         * tests/test-strcasestr.c: Augment test.
44034         * lib/str-two-way.h: Clean up stray macro.
44035         * NEWS: Document new module.
44036         * MODULES.html.sh (string handling): Likewise.
44037         * doc/functions/strcasestr.texi: New file.
44038         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44039         here, since it is not a POSIX function.
44040
44041 2008-01-14  Colin Watson  <cjwatson@debian.org>
44042             Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44045         works fine; if not, set REPLACE_STRSIGNAL.
44046         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
44047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44048         REPLACE_STRSIGNAL.
44049         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
44050         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
44051         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
44052
44053 2008-01-14  Bruno Haible  <bruno@clisp.org>
44054
44055         * modules/strsignal (Include): Change to <string.h>.
44056
44057 2008-01-14  Colin Watson  <cjwatson@debian.org>
44058
44059         * modules/argp (Notice): Add a notice recommending to change
44060         XGETTEXT_OPTIONS.
44061         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44062
44063 2008-01-13  Colin Watson  <cjwatson@debian.org>
44064
44065         * modules/strsignal-tests: New file.
44066         * tests/test-strsignal.c: New file.
44067
44068         * lib/strsignal.c: New file, from glibc with modifications.
44069         * lib/siglist.h: New file, from glibc with modifications.
44070         * lib/string.in.h (strsignal): New declaration.
44071         * m4/strsignal.m4: New file.
44072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44073         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44074         * modules/strsignal: New file.
44075         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44076         HAVE_DECL_STRSIGNAL.
44077
44078 2008-01-13  Bruno Haible  <bruno@clisp.org>
44079
44080         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44081         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44082         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44083         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44084
44085 2008-01-13  Bruno Haible  <bruno@clisp.org>
44086
44087         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44088         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44089         * lib/argp.h (__attribute__): Likewise.
44090         * lib/c-stack.c (__attribute__): Likewise.
44091         * lib/error.h (__attribute__): Likewise.
44092         * lib/fts.c (__attribute__): Likewise.
44093         * lib/openat.h (__attribute__): Likewise.
44094         * lib/stdio.in.h (__attribute__): Likewise.
44095         * lib/string.in.h (__attribute__): Likewise.
44096         * lib/utimens.c (__attribute__): Likewise.
44097         * lib/vasnprintf.h (__attribute__): Likewise.
44098         * lib/xalloc.h (__attribute__): Likewise.
44099         * lib/xprintf.h (__attribute__): Likewise.
44100         * lib/xstrtol.h (__attribute__): Likewise.
44101         * lib/xvasprintf.h (__attribute__): Likewise.
44102
44103 2008-01-12  Bruno Haible  <bruno@clisp.org>
44104
44105         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44106         * doc/glibc-headers/a.out.texi: New file.
44107         * doc/glibc-headers/aliases.texi: New file.
44108         * doc/glibc-headers/alloca.texi: New file.
44109         * doc/glibc-headers/ar.texi: New file.
44110         * doc/glibc-headers/argp.texi: New file.
44111         * doc/glibc-headers/argz.texi: New file.
44112         * doc/glibc-headers/byteswap.texi: New file.
44113         * doc/glibc-headers/crypt.texi: New file.
44114         * doc/glibc-headers/endian.texi: New file.
44115         * doc/glibc-headers/envz.texi: New file.
44116         * doc/glibc-headers/err.texi: New file.
44117         * doc/glibc-headers/error.texi: New file.
44118         * doc/glibc-headers/execinfo.texi: New file.
44119         * doc/glibc-headers/fpu_control.texi: New file.
44120         * doc/glibc-headers/fstab.texi: New file.
44121         * doc/glibc-headers/fts.texi: New file.
44122         * doc/glibc-headers/getopt.texi: New file.
44123         * doc/glibc-headers/ieee754.texi: New file.
44124         * doc/glibc-headers/ifaddrs.texi: New file.
44125         * doc/glibc-headers/libintl.texi: New file.
44126         * doc/glibc-headers/mcheck.texi: New file.
44127         * doc/glibc-headers/mntent.texi: New file.
44128         * doc/glibc-headers/obstack.texi: New file.
44129         * doc/glibc-headers/paths.texi: New file.
44130         * doc/glibc-headers/printf.texi: New file.
44131         * doc/glibc-headers/pty.texi: New file.
44132         * doc/glibc-headers/resolv.texi: New file.
44133         * doc/glibc-headers/shadow.texi: New file.
44134         * doc/glibc-headers/sysexits.texi: New file.
44135         * doc/glibc-headers/ttyent.texi: New file.
44136
44137 2008-01-12  Jim Meyering  <meyering@redhat.com>
44138
44139         announce-gen: emit Gnulib's git-based version string.
44140         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44141         New option --gnulib-version=V, where V is expected to be
44142         the output of running git describe in the gnulib directory.
44143         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44144         not useful, and plan to stop publishing an xdelta file with each
44145         coreutils release.
44146
44147         * build-aux/announce-gen: Also check for lzma-compressed files.
44148
44149 2008-01-11  Bruno Haible  <bruno@clisp.org>
44150
44151         * tests/test-memmem.c (main): Increase maximum allowed time.
44152         * tests/test-strstr.c (main): Likewise.
44153
44154 2008-01-11  Bruno Haible  <bruno@clisp.org>
44155
44156         * doc/functions/memmem.texi: Add more precisions about platforms.
44157         * doc/functions/strstr.texi: Likewise.
44158
44159 2008-01-10  Eric Blake  <ebb9@byu.net>
44160
44161         * m4/strstr.m4: Delete cruft from copy-n-paste.
44162         Reported by Bruno Haible.
44163
44164 2008-01-10  Bruno Haible  <bruno@clisp.org>
44165
44166         Make c-strstr rely on strstr.
44167         * lib/c-strstr.c: Don't include str-kmp.h.
44168         (c_strstr): Define in terms of strstr.
44169         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44170         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44171
44172 2008-01-10  Bruno Haible  <bruno@clisp.org>
44173
44174         * doc/gnulib.texi (String Functions in C Locale): New section.
44175         * doc/c-ctype.texi: New file.
44176         * doc/c-strcase.texi: New file.
44177         * doc/c-strcaseeq.texi: New file.
44178         * doc/c-strcasestr.texi: New file.
44179         * doc/c-strstr.texi: New file.
44180         * doc/c-strtod.texi: New file.
44181         * doc/c-strtold.texi: New file.
44182
44183 2008-01-10  Eric Blake  <ebb9@byu.net>
44184
44185         * lib/relocatable.h: Fix a comment.
44186
44187 2008-01-10  Eric Blake  <ebb9@byu.net>
44188
44189         Share two-way algorithm.
44190         * lib/str-two-way.h: New file, merged from...
44191         * lib/memmem.c: ...here...
44192         * lib/strstr.c: ...and here.
44193         * modules/memmem (Files): Use it.
44194         * modules/strstr (Files): Likewise.
44195
44196         Avoid quadratic strstr implementations.
44197         * lib/strstr.c: New file.
44198         * m4/strstr.m4: Likewise.
44199         * modules/strstr: Likewise.
44200         * modules/strstr-tests: Likewise.
44201         * tests/test-strstr.c: Likewise.
44202         * lib/string.in.h (rpl_strstr): Declare.
44203         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44205         * modules/string (Makefile.am): Likewise.
44206         * MODULES.html.sh (string handling): Mention new module.
44207         * doc/functions/strstr.texi (strstr): Document the bug.
44208
44209 2008-01-10  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/relocatable.h (relocate): State whether result is freshly
44212         allocated or not.
44213         * lib/relocatable.c (relocate): Return a freshly allocated string
44214         instead of a pointer to a privately held string.
44215         Reported by Sylvain Beucler <beuc@gnu.org>.
44216
44217 2008-01-10  Colin Watson  <cjwatson@debian.org>
44218
44219         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44220         s/S_ISNLK/S_ISLNK/.
44221
44222 2008-01-09  Bruno Haible  <bruno@clisp.org>
44223
44224         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44225         and other files.
44226         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44227         if it's only a guess.
44228         * modules/memmem: Simplify by depending on memmem-simple.
44229
44230 2008-01-09  Bruno Haible  <bruno@clisp.org>
44231
44232         Work around OpenBSD 4.0 tdelete() bug.
44233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44234         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44235         macros and don't redefine the enum values.
44236         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44237         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44238         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44239
44240 2008-01-09  Bruno Haible  <bruno@clisp.org>
44241
44242         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44243         (main): Don't perform the tests if setlocale did not install a UTF-8
44244         locale. Needed on OpenBSD 4.0.
44245         * modules/wcwidth-tests (Depends-on): Add localcharset.
44246
44247 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44250         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44251         * NEWS: announce this.
44252         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44253
44254 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44255         and Eric Blake  <ebb9@byu.net>
44256
44257         Add memmem-simple module.
44258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44259         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44260         * modules/memmem-simple: New file.
44261         * modules/memmem (Description): Tweak.
44262         * MODULES.html.sh (string handling): Mention new module.
44263         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44264         addressed by memmem-simple.
44265         * NEWS: Document the difference.
44266
44267 2008-01-09  Eric Blake  <ebb9@byu.net>
44268
44269         Give gcc some memmem optimization hints.
44270         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44271         (strcasestr): Declare as pure.
44272         * modules/memmem (Maintainer): Claim my implementation.
44273
44274 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44275
44276         Support AIX 6.1 and higher.
44277         * build-aux/config.libpath: Likewise.
44278         * build-aux/config.rpath: Likewise.
44279
44280 2008-01-08  Jim Meyering  <meyering@redhat.com>
44281             Bruno Haible  <bruno@clisp.org>
44282
44283         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44284         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44285         Reported by Peter Fales in
44286         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44287
44288 2008-01-08  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/unictype/category-of (Depends-on): Add
44291         unictype/category-none.
44292         * modules/unictype/category-and-tests (Depends-on): Add
44293         unictype/category-{L,N,Lu,Nd}.
44294         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44295         * modules/unictype/category-or-tests (Depends-on): Add
44296         unictype/category-{L,N}.
44297         * modules/unictype/category-name-tests (Depends-on): Add
44298         unictype/category-{Z,Nl}.
44299         Reported by Simon Josefsson.
44300
44301 2008-01-08  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44304         convention better.
44305         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44306         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44307         Reported by Peter Miller <millerp@canb.auug.org.au>.
44308
44309 2008-01-08  Eric Blake  <ebb9@byu.net>
44310
44311         Rewrite memmem to guarantee linear complexity without malloc.
44312         * lib/memmem.c (memmem): Use Two-Way rather than
44313         Knuth-Morris-Pratt, to allow O(1) space usage.
44314         (critical_factorization, two_way_short_needle)
44315         (two_way_long_needle): New functions.
44316         (knuth_morris_pratt): Delete.
44317         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44318         Add stdint.
44319         * tests/test-memmem.c (main): Add tests for periodic needle and
44320         sublinear performance.
44321         * doc/functions/memmem.texi (memmem): Document other deficiencies
44322         in cygwin and older glibc.
44323
44324 2008-01-08  Bruno Haible  <bruno@clisp.org>
44325
44326         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44327         augmentation.
44328
44329 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44330
44331         Add a configure time option: --disable-acl.
44332         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44333         AC_ARG_ENABLE(acl).
44334
44335 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44336
44337         * tests/test-localename.c: Don't include obsolete "setenv.h".
44338
44339         * modules/localename-tests (Depends-on): Need unsetenv.
44340
44341 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44342
44343         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44344
44345 2008-01-06  Colin Watson  <cjwatson@debian.org>
44346
44347         * users.txt: Add man-db.
44348
44349 2008-01-07  Bruno Haible  <bruno@clisp.org>
44350
44351         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44352         previous section name.
44353
44354 2008-01-07  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/progname.c (set_program_name): Don't strip off a leading
44357         "lt-" prefix outside a .libs directory.
44358         Suggested by Paul Eggert.
44359
44360 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44361             Bruno Haible  <bruno@clisp.org>
44362
44363         Improve memory cleanup in 'relocatable' module.
44364         * lib/relocatable.h (compute_curr_prefix): Change return type to
44365         'char *'.
44366         * lib/relocatable.c (compute_curr_prefix): Change return type to
44367         'char *'. Free curr_installdir after use.
44368         (relocate): Free curr_prefix_better after use.
44369         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44370
44371 2008-01-01  Bruno Haible  <bruno@clisp.org>
44372
44373         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44374         failure on older glibc systems.
44375         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44376
44377 2008-01-05  Eric Blake  <ebb9@byu.net>
44378
44379         Avoid quadratic system memmem.
44380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44381         Reported by Ralf Wildenhues.
44382
44383         Fix memmem test for mingw.
44384         * modules/memmem-tests (configure.ac): Check for alarm.
44385         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44386         it.
44387         * doc/functions/memmem.texi: New file.
44388         * doc/gnulib.texi (Function Substitutes): Add memmem.
44389         Reported by Bruno Haible.
44390
44391 2008-01-04  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44394         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44395         gl_HEADER_STRING_H_DEFAULTS.
44396
44397 2008-01-04  Eric Blake  <ebb9@byu.net>
44398
44399         Shorten duration of memmem test.
44400         * tests/test-memmem.c (main): Use alarm to declare failure if test
44401         is taking too long.
44402         Reported by Ralf Wildenhues.
44403
44404 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44405
44406         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44407         string, needed by strerror.
44408
44409 2008-01-03  Colin Watson  <cjwatson@debian.org>
44410             Bruno Haible  <bruno@clisp.org>
44411
44412         * doc/gnulib-tool.texi (Localization): New section.
44413
44414 2008-01-02  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44417         variables to 'unsigned char *' type.
44418         Reported by Paul Eggert.
44419
44420 2008-01-02  Jim Meyering  <jim@meyering.net>
44421
44422         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44423
44424 2007-12-31  Jim Meyering  <jim@meyering.net>
44425
44426         Avoid use of private FTS type name.
44427         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44428
44429 2007-12-30  Karl Berry  <karl@gnu.org>
44430
44431         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44432         work around defect in Texinfo and/or the standalone Info browser.
44433
44434 2007-12-30  Bruno Haible  <bruno@clisp.org>
44435
44436         Unify 5 copies of the KMP code.
44437         * lib/str-kmp.h: New file.
44438         * lib/c-strcasestr.c: Include str-kmp.h.
44439         (knuth_morris_pratt): Remove function.
44440         (c_strcasestr): Update.
44441         * lib/c-strstr.c: Include str-kmp.h.
44442         (knuth_morris_pratt): Remove function.
44443         (c_strcasestr): Update.
44444         * lib/mbscasestr.c: Include str-kmp.h.
44445         (knuth_morris_pratt_unibyte): Remove function.
44446         * lib/mbsstr.c: Include str-kmp.h.
44447         (knuth_morris_pratt_unibyte): Remove function.
44448         * lib/strcasestr.c: Include str-kmp.h.
44449         (knuth_morris_pratt): Remove function.
44450         (strcasestr): Update.
44451         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44452         * modules/c-strstr (Files): Likewise.
44453         * modules/mbscasestr (Files): Likewise.
44454         * modules/mbsstr (Files): Likewise.
44455         * modules/strcasestr (Files): Likewise.
44456         Suggested by Paul Eggert.
44457
44458 2007-12-30  Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44461         defined.
44462
44463 2007-12-30  Bruno Haible  <bruno@clisp.org>
44464
44465         * lib/xmalloca.h: Include xalloc.h.
44466         (xnmalloca): New macro.
44467
44468 2007-12-30  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/malloca.h (nmalloca): New macro.
44471         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44472         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44473         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44474         knuth_morris_pratt_multibyte): Likewise.
44475         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44476         knuth_morris_pratt_multibyte): Likewise.
44477         * lib/memmem.c (knuth_morris_pratt): Likewise.
44478         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44479
44480 2007-12-25  Bruno Haible  <bruno@clisp.org>
44481
44482         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44483         * lib/glob.c: Don't include openat.h.
44484         (link_exists2_p): Add back the code that deals with the
44485         !GLOB_ALTDIRFUNC case.
44486         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44487         let it do the filename concatenation.
44488         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44489         * modules/glob (Depends-on): Remove openat.
44490
44491 2007-12-31  Bruno Haible  <bruno@clisp.org>
44492
44493         * modules/dirfd (License): Change to LGPLv2+.
44494         Approved by Jim Meyering.
44495
44496 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44499         when multiplying M by sizeof (size_t).
44500
44501 2007-12-10  Martin Lambers  <marlam@marlam.de>
44502
44503         Override getpagesize on mingw.
44504         * lib/getpagesize.c: New file.
44505         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44506         * modules/getpagesize (Files): Add lib/getpagesize.c.
44507         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44509         REPLACE_GETPAGESIZE.
44510         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44511
44512 2007-12-25  Bruno Haible  <bruno@clisp.org>
44513
44514         * modules/localcharset (Notice): New field.
44515         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44516         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44517
44518 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44519             Bruno Haible  <bruno@clisp.org>
44520
44521         Avoid using the syntax symbol() in formatted documentation.
44522         * MODULES.html.sh (func_module): When replacing symbol() with a
44523         hyperlink, remove the parentheses. Show an error if some remain.
44524         Recognize and render the '...' syntax.
44525         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44526         Rework. Add paragraph about GCC's inlining.
44527         * doc/alloca.texi: Likewise.
44528         * doc/error.texi: Remove parentheses from symbol reference.
44529         * doc/gnulib-intro.texi: Likewise.
44530         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44531         * modules/fnmatch (Description): Reword to say "the ... function".
44532         * modules/full-read (Description): Likewise.
44533         * modules/full-write (Description): Likewise.
44534         * modules/safe-read (Description): Likewise.
44535         * modules/safe-write (Description): Likewise.
44536         * modules/strchrnul (Description): Likewise.
44537         * modules/trim (Description): Likewise.
44538         * modules/error (Description): Remove parentheses from symbol
44539         references.
44540         * modules/verror (Description): Likewise.
44541         Reported by Karl Berry.
44542
44543 2007-12-25  Bruno Haible  <bruno@clisp.org>
44544
44545         Fixup after 2007-10-16 commit.
44546         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44547
44548 2007-12-24  Bruno Haible  <bruno@clisp.org>
44549
44550         Make --enable-relocatable work with DESTDIR.
44551         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44552         to compute installdir from destprog.
44553         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44554         also set the RELOC_DESTDIR variable.
44555         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44556
44557 2007-12-24  Bruno Haible  <bruno@clisp.org>
44558
44559         Fix link error due to xalloc_die().
44560         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44561         of xreadlink.
44562         * lib/relocwrapper.c: Update comments.
44563         * build-aux/install-reloc: Remove xreadlink.c from file list.
44564         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44565         xreadlink.c.
44566         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44567
44568 2007-12-24  Bruno Haible  <bruno@clisp.org>
44569
44570         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44571         * lib/setenv.h: Remove file.
44572         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44573         lib/setenv.h.
44574         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44575         (Depends-on): Add stdlib.
44576         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44577         gl_FUNC_UNSETENV.
44578         (Include): Replace setenv.h with <stdlib.h>.
44579         * modules/unsetenv: New file.
44580         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44581         * lib/unsetenv.c: Include <stdlib.h> first.
44582         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44583         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44584         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44585         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44586         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44587         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44589         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44590         * doc/functions/unsetenv.texi: Update.
44591         * modules/xsetenv (Depends-on): Add unsetenv.
44592         * modules/getdate (Depends-on): Likewise.
44593         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44594         * lib/xsetenv.c: Don't include setenv.h.
44595         * lib/getdate.y: Likewise.
44596         * lib/relocwrapper.c: Likewise.
44597         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44598         (Depends-on): Add stdlib.
44599         * NEWS: Mention the changes.
44600         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44601
44602 2007-12-23  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44605         indentation.
44606
44607 2007-12-23  Bruno Haible  <bruno@clisp.org>
44608
44609         * lib/c-strcasestr.c: Add more comments.
44610         * lib/c-strstr.c: Likewise.
44611         * lib/mbscasestr.c: Likewise.
44612         * lib/mbsstr.c: Likewise.
44613         * lib/strcasestr.c: Likewise.
44614         * lib/memmem.c: Likewise.
44615
44616 2007-12-23  Bruno Haible  <bruno@clisp.org>
44617
44618         * tests/test-memmem.c: Include <string.h> first.
44619
44620 2007-12-22  Bruno Haible  <bruno@clisp.org>
44621
44622         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44623         the contents of $testsbase.
44624         Reported by Ralf Wildenhues.
44625
44626 2007-12-22  Bruno Haible  <bruno@clisp.org>
44627
44628         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44629         two variables local_ldadd_before, local_ldadd_last.
44630
44631 2007-12-20  Eric Blake  <ebb9@byu.net>
44632
44633         Work around circular library issue when cross-compiling.
44634         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44635         that progname.o does not need to pull in rpl_memcmp.
44636
44637 2007-12-19  Eric Blake  <ebb9@byu.net>
44638
44639         Fix memmem to avoid O(n^2) worst-case complexity.
44640         * lib/memmem.c (knuth_morris_pratt): New function.
44641         (memmem): Use it if first few naive iterations fail.
44642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44643         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44644         * modules/memchr (License): Likewise.
44645         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44646         malloca.
44647         * tests/test-memmem.c: Rewrite, borrowing ideas from
44648         test-mbsstr1.c; the old version wouldn't even compile!
44649         * modules/memmem-tests: New file.
44650         * lib/string.in.h (rpl_memmem): Add declaration.
44651         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44653         REPLACE_MEMMEM.
44654
44655 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44656
44657         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44658         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44659         before any system include files, and undef after them all.  This
44660         should fix a problem on VMS reported by John E. Malmberg in
44661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44662
44663 2007-12-17  Eric Blake  <ebb9@byu.net>
44664
44665         Revert addition of verify, for BSD/OS.
44666         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44667         can't handle large files, for the sake of obsolete platforms.
44668         * modules/fseeko (Depends-on): Remove verify.
44669         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44670         * doc/functions/ftello.texi (ftello): Likewise.
44671         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44672         Reported by Larry Jones.
44673
44674 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44675
44676         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44677         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44678
44679 2007-12-17  Jim Meyering  <meyering@redhat.com>
44680
44681         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44682         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44683         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44684         * modules/getcwd (Depends-on): Add openat.
44685         Reported by Petr Salinger.
44686
44687 2007-12-17  Bruno Haible  <bruno@clisp.org>
44688
44689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44690         avoid a segmentation fault of the configure test on x86_64 systems.
44691
44692 2007-12-15  Jim Meyering  <meyering@redhat.com>
44693
44694         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44695
44696 2007-12-13  Eric Blake  <ebb9@byu.net>
44697
44698         Another fseek test.
44699         * tests/test-fseek.c (main): Also test ungetc handling.
44700         * tests/test-fseeko.c (main): Likewise.
44701         * modules/fseeko (Depends-on): Add verify.
44702         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44703         large.
44704         Reported by Larry Jones.
44705
44706         Fix fseeko on mingw.
44707         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44708         seek.
44709
44710         Beef up fseek tests.
44711         * tests/test-fseek.c (main): Also test eof handling.
44712         * tests/test-fseeko.c (main): Likewise.
44713         Reported by Larry Jones.
44714
44715 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44716
44717         Fix fseeko on BSD-based platforms.
44718         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44719         successful seek.
44720
44721 2007-12-12  Eric Blake  <ebb9@byu.net>
44722
44723         Allow circular dependency of separate libtests.a
44724         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44725         when use_libtests.
44726
44727 2007-12-11  Eric Blake  <ebb9@byu.net>
44728
44729         Fix bug with -0.0L in previous patch.
44730         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44731         * tests/test-isnan.c (main): Also test on zeroes.
44732         * tests/test-isnanf.c (main): Likewise.
44733         * tests/test-isnanl.h (main): Likewise.
44734
44735         Detect pseudo-denormals on x86 even when cross-compiling.
44736         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44737         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44738         invalid bit patterns that happen to satisfy ==.
44739
44740         Avoid link failures with separate libtests.a.
44741         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44742         last, to satisfy circular dependencies.
44743
44744 2007-12-11  Eric Blake  <ebb9@byu.net>
44745         and Bruno Haible  <bruno@clisp.org>
44746
44747         Fix OpenBSD 4.0 <float.h> handling of long double.
44748         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44749         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44750         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44751
44752 2007-12-11  Jim Meyering  <meyering@redhat.com>
44753
44754         * users.txt: Add libvirt.
44755
44756         Support versions of autoconf prior to 2.59c.
44757         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44758         if it is not already defined.
44759
44760 2007-12-09  Bruno Haible  <bruno@clisp.org>
44761
44762         Let 'gnulib-tool --import' collect sources needed for the tests in
44763         tests/ rather than in lib/.
44764         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44765         argument. If true, add rules to generate libtests.a, and put libtests.a
44766         into $(LDADD). Consider source files in subdirectories and set
44767         uses_subdirs.
44768         (func_emit_initmacro_start, func_emit_initmacro_end,
44769         func_emit_initmacro_done): Pass all arguments explicitly.
44770         (func_import): Determine two module lists main_modules,
44771         testsrelated_modules. Determine use_libtests. Determine two variables
44772         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44773         instead of just sed_transform_lib_file. Determine two variables
44774         main_files and testsrelated_files. Compute 'files' as the union of
44775         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44776         func_add_or_update. In the generated gnulib-comp.m4, collect the
44777         object files for tests/ in different variables than those for lib/.
44778         Substitute LIBTESTS_LIBDEPS.
44779         (func_create_testdir): Combine the uses_subdirs results from
44780         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44781
44782 2007-12-09  Bruno Haible  <bruno@clisp.org>
44783
44784         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44785         the build-aux directory.
44786
44787 2007-12-09  Bruno Haible  <bruno@clisp.org>
44788
44789         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44790         introduced on 2006-09-09.
44791
44792 2007-12-07  Jim Meyering  <meyering@redhat.com>
44793
44794         Let these macros work also with autoconf-2.59.
44795         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44796         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44798
44799 2007-12-06  Jim Meyering  <meyering@redhat.com>
44800
44801         Avoid a configure-time syntax error in gl_FUNC_ACL.
44802         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44803         function in each branch, before testing the cache variable.
44804
44805 2007-12-04  Eric Blake  <ebb9@byu.net>
44806
44807         Make scripts executable.
44808         * build-aux/config.guess: Add execute permissions.
44809         * build-aux/config.sub: Likewise.
44810         * build-aux/gendocs.sh: Likewise.
44811
44812         Fix frexp on mingw.
44813         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44814         cross-compiling.
44815         * doc/functions/frexp.texi (frexp): Document the bug.
44816
44817         Make cygwin fseeko check more reliable.
44818         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44819         version numbers, rather than unrelated feature check.
44820         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44821         * doc/functions/ftello.texi (ftello): Likewise.
44822         Reported by Bruno Haible.
44823
44824         * m4/strerror.m4: Bump version number.
44825
44826 2007-12-03  Bruno Haible  <bruno@clisp.org>
44827
44828         * doc/functions/mprotect.texi: Mention the mingw problem.
44829
44830 2007-12-03  Eric Blake  <ebb9@byu.net>
44831
44832         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44833         REPLACE_STRERROR is initialized before this macro.
44834
44835 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44836
44837         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44838         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44839         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44840         put -lsec in even for programs other than 'ls'.  This fixes a problem
44841         for gettext reported by Bruno Haible in
44842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44843         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44844         Add support for Solaris 10.  This isn't efficient, but should get the
44845         job done for now.
44846
44847 2007-12-03  James Youngman  <jay@gnu.org>
44848
44849         * doc/regexprops-generic.texi: change "an close-group" to "a
44850         close-group" and "illegal" to "not allowed".
44851
44852 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44853
44854         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44855         pr_byname.h. Needed for the rare case when the maintainer has done
44856         "make maintainer-clean" in the source directory and then attempts a
44857         build outside the source directory.
44858         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44859         scripts_byname.h.
44860
44861 2007-12-02  Martin Lambers <marlam@marlam.de>
44862             Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/getpagesize.h: Remove file.
44865         * lib/unistd.in.h: Include declaration of getpagesize here.
44866         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44867         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44868         HAVE_SYS_PARAM_H.
44869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44870         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44871         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44872         (Depends-on): Add unistd.
44873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44874         (Include): Use <unistd.h> instead of getpagesize.h.
44875         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44876         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44877         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44878         gl_GETPAGESIZE invocation, already handled by module dependency.
44879         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44880
44881 2007-12-02  Bruno Haible  <bruno@clisp.org>
44882
44883         * modules/strings-tests: New file.
44884         * tests/test-strings.c: New file.
44885
44886         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44887         * lib/strings.in.h: New file.
44888         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44889         * m4/strings_h.m4: New file.
44890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44891         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44892         * modules/strings: New file.
44893         * modules/string (Makefile.am): Update.
44894         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44895         Reported by Karl Berry.
44896
44897 2007-12-01  Eric Blake  <ebb9@byu.net>
44898
44899         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44900         accomodate fix in cygwin 1.5.25.
44901
44902 2007-12-01  Jim Meyering  <meyering@redhat.com>
44903
44904         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44905         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44906         that would inhibit utf8-optimization of a regexp containing line-
44907         or buffer-anchors, e.g., `^', `$'.
44908
44909 2007-11-30  Bruno Haible  <bruno@clisp.org>
44910
44911         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44912         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44913         glthread_recursive_lock_init.
44914         * lib/lock.c (glthread_recursive_lock_init)
44915         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44917
44918 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         New function qset_acl, like set_acl but with syscall semantics.
44921         * lib/acl.h (qset_acl): New decl.
44922         * lib/acl.c (qset_acl): New function.
44923         (set_acl): Use new function.  Use more-consistent diagnostics.
44924
44925 2007-11-28  Jim Meyering  <meyering@redhat.com>
44926
44927         * modules/physmem (License): Change from GPL to LGPLv2+.
44928
44929 2007-11-26  Bruno Haible  <bruno@clisp.org>
44930
44931         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44932         'long double' type has excess precision.
44933         Reported by Jim Meyering in
44934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44935
44936 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44937
44938         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44939         Sync from <http://gnu.org/licenses>.
44940         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44941         with license text from same location.
44942         * doc/maintain.texi, doc/standards.texi:  Sync from
44943         <http://savannah.gnu.org/projects/gnustandards>.
44944
44945 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44946         and Jim Meyering  <meyering@redhat.com>
44947
44948         Adjust getdate' grammar to accept a slightly more regular language.
44949         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44950         Before, the former was rejected.
44951         * lib/getdate.y (digits_to_date_time): New function, factored
44952         out of ...
44953         (number): ...here.  Just call digits_to_date_time.
44954         (hybrid): New non-terminal to handle an <unsigned number,
44955         signed relative offset> sequence consistently.
44956
44957 2007-11-18  Jim Meyering  <meyering@redhat.com>
44958
44959         Pull my changes from coreutils:
44960         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44961         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44962         use of $gnulib_tool_option_extras, so that it's separated from the
44963         preceding argument.
44964
44965         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44966         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44967         parent destination directories before copying a file into place.
44968
44969 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44970
44971         bootstrap: work also with 4-argument variant of AC_INIT
44972         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44973
44974 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         Port test-getaddrinfo to Solaris.
44977         Problem reported by Bruno Haible in
44978         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44979         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44980         explanation of setting 'hints'.
44981         Don't reject an implementation merely because it returns EAI_SERVICE.
44982         (EAI_SERVICE): Define to 0 if not defined.
44983
44984 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44985
44986         The license of gnu-make and posix-shell is now "GPLed build tool".
44987         * modules/gnu-make (License): Likewise.
44988         * modules/posix-shell (License): Likewise.
44989
44990         New module posix-shell, for determining a POSIX shell
44991         or perhaps something that is close enough to a POSIX shell.
44992         * m4/posix-shell.m4: New file.
44993         * modules/posix-shell: New file.
44994
44995         * MODULES.html.sh: Mention new module.
44996
44997         New module gnu-make, for determining whether we're using GNU Make.
44998         * m4/gnu-make.m4: New file.
44999         * modules/gnu-make: New file.
45000         * MODULES.html.sh: Mention new module.
45001
45002 2007-11-14  Jim Meyering  <meyering@redhat.com>
45003
45004         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45005         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45006         use this macro to create a function _definition_.
45007         Remove useless "#undef ARGMATCH_DIE".
45008
45009 2007-11-14  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/config.charset: Update for OpenBSD 4.1.
45012         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45013
45014 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45015
45016         Document 64-bit #if problems in stdint.texi.
45017         * doc/headers/stdint.texi (stdint.h): Mention problems with
45018         64-bit-#if, and how to work around them.
45019
45020         Don't insist on 'long long int' support in the preprocessor.  It
45021         breaks too many things.  For example, PRIdMAX still uses a 'long
45022         long int' format with the latest Sun compiler, even though
45023         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45024         preprocessor problem.  This causes the latest coreutils to dump
45025         core on Solaris 10 sparc with the Sun C compiler.
45026         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45027         the troublesome expressions at configure-time, not at #if-time.
45028         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45029         preprocessor.
45030         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45031         compile-time C checks, done at 'configure'-time.
45032         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45033         * modules/inttypes (Makefile): Substitute the new symbols that
45034         gl_INTTYPES_H now generates.
45035         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45036
45037 2007-11-12  Bruno Haible  <bruno@clisp.org>
45038
45039         Tests for Unicode character classification functions.
45040
45041         * modules/unictype/bidicategory-byname-tests: New file.
45042         * modules/unictype/bidicategory-name-tests: New file.
45043         * modules/unictype/bidicategory-of-tests: New file.
45044         * modules/unictype/bidicategory-test-tests: New file.
45045         * modules/unictype/block-list-tests: New file.
45046         * modules/unictype/block-of-tests: New file.
45047         * modules/unictype/block-test-tests: New file.
45048         * modules/unictype/category-C-tests: New file.
45049         * modules/unictype/category-Cc-tests: New file.
45050         * modules/unictype/category-Cf-tests: New file.
45051         * modules/unictype/category-Cn-tests: New file.
45052         * modules/unictype/category-Co-tests: New file.
45053         * modules/unictype/category-Cs-tests: New file.
45054         * modules/unictype/category-L-tests: New file.
45055         * modules/unictype/category-Ll-tests: New file.
45056         * modules/unictype/category-Lm-tests: New file.
45057         * modules/unictype/category-Lo-tests: New file.
45058         * modules/unictype/category-Lt-tests: New file.
45059         * modules/unictype/category-Lu-tests: New file.
45060         * modules/unictype/category-M-tests: New file.
45061         * modules/unictype/category-Mc-tests: New file.
45062         * modules/unictype/category-Me-tests: New file.
45063         * modules/unictype/category-Mn-tests: New file.
45064         * modules/unictype/category-N-tests: New file.
45065         * modules/unictype/category-Nd-tests: New file.
45066         * modules/unictype/category-Nl-tests: New file.
45067         * modules/unictype/category-No-tests: New file.
45068         * modules/unictype/category-P-tests: New file.
45069         * modules/unictype/category-Pc-tests: New file.
45070         * modules/unictype/category-Pd-tests: New file.
45071         * modules/unictype/category-Pe-tests: New file.
45072         * modules/unictype/category-Pf-tests: New file.
45073         * modules/unictype/category-Pi-tests: New file.
45074         * modules/unictype/category-Po-tests: New file.
45075         * modules/unictype/category-Ps-tests: New file.
45076         * modules/unictype/category-S-tests: New file.
45077         * modules/unictype/category-Sc-tests: New file.
45078         * modules/unictype/category-Sk-tests: New file.
45079         * modules/unictype/category-Sm-tests: New file.
45080         * modules/unictype/category-So-tests: New file.
45081         * modules/unictype/category-Z-tests: New file.
45082         * modules/unictype/category-Zl-tests: New file.
45083         * modules/unictype/category-Zp-tests: New file.
45084         * modules/unictype/category-Zs-tests: New file.
45085         * modules/unictype/category-and-not-tests: New file.
45086         * modules/unictype/category-and-tests: New file.
45087         * modules/unictype/category-byname-tests: New file.
45088         * modules/unictype/category-name-tests: New file.
45089         * modules/unictype/category-none-tests: New file.
45090         * modules/unictype/category-of-tests: New file.
45091         * modules/unictype/category-or-tests: New file.
45092         * modules/unictype/category-test-withtable-tests: New file.
45093         * modules/unictype/combining-class-tests: New file.
45094         * modules/unictype/ctype-alnum-tests: New file.
45095         * modules/unictype/ctype-alpha-tests: New file.
45096         * modules/unictype/ctype-blank-tests: New file.
45097         * modules/unictype/ctype-cntrl-tests: New file.
45098         * modules/unictype/ctype-digit-tests: New file.
45099         * modules/unictype/ctype-graph-tests: New file.
45100         * modules/unictype/ctype-lower-tests: New file.
45101         * modules/unictype/ctype-print-tests: New file.
45102         * modules/unictype/ctype-punct-tests: New file.
45103         * modules/unictype/ctype-space-tests: New file.
45104         * modules/unictype/ctype-upper-tests: New file.
45105         * modules/unictype/ctype-xdigit-tests: New file.
45106         * modules/unictype/decimal-digit-tests: New file.
45107         * modules/unictype/digit-tests: New file.
45108         * modules/unictype/mirror-tests: New file.
45109         * modules/unictype/numeric-tests: New file.
45110         * modules/unictype/property-alphabetic-tests: New file.
45111         * modules/unictype/property-ascii-hex-digit-tests: New file.
45112         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45113         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45114         * modules/unictype/property-bidi-block-separator-tests: New file.
45115         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45116         * modules/unictype/property-bidi-common-separator-tests: New file.
45117         * modules/unictype/property-bidi-control-tests: New file.
45118         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45119         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45120         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45121         * modules/unictype/property-bidi-european-digit-tests: New file.
45122         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45123         * modules/unictype/property-bidi-left-to-right-tests: New file.
45124         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45125         * modules/unictype/property-bidi-other-neutral-tests: New file.
45126         * modules/unictype/property-bidi-pdf-tests: New file.
45127         * modules/unictype/property-bidi-segment-separator-tests: New file.
45128         * modules/unictype/property-bidi-whitespace-tests: New file.
45129         * modules/unictype/property-byname-tests: New file.
45130         * modules/unictype/property-combining-tests: New file.
45131         * modules/unictype/property-composite-tests: New file.
45132         * modules/unictype/property-currency-symbol-tests: New file.
45133         * modules/unictype/property-dash-tests: New file.
45134         * modules/unictype/property-decimal-digit-tests: New file.
45135         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45136         * modules/unictype/property-deprecated-tests: New file.
45137         * modules/unictype/property-diacritic-tests: New file.
45138         * modules/unictype/property-extender-tests: New file.
45139         * modules/unictype/property-format-control-tests: New file.
45140         * modules/unictype/property-grapheme-base-tests: New file.
45141         * modules/unictype/property-grapheme-extend-tests: New file.
45142         * modules/unictype/property-grapheme-link-tests: New file.
45143         * modules/unictype/property-hex-digit-tests: New file.
45144         * modules/unictype/property-hyphen-tests: New file.
45145         * modules/unictype/property-id-continue-tests: New file.
45146         * modules/unictype/property-id-start-tests: New file.
45147         * modules/unictype/property-ideographic-tests: New file.
45148         * modules/unictype/property-ids-binary-operator-tests: New file.
45149         * modules/unictype/property-ids-trinary-operator-tests: New file.
45150         * modules/unictype/property-ignorable-control-tests: New file.
45151         * modules/unictype/property-iso-control-tests: New file.
45152         * modules/unictype/property-join-control-tests: New file.
45153         * modules/unictype/property-left-of-pair-tests: New file.
45154         * modules/unictype/property-line-separator-tests: New file.
45155         * modules/unictype/property-logical-order-exception-tests: New file.
45156         * modules/unictype/property-lowercase-tests: New file.
45157         * modules/unictype/property-math-tests: New file.
45158         * modules/unictype/property-non-break-tests: New file.
45159         * modules/unictype/property-not-a-character-tests: New file.
45160         * modules/unictype/property-numeric-tests: New file.
45161         * modules/unictype/property-other-alphabetic-tests: New file.
45162         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45163         * modules/unictype/property-other-grapheme-extend-tests: New file.
45164         * modules/unictype/property-other-id-continue-tests: New file.
45165         * modules/unictype/property-other-id-start-tests: New file.
45166         * modules/unictype/property-other-lowercase-tests: New file.
45167         * modules/unictype/property-other-math-tests: New file.
45168         * modules/unictype/property-other-uppercase-tests: New file.
45169         * modules/unictype/property-paired-punctuation-tests: New file.
45170         * modules/unictype/property-paragraph-separator-tests: New file.
45171         * modules/unictype/property-pattern-syntax-tests: New file.
45172         * modules/unictype/property-pattern-white-space-tests: New file.
45173         * modules/unictype/property-private-use-tests: New file.
45174         * modules/unictype/property-punctuation-tests: New file.
45175         * modules/unictype/property-quotation-mark-tests: New file.
45176         * modules/unictype/property-radical-tests: New file.
45177         * modules/unictype/property-sentence-terminal-tests: New file.
45178         * modules/unictype/property-soft-dotted-tests: New file.
45179         * modules/unictype/property-space-tests: New file.
45180         * modules/unictype/property-terminal-punctuation-tests: New file.
45181         * modules/unictype/property-test-tests: New file.
45182         * modules/unictype/property-titlecase-tests: New file.
45183         * modules/unictype/property-unassigned-code-value-tests: New file.
45184         * modules/unictype/property-unified-ideograph-tests: New file.
45185         * modules/unictype/property-uppercase-tests: New file.
45186         * modules/unictype/property-variation-selector-tests: New file.
45187         * modules/unictype/property-white-space-tests: New file.
45188         * modules/unictype/property-xid-continue-tests: New file.
45189         * modules/unictype/property-xid-start-tests: New file.
45190         * modules/unictype/property-zero-width-tests: New file.
45191         * modules/unictype/scripts-tests: New file.
45192         * modules/unictype/syntax-c-ident-tests: New file.
45193         * modules/unictype/syntax-c-whitespace-tests: New file.
45194         * modules/unictype/syntax-java-ident-tests: New file.
45195         * modules/unictype/syntax-java-whitespace-tests: New file.
45196         * tests/unictype/test-bidi_byname.c: New file.
45197         * tests/unictype/test-bidi_name.c: New file.
45198         * tests/unictype/test-bidi_of.c: New file.
45199         * tests/unictype/test-bidi_test.c: New file.
45200         * tests/unictype/test-block_list.c: New file.
45201         * tests/unictype/test-block_of.c: New file.
45202         * tests/unictype/test-block_test.c: New file.
45203         * tests/unictype/test-categ_and.c: New file.
45204         * tests/unictype/test-categ_and_not.c: New file.
45205         * tests/unictype/test-categ_byname.c: New file.
45206         * tests/unictype/test-categ_name.c: New file.
45207         * tests/unictype/test-categ_none.c: New file.
45208         * tests/unictype/test-categ_of.c: New file.
45209         * tests/unictype/test-categ_or.c: New file.
45210         * tests/unictype/test-categ_test_withtable.c: New file.
45211         * tests/unictype/test-combining.c: New file.
45212         * tests/unictype/test-decdigit.c: New file.
45213         * tests/unictype/test-digit.c: New file.
45214         * tests/unictype/test-mirror.c: New file.
45215         * tests/unictype/test-numeric.c: New file.
45216         * tests/unictype/test-pr_byname.c: New file.
45217         * tests/unictype/test-pr_test.c: New file.
45218         * tests/unictype/test-predicate-part1.h: New file.
45219         * tests/unictype/test-predicate-part2.h: New file.
45220         * tests/unictype/test-scripts.c: New file.
45221         * tests/unictype/test-sy_c_ident.c: New file.
45222         * tests/unictype/test-sy_java_ident.c: New file.
45223
45224         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45225         for Unicode 5.0.0.
45226         * tests/unictype/test-categ_Cc.c: Likewise.
45227         * tests/unictype/test-categ_Cf.c: Likewise.
45228         * tests/unictype/test-categ_Cn.c: Likewise.
45229         * tests/unictype/test-categ_Co.c: Likewise.
45230         * tests/unictype/test-categ_Cs.c: Likewise.
45231         * tests/unictype/test-categ_L.c: Likewise.
45232         * tests/unictype/test-categ_Ll.c: Likewise.
45233         * tests/unictype/test-categ_Lm.c: Likewise.
45234         * tests/unictype/test-categ_Lo.c: Likewise.
45235         * tests/unictype/test-categ_Lt.c: Likewise.
45236         * tests/unictype/test-categ_Lu.c: Likewise.
45237         * tests/unictype/test-categ_M.c: Likewise.
45238         * tests/unictype/test-categ_Mc.c: Likewise.
45239         * tests/unictype/test-categ_Me.c: Likewise.
45240         * tests/unictype/test-categ_Mn.c: Likewise.
45241         * tests/unictype/test-categ_N.c: Likewise.
45242         * tests/unictype/test-categ_Nd.c: Likewise.
45243         * tests/unictype/test-categ_Nl.c: Likewise.
45244         * tests/unictype/test-categ_No.c: Likewise.
45245         * tests/unictype/test-categ_P.c: Likewise.
45246         * tests/unictype/test-categ_Pc.c: Likewise.
45247         * tests/unictype/test-categ_Pd.c: Likewise.
45248         * tests/unictype/test-categ_Pe.c: Likewise.
45249         * tests/unictype/test-categ_Pf.c: Likewise.
45250         * tests/unictype/test-categ_Pi.c: Likewise.
45251         * tests/unictype/test-categ_Po.c: Likewise.
45252         * tests/unictype/test-categ_Ps.c: Likewise.
45253         * tests/unictype/test-categ_S.c: Likewise.
45254         * tests/unictype/test-categ_Sc.c: Likewise.
45255         * tests/unictype/test-categ_Sk.c: Likewise.
45256         * tests/unictype/test-categ_Sm.c: Likewise.
45257         * tests/unictype/test-categ_So.c: Likewise.
45258         * tests/unictype/test-categ_Z.c: Likewise.
45259         * tests/unictype/test-categ_Zl.c: Likewise.
45260         * tests/unictype/test-categ_Zp.c: Likewise.
45261         * tests/unictype/test-categ_Zs.c: Likewise.
45262         * tests/unictype/test-ctype_alnum.c: Likewise.
45263         * tests/unictype/test-ctype_alpha.c: Likewise.
45264         * tests/unictype/test-ctype_blank.c: Likewise.
45265         * tests/unictype/test-ctype_cntrl.c: Likewise.
45266         * tests/unictype/test-ctype_digit.c: Likewise.
45267         * tests/unictype/test-ctype_graph.c: Likewise.
45268         * tests/unictype/test-ctype_lower.c: Likewise.
45269         * tests/unictype/test-ctype_print.c: Likewise.
45270         * tests/unictype/test-ctype_punct.c: Likewise.
45271         * tests/unictype/test-ctype_space.c: Likewise.
45272         * tests/unictype/test-ctype_upper.c: Likewise.
45273         * tests/unictype/test-ctype_xdigit.c: Likewise.
45274         * tests/unictype/test-decdigit.h: Likewise.
45275         * tests/unictype/test-digit.h: Likewise.
45276         * tests/unictype/test-numeric.h: Likewise.
45277         * tests/unictype/test-pr_alphabetic.c: Likewise.
45278         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45279         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45280         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45281         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45282         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45283         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45284         * tests/unictype/test-pr_bidi_control.c: Likewise.
45285         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45286         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45287         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45288         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45289         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45290         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45291         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45292         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45293         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45294         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45295         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45296         * tests/unictype/test-pr_combining.c: Likewise.
45297         * tests/unictype/test-pr_composite.c: Likewise.
45298         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45299         * tests/unictype/test-pr_dash.c: Likewise.
45300         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45301         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45302         * tests/unictype/test-pr_deprecated.c: Likewise.
45303         * tests/unictype/test-pr_diacritic.c: Likewise.
45304         * tests/unictype/test-pr_extender.c: Likewise.
45305         * tests/unictype/test-pr_format_control.c: Likewise.
45306         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45307         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45308         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45309         * tests/unictype/test-pr_hex_digit.c: Likewise.
45310         * tests/unictype/test-pr_hyphen.c: Likewise.
45311         * tests/unictype/test-pr_id_continue.c: Likewise.
45312         * tests/unictype/test-pr_id_start.c: Likewise.
45313         * tests/unictype/test-pr_ideographic.c: Likewise.
45314         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45315         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45316         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45317         * tests/unictype/test-pr_iso_control.c: Likewise.
45318         * tests/unictype/test-pr_join_control.c: Likewise.
45319         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45320         * tests/unictype/test-pr_line_separator.c: Likewise.
45321         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45322         * tests/unictype/test-pr_lowercase.c: Likewise.
45323         * tests/unictype/test-pr_math.c: Likewise.
45324         * tests/unictype/test-pr_non_break.c: Likewise.
45325         * tests/unictype/test-pr_not_a_character.c: Likewise.
45326         * tests/unictype/test-pr_numeric.c: Likewise.
45327         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45328         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45329         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45330         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45331         * tests/unictype/test-pr_other_id_start.c: Likewise.
45332         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45333         * tests/unictype/test-pr_other_math.c: Likewise.
45334         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45335         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45336         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45337         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45338         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45339         * tests/unictype/test-pr_private_use.c: Likewise.
45340         * tests/unictype/test-pr_punctuation.c: Likewise.
45341         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45342         * tests/unictype/test-pr_radical.c: Likewise.
45343         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45344         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45345         * tests/unictype/test-pr_space.c: Likewise.
45346         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45347         * tests/unictype/test-pr_titlecase.c: Likewise.
45348         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45349         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45350         * tests/unictype/test-pr_uppercase.c: Likewise.
45351         * tests/unictype/test-pr_variation_selector.c: Likewise.
45352         * tests/unictype/test-pr_white_space.c: Likewise.
45353         * tests/unictype/test-pr_xid_continue.c: Likewise.
45354         * tests/unictype/test-pr_xid_start.c: Likewise.
45355         * tests/unictype/test-pr_zero_width.c: Likewise.
45356         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45357         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45358
45359 2007-11-12  Bruno Haible  <bruno@clisp.org>
45360
45361         Unicode character classification functions.
45362         * lib/unictype.h: New file.
45363         * modules/unictype/base: New file.
45364         * modules/unictype/category-L: New file.
45365         * modules/unictype/category-Lu: New file.
45366         * modules/unictype/category-Ll: New file.
45367         * modules/unictype/category-Lt: New file.
45368         * modules/unictype/category-Lm: New file.
45369         * modules/unictype/category-Lo: New file.
45370         * modules/unictype/category-M: New file.
45371         * modules/unictype/category-Mn: New file.
45372         * modules/unictype/category-Mc: New file.
45373         * modules/unictype/category-Me: New file.
45374         * modules/unictype/category-N: New file.
45375         * modules/unictype/category-Nd: New file.
45376         * modules/unictype/category-Nl: New file.
45377         * modules/unictype/category-No: New file.
45378         * modules/unictype/category-P: New file.
45379         * modules/unictype/category-Pc: New file.
45380         * modules/unictype/category-Pd: New file.
45381         * modules/unictype/category-Ps: New file.
45382         * modules/unictype/category-Pe: New file.
45383         * modules/unictype/category-Pi: New file.
45384         * modules/unictype/category-Pf: New file.
45385         * modules/unictype/category-Po: New file.
45386         * modules/unictype/category-S: New file.
45387         * modules/unictype/category-Sm: New file.
45388         * modules/unictype/category-Sc: New file.
45389         * modules/unictype/category-Sk: New file.
45390         * modules/unictype/category-So: New file.
45391         * modules/unictype/category-Z: New file.
45392         * modules/unictype/category-Zs: New file.
45393         * modules/unictype/category-Zl: New file.
45394         * modules/unictype/category-Zp: New file.
45395         * modules/unictype/category-C: New file.
45396         * modules/unictype/category-Cc: New file.
45397         * modules/unictype/category-Cf: New file.
45398         * modules/unictype/category-Cs: New file.
45399         * modules/unictype/category-Co: New file.
45400         * modules/unictype/category-Cn: New file.
45401         * modules/unictype/category-or: New file.
45402         * modules/unictype/category-of: New file.
45403         * modules/unictype/category-test: New file.
45404         * modules/unictype/category-test-withtable: New file.
45405         * modules/unictype/category-byname: New file.
45406         * modules/unictype/category-none: New file.
45407         * modules/unictype/category-and: New file.
45408         * modules/unictype/category-and-not: New file.
45409         * modules/unictype/category-name: New file.
45410         * modules/unictype/combining-class: New file.
45411         * modules/unictype/category-all: New file.
45412         * modules/unictype/bidicategory-all: New file.
45413         * modules/unictype/bidicategory-byname: New file.
45414         * modules/unictype/bidicategory-name: New file.
45415         * modules/unictype/bidicategory-of: New file.
45416         * modules/unictype/bidicategory-test: New file.
45417         * modules/unictype/decimal-digit: New file.
45418         * modules/unictype/digit: New file.
45419         * modules/unictype/numeric: New file.
45420         * modules/unictype/mirror: New file.
45421         * modules/unictype/property-white-space: New file.
45422         * modules/unictype/property-alphabetic: New file.
45423         * modules/unictype/property-other-alphabetic: New file.
45424         * modules/unictype/property-not-a-character: New file.
45425         * modules/unictype/property-default-ignorable-code-point: New file.
45426         * modules/unictype/property-other-default-ignorable-code-point: New
45427         file.
45428         * modules/unictype/property-deprecated: New file.
45429         * modules/unictype/property-logical-order-exception: New file.
45430         * modules/unictype/property-variation-selector: New file.
45431         * modules/unictype/property-private-use: New file.
45432         * modules/unictype/property-unassigned-code-value: New file.
45433         * modules/unictype/property-uppercase: New file.
45434         * modules/unictype/property-other-uppercase: New file.
45435         * modules/unictype/property-lowercase: New file.
45436         * modules/unictype/property-other-lowercase: New file.
45437         * modules/unictype/property-titlecase: New file.
45438         * modules/unictype/property-soft-dotted: New file.
45439         * modules/unictype/property-id-start: New file.
45440         * modules/unictype/property-other-id-start: New file.
45441         * modules/unictype/property-id-continue: New file.
45442         * modules/unictype/property-other-id-continue: New file.
45443         * modules/unictype/property-xid-start: New file.
45444         * modules/unictype/property-xid-continue: New file.
45445         * modules/unictype/property-pattern-white-space: New file.
45446         * modules/unictype/property-pattern-syntax: New file.
45447         * modules/unictype/property-join-control: New file.
45448         * modules/unictype/property-grapheme-base: New file.
45449         * modules/unictype/property-grapheme-extend: New file.
45450         * modules/unictype/property-other-grapheme-extend: New file.
45451         * modules/unictype/property-grapheme-link: New file.
45452         * modules/unictype/property-bidi-control: New file.
45453         * modules/unictype/property-bidi-left-to-right: New file.
45454         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45455         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45456         * modules/unictype/property-bidi-european-digit: New file.
45457         * modules/unictype/property-bidi-eur-num-separator: New file.
45458         * modules/unictype/property-bidi-eur-num-terminator: New file.
45459         * modules/unictype/property-bidi-arabic-digit: New file.
45460         * modules/unictype/property-bidi-common-separator: New file.
45461         * modules/unictype/property-bidi-block-separator: New file.
45462         * modules/unictype/property-bidi-segment-separator: New file.
45463         * modules/unictype/property-bidi-whitespace: New file.
45464         * modules/unictype/property-bidi-non-spacing-mark: New file.
45465         * modules/unictype/property-bidi-boundary-neutral: New file.
45466         * modules/unictype/property-bidi-pdf: New file.
45467         * modules/unictype/property-bidi-embedding-or-override: New file.
45468         * modules/unictype/property-bidi-other-neutral: New file.
45469         * modules/unictype/property-hex-digit: New file.
45470         * modules/unictype/property-ascii-hex-digit: New file.
45471         * modules/unictype/property-ideographic: New file.
45472         * modules/unictype/property-unified-ideograph: New file.
45473         * modules/unictype/property-radical: New file.
45474         * modules/unictype/property-ids-binary-operator: New file.
45475         * modules/unictype/property-ids-trinary-operator: New file.
45476         * modules/unictype/property-zero-width: New file.
45477         * modules/unictype/property-space: New file.
45478         * modules/unictype/property-non-break: New file.
45479         * modules/unictype/property-iso-control: New file.
45480         * modules/unictype/property-format-control: New file.
45481         * modules/unictype/property-dash: New file.
45482         * modules/unictype/property-hyphen: New file.
45483         * modules/unictype/property-punctuation: New file.
45484         * modules/unictype/property-line-separator: New file.
45485         * modules/unictype/property-paragraph-separator: New file.
45486         * modules/unictype/property-quotation-mark: New file.
45487         * modules/unictype/property-sentence-terminal: New file.
45488         * modules/unictype/property-terminal-punctuation: New file.
45489         * modules/unictype/property-currency-symbol: New file.
45490         * modules/unictype/property-math: New file.
45491         * modules/unictype/property-other-math: New file.
45492         * modules/unictype/property-paired-punctuation: New file.
45493         * modules/unictype/property-left-of-pair: New file.
45494         * modules/unictype/property-combining: New file.
45495         * modules/unictype/property-composite: New file.
45496         * modules/unictype/property-decimal-digit: New file.
45497         * modules/unictype/property-numeric: New file.
45498         * modules/unictype/property-diacritic: New file.
45499         * modules/unictype/property-extender: New file.
45500         * modules/unictype/property-ignorable-control: New file.
45501         * modules/unictype/property-test: New file.
45502         * modules/unictype/property-byname: New file.
45503         * modules/unictype/property-all: New file.
45504         * modules/unictype/scripts: New file.
45505         * modules/unictype/scripts-all: New file.
45506         * modules/unictype/block-of: New file.
45507         * modules/unictype/block-test: New file.
45508         * modules/unictype/block-list: New file.
45509         * modules/unictype/block-all: New file.
45510         * modules/unictype/syntax-c-whitespace: New file.
45511         * modules/unictype/syntax-java-whitespace: New file.
45512         * modules/unictype/syntax-c-ident: New file.
45513         * modules/unictype/syntax-java-ident: New file.
45514         * modules/unictype/ctype-alnum: New file.
45515         * modules/unictype/ctype-alpha: New file.
45516         * modules/unictype/ctype-cntrl: New file.
45517         * modules/unictype/ctype-digit: New file.
45518         * modules/unictype/ctype-graph: New file.
45519         * modules/unictype/ctype-lower: New file.
45520         * modules/unictype/ctype-print: New file.
45521         * modules/unictype/ctype-punct: New file.
45522         * modules/unictype/ctype-space: New file.
45523         * modules/unictype/ctype-upper: New file.
45524         * modules/unictype/ctype-xdigit: New file.
45525         * modules/unictype/ctype-blank: New file.
45526         * lib/unictype/bidi_byname.c: New file.
45527         * lib/unictype/bidi_name.c: New file.
45528         * lib/unictype/bidi_of.c: New file.
45529         * lib/unictype/bidi_test.c: New file.
45530         * lib/unictype/bitmap.h: New file.
45531         * lib/unictype/block_test.c: New file.
45532         * lib/unictype/blocks.c: New file.
45533         * lib/unictype/categ_C.c: New file.
45534         * lib/unictype/categ_Cc.c: New file.
45535         * lib/unictype/categ_Cf.c: New file.
45536         * lib/unictype/categ_Cn.c: New file.
45537         * lib/unictype/categ_Co.c: New file.
45538         * lib/unictype/categ_Cs.c: New file.
45539         * lib/unictype/categ_L.c: New file.
45540         * lib/unictype/categ_Ll.c: New file.
45541         * lib/unictype/categ_Lm.c: New file.
45542         * lib/unictype/categ_Lo.c: New file.
45543         * lib/unictype/categ_Lt.c: New file.
45544         * lib/unictype/categ_Lu.c: New file.
45545         * lib/unictype/categ_M.c: New file.
45546         * lib/unictype/categ_Mc.c: New file.
45547         * lib/unictype/categ_Me.c: New file.
45548         * lib/unictype/categ_Mn.c: New file.
45549         * lib/unictype/categ_N.c: New file.
45550         * lib/unictype/categ_Nd.c: New file.
45551         * lib/unictype/categ_Nl.c: New file.
45552         * lib/unictype/categ_No.c: New file.
45553         * lib/unictype/categ_P.c: New file.
45554         * lib/unictype/categ_Pc.c: New file.
45555         * lib/unictype/categ_Pd.c: New file.
45556         * lib/unictype/categ_Pe.c: New file.
45557         * lib/unictype/categ_Pf.c: New file.
45558         * lib/unictype/categ_Pi.c: New file.
45559         * lib/unictype/categ_Po.c: New file.
45560         * lib/unictype/categ_Ps.c: New file.
45561         * lib/unictype/categ_S.c: New file.
45562         * lib/unictype/categ_Sc.c: New file.
45563         * lib/unictype/categ_Sk.c: New file.
45564         * lib/unictype/categ_Sm.c: New file.
45565         * lib/unictype/categ_So.c: New file.
45566         * lib/unictype/categ_Z.c: New file.
45567         * lib/unictype/categ_Zl.c: New file.
45568         * lib/unictype/categ_Zp.c: New file.
45569         * lib/unictype/categ_Zs.c: New file.
45570         * lib/unictype/categ_and.c: New file.
45571         * lib/unictype/categ_and_not.c: New file.
45572         * lib/unictype/categ_byname.c: New file.
45573         * lib/unictype/categ_name.c: New file.
45574         * lib/unictype/categ_none.c: New file.
45575         * lib/unictype/categ_of.c: New file.
45576         * lib/unictype/categ_or.c: New file.
45577         * lib/unictype/categ_test.c: New file.
45578         * lib/unictype/combining.c: New file.
45579         * lib/unictype/ctype_alnum.c: New file.
45580         * lib/unictype/ctype_alpha.c: New file.
45581         * lib/unictype/ctype_blank.c: New file.
45582         * lib/unictype/ctype_cntrl.c: New file.
45583         * lib/unictype/ctype_digit.c: New file.
45584         * lib/unictype/ctype_graph.c: New file.
45585         * lib/unictype/ctype_lower.c: New file.
45586         * lib/unictype/ctype_print.c: New file.
45587         * lib/unictype/ctype_punct.c: New file.
45588         * lib/unictype/ctype_space.c: New file.
45589         * lib/unictype/ctype_upper.c: New file.
45590         * lib/unictype/ctype_xdigit.c: New file.
45591         * lib/unictype/decdigit.c: New file.
45592         * lib/unictype/digit.c: New file.
45593         * lib/unictype/identsyntaxmap.h: New file.
45594         * lib/unictype/mirror.c: New file.
45595         * lib/unictype/numeric.c: New file.
45596         * lib/unictype/pr_alphabetic.c: New file.
45597         * lib/unictype/pr_ascii_hex_digit.c: New file.
45598         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45599         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45600         * lib/unictype/pr_bidi_block_separator.c: New file.
45601         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45602         * lib/unictype/pr_bidi_common_separator.c: New file.
45603         * lib/unictype/pr_bidi_control.c: New file.
45604         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45605         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45606         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45607         * lib/unictype/pr_bidi_european_digit.c: New file.
45608         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45609         * lib/unictype/pr_bidi_left_to_right.c: New file.
45610         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45611         * lib/unictype/pr_bidi_other_neutral.c: New file.
45612         * lib/unictype/pr_bidi_pdf.c: New file.
45613         * lib/unictype/pr_bidi_segment_separator.c: New file.
45614         * lib/unictype/pr_bidi_whitespace.c: New file.
45615         * lib/unictype/pr_byname.c: New file.
45616         * lib/unictype/pr_byname.gperf: New file.
45617         * lib/unictype/pr_combining.c: New file.
45618         * lib/unictype/pr_composite.c: New file.
45619         * lib/unictype/pr_currency_symbol.c: New file.
45620         * lib/unictype/pr_dash.c: New file.
45621         * lib/unictype/pr_decimal_digit.c: New file.
45622         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45623         * lib/unictype/pr_deprecated.c: New file.
45624         * lib/unictype/pr_diacritic.c: New file.
45625         * lib/unictype/pr_extender.c: New file.
45626         * lib/unictype/pr_format_control.c: New file.
45627         * lib/unictype/pr_grapheme_base.c: New file.
45628         * lib/unictype/pr_grapheme_extend.c: New file.
45629         * lib/unictype/pr_grapheme_link.c: New file.
45630         * lib/unictype/pr_hex_digit.c: New file.
45631         * lib/unictype/pr_hyphen.c: New file.
45632         * lib/unictype/pr_id_continue.c: New file.
45633         * lib/unictype/pr_id_start.c: New file.
45634         * lib/unictype/pr_ideographic.c: New file.
45635         * lib/unictype/pr_ids_binary_operator.c: New file.
45636         * lib/unictype/pr_ids_trinary_operator.c: New file.
45637         * lib/unictype/pr_ignorable_control.c: New file.
45638         * lib/unictype/pr_iso_control.c: New file.
45639         * lib/unictype/pr_join_control.c: New file.
45640         * lib/unictype/pr_left_of_pair.c: New file.
45641         * lib/unictype/pr_line_separator.c: New file.
45642         * lib/unictype/pr_logical_order_exception.c: New file.
45643         * lib/unictype/pr_lowercase.c: New file.
45644         * lib/unictype/pr_math.c: New file.
45645         * lib/unictype/pr_non_break.c: New file.
45646         * lib/unictype/pr_not_a_character.c: New file.
45647         * lib/unictype/pr_numeric.c: New file.
45648         * lib/unictype/pr_other_alphabetic.c: New file.
45649         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45650         * lib/unictype/pr_other_grapheme_extend.c: New file.
45651         * lib/unictype/pr_other_id_continue.c: New file.
45652         * lib/unictype/pr_other_id_start.c: New file.
45653         * lib/unictype/pr_other_lowercase.c: New file.
45654         * lib/unictype/pr_other_math.c: New file.
45655         * lib/unictype/pr_other_uppercase.c: New file.
45656         * lib/unictype/pr_paired_punctuation.c: New file.
45657         * lib/unictype/pr_paragraph_separator.c: New file.
45658         * lib/unictype/pr_pattern_syntax.c: New file.
45659         * lib/unictype/pr_pattern_white_space.c: New file.
45660         * lib/unictype/pr_private_use.c: New file.
45661         * lib/unictype/pr_punctuation.c: New file.
45662         * lib/unictype/pr_quotation_mark.c: New file.
45663         * lib/unictype/pr_radical.c: New file.
45664         * lib/unictype/pr_sentence_terminal.c: New file.
45665         * lib/unictype/pr_soft_dotted.c: New file.
45666         * lib/unictype/pr_space.c: New file.
45667         * lib/unictype/pr_terminal_punctuation.c: New file.
45668         * lib/unictype/pr_test.c: New file.
45669         * lib/unictype/pr_titlecase.c: New file.
45670         * lib/unictype/pr_unassigned_code_value.c: New file.
45671         * lib/unictype/pr_unified_ideograph.c: New file.
45672         * lib/unictype/pr_uppercase.c: New file.
45673         * lib/unictype/pr_variation_selector.c: New file.
45674         * lib/unictype/pr_white_space.c: New file.
45675         * lib/unictype/pr_xid_continue.c: New file.
45676         * lib/unictype/pr_xid_start.c: New file.
45677         * lib/unictype/pr_zero_width.c: New file.
45678         * lib/unictype/scripts.c: New file.
45679         * lib/unictype/sy_c_ident.c: New file.
45680         * lib/unictype/sy_c_whitespace.c: New file.
45681         * lib/unictype/sy_java_ident.c: New file.
45682         * lib/unictype/sy_java_whitespace.c: New file.
45683
45684         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45685         Unicode 5.0.0.
45686         * lib/unictype/blocks.h: Likewise.
45687         * lib/unictype/categ_C.h: Likewise.
45688         * lib/unictype/categ_Cc.h: Likewise.
45689         * lib/unictype/categ_Cf.h: Likewise.
45690         * lib/unictype/categ_Cn.h: Likewise.
45691         * lib/unictype/categ_Co.h: Likewise.
45692         * lib/unictype/categ_Cs.h: Likewise.
45693         * lib/unictype/categ_L.h: Likewise.
45694         * lib/unictype/categ_Ll.h: Likewise.
45695         * lib/unictype/categ_Lm.h: Likewise.
45696         * lib/unictype/categ_Lo.h: Likewise.
45697         * lib/unictype/categ_Lt.h: Likewise.
45698         * lib/unictype/categ_Lu.h: Likewise.
45699         * lib/unictype/categ_M.h: Likewise.
45700         * lib/unictype/categ_Mc.h: Likewise.
45701         * lib/unictype/categ_Me.h: Likewise.
45702         * lib/unictype/categ_Mn.h: Likewise.
45703         * lib/unictype/categ_N.h: Likewise.
45704         * lib/unictype/categ_Nd.h: Likewise.
45705         * lib/unictype/categ_Nl.h: Likewise.
45706         * lib/unictype/categ_No.h: Likewise.
45707         * lib/unictype/categ_P.h: Likewise.
45708         * lib/unictype/categ_Pc.h: Likewise.
45709         * lib/unictype/categ_Pd.h: Likewise.
45710         * lib/unictype/categ_Pe.h: Likewise.
45711         * lib/unictype/categ_Pf.h: Likewise.
45712         * lib/unictype/categ_Pi.h: Likewise.
45713         * lib/unictype/categ_Po.h: Likewise.
45714         * lib/unictype/categ_Ps.h: Likewise.
45715         * lib/unictype/categ_S.h: Likewise.
45716         * lib/unictype/categ_Sc.h: Likewise.
45717         * lib/unictype/categ_Sk.h: Likewise.
45718         * lib/unictype/categ_Sm.h: Likewise.
45719         * lib/unictype/categ_So.h: Likewise.
45720         * lib/unictype/categ_Z.h: Likewise.
45721         * lib/unictype/categ_Zl.h: Likewise.
45722         * lib/unictype/categ_Zp.h: Likewise.
45723         * lib/unictype/categ_Zs.h: Likewise.
45724         * lib/unictype/categ_of.h: Likewise.
45725         * lib/unictype/combining.h: Likewise.
45726         * lib/unictype/ctype_alnum.h: Likewise.
45727         * lib/unictype/ctype_alpha.h: Likewise.
45728         * lib/unictype/ctype_blank.h: Likewise.
45729         * lib/unictype/ctype_cntrl.h: Likewise.
45730         * lib/unictype/ctype_digit.h: Likewise.
45731         * lib/unictype/ctype_graph.h: Likewise.
45732         * lib/unictype/ctype_lower.h: Likewise.
45733         * lib/unictype/ctype_print.h: Likewise.
45734         * lib/unictype/ctype_punct.h: Likewise.
45735         * lib/unictype/ctype_space.h: Likewise.
45736         * lib/unictype/ctype_upper.h: Likewise.
45737         * lib/unictype/ctype_xdigit.h: Likewise.
45738         * lib/unictype/decdigit.h: Likewise.
45739         * lib/unictype/digit.h: Likewise.
45740         * lib/unictype/mirror.h: Likewise.
45741         * lib/unictype/numeric.h: Likewise.
45742         * lib/unictype/pr_alphabetic.h: Likewise.
45743         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45744         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45745         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45746         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45747         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45748         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45749         * lib/unictype/pr_bidi_control.h: Likewise.
45750         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45751         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45752         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45753         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45754         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45755         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45756         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45757         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45758         * lib/unictype/pr_bidi_pdf.h: Likewise.
45759         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45760         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45761         * lib/unictype/pr_combining.h: Likewise.
45762         * lib/unictype/pr_composite.h: Likewise.
45763         * lib/unictype/pr_currency_symbol.h: Likewise.
45764         * lib/unictype/pr_dash.h: Likewise.
45765         * lib/unictype/pr_decimal_digit.h: Likewise.
45766         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45767         * lib/unictype/pr_deprecated.h: Likewise.
45768         * lib/unictype/pr_diacritic.h: Likewise.
45769         * lib/unictype/pr_extender.h: Likewise.
45770         * lib/unictype/pr_format_control.h: Likewise.
45771         * lib/unictype/pr_grapheme_base.h: Likewise.
45772         * lib/unictype/pr_grapheme_extend.h: Likewise.
45773         * lib/unictype/pr_grapheme_link.h: Likewise.
45774         * lib/unictype/pr_hex_digit.h: Likewise.
45775         * lib/unictype/pr_hyphen.h: Likewise.
45776         * lib/unictype/pr_id_continue.h: Likewise.
45777         * lib/unictype/pr_id_start.h: Likewise.
45778         * lib/unictype/pr_ideographic.h: Likewise.
45779         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45780         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45781         * lib/unictype/pr_ignorable_control.h: Likewise.
45782         * lib/unictype/pr_iso_control.h: Likewise.
45783         * lib/unictype/pr_join_control.h: Likewise.
45784         * lib/unictype/pr_left_of_pair.h: Likewise.
45785         * lib/unictype/pr_line_separator.h: Likewise.
45786         * lib/unictype/pr_logical_order_exception.h: Likewise.
45787         * lib/unictype/pr_lowercase.h: Likewise.
45788         * lib/unictype/pr_math.h: Likewise.
45789         * lib/unictype/pr_non_break.h: Likewise.
45790         * lib/unictype/pr_not_a_character.h: Likewise.
45791         * lib/unictype/pr_numeric.h: Likewise.
45792         * lib/unictype/pr_other_alphabetic.h: Likewise.
45793         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45794         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45795         * lib/unictype/pr_other_id_continue.h: Likewise.
45796         * lib/unictype/pr_other_id_start.h: Likewise.
45797         * lib/unictype/pr_other_lowercase.h: Likewise.
45798         * lib/unictype/pr_other_math.h: Likewise.
45799         * lib/unictype/pr_other_uppercase.h: Likewise.
45800         * lib/unictype/pr_paired_punctuation.h: Likewise.
45801         * lib/unictype/pr_paragraph_separator.h: Likewise.
45802         * lib/unictype/pr_pattern_syntax.h: Likewise.
45803         * lib/unictype/pr_pattern_white_space.h: Likewise.
45804         * lib/unictype/pr_private_use.h: Likewise.
45805         * lib/unictype/pr_punctuation.h: Likewise.
45806         * lib/unictype/pr_quotation_mark.h: Likewise.
45807         * lib/unictype/pr_radical.h: Likewise.
45808         * lib/unictype/pr_sentence_terminal.h: Likewise.
45809         * lib/unictype/pr_soft_dotted.h: Likewise.
45810         * lib/unictype/pr_space.h: Likewise.
45811         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45812         * lib/unictype/pr_titlecase.h: Likewise.
45813         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45814         * lib/unictype/pr_unified_ideograph.h: Likewise.
45815         * lib/unictype/pr_uppercase.h: Likewise.
45816         * lib/unictype/pr_variation_selector.h: Likewise.
45817         * lib/unictype/pr_white_space.h: Likewise.
45818         * lib/unictype/pr_xid_continue.h: Likewise.
45819         * lib/unictype/pr_xid_start.h: Likewise.
45820         * lib/unictype/pr_zero_width.h: Likewise.
45821         * lib/unictype/scripts.h: Likewise.
45822         * lib/unictype/scripts_byname.gperf: Likewise.
45823         * lib/unictype/sy_c_ident.h: Likewise.
45824         * lib/unictype/sy_c_whitespace.h: Likewise.
45825         * lib/unictype/sy_java_ident.h: Likewise.
45826         * lib/unictype/sy_java_whitespace.h: Likewise.
45827
45828         * lib/unictype/Makefile: New file.
45829         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45830         glibc.
45831         * lib/unictype/3level.h: New file, copied from glibc.
45832         * lib/unictype/3levelbit.h: New file.
45833
45834 2007-11-11  Bruno Haible  <bruno@clisp.org>
45835
45836         * modules/gperf: New file.
45837         * modules/iconv_open (Depends-on): Add it.
45838         (Makefile.am): Remove the GPERF definition.
45839
45840 2007-11-11  Bruno Haible  <bruno@clisp.org>
45841
45842         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45843         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45844
45845 2007-11-11  Bruno Haible  <bruno@clisp.org>
45846
45847         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45848         (usage): Remove function.
45849
45850 2007-11-11  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45853         gl_FUNC_CEILF_LIBS.
45854         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45855         gl_FUNC_CEIL_LIBS.
45856         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45857         gl_FUNC_CEILL_LIBS.
45858         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45859         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45860         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45861
45862 2007-11-11  Bruno Haible  <bruno@clisp.org>
45863
45864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45865         roundf were declared but do not exist on functions.
45866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45867         roundl were declared but do not exist on functions.
45868         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45869         HAVE_FLOORL_AND_CEILL, respectively.
45870         Needed for Sun C on Solaris 10.
45871
45872 2007-11-11  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45875         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45876         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45877         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45879         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45880         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45881         HAVE_DECL_ROUNDF.
45882         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45883         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45885         of HAVE_DECL_ROUND*.
45886         * modules/math (Makefile.am): Update.
45887
45888 2007-11-10  Bruno Haible  <bruno@clisp.org>
45889
45890         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45891         ptrdiff_t as m4/intl.m4.
45892
45893 2007-11-10  Jim Meyering  <meyering@redhat.com>
45894
45895         Avoid link failure for the argmatch test.
45896         * tests/test-argmatch.c (usage): Define function to avoid a link
45897         failure: argmatch_die requires a usage function.
45898
45899 2007-11-09  Bruno Haible  <bruno@clisp.org>
45900
45901         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45902         * doc/functions/vsnprintf.texi: Likewise.
45903         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45904         with a size argument < 2.
45905
45906 2007-11-09  Bruno Haible  <bruno@clisp.org>
45907
45908         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45909         buffer. Fixes an inefficiency introduced on 2007-11-03.
45910
45911 2007-11-09  Bruno Haible  <bruno@clisp.org>
45912
45913         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45914         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45915
45916 2007-11-08  Jim Meyering  <meyering@redhat.com>
45917
45918         Change cache variable name prefix "jm_" to "gl_" everywhere.
45919         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45920         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45921         * m4/uptime.m4: s/gl_/jm_/
45922
45923 2007-11-07  Bruno Haible  <bruno@clisp.org>
45924
45925         Update to GNU gettext 0.17.
45926         * m4/intl.m4: Update to GNU gettext 0.17.
45927         * m4/po.m4: Likewise.
45928         * modules/gettext (Files): Remove m4/ulonglong.m4.
45929         (configure.ac): Require gettext infrastructure from version 0.17.
45930
45931 2007-11-06  Bruno Haible  <bruno@clisp.org>
45932
45933         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45934         symbolic values are not defined in a public header.
45935         * lib/freadable.c (freadable) [QNX]: Likewise.
45936         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45937         * lib/freading.c (freading) [QNX]: Likewise.
45938         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45939         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45940         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45941         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45942         Reported by Alain Magloire.
45943
45944         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45945
45946 2007-11-05  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45949         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45950         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45951         Reported by Eric Blake.
45952
45953 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45954             Bruno Haible  <bruno@clisp.org>
45955
45956         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45957         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45958         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45959         (malloc): Undefine also before including <stdlib.h>.
45960         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45961         Needed on OSF/1 4.0.
45962
45963 2007-11-05  Jim Meyering  <meyering@redhat.com>
45964
45965         git-version-gen: sync from coreutils.
45966         * build-aux/git-version-gen: Add comments.
45967         Change the first '-' to '.' in the snapshot version string,
45968         e.g., 6.9-377-08144 -> 6.9.377-08144
45969         Remove first parameter.
45970         Don't declare a version "-dirty" merely because a time
45971         stamp has changed.
45972
45973 2007-11-04  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/lock.h: Protect all macro definitions containing an 'if'
45976         statement through a "do { ... } while (0)".
45977         * lib/tls.h: Likewise.
45978
45979 2007-11-04  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45982
45983 2007-11-04  Bruno Haible  <bruno@clisp.org>
45984
45985         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45986         * modules/fprintf-posix (Depends-on): Add nocrash.
45987         * modules/snprintf-posix (Depends-on): Likewise.
45988         * modules/sprintf-posix (Depends-on): Likewise.
45989         * modules/vasnprintf-posix (Depends-on): Likewise.
45990         * modules/vasprintf-posix (Depends-on): Likewise.
45991         * modules/vfprintf-posix (Depends-on): Likewise.
45992         * modules/vsnprintf-posix (Depends-on): Likewise.
45993         * modules/vsprintf-posix (Depends-on): Likewise.
45994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46001
46002 2007-11-04  Bruno Haible  <bruno@clisp.org>
46003
46004         * modules/nocrash: New file.
46005         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46006         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46007
46008 2007-11-04  Bruno Haible  <bruno@clisp.org>
46009
46010         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46011         precision handling.
46012         * tests/test-vasprintf-posix.c (test_function): Likewise.
46013         * tests/test-snprintf-posix.h (test_function): Likewise.
46014         * tests/test-sprintf-posix.h (test_function): Likewise.
46015
46016         Fix *printf behaviour for large precisions on mingw and BeOS.
46017         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46018         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46020         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46022         gl_PRINTF_PRECISION and test its result. Invoke
46023         gl_PREREQ_VASNPRINTF_PRECISION.
46024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46031         * doc/functions/fprintf.texi: Update.
46032         * doc/functions/printf.texi: Update.
46033         * doc/functions/snprintf.texi: Update.
46034         * doc/functions/sprintf.texi: Update.
46035         * doc/functions/vfprintf.texi: Update.
46036         * doc/functions/vprintf.texi: Update.
46037         * doc/functions/vsnprintf.texi: Update.
46038         * doc/functions/vsprintf.texi: Update.
46039
46040 2007-11-04  Bruno Haible  <bruno@clisp.org>
46041
46042         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46043
46044 2007-11-04  Bruno Haible  <bruno@clisp.org>
46045
46046         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
46047         Reported by Sylvain Beucler <beuc@gnu.org>.
46048
46049 2007-11-03  Bruno Haible  <bruno@clisp.org>
46050
46051         * tests/test-fprintf-posix2.sh: New file.
46052         * tests/test-fprintf-posix2.c: New file.
46053         * modules/fprintf-posix-tests (Files): Add them.
46054         (TESTS): Add test-fprintf-posix2.sh.
46055         (configure.ac): Check for getrlimit and setrlimit.
46056         (check_PROGRAMS): Add test-fprintf-posix2.
46057
46058         * tests/test-printf-posix2.sh: New file.
46059         * tests/test-printf-posix2.c: New file.
46060         * modules/printf-posix-tests (Files): Add them.
46061         (TESTS): Add test-printf-posix2.sh.
46062         (configure.ac): Check for getrlimit and setrlimit.
46063         (check_PROGRAMS): Add test-printf-posix2.
46064
46065         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46066         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46067         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46068         (decode_double): New function, copied from decode_long_double.
46069         (scale10_round_decimal_decoded): New function, extracted from
46070         scale10_round_decimal_long_double.
46071         (scale10_round_decimal_long_double): Use it.
46072         (scale10_round_decimal_double): New function.
46073         (floorlog10): New function.
46074         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46075         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46076         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46078         gl_PRINTF_ENOMEM and test its result. Invoke
46079         gl_PREREQ_VASNPRINTF_ENOMEM.
46080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46081         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46082         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46083         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46086         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46087         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46088         * modules/snprintf-posix (Depends-on): Likewise.
46089         * modules/sprintf-posix (Depends-on): Likewise.
46090         * modules/vasnprintf-posix (Depends-on): Likewise.
46091         * modules/vasprintf-posix (Depends-on): Likewise.
46092         * modules/vfprintf-posix (Depends-on): Likewise.
46093         * modules/vsnprintf-posix (Depends-on): Likewise.
46094         * modules/vsprintf-posix (Depends-on): Likewise.
46095         * doc/functions/fprintf.texi: Update.
46096         * doc/functions/printf.texi: Update.
46097         * doc/functions/snprintf.texi: Update.
46098         * doc/functions/sprintf.texi: Update.
46099         * doc/functions/vfprintf.texi: Update.
46100         * doc/functions/vprintf.texi: Update.
46101         * doc/functions/vsnprintf.texi: Update.
46102         * doc/functions/vsprintf.texi: Update.
46103
46104 2007-11-03  Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/frexp-nolibm-tests: New file.
46107
46108         * modules/frexp-nolibm: New file.
46109         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46110
46111 2007-11-03  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46114         value is C99 compliant.
46115         Needed for OSF/1 5.1.
46116
46117 2007-11-03  Bruno Haible  <bruno@clisp.org>
46118
46119         Fix out-of-memory handling of vasnprintf.
46120         * lib/printf-parse.c: Include <errno.h>.
46121         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46122         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46123         is already set.
46124
46125 2007-11-02  Eric Blake  <ebb9@byu.net>
46126
46127         Fix tests on cygwin.
46128         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46129
46130 2007-11-01  Bruno Haible  <bruno@clisp.org>
46131
46132         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46133         warning.
46134         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46135         needed for POSIX compatibility.
46136
46137 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46140         for compatibility with GNU.
46141
46142 2007-11-01  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46145         (putenv): Renamed from rpl_putenv. Change argument type from
46146         'const char *' to 'char *'.
46147         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46148         of defining putenv in config.h, just set REPLACE_PUTENV.
46149         * modules/putenv (Depends-on): Add stdlib.
46150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46151         (Include): Use <stdlib.h>.
46152         * lib/stdlib.in.h (putenv): New declaration.
46153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46154         REPLACE_PUTENV.
46155         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46156         REPLACE_PUTENV.
46157         Needed for MacOS X 10.5.0.
46158         Reported by Peter O'Gorman <peter@pogma.com>.
46159
46160 2007-11-01  Jim Meyering  <meyering@redhat.com>
46161
46162         Treat an empty date string exactly like "0".
46163         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46164         if the remaining date string (to be parsed) is empty, use "0".
46165         Reported by Mischa Molhoek and discussed in this thread:
46166         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46167
46168 2007-10-31  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46171         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46172         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46173         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46174         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46175         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46176
46177 2007-10-31  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46180         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46181         (AC_TYPE_LONG_LONG_INT): Use it.
46182         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46183         it as well.
46184         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46185         to m4/longlong.m4.
46186         * modules/stdint (Files): Remove m4/ulonglong.m4.
46187         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46188         m4/ulonglong.m4.
46189         * modules/strtoumax (Files): Likewise.
46190
46191 2007-10-30  Bruno Haible  <bruno@clisp.org>
46192
46193         * modules/xvasprintf-posix: New file.
46194         Suggested by Eric Blake.
46195
46196 2007-10-30  Bruno Haible  <bruno@clisp.org>
46197
46198         * modules/xprintf-posix-tests: New file.
46199         * tests/test-xprintf-posix.sh: New file.
46200         * tests/test-xprintf-posix.c: New file.
46201         * tests/test-xfprintf-posix.c: New file.
46202
46203         * modules/xprintf-posix: New file.
46204
46205 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46206
46207         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46208         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46209         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46210
46211 2007-10-29  Bruno Haible  <bruno@clisp.org>
46212
46213         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46214         contain the special marker '_cv_'.
46215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46217         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46219         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46220         Reported by Ralf Wildenhues.
46221
46222 2007-10-29  Bruno Haible  <bruno@clisp.org>
46223
46224         * gnulib-tool (func_import): When --lgpl is not specified, set
46225         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46226         GPLv3.
46227         Reported by Simon Josefsson.
46228
46229 2007-10-28  Bruno Haible  <bruno@clisp.org>
46230
46231         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46232         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46233         HAVE_DECL_ISFINITE.
46234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46235         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46236         HAVE_DECL_ISFINITE.
46237
46238 2007-10-28  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46241         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46242
46243 2007-10-28  Bruno Haible  <bruno@clisp.org>
46244
46245         Fix link errors with Sun C 5.0 on Solaris 10.
46246         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46247         function is declared but not present in the compiler's libm.
46248         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46249         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46250         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46251         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46252         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46253         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46254         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46256         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46257         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46258         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46259         HAVE_DECL_FLOORL.
46260
46261 2007-10-28  Bruno Haible  <bruno@clisp.org>
46262
46263         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46264         gl_FUNC_FLOORL. Cache the result.
46265         (gl_FUNC_FLOORL): Use it.
46266         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46267         gl_FUNC_CEILL. Cache the result.
46268         (gl_FUNC_CEILL): Use it.
46269
46270         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46271         gl_FUNC_FLOOR. Cache the result.
46272         (gl_FUNC_FLOOR): Use it.
46273         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46274         gl_FUNC_CEIL. Cache the result.
46275         (gl_FUNC_CEIL): Use it.
46276
46277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46278         gl_FUNC_FLOORF. Cache the result.
46279         (gl_FUNC_FLOORF): Use it.
46280         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46281         gl_FUNC_CEILF. Cache the result.
46282         (gl_FUNC_CEILF): Use it.
46283
46284 2007-10-28  Bruno Haible  <bruno@clisp.org>
46285
46286         * gnulib-tool: Allow specifying the LGPL version number through
46287         --lgpl=2 or --lgpl=3.
46288         (func_usage): Document --lgpl with argument.
46289         Handle --lgpl=... arguments.
46290         (func_import): Recognize also gl_LGPL calls with an argument. When
46291         --lgpl=2 is used and the module's license is just LGPL, report an
46292         error. Set sed_transform_lib_file according to the lgpl variable. In
46293         the generated files, use --lgpl or gl_LGPL invocations with argument,
46294         if necessary.
46295         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46296         an LGPv2+ license.
46297         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46298         gl_LGPL macro.
46299
46300 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46301             Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46304         (u16_uctomb_aux): Likewise.
46305         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46306         !HAVE_INLINE.
46307         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46308
46309 2007-10-28  Bruno Haible  <bruno@clisp.org>
46310
46311         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46312         Invoke AM_GETTEXT_OPTION if it exists.
46313         * modules/vasprintf: Likewise.
46314         * modules/verror: Likewise.
46315         * modules/xprintf: Likewise.
46316         * modules/xvasprintf: Likewise.
46317
46318 2007-10-27  Ben Pfaff  <blp@gnu.org>
46319
46320         * lib/math.in.h: Define isfinite macro and prototypes for
46321         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46322         implementations.
46323         * m4/math_h.m4: New substitutions for isfinite module.
46324         * lib/isfinite.c: New file.
46325         * m4/isfinite.m4: New file.
46326         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46327         * modules/isfinite: New file.
46328         * modules/isfinite-tests: New file.
46329         * tests/tests-isfinite.c: New file.
46330         * doc/functions/isfinite.texi: Mention isfinite module.
46331         * MODULES.html.sh: Mention new module.
46332
46333 2007-10-27  Ben Pfaff  <blp@gnu.org>
46334
46335         Ralf Wildenhues reported that Tru64 4.0D declares the round
46336         functions but does not have definitions.
46337         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46338         cannot be found in any library, set the output variable to
46339         "missing" instead of "".
46340         * m4/round.m4: Also use our substitute if we cannot find round in
46341         any library, even if it is declared.
46342         * m4/roundf.m4: Likewise for roundf.
46343         * m4/roundl.m4: Likewise for roundl.
46344         * lib/math.in.h: Undefine roundf, round, roundl before defining
46345         their replacements, to allow for hypothetical systems where these
46346         may be defined as macros but not available in libraries.
46347
46348 2007-10-27  Bruno Haible  <bruno@clisp.org>
46349
46350         * doc/gnulib.texi: Invoke @firstparagraphindent.
46351         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46352         changes in gnulib.
46353         (Source changes): New section.
46354
46355 2007-10-26  Bruno Haible  <bruno@clisp.org>
46356
46357         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46358         borrowed from autoconf.
46359
46360 2007-10-26  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46363         strerror returned the empty string. Needed on HP-UX 11.00.
46364
46365 2007-10-24  Micah Cowan  <micah@cowan.name>
46366
46367         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46368         * build-aux/bootstrap: Remove support for now-unnecessary option,
46369         --cvs-user, and envvars CVS_USER, CVS_RSH.
46370
46371 2007-10-24  Jim Meyering  <meyering@redhat.com>
46372
46373         Avoid diagnostics from sha1sum when there is no cached checksum.
46374         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46375         if the po.s1 file hasn't been created yet.
46376
46377         * build-aux/bootstrap: Sync from coreutils:
46378         2007-10-24  Jim Meyering  <meyering@redhat.com>
46379         Get gnulib from the git repository, not from an obsolete cvs one.
46380         * build-aux/bootstrap: Suggestion from Micah Cowan.
46381         2007-10-04  Jim Meyering  <jim@meyering.net>
46382         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46383         (update_po_files): Work also when there are no .po files in po/.
46384
46385 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * README: Append ".git" to git and cg examples.
46388         Problem reported by Benoit Sigoure.
46389
46390 2007-10-23  Micah Cowan  <micah@cowan.name>
46391
46392         * users.txt: Add wget.
46393
46394 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46395
46396         Fix linking of some unistdio tests on FreeBSD.
46397         * modules/unistdio/u16-vsnprintf-tests
46398         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46399         * modules/unistdio/u16-vsprintf-tests
46400         (test_u16_vsnprintf1_LDADD): Likewise.
46401         * modules/unistdio/u32-vsnprintf-tests
46402         (test_u32_vsnprintf1_LDADD): Likewise.
46403         * modules/unistdio/u32-vsprintf-tests
46404         (test_u32_vsprintf1_LDADD): Likewise.
46405         * modules/unistdio/u8-vsnprintf-tests
46406         (test_u8_vsnprintf1_LDADD): Likewise.
46407         * modules/unistdio/u8-vsprintf-tests
46408         (test_u8_vsprintf1_LDADD): Likewise.
46409         * modules/unistdio/ulc-vsnprintf-tests
46410         (test_ulc_vsnprintf1_LDADD): Likewise.
46411         * modules/unistdio/ulc-vsprintf-tests
46412         (test_ulc_vsprintf1_LDADD): Likewise.
46413
46414         Fix linking of some uniconv tests on FreeBSD.
46415         * modules/uniconv/u16-conv-from-enc-tests
46416         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46417         * modules/uniconv/u16-conv-to-enc-tests
46418         (test_u16_conv_to_enc_LDADD): Likewise.
46419         * modules/uniconv/u16-strconv-from-enc-tests
46420         (test_u16_strconv_from_enc_LDADD): Likewise.
46421         * modules/uniconv/u16-strconv-to-enc-tests
46422         (test_u16_strconv_to_enc_LDADD): Likewise.
46423         * modules/uniconv/u32-conv-from-enc-tests
46424         (test_u32_conv_from_enc_LDADD): Likewise.
46425         * modules/uniconv/u32-conv-to-enc-tests
46426         (test_u32_conv_to_enc_LDADD): Likewise.
46427         * modules/uniconv/u32-strconv-from-enc-tests
46428         (test_u32_strconv_from_enc_LDADD): Likewise.
46429         * modules/uniconv/u32-strconv-to-enc-tests
46430         (test_u32_strconv_to_enc_LDADD): Likewise.
46431         * modules/uniconv/u8-conv-from-enc-tests
46432         (test_u8_conv_from_enc_LDADD): Likewise.
46433         * modules/uniconv/u8-conv-to-enc-tests
46434         (test_u8_conv_to_enc_LDADD): Likewise.
46435         * modules/uniconv/u8-strconv-from-enc-tests
46436         (test_u8_strconv_from_enc_LDADD): Likewise.
46437         * modules/uniconv/u8-strconv-to-enc-tests
46438         (test_u8_strconv_to_enc_LDADD): Likewise.
46439
46440 2007-10-22  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46443         size.
46444
46445 2007-10-22  Eric Blake  <ebb9@byu.net>
46446
46447         Tweak x*printf documentation.
46448         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46449         variable name and comments.
46450         Suggested by Bruno Haible.
46451
46452 2007-10-22  Bruno Haible  <bruno@clisp.org>
46453
46454         * lib/acl.c (copy_acl): Fix file name in comment.
46455
46456 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46457
46458         Fix Tru64 problem with stdbool.h.
46459         * lib/stdbool.in.h (false, true):
46460         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46461         Don't declare as an enum in this situation; it runs afoul of Tru64.
46462         Problem reported by Steven M. Schweda in
46463         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46464
46465 2007-10-22  Eric Blake  <ebb9@byu.net>
46466
46467         Also wrap vf?printf.
46468         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46469         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46470         (xvprintf, xvfprintf): New functions.
46471
46472 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46473
46474         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46475         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46476
46477         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46478         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46479
46480 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46481
46482         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46483         by Bruno Haible.
46484
46485 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46486
46487         * lib/getloadavg.c
46488         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46489         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46490
46491         * tests/test-i-ring.c: Work for C89.
46492
46493 2007-10-22  Bruno Haible  <bruno@clisp.org>
46494
46495         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46496         -1u, in preprocessor expression, so that we don't test for the bug
46497         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46499
46500 2007-10-22  Eric Blake  <ebb9@byu.net>
46501
46502         * tests/test-yesno.sh: Silence stderr during test.
46503
46504 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46505
46506         * modules/crypto/gc-camellia: New file.
46507
46508         * m4/gc-camellia.m4: New file.
46509
46510         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46511
46512         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46513
46514 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46515
46516         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46517         --help to stdout.  Reported by sms@antinode.org (Steven
46518         M. Schweda).
46519
46520 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46521
46522         * users.txt: Fix link to libksba.
46523
46524 2007-10-21  Ben Pfaff  <blp@gnu.org>
46525
46526         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46527         round.c roundf implementation that depends on floorf and ceilf to
46528         be tested unconditionally.
46529
46530 2007-10-21  Ben Pfaff  <blp@gnu.org>
46531
46532         * m4/check-libm-func.m4: Removed.
46533         * m4/check-math-lib.m4: New file.
46534         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46535         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46536         definition and lack of AC_LIBOBJ([roundf]).
46537         * m4/roundl.m4: Ditto, and similarly for roundl.
46538         * modules/round: Reference new m4 file.
46539         * modules/roundf: Ditto.
46540         * modules/roundl: Ditto.
46541         * tests/test-round2.c (main): Use ROUND instead of round.
46542         Bug report from Bruno Haible.
46543
46544 2007-10-21  Bruno Haible  <bruno@clisp.org>
46545
46546         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46547         context.
46548
46549 2007-10-21  Bruno Haible  <bruno@clisp.org>
46550
46551         * tests/test-wcwidth.c (main): Allow negative result for some control
46552         characters.
46553
46554         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46555         Needed on OSF/1 5.1.
46556
46557 2007-10-21  Bruno Haible  <bruno@clisp.org>
46558
46559         * tests/test-floorf1.c: Include isnanf.h.
46560         (main): Use isnanf() instead of isnan().
46561         * tests/test-ceilf1.c: Include isnanf.h.
46562         (main): Use isnanf() instead of isnan().
46563         * tests/test-truncf1.c: Include isnanf.h.
46564         (main): Use isnanf() instead of isnan().
46565         * tests/test-roundf1.c: Include isnanf.h.
46566         (main): Use isnanf() instead of isnan().
46567
46568 2007-10-21  Eric Blake  <ebb9@byu.net>
46569
46570         * users.txt: Update URL for m4.
46571
46572 2007-10-21  Bruno Haible  <bruno@clisp.org>
46573
46574         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46575
46576 2007-10-21  Bruno Haible  <bruno@clisp.org>
46577
46578         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46579         Git's management files if the CVS files are not present.
46580
46581 2007-10-20  Bruno Haible  <bruno@clisp.org>
46582
46583         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46584         gcc-3.4.x.
46585
46586 2007-10-20  Ben Pfaff  <blp@gnu.org>
46587
46588         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46589         implementations.
46590         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46591         * lib/round.c: New file.
46592         * lib/roundf.c: New file.
46593         * lib/roundl.c: New file.
46594         * m4/round.m4: New file.
46595         * m4/roundf.m4: New file.
46596         * m4/roundl.m4: New file.
46597         * m4/check-libm-func-m4: New file.
46598         * modules/math: Replace round, roundf, roundl related @VARS@ in
46599         math.in.h.
46600         * modules/round: New file.
46601         * modules/round-tests: New file.
46602         * modules/roundf: New file.
46603         * modules/roundf-tests: New file.
46604         * modules/roundl: New file.
46605         * modules/roundl-tests: New file.
46606         * tests/test-round1.c: New file.
46607         * tests/test-round2.c: New file.
46608         * tests/test-roundf1.c: New file.
46609         * tests/test-roundf2.c: New file.
46610         * tests/test-roundl.c: New file.
46611         * doc/functions/round.texi: Mention round module.
46612         * doc/functions/roundf.texi: Mention roundf module.
46613         * doc/functions/roundl.texi: Mention roundl module.
46614         * MODULES.html.sh: Mention new modules.
46615         Thanks to Bruno Haible for suggestions.
46616
46617 2007-10-20  Jim Meyering  <meyering@redhat.com>
46618
46619         * lib/xprintf.c: Include <config.h> unconditionally.
46620
46621         Change xprintf's license to GPL.
46622         * modules/xprintf (License): s/LGPL/GPL/, since this module
46623         depends on modules (exit and exitfail) which are GPL.
46624         Suggestion from Bruno Haible.
46625
46626         xprintf fixes.
46627         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46628         Use a clearer diagnostic.
46629         Patch from Bruno Haible.
46630
46631 2007-10-20  Bruno Haible  <bruno@clisp.org>
46632
46633         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46634         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46636
46637 2007-10-20  Bruno Haible  <bruno@clisp.org>
46638
46639         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46640         precision in the comparison result > x - 1 or similar.
46641         * tests/test-ceilf2.c (correct_result_p): Likewise.
46642         * tests/test-truncf2.c (correct_result_p): Likewise.
46643         * tests/test-trunc2.c (correct_result_p): Likewise.
46644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46645
46646 2007-10-20  Bruno Haible  <bruno@clisp.org>
46647
46648         * modules/ceil: New file.
46649         * m4/ceil.m4: New file.
46650         * doc/functions/ceil.texi: Mention the 'ceil' module.
46651
46652 2007-10-20  Bruno Haible  <bruno@clisp.org>
46653
46654         * modules/floor: New file.
46655         * m4/floor.m4: New file.
46656         * doc/functions/floor.texi: Mention the 'floor' module.
46657
46658 2007-10-20  Bruno Haible  <bruno@clisp.org>
46659
46660         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46661         of %a.
46662         * modules/floorf-tests (Depends-on): Likewise.
46663         * modules/truncf-tests (Depends-on): Likewise.
46664         * modules/trunc-tests (Depends-on): Likewise.
46665         Reported by Ben Pfaff.
46666
46667 2007-10-19  Jim Meyering  <meyering@redhat.com>
46668
46669         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46670         Don't bother testing specific errno values.  Just test ferror.
46671
46672         New module: xprintf
46673         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46674
46675 2007-10-19  Bruno Haible  <bruno@clisp.org>
46676
46677         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46678         syntax.
46679         * modules/javaexec (Makefile.am): Likewise.
46680         * modules/relocatable-prog (Makefile.am): Likewise.
46681         Suggested by Jim Meyering.
46682
46683 2007-10-18  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46686         Reported by Jim Meyering.
46687
46688 2007-10-18  Eric Blake  <ebb9@byu.net>
46689
46690         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46691
46692 2007-10-18  Bruno Haible  <bruno@clisp.org>
46693
46694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46695         the format string into writable memory. Needed in Fortify conditions.
46696
46697 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46698             Bruno Haible  <bruno@clisp.org>
46699
46700         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46701         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46702         * modules/trim (Depends-on): Add mbchar.
46703         (configure.ac): Add gl_FUNC_MBRTOWC.
46704         (Makefile.am): Augment lib_SOURCES.
46705
46706 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46707
46708         Modify glob.c to use fstatat and dirfd, to simplify it.
46709         Suggested by Eric Blake.
46710         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46711         Don't include <stdbool.h>; not used.
46712         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46713         (link_exists_p): Simplify implementation, since we can now assume
46714         dirfd and fstatat.
46715         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46716
46717 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46718
46719         * gnulib-tool (func_get_dependencies): Fix sed script to
46720         match only tests.
46721
46722 2007-10-17  Bruno Haible  <bruno@clisp.org>
46723
46724         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46725         allow locale names without encoding suffix.
46726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46728
46729 2007-10-16  Bruno Haible  <bruno@clisp.org>
46730
46731         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46732         * lib/getgroups.c (getgroups): Likewise.
46733         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46734
46735 2007-10-16  Bruno Haible  <bruno@clisp.org>
46736
46737         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46738         * modules/malloc-posix (License): Likewise.
46739         * modules/realloc-posix (License): Likewise.
46740         * modules/calloc-posix (License): Likewise.
46741         * modules/intprops (License): Change from GPL to LGPL, with
46742         Paul Eggert's approval.
46743
46744 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46745
46746         Merge glibc changes into lib/glob.c.
46747
46748         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46749         2007-10-15 04:59:03 UTC.  Here are the changes:
46750
46751         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46752
46753         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46754
46755         * lib/glob.c: Add some branch prediction throughout.
46756
46757         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46758
46759         [BZ #5103]
46760         * lib/glob.c (glob): Recognize patterns starting \/.
46761
46762         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46763
46764         [BZ #3996]
46765         * lib/glob.c (attribute_hidden): Define if not defined.
46766         (glob): Unescape dirname, filename or username when needed and not
46767         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46768         is NULL.  Handle unescaped [ in pattern without closing ].
46769         Don't pass GLOB_CHECK down to recursive glob for directories.
46770         (__glob_pattern_type): New function.
46771         (__glob_pattern_p): Implement using __glob_pattern_type.
46772         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46773         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46774         Remove unreachable code.
46775
46776         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46777
46778         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46779         explain why there are no leaks.
46780
46781         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46782
46783         [BZ #3253]
46784         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46785         time, rather allocate increasingly bigger arrays of pointers, if
46786         possible with alloca, if too large with malloc.
46787
46788 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46791         Problem reported by H.Merijn Brand in
46792         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46794         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46795
46796 2007-10-15  Bruno Haible  <bruno@clisp.org>
46797
46798         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46799         with explicit rpl_ prefix.
46800         * lib/fopen.c (fopen): Likewise.
46801         * lib/freopen.c (freopen): Likewise.
46802         * lib/iconv.c (iconv): Likewise.
46803         * lib/iconv_close.c (iconv_close): Likewise.
46804
46805 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46806
46807         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46808
46809 2007-10-15  Bruno Haible  <bruno@clisp.org>
46810
46811         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46812         <stddef.h> instead of <stdlib.h> since we only need NULL.
46813         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46814
46815 2007-10-15  Bruno Haible  <bruno@clisp.org>
46816
46817         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46818         Replace paragraph talking about LIBOBJS.
46819         Reported by Colin Watson <cjwatson@debian.org>.
46820
46821 2007-10-15  Bruno Haible  <bruno@clisp.org>
46822
46823         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46824         <stdlib.h> before using NULL.
46825
46826 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46827
46828         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46829         Reported by Albert Chin <china@thewrittenword.com>.
46830
46831 2007-10-14  Bruno Haible  <bruno@clisp.org>
46832
46833         * modules/iconv_open-utf-tests: New file.
46834         * tests/test-iconv-utf.c: New file.
46835
46836         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46837         * modules/iconv_open-utf: New file.
46838         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46839         (iconv, iconv_close): New declarations.
46840         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46841         be defined.
46842         (iconv_open): Add special handling of conversion between UTF-8 and
46843         UTF-{16,32}{BE,LE}.
46844         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46845         * lib/iconv_close.c: New file.
46846         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46847         gl_FUNC_ICONV_OPEN.
46848         (gl_FUNC_ICONV_OPEN): Use it.
46849         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46850         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46851         and REPLACE_ICONV_UTF.
46852         * modules/iconv_open (Depends-on): Add c-strcase.
46853         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46854         ICONV_CONST.
46855         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46856
46857 2007-10-13  Albert Chin  <china@thewrittenword.com>
46858             Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46861         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46862
46863 2007-10-13  Bruno Haible  <bruno@clisp.org>
46864
46865         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46866         defined, use the ISO C99 inline semantics.
46867         * lib/argp.h (ARGP_EI): Likewise.
46868
46869 2007-10-13  Bruno Haible  <bruno@clisp.org>
46870
46871         Handle 'inline' change in gcc 4.3.0.
46872         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46873         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46874         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46875         argp_fmtstream_point): Disable 'extern' declaration if the function
46876         definition is going to be provided inline.
46877         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46878         semantics, not the ISO C99 inline semantics.
46879         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46880         'extern' declaration if the function definition is going to be provided
46881         inline.
46882         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46883         the GNU C inline semantics, not the ISO C99 inline semantics. With
46884         GCC 4.2, avoid a warning.
46885
46886 2007-10-13  Bruno Haible  <bruno@clisp.org>
46887
46888         * lib/freading.h (freading): Enable the use of __freading for
46889         glibc >= 2.7.
46890         * lib/freading.c (freading): Likewise.
46891
46892 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46893
46894         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46895         "warning: C99 inline functions are not supported; using GNU89".
46896
46897 2007-10-12  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46900         of 2.
46901         * tests/test-ceilf2.c: New file.
46902         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46903
46904         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46905         * modules/ceilf-tests: Update.
46906
46907 2007-10-12  Bruno Haible  <bruno@clisp.org>
46908
46909         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46910         of 2.
46911         * tests/test-floorf2.c: New file.
46912         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46913
46914         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46915         * modules/floorf-tests: Update.
46916
46917 2007-10-12  Bruno Haible  <bruno@clisp.org>
46918
46919         * tests/test-trunc2.c: New file.
46920         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46921
46922         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46923         * modules/trunc-tests: Update.
46924
46925 2007-10-12  Bruno Haible  <bruno@clisp.org>
46926
46927         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46928         of 2.
46929         * tests/test-truncf2.c: New file.
46930         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46931
46932         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46933         * modules/truncf-tests: Update.
46934
46935 2007-10-11  Eric Blake  <ebb9@byu.net>
46936
46937         Don't claim strerror is broken on Interix.
46938         * doc/functions/strerror.texi (strerror): Known broken systems are
46939         now Solaris 8, and not Interix.
46940         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46941         Interix on cross-compile.
46942         Reported by Martin Koeppe in
46943         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46944
46945 2007-10-11  Bruno Haible  <bruno@clisp.org>
46946
46947         * modules/i-ring-tests: New file.
46948         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46949         instead of assert.
46950
46951 2007-10-11  Bruno Haible  <bruno@clisp.org>
46952
46953         * modules/filenamecat-tests: New file.
46954         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46955         * lib/filenamecat.c: Remove test code.
46956
46957 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46958
46959         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46960
46961         * lib/strerror.c: Include <string.h> always, to test interface,
46962         and to remove the need for the dummy.
46963         Include intprops.h to compute width instead of doing it ourselves
46964         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46965         (strerror): Define it to return NULL if there's no system strerror.
46966         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46967         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46968         ancient pre-strerror Unix systems well any more.  Saying "unknown
46969         system error" is enough.
46970         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46971         simpler strerror.c implementation.
46972         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46973         Simplify the tests to reflect the simpler strerror implementation.
46974         * modules/strerror (Depends-on): Add intprops.
46975
46976 2007-10-09  Eric Blake  <ebb9@byu.net>
46977
46978         Silence test-fpending.
46979         * modules/fpending-tests (Files): Add wrapper script.
46980         * tests/test-fpending.sh: New file.
46981
46982 2007-10-09  Bruno Haible  <bruno@clisp.org>
46983
46984         * MODULES.html.sh (func_module): Don't create a hyperlink for
46985         function names like 'printf_frexp'.
46986         (Misc): Add crc, memxor.
46987         (Characteristics of floating types): New section.
46988         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46989         isnanf-nolibm, signbit, trunc, truncf, truncl.
46990         (Enhancements for ISO C 99 functions): New subsection Input/output.
46991         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46992         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46993         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46994         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46995         (Enhancements for POSIX:2001 functions): Add chdir-long.
46996         (File system functions): Add areadlink, chdir-safer, read-file.
46997         Remove cycle-check.
46998         (File system as inode set): New section.
46999         (Date and time): Add gethrxtime.
47000         (Multithreading): Add openmp.
47001         (Internationalization functions): Add localename.
47002         (Unicode string functions): Add unistr/u*-mbsnlen.
47003         (Support for maintaining and releasing projects): Add git-version-gen.
47004         (Lone files): Remove directories.
47005
47006 2007-10-08  Ben Pfaff  <blp@gnu.org>
47007
47008         * lib/xmalloca.h: Fix typo in comment.
47009
47010 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47011
47012         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47013         when avoiding problems with integer overflow.  Use a portable test
47014         instead.
47015
47016 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47017
47018         * modules/dummy (License): Change to LGPLv2+.
47019         * modules/float (License): Likewise
47020         * modules/realloc (License): Likewise
47021         * modules/stdlib (License): Likewise
47022
47023 2007-10-07  Bruno Haible  <bruno@clisp.org>
47024
47025         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47026         * floor.c (TWO_MANT_DIG): Likewise.
47027         * ceil.c (TWO_MANT_DIG): Likewise.
47028         Reported by Ben Pfaff.
47029
47030 2007-10-07  Bruno Haible  <bruno@clisp.org>
47031
47032         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47033         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47034         * lib/frexp.c (FUNC): Likewise.
47035         * lib/printf-frexp.h (printf_frexp): Likewise.
47036         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47037         * lib/printf-frexp.c (FUNC): Likewise.
47038         Suggested by Jim Meyering.
47039
47040 2007-10-07  Jim Meyering  <meyering@redhat.com>
47041
47042         Make xnanosleep's integer overflow test more robust.
47043         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47044         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47045
47046 2007-10-07  Bruno Haible  <bruno@clisp.org>
47047
47048         * NEWS: Mention the license change.
47049
47050         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
47051         abbreviations in the modules files.
47052
47053         Change copyright notice from GPLv2+ to GPLv3+.
47054         * README: Change copyright notice.
47055         * MODULES.html.sh: Likewise.
47056         * build-aux/bootstrap.conf: Likewise.
47057         * build-aux/config.libpath: Likewise.
47058         * build-aux/csharpcomp.sh.in: Likewise.
47059         * build-aux/csharpexec.sh.in: Likewise.
47060         * build-aux/install-reloc: Likewise.
47061         * build-aux/javacomp.sh.in: Likewise.
47062         * build-aux/javaexec.sh.in: Likewise.
47063         * build-aux/ldd.sh.in: Likewise.
47064         * build-aux/reloc-ldflags: Likewise.
47065         * build-aux/relocatable.sh.in: Likewise.
47066         * build-aux/x-to-1.in: Likewise.
47067         * check-module: Likewise.
47068         * config/srclistvars.sh: Likewise.
47069         * gnulib-tool: Likewise.
47070         * lib/acl-internal.h: Likewise.
47071         * lib/acl.c: Likewise.
47072         * lib/acl.h: Likewise.
47073         * lib/acl_entries.c: Likewise.
47074         * lib/areadlink-with-size.c: Likewise.
47075         * lib/areadlink.c: Likewise.
47076         * lib/areadlink.h: Likewise.
47077         * lib/argmatch.c: Likewise.
47078         * lib/argmatch.h: Likewise.
47079         * lib/argp-ba.c: Likewise.
47080         * lib/argp-eexst.c: Likewise.
47081         * lib/argp-fmtstream.c: Likewise.
47082         * lib/argp-fmtstream.h: Likewise.
47083         * lib/argp-fs-xinl.c: Likewise.
47084         * lib/argp-help.c: Likewise.
47085         * lib/argp-namefrob.h: Likewise.
47086         * lib/argp-parse.c: Likewise.
47087         * lib/argp-pin.c: Likewise.
47088         * lib/argp-pv.c: Likewise.
47089         * lib/argp-pvh.c: Likewise.
47090         * lib/argp-xinl.c: Likewise.
47091         * lib/argp.h: Likewise.
47092         * lib/at-func.c: Likewise.
47093         * lib/atanl.c: Likewise.
47094         * lib/backupfile.c: Likewise.
47095         * lib/backupfile.h: Likewise.
47096         * lib/basename.c: Likewise.
47097         * lib/binary-io.h: Likewise.
47098         * lib/byteswap.in.h: Likewise.
47099         * lib/c-stack.c: Likewise.
47100         * lib/c-stack.h: Likewise.
47101         * lib/c-strcasestr.c: Likewise.
47102         * lib/c-strcasestr.h: Likewise.
47103         * lib/c-strstr.c: Likewise.
47104         * lib/c-strstr.h: Likewise.
47105         * lib/c-strtod.c: Likewise.
47106         * lib/calloc.c: Likewise.
47107         * lib/canon-host.c: Likewise.
47108         * lib/canon-host.h: Likewise.
47109         * lib/canonicalize-lgpl.c: Likewise.
47110         * lib/canonicalize.c: Likewise.
47111         * lib/canonicalize.h: Likewise.
47112         * lib/ceil.c: Likewise.
47113         * lib/ceilf.c: Likewise.
47114         * lib/ceill.c: Likewise.
47115         * lib/chdir-long.c: Likewise.
47116         * lib/chdir-long.h: Likewise.
47117         * lib/chdir-safer.c: Likewise.
47118         * lib/chdir-safer.h: Likewise.
47119         * lib/chown.c: Likewise.
47120         * lib/classpath.c: Likewise.
47121         * lib/classpath.h: Likewise.
47122         * lib/clean-temp.c: Likewise.
47123         * lib/clean-temp.h: Likewise.
47124         * lib/cloexec.c: Likewise.
47125         * lib/close-stream.c: Likewise.
47126         * lib/closein.c: Likewise.
47127         * lib/closein.h: Likewise.
47128         * lib/closeout.c: Likewise.
47129         * lib/closeout.h: Likewise.
47130         * lib/concat-filename.c: Likewise.
47131         * lib/copy-file.c: Likewise.
47132         * lib/copy-file.h: Likewise.
47133         * lib/count-one-bits.h: Likewise.
47134         * lib/crc.c: Likewise.
47135         * lib/crc.h: Likewise.
47136         * lib/creat-safer.c: Likewise.
47137         * lib/csharpcomp.c: Likewise.
47138         * lib/csharpcomp.h: Likewise.
47139         * lib/csharpexec.c: Likewise.
47140         * lib/csharpexec.h: Likewise.
47141         * lib/cycle-check.c: Likewise.
47142         * lib/cycle-check.h: Likewise.
47143         * lib/diacrit.c: Likewise.
47144         * lib/diacrit.h: Likewise.
47145         * lib/diffseq.h: Likewise.
47146         * lib/dirchownmod.c: Likewise.
47147         * lib/dirent.in.h: Likewise.
47148         * lib/dirfd.c: Likewise.
47149         * lib/dirfd.h: Likewise.
47150         * lib/dirname.c: Likewise.
47151         * lib/dirname.h: Likewise.
47152         * lib/dummy.c: Likewise.
47153         * lib/dup-safer.c: Likewise.
47154         * lib/dup2.c: Likewise.
47155         * lib/eealloc.h: Likewise.
47156         * lib/error.c: Likewise.
47157         * lib/error.h: Likewise.
47158         * lib/euidaccess.c: Likewise.
47159         * lib/exclude.c: Likewise.
47160         * lib/exclude.h: Likewise.
47161         * lib/execute.c: Likewise.
47162         * lib/execute.h: Likewise.
47163         * lib/exitfail.c: Likewise.
47164         * lib/exitfail.h: Likewise.
47165         * lib/expl.c: Likewise.
47166         * lib/fatal-signal.c: Likewise.
47167         * lib/fatal-signal.h: Likewise.
47168         * lib/fbufmode.c: Likewise.
47169         * lib/fbufmode.h: Likewise.
47170         * lib/fchdir.c: Likewise.
47171         * lib/fchmodat.c: Likewise.
47172         * lib/fchownat.c: Likewise.
47173         * lib/fcntl--.h: Likewise.
47174         * lib/fcntl-safer.h: Likewise.
47175         * lib/fcntl.in.h: Likewise.
47176         * lib/fd-safer.c: Likewise.
47177         * lib/fflush.c: Likewise.
47178         * lib/file-has-acl.c: Likewise.
47179         * lib/file-set.c: Likewise.
47180         * lib/file-type.c: Likewise.
47181         * lib/file-type.h: Likewise.
47182         * lib/fileblocks.c: Likewise.
47183         * lib/filemode.c: Likewise.
47184         * lib/filemode.h: Likewise.
47185         * lib/filename.h: Likewise.
47186         * lib/filenamecat.c: Likewise.
47187         * lib/filenamecat.h: Likewise.
47188         * lib/findprog.c: Likewise.
47189         * lib/findprog.h: Likewise.
47190         * lib/float.in.h: Likewise.
47191         * lib/floor.c: Likewise.
47192         * lib/floorf.c: Likewise.
47193         * lib/floorl.c: Likewise.
47194         * lib/fopen-safer.c: Likewise.
47195         * lib/fopen.c: Likewise.
47196         * lib/fpending.c: Likewise.
47197         * lib/fpending.h: Likewise.
47198         * lib/fprintf.c: Likewise.
47199         * lib/fprintftime.h: Likewise.
47200         * lib/fpucw.h: Likewise.
47201         * lib/fpurge.c: Likewise.
47202         * lib/fpurge.h: Likewise.
47203         * lib/freadable.c: Likewise.
47204         * lib/freadable.h: Likewise.
47205         * lib/freadahead.c: Likewise.
47206         * lib/freadahead.h: Likewise.
47207         * lib/freading.c: Likewise.
47208         * lib/freading.h: Likewise.
47209         * lib/free.c: Likewise.
47210         * lib/freopen.c: Likewise.
47211         * lib/frexp.c: Likewise.
47212         * lib/frexpl.c: Likewise.
47213         * lib/fseek.c: Likewise.
47214         * lib/fseterr.c: Likewise.
47215         * lib/fseterr.h: Likewise.
47216         * lib/fstatat.c: Likewise.
47217         * lib/fstrcmp.c: Likewise.
47218         * lib/fstrcmp.h: Likewise.
47219         * lib/fsusage.c: Likewise.
47220         * lib/fsusage.h: Likewise.
47221         * lib/ftell.c: Likewise.
47222         * lib/ftello.c: Likewise.
47223         * lib/fts-cycle.c: Likewise.
47224         * lib/fts.c: Likewise.
47225         * lib/fts_.h: Likewise.
47226         * lib/full-read.c: Likewise.
47227         * lib/full-read.h: Likewise.
47228         * lib/full-write.c: Likewise.
47229         * lib/full-write.h: Likewise.
47230         * lib/fwritable.c: Likewise.
47231         * lib/fwritable.h: Likewise.
47232         * lib/fwriteerror.c: Likewise.
47233         * lib/fwriteerror.h: Likewise.
47234         * lib/fwriting.c: Likewise.
47235         * lib/fwriting.h: Likewise.
47236         * lib/gcd.c: Likewise.
47237         * lib/gcd.h: Likewise.
47238         * lib/getcwd.c: Likewise.
47239         * lib/getdate.h: Likewise.
47240         * lib/getdate.y: Likewise.
47241         * lib/getdomainname.c: Likewise.
47242         * lib/getdomainname.h: Likewise.
47243         * lib/getgroups.c: Likewise.
47244         * lib/gethostname.c: Likewise.
47245         * lib/gethrxtime.c: Likewise.
47246         * lib/gethrxtime.h: Likewise.
47247         * lib/getloadavg.c: Likewise.
47248         * lib/getndelim2.c: Likewise.
47249         * lib/getndelim2.h: Likewise.
47250         * lib/getnline.c: Likewise.
47251         * lib/getnline.h: Likewise.
47252         * lib/getopt.c: Likewise.
47253         * lib/getopt.in.h: Likewise.
47254         * lib/getopt1.c: Likewise.
47255         * lib/getopt_int.h: Likewise.
47256         * lib/getpagesize.h: Likewise.
47257         * lib/getsubopt.c: Likewise.
47258         * lib/gettime.c: Likewise.
47259         * lib/getugroups.c: Likewise.
47260         * lib/getugroups.h: Likewise.
47261         * lib/getusershell.c: Likewise.
47262         * lib/gl_anyavltree_list1.h: Likewise.
47263         * lib/gl_anyavltree_list2.h: Likewise.
47264         * lib/gl_anyhash_list1.h: Likewise.
47265         * lib/gl_anyhash_list2.h: Likewise.
47266         * lib/gl_anylinked_list1.h: Likewise.
47267         * lib/gl_anylinked_list2.h: Likewise.
47268         * lib/gl_anyrbtree_list1.h: Likewise.
47269         * lib/gl_anyrbtree_list2.h: Likewise.
47270         * lib/gl_anytree_list1.h: Likewise.
47271         * lib/gl_anytree_list2.h: Likewise.
47272         * lib/gl_anytree_oset.h: Likewise.
47273         * lib/gl_anytreehash_list1.h: Likewise.
47274         * lib/gl_anytreehash_list2.h: Likewise.
47275         * lib/gl_array_list.c: Likewise.
47276         * lib/gl_array_list.h: Likewise.
47277         * lib/gl_array_oset.c: Likewise.
47278         * lib/gl_array_oset.h: Likewise.
47279         * lib/gl_avltree_list.c: Likewise.
47280         * lib/gl_avltree_list.h: Likewise.
47281         * lib/gl_avltree_oset.c: Likewise.
47282         * lib/gl_avltree_oset.h: Likewise.
47283         * lib/gl_avltreehash_list.c: Likewise.
47284         * lib/gl_avltreehash_list.h: Likewise.
47285         * lib/gl_carray_list.c: Likewise.
47286         * lib/gl_carray_list.h: Likewise.
47287         * lib/gl_linked_list.c: Likewise.
47288         * lib/gl_linked_list.h: Likewise.
47289         * lib/gl_linkedhash_list.c: Likewise.
47290         * lib/gl_linkedhash_list.h: Likewise.
47291         * lib/gl_list.c: Likewise.
47292         * lib/gl_list.h: Likewise.
47293         * lib/gl_oset.c: Likewise.
47294         * lib/gl_oset.h: Likewise.
47295         * lib/gl_rbtree_list.c: Likewise.
47296         * lib/gl_rbtree_list.h: Likewise.
47297         * lib/gl_rbtree_oset.c: Likewise.
47298         * lib/gl_rbtree_oset.h: Likewise.
47299         * lib/gl_rbtreehash_list.c: Likewise.
47300         * lib/gl_rbtreehash_list.h: Likewise.
47301         * lib/gl_sublist.c: Likewise.
47302         * lib/gl_sublist.h: Likewise.
47303         * lib/group-member.c: Likewise.
47304         * lib/group-member.h: Likewise.
47305         * lib/hard-locale.c: Likewise.
47306         * lib/hard-locale.h: Likewise.
47307         * lib/hash-pjw.c: Likewise.
47308         * lib/hash-pjw.h: Likewise.
47309         * lib/hash-triple.c: Likewise.
47310         * lib/hash.c: Likewise.
47311         * lib/hash.h: Likewise.
47312         * lib/human.c: Likewise.
47313         * lib/human.h: Likewise.
47314         * lib/i-ring.c: Likewise.
47315         * lib/i-ring.h: Likewise.
47316         * lib/idcache.c: Likewise.
47317         * lib/imaxabs.c: Likewise.
47318         * lib/imaxdiv.c: Likewise.
47319         * lib/inet_pton.c: Likewise.
47320         * lib/inet_pton.h: Likewise.
47321         * lib/intprops.h: Likewise.
47322         * lib/inttostr.c: Likewise.
47323         * lib/inttostr.h: Likewise.
47324         * lib/inttypes.in.h: Likewise.
47325         * lib/isapipe.c: Likewise.
47326         * lib/isdir.c: Likewise.
47327         * lib/isnan.c: Likewise.
47328         * lib/isnan.h: Likewise.
47329         * lib/isnanf.c: Likewise.
47330         * lib/isnanf.h: Likewise.
47331         * lib/isnanl-nolibm.h: Likewise.
47332         * lib/isnanl.c: Likewise.
47333         * lib/isnanl.h: Likewise.
47334         * lib/javacomp.c: Likewise.
47335         * lib/javacomp.h: Likewise.
47336         * lib/javaexec.c: Likewise.
47337         * lib/javaexec.h: Likewise.
47338         * lib/javaversion.c: Likewise.
47339         * lib/javaversion.h: Likewise.
47340         * lib/javaversion.java: Likewise.
47341         * lib/lbrkprop.h: Likewise.
47342         * lib/lchmod.h: Likewise.
47343         * lib/lchown.c: Likewise.
47344         * lib/ldexpl.c: Likewise.
47345         * lib/linebreak.c: Likewise.
47346         * lib/linebreak.h: Likewise.
47347         * lib/linebuffer.c: Likewise.
47348         * lib/linebuffer.h: Likewise.
47349         * lib/locale.in.h: Likewise.
47350         * lib/logl.c: Likewise.
47351         * lib/long-options.c: Likewise.
47352         * lib/long-options.h: Likewise.
47353         * lib/lstat.c: Likewise.
47354         * lib/lstat.h: Likewise.
47355         * lib/math.in.h: Likewise.
47356         * lib/mbchar.c: Likewise.
47357         * lib/mbchar.h: Likewise.
47358         * lib/mbfile.h: Likewise.
47359         * lib/mbiter.h: Likewise.
47360         * lib/mbscasecmp.c: Likewise.
47361         * lib/mbscasestr.c: Likewise.
47362         * lib/mbschr.c: Likewise.
47363         * lib/mbscspn.c: Likewise.
47364         * lib/mbslen.c: Likewise.
47365         * lib/mbsncasecmp.c: Likewise.
47366         * lib/mbsnlen.c: Likewise.
47367         * lib/mbspbrk.c: Likewise.
47368         * lib/mbspcasecmp.c: Likewise.
47369         * lib/mbsrchr.c: Likewise.
47370         * lib/mbssep.c: Likewise.
47371         * lib/mbsspn.c: Likewise.
47372         * lib/mbsstr.c: Likewise.
47373         * lib/mbstok_r.c: Likewise.
47374         * lib/mbswidth.c: Likewise.
47375         * lib/mbswidth.h: Likewise.
47376         * lib/mbuiter.h: Likewise.
47377         * lib/memcasecmp.c: Likewise.
47378         * lib/memcasecmp.h: Likewise.
47379         * lib/memchr.c: Likewise.
47380         * lib/memcmp.c: Likewise.
47381         * lib/memcoll.c: Likewise.
47382         * lib/memcoll.h: Likewise.
47383         * lib/memcpy.c: Likewise.
47384         * lib/memrchr.c: Likewise.
47385         * lib/mkancesdirs.c: Likewise.
47386         * lib/mkdir-p.c: Likewise.
47387         * lib/mkdir-p.h: Likewise.
47388         * lib/mkdir.c: Likewise.
47389         * lib/mkdirat.c: Likewise.
47390         * lib/mkdtemp.c: Likewise.
47391         * lib/mkstemp-safer.c: Likewise.
47392         * lib/mkstemp.c: Likewise.
47393         * lib/modechange.c: Likewise.
47394         * lib/modechange.h: Likewise.
47395         * lib/mountlist.c: Likewise.
47396         * lib/mountlist.h: Likewise.
47397         * lib/mpsort.c: Likewise.
47398         * lib/nanosleep.c: Likewise.
47399         * lib/obstack.c: Likewise.
47400         * lib/obstack.h: Likewise.
47401         * lib/open-safer.c: Likewise.
47402         * lib/open.c: Likewise.
47403         * lib/openat-die.c: Likewise.
47404         * lib/openat-priv.h: Likewise.
47405         * lib/openat-proc.c: Likewise.
47406         * lib/openat.c: Likewise.
47407         * lib/openat.h: Likewise.
47408         * lib/pagealign_alloc.c: Likewise.
47409         * lib/pagealign_alloc.h: Likewise.
47410         * lib/physmem.c: Likewise.
47411         * lib/physmem.h: Likewise.
47412         * lib/pipe-safer.c: Likewise.
47413         * lib/pipe.c: Likewise.
47414         * lib/pipe.h: Likewise.
47415         * lib/posixtm.c: Likewise.
47416         * lib/posixtm.h: Likewise.
47417         * lib/posixver.c: Likewise.
47418         * lib/printf-frexp.c: Likewise.
47419         * lib/printf-frexp.h: Likewise.
47420         * lib/printf-frexpl.c: Likewise.
47421         * lib/printf-frexpl.h: Likewise.
47422         * lib/printf.c: Likewise.
47423         * lib/progname.c: Likewise.
47424         * lib/progname.h: Likewise.
47425         * lib/progreloc.c: Likewise.
47426         * lib/putenv.c: Likewise.
47427         * lib/quote.c: Likewise.
47428         * lib/quote.h: Likewise.
47429         * lib/quotearg.c: Likewise.
47430         * lib/quotearg.h: Likewise.
47431         * lib/raise.c: Likewise.
47432         * lib/readline.c: Likewise.
47433         * lib/readline.h: Likewise.
47434         * lib/readlink.c: Likewise.
47435         * lib/readtokens.c: Likewise.
47436         * lib/readtokens.h: Likewise.
47437         * lib/readtokens0.c: Likewise.
47438         * lib/readtokens0.h: Likewise.
47439         * lib/readutmp.c: Likewise.
47440         * lib/readutmp.h: Likewise.
47441         * lib/realloc.c: Likewise.
47442         * lib/relocwrapper.c: Likewise.
47443         * lib/rename-dest-slash.c: Likewise.
47444         * lib/rename.c: Likewise.
47445         * lib/rmdir.c: Likewise.
47446         * lib/rpmatch.c: Likewise.
47447         * lib/safe-read.c: Likewise.
47448         * lib/safe-read.h: Likewise.
47449         * lib/safe-write.c: Likewise.
47450         * lib/safe-write.h: Likewise.
47451         * lib/same-inode.h: Likewise.
47452         * lib/same.c: Likewise.
47453         * lib/same.h: Likewise.
47454         * lib/save-cwd.c: Likewise.
47455         * lib/save-cwd.h: Likewise.
47456         * lib/savedir.c: Likewise.
47457         * lib/savedir.h: Likewise.
47458         * lib/savewd.c: Likewise.
47459         * lib/savewd.h: Likewise.
47460         * lib/search.in.h: Likewise.
47461         * lib/setenv.c: Likewise.
47462         * lib/setenv.h: Likewise.
47463         * lib/settime.c: Likewise.
47464         * lib/sh-quote.c: Likewise.
47465         * lib/sh-quote.h: Likewise.
47466         * lib/sig2str.c: Likewise.
47467         * lib/sig2str.h: Likewise.
47468         * lib/signal.in.h: Likewise.
47469         * lib/signbitd.c: Likewise.
47470         * lib/signbitf.c: Likewise.
47471         * lib/signbitl.c: Likewise.
47472         * lib/sigprocmask.c: Likewise.
47473         * lib/sincosl.c: Likewise.
47474         * lib/sleep.c: Likewise.
47475         * lib/sprintf.c: Likewise.
47476         * lib/sqrtl.c: Likewise.
47477         * lib/stat-time.h: Likewise.
47478         * lib/stdio--.h: Likewise.
47479         * lib/stdio-safer.h: Likewise.
47480         * lib/stdlib--.h: Likewise.
47481         * lib/stdlib-safer.h: Likewise.
47482         * lib/stdlib.in.h: Likewise.
47483         * lib/stpcpy.c: Likewise.
47484         * lib/stpncpy.c: Likewise.
47485         * lib/strchrnul.c: Likewise.
47486         * lib/strcspn.c: Likewise.
47487         * lib/strerror.c: Likewise.
47488         * lib/strftime.c: Likewise.
47489         * lib/strftime.h: Likewise.
47490         * lib/striconveh.c: Likewise.
47491         * lib/striconveh.h: Likewise.
47492         * lib/striconveha.c: Likewise.
47493         * lib/striconveha.h: Likewise.
47494         * lib/stripslash.c: Likewise.
47495         * lib/strnlen1.c: Likewise.
47496         * lib/strnlen1.h: Likewise.
47497         * lib/strtod.c: Likewise.
47498         * lib/strtoimax.c: Likewise.
47499         * lib/strtok_r.c: Likewise.
47500         * lib/strtol.c: Likewise.
47501         * lib/strtoll.c: Likewise.
47502         * lib/strtoul.c: Likewise.
47503         * lib/strtoull.c: Likewise.
47504         * lib/sysexits.in.h: Likewise.
47505         * lib/tempname.c: Likewise.
47506         * lib/tempname.h: Likewise.
47507         * lib/timespec.h: Likewise.
47508         * lib/tls.c: Likewise.
47509         * lib/tls.h: Likewise.
47510         * lib/tmpdir.c: Likewise.
47511         * lib/tmpdir.h: Likewise.
47512         * lib/tmpfile-safer.c: Likewise.
47513         * lib/tmpfile.c: Likewise.
47514         * lib/trigl.c: Likewise.
47515         * lib/trigl.h: Likewise.
47516         * lib/trim.c: Likewise.
47517         * lib/trim.h: Likewise.
47518         * lib/trunc.c: Likewise.
47519         * lib/truncf.c: Likewise.
47520         * lib/truncl.c: Likewise.
47521         * lib/tsearch.c: Likewise.
47522         * lib/unicodeio.c: Likewise.
47523         * lib/unicodeio.h: Likewise.
47524         * lib/unistd--.h: Likewise.
47525         * lib/unistd-safer.h: Likewise.
47526         * lib/unistdio/ulc-fprintf.c: Likewise.
47527         * lib/unistdio/ulc-vfprintf.c: Likewise.
47528         * lib/unlinkdir.c: Likewise.
47529         * lib/unlinkdir.h: Likewise.
47530         * lib/unlocked-io.h: Likewise.
47531         * lib/unsetenv.c: Likewise.
47532         * lib/userspec.c: Likewise.
47533         * lib/utime.c: Likewise.
47534         * lib/utimecmp.c: Likewise.
47535         * lib/utimecmp.h: Likewise.
47536         * lib/utimens.c: Likewise.
47537         * lib/verify.h: Likewise.
47538         * lib/verror.c: Likewise.
47539         * lib/verror.h: Likewise.
47540         * lib/version-etc-fsf.c: Likewise.
47541         * lib/version-etc.c: Likewise.
47542         * lib/version-etc.h: Likewise.
47543         * lib/vfprintf.c: Likewise.
47544         * lib/vprintf.c: Likewise.
47545         * lib/vsprintf.c: Likewise.
47546         * lib/w32spawn.h: Likewise.
47547         * lib/wait-process.c: Likewise.
47548         * lib/wait-process.h: Likewise.
47549         * lib/wcwidth.c: Likewise.
47550         * lib/write-any-file.c: Likewise.
47551         * lib/xalloc-die.c: Likewise.
47552         * lib/xalloc.h: Likewise.
47553         * lib/xasprintf.c: Likewise.
47554         * lib/xgetcwd.c: Likewise.
47555         * lib/xgetcwd.h: Likewise.
47556         * lib/xgetdomainname.c: Likewise.
47557         * lib/xgetdomainname.h: Likewise.
47558         * lib/xgethostname.c: Likewise.
47559         * lib/xmalloc.c: Likewise.
47560         * lib/xmalloca.c: Likewise.
47561         * lib/xmalloca.h: Likewise.
47562         * lib/xmemcoll.c: Likewise.
47563         * lib/xnanosleep.c: Likewise.
47564         * lib/xreadlink.c: Likewise.
47565         * lib/xreadlink.h: Likewise.
47566         * lib/xsetenv.c: Likewise.
47567         * lib/xsetenv.h: Likewise.
47568         * lib/xstriconv.c: Likewise.
47569         * lib/xstriconv.h: Likewise.
47570         * lib/xstrndup.c: Likewise.
47571         * lib/xstrndup.h: Likewise.
47572         * lib/xstrtod.c: Likewise.
47573         * lib/xstrtod.h: Likewise.
47574         * lib/xstrtol-error.c: Likewise.
47575         * lib/xstrtol.c: Likewise.
47576         * lib/xstrtol.h: Likewise.
47577         * lib/xtime.h: Likewise.
47578         * lib/xvasprintf.c: Likewise.
47579         * lib/xvasprintf.h: Likewise.
47580         * lib/yesno.c: Likewise.
47581         * lib/yesno.h: Likewise.
47582         * posix-modules: Likewise.
47583         * tests/test-alloca-opt.c: Likewise.
47584         * tests/test-arcfour.c: Likewise.
47585         * tests/test-arctwo.c: Likewise.
47586         * tests/test-argmatch.c: Likewise.
47587         * tests/test-argp-2.sh: Likewise.
47588         * tests/test-argp.c: Likewise.
47589         * tests/test-arpa_inet.c: Likewise.
47590         * tests/test-array_list.c: Likewise.
47591         * tests/test-array_oset.c: Likewise.
47592         * tests/test-atexit.c: Likewise.
47593         * tests/test-avltree_list.c: Likewise.
47594         * tests/test-avltree_oset.c: Likewise.
47595         * tests/test-avltreehash_list.c: Likewise.
47596         * tests/test-base64.c: Likewise.
47597         * tests/test-binary-io.c: Likewise.
47598         * tests/test-byteswap.c: Likewise.
47599         * tests/test-c-ctype.c: Likewise.
47600         * tests/test-c-strcasecmp.c: Likewise.
47601         * tests/test-c-strcasestr.c: Likewise.
47602         * tests/test-c-strncasecmp.c: Likewise.
47603         * tests/test-c-strstr.c: Likewise.
47604         * tests/test-canonicalize-lgpl.c: Likewise.
47605         * tests/test-canonicalize.c: Likewise.
47606         * tests/test-carray_list.c: Likewise.
47607         * tests/test-ceilf.c: Likewise.
47608         * tests/test-ceill.c: Likewise.
47609         * tests/test-count-one-bits.c: Likewise.
47610         * tests/test-crc.c: Likewise.
47611         * tests/test-dirname.c: Likewise.
47612         * tests/test-fbufmode.c: Likewise.
47613         * tests/test-fcntl.c: Likewise.
47614         * tests/test-fflush.c: Likewise.
47615         * tests/test-floorf.c: Likewise.
47616         * tests/test-floorl.c: Likewise.
47617         * tests/test-fopen.c: Likewise.
47618         * tests/test-fprintf-posix.c: Likewise.
47619         * tests/test-fprintf-posix.h: Likewise.
47620         * tests/test-fpurge.c: Likewise.
47621         * tests/test-freadable.c: Likewise.
47622         * tests/test-freadahead.c: Likewise.
47623         * tests/test-freading.c: Likewise.
47624         * tests/test-freopen.c: Likewise.
47625         * tests/test-frexp.c: Likewise.
47626         * tests/test-frexpl.c: Likewise.
47627         * tests/test-fseek.c: Likewise.
47628         * tests/test-fseeko.c: Likewise.
47629         * tests/test-fseterr.c: Likewise.
47630         * tests/test-fstrcmp.c: Likewise.
47631         * tests/test-ftell.c: Likewise.
47632         * tests/test-ftello.c: Likewise.
47633         * tests/test-fwritable.c: Likewise.
47634         * tests/test-fwriting.c: Likewise.
47635         * tests/test-getaddrinfo.c: Likewise.
47636         * tests/test-getpass.c: Likewise.
47637         * tests/test-gettimeofday.c: Likewise.
47638         * tests/test-hmac-md5.c: Likewise.
47639         * tests/test-hmac-sha1.c: Likewise.
47640         * tests/test-iconv.c: Likewise.
47641         * tests/test-iconvme.c: Likewise.
47642         * tests/test-inttypes.c: Likewise.
47643         * tests/test-isnan.c: Likewise.
47644         * tests/test-isnanf.c: Likewise.
47645         * tests/test-isnanl-nolibm.c: Likewise.
47646         * tests/test-isnanl.c: Likewise.
47647         * tests/test-isnanl.h: Likewise.
47648         * tests/test-ldexpl.c: Likewise.
47649         * tests/test-linked_list.c: Likewise.
47650         * tests/test-linkedhash_list.c: Likewise.
47651         * tests/test-locale.c: Likewise.
47652         * tests/test-localename.c: Likewise.
47653         * tests/test-lock.c: Likewise.
47654         * tests/test-lseek.c: Likewise.
47655         * tests/test-malloca.c: Likewise.
47656         * tests/test-math.c: Likewise.
47657         * tests/test-mbscasecmp.c: Likewise.
47658         * tests/test-mbscasestr1.c: Likewise.
47659         * tests/test-mbscasestr2.c: Likewise.
47660         * tests/test-mbscasestr3.c: Likewise.
47661         * tests/test-mbscasestr4.c: Likewise.
47662         * tests/test-mbschr.c: Likewise.
47663         * tests/test-mbscspn.c: Likewise.
47664         * tests/test-mbsncasecmp.c: Likewise.
47665         * tests/test-mbspbrk.c: Likewise.
47666         * tests/test-mbspcasecmp.c: Likewise.
47667         * tests/test-mbsrchr.c: Likewise.
47668         * tests/test-mbsspn.c: Likewise.
47669         * tests/test-mbsstr1.c: Likewise.
47670         * tests/test-mbsstr2.c: Likewise.
47671         * tests/test-mbsstr3.c: Likewise.
47672         * tests/test-md5.c: Likewise.
47673         * tests/test-memmem.c: Likewise.
47674         * tests/test-netinet_in.c: Likewise.
47675         * tests/test-open.c: Likewise.
47676         * tests/test-printf-frexp.c: Likewise.
47677         * tests/test-printf-frexpl.c: Likewise.
47678         * tests/test-printf-posix.c: Likewise.
47679         * tests/test-printf-posix.h: Likewise.
47680         * tests/test-rbtree_list.c: Likewise.
47681         * tests/test-rbtree_oset.c: Likewise.
47682         * tests/test-rbtreehash_list.c: Likewise.
47683         * tests/test-read-file.c: Likewise.
47684         * tests/test-rijndael.c: Likewise.
47685         * tests/test-search.c: Likewise.
47686         * tests/test-signbit.c: Likewise.
47687         * tests/test-sleep.c: Likewise.
47688         * tests/test-snprintf-posix.c: Likewise.
47689         * tests/test-snprintf-posix.h: Likewise.
47690         * tests/test-snprintf.c: Likewise.
47691         * tests/test-sprintf-posix.c: Likewise.
47692         * tests/test-sprintf-posix.h: Likewise.
47693         * tests/test-stat-time.c: Likewise.
47694         * tests/test-stdbool.c: Likewise.
47695         * tests/test-stdint.c: Likewise.
47696         * tests/test-stdio.c: Likewise.
47697         * tests/test-stdlib.c: Likewise.
47698         * tests/test-stpncpy.c: Likewise.
47699         * tests/test-strcasestr.c: Likewise.
47700         * tests/test-striconv.c: Likewise.
47701         * tests/test-striconveh.c: Likewise.
47702         * tests/test-striconveha.c: Likewise.
47703         * tests/test-string.c: Likewise.
47704         * tests/test-sys_select.c: Likewise.
47705         * tests/test-sys_socket.c: Likewise.
47706         * tests/test-sys_stat.c: Likewise.
47707         * tests/test-sys_time.c: Likewise.
47708         * tests/test-sysexits.c: Likewise.
47709         * tests/test-time.c: Likewise.
47710         * tests/test-tls.c: Likewise.
47711         * tests/test-trunc.c: Likewise.
47712         * tests/test-truncf.c: Likewise.
47713         * tests/test-truncl.c: Likewise.
47714         * tests/test-unistd.c: Likewise.
47715         * tests/test-vasnprintf-posix.c: Likewise.
47716         * tests/test-vasnprintf-posix2.c: Likewise.
47717         * tests/test-vasnprintf.c: Likewise.
47718         * tests/test-vasprintf-posix.c: Likewise.
47719         * tests/test-vasprintf.c: Likewise.
47720         * tests/test-verify.c: Likewise.
47721         * tests/test-vfprintf-posix.c: Likewise.
47722         * tests/test-vprintf-posix.c: Likewise.
47723         * tests/test-vsnprintf-posix.c: Likewise.
47724         * tests/test-vsnprintf.c: Likewise.
47725         * tests/test-vsprintf-posix.c: Likewise.
47726         * tests/test-wchar.c: Likewise.
47727         * tests/test-wctype.c: Likewise.
47728         * tests/test-wcwidth.c: Likewise.
47729         * tests/test-xstrtol.c: Likewise.
47730         * tests/test-xvasprintf.c: Likewise.
47731         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47732         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47733         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47734         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47735         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47736         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47737         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47738         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47739         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47740         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47741         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47742         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47743         * tests/uniname/test-uninames.c: Likewise.
47744         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47745         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47746         * tests/unistdio/test-u16-printf1.h: Likewise.
47747         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47748         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47749         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47750         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47751         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47752         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47753         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47754         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47755         * tests/unistdio/test-u32-printf1.h: Likewise.
47756         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47757         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47758         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47759         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47760         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47761         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47762         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47763         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47764         * tests/unistdio/test-u8-printf1.h: Likewise.
47765         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47766         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47767         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47768         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47769         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47770         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47771         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47772         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47773         * tests/unistdio/test-ulc-printf1.h: Likewise.
47774         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47775         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47776         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47777         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47778         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47779         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47780         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47781         * tests/uniwidth/test-u16-width.c: Likewise.
47782         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47783         * tests/uniwidth/test-u32-width.c: Likewise.
47784         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47785         * tests/uniwidth/test-u8-width.c: Likewise.
47786         * tests/uniwidth/test-uc_width.c: Likewise.
47787         * config/srclist-update: Likewise.
47788         (fixlicense): Update to GPLv3+.
47789
47790         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47791         * tests/test-tsearch.c: Change copyright notice.
47792
47793         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47794         * lib/c-strcaseeq.h: Change copyright notice.
47795         * lib/streq.h: Likewise.
47796         * lib/uniconv.h: Likewise.
47797         * lib/uniconv/u-conv-from-enc.h: Likewise.
47798         * lib/uniconv/u-conv-to-enc.h: Likewise.
47799         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47800         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47801         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47802         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47803         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47804         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47805         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47806         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47807         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47808         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47809         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47810         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47811         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47812         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47813         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47814         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47815         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47816         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47817         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47818         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47819         * lib/uniname.h: Likewise.
47820         * lib/uniname/uniname.c: Likewise.
47821         * lib/unistdio.h: Likewise.
47822         * lib/unistdio/u-asnprintf.h: Likewise.
47823         * lib/unistdio/u-asprintf.h: Likewise.
47824         * lib/unistdio/u-printf-args.c: Likewise.
47825         * lib/unistdio/u-printf-args.h: Likewise.
47826         * lib/unistdio/u-printf-parse.h: Likewise.
47827         * lib/unistdio/u-snprintf.h: Likewise.
47828         * lib/unistdio/u-sprintf.h: Likewise.
47829         * lib/unistdio/u-vasprintf.h: Likewise.
47830         * lib/unistdio/u-vsnprintf.h: Likewise.
47831         * lib/unistdio/u-vsprintf.h: Likewise.
47832         * lib/unistdio/u16-asnprintf.c: Likewise.
47833         * lib/unistdio/u16-asprintf.c: Likewise.
47834         * lib/unistdio/u16-printf-parse.c: Likewise.
47835         * lib/unistdio/u16-snprintf.c: Likewise.
47836         * lib/unistdio/u16-sprintf.c: Likewise.
47837         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47838         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47839         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47840         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47841         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47842         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47843         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47844         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47845         * lib/unistdio/u16-vasnprintf.c: Likewise.
47846         * lib/unistdio/u16-vasprintf.c: Likewise.
47847         * lib/unistdio/u16-vsnprintf.c: Likewise.
47848         * lib/unistdio/u16-vsprintf.c: Likewise.
47849         * lib/unistdio/u32-asnprintf.c: Likewise.
47850         * lib/unistdio/u32-asprintf.c: Likewise.
47851         * lib/unistdio/u32-printf-parse.c: Likewise.
47852         * lib/unistdio/u32-snprintf.c: Likewise.
47853         * lib/unistdio/u32-sprintf.c: Likewise.
47854         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47855         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47856         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47857         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47858         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47859         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47860         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47861         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47862         * lib/unistdio/u32-vasnprintf.c: Likewise.
47863         * lib/unistdio/u32-vasprintf.c: Likewise.
47864         * lib/unistdio/u32-vsnprintf.c: Likewise.
47865         * lib/unistdio/u32-vsprintf.c: Likewise.
47866         * lib/unistdio/u8-asnprintf.c: Likewise.
47867         * lib/unistdio/u8-asprintf.c: Likewise.
47868         * lib/unistdio/u8-printf-parse.c: Likewise.
47869         * lib/unistdio/u8-snprintf.c: Likewise.
47870         * lib/unistdio/u8-sprintf.c: Likewise.
47871         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47872         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47873         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47874         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47875         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47876         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47877         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47878         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47879         * lib/unistdio/u8-vasnprintf.c: Likewise.
47880         * lib/unistdio/u8-vasprintf.c: Likewise.
47881         * lib/unistdio/u8-vsnprintf.c: Likewise.
47882         * lib/unistdio/u8-vsprintf.c: Likewise.
47883         * lib/unistdio/ulc-asnprintf.c: Likewise.
47884         * lib/unistdio/ulc-asprintf.c: Likewise.
47885         * lib/unistdio/ulc-printf-parse.c: Likewise.
47886         * lib/unistdio/ulc-snprintf.c: Likewise.
47887         * lib/unistdio/ulc-sprintf.c: Likewise.
47888         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47889         * lib/unistdio/ulc-vasprintf.c: Likewise.
47890         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47891         * lib/unistdio/ulc-vsprintf.c: Likewise.
47892         * lib/unistr.h: Likewise.
47893         * lib/unistr/u-cpy-alloc.h: Likewise.
47894         * lib/unistr/u-cpy.h: Likewise.
47895         * lib/unistr/u-endswith.h: Likewise.
47896         * lib/unistr/u-move.h: Likewise.
47897         * lib/unistr/u-set.h: Likewise.
47898         * lib/unistr/u-startswith.h: Likewise.
47899         * lib/unistr/u-stpcpy.h: Likewise.
47900         * lib/unistr/u-stpncpy.h: Likewise.
47901         * lib/unistr/u-strcat.h: Likewise.
47902         * lib/unistr/u-strcpy.h: Likewise.
47903         * lib/unistr/u-strcspn.h: Likewise.
47904         * lib/unistr/u-strdup.h: Likewise.
47905         * lib/unistr/u-strlen.h: Likewise.
47906         * lib/unistr/u-strncat.h: Likewise.
47907         * lib/unistr/u-strncpy.h: Likewise.
47908         * lib/unistr/u-strnlen.h: Likewise.
47909         * lib/unistr/u-strpbrk.h: Likewise.
47910         * lib/unistr/u-strspn.h: Likewise.
47911         * lib/unistr/u-strstr.h: Likewise.
47912         * lib/unistr/u-strtok.h: Likewise.
47913         * lib/unistr/u16-check.c: Likewise.
47914         * lib/unistr/u16-chr.c: Likewise.
47915         * lib/unistr/u16-cmp.c: Likewise.
47916         * lib/unistr/u16-cpy-alloc.c: Likewise.
47917         * lib/unistr/u16-cpy.c: Likewise.
47918         * lib/unistr/u16-endswith.c: Likewise.
47919         * lib/unistr/u16-mblen.c: Likewise.
47920         * lib/unistr/u16-mbsnlen.c: Likewise.
47921         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47922         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47923         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47924         * lib/unistr/u16-mbtouc.c: Likewise.
47925         * lib/unistr/u16-mbtoucr.c: Likewise.
47926         * lib/unistr/u16-move.c: Likewise.
47927         * lib/unistr/u16-next.c: Likewise.
47928         * lib/unistr/u16-prev.c: Likewise.
47929         * lib/unistr/u16-set.c: Likewise.
47930         * lib/unistr/u16-startswith.c: Likewise.
47931         * lib/unistr/u16-stpcpy.c: Likewise.
47932         * lib/unistr/u16-stpncpy.c: Likewise.
47933         * lib/unistr/u16-strcat.c: Likewise.
47934         * lib/unistr/u16-strchr.c: Likewise.
47935         * lib/unistr/u16-strcmp.c: Likewise.
47936         * lib/unistr/u16-strcpy.c: Likewise.
47937         * lib/unistr/u16-strcspn.c: Likewise.
47938         * lib/unistr/u16-strdup.c: Likewise.
47939         * lib/unistr/u16-strlen.c: Likewise.
47940         * lib/unistr/u16-strmblen.c: Likewise.
47941         * lib/unistr/u16-strmbtouc.c: Likewise.
47942         * lib/unistr/u16-strncat.c: Likewise.
47943         * lib/unistr/u16-strncmp.c: Likewise.
47944         * lib/unistr/u16-strncpy.c: Likewise.
47945         * lib/unistr/u16-strnlen.c: Likewise.
47946         * lib/unistr/u16-strpbrk.c: Likewise.
47947         * lib/unistr/u16-strrchr.c: Likewise.
47948         * lib/unistr/u16-strspn.c: Likewise.
47949         * lib/unistr/u16-strstr.c: Likewise.
47950         * lib/unistr/u16-strtok.c: Likewise.
47951         * lib/unistr/u16-to-u32.c: Likewise.
47952         * lib/unistr/u16-to-u8.c: Likewise.
47953         * lib/unistr/u16-uctomb-aux.c: Likewise.
47954         * lib/unistr/u16-uctomb.c: Likewise.
47955         * lib/unistr/u32-check.c: Likewise.
47956         * lib/unistr/u32-chr.c: Likewise.
47957         * lib/unistr/u32-cmp.c: Likewise.
47958         * lib/unistr/u32-cpy-alloc.c: Likewise.
47959         * lib/unistr/u32-cpy.c: Likewise.
47960         * lib/unistr/u32-endswith.c: Likewise.
47961         * lib/unistr/u32-mblen.c: Likewise.
47962         * lib/unistr/u32-mbsnlen.c: Likewise.
47963         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47964         * lib/unistr/u32-mbtouc.c: Likewise.
47965         * lib/unistr/u32-mbtoucr.c: Likewise.
47966         * lib/unistr/u32-move.c: Likewise.
47967         * lib/unistr/u32-next.c: Likewise.
47968         * lib/unistr/u32-prev.c: Likewise.
47969         * lib/unistr/u32-set.c: Likewise.
47970         * lib/unistr/u32-startswith.c: Likewise.
47971         * lib/unistr/u32-stpcpy.c: Likewise.
47972         * lib/unistr/u32-stpncpy.c: Likewise.
47973         * lib/unistr/u32-strcat.c: Likewise.
47974         * lib/unistr/u32-strchr.c: Likewise.
47975         * lib/unistr/u32-strcmp.c: Likewise.
47976         * lib/unistr/u32-strcpy.c: Likewise.
47977         * lib/unistr/u32-strcspn.c: Likewise.
47978         * lib/unistr/u32-strdup.c: Likewise.
47979         * lib/unistr/u32-strlen.c: Likewise.
47980         * lib/unistr/u32-strmblen.c: Likewise.
47981         * lib/unistr/u32-strmbtouc.c: Likewise.
47982         * lib/unistr/u32-strncat.c: Likewise.
47983         * lib/unistr/u32-strncmp.c: Likewise.
47984         * lib/unistr/u32-strncpy.c: Likewise.
47985         * lib/unistr/u32-strnlen.c: Likewise.
47986         * lib/unistr/u32-strpbrk.c: Likewise.
47987         * lib/unistr/u32-strrchr.c: Likewise.
47988         * lib/unistr/u32-strspn.c: Likewise.
47989         * lib/unistr/u32-strstr.c: Likewise.
47990         * lib/unistr/u32-strtok.c: Likewise.
47991         * lib/unistr/u32-to-u16.c: Likewise.
47992         * lib/unistr/u32-to-u8.c: Likewise.
47993         * lib/unistr/u32-uctomb.c: Likewise.
47994         * lib/unistr/u8-check.c: Likewise.
47995         * lib/unistr/u8-chr.c: Likewise.
47996         * lib/unistr/u8-cmp.c: Likewise.
47997         * lib/unistr/u8-cpy-alloc.c: Likewise.
47998         * lib/unistr/u8-cpy.c: Likewise.
47999         * lib/unistr/u8-endswith.c: Likewise.
48000         * lib/unistr/u8-mblen.c: Likewise.
48001         * lib/unistr/u8-mbsnlen.c: Likewise.
48002         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48003         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48004         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48005         * lib/unistr/u8-mbtouc.c: Likewise.
48006         * lib/unistr/u8-mbtoucr.c: Likewise.
48007         * lib/unistr/u8-move.c: Likewise.
48008         * lib/unistr/u8-next.c: Likewise.
48009         * lib/unistr/u8-prev.c: Likewise.
48010         * lib/unistr/u8-set.c: Likewise.
48011         * lib/unistr/u8-startswith.c: Likewise.
48012         * lib/unistr/u8-stpcpy.c: Likewise.
48013         * lib/unistr/u8-stpncpy.c: Likewise.
48014         * lib/unistr/u8-strcat.c: Likewise.
48015         * lib/unistr/u8-strchr.c: Likewise.
48016         * lib/unistr/u8-strcmp.c: Likewise.
48017         * lib/unistr/u8-strcpy.c: Likewise.
48018         * lib/unistr/u8-strcspn.c: Likewise.
48019         * lib/unistr/u8-strdup.c: Likewise.
48020         * lib/unistr/u8-strlen.c: Likewise.
48021         * lib/unistr/u8-strmblen.c: Likewise.
48022         * lib/unistr/u8-strmbtouc.c: Likewise.
48023         * lib/unistr/u8-strncat.c: Likewise.
48024         * lib/unistr/u8-strncmp.c: Likewise.
48025         * lib/unistr/u8-strncpy.c: Likewise.
48026         * lib/unistr/u8-strnlen.c: Likewise.
48027         * lib/unistr/u8-strpbrk.c: Likewise.
48028         * lib/unistr/u8-strrchr.c: Likewise.
48029         * lib/unistr/u8-strspn.c: Likewise.
48030         * lib/unistr/u8-strstr.c: Likewise.
48031         * lib/unistr/u8-strtok.c: Likewise.
48032         * lib/unistr/u8-to-u16.c: Likewise.
48033         * lib/unistr/u8-to-u32.c: Likewise.
48034         * lib/unistr/u8-uctomb-aux.c: Likewise.
48035         * lib/unistr/u8-uctomb.c: Likewise.
48036         * lib/unitypes.h: Likewise.
48037         * lib/uniwidth.h: Likewise.
48038         * lib/uniwidth/cjk.h: Likewise.
48039         * lib/uniwidth/u16-strwidth.c: Likewise.
48040         * lib/uniwidth/u16-width.c: Likewise.
48041         * lib/uniwidth/u32-strwidth.c: Likewise.
48042         * lib/uniwidth/u32-width.c: Likewise.
48043         * lib/uniwidth/u8-strwidth.c: Likewise.
48044         * lib/uniwidth/u8-width.c: Likewise.
48045         * lib/uniwidth/width.c: Likewise.
48046
48047 2007-10-07  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
48050         The file is still under LGPL (see modules/inttypes).
48051
48052 2007-10-06  Bruno Haible  <bruno@clisp.org>
48053
48054         * modules/trunc (Dependencies): Add 'extensions'.
48055         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48056         Reported by Ben Pfaff <blp@gnu.org>.
48057
48058 2007-10-06  Bruno Haible  <bruno@clisp.org>
48059
48060         * modules/freopen-tests: New file.
48061         * tests/test-freopen.c: New file.
48062
48063         * modules/fopen-tests: New file.
48064         * tests/test-fopen.c: New file.
48065
48066         * modules/fopen: New file.
48067         * lib/fopen.c: New file.
48068         * m4/fopen.m4: New file.
48069         * modules/freopen: New file.
48070         * lib/freopen.c: New file.
48071         * m4/freopen.m4: New file.
48072         * lib/stdio.in.h (fopen, freopen): New declarations.
48073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48074         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48075         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48076         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48077         * doc/functions/fopen.texi: Mention the 'fopen' module.
48078         * doc/functions/freopen.texi: Mention the 'freopen' module.
48079
48080 2007-10-06  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/open-tests: New file.
48083         * tests/test-open.c: New file.
48084
48085         * modules/open: New file.
48086         * lib/open.c: New file.
48087         * m4/open.m4: New file.
48088         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48089         lib/open.c does.
48090         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48091         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48092         macros.
48093         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48094         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48095         REPLACE_OPEN.
48096         * doc/functions/open.texi: Mention the 'open' module.
48097
48098 2007-10-04  Bruno Haible  <bruno@clisp.org>
48099
48100         * modules/ceill-tests: New file.
48101         * tests/test-ceill.c: New file.
48102
48103         * modules/ceill: New file.
48104         * lib/ceill.c: Replace entire file.
48105         * m4/ceill.m4: New file.
48106         * lib/math.in.h (ceill): Replace declaration.
48107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48108         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48109         * doc/functions/ceill.texi: Mention the 'ceill' module.
48110         * modules/mathl (Files): Remove lib/ceill.c.
48111         (Depends-on): Add ceill.
48112
48113 2007-10-04  Bruno Haible  <bruno@clisp.org>
48114
48115         * modules/ceilf-tests: New file.
48116         * tests/test-ceilf.c: New file.
48117
48118         * modules/ceilf: New file.
48119         * lib/ceil.c: New file.
48120         * lib/ceilf.c: New file.
48121         * m4/ceilf.m4: New file.
48122         * lib/math.in.h (ceilf): New declaration.
48123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48124         HAVE_DECL_CEILF.
48125         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48126         HAVE_DECL_CEILF.
48127         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48128
48129 2007-10-04  Bruno Haible  <bruno@clisp.org>
48130
48131         * modules/floorl-tests: New file.
48132         * tests/test-floorl.c: New file.
48133
48134         * modules/floorl: New file.
48135         * lib/floorl.c: Replace entire file.
48136         * m4/floorl.m4: New file.
48137         * lib/math.in.h (floorl): Replace declaration.
48138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48139         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48140         * doc/functions/floorl.texi: Mention the 'floorl' module.
48141         * modules/mathl (Files): Remove lib/floorl.c.
48142         (Depends-on): Add floorl.
48143
48144 2007-10-04  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/floorf-tests: New file.
48147         * tests/test-floorf.c: New file.
48148
48149         * modules/floorf: New file.
48150         * lib/floor.c: New file.
48151         * lib/floorf.c: New file.
48152         * m4/floorf.m4: New file.
48153         * lib/math.in.h (floorf): New declaration.
48154         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48155         HAVE_DECL_FLOORF.
48156         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48157         HAVE_DECL_FLOORF.
48158         * doc/functions/floorf.texi: Mention the 'floorf' module.
48159
48160 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48161             Bruno Haible  <bruno@clisp.org>
48162
48163         Advertise for the Git server instead of the CVS server.
48164         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48165         repository instead of the CVS one.
48166         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48167         about all VCS systems generically.
48168         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48169
48170 2007-10-04  Bruno Haible  <bruno@clisp.org>
48171
48172         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48173         means.
48174         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48175
48176 2007-10-04  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/truncl-tests: New file.
48179         * tests/test-truncl.c: New file.
48180
48181         * modules/truncl: New file.
48182         * lib/truncl.c: New file.
48183         * m4/truncl.m4: New file.
48184         * lib/math.in.h (truncl): New declaration.
48185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48186         HAVE_DECL_TRUNCL.
48187         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48188         HAVE_DECL_TRUNCL.
48189         * doc/functions/truncl.texi: Mention the 'truncl' module.
48190
48191 2007-10-04  Bruno Haible  <bruno@clisp.org>
48192
48193         * modules/truncf-tests: New file.
48194         * tests/test-truncf.c: New file.
48195
48196         * modules/truncf: New file.
48197         * lib/trunc.c: Make paramerizable through USE_* macros.
48198         * lib/truncf.c: New file.
48199         * m4/truncf.m4: New file.
48200         * lib/math.in.h (truncf): New declaration.
48201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48202         HAVE_DECL_TRUNCF.
48203         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48204         HAVE_DECL_TRUNCF.
48205         * doc/functions/truncf.texi: Mention the 'truncf' module.
48206
48207 2007-10-03  Bruno Haible  <bruno@clisp.org>
48208
48209         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48210         augmentation also for tests modules.
48211         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48212         * modules/atexit-tests (Makefile.am): Likewise.
48213         * modules/binary-io-tests (Makefile.am): Likewise.
48214         * modules/c-strcase-tests (Makefile.am): Likewise.
48215         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48216         * modules/canonicalize-tests (Makefile.am): Likewise.
48217         * modules/closein-tests (Makefile.am): Likewise.
48218         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48219         * modules/freadahead-tests (Makefile.am): Likewise.
48220         * modules/fseek-tests (Makefile.am): Likewise.
48221         * modules/fseeko-tests (Makefile.am): Likewise.
48222         * modules/ftell-tests (Makefile.am): Likewise.
48223         * modules/ftello-tests (Makefile.am): Likewise.
48224         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48225         * modules/isnanl-tests (Makefile.am): Likewise.
48226         * modules/lseek-tests (Makefile.am): Likewise.
48227         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48228         * modules/mbscasestr-tests (Makefile.am): Likewise.
48229         * modules/mbschr-tests (Makefile.am): Likewise.
48230         * modules/mbscspn-tests (Makefile.am): Likewise.
48231         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48232         * modules/mbspbrk-tests (Makefile.am): Likewise.
48233         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48234         * modules/mbsrchr-tests (Makefile.am): Likewise.
48235         * modules/mbsspn-tests (Makefile.am): Likewise.
48236         * modules/mbsstr-tests (Makefile.am): Likewise.
48237         * modules/printf-posix-tests (Makefile.am): Likewise.
48238         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48239         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48240         * modules/tsearch-tests (Makefile.am): Likewise.
48241         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48242         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48243         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48244         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48245         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48246         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48247         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48248         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48249         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48250         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48251         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48252         * modules/xstrtol-tests (Makefile.am): Likewise.
48253         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48254         * modules/yesno-tests (Makefile.am): Likewise.
48255
48256 2007-10-03  Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/trunc-tests: New file.
48259         * tests/test-trunc.c: New file.
48260
48261         * modules/trunc: New file.
48262         * lib/trunc.c: New file.
48263         * m4/trunc.m4: New file.
48264         * lib/math.in.h (trunc): New declaration.
48265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48266         HAVE_DECL_TRUNC.
48267         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48268         HAVE_DECL_TRUNC.
48269         * doc/functions/trunc.texi: Mention the 'trunc' module.
48270
48271 2007-10-03  Bruno Haible  <bruno@clisp.org>
48272
48273         * tests/test-fpending.c: New file, mostly copied
48274         from coreutils/lib/t-fpending.c.
48275         * modules/fpending-tests: New file.
48276
48277 2007-10-03  Bruno Haible  <bruno@clisp.org>
48278
48279         Port the stdio extensions to QNX (untested).
48280         * lib/fseterr.c (fseterr): Add support for QNX.
48281         * lib/fbufmode.c (fbufmode): Likewise.
48282         * lib/freadable.c (freadable): Likewise.
48283         * lib/fwritable.c (fwritable): Likewise.
48284         * lib/freading.c (freading): Likewise.
48285         * lib/fwriting.c (fwriting): Likewise.
48286         * lib/freadahead.c (freadahed): Likewise.
48287         * lib/fpurge.c (fpurge): Likewise.
48288         * lib/fseeko.c (rpl_fseeko): Likewise.
48289
48290 2007-10-03  Bruno Haible  <bruno@clisp.org>
48291             Jim Meyering  <jim@meyering.net>
48292             Eric Blake  <ebb9@byu.net>
48293
48294         * doc/relocatable.texi: Use @command instead of @program.
48295
48296 2007-10-02  Jim Meyering  <jim@meyering.net>
48297
48298         Perform one more "_.h" -> ".in.h" substitution.
48299         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48300         instead of unistd_.h here, too.
48301
48302 2007-10-01  Bruno Haible  <bruno@clisp.org>
48303
48304         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48305         Needed for the alloca-opt module.
48306
48307 2007-09-30  Bruno Haible  <bruno@clisp.org>
48308
48309         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48310         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48311         alloca_.h.
48312         * lib/argz.in.h: Renamed from lib/argz_.h.
48313         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48314         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48315         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48316         byteswap_.h.
48317         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48318         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48319         dirent_.h.
48320         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48321         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48322         fcntl_.h.
48323         * lib/float.in.h: Renamed from lib/float_.h.
48324         * modules/float (Files, Makefile.am): Use float.in.h instead of
48325         float_.h.
48326         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48327         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48328         fnmatch_.h.
48329         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48330         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48331         getopt_.h.
48332         * lib/glob.in.h: Renamed from lib/glob_.h.
48333         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48334         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48335         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48336         iconv_.h.
48337         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48338         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48339         inttypes_.h.
48340         * lib/locale.in.h: Renamed from lib/locale_.h.
48341         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48342         locale_.h.
48343         * lib/math.in.h: Renamed from lib/math_.h.
48344         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48345         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48346         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48347         of netinet_in_.h. Add dependency.
48348         * lib/poll.in.h: Renamed from lib/poll_.h.
48349         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48350         * lib/search.in.h: Renamed from lib/search_.h.
48351         * modules/search (Files, Makefile.am): Use search.in.h instead of
48352         search_.h.
48353         * lib/signal.in.h: Renamed from lib/signal_.h.
48354         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48355         _signal.h.
48356         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48357         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48358         stdbool_.h.
48359         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48360         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48361         stdint_.h.
48362         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48363         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48364         stdio_.h.
48365         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48366         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48367         stdlib_.h.
48368         * lib/string.in.h: Renamed from lib/string_.h.
48369         * modules/string (Files, Makefile.am): Use string.in.h instead of
48370         string_.h.
48371         * doc/gnulib-tool.texi (Initial import): Update.
48372         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48373         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48374         of sys_select_.h. Add dependency.
48375         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48376         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48377         of sys_socket_.h.
48378         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48379         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48380         sys_stat_.h.
48381         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48382         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48383         sys_time_.h.
48384         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48385         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48386         sysexits_.h.
48387         * lib/time.in.h: Renamed from lib/time_.h.
48388         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48389         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48390         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48391         unistd_.h.
48392         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48393         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48394         wchar_.h.
48395         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48396         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48397         wctype_.h.
48398         * build-aux/bootstrap (slurp): Update.
48399         * lib/.cppi-disable: Update.
48400
48401 2007-09-30  Bruno Haible  <bruno@clisp.org>
48402
48403         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48404         Needed on BeOS.
48405
48406 2007-09-30  Bruno Haible  <bruno@clisp.org>
48407
48408         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48409
48410 2007-09-29  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48413
48414 2007-09-29  Bruno Haible  <bruno@clisp.org>
48415
48416         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48417         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48418         * build-aux/install-reloc: Compile also areadlink.c.
48419         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48420
48421 2007-09-29  Bruno Haible  <bruno@clisp.org>
48422
48423         * gnulib-tool (func_emit_initmacro_done): Indentation.
48424
48425 2007-09-29  Bruno Haible  <bruno@clisp.org>
48426
48427         * README: Add CVS checkout update instructions.
48428         Info from Bob Proulx <bob@proulx.com>.
48429
48430 2007-09-28  Eric Blake  <ebb9@byu.net>
48431
48432         Provide move-if-change.
48433         * build-aux/move-if-change: New file, based on best practice
48434         rather than any canonical upstream location.
48435
48436 2007-09-28  Jim Meyering  <jim@meyering.net>
48437
48438         Fix canonicalize loop-detection corner case.
48439         Do not attempt to stat the symlink values stored via seen_triple.
48440         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48441         on linux-2.6.18, (but not 2.6.22).
48442         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48443         triple_compare.  The former compares dev,ino,filename, while the latter
48444         would actually stat dirname(filename) when dev and ino were equal.
48445         * lib/hash-triple.c: Install <string.h>.
48446         (STREQ): Define.
48447         (triple_compare_ino_str): New function.
48448         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48449
48450 2007-09-28  Eric Blake  <ebb9@byu.net>
48451
48452         Enforce that AC_REPLACE_FUNCS files exist.
48453         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48454         override check for typos.
48455
48456         Fix test-closein on Solaris 10.
48457         * tests/test-closein.c (main): Don't assume stdin can be inherited
48458         closed on all systems.
48459         * tests/test-closein.sh: Likewise.
48460         Reported by Piotr Tarnowski.
48461
48462 2007-09-28  Jim Meyering  <jim@meyering.net>
48463
48464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48465
48466 2007-09-27  Jim Meyering  <jim@meyering.net>
48467
48468         canonicalize: Avoid a false-positive cycle failure.
48469         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48470         Sort.  Remove cycle-check.
48471         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48472         not cycle-check.h.
48473         (seen_triple): New function.
48474         (canonicalize_filename_mode): Use it instead of cycle-check.
48475         * tests/test-canonicalize.c: Add a test for this bug.
48476         * tests/test-canonicalize.sh: Set up and run the test.
48477
48478         New module, file-set, from coreutils.
48479         * modules/file-set: Define it.
48480         * lib/file-set.c, lib/file-set.h: Implement.
48481
48482         New module, hash-triple, from coreutils.
48483         * modules/hash-triple: Define it.
48484         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48485
48486 2007-09-25  Eric Blake  <ebb9@byu.net>
48487
48488         Fix strerror on Interix.
48489         * lib/string_.h (strerror): Declare replacement.
48490         * doc/functions/strerror.texi (strerror): Document the Interix
48491         shortcoming.
48492         * modules/string (Makefile.am): Support new hooks.
48493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48494         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48495         gl_FUNC_STRERROR_SEPARATE.
48496         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48497         * lib/strerror.c (rpl_strerror): Provide replacement.
48498         * modules/strerror (Depends-on): Add string.
48499         (configure.ac): Detect use of module.
48500         * tests/test-strerror.c: New file.
48501         * modules/strerror-tests: New test module.
48502         * modules/argp (Depends-on): Add strerror.
48503         * modules/error (Depends-on): Likewise.
48504         Reported by Martin Koeppe.
48505
48506 2007-09-24  Bruno Haible  <bruno@clisp.org>
48507
48508         * README: Update git instructions.
48509
48510 2007-09-24  Eric Blake  <ebb9@byu.net>
48511
48512         Revert fpending breakage from 2007-09-08.
48513         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48514         __fpending.c.
48515
48516 2007-09-24  Jim Meyering  <jim@meyering.net>
48517
48518         filenamecat.c: Add a test.
48519         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48520         showing how the function works when DIR is the empty string.
48521
48522 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48523
48524         * tests/test-canonicalize.sh: Turn on executable bit.
48525
48526 2007-09-19  Eric Blake  <ebb9@byu.net>
48527
48528         * README: Update CVS instructions.
48529
48530 2007-09-18  Bruno Haible  <bruno@clisp.org>
48531
48532         * modules/areadlink: New file.
48533         * lib/areadlink.h (areadlink): New declaration.
48534         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48535
48536 2007-09-17  Jim Meyering  <jim@meyering.net>
48537
48538         * lib/savewd.c (ESTALE) [!defined]: Define.
48539         Reported to be required on Interix by Martin Koeppe.
48540
48541 2007-09-17  Bruno Haible  <bruno@clisp.org>
48542
48543         * gnulib-tool (func_version): Use $version.
48544
48545 2007-09-16  Bruno Haible  <bruno@clisp.org>
48546
48547         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48548         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48549         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48550         Reported by Greg Schafer <gschafer@zip.com.au>.
48551
48552 2007-09-15  Bruno Haible  <bruno@clisp.org>
48553
48554         * gnulib-tool (sed): Try a little harder to make bash understand the
48555         alias.
48556         Reported by Bruce Korb <bruce.korb@gmail.com>.
48557
48558 2007-09-13  Eric Blake  <ebb9@byu.net>
48559
48560         * ChangeLog: Remove conflict markers.
48561
48562 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48563
48564         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48565         Reported by Bruno Haible <bruno@clisp.org>.
48566
48567 2007-09-12  Bruno Haible  <bruno@clisp.org>
48568
48569         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48570         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48571         is not defined.
48572
48573 2007-09-12  Eric Blake  <ebb9@byu.net>
48574
48575         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48577         Autoconf definition.
48578         * modules/euidaccess (Depends-on): Add extensions, for
48579         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48580         * modules/fnmatch (Depends-on): Likewise.
48581         * modules/getaddrinfo (Depends-on): Likewise.
48582         * modules/getdelim (Depends-on): Likewise.
48583         * modules/getline (Depends-on): Likewise.
48584         * modules/getsubopt (Depends-on): Likewise.
48585         * modules/gettext (Depends-on): Likewise.
48586         * modules/group-member (Depends-on): Likewise.
48587         * modules/mbchar (Depends-on): Likewise.
48588         * modules/memmem (Depends-on): Likewise.
48589         * modules/mempcpy (Depends-on): Likewise.
48590         * modules/memrchr (Depends-on): Likewise.
48591         * modules/pagealign_alloc (Depends-on): Likewise.
48592         * modules/readutmp (Depends-on): Likewise.
48593         * modules/stpcpy (Depends-on): Likewise.
48594         * modules/stpncpy (Depends-on): Likewise.
48595         * modules/strchrnul (Depends-on): Likewise.
48596         * modules/strndup (Depends-on): Likewise.
48597         * modules/strsep (Depends-on): Likewise.
48598         * modules/strverscmp (Depends-on): Likewise.
48599         * modules/vasprintf (Depends-on): Likewise.
48600         * modules/wcwidth (Depends-on): Likewise.
48601         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48602         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48603         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48606         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48607         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48608         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48609         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48610         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48611         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48612         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48613         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48614         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48615         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48616         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48617         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48620         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48621         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48622         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48623         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48624         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48625         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48627         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48628         so that lock.m4 can be used in gettext without extensions module.
48629
48630 2007-09-11  Bruno Haible  <bruno@clisp.org>
48631
48632         * m4/isc-posix.m4: Remove file.
48633         Suggested by Eric Blake.
48634
48635 2007-09-11  Eric Blake  <ebb9@byu.net>
48636
48637         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48638
48639 2007-09-10  Bruno Haible  <bruno@clisp.org>
48640
48641         * posix-modules: Fix typo in error message.
48642         Reported by Matt <mkraai@beckman.com>.
48643
48644 2007-09-09  Bruno Haible  <bruno@clisp.org>
48645
48646         * doc/functions/getdelim.texi: Update list of platforms lacking the
48647         function.
48648         * doc/functions/getline.texi: Likewise.
48649
48650 2007-09-09  Jim Meyering  <jim@meyering.net>
48651
48652         * lib/hash.c (hash_initialize): Detect calloc failure.
48653         Reported by Bruno Haible.
48654
48655 2007-09-09  Bruno Haible  <bruno@clisp.org>
48656
48657         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48658         malloc or realloc fails.
48659
48660 2007-09-09  Bruno Haible  <bruno@clisp.org>
48661
48662         * modules/getcwd (Depends-on): Add malloc-posix.
48663         * modules/glob (Depends-on): Likewise.
48664         * modules/putenv (Depends-on): Likewise.
48665         * modules/strdup (Depends-on): Likewise.
48666         * modules/getdelim (Depends-on): Add realloc-posix.
48667         * modules/read-file (Depends-on): Likewise.
48668
48669 2007-09-09  Bruno Haible  <bruno@clisp.org>
48670
48671         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48672         (gl_FUNC_MALLOC_POSIX): Require it.
48673         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48674         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48675         * modules/realloc (Files): Add m4/malloc.m4.
48676         * modules/calloc (Files): Likewise.
48677
48678 2007-09-09  Bruno Haible  <bruno@clisp.org>
48679
48680         * modules/malloc-posix: New file.
48681         * modules/malloc (Depends-on): Add malloc-posix.
48682         * lib/malloc.c: Include errno.h.
48683         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48684         and a POSIX-compatible malloc into a single function. Set ENOMEM
48685         when returning NULL.
48686         * m4/malloc.m4: New file.
48687         * doc/functions/malloc.texi: Mention the malloc-posix module.
48688         * lib/stdlib_.h (malloc): New declaration.
48689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48690         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48691         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48692         and HAVE_MALLOC_POSIX.
48693
48694 2007-09-09  Bruno Haible  <bruno@clisp.org>
48695
48696         * modules/realloc-posix: New file.
48697         * modules/realloc (Depends-on): Add realloc-posix.
48698         * lib/realloc.c: Include errno.h.
48699         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48700         and a POSIX-compatible realloc into a single function. Set ENOMEM
48701         when returning NULL.
48702         * m4/realloc.m4: New file.
48703         * doc/functions/realloc.texi: Mention the realloc-posix module.
48704         * lib/stdlib_.h (realloc): New declaration.
48705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48706         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48707         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48708         and HAVE_REALLOC_POSIX.
48709
48710 2007-09-09  Bruno Haible  <bruno@clisp.org>
48711
48712         * modules/calloc-posix: New file.
48713         * modules/calloc (Depends-on): Add calloc-posix.
48714         * lib/calloc.c: Include errno.h.
48715         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48716         and a POSIX-compatible calloc into a single function. Set ENOMEM
48717         when returning NULL.
48718         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48719         * doc/functions/calloc.texi: Mention the calloc-posix module.
48720         * lib/stdlib_.h (calloc): New declaration.
48721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48722         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48723         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48724         and HAVE_CALLOC_POSIX.
48725
48726 2007-09-09  Bruno Haible  <bruno@clisp.org>
48727
48728         Allow for modules to show an arbitrary notice.
48729         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48730         * gnulib-tool: New option --extract-notice.
48731         (func_usage): Document it.
48732         (sed_extract_prog): Update.
48733         (func_get_notice): New function.
48734         (func_modules_notice): New function.
48735         (func_import, func_create_testdir): Invoke it.
48736         Suggested by Jim Meyering.
48737
48738 2007-09-09  Bruno Haible  <bruno@clisp.org>
48739
48740         * gnulib-tool: New options --verbose, --quiet.
48741         (func_usage): Document them.
48742         (verbose): New variable.
48743         (func_execute_command): New function.
48744         (func_import): Don't show the module list and the file list if
48745         $verbose < 0.
48746         (func_create_testdir): Likewise. Use func_execute_command.
48747         (func_create_megatestdir): Use func_execute_command.
48748
48749 2007-09-08  Bruno Haible  <bruno@clisp.org>
48750
48751         * gnulib-tool (func_import): Prefer rsync over wget when available,
48752         for fetching the PO files.
48753
48754 2007-09-08  Bruno Haible  <bruno@clisp.org>
48755
48756         * posix-modules: New file. Portions copied from gnulib-tool.
48757         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48758
48759 2007-09-08  Jim Meyering  <jim@meyering.net>
48760
48761         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48762         * lib/fpending.h: Rename from __fpending.h.
48763         * lib/fpending.c: Rename from __fpending.c.
48764         Include "fpending.h", not "__fpending.h".
48765         * lib/__fpending.h, lib/__fpending.c: Remove files.
48766         * modules/fpending (Files): Reflect new file names.
48767         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48768
48769 2007-09-08  Bruno Haible  <bruno@clisp.org>
48770
48771         * m4/inttypes-h.m4: Remove stub file.
48772
48773 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48774
48775         * doc/headers/stdint.texi: Discuss #include_next issue.
48776
48777 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48778
48779         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48780
48781 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48782
48783         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48784         in variable name.
48785
48786 2007-09-03  Jim Meyering  <jim@meyering.net>
48787
48788         New module: git-version-gen.
48789         * modules/git-version-gen: New file.
48790
48791         Import changes from coreutils for bootstrap script.
48792
48793         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48794
48795         bootstrap: uses rsync to download the .po files
48796         * build-aux/bootstrap (po_download_command_format): New global.
48797         (download_po_files): Use rsync.
48798         (update_po_files): Don't remove .po files after download,
48799         so future rsync runs can take advantage of the copies.
48800
48801         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48802
48803         Solve the unnecessary-.po-file-regeneration problem once and for all.
48804         * build-aux/bootstrap (download_po_files): New function, renamed from
48805         get_translations.  Now, downloads, but doesn't update LINGUAS.
48806         (update_po_files): New function.
48807
48808         bootstrap: Ignore more.
48809         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48810         uniwidth to e.g., lib/.gitignore.
48811         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48812
48813         * build-aux/bootstrap: New setting: vc_ignore.
48814         (insert_sorted_if_absent): Create $file if absent.
48815         Adapt to new, possibly empty, list: $vc_ignore.
48816
48817         bootstrap: generate more ignorable names
48818         * build-aux/bootstrap (slurp): When generating ignorable names,
48819         also map .sin to .sed, .gperf to .c, and .y to .c.
48820
48821 2007-09-03  Jim Meyering  <jim@meyering.net>
48822
48823         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48824         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48825
48826 2007-09-02  Bruno Haible  <bruno@clisp.org>
48827
48828         Fix mis-recognition of 'mcs' on QNX 6.
48829         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48830         output contains the string "Mono".
48831         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48832         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48833
48834 2007-09-01  Bruno Haible  <bruno@clisp.org>
48835
48836         Fix collision between uniwidth/* and linebreak modules.
48837         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48838         u32_width): Remove declarations.
48839         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48840         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48841         streq3, streq2, streq1, streq0): Remove functions.
48842         (STREQ): Remove macro.
48843         (is_cjk_encoding): Remove function.
48844         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48845         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48846         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48847         * NEWS: Document the change.
48848
48849 2007-09-01  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/streq.h: Add double-inclusion guard.
48852
48853 2007-09-01  Karl Berry  <karl@gnu.org>
48854
48855         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48856
48857 2007-08-28  Jim Meyering  <jim@meyering.net>
48858
48859         Rename mreadlink_with_size to areadlink_with_size.
48860         * NEWS: Document the change.
48861         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48862         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48863         * lib/mreadlink.h: Rename this to...
48864         * lib/areadlink.h: ...this.
48865         * modules/mreadlink-with-size: Rename this to...
48866         * modules/areadlink-with-size: ...this.
48867         * lib/canonicalize.c: Reflect the renaming.
48868         * modules/canonicalize: Likewise.
48869
48870 2007-08-26  Bruno Haible  <bruno@clisp.org>
48871
48872         * gnulib-tool (func_import): When deciding which files to remove,
48873         consider also dangling symbolic links.
48874         Reported by Eric Blake.
48875
48876 2007-08-26  Bruno Haible  <bruno@clisp.org>
48877
48878         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48879
48880 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48881
48882         * lib/readline.c: Don't include getline.h, the prototype is now
48883         found in stdio.h.
48884
48885 2007-08-23  Jim Meyering  <jim@meyering.net>
48886
48887         Getdelim touchup.
48888         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48889         around the funlockfile call, since funlockfile never sets errno.
48890         Don't set errno upon failed realloc.
48891
48892 2007-08-22  Eric Blake  <ebb9@byu.net>
48893
48894         Getline touchups.
48895         * lib/getdelim.c (getdelim): Revert regression that required *n to
48896         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48897         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48898         getdelim, rather than whether implementation is missing.
48899         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48900         * lib/stdio_.h (getline): Also declare if replacement is
48901         required.
48902         * doc/functions/getdelim.texi: New file.
48903         * doc/functions/getline.texi: Likewise.
48904         * doc/gnulib.texi (Function Substitutes): Add new files.
48905         Reported by Bruno Haible.
48906
48907 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48908
48909         * users.txt: Add Guile.
48910
48911 2007-08-22  Eric Blake  <ebb9@byu.net>
48912
48913         * tests/test-getdelim.c (main): Use remove, not unlink.
48914         * tests/test-getline.c (main): Likewise.
48915
48916         Move getline and getdelim into stdio.h, per POSIX 200x.
48917         * modules/getline (Files): Remove getline.h.
48918         (Depends-on): Add stdio.
48919         (configure.ac): Add module indicator.
48920         * modules/getdelim (Files): Remove getdelim.h.
48921         (Depends-on): Add stdio.
48922         (configure.ac): Add module indicator.
48923         * modules/stdio (Makefile.am): Work with new indicators.
48924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48925         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48926         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48927         * lib/getdelim.h: Delete.
48928         * lib/getline.h: Delete.
48929         * lib/stdio_.h (getdelim, getline): Declare.
48930         * modules/getdelim-tests: New module.
48931         * modules/getline-tests: Likewise.
48932         * tests/test-getdelim.c: New file.
48933         * tests/test-getline.c: Likewise.
48934         * NEWS: Document the change.
48935         * lib/getline.c: Update choice of header.
48936         * lib/csharpcomp.c: Likewise.
48937         * lib/getpass.c: Likewise.
48938         * lib/javacomp.c: Likewise.
48939         * lib/javaversion.c: Likewise.
48940         * lib/yesno.c: Likewise.
48941         * lib/getdelim.c: Likewise.
48942         (getdelim): Set errno on failure, and avoid memory leak.
48943
48944 2007-08-19  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/closein (Depends-on): Add freadahead.
48947         * lib/closein.c: Include freadahead.h.
48948         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48949         is zero.
48950
48951 2007-08-19  Bruno Haible  <bruno@clisp.org>
48952
48953         * modules/freadahead-tests: New file.
48954         * tests/test-freadahead.sh: New file.
48955         * tests/test-freadahead.c: New file.
48956
48957         * modules/freadahead: New file.
48958         * lib/freadahead.h: New file.
48959         * lib/freadahead.c: New file.
48960         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48961         fbufmode, fpurge, freadable, fwritable.
48962
48963 2007-08-19  Eric Blake  <ebb9@byu.net>
48964
48965         Test yesno in combination with closein.
48966         * lib/yesno.c (yesno): Document use of stdin.
48967         * modules/yesno-tests (Files): New module.
48968         * tests/test-yesno.c (main): New file.
48969         * tests/test-yesno.sh: Likewise.
48970
48971 2007-08-19  Bruno Haible  <bruno@clisp.org>
48972
48973         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48974         * lib/fseeko.c (rpl_fseeko): Likewise.
48975         * lib/fseterr.c (fseterr): Likewise.
48976
48977 2007-08-19  Bruno Haible  <bruno@clisp.org>
48978
48979         * tests/test-lseek.c (main): Disable a test for BeOS.
48980         * doc/functions/lseek.texi: Document the BeOS bug.
48981
48982 2007-08-19  Bruno Haible  <bruno@clisp.org>
48983             Eric Blake  <ebb9@byu.net>
48984
48985         * lib/lseek.c: Include <sys/stat.h>.
48986         (rpl_lseek): Add workaround code also for Unix platforms.
48987         Needed for BeOS.
48988         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48989         * doc/functions/lseek.texi: Document BeOS definiency.
48990
48991 2007-08-18  Bruno Haible  <bruno@clisp.org>
48992
48993         * modules/fstrcmp-tests: New file.
48994         * tests/test-fstrcmp.c: New file.
48995
48996 2007-08-18  Bruno Haible  <bruno@clisp.org>
48997
48998         * modules/fstrcmp: New file, from GNU gettext with modifications.
48999         * lib/fstrcmp.h: New file, from GNU gettext.
49000         * lib/fstrcmp.c: New file, from GNU gettext.
49001         * MODULES.html.sh (String handling): Add fstrcmp.
49002
49003 2007-08-18  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49006         'bool'.
49007         (diag, compareseq): Remove const from the ctxt argument.
49008         (USE_HEURISTIC): Undefine at the end.
49009
49010 2007-08-18  Jim Meyering  <jim@meyering.net>
49011
49012         New file: lib/idcache.h
49013         * NEWS: Mention the addition.
49014         * modules/idcache (Files): Add lib/idcache.h
49015         * lib/idcache.c: Include "idcache.h".
49016         Don't include <sys/types.h>.
49017         Add a FIXME comment.
49018         Move file-scoped "static" declarations to the top.
49019         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49020
49021 2007-08-17  Bruno Haible  <bruno@clisp.org>
49022         and Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * MODULES.html.sh: Add diffseq.
49025         * modules/diffseq: New file.
49026         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49027         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49028
49029 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49030
49031         Import changes from coreutils for bootstrap script.
49032
49033         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * build-aux/bootstrap (slurp): Work even in environments where
49036         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49037         current code does not slurp files whose names start with ".", and
49038         this looks like it might be a troublesome area.
49039
49040         2007-07-11  Jim Meyering  <jim@meyering.net>
49041
49042         If there's a GPL vN copyright comment, require that N == 3.
49043
49044         2007-07-08  Jim Meyering  <jim@meyering.net>
49045
49046         Run the coreutils-specific code only if tests/Makefile.am.in exists.
49047         * build-aux/bootstrap (mam_template): Move definition out of loop.
49048
49049         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
49050
49051         * build-aux/bootstrap (symlink_to_dir): Rename function from
49052         symlink_to_gnulib.  Add a directory parameter.  Update all
49053         callers.
49054         (cp_mark_as_generated): Also check for -- and link to -- files in
49055         gl/.
49056
49057         2007-07-08  Jim Meyering  <jim@meyering.net>
49058
49059         Adapt to deeper hierarchy in gnulib.
49060         * build-aux/bootstrap (symlink_to_dir): If the destination
49061         directory doesn't exist, create it. This is required at least for
49062         "lib/uniwidth/cjk.h".
49063
49064         2007-05-15  Jim Meyering  <jim@meyering.net>
49065
49066         * build-aux/bootstrap: Now that generated Makefile.am files
49067         are no longer under version control, they must be created at
49068         bootstrap time.
49069
49070 2007-08-14  Ben Pfaff  <blp@gnu.org>
49071
49072         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49073
49074 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49075
49076         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49077         given the changes below.
49078         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49079         even on hosts that have padding bits beyond the supported 64.
49080
49081 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49084         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49085         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49086         depends on it.
49087         (xstrtol_error): Remove.
49088         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49089         but with a different signature.
49090         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49091         * lib/xstrtol-error.c: Include exitfail.h.
49092         (xstrtol_fatal): New function, with a different signature from the
49093         old xstrtol_error, so that the caller need not worry about passing
49094         in an exit status, or about storage management of the option argument.
49095         (xstrtol_error): Now a static function.  Redo signature to
49096         implement xstrtol_fatal.  Output the correct number of hyphens in
49097         front of the option so that the caller need not worry about
49098         storage management.
49099         (N_): New macro.
49100         (_): Remove; not used now.
49101         * modules/xstrtol: Depend on getopt.
49102         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49103         of old STRTOL_FATAL_ERROR macro.
49104         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49105         of test program.
49106         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49107         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49108
49109 2007-08-08  Eric Blake  <ebb9@byu.net>
49110
49111         * lib/xstrtol-error.c: Add missing include.
49112
49113         Move xstrtol messages into gnulib domain, when --pobase is used.
49114         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49115         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49116         * modules/xstrtol (Files): Distribute new file.
49117         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49118         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49119         * tests/test-xstrtol.c: ...into new file.
49120         * tests/test-xstrtoul.c: Also test xstrtoul.
49121         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49122         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49123         * tests/test-xstrtol.sh: Drive the tests.
49124         * tests/test-xstrtoimax.sh: Likewise.
49125         * tests/test-xstrtoumax.sh: Likewise.
49126         * modules/xstrtol-tests: New module.
49127         * modules/xstrtoimax-tests: Likewise.
49128         * modules/xstrtoumax-tests: Likewise.
49129
49130 2007-08-08  Jim Meyering  <jim@meyering.net>
49131
49132         New function: mfile_name_concat.
49133         * lib/filenamecat.c (mfile_name_concat): New function, just like
49134         file_name_concat, but return NULL upon failure rather than exiting
49135         with a diagnostic.
49136         * lib/filenamecat.h: Declare it.
49137
49138 2007-08-07  Bruno Haible  <bruno@clisp.org>
49139
49140         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49141         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49142         warning from gcc.
49143         Reported by Eric Blake.
49144
49145 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49146
49147         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49148         * modules/crypto/arcfour (License): Likewise.
49149         * modules/crypto/des-tests (License): Likewise.
49150         * modules/crypto/gc-arctwo-tests (License): Likewise.
49151         * modules/crypto/gc-des-tests (License): Likewise.
49152         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49153         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49154         * modules/crypto/gc-md2-tests (License): Likewise.
49155         * modules/crypto/gc-md4-tests (License): Likewise.
49156         * modules/crypto/gc-md5-tests (License): Likewise.
49157         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49158         * modules/crypto/gc-rijndael-tests (License): Likewise.
49159         * modules/crypto/gc-sha1-tests (License): Likewise.
49160         * modules/crypto/gc-tests (License): Likewise.
49161         * modules/crypto/hmac-md5 (License): Likewise.
49162         * modules/crypto/hmac-sha1 (License): Likewise.
49163         * modules/crypto/md2-tests (License): Likewise.
49164         * modules/crypto/md4-tests (License): Likewise.
49165         * modules/crypto/md5 (License): Likewise.
49166         * modules/crypto/rijndael (License): Likewise.
49167         * modules/crypto/sha1 (License): Likewise.
49168         * modules/memxor (License): Likewise.
49169
49170 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49171         and Bruno Haible  <bruno@clisp.org>
49172
49173         * NEWS: Describe interface changes to human, xstrtol.
49174         * lib/human.h: Include <xstrtol.h>.
49175         (human_options): Return enum strtol_error, not int.  Remove
49176         bool arg; take int * instead.
49177         * lib/human.c: Don't include "gettext.h".
49178         (_): Remove; no longer used.
49179         Don't include <xstrtol.h>, since human.h does it.
49180         (human_options): Adjust to abovementioned interface changes.
49181         Do not report error to stderr; that's now the caller's
49182         responsibility.
49183         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49184         interface change.
49185         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49186         Str, Argument_type_string.  All uses changed.  Put " argument"
49187         in diagnostics to make them clearer.  Change wording of suffix
49188         message for clarity.
49189         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49190         Argument_type_string.
49191         (STRTOL_FATAL_WARN): Remove; no longer used.
49192         * modules/human (Depends-on): Remove gettext-h.
49193
49194 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49195
49196         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49197
49198 2007-07-31  Bruno Haible  <bruno@clisp.org>
49199
49200         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49201         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49202         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49203
49204 2007-07-31  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49207         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49208
49209 2007-07-30  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49212         * modules/c-ctype (License): Likewise.
49213         * modules/c-strcase (License): Likewise.
49214         * modules/check-version (License): Likewise.
49215         * modules/iconv (License): Likewise.
49216         * modules/iconv_open (License): Likewise.
49217         * modules/read-file (License): Likewise.
49218         * modules/striconv (License): Likewise.
49219         * modules/strverscmp (License): Likewise.
49220         * modules/vasprintf (License): Likewise.
49221         * modules/crypto/des (License): Likewise.
49222         * modules/crypto/gc (License): Likewise.
49223         * modules/crypto/gc-arcfour (License): Likewise.
49224         * modules/crypto/gc-arctwo (License): Likewise.
49225         * modules/crypto/gc-des (License): Likewise.
49226         * modules/crypto/gc-hmac-md5 (License): Likewise.
49227         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49228         * modules/crypto/gc-md2 (License): Likewise.
49229         * modules/crypto/gc-md4 (License): Likewise.
49230         * modules/crypto/gc-md5 (License): Likewise.
49231         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49232         * modules/crypto/gc-random (License): Likewise.
49233         * modules/crypto/gc-rijndael (License): Likewise.
49234         * modules/crypto/gc-sha1 (License): Likewise.
49235         * modules/crypto/md2 (License): Likewise.
49236         * modules/crypto/md4 (License): Likewise.
49237
49238 2007-07-30  Jim Meyering  <jim@meyering.net>
49239
49240         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49241         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49242         it has valid stat data.  This bug would cause du not to count the
49243         sizes of inaccessible directories.
49244         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49245         in <http://bugzilla.redhat.com/250077>.
49246
49247 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49248             Bruno Haible  <bruno@clisp.org>
49249
49250         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49251         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49252         #include_next, gives a diagnostic about it, but reports no error in
49253         the exit code.
49254         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49255
49256 2007-07-24  Ben Pfaff  <blp@gnu.org>
49257
49258         Improve name: "count-one-bits" is better than "popcount".
49259         * MODULES.html.sh: Update name.
49260         * lib/popcount.h: Renamed lib/count-one-bits.h.
49261         (popcount): Renamed count_one_bits.
49262         (popcountl): Renamed count_one_bits_l.
49263         (popcountll): Renamed count_one_bits_ll.
49264         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49265         * modules/popcount: Renamed module/count-one-bits.
49266         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49267         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49268
49269 2007-07-23  Ben Pfaff  <blp@gnu.org>
49270
49271         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49272         better code generation, and add U to large constants to avoid
49273         warnings, in non-GCC case.
49274         Suggested by Bruno Haible.
49275
49276 2007-07-23  Ben Pfaff  <blp@gnu.org>
49277
49278         * lib/popcount.h: Use verify_true instead of if...abort.
49279         * modules/popcount: Depend on verify module.
49280         Suggested by Jim Meyering.
49281
49282 2007-07-23  Bruno Haible  <bruno@clisp.org>
49283
49284         * gnulib-tool (func_import): Create a .cvsignore file also when the
49285         directory is not yet in CVS but the toplevel directory is. When
49286         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49287         Reported by Karl Berry.
49288
49289 2007-07-22  Ben Pfaff  <blp@gnu.org>
49290
49291         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49292         case.
49293         Suggested by Eric Blake.
49294
49295 2007-07-22  Ben Pfaff  <blp@gnu.org>
49296
49297         New module: popcount.
49298         * MODULES.html.sh: Add popcount.
49299         * modules/popcount: New file.
49300         * modules/popcount-tests: New file.
49301         * tests/test-popcount.c: New file.
49302         * lib/popcount.h: New file.
49303         * m4/popcount.m4: New file.
49304
49305 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49306
49307         * build-aux/announce-gen: Update to GPLv3.
49308
49309         * build-aux/config.guess: Update from config.
49310
49311 2007-07-21  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49314         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49315
49316 2007-07-20  Jim Meyering  <jim@meyering.net>
49317
49318         * check-module: Diagnose a self-dependency.
49319
49320 2007-07-19  Bruno Haible  <bruno@clisp.org>
49321
49322         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49323         empty.
49324         Reported by Eric Blake.
49325
49326 2007-07-18  Bruno Haible  <bruno@clisp.org>
49327
49328         * gnulib-tool: New options --po-base, --po-domain.
49329         (func_usage): Document them.
49330         (pobase, po_domain): New variables.
49331         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49332         DEFAULT_TEXT_DOMAIN.
49333         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49334         (func_import): Consider pobase and po_domain. Create a po/ directory.
49335         (func_create_testdir): Set pobase and po_domain to empty.
49336         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49337         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49338
49339 2007-07-18  Bruno Haible  <bruno@clisp.org>
49340
49341         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49342         EXTRA_DIST augmentation for files in build-aux/.
49343
49344 2007-07-16  Bruno Haible  <bruno@clisp.org>
49345
49346         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49347         * modules/getdelim (License): Likewise.
49348
49349 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49350
49351         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49352         * modules/d-type (License): Likewise.
49353         * modules/extensions (License): Likewise.
49354         * modules/fnmatch (License): Likewise.
49355         * modules/fseeko (License): Likewise.
49356         * modules/getaddrinfo (License): Likewise.
49357         * modules/getline (License): Likewise.
49358         * modules/getlogin_r (License): Likewise.
49359         * modules/getpass (License): Likewise.
49360         * modules/gettimeofday (License): Likewise.
49361         * modules/glob (License): Likewise.
49362         * modules/inet_ntop (License): Likewise.
49363         * modules/malloc (License): Likewise.
49364         * modules/malloca (License): Likewise.
49365         * modules/memmem (License): Likewise.
49366         * modules/mempcpy (License): Likewise.
49367         * modules/memset (License): Likewise.
49368         * modules/minmax (License): Likewise.
49369         * modules/mktime (License): Likewise.
49370         * modules/netinet_in (License): Likewise.
49371         * modules/pathmax (License): Likewise.
49372         * modules/poll (License): Likewise.
49373         * modules/regex (License): Likewise.
49374         * modules/snprintf (License): Likewise.
49375         * modules/stdbool (License): Likewise.
49376         * modules/stdint (License): Likewise.
49377         * modules/stdio (License): Likewise.
49378         * modules/strcase (License): Likewise.
49379         * modules/strcasestr (License): Likewise.
49380         * modules/strdup (License): Likewise.
49381         * modules/string (License): Likewise.
49382         * modules/strndup (License): Likewise.
49383         * modules/strnlen (License): Likewise.
49384         * modules/strpbrk (License): Likewise.
49385         * modules/strptime (License): Likewise.
49386         * modules/strsep (License): Likewise.
49387         * modules/sys_select (License): Likewise.
49388         * modules/sys_socket (License): Likewise.
49389         * modules/sys_stat (License): Likewise.
49390         * modules/sys_time (License): Likewise.
49391         * modules/time (License): Likewise.
49392         * modules/time_r (License): Likewise.
49393         * modules/timegm (License): Likewise.
49394         * modules/unistd (License): Likewise.
49395         * modules/vsnprintf (License): Likewise.
49396         * modules/wctype (License): Likewise.
49397
49398 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49399
49400         * modules/argz (License): LGPLv2+.
49401
49402 2007-07-15  Karl Berry  <karl@gnu.org>
49403
49404         * doc/gnulib.texi: revise node structure per new fdl.texi.
49405
49406 2007-07-14  Bruno Haible  <bruno@clisp.org>
49407
49408         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49409         the output file.
49410         * lib/uniname/uninames.h: Regenerated.
49411
49412 2007-07-14  Karl Berry  <karl@gnu.org>
49413
49414         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49415         omitting sectioning and index commands.
49416
49417 2007-07-13  Bruno Haible  <bruno@clisp.org>
49418
49419         New gnulib-tool option --more-symlinks.
49420         * gnulib-tool (func_usage): Document --more-symlinks.
49421         (do_copyrights): New variable.
49422         Recognize option --more-symlinks.
49423         (func_import): Don't add a copyright notice transform to
49424         sed_transform_lib_file if do_copyrights is empty.
49425
49426 2007-07-13  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/vasnprintf.c (decimal_point_char): Define also if
49429         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49430         && !NEED_PRINTF_DIRECTIVE_A.
49431         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49432         Gary V. Vaughan <gary@gnu.org>.
49433
49434 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49435
49436         * lib/inttypes_.h: Undo previous change, since it was fixed
49437         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49438
49439 2007-07-13  Bruno Haible  <bruno@clisp.org>
49440
49441         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49442         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49443
49444 2007-07-13  Jim Meyering  <jim@meyering.net>
49445
49446         df: Don't fail for Tru64's "file-on-file mount".
49447         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49448         so we fall through and use statfs instead.  Details here:
49449         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49450         Reported by Albert Chin.
49451
49452 2007-07-13  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49455         * modules/configmake (License): Likewise.
49456         * modules/gettext (License): Likewise.
49457         * modules/gettext-h (License): Likewise.
49458         * modules/include_next (License): Likewise.
49459         * modules/link-warning (License): Likewise.
49460         * modules/localcharset (License): Likewise.
49461         * modules/localename (License): Likewise.
49462         * modules/lock (License): Likewise.
49463         * modules/relocatable-lib-lgpl (License): Likewise.
49464         * modules/size_max (License): Likewise.
49465         * modules/vasnprintf (License): Likewise.
49466         * modules/wchar (License): Likewise.
49467         * modules/xsize (License): Likewise.
49468
49469 2007-07-13  Bruno Haible  <bruno@clisp.org>
49470
49471         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49472         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49473
49474 2007-07-12  Bruno Haible  <bruno@clisp.org>
49475
49476         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49477         in the modules files.
49478
49479 2007-07-11  Karl Berry  <karl@gnu.org>
49480
49481         * MODULES.html.sh (func_module): use
49482          sed -e '\|^'"${includefile}"'$|d'
49483          instead of /.../d, to avoid errors on $includefile's containing /.
49484
49485 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49486
49487         * gnulib-tool (func_import): Avoid duplication of --avoid
49488         statements
49489         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49490         names to `_' in variable names.
49491
49492 2007-07-10  Eric Blake  <ebb9@byu.net>
49493
49494         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49495         * NEWS: Document this change.
49496
49497 2007-07-08  Bruno Haible  <bruno@clisp.org>
49498
49499         Update to Unicode 5.0.
49500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49501         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49502         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49503         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49504         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49505         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49506         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49507         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49508         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49509         U+10A3F, U+1D242..U+1D244.
49510         (nonspacing_table_ind): Update.
49511         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49512         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49513
49514 2007-07-08  Bruno Haible  <bruno@clisp.org>
49515
49516         Update to Unicode 5.0.
49517         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49518         code transform. Extend the name index field of unicode_name_to_code and
49519         unicode_code_to_name from 16 to 24 bits.
49520         * lib/uniname/uniname.c (unicode_character_name,
49521         unicode_name_character): Add the range 0x12xxx to the code transform.
49522         * lib/uniname/uninames.h: Regenerated.
49523         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49524
49525 2007-07-07  Bruno Haible  <bruno@clisp.org>
49526
49527         * modules/wcwidth-tests: New file.
49528         * tests/test-wcwidth.c: New file.
49529
49530         Work around MacOS X wcwidth() bug.
49531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49532         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49533         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49534         original wcwidth in non-UTF-8 locales.
49535         * modules/wcwidth (Depends-on): Add localcharset, streq,
49536         uniwidth/width.
49537         * doc/functions/wcwidth.texi: Update.
49538
49539 2007-07-07  Bruno Haible  <bruno@clisp.org>
49540
49541         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49542         (wcwidth): New declaration.
49543         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49544         macros.
49545         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49546         here. Prepare for creating <wchar.h> unconditionally.
49547         * modules/wchar (Depends-on): Add link-warning.
49548         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49549         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49550         * lib/wcwidth.h: Remove file.
49551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49552         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49553         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49554         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49555         (Include): Replace wcwidth.h with <wchar.h>.
49556         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49557         * lib/mbchar.h: Don't include wcwidth.h.
49558         * lib/mbswidth.c: Likewise.
49559         * NEWS: Mention the change.
49560
49561 2007-07-07  Bruno Haible  <bruno@clisp.org>
49562
49563         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49564         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49565         definition with an external declaration.
49566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49567         defined as a function. Remove AC_C_INLINE requirement.
49568         * modules/wcwidth (Files): Add lib/wcwidth.c.
49569         (Makefile.am): Remove redundant statement.
49570
49571 2007-07-07  Bruno Haible  <bruno@clisp.org>
49572
49573         * MODULES.html.sh (Unicode string functions): Add the new modules.
49574
49575         * tests/uniwidth/test-u32-strwidth.c: New file.
49576         * modules/uniwidth/u32-strwidth-tests: New file.
49577
49578         * lib/uniwidth/u32-strwidth.c: New file.
49579         * modules/uniwidth/u32-strwidth: New file.
49580
49581         * tests/uniwidth/test-u16-strwidth.c: New file.
49582         * modules/uniwidth/u16-strwidth-tests: New file.
49583
49584         * lib/uniwidth/u16-strwidth.c: New file.
49585         * modules/uniwidth/u16-strwidth: New file.
49586
49587         * tests/uniwidth/test-u8-strwidth.c: New file.
49588         * modules/uniwidth/u8-strwidth-tests: New file.
49589
49590         * lib/uniwidth/u8-strwidth.c: New file.
49591         * modules/uniwidth/u8-strwidth: New file.
49592
49593         * tests/uniwidth/test-u32-width.c: New file.
49594         * modules/uniwidth/u32-width-tests: New file.
49595
49596         * lib/uniwidth/u32-width.c: New file.
49597         * modules/uniwidth/u32-width: New file.
49598
49599         * tests/uniwidth/test-u16-width.c: New file.
49600         * modules/uniwidth/u16-width-tests: New file.
49601
49602         * lib/uniwidth/u16-width.c: New file.
49603         * modules/uniwidth/u16-width: New file.
49604
49605         * tests/uniwidth/test-u8-width.c: New file.
49606         * modules/uniwidth/u8-width-tests: New file.
49607
49608         * lib/uniwidth/u8-width.c: New file.
49609         * modules/uniwidth/u8-width: New file.
49610
49611         * tests/uniwidth/test-uc_width.c: New file.
49612         * modules/uniwidth/width-tests: New file.
49613
49614         * lib/uniwidth/width.c: New file, from GNU libiconv.
49615         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49616         * modules/uniwidth/width: New file.
49617
49618         * lib/uniwidth.h: New file, from GNU libiconv.
49619         * modules/uniwidth/base: New file.
49620
49621 2007-07-07  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/uniname.h: New file, from GNU gettext.
49624         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49625         * lib/uniname/uninames.h: New file, from GNU gettext.
49626         * lib/uniname/uniname.c: New file, from GNU gettext.
49627         * tests/uniname/test-uninames.sh: New file.
49628         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49629         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49630         * modules/uniname/base: New file.
49631         * modules/uniname/uniname: New file.
49632         * modules/uniname/uniname-tests: New file.
49633         * MODULES.html.sh (Unicode string functions): Add the new modules.
49634
49635 2007-07-06  Bruno Haible  <bruno@clisp.org>
49636
49637         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49638
49639 2007-07-06  Bruno Haible  <bruno@clisp.org>
49640
49641         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49642         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49643         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49644         include <sys/time.h>.
49645         Reported by Eric Blake.
49646
49647 2007-07-06  Eric Blake  <ebb9@byu.net>
49648
49649         Fix testing canonicalize on cygwin.
49650         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49651         Revert patch from 2007-06-19.
49652         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49653         canonicalize module is also in use.
49654         * tests/test-canonicalize.c: New file.
49655         * tests/test-canonicalize.sh: Likewise.
49656         * modules/canonicalize-tests: Likewise.
49657
49658 2007-07-06  Jim Meyering  <jim@meyering.net>
49659
49660         * lib/getugroups.c (getugroups): Detect getgrent failure.
49661         Adjust comment to reflect reality: this function may return -1.
49662
49663 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49664
49665         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49666         the new TP address.
49667         (usage): Fix typo
49668         (gnulib_mk): New variable.
49669
49670 2007-07-05  Jim Meyering  <jim@meyering.net>
49671
49672         Don't let endgrent clobber errno, no matter how improbable.
49673         * lib/getugroups.c (getugroups): Save and restore errno around
49674         endgrent call.
49675
49676         Close the group DB even when failing with 2^31 or more members.
49677         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49678
49679 2007-07-04  Jim Meyering  <jim@meyering.net>
49680
49681         * lib/getugroups.h: New file.
49682         * lib/getugroups.c: Include "getugroups.h".
49683         Remove uses of "register" keyword.
49684         Move local variable, "cp", down into scope where used.
49685         Give "username" parameter the "const" attribute.
49686         * modules/getugroups (Files): Add lib/getugroups.h
49687
49688 2007-07-04  Karl Berry  <karl@gnu.org>
49689
49690         * MODULES.html.sh (func_all_modules): Complete rename of
49691         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49692
49693 2007-07-02  Bruno Haible  <bruno@clisp.org>
49694
49695         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49696         mode, when inttypes.h comes from gnulib.
49697         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49698
49699 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49700
49701         * NEWS: Mention lgpl module name change.
49702
49703         * modules/lgpl-2.1: Renamed from lgpl.
49704
49705         * NEWS: Mention gpl module name change.
49706
49707         * modules/gpl-3.0: New file, based on gpl-2.0.
49708
49709         * modules/gpl-2.0: Renamed from gpl.
49710
49711         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49712         doc/gpl-2.0.texi.
49713
49714 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49715
49716         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49717         #define __STDC_LIMIT_MACROS temporarily while including
49718         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49719         Problem reported by Joel E. Denny in
49720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49721
49722 2007-07-01  Bruno Haible  <bruno@clisp.org>
49723
49724         * lib/unistdio.h: New file.
49725         * lib/unistdio/u-asnprintf.h: New file.
49726         * lib/unistdio/u-asprintf.h: New file.
49727         * lib/unistdio/u-printf-args.c: New file.
49728         * lib/unistdio/u-printf-args.h: New file.
49729         * lib/unistdio/u-printf-parse.h: New file.
49730         * lib/unistdio/u-snprintf.h: New file.
49731         * lib/unistdio/u-sprintf.h: New file.
49732         * lib/unistdio/u-vasprintf.h: New file.
49733         * lib/unistdio/u-vsnprintf.h: New file.
49734         * lib/unistdio/u-vsprintf.h: New file.
49735         * lib/unistdio/ulc-asnprintf.c: New file.
49736         * lib/unistdio/ulc-asprintf.c: New file.
49737         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49738         * lib/unistdio/ulc-printf-parse.c: New file.
49739         * lib/unistdio/ulc-snprintf.c: New file.
49740         * lib/unistdio/ulc-sprintf.c: New file.
49741         * lib/unistdio/ulc-vasnprintf.c: New file.
49742         * lib/unistdio/ulc-vasprintf.c: New file.
49743         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49744         * lib/unistdio/ulc-vsnprintf.c: New file.
49745         * lib/unistdio/ulc-vsprintf.c: New file.
49746         * lib/unistdio/u8-asnprintf.c: New file.
49747         * lib/unistdio/u8-asprintf.c: New file.
49748         * lib/unistdio/u8-printf-parse.c: New file.
49749         * lib/unistdio/u8-snprintf.c: New file.
49750         * lib/unistdio/u8-sprintf.c: New file.
49751         * lib/unistdio/u8-vasnprintf.c: New file.
49752         * lib/unistdio/u8-vasprintf.c: New file.
49753         * lib/unistdio/u8-vsnprintf.c: New file.
49754         * lib/unistdio/u8-vsprintf.c: New file.
49755         * lib/unistdio/u8-u8-asnprintf.c: New file.
49756         * lib/unistdio/u8-u8-asprintf.c: New file.
49757         * lib/unistdio/u8-u8-snprintf.c: New file.
49758         * lib/unistdio/u8-u8-sprintf.c: New file.
49759         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49760         * lib/unistdio/u8-u8-vasprintf.c: New file.
49761         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49762         * lib/unistdio/u8-u8-vsprintf.c: New file.
49763         * lib/unistdio/u16-asnprintf.c: New file.
49764         * lib/unistdio/u16-asprintf.c: New file.
49765         * lib/unistdio/u16-printf-parse.c: New file.
49766         * lib/unistdio/u16-snprintf.c: New file.
49767         * lib/unistdio/u16-sprintf.c: New file.
49768         * lib/unistdio/u16-vasnprintf.c: New file.
49769         * lib/unistdio/u16-vasprintf.c: New file.
49770         * lib/unistdio/u16-vsnprintf.c: New file.
49771         * lib/unistdio/u16-vsprintf.c: New file.
49772         * lib/unistdio/u16-u16-asnprintf.c: New file.
49773         * lib/unistdio/u16-u16-asprintf.c: New file.
49774         * lib/unistdio/u16-u16-snprintf.c: New file.
49775         * lib/unistdio/u16-u16-sprintf.c: New file.
49776         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49777         * lib/unistdio/u16-u16-vasprintf.c: New file.
49778         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49779         * lib/unistdio/u16-u16-vsprintf.c: New file.
49780         * lib/unistdio/u32-asnprintf.c: New file.
49781         * lib/unistdio/u32-asprintf.c: New file.
49782         * lib/unistdio/u32-printf-parse.c: New file.
49783         * lib/unistdio/u32-snprintf.c: New file.
49784         * lib/unistdio/u32-sprintf.c: New file.
49785         * lib/unistdio/u32-vasnprintf.c: New file.
49786         * lib/unistdio/u32-vasprintf.c: New file.
49787         * lib/unistdio/u32-vsnprintf.c: New file.
49788         * lib/unistdio/u32-vsprintf.c: New file.
49789         * lib/unistdio/u32-u32-asnprintf.c: New file.
49790         * lib/unistdio/u32-u32-asprintf.c: New file.
49791         * lib/unistdio/u32-u32-snprintf.c: New file.
49792         * lib/unistdio/u32-u32-sprintf.c: New file.
49793         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49794         * lib/unistdio/u32-u32-vasprintf.c: New file.
49795         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49796         * lib/unistdio/u32-u32-vsprintf.c: New file.
49797         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49798         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49799         * tests/unistdio/test-ulc-printf1.h: New file.
49800         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49801         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49802         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49803         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49804         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49805         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49806         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49807         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49808         * tests/unistdio/test-u8-asnprintf1.c: New file.
49809         * tests/unistdio/test-u8-asnprintf1.h: New file.
49810         * tests/unistdio/test-u8-printf1.h: New file.
49811         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49812         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49813         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49814         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49815         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49816         * tests/unistdio/test-u8-vasprintf1.c: New file.
49817         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49818         * tests/unistdio/test-u8-vsprintf1.c: New file.
49819         * tests/unistdio/test-u16-asnprintf1.c: New file.
49820         * tests/unistdio/test-u16-asnprintf1.h: New file.
49821         * tests/unistdio/test-u16-printf1.h: New file.
49822         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49823         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49824         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49825         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49826         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49827         * tests/unistdio/test-u16-vasprintf1.c: New file.
49828         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49829         * tests/unistdio/test-u16-vsprintf1.c: New file.
49830         * tests/unistdio/test-u32-asnprintf1.c: New file.
49831         * tests/unistdio/test-u32-asnprintf1.h: New file.
49832         * tests/unistdio/test-u32-printf1.h: New file.
49833         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49834         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49835         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49836         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49837         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49838         * tests/unistdio/test-u32-vasprintf1.c: New file.
49839         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49840         * tests/unistdio/test-u32-vsprintf1.c: New file.
49841         * modules/unistdio/base: New file.
49842         * modules/unistdio/u-printf-args: New file.
49843         * modules/unistdio/ulc-asnprintf: New file.
49844         * modules/unistdio/ulc-asprintf: New file.
49845         * modules/unistdio/ulc-fprintf: New file.
49846         * modules/unistdio/ulc-printf-parse: New file.
49847         * modules/unistdio/ulc-snprintf: New file.
49848         * modules/unistdio/ulc-sprintf: New file.
49849         * modules/unistdio/ulc-vasnprintf: New file.
49850         * modules/unistdio/ulc-vasprintf: New file.
49851         * modules/unistdio/ulc-vfprintf: New file.
49852         * modules/unistdio/ulc-vsnprintf: New file.
49853         * modules/unistdio/ulc-vsprintf: New file.
49854         * modules/unistdio/u8-asnprintf: New file.
49855         * modules/unistdio/u8-asprintf: New file.
49856         * modules/unistdio/u8-printf-parse: New file.
49857         * modules/unistdio/u8-snprintf: New file.
49858         * modules/unistdio/u8-sprintf: New file.
49859         * modules/unistdio/u8-vasnprintf: New file.
49860         * modules/unistdio/u8-vasprintf: New file.
49861         * modules/unistdio/u8-vsnprintf: New file.
49862         * modules/unistdio/u8-vsprintf: New file.
49863         * modules/unistdio/u8-u8-asnprintf: New file.
49864         * modules/unistdio/u8-u8-asprintf: New file.
49865         * modules/unistdio/u8-u8-snprintf: New file.
49866         * modules/unistdio/u8-u8-sprintf: New file.
49867         * modules/unistdio/u8-u8-vasnprintf: New file.
49868         * modules/unistdio/u8-u8-vasprintf: New file.
49869         * modules/unistdio/u8-u8-vsnprintf: New file.
49870         * modules/unistdio/u8-u8-vsprintf: New file.
49871         * modules/unistdio/u16-asnprintf: New file.
49872         * modules/unistdio/u16-asprintf: New file.
49873         * modules/unistdio/u16-printf-parse: New file.
49874         * modules/unistdio/u16-snprintf: New file.
49875         * modules/unistdio/u16-sprintf: New file.
49876         * modules/unistdio/u16-vasnprintf: New file.
49877         * modules/unistdio/u16-vasprintf: New file.
49878         * modules/unistdio/u16-vsnprintf: New file.
49879         * modules/unistdio/u16-vsprintf: New file.
49880         * modules/unistdio/u16-u16-asnprintf: New file.
49881         * modules/unistdio/u16-u16-asprintf: New file.
49882         * modules/unistdio/u16-u16-snprintf: New file.
49883         * modules/unistdio/u16-u16-sprintf: New file.
49884         * modules/unistdio/u16-u16-vasnprintf: New file.
49885         * modules/unistdio/u16-u16-vasprintf: New file.
49886         * modules/unistdio/u16-u16-vsnprintf: New file.
49887         * modules/unistdio/u16-u16-vsprintf: New file.
49888         * modules/unistdio/u32-asnprintf: New file.
49889         * modules/unistdio/u32-asprintf: New file.
49890         * modules/unistdio/u32-printf-parse: New file.
49891         * modules/unistdio/u32-snprintf: New file.
49892         * modules/unistdio/u32-sprintf: New file.
49893         * modules/unistdio/u32-vasnprintf: New file.
49894         * modules/unistdio/u32-vasprintf: New file.
49895         * modules/unistdio/u32-vsnprintf: New file.
49896         * modules/unistdio/u32-vsprintf: New file.
49897         * modules/unistdio/u32-u32-asnprintf: New file.
49898         * modules/unistdio/u32-u32-asprintf: New file.
49899         * modules/unistdio/u32-u32-snprintf: New file.
49900         * modules/unistdio/u32-u32-sprintf: New file.
49901         * modules/unistdio/u32-u32-vasnprintf: New file.
49902         * modules/unistdio/u32-u32-vasprintf: New file.
49903         * modules/unistdio/u32-u32-vsnprintf: New file.
49904         * modules/unistdio/u32-u32-vsprintf: New file.
49905         * modules/unistdio/ulc-asnprintf-tests: New file.
49906         * modules/unistdio/ulc-vasnprintf-tests: New file.
49907         * modules/unistdio/ulc-vasprintf-tests: New file.
49908         * modules/unistdio/ulc-vsnprintf-tests: New file.
49909         * modules/unistdio/ulc-vsprintf-tests: New file.
49910         * modules/unistdio/u8-asnprintf-tests: New file.
49911         * modules/unistdio/u8-vasnprintf-tests: New file.
49912         * modules/unistdio/u8-vasprintf-tests: New file.
49913         * modules/unistdio/u8-vsnprintf-tests: New file.
49914         * modules/unistdio/u8-vsprintf-tests: New file.
49915         * modules/unistdio/u16-asnprintf-tests: New file.
49916         * modules/unistdio/u16-vasnprintf-tests: New file.
49917         * modules/unistdio/u16-vasprintf-tests: New file.
49918         * modules/unistdio/u16-vsnprintf-tests: New file.
49919         * modules/unistdio/u16-vsprintf-tests: New file.
49920         * modules/unistdio/u32-asnprintf-tests: New file.
49921         * modules/unistdio/u32-vasnprintf-tests: New file.
49922         * modules/unistdio/u32-vasprintf-tests: New file.
49923         * modules/unistdio/u32-vsnprintf-tests: New file.
49924         * modules/unistdio/u32-vsprintf-tests: New file.
49925         * MODULES.html.sh (Unicode string functions): Add the new modules.
49926
49927 2007-07-01  Bruno Haible  <bruno@clisp.org>
49928
49929         * lib/sprintf.c (sprintf): Limit the available length estimation,
49930         to avoid address wraparound.
49931         * lib/vsprintf.c (vsprintf): Likewise.
49932         * modules/sprintf-posix (Dependencies): Add stdint.
49933         * modules/vsprintf-posix (Dependencies): Likewise.
49934
49935 2007-07-01  Bruno Haible  <bruno@clisp.org>
49936
49937         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49938         Windows PATH as well. Conservative double-quoting. Comments.
49939
49940 2007-07-01  Bruno Haible  <bruno@clisp.org>
49941             Eric Blake  <ebb9@byu.net>
49942             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943
49944         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49945         empty components in $PATH, denoting '.'.
49946
49947 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49948
49949         * gnulib-tool: Fix indentation.
49950         (func_create_megatestdir): Likewise.
49951         Report by Bruno Haible.
49952
49953 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49954
49955         Sync from Automake.
49956         * build-aux/gnupload: Fix shell portability issues with for loops.
49957         Report by Karl Berry.
49958
49959 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49960
49961         * build-aux/maint.mk (POURL): Use translationproject.org.
49962
49963 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49964             Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49967         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49968         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49969         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49970         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49971
49972 2007-06-27  Bruno Haible  <bruno@clisp.org>
49973
49974         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49975         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49976
49977 2007-06-26  Karl Berry  <karl@gnu.org>
49978
49979         * MODULES.html.sh: remove xreadlink-with-size.
49980
49981 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49982
49983         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49984         method that I hope also handles the double-include problem noted
49985         by Bruno Haible in
49986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49987
49988 2007-06-23  Bruno Haible  <bruno@clisp.org>
49989
49990         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49991         Don't let the 'mostlyclean' target fail if the last subdirectory could
49992         not be removed.
49993         Reported by Karl Berry.
49994
49995 2007-06-23  Bruno Haible  <bruno@clisp.org>
49996
49997         * gnulib-tool (echo): Add a speedier workaround for ksh.
49998         * tests/test-echo.sh: Likewise.
49999
50000 2007-06-23  Bruno Haible  <bruno@clisp.org>
50001
50002         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50003         * tests/test-echo.sh: Likewise.
50004
50005 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50006
50007         * gnulib-tool (IFS): Initialize early, so we don't set it to
50008         empty later.
50009         (self_abspathname): Rewrite algorithm to set it, reindent.
50010         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50011         (func_create_megatestdir): Merge some sed scripts.
50012
50013 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50014
50015         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50016         exposed by Sun Studio 11 cc on Solaris 8.
50017
50018 2007-06-22  Bruno Haible  <bruno@clisp.org>
50019
50020         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50021         backslashes.
50022         * tests/test-echo.sh: New file.
50023
50024 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50025
50026         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50027         simplify `sed_replace_build_aux' scripts, they are portable but
50028         echoing them with `echo' is not.
50029         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50030
50031 2007-06-21  Karl Berry  <karl@gnu.org>
50032
50033         * config/srclist.txt: guess we can't handle the licenses via
50034         srclist at the moment.
50035
50036 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50037
50038         * MODULES.html.sh: Add include_next.
50039         * modules/include_next: New file.
50040
50041 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50042
50043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50044         INCLUDE_NEXT.
50045         (gl_CHECK_NEXT_HEADERS): New macro.
50046         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
50047         the obsolescent gl_ABSOLUTE_HEADER.
50048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
50049         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
50050         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
50051         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50052         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50053         * m4/math_h.m4 (gl_MATH_H): Likewise.
50054         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50055         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50056         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50057         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50058         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50059         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50060         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50061         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50062         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50065         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50066         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50067         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50068         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50069         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50070         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50071         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50072         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50073         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50074         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50075         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50076         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50077         * lib/float_.h: Likewise.
50078         * lib/inttypes_.h: Likewise.
50079         * lib/math_.h: Likewise.
50080         * lib/search_.h: Likewise.
50081         * lib/signal_.h: Likewise.
50082         * lib/stdint_.h: Likewise.
50083         * lib/stdio_.h: Likewise.
50084         * lib/stdlib_.h: Likewise.
50085         * lib/string_.h: Likewise.
50086         * lib/sys_stat_.h: Likewise.
50087         * lib/sys_time_.h: Likewise.
50088         * lib/time_.h: Likewise.
50089         * lib/unistd_.h: Likewise.
50090         * lib/wchar_.h: Likewise.
50091         * lib/wctype_.h: Likewise.
50092         * lib/dirent_.h: Likewise.
50093         * lib/iconv_.h: Likewise.
50094         * lib/locale_.h: Likewise.
50095         * lib/netinet_in_.h: Likewise.
50096         * lib/sys_select_.h: Likewise.
50097         * lib/sys_socket_.h: Likewise.
50098         * lib/sysexits_.h: Likewise.
50099         * modules/fcntl (Depends-on): Depend on include_next, not
50100         absolute_header.
50101         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50102         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50103         * modules/fchdir: Likewise.
50104         * modules/float: Likewise.
50105         * modules/iconv_open: Likewise.
50106         * modules/inttypes: Likewise.
50107         * modules/locale: Likewise.
50108         * modules/math: Likewise.
50109         * modules/netinet_in: Likewise.
50110         * modules/search: Likewise.
50111         * modules/signal: Likewise.
50112         * modules/stdint: Likewise.
50113         * modules/stdio: Likewise.
50114         * modules/stdlib: Likewise.
50115         * modules/string: Likewise.
50116         * modules/sys_select: Likewise.
50117         * modules/sys_socket: Likewise.
50118         * modules/sys_stat: Likewise.
50119         * modules/sys_time: Likewise.
50120         * modules/sysexits: Likewise.
50121         * modules/time: Likewise.
50122         * modules/unistd: Likewise.
50123         * modules/wchar: Likewise.
50124         * modules/wctype: Likewise.
50125         * modules/sys_stat: Change maintainer to "all".
50126         * modules/unistd: Likewise.
50127
50128 2007-06-20  Karl Berry  <karl@gnu.org>
50129
50130         * config/srclist.txt: track www changes in license files.
50131
50132 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50133
50134         * build-aux/bootstrap: Remove stray dot.
50135         Make sure build_aux settings are honored when linking
50136         gnulib_extra_files.
50137
50138 2007-06-19  Eric Blake  <ebb9@byu.net>
50139
50140         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50141         Allow compilation on cygwin.
50142
50143 2007-06-19  Jim Meyering  <jim@meyering.net>
50144
50145         xreadlink-with-size: Remove module.  No longer used.
50146         Ex-callers now use xreadlink or mreadlink-with-size.
50147         * modules/xreadlink-with-size: Remove module.
50148         * lib/xreadlink-with-size.c: Remove file.
50149         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50150         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50151         just before the function definition *is* accurate.
50152
50153         Eliminate one way canonicalize_filename_mode could exit.
50154         * lib/canonicalize.c (canonicalize_filename_mode):
50155         Use mreadlink_with_size, not xreadlink_with_size.
50156
50157 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50158
50159         Detect porting problems to FreeBSD/arm, which has time_t wider than
50160         long int.  Original problem reported for GNU diff by Xin Li in
50161         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50162         * modules/getdate (Depends-on): Add intprops, verify.
50163         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50164         is an integer type no wider than long int.
50165
50166 2007-06-18  Jim Meyering  <jim@meyering.net>
50167
50168         New module: mreadlink-with-size.
50169         * MODULES.html.sh: Add mreadlink-with-size.
50170         * modules/mreadlink-with-size: New module
50171         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50172         not xreadlink-with-size.
50173         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50174
50175 2007-06-16  Bruno Haible  <bruno@clisp.org>
50176
50177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50178         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50179         Reported by Gary V. Vaughan <gary@gnu.org>.
50180
50181 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50182
50183         Revamp lchown so that it lives in unistd.h where it belongs.
50184         * lib/lchown.h: Remove.
50185         * lib/dirchownmod.c: Don't include lib/lchown.h.
50186         * lib/fchownat.c: Likewise.
50187         * lib/openat.c: Likewise.
50188         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50189         does not follow symlinks.
50190         (EOPNOTSUPP): Define if not defined.
50191         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50192         is defined to 0.
50193         (lchown): New decl.
50194         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50195         Do not check for lchown decl.
50196         Set REPLACE_LCHOWN.
50197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50198         REPLACE_LCHOWN.
50199         * modules/chown: Make it clear it follows symlinks.
50200         * modules/lchown: Make it clear it doesn't follow symlinks.
50201         (Files): Remove lib/lchown.h
50202         (Depends-on): Add unistd.
50203         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50204         (Include): Include <unistd.h>, not "lchown.h".
50205         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50206         REPLACE_LCHOWN.
50207
50208 2007-06-15  Jim Meyering  <jim@meyering.net>
50209
50210         Change license (GPL to LGPL) of fsusage and dependents.
50211         * modules/fsusage (License): Change to LGPL.
50212         * modules/full-read (License): Likewise.
50213         * modules/full-write (License): Likewise.
50214         * modules/safe-read (License): Likewise.
50215         * modules/safe-write (License): Likewise.
50216
50217 2007-06-14  Ben Pfaff  <blp@gnu.org>
50218
50219         Missing part of allocsa -> malloca transition.
50220         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50221         gl_MALLOCA.
50222
50223 2007-06-12  Bruno Haible  <bruno@clisp.org>
50224
50225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50226         to ia64, x86_64, i386.
50227         Reported by Eric Blake.
50228
50229 2007-06-12  Bruno Haible  <bruno@clisp.org>
50230
50231         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50232         cross-compiling to x86_64.
50233
50234 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50235
50236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50237         glitch reported by Ralf Wildenhues in
50238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50239
50240         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50241         Vin Shelton.
50242
50243 2007-06-11  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50246         replacement string.
50247         Reported by Eric Blake.
50248
50249 2007-06-10  Bruno Haible  <bruno@clisp.org>
50250
50251         Prepare vasnprintf code for use with Unicode strings.
50252         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50253         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50254         TYPE_U32_STRING.
50255         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50256         a_u32_string variants.
50257         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50258         * lib/printf-args.c: Don't include config.h and the specification
50259         header if PRINTF_FETCHARGS is already defined.
50260         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50261         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50262         TYPE_U16_STRING, TYPE_U32_STRING.
50263         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50264         u16_directive, u16_directives, u32_directive, u32_directives): New
50265         types.
50266         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50267         New declarations.
50268         * lib/printf-parse.c: Don't include config.h and the specification
50269         header if PRINTF_PARSE is already defined. Eliminate the set of
50270         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50271         them now. Include c-ctype.h.
50272         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50273         directive and CHAR_T_ONLY_ASCII.
50274         * lib/vasnprintf.c: Don't include config.h and the specification header
50275         if VASNPRINTF is already defined.
50276         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50277         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50278         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50279         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50280         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50281         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50282         code accordingly.
50283         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50284         pad_ourselves also in this case, with the 'c' and 's' directives, and
50285         with a different notion of "width".
50286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50287
50288 2007-06-10  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/unistr/u32-mbsnlen: New file.
50291         * lib/unistr/u32-mbsnlen.c: New file.
50292
50293         * modules/unistr/u16-mbsnlen: New file.
50294         * lib/unistr/u16-mbsnlen.c: New file.
50295
50296         * modules/unistr/u8-mbsnlen: New file.
50297         * lib/unistr/u8-mbsnlen.c: New file.
50298
50299         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50300         declarations.
50301
50302 2007-06-10  Bruno Haible  <bruno@clisp.org>
50303
50304         * lib/string_.h (mbsnlen): New declaration.
50305         * lib/mbsnlen.c: New file.
50306         * m4/mbsnlen.m4: New file.
50307         * modules/mbsnlen: New file.
50308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50309         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50310         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50311
50312 2007-06-10  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50315
50316 2007-06-10  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50319         * lib/mbuiter.h: Likewise.
50320
50321 2007-06-10  Bruno Haible  <bruno@clisp.org>
50322
50323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50324         declaration.
50325
50326 2007-06-10  Karl Berry  <karl@gnu.org>
50327
50328         * config/srclist.txt: remove gettext entries, Bruno prefers
50329         to update individually.
50330
50331 2007-06-10  Bruno Haible  <bruno@clisp.org>
50332
50333         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50334         'maxlen'. Ensure only length + width bytes are allocated, not
50335         length + 1 + width.
50336
50337 2007-06-09  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50340         (CHAR_T): Remove macro.
50341         (VASNPRINTF): Update.
50342
50343 2007-06-09  Bruno Haible  <bruno@clisp.org>
50344
50345         * MODULES.html.sh (Unicode string functions): Add the new modules.
50346
50347         * modules/uniconv/u32-conv-to-enc: New file.
50348         * lib/uniconv/u32-conv-to-enc.c: New file.
50349         * modules/uniconv/u32-conv-to-enc-tests: New file.
50350         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50351
50352         * modules/uniconv/u16-conv-to-enc: New file.
50353         * lib/uniconv/u16-conv-to-enc.c: New file.
50354         * lib/uniconv/u-conv-to-enc.h: New file.
50355         * modules/uniconv/u16-conv-to-enc-tests: New file.
50356         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50357
50358         * modules/uniconv/u8-conv-to-enc: New file.
50359         * lib/uniconv/u8-conv-to-enc.c: New file.
50360         * modules/uniconv/u8-conv-to-enc-tests: New file.
50361         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50362
50363         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50364         u32_conv_to_encoding): New declarations.
50365
50366 2007-06-09  Bruno Haible  <bruno@clisp.org>
50367
50368         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50369
50370 2007-06-09  Bruno Haible  <bruno@clisp.org>
50371
50372         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50373         * modules/malloca: Renamed from modules/allocsa, updated.
50374         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50375         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50376         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50377         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50378         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50379         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50380         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50381         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50382         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50383         * modules/c-strcasestr (Depends-on): Update.
50384         * lib/c-strcasestr.c: Update.
50385         * modules/c-strstr (Depends-on): Update.
50386         * lib/c-strstr.c: Update.
50387         * modules/canonicalize-lgpl (Depends-on): Update.
50388         * lib/canonicalize-lgpl.c: Update.
50389         * modules/clean-temp (Depends-on): Update.
50390         * lib/clean-temp.c: Update.
50391         * modules/csharpcomp (Depends-on): Update.
50392         * lib/csharpcomp.c: Update.
50393         * modules/csharpexec (Depends-on): Update.
50394         * lib/csharpexec.c: Update.
50395         * modules/javacomp (Depends-on): Update.
50396         * lib/javacomp.c: Update.
50397         * modules/javaexec (Depends-on): Update.
50398         * lib/javaexec.c: Update.
50399         * modules/mbscasestr (Depends-on): Update.
50400         * lib/mbscasestr.c: Update.
50401         * modules/mbsstr (Depends-on): Update.
50402         * lib/mbsstr.c: Update.
50403         * modules/setenv (Depends-on): Update.
50404         * lib/setenv.c: Update.
50405         * modules/strcasestr (Depends-on): Update.
50406         * lib/strcasestr.c: Update.
50407         * modules/striconveha (Depends-on): Update.
50408         * lib/striconveha.c: Update.
50409         * modules/relocatable-prog-wrapper (Files): Update.
50410         * lib/relocwrapper.c: Update.
50411         * build-aux/install-reloc: Update.
50412         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50413
50414 2007-06-08  Bruno Haible  <bruno@clisp.org>
50415
50416         Port to uClibc.
50417         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50418         * lib/fpurge.c (fpurge): Likewise.
50419         * lib/freading.c (freading): Likewise.
50420         * lib/fseeko.c (rpl_fseeko): Likewise.
50421         * lib/fseterr.c (fseterr): Likewise.
50422         * lib/fwriting.c (fwriting): Likewise.
50423         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50424
50425 2007-06-08  Bruno Haible  <bruno@clisp.org>
50426
50427         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50428         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50429         * modules/gettext (Files): Add m4/intlmacosx.m4.
50430
50431 2007-06-07  Bruno Haible  <bruno@clisp.org>
50432
50433         * modules/localename-tests: New file.
50434         * tests/test-localename.c: New file.
50435
50436         New module 'localename'.
50437         * lib/localename.h: New file.
50438         * lib/localename.c: New file, from GNU gettext.
50439         * m4/localename.m4: New file.
50440         * modules/localename: New file.
50441
50442 2007-06-07  Bruno Haible  <bruno@clisp.org>
50443
50444         Work around the lack of <wchar.h> on some builds of uClibc.
50445         * doc/headers/wchar.texi: Update.
50446         * lib/wchar_.h: Include <wchar.h> only if it exists.
50447         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50448         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50449         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50450         doesn't exist.
50451         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50452         * modules/mbfile (Depends-on): Add wchar.
50453         * modules/mbiter (Depends-on): Likewise.
50454         * modules/mbuiter (Depends-on): Likewise.
50455         Reported by Simon Josefsson.
50456
50457 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50458
50459         Work around problem reported by Steven M. Schweda in
50460         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50461         Tru64 5.1B with the Compaq compiler environment installed declares
50462         an 'isblank' function but does not define it in the C library.
50463         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50464         * lib/regex_internal.h (isblank): Likewise.
50465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50466         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50467
50468 2007-06-05  Bruno Haible  <bruno@clisp.org>
50469
50470         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50471         ia64.
50472         * modules/printf-safe: New file.
50473         * modules/fprintf-posix (Depends-on): Add printf-safe.
50474         * modules/printf-posix (Depends-on): Likewise.
50475         * modules/snprintf-posix (Depends-on): Likewise.
50476         * modules/sprintf-posix (Depends-on): Likewise.
50477         * modules/vasnprintf-posix (Depends-on): Likewise.
50478         * modules/vasprintf-posix (Depends-on): Likewise.
50479         * modules/vfprintf-posix (Depends-on): Likewise.
50480         * modules/vprintf-posix (Depends-on): Likewise.
50481         * modules/vsnprintf-posix (Depends-on): Likewise.
50482         * modules/vsprintf-posix (Depends-on): Likewise.
50483         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50484         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50485         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50486         "no" on i386, x86_64, ia64.
50487         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50488         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50489         on i386, x86_64, ia64.
50490         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50491         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50492         on i386, x86_64, ia64.
50493         * tests/test-vasnprintf-posix.c: Include float.h.
50494         (LDBL80_WORDS): New macro.
50495         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50496         on i386, x86_64, ia64.
50497         * tests/test-vasprintf-posix.c: Include float.h.
50498         (LDBL80_WORDS): New macro.
50499         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50500         on i386, x86_64, ia64.
50501         * tests/test-snprintf-posix.c: Include float.h.
50502         * tests/test-sprintf-posix.c: Likewise.
50503         * tests/test-vsnprintf-posix.c: Likewise.
50504         * tests/test-vsprintf-posix.c: Likewise.
50505
50506 2007-06-05  Bruno Haible  <bruno@clisp.org>
50507
50508         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50510         non-IEEE numbers on i386, x86_64, ia64.
50511         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50512         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50513         * tests/test-isnanl.h: Include float.h.
50514         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50515
50516 2007-06-05  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50519         also the %a / %A. Handle the %a / %A code before this extra handling.
50520
50521 2007-06-05  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50524         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50525
50526 2007-06-05  Bruno Haible  <bruno@clisp.org>
50527
50528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50529         typo in variable name.
50530
50531 2007-06-05  Eric Blake  <ebb9@byu.net>
50532
50533         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50534         Reported by Simon Josefsson.
50535
50536 2007-06-04  Bruno Haible  <bruno@clisp.org>
50537
50538         Avoid test failures on some PowerPC platforms.
50539         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50540         Define differently for PowerPC.
50541         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50542         Reported by Gary V. Vaughan <gary@gnu.org>.
50543
50544 2007-06-02  Bruno Haible  <bruno@clisp.org>
50545
50546         Fix test-stdint failure on FreeBSD/ia64.
50547         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50548         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50549         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50550         * doc/headers/stdint.texi: Update.
50551
50552 2007-06-01  Bruno Haible  <bruno@clisp.org>
50553
50554         * tests/test-binary-io.c (main): Pass a third argument to open().
50555         Reported by Gary V. Vaughan <gary@gnu.org>.
50556
50557 2007-06-01  Bruno Haible  <bruno@clisp.org>
50558
50559         * doc/functions/frexpl.texi: Update for mingw.
50560
50561 2007-06-01  Bruno Haible  <bruno@clisp.org>
50562
50563         * tests/test-lseek.c (main): Disable test of errno for invalid third
50564         argument.
50565         * doc/functions/lseek.texi: Update.
50566         Reported by Gary V. Vaughan <gary@gnu.org>.
50567
50568 2007-05-28  Bruno Haible  <bruno@clisp.org>
50569
50570         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50571
50572 2007-05-31  Eric Blake  <ebb9@byu.net>
50573
50574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50575         cross compiling.
50576
50577 2007-05-30  Eric Blake  <ebb9@byu.net>
50578         and Bruno Haible  <bruno@clisp.org>
50579
50580         Work around mingw test failures exposed by m4-1.4.9b.
50581         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50582         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50583         moment.
50584
50585 2007-05-30  Bruno Haible  <bruno@clisp.org>
50586
50587         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50588         assuming that they are closed. Needed on HP-UX 11.
50589
50590 2007-05-29  Bruno Haible  <bruno@clisp.org>
50591
50592         Fix a problem with #include_next.
50593         * lib/dirent_.h: Split the double-inclusion guard.
50594         * lib/fcntl_.h: Likewise.
50595         * lib/float_.h: Likewise.
50596         * lib/iconv_.h: Likewise.
50597         * lib/inttypes_.h: Likewise.
50598         * lib/locale_.h: Likewise.
50599         * lib/math_.h: Likewise.
50600         * lib/netinet_in_.h: Likewise.
50601         * lib/search_.h: Likewise.
50602         * lib/signal_.h: Likewise.
50603         * lib/stdint_.h: Likewise.
50604         * lib/stdio_.h: Likewise.
50605         * lib/stdlib_.h: Likewise.
50606         * lib/string_.h: Likewise.
50607         * lib/sys_select_.h: Likewise.
50608         * lib/sys_socket_.h: Likewise.
50609         * lib/sys_stat_.h: Likewise.
50610         * lib/sys_time_.h: Likewise.
50611         * lib/sysexits_.h: Likewise.
50612         * lib/time_.h: Likewise.
50613         * lib/unistd_.h: Likewise.
50614         * lib/wchar_.h: Likewise.
50615         * lib/wctype_.h: Likewise.
50616
50617 2007-05-29  Bruno Haible  <bruno@clisp.org>
50618
50619         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50620         for the moment.
50621
50622 2007-05-29  Bruno Haible  <bruno@clisp.org>
50623
50624         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50625         invocation.
50626         Reported by Eric Blake.
50627
50628 2007-05-29  Bruno Haible  <bruno@clisp.org>
50629
50630         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50631         compiling case.
50632
50633 2007-05-29  Eric Blake  <ebb9@byu.net>
50634             Bruno Haible  <bruno@clisp.org>
50635
50636         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50637         cross compiles.
50638
50639 2007-05-28  Eric Blake  <ebb9@byu.net>
50640
50641         * modules/closein-tests (test_closein_LDADD): Support test on
50642         cygwin with libtool.
50643
50644 2007-05-28  Bruno Haible  <bruno@clisp.org>
50645
50646         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50650         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50651         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50652         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50653         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50654         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50655
50656 2007-05-28  Eric Blake  <ebb9@byu.net>
50657
50658         Unconditionally include <config.h> in unit tests.
50659         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50660         * tests/test-allocsa.c, tests/test-arcfour.c,
50661         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50662         tests/test-array_list.c, tests/test-array_oset.c,
50663         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50664         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50665         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50666         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50667         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50668         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50669         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50670         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50671         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50672         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50673         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50674         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50675         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50676         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50677         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50678         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50679         test-md5.c, test-memmem.c, test-printf-posix.c,
50680         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50681         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50682         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50683         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50684         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50685         test-vasnprintf-posix2.c, test-vasnprintf.c,
50686         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50687         test-vfprintf-posix.c, test-vprintf-posix.c,
50688         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50689         test-xvasprintf.c: Likewise.
50690
50691 2007-05-28  Bruno Haible  <bruno@clisp.org>
50692
50693         * gnulib-tool (func_import): Remember the --with-tests command-line
50694         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50695         Reported by Eric Blake.
50696
50697 2007-05-28  Bruno Haible  <bruno@clisp.org>
50698
50699         * modules/ftell-tests: New file.
50700         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50701         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50702
50703         * lib/ftell.c: New file.
50704         * modules/ftell: New file.
50705         * m4/ftell.m4: New file.
50706         * doc/functions/ftell.texi: Update.
50707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50708         REPLACE_FTELL.
50709         * lib/stdio_.h (rpl_ftell): New declaration.
50710         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50711         REPLACE_FTELL.
50712
50713 2007-05-28  Eric Blake  <ebb9@byu.net>
50714
50715         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50716
50717 2007-05-28  Bruno Haible  <bruno@clisp.org>
50718
50719         * modules/fseek-tests: New file.
50720         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50721         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50722
50723         * lib/fseek.c: New file.
50724         * modules/fseek: New file.
50725         * m4/fseek.m4: New file.
50726         * doc/functions/fseek.texi: Update.
50727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50728         REPLACE_FSEEK.
50729         * lib/stdio_.h (rpl_fseek): New declaration.
50730         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50731         REPLACE_FSEEK.
50732
50733 2007-05-28  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/stdio_.h (fflush): More comments.
50736
50737 2007-05-28  Bruno Haible  <bruno@clisp.org>
50738
50739         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50740         runtime test.
50741
50742 2007-05-28  Eric Blake  <ebb9@byu.net>
50743
50744         Improve lseek module.
50745         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50746         * lib/unistd_.h (lseek): Scale back link warning message.
50747         * tests/test-lseek.c: Beef up test.
50748         * tests/test-lseek.sh: Exercise more facets of lseek.
50749         Reported by Bruno Haible.
50750
50751 2007-05-28  Bruno Haible  <bruno@clisp.org>
50752
50753         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50754         to define.
50755
50756 2007-05-27  Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50759
50760 2007-05-27  Bruno Haible  <bruno@clisp.org>
50761
50762         * modules/openmp: New file.
50763         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50764         Noah Misch.
50765
50766 2007-05-26  Bruno Haible  <bruno@clisp.org>
50767
50768         * modules/chdir-long (Depends-on): Add fchdir.
50769         * modules/chdir-safer (Depends-on): Likewise.
50770         * modules/fts (Depends-on): Likewise.
50771         * modules/fts-lgpl (Depends-on): Likewise.
50772         * modules/openat (Depends-on): Likewise.
50773         * modules/savewd (Depends-on): Likewise.
50774
50775 2007-05-24  Eric Blake  <ebb9@byu.net>
50776
50777         Fix lseek on mingw.
50778         * modules/lseek: New module.
50779         * m4/lseek.m4: New file.
50780         * lib/lseek.c: New file.
50781         * modules/lseek-tests: New file.
50782         * tests/test-lseek.c: New file.
50783         * tests/test-lseek.sh: New file.
50784         * MODULES.html.sh: Document lseek module.
50785         * modules/fflush (Depends-on): Add lseek, fseeko.
50786         * modules/fseeko (Depends-on): Likewise.
50787         * modules/ftello (Depends-on): Likewise.
50788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50789         broken.
50790         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50791         broken.
50792         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50793         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50794         * lib/ftello.c (rpl_ftello): Likewise.
50795         * tests/test-fseeko.c (main): Test this.
50796         * tests/test-fseeko.sh: Likewise.
50797         * tests/test-ftello.c (main): Likewise.
50798         * tests/test-ftello.sh: Likewise.
50799         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50800         implies replacing fseek.
50801         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50802         HAVE_FTELLO.
50803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50804         * modules/unistd (Makefile.am): Likewise.
50805         * lib/unistd_.h (lseek): Declare a replacement.
50806         * doc/functions/lseek.texi (lseek): Document this fix.
50807         * doc/functions/fseek.texi (fseek): Likewise.
50808         * doc/functions/ftell.texi (ftell): Likewise.
50809
50810 2007-05-24  Bruno Haible  <bruno@clisp.org>
50811
50812         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50813         in the printed representation of a NaN.
50814         * tests/test-vasprintf-posix.c (test_function): Likewise.
50815         * tests/test-snprintf-posix.h (test_function): Likewise.
50816         * tests/test-sprintf-posix.h (test_function): Likewise.
50817         Reported by Eric Blake.
50818
50819 2007-05-23  Eric Blake  <ebb9@byu.net>
50820
50821         Fix fseeko/ftello on cygwin 1.5.24.
50822         * doc/functions/fseeko.texi (fseeko): Document the fix.
50823         * doc/functions/ftello.texi (ftello): Document the fix.
50824         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50825         * doc/functions/stdout.text (stdout): New file.
50826         * doc/functions/stderr.text (stderr): New file.
50827         * doc/gnulib.texi (Function Substitutes): Use new files.
50828         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50829         prior to 1.7.0.
50830         * tests/test-ftello.c (main): Likewise for ftello.
50831         * tests/test-fseeko.sh: New file.
50832         * tests/test-ftello.sh: New file.
50833         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50834         with seekable stdin.
50835         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50837         (gl_REPLACE_FSEEKO): New macro.
50838         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50839         * modules/fseeko (Files): Distribute fseeko.c.
50840         * modules/ftello (Files): Distribute ftello.c.
50841         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50842         mode.
50843         * lib/ftello.c (rpl_ftello): New file.
50844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50845         fseeko, ftello.
50846         (gl_STDIN_LARGE_OFFSET): New macro.
50847         * modules/stdio (Makefile.am): Perform the replacement.
50848         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50849
50850 2007-05-23  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50853         GNULIB_POSIXCHECK is defined.
50854
50855 2007-05-21  Bruno Haible  <bruno@clisp.org>
50856
50857         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50858         Check also the output for NaN arguments. When cross-compiling, guess
50859         no on IRIX.
50860         * lib/vasnprintf.c: Update comments.
50861         * tests/test-vasnprintf-posix.c (strisnan): New function.
50862         (test_function): Use it.
50863         * tests/test-vasprintf-posix.c (strisnan): New function.
50864         (test_function): Use it.
50865         * tests/test-snprintf-posix.h (strisnan): New function.
50866         (test_function): Use it.
50867         * tests/test-sprintf-posix.h (strisnan): New function.
50868         (test_function): Use it.
50869         Reported by Eric Blake.
50870
50871 2007-05-20  Bruno Haible  <bruno@clisp.org>
50872
50873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50874         numbers that fails on BeOS.
50875         * doc/functions/frexpl.texi: Update.
50876
50877 2007-05-20  Jim Meyering  <jim@meyering.net>
50878
50879         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50880         forced upon us by glibc-2.6.
50881
50882 2007-05-20  Bruno Haible  <bruno@clisp.org>
50883
50884         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50885         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50886         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50887         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50888         NEED_PRINTF_INFINITE.
50889         (is_infinitel): New function.
50890         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50892         gl_PREREQ_VASNPRINTF_INFINITE.
50893         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50894         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50895         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50896         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50897         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50898         gl_PREREQ_VASNPRINTF_INFINITE.
50899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50900         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50901         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50902         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50903         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50905         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50906         * doc/functions/fprintf.texi: Update.
50907         * doc/functions/printf.texi: Update.
50908         * doc/functions/snprintf.texi: Update.
50909         * doc/functions/sprintf.texi: Update.
50910         * doc/functions/vfprintf.texi: Update.
50911         * doc/functions/vprintf.texi: Update.
50912         * doc/functions/vsnprintf.texi: Update.
50913         * doc/functions/vsprintf.texi: Update.
50914
50915 2007-05-20  Bruno Haible  <bruno@clisp.org>
50916
50917         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50918         was not found in libc.
50919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50920
50921 2007-05-20  Bruno Haible  <bruno@clisp.org>
50922
50923         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50924         printed as "-nan" instead of "nan".
50925         * tests/test-vasprintf-posix.c (test_function): Likewise.
50926         * tests/test-snprintf-posix.h (test_function): Likewise.
50927         * tests/test-sprintf-posix.h (test_function): Likewise.
50928         Needed for HP-UX 11.
50929
50930 2007-05-20  Jim Meyering  <jim@meyering.net>
50931
50932         Fix buggy test for the fchownat-deref bug.
50933         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50934         symlink required for the run-test.  Without it, this test would
50935         always declare that fchownat doesn't work, and client code would
50936         unnecessarily use the replacement function with fixed libc.
50937         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50938         Reported by Greg Schafer.
50939
50940 2007-05-19  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50943         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50944         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50945         Needed for IRIX 6.5 and Solaris 2.5.1.
50946
50947 2007-05-19  Bruno Haible  <bruno@clisp.org>
50948
50949         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50950         (test_function): Skip tests involving -0.0 on platforms where
50951         -0.0 = 0.0.
50952         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50953         (test_function): Skip tests involving -0.0 on platforms where
50954         -0.0 = 0.0.
50955         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50956         (test_function): Skip tests involving -0.0 on platforms where
50957         -0.0 = 0.0.
50958         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50959         (test_function): Skip tests involving -0.0 on platforms where
50960         -0.0 = 0.0.
50961         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50962         tests.
50963         * tests/test-printf-posix.h (test_function): Likewise.
50964         * tests/test-printf-posix.output: Remove all -0.0 related results.
50965         Needed for IRIX 6.5.
50966
50967 2007-05-19  Bruno Haible  <bruno@clisp.org>
50968
50969         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50970         printed as "nan0x7fffffff" instead of "nan".
50971         * tests/test-vasprintf-posix.c (test_function): Likewise.
50972         * tests/test-snprintf-posix.h (test_function): Likewise.
50973         * tests/test-sprintf-posix.h (test_function): Likewise.
50974         * tests/test-fprintf-posix.h (NaN): Remove macro.
50975         (test_function): Remove all NaN related tests.
50976         * tests/test-printf-posix.h (NaN): Remove macro.
50977         (test_function): Remove all NaN related tests.
50978         * tests/test-printf-posix.output: Remove all NaN related results.
50979         Needed for IRIX 6.5.
50980
50981 2007-05-19  Bruno Haible  <bruno@clisp.org>
50982
50983         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50985
50986 2007-05-19  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/float_.h: New file.
50989         * m4/float_h.m4: New file.
50990         * modules/float: New file.
50991         * modules/isnanl (Dependencies): Add float.
50992         * modules/isnanl-nolibm (Dependencies): Likewise.
50993         * modules/mathl (Dependencies): Likewise.
50994         * modules/printf-frexpl (Dependencies): Likewise.
50995         * modules/signbit (Dependencies): Likewise.
50996         * modules/vasnprintf (Dependencies): Likewise.
50997         * doc/headers/float.texi: Update.
50998
50999 2007-05-19  Jim Meyering  <jim@meyering.net>
51000
51001         * lib/utimens.c (gl_futimens): Rename from futimens,
51002         now that glibc-2.6 declares futimens.
51003         * lib/utimens.h: Likewise.
51004
51005 2007-05-19  Bruno Haible  <bruno@clisp.org>
51006
51007         Avoid test failures on mingw.
51008         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51009         * tests/test-printf-posix.sh: Likewise.
51010         * tests/test-vfprintf-posix.sh: Likewise.
51011         * tests/test-vprintf-posix.sh: Likewise.
51012
51013 2007-05-19  Bruno Haible  <bruno@clisp.org>
51014
51015         Fix *printf result for NaN, Inf, -0.0 on mingw.
51016         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51017         * lib/vasnprintf.c: Include math.h and isnan.h.
51018         (is_infinite_or_zero): New function.
51019         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51020         values in the %f, %F, %e, %E, %g, %G directives.
51021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51023         gl_PRINTF_INFINITE and test its result. Invoke
51024         gl_PREREQ_VASNPRINTF_INFINITE.
51025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51032         * doc/functions/fprintf.texi: Update.
51033         * doc/functions/printf.texi: Update.
51034         * doc/functions/snprintf.texi: Update.
51035         * doc/functions/sprintf.texi: Update.
51036         * doc/functions/vfprintf.texi: Update.
51037         * doc/functions/vprintf.texi: Update.
51038         * doc/functions/vsnprintf.texi: Update.
51039         * doc/functions/vsprintf.texi: Update.
51040
51041 2007-05-19  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51044         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51045         Instead of multiplying with 10^k, set extra_zeroes to k.
51046         (scale10_round_long_double): Remove function.
51047
51048 2007-05-18  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
51051         introduced on 2007-05-06.
51052
51053 2007-05-18  Bruno Haible  <bruno@clisp.org>
51054
51055         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51056         %g directives.
51057         * tests/test-vasprintf-posix.c (test_function): Likewise.
51058         * tests/test-snprintf-posix.h (test_function): Likewise.
51059         * tests/test-sprintf-posix.h (test_function): Likewise.
51060
51061 2007-05-18  Bruno Haible  <bruno@clisp.org>
51062
51063         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51064         (strmatch): New function.
51065         (test_function): Test the %f directive on numbers of various exponents.
51066         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51067         (strmatch): New function.
51068         (test_function): Test the %f directive on numbers of various exponents.
51069         * tests/test-snprintf-posix.h (strmatch): New function.
51070         (test_function): Test the %f directive on numbers of various exponents.
51071         * tests/test-sprintf-posix.h (strmatch): New function.
51072         (test_function): Test the %f directive on numbers of various exponents.
51073         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51074         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51075         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51076         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51077
51078 2007-05-18  Bruno Haible  <bruno@clisp.org>
51079
51080         Add support for 'long double' number output.
51081         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51082         * lib/vasnprintf.c: Include math.h and float+.h.
51083         (mp_limb_t): New type.
51084         (GMP_LIMB_BITS): New macro.
51085         (mp_twolimb_t): New type.
51086         (GMP_TWOLIMB_BITS): New macro.
51087         (mpn_t): New type.
51088         (multiply, divide, convert_to_decimal, decode_long_double,
51089         scale10_round_long_double, scale10_round_decimal_long_double,
51090         floorlog10l): New functions.
51091         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51092         for the %f, %F, %e, %E, %g, %G directives.
51093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51095         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51096         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51104         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51105         * modules/snprintf-posix (Depends-on): Likewise.
51106         * modules/sprintf-posix (Depends-on): Likewise.
51107         * modules/vasnprintf-posix (Depends-on): Likewise.
51108         * modules/vasprintf-posix (Depends-on): Likewise.
51109         * modules/vfprintf-posix (Depends-on): Likewise.
51110         * modules/vsnprintf-posix (Depends-on): Likewise.
51111         * modules/vsprintf-posix (Depends-on): Likewise.
51112         * modules/vasnprintf (Files): Add lib/float+.h.
51113         * doc/functions/fprintf.texi: Update.
51114         * doc/functions/printf.texi: Update.
51115         * doc/functions/snprintf.texi: Update.
51116         * doc/functions/sprintf.texi: Update.
51117         * doc/functions/vfprintf.texi: Update.
51118         * doc/functions/vprintf.texi: Update.
51119         * doc/functions/vsnprintf.texi: Update.
51120         * doc/functions/vsprintf.texi: Update.
51121
51122 2007-05-18  Bruno Haible  <bruno@clisp.org>
51123
51124         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51125
51126 2007-05-18  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51129         for printing 64-bit integers. Needed for mingw.
51130
51131 2007-05-18  Bruno Haible  <bruno@clisp.org>
51132
51133         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51134         gl_FUNC_FREXPL_WORKS.
51135         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51136
51137 2007-05-18  Bruno Haible  <bruno@clisp.org>
51138
51139         * modules/frexpl-nolibm-tests: New file.
51140
51141         * modules/frexpl-nolibm: New file.
51142         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51143
51144 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51147         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51148         GCC 4.2, which otherwise issues a lot of warnings.
51149         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51150         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51151         Likewise.
51152         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51153         * modules/iconv_open (iconv.h): Likewise.
51154         * modules/locale (locale.h): Likewise.
51155         * modules/netinet_in (netinet/in.h): Likewise.
51156         * modules/sys_select (sys_select.h): Likewise.
51157         * modules/sys_socket (sys/socket.h): Likewise.
51158         * modules/sys_stat (sys/stat.h): Likewise.
51159         * modules/sysexits (sysexits.h): Likewise.
51160         * modules/unistd (unistd.h): Likewise.
51161
51162 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51163
51164         * modules/closein-tests (Makefile.am): Distribute
51165         `test-closein.sh'.
51166
51167 2007-05-17  Bruno Haible  <bruno@clisp.org>
51168
51169         * tests/test-printf-posix.output: Renamed from
51170         tests/test-fprintf-posix.out.
51171         * modules/fprintf-posix-tests: Update.
51172         * modules/printf-posix-tests: Update.
51173         * modules/vfprintf-posix-tests: Update.
51174         * modules/vprintf-posix-tests: Update.
51175         * tests/test-fprintf-posix.sh: Update.
51176         * tests/test-printf-posix.sh: Update.
51177         * tests/test-vfprintf-posix.sh: Update.
51178         * tests/test-vprintf-posix.sh: Update.
51179         Reported by Ralf Wildenhues.
51180
51181 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51184         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51185         GCC 4.2, which otherwise issues a lot of warnings.
51186         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51187         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51188         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51189         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51190         it should no longer be needed.
51191         * lib/string_.h: Likewise.
51192         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51193         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51194         * modules/inttypes (inttypes.h): Likewise.
51195         * modules/math (math.h): Likewise.
51196         * modules/search (search.h): Likewise.
51197         * modules/signal (signal.h): Likewise.
51198         * modules/stdint (stdint.h): Likewise.
51199         * modules/stdio (stdio.h): Likewise.
51200         * modules/stdlib (stdlib.h): Likewise.
51201         * modules/string (string.h): Likewise.
51202         * modules/sys_time (sys/time.h): Likewise.
51203         * modules/time (time.h): Likewise.
51204         * modules/wchar (wchar.h): Likewise.
51205         * modules/wctype (wtype.h): Likewise.
51206
51207 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51208
51209         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51210
51211 2007-05-13  Bruno Haible  <bruno@clisp.org>
51212
51213         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51214         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51215         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51216         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51217         (gl_PREREQ_STRTOK_R): Don't require it here.
51218
51219 2007-05-13  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51222         when used in C++ mode.
51223
51224 2007-05-12  Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/linebuffer.h: Tweak doc.
51227         * lib/linebuffer.c: Likewise.
51228
51229 2007-05-12  James Youngman  <jay@gnu.org>
51230
51231         * lib/linebuffer.c (readlinebuffer_delim): New function,
51232         like readlinebuffer, but use a caller-specified delimiter.
51233         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51234         as the delimiter.
51235         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51236
51237 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51238
51239         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51240         * modules/openat (Files): Remove openat-die.c.
51241         (Depends-on): Add openat-die.
51242         * modules/openat-die: New module.
51243
51244 2007-05-06  Bruno Haible  <bruno@clisp.org>
51245
51246         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51247         Update with info about Cygwin.
51248         * doc/functions/fprintf.texi: Update.
51249         * doc/functions/printf.texi: Update.
51250         * doc/functions/snprintf.texi: Update.
51251         * doc/functions/sprintf.texi: Update.
51252         * doc/functions/vfprintf.texi: Update.
51253         * doc/functions/vprintf.texi: Update.
51254         * doc/functions/vsnprintf.texi: Update.
51255         * doc/functions/vsprintf.texi: Update.
51256         Reported by Eric Blake.
51257
51258 2007-05-06  Bruno Haible  <bruno@clisp.org>
51259
51260         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51261         padding ourselves for the floating-point directives.
51262         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51265         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51266         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51274         * tests/test-snprintf-posix.h (test_function): Also check the width
51275         and some flags in the %f directive.
51276         * tests/test-sprintf-posix.h (test_function): Likewise.
51277         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51278         * tests/test-vasprintf-posix.c (test_function): Likewise.
51279         * doc/functions/fprintf.texi: Update.
51280         * doc/functions/printf.texi: Update.
51281         * doc/functions/snprintf.texi: Update.
51282         * doc/functions/sprintf.texi: Update.
51283         * doc/functions/vfprintf.texi: Update.
51284         * doc/functions/vprintf.texi: Update.
51285         * doc/functions/vsnprintf.texi: Update.
51286         * doc/functions/vsprintf.texi: Update.
51287
51288 2007-05-06  Bruno Haible  <bruno@clisp.org>
51289
51290         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51291         pass the ' flag character to sprintf or snprintf.
51292         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51295         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51296         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51298         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51304         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51305         flag.
51306         * tests/test-sprintf-posix.h (test_function): Likewise.
51307         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51308         * tests/test-vasprintf-posix.c (test_function): Likewise.
51309         * doc/functions/fprintf.texi: Update.
51310         * doc/functions/printf.texi: Update.
51311         * doc/functions/snprintf.texi: Update.
51312         * doc/functions/sprintf.texi: Update.
51313         * doc/functions/vfprintf.texi: Update.
51314         * doc/functions/vprintf.texi: Update.
51315         * doc/functions/vsnprintf.texi: Update.
51316         * doc/functions/vsprintf.texi: Update.
51317
51318 2007-05-01  Bruno Haible  <bruno@clisp.org>
51319
51320         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51321
51322 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51323
51324         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51325         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51326
51327 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51328
51329         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51330         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51332
51333 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51334
51335         * lib/argp-help.c (struct hol_entry): New member `ord'.
51336         (HOL_ENTRY_PTRCMP): Use ord for comparison
51337         (hol_sort): Initialize ord.
51338
51339 2007-05-01  Bruno Haible  <bruno@clisp.org>
51340
51341         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51342         Reported by Eric Blake.
51343         * doc/gnulib.texi (Function Substitutes): Update.
51344
51345 2007-05-01  Bruno Haible  <bruno@clisp.org>
51346
51347         * doc/functions.texi: Remove file, now redundant through
51348         doc/functions/*.texi.
51349
51350 2007-05-01  Bruno Haible  <bruno@clisp.org>
51351
51352         * modules/argp (Depends-on): Add sleep.
51353
51354 2007-05-01  Bruno Haible  <bruno@clisp.org>
51355
51356         * modules/sleep-tests: New file.
51357         * tests/test-sleep.c: New file.
51358
51359         * modules/sleep: New file.
51360         * lib/sleep.c: New file.
51361         * m4/sleep.m4: New file.
51362         * lib/unistd_.h (sleep): New declaration.
51363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51364         HAVE_SLEEP.
51365         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51366         * doc/functions/sleep.texi: Document the sleep module.
51367
51368 2007-05-01  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/sigprocmask.h: Remove file.
51371         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51372         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51374         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51375         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51376         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51377         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51378         HAVE_SIGSET_T as a shell variable.
51379         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51380         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51381         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51382         (Depends-on): Add signal. Remove verify.
51383         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51384         (Include): Mention <signal.h> instead of sigprocmask.h.
51385         * NEWS: Mention the change.
51386         * lib/fatal-signal.c: Don't include sigprocmask.h.
51387
51388 2007-05-01  Bruno Haible  <bruno@clisp.org>
51389
51390         * modules/signal: New file.
51391         * lib/signal_.h: New file.
51392         * m4/signal_h.m4: New file.
51393
51394 2007-05-01  Bruno Haible  <bruno@clisp.org>
51395
51396         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51397         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51398         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51399         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51400
51401 2007-05-01  Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51404         configure time.
51405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51406         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51407         * modules/sys_stat (Makefile.am): Substitute their values into
51408         sys/stat.h.
51409
51410 2007-05-01  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51413         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51414         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51415
51416 2007-05-01  Bruno Haible  <bruno@clisp.org>
51417
51418         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51419         'assert' module here.
51420
51421 2007-05-01  Bruno Haible  <bruno@clisp.org>
51422
51423         * doc/functions/*.texi: New files.
51424         * doc/functions/google-ranking.txt: New file.
51425         * doc/gnulib.texi (Function Substitutes): New chapter.
51426         (ctime, inet_ntoa): Remove sections.
51427         * doc/ctime.texi: Remove file.
51428         * doc/inet_ntoa.texi: Remove file.
51429         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51430         dependencies.
51431         (%.info): New rule, specifying a --reference-limit.
51432
51433 2007-05-01  Bruno Haible  <bruno@clisp.org>
51434
51435         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51436
51437 2007-05-01  Bruno Haible  <bruno@clisp.org>
51438
51439         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51440         the portability of 'mkdir' to mingw systems.
51441
51442 2007-05-01  Bruno Haible  <bruno@clisp.org>
51443
51444         * doc/headers/google-ranking.txt: New file.
51445
51446 2007-04-30  Eric Blake  <ebb9@byu.net>
51447
51448         Prefer fseeko to fseek.
51449         * modules/getpass (Depends-on): Add fseeko.
51450         * lib/getpass.c (getpass): Use fseeko, not fseek.
51451
51452 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51453
51454         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51455         assumes the sorting is stable, while most qsort implementations
51456         are not.  Use argument addresses to ensure they never compare as
51457         equal.
51458
51459         * tests/test-argp-2.sh (usage-indent test): Fix output
51460         (func_compare): Restore diff options
51461         * tests/test-argp.c: Restore #include "progname.h"
51462
51463 2007-04-29  Bruno Haible  <bruno@clisp.org>
51464
51465         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51466         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51467         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51468         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51469         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51470         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51471         (TESTS, check_PROGRAMS): Add test-snprintf.
51472         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51473         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51474         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51475         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51476         assertions that fail on HP-UX, OSF/1, or IRIX.
51477         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51478
51479 2007-04-29  Bruno Haible  <bruno@clisp.org>
51480
51481         * MODULES.html.sh (posix_functions): Remove 'contents'.
51482
51483 2007-04-29  Karl Berry  <karl@gnu.org>
51484
51485         * config/srclist.txt (gendocs_template_min): new entry.
51486
51487 2007-04-29  Bruno Haible  <bruno@clisp.org>
51488
51489         Work around fpurge bug on BSD systems.
51490         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51491         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51492         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51493         fpurge to rpl_fpurge if the system already has this function.
51494         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51495         the case where the system already has this function. Correct invariants
51496         on BSD systems.
51497         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51498         BSD systems.
51499
51500 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51501
51502         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51503         proposed by Sven Verdoolaege.
51504
51505         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51506         options.
51507         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51508         (usage and help tests): Update
51509
51510 2007-04-29  Bruno Haible  <bruno@clisp.org>
51511
51512         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51513         Print more information in case of failure. Disable a test on BeOS.
51514
51515 2007-04-29  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51518         This helps debugging on systems on which no gdb is available.
51519
51520 2007-04-29  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/freading.h: Improve comments.
51523         * lib/fwriting.h: Likewise.
51524         * tests/test-freading.c (main): Don't check freading immediately after
51525         repositioning. Needed for glibc.
51526
51527 2007-04-29  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/freading.c (freading): Trivial simplification.
51530
51531 2007-04-28  Bruno Haible  <bruno@clisp.org>
51532
51533         * tests/test-fwriting.c (main): Also test the interaction between
51534         fflush and fwriting.
51535         * modules/fwriting-tests (Depends-on): Add fflush.
51536
51537         * tests/test-freading.c (main): Also test the interaction between
51538         fflush and freading.
51539         * modules/freading-tests (Depends-on): Add fflush.
51540
51541 2007-04-28  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51544         fseeko and ftello.
51545         Suggested by Eric Blake.
51546
51547 2007-04-28  Jim Meyering  <jim@meyering.net>
51548
51549         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51550         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51551         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51552
51553 2007-04-27  Eric Blake  <ebb9@byu.net>
51554
51555         * doc/headers/assert.texi (assert.h): Document assert module use.
51556
51557 2007-04-27  Bruno Haible  <bruno@clisp.org>
51558
51559         * doc/headers/*.texi: New files.
51560         * doc/gnulib.texi (Header File Substitutes): New chapter.
51561         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51562         dependencies.
51563         (standards.info ,standards.html, standards.dvi): Update dependencies.
51564         (mostlyclean, clean): New targets.
51565
51566 2007-04-27  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51569         * modules/sysexits (Files, Makefile.am): Update.
51570
51571         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51572         * modules/sys_socket (Files, Makefile.am): Update.
51573
51574         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51575         * modules/sys_stat (Files, Makefile.am): Update.
51576
51577 2007-04-27  Eric Blake  <ebb9@byu.net>
51578
51579         * lib/freading.h: Improve comments.
51580         * lib/fwriting.h: Likewise.
51581         * lib/fflush.c: Likewise.
51582
51583         Fix closein for mingw.
51584         * modules/closein-tests: Add tests for closein.
51585         * tests/test-closein.c: New file.
51586         * tests/test-closein.sh: Likewise.
51587         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51588         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51589
51590 2007-04-27  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51593         version is < 6.
51594         * lib/math_.h [__DECC]: Likewise.
51595         * lib/stdio_.h [__DECC]: Likewise.
51596         * lib/stdlib_.h [__DECC]: Likewise.
51597         * lib/string_.h [__DECC]: Likewise.
51598         * lib/time_.h [__DECC]: Likewise.
51599         * lib/wchar_.h [__DECC]: Likewise.
51600         * lib/wctype_.h [__DECC]: Likewise.
51601
51602 2007-04-27  Bruno Haible  <bruno@clisp.org>
51603
51604         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51605
51606 2007-04-27  Bruno Haible  <bruno@clisp.org>
51607
51608         * lib/fflush.c: Add comments.
51609         * modules/fpurge-tests (Depends-on): Add fflush.
51610         * modules/freadable-tests (Depends-on): Likewise.
51611         * modules/fwritable-tests (Depends-on): Likewise.
51612
51613 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51614
51615         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51616         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51617         Report by Bruno Haible <bruno@clisp.org>.
51618
51619 2007-04-26  Eric Blake  <ebb9@byu.net>
51620
51621         Fix fflush on mingw.
51622         * modules/fflush (Depends-on): Add freading.
51623         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51624         but unread data.
51625
51626 2007-04-26  Eric Blake  <ebb9@byu.net>
51627         and Bruno Haible  <bruno@clisp.org>
51628
51629         Implement freading and fwriting.
51630         * lib/freading.c: New file.
51631         * lib/freading.h: Likewise.
51632         * m4/freading.m4: Likewise.
51633         * modules/freading: Likewise.
51634         * modules/freading-tests: Likewise.
51635         * tests/test-freading.c: Likewise.
51636         * lib/fwriting.c: New file.
51637         * lib/fwriting.h: Likewise.
51638         * m4/fwriting.m4: Likewise.
51639         * modules/fwriting: Likewise.
51640         * modules/fwriting-tests: Likewise.
51641         * tests/test-fwriting.c: Likewise.
51642         * MODULES.html.sh (File stream based Input/Output): Mention them.
51643
51644 2007-04-26  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51647         'long' when we assume it.
51648         Suggested by Eric Blake.
51649
51650 2007-04-26  Bruno Haible  <bruno@clisp.org>
51651
51652         Ensure fseeko, ftello are declared on glibc systems.
51653         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51654         * modules/fseeko (configure.ac-early): Likewise.
51655         * modules/ftello (configure.ac-early): Likewise.
51656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51657         AC_FUNC_FSEEKO for this.
51658         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51659         (gl_CHECK_FSEEKO): Remove macro.
51660
51661 2007-04-26  Bruno Haible  <bruno@clisp.org>
51662
51663         * tests/test-fflush.c (main): Also check the ftell result after
51664         fflush and fseek/fseeko.
51665         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51666         file descriptor position cache in the stream.
51667         * lib/fseeko.c (rpl_fseeko): Likewise.
51668
51669 2007-04-26  Bruno Haible  <bruno@clisp.org>
51670
51671         * modules/fflush-tests (Depends-on): Add fseeko.
51672
51673 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51674             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51675
51676         * lib/argz_.h: ensure error_t definition is obtained in same
51677         mechanism system argz.h would have.
51678         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51679         argz facilities are known bad.  Err on the side of caution if
51680         cross-compiling.
51681
51682 2007-04-25  Eric Blake  <ebb9@byu.net>
51683
51684         * lib/fpurge.c (includes): Use stdlib.h for free.
51685         * tests/test-fflush.c (main): Also test fflush-fseeko.
51686
51687 2007-04-25  Bruno Haible  <bruno@clisp.org>
51688
51689         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51690         * lib/fseeko.c: New file.
51691         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51692         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51693         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51694         gl_FUNC_FSEEKO.
51695         (gl_FUNC_FSEEKO): Invoke it.
51696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51697         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51698         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51699
51700 2007-04-25  Bruno Haible  <bruno@clisp.org>
51701
51702         * modules/fflush (Depends-on): Add ftello.
51703
51704 2007-04-25  Bruno Haible  <bruno@clisp.org>
51705
51706         * modules/ftello-tests: New file.
51707         * tests/test-ftello.c: New file.
51708
51709         * modules/ftello: New file.
51710         * m4/ftello.m4: New file.
51711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51712         HAVE_FTELLO.
51713         * lib/stdio_.h (ftello): New declaration.
51714         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51715         HAVE_FTELLO.
51716
51717 2007-04-25  Bruno Haible  <bruno@clisp.org>
51718
51719         * modules/fseeko-tests: New file.
51720         * tests/test-fseeko.c: New file.
51721
51722         * modules/fseeko: New file.
51723         * m4/fseeko.m4: New file.
51724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51725         HAVE_FSEEKO.
51726         * lib/stdio_.h (fseeko): New declaration.
51727         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51728         HAVE_FSEEKO.
51729
51730 2007-04-25  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51733
51734 2007-04-25  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51737         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51738         * tests/test-unistd.c: Likewise.
51739         * tests/test-fcntl.c: Likewise.
51740
51741 2007-04-23  Eric Blake  <ebb9@byu.net>
51742
51743         * lib/fflush.c: Fix missing include.
51744         Reported by Bruno Haible.
51745
51746 2007-04-23  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51749         Reported by Eric Blake.
51750
51751 2007-04-23  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51754
51755 2007-04-23  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51758
51759 2007-04-23  Bruno Haible  <bruno@clisp.org>
51760
51761         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51762         Needed on HP-UX 11.
51763
51764 2007-04-16  Eric Blake  <ebb9@byu.net>
51765
51766         Make fflush rely on fpurge.
51767         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51768         open coding all variants.
51769         * modules/fflush (Depends-on): Add fpurge and unistd.
51770         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51771         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51772
51773         Fix --with-tests compilation on cygwin.
51774         * modules/argmatch-tests (Makefile.am): List gnulib library first
51775         in LDADD.
51776         * modules/argp-tests (Makefile.am): Likewise.
51777         * modules/array-list-tests (Makefile.am): Likewise.
51778         * modules/array-oset-tests (Makefile.am): Likewise.
51779         * modules/avltree-list-tests (Makefile.am): Likewise.
51780         * modules/avltree-oset-tests (Makefile.am): Likewise.
51781         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51782         * modules/carray-list-tests (Makefile.am): Likewise.
51783         * modules/dirname-tests (Makefile.am): Likewise.
51784         * modules/frexp-tests (Makefile.am): Likewise.
51785         * modules/isnanl-tests (Makefile.am): Likewise.
51786         * modules/linked-list-tests (Makefile.am): Likewise.
51787         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51788         * modules/lock-tests (Makefile.am): Likewise.
51789         * modules/rbtree-list-tests (Makefile.am): Likewise.
51790         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51791         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51792         * modules/tls-tests (Makefile.am): Likewise.
51793         * modules/tsearch-tests (Makefile.am): Likewise.
51794         * modules/xvasprintf-tests (Makefile.am): Likewise.
51795
51796         Fix fpurge for cygwin.
51797         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51798         value.
51799         * modules/fpurge-tests (Depends-on): Clean up trash.
51800
51801 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51802
51803         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51804
51805         * m4/autobuild.m4: Re-indent.
51806
51807 2007-04-13  Bruno Haible  <bruno@clisp.org>
51808
51809         * modules/fpurge-tests: New file.
51810         * tests/test-fpurge.c: New file.
51811
51812         * modules/fpurge: New file.
51813         * lib/fpurge.h: New file.
51814         * lib/fpurge.c: New file.
51815         * m4/fpurge.m4: New file.
51816
51817 2007-04-13  Bruno Haible  <bruno@clisp.org>
51818
51819         * modules/fbufmode-tests: New file.
51820         * tests/test-fbufmode.c: New file.
51821
51822         * modules/fbufmode: New file.
51823         * lib/fbufmode.h: New file.
51824         * lib/fbufmode.c: New file.
51825         * m4/fbufmode.m4: New file.
51826
51827 2007-04-13  Bruno Haible  <bruno@clisp.org>
51828
51829         * modules/fwritable-tests: New file.
51830         * tests/test-fwritable.c: New file.
51831
51832         * modules/fwritable: New file.
51833         * lib/fwritable.h: New file.
51834         * lib/fwritable.c: New file.
51835         * m4/fwritable.m4: New file.
51836
51837 2007-04-13  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/freadable-tests: New file.
51840         * tests/test-freadable.c: New file.
51841
51842         * modules/freadable: New file.
51843         * lib/freadable.h: New file.
51844         * lib/freadable.c: New file.
51845         * m4/freadable.m4: New file.
51846
51847 2007-04-13  Bruno Haible  <bruno@clisp.org>
51848
51849         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51850         MOSTLYCLEANFILES.
51851
51852 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51855         gzip bootstrap.conf to avoid dragging in i18n machinery.
51856         (gnulib_tool_option): Use it.
51857
51858 2007-04-13  Bruno Haible  <bruno@clisp.org>
51859
51860         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51861         %F directives.
51862         * tests/test-vasprintf-posix.c (test_function): Likewise.
51863         * tests/test-snprintf-posix.h (test_function): Likewise.
51864         * tests/test-sprintf-posix.h (test_function): Likewise.
51865         * tests/test-fprintf-posix.h (test_function): Likewise.
51866         * tests/test-printf-posix.h (test_function): Likewise.
51867         * tests/test-fprintf-posix.out: Likewise.
51868
51869 2007-04-13  Bruno Haible  <bruno@clisp.org>
51870
51871         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51872         * modules/tls-tests (configure.ac): Likewise.
51873         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51874
51875 2007-04-13  Bruno Haible  <bruno@clisp.org>
51876
51877         * lib/tls.c (glthread_tls_get): Fix return type.
51878         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51879
51880 2007-04-12  Eric Blake  <ebb9@byu.net>
51881
51882         * modules/gettime (Depends-on): Remove gettime.
51883         Reported by Dmitry V. Levin.
51884
51885 2007-04-12  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/fflush (Include): Mention <stdio.h>.
51888         * modules/strtoimax (Include): Mention <inttypes.h>.
51889         * modules/strtoumax (Include): Likewise.
51890
51891 2007-04-12  Eric Blake  <ebb9@byu.net>
51892
51893         * .cvsignore: New file.
51894         * .gitignore: Likewise.
51895
51896 2007-04-12  Bruno Haible  <bruno@clisp.org>
51897
51898         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51899         not before, since $(LDADD) often contains libgnu.a.
51900         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51901         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51902         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51903         Needed on Cygwin.
51904
51905 2007-04-12  Eric Blake  <ebb9@byu.net>
51906
51907         Work around glibc's failure to flush stdin on fclose.
51908         * lib/closein.c (close_stdin): Flush stdin before closing.
51909
51910         Work around glibc's failure to reset seekable stdin on exit.
51911         * modules/closein: New module.
51912         * lib/closein.c: New file.
51913         * lib/closein.h: Likewise.
51914         * m4/closein.m4: Likewise.
51915         * MODULES.html.sh (File stream based Input/Output): Document it.
51916
51917 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51918
51919         * gnulib-tool: Rename generated 'autobuild' script to
51920         'do-autobuild' in --create-megatestdir output.
51921
51922         * doc/gnulib.texi (Build robot for gnulib): Fix.
51923
51924 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51925
51926         * modules/sysexits (Depends-on): Add absolute-header.
51927
51928 2007-04-12  Eric Blake  <ebb9@byu.net>
51929
51930         No need to preserve errno on success.
51931         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51932         Reported by Bruno Haible.
51933
51934 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51935
51936         * MODULES.html.sh (Support for maintaining and releasing
51937         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51938
51939 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51940
51941         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51942
51943 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51944
51945         * modules/autobuild: New module.
51946
51947         * m4/autobuild.m4: New file.
51948
51949 2007-04-11  Bruno Haible  <bruno@clisp.org>
51950
51951         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51952         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51956         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51957         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51959         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51960         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51962         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51963         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51964         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51979         Reported by Eric Blake.
51980
51981 2007-04-11  Bruno Haible  <bruno@clisp.org>
51982
51983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51984
51985 2007-04-10  Bruno Haible  <bruno@clisp.org>
51986
51987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51988         for NaN and Infinity. Needed on FreeBSD 6.1.
51989         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51990         regarding results for "%010a" of Infinity and NaN.
51991         * tests/test-vasprintf-posix.c (test_function): Likewise.
51992         * tests/test-snprintf-posix.h (test_function): Likewise.
51993         * tests/test-sprintf-posix.h (test_function): Likewise.
51994         * tests/test-fprintf-posix.h (test_function): Likewise.
51995         * tests/test-printf-posix.h (test_function): Likewise.
51996         * tests/test-fprintf-posix.out: Likewise.
51997
51998 2007-04-10  Bruno Haible  <bruno@clisp.org>
51999
52000         * modules/locale-tests: New file.
52001         * tests/test-locale.c: New file.
52002
52003         * modules/locale: New file.
52004         * lib/locale_.h: New file.
52005         * m4/locale_h.m4: New file.
52006
52007 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52008             Bruno Haible  <bruno@clisp.org>
52009
52010         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52011         be determined, test for availability of the copysignf, copysign,
52012         copysignl functions.
52013         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52014         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52015         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52016
52017 2007-04-09  Eric Blake  <ebb9@byu.net>
52018
52019         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52020         * modules/stdio (Makefile.am): Support fflush.
52021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52022         * modules/fflush: New file.
52023         * lib/fflush.c: Likewise.
52024         * m4/fflush.m4: Likewise.
52025         * modules/fflush-tests: New test.
52026         * tests/test-fflush.c: Likewise.
52027         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52028
52029 2007-04-06  Bruno Haible  <bruno@clisp.org>
52030
52031         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52032         (VASNPRINTF): Use signbit for faster determination whether to print a
52033         minus sign.
52034         * modules/vasnprintf (Files): Remove lib/float+.h.
52035         * modules/fprintf-posix (Depends-on): Add signbit.
52036         * modules/snprintf-posix (Depends-on): Likewise.
52037         * modules/sprintf-posix (Depends-on): Likewise.
52038         * modules/vasnprintf-posix (Depends-on): Likewise.
52039         * modules/vasprintf-posix (Depends-on): Likewise.
52040         * modules/vfprintf-posix (Depends-on): Likewise.
52041         * modules/vsnprintf-posix (Depends-on): Likewise.
52042         * modules/vsprintf-posix (Depends-on): Likewise.
52043
52044 2007-04-06  Bruno Haible  <bruno@clisp.org>
52045
52046         * tests/test-frexp.c (main): Test also the sign bit of zero results.
52047         * tests/test-frexpl.c (main): Likewise.
52048         * tests/test-ldexpl.c (main): Likewise.
52049         * modules/frexp-tests (Depends-on): Add signbit.
52050         * modules/frexpl-tests (Depdends-on): Likewise.
52051         * modules/ldexpl-tests (Depdends-on): Likewise.
52052
52053 2007-04-06  Bruno Haible  <bruno@clisp.org>
52054
52055         * modules/signbit-tests: New file.
52056         * tests/test-signbit.c: New file.
52057
52058         * modules/signbit: New file.
52059         * lib/signbitf.c: New file.
52060         * lib/signbitd.c: New file.
52061         * lib/signbitl.c: New file.
52062         * m4/signbit.m4: New file.
52063         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52064         (signbit): New macro.
52065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52066         REPLACE_SIGNBIT.
52067         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52068         REPLACE_FREXPL into math.h.
52069
52070 2007-04-06  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/isnanf-nolibm-tests: New file.
52073         * tests/test-isnanf.c: New file.
52074
52075         * modules/isnanf-nolibm: New file.
52076         * lib/isnanf.h: New file.
52077         * lib/isnanf.c: New file.
52078         * lib/isnan.c: Consider the USE_FLOAT macro.
52079         * m4/isnanf.m4: New file.
52080
52081 2007-04-06  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52084         (Link): New section.
52085
52086         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52087
52088 2007-04-06  Bruno Haible  <bruno@clisp.org>
52089
52090         Assume the 'long double' type.
52091         * m4/longdouble.m4: Remove file.
52092         * config/srclist.txt: Don't mention longdouble.m4.
52093         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52094         * lib/float+.h: Likewise.
52095         * lib/frexp.c: Likewise.
52096         * lib/printf-args.h: Likewise.
52097         * lib/printf-args.c: Likewise.
52098         * lib/printf-frexp.c: Likewise.
52099         * lib/printf-parse.c: Likewise.
52100         * lib/vasnprintf.c: Likewise.
52101         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52102         * m4/intl.m4: Likewise.
52103         * m4/isnanl.m4: Likewise.
52104         * m4/printf.m4: Likewise.
52105         * m4/printf-frexpl.m4: Likewise.
52106         * m4/vasnprintf.m4: Likewise.
52107         * modules/allocsa (Files): Remove m4/longdouble.m4.
52108         * modules/gettext (Files): Likewise.
52109         * modules/relocatable-prog-wrapper (Files): Likewise.
52110         * modules/vasnprintf (Files): Likewise.
52111         * modules/isnanl (Files): Likewise.
52112         (Include): Simplify.
52113         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52114         (Include): Simplify.
52115         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52116         (Include): Simplify.
52117         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52118         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52119         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52120         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52121         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52122         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52123         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52124         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52125         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52126         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52127         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52128         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52129         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52130         * tests/test-isnanl.c: Likewise.
52131         * tests/test-snprintf-posix.h: Likewise.
52132         * tests/test-sprintf-posix.h: Likewise.
52133         * tests/test-vasnprintf-posix.c: Likewise.
52134         * tests/test-vasnprintf-posix2.c: Likewise.
52135         * tests/test-vasprintf-posix.c: Likewise.
52136
52137 2007-04-06  Bruno Haible  <bruno@clisp.org>
52138
52139         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52140         * lib/math_.h [__DECC]: Include the overridden include file through
52141         #include_next, outside the double-inclusion guard.
52142         * lib/stdio_.h [__DECC]: Likewise.
52143         * lib/stdlib_.h [__DECC]: Likewise.
52144         * lib/string_.h [__DECC]: Likewise.
52145         * lib/time_.h [__DECC]: Likewise.
52146         * lib/wchar_.h [__DECC]: Likewise.
52147         * lib/wctype_.h [__DECC]: Likewise.
52148         * lib/inttypes_.h [__DECC]: Likewise.
52149         Reported by Albert Chin <china@thewrittenword.com> in
52150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52151
52152 2007-04-04  Eric Blake  <ebb9@byu.net>
52153
52154         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52155         1.5.x.
52156
52157 2007-04-04  Bruno Haible  <bruno@clisp.org>
52158
52159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52160         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52161
52162 2007-04-04  Bruno Haible  <bruno@clisp.org>
52163
52164         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52165         results for "%010a" of Infinity and NaN.
52166         * tests/test-vasprintf-posix.c (test_function): Likewise.
52167         * tests/test-snprintf-posix.h (test_function): Likewise.
52168         * tests/test-sprintf-posix.h (test_function): Likewise.
52169         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52170         * tests/test-printf-posix.h (test_function): Likewise.
52171         * tests/test-fprintf-posix.out: Update.
52172         Needed for FreeBSD 6.1.
52173
52174 2007-04-04  Bruno Haible  <bruno@clisp.org>
52175
52176         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52177         directly used by the gnulib modules nor by gnulib-tool.
52178
52179 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52180
52181         * DEPENDENCIES: Give overall description of version dependency
52182         desirability.  Use more-typical names for apps.
52183         Add shell, coreutils, diffutils, grep, tar, gzip.
52184
52185 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52186
52187         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52188
52189 2007-04-04  Karl Berry  <karl@gnu.org>
52190
52191         * MODULES.html.sh (func_module): missing '.
52192
52193 2007-04-03  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/argmatch-tests (Makefile.am): New variable
52196         test_argmatch_LDADD.
52197         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52198         * modules/array-list-tests (Makefile.am): New variable
52199         test_array_list_LDADD.
52200         * modules/array-oset-tests (Makefile.am): New variable
52201         test_array_oset_LDADD.
52202         * modules/avltree-list-tests (Makefile.am): New variable
52203         test_avltree_list_LDADD.
52204         * modules/avltree-oset-tests (Makefile.am): New variable
52205         test_avltree_oset_LDADD.
52206         * modules/avltreehash-list-tests (Makefile.am): New variable
52207         test_avltreehash_list_LDADD.
52208         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52209         test_canonicalize_lgpl_LDADD.
52210         * modules/carray-list-tests (Makefile.am): New variable
52211         test_carray_list_LDADD.
52212         * modules/dirname-tests (Makefile.am): New variable
52213         test_dirname_LDADD.
52214         * modules/linked-list-tests (Makefile.am): New variable
52215         test_linked_list_LDADD.
52216         * modules/linkedhash-list-tests (Makefile.am): New variable
52217         test_linkedhash_list_LDADD.
52218         * modules/rbtree-list-tests (Makefile.am): New variable
52219         test_rbtree_list_LDADD.
52220         * modules/rbtree-oset-tests (Makefile.am): New variable
52221         test_rbtree_oset_LDADD.
52222         * modules/rbtreehash-list-tests (Makefile.am): New variable
52223         test_rbtreehash_list_LDADD.
52224         * modules/xvasprintf-tests (Makefile.am): New variable
52225         test_xvasprintf_LDADD.
52226         Reported by Eric Blake.
52227
52228 2007-04-03  Eric Blake  <ebb9@byu.net>
52229
52230         * DEPENDENCIES: Weaken m4 requirements.
52231
52232 2007-04-03  Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52235         * modules/isnanl-tests (configure.ac): Likewise.
52236
52237 2007-04-03  Ben Pfaff  <blp@gnu.org>
52238
52239         * modules/iconv_open: Add $(srcdir)/ to source directory
52240         references in Makefile fragments that call gperf, to fix VPATH
52241         builds.
52242
52243 2007-04-03  Bruno Haible  <bruno@clisp.org>
52244
52245         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52246         * lib/ldexpl.c: Undo last change.
52247
52248 2007-04-03  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/printf-frexpl (Depends-on): Undo last change.
52251         (Files): Add m4/ldexpl.m4.
52252
52253 2007-04-03  Bruno Haible  <bruno@clisp.org>
52254
52255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52256         * modules/isnanl (Link): New section.
52257
52258         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52259         * modules/frexp (Link): New section.
52260
52261         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52262         * modules/frexpl (Link): New section.
52263
52264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52265         * modules/ldexpl (Link): New section.
52266
52267 2007-04-03  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/TEMPLATE-EXTENDED: New file.
52270         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52271
52272 2007-04-03  Bruno Haible  <bruno@clisp.org>
52273
52274         * DEPENDENCIES: New file.
52275         Suggested by Simon Josefsson.
52276
52277 2007-04-03  Bruno Haible  <bruno@clisp.org>
52278
52279         * doc/gnulib.texi: Escape @.
52280
52281 2007-04-03  James Youngman  <jay@gnu.org>
52282         and Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52285         birthtime on all systems that have birthtime, not just those which
52286         use st_birthtimensec rather than st_birthtim.  Putting zero in
52287         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52288         that the birth time is not available for files on an NFS mount.
52289
52290 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52291
52292         * modules/memxor: Move back from crypto/, suggested by Bruno.
52293         * modules/crypto/hmac-sha1: Fix memxor dependency.
52294
52295         * modules/crypto/gc: Moved from ../.
52296
52297 2007-04-02  Eric Blake  <ebb9@byu.net>
52298
52299         * lib/ldexpl.c (includes): Avoid libm.
52300
52301         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52302
52303 2007-04-02  Bruno Haible  <bruno@clisp.org>
52304
52305         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52306         on IRIX.
52307
52308 2007-04-02  Bruno Haible  <bruno@clisp.org>
52309
52310         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52311         x86 or x86_64 platforms running MacOS X.
52312         Reported by Ryan Schmidt <@ryandesign.com>.
52313
52314 2007-04-02  Bruno Haible  <bruno@clisp.org>
52315
52316         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52317         i386.
52318
52319 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52320
52321         * modules/crypto/arcfour: Moved from ../.
52322         * modules/crypto/arcfour-tests: Moved from ../.
52323         * modules/crypto/arctwo: Moved from ../.
52324         * modules/crypto/arctwo-tests: Moved from ../.
52325         * modules/crypto/des: Moved from ../.
52326         * modules/crypto/des-tests: Moved from ../.
52327         * modules/crypto/gc-arcfour: Moved from ../.
52328         * modules/crypto/gc-arcfour-tests: Moved from ../.
52329         * modules/crypto/gc-arctwo: Moved from ../.
52330         * modules/crypto/gc-arctwo-tests: Moved from ../.
52331         * modules/crypto/gc-des: Moved from ../.
52332         * modules/crypto/gc-des-tests: Moved from ../.
52333         * modules/crypto/gc-hmac-md5: Moved from ../.
52334         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52335         * modules/crypto/gc-hmac-sha1: Moved from ../.
52336         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52337         * modules/crypto/gc-md2: Moved from ../.
52338         * modules/crypto/gc-md2-tests: Moved from ../.
52339         * modules/crypto/gc-md4: Moved from ../.
52340         * modules/crypto/gc-md4-tests: Moved from ../.
52341         * modules/crypto/gc-md5: Moved from ../.
52342         * modules/crypto/gc-md5-tests: Moved from ../.
52343         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52344         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52345         * modules/crypto/gc-random: Moved from ../.
52346         * modules/crypto/gc-rijndael: Moved from ../.
52347         * modules/crypto/gc-rijndael-tests: Moved from ../.
52348         * modules/crypto/gc-sha1: Moved from ../.
52349         * modules/crypto/gc-sha1-tests: Moved from ../.
52350         * modules/crypto/gc-tests: Moved from ../.
52351         * modules/crypto/hmac-md5: Moved from ../.
52352         * modules/crypto/hmac-md5-tests: Moved from ../.
52353         * modules/crypto/hmac-sha1: Moved from ../.
52354         * modules/crypto/hmac-sha1-tests: Moved from ../.
52355         * modules/crypto/md2: Moved from ../.
52356         * modules/crypto/md2-tests: Moved from ../.
52357         * modules/crypto/md4: Moved from ../.
52358         * modules/crypto/md4-tests: Moved from ../.
52359         * modules/crypto/md5: Moved from ../.
52360         * modules/crypto/md5-tests: Moved from ../.
52361         * modules/crypto/memxor: Moved from ../.
52362         * modules/crypto/rijndael: Moved from ../.
52363         * modules/crypto/rijndael-tests: Moved from ../.
52364         * modules/crypto/sha1: Moved from ../.
52365
52366 2007-03-30  James Youngman  <jay@gnu.org>
52367
52368         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52369         rename() to change the ctime of a file (because ctime is unaffected
52370         by rename on jfs2 on AIX 5.1).
52371         (main): Start by doing cleanup, in case a previous run failed leaving
52372         test files behind.
52373
52374 2007-03-31  Bruno Haible  <bruno@clisp.org>
52375
52376         Support old proprietary implementations of iconv.
52377         * modules/iconv_open: New file.
52378         * lib/iconv_.h: New file.
52379         * m4/iconv_h.m4: New file.
52380         * lib/iconv_open.c: New file.
52381         * lib/iconv_open-aix.gperf: New file.
52382         * lib/iconv_open-hpux.gperf: New file.
52383         * lib/iconv_open-irix.gperf: New file.
52384         * lib/iconv_open-osf.gperf: New file.
52385         * m4/iconv_open.m4: New file.
52386         * modules/linebreak (Depends-on): Add iconv_open.
52387         * modules/striconv (Depends-on): Likewise.
52388         * modules/striconveh (Depends-on): Likewise.
52389         * modules/unicodeio (Depends-on): Likewise.
52390         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52391         (iconv_t)(-1).
52392         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52393         conversion if cd is (iconv_t)(-1).
52394         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52395         is not possible.
52396
52397 2007-03-31  Bruno Haible  <bruno@clisp.org>
52398
52399         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52400         work on Solaris either. Protect also second use of "autodetect_jp".
52401
52402 2007-03-31  Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52405         the function is not present.
52406
52407 2007-03-31  Bruno Haible  <bruno@clisp.org>
52408
52409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52410         the function is not present.
52411
52412 2007-03-31  Bruno Haible  <bruno@clisp.org>
52413
52414         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52415         a bug in HP-UX iconv_open().
52416
52417 2007-03-31  Bruno Haible  <bruno@clisp.org>
52418
52419         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52420         (Mathematics <math.h>): New section, add fpieee.
52421         (Input/output <stdio.h>): Add fseterr.
52422         (Mathematics <math.h>): New section, add printf-frexp.
52423         (Container data structures): Add sublist.
52424         (Core language properties): Add fpucw, inline.
52425         (Functions for greatest-width integer types <inttypes.h>): Add
52426         imaxabs, imaxdiv, inttypes.
52427         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52428         isnanl-nolibm, ldexp.
52429         (Mathematics <math.h>): New section, add printf-frexpl.
52430         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52431         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52432         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52433         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52434         (Unicode string functions): Add unistr/u*-mbtoucr.
52435         (Java): Add javacomp-script, javaexec-script.
52436         (C#): Add csharpcomp-script, csharpexec-script.
52437         (Support for building libraries and executables): Add havelib,
52438         relocatable-*.
52439         (Support for maintaining and releasing projects): Renamed from
52440         'Support for maintaining and release projects'. Add announce-gen.
52441
52442 2007-03-31  Bruno Haible  <bruno@clisp.org>
52443
52444         * README: Talk primarily about git.
52445         (git and CVS): Renamed from CVS.
52446         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52447         gnulib is available through git.
52448         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52449
52450 2007-03-30  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52453         * lib/poll_.h: Likewise.
52454         * lib/stat_.h: Likewise.
52455         * lib/sys_time_.h: Likewise.
52456         * lib/sysexit_.h: Likewise.
52457         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52458         * lib/stdbool_.h: Likewise.
52459         * lib/byteswap_.h: Add double-inclusion guard.
52460
52461 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52462
52463         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52464
52465 2007-03-30  Karl Berry  <karl@gnu.org>
52466
52467         * config/srclist-update: double space after USA in the license
52468         substitution, since that's how it's usually (?) written.
52469
52470 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52473         reported by Bruno Haible.
52474
52475 2007-03-29  Bruno Haible  <bruno@clisp.org>
52476
52477         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52478         a bug in AIX iconv().
52479
52480 2007-03-29  Bruno Haible  <bruno@clisp.org>
52481
52482         * modules/ldexpl-tests: New file.
52483         * tests/test-ldexpl.c: New file.
52484
52485 2007-03-29  Bruno Haible  <bruno@clisp.org>
52486
52487         * lib/ldexpl.c: Include fpucw.h.
52488         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52489         multiplication.
52490         * modules/ldexpl (Depends-on): Add fpucw.
52491
52492 2007-03-29  Bruno Haible  <bruno@clisp.org>
52493
52494         * modules/ldexpl: New file.
52495         * m4/ldexpl.m4: New file.
52496         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52497         set.
52498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52499         REPLACE_LDEXPL.
52500         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52501         REPLACE_LDEXPL.
52502         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52503         gl_FUNC_LDEXPL_WORKS.
52504         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52505         * modules/mathl (Files): Remove lib/ldexpl.c.
52506         (Depends-on): Add ldexpl.
52507
52508 2007-03-29  Bruno Haible  <bruno@clisp.org>
52509
52510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52511
52512 2007-03-29  Bruno Haible  <bruno@clisp.org>
52513
52514         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52515         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52516         and possibly also HP-UX.
52517         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52518         work on AIX, IRIX, HP-UX, OSF/1.
52519         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52520         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52521         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52522         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52523         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52524         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52525
52526 2007-03-29  Bruno Haible  <bruno@clisp.org>
52527
52528         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52529
52530 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52531
52532         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52533         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52534
52535 2007-03-29  Eric Blake  <ebb9@byu.net>
52536
52537         * lib/acl-internal.h: Remove redundant include.
52538         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52539         Cygwin when a file is locked.
52540
52541 2007-03-29  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52544         file.
52545         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52546
52547 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52550         try to remove a parent directory if the child couldn't be removed
52551         (except for the first rmdir, which could fail because the child
52552         doesn't exist).  Problem reported by Jeff Blaine in
52553         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52554
52555 2007-03-28  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/striconveh.c (utf8conv_carefully): New function.
52558         (mem_cd_iconveh_internal): Invoke it.
52559
52560 2007-03-28  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52563         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52564         input.
52565         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52566         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52567         unistr/u8-uctomb.
52568
52569 2007-03-28  Bruno Haible  <bruno@clisp.org>
52570
52571         * modules/unistr/u8-mbtoucr: New file.
52572         * lib/unistr/u8-mbtoucr.c: New file.
52573         * modules/unistr/u16-mbtoucr: New file.
52574         * lib/unistr/u16-mbtoucr.c: New file.
52575         * modules/unistr/u16-mbtoucr: New file.
52576         * lib/unistr/u16-mbtoucr.c: New file.
52577         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52578
52579 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52580             Bruno Haible  <bruno@clisp.org>
52581
52582         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52583         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52584         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52585
52586         * m4/stdio_h.m4: Add stubs for vasprintf too.
52587
52588         * modules/stdio: Support vasprintf in sed command.
52589
52590         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52591         vasprintf.h.  Add stdio module indicator.
52592
52593         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52594         vasprintf.h.
52595
52596         * lib/vasprintf.h: File removed.
52597
52598         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52599         * lib/vasprintf.c: Ditto.
52600         * lib/xvasprintf.c: Ditto.
52601         * tests/test-vasprintf-posix.c: Ditto.
52602         * tests/test-vasprintf.c: Ditto.
52603
52604 2007-03-27  Bruno Haible  <bruno@clisp.org>
52605
52606         Make vasnprintf multithread-safe.
52607         * lib/vasnprintf.c (decimal_point_char): New function.
52608         (VASNPRINTF): Use it.
52609         Suggested by Simon Josefsson.
52610
52611 2007-03-27  Eric Blake  <ebb9@byu.net>
52612
52613         Support sub-second birthtime on cygwin.
52614         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52615         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52616         (get_stat_birthtime): Also work with st_birthtim.
52617
52618 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52621         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52622         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52623         (get_stat_birthtime_ns): Simplify compile-time tests.
52624         (get_stat_birthtime): Change the API to look like
52625         get_stat_mtime etc., except return a negative tv_nsec on error.
52626         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52627         Don't check for "spare" fields.
52628         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52629         or for struct stat.st_birthtime, as these tests aren't used.
52630         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52631
52632 2007-03-27  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/stat-time.h: Include <sys/stat.h>.
52635
52636 2007-03-27  James Youngman  <jay@gnu.org>
52637
52638         * lib/stat-time.h (get_stat_birthtime): New function for
52639           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52640         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52641           and its variants.
52642         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52643         * modules/stat-time-test: New file.
52644         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52645
52646 2007-03-26  Bruno Haible  <bruno@clisp.org>
52647
52648         Better support of signalling NaNs.
52649         * lib/atanl.c: Include isnanl.h.
52650         (atanl): Perform test for NaN at the beginning of the function and
52651         through a call to isnanl.
52652         * lib/cosl.c: Include isnanl.h.
52653         (cosl): Perform test for NaN at the beginning of the function and
52654         through a call to isnanl.
52655         * lib/ldexpl.c: Include isnanl.h.
52656         (ldexpl): Perform test for NaN through a call to isnanl.
52657         * lib/logl.c: Include isnanl.h.
52658         (logl): Perform test for NaN at the beginning of the function and
52659         through a call to isnanl.
52660         * lib/sinl.c: Include isnanl.h.
52661         (sinl): Perform test for NaN at the beginning of the function and
52662         through a call to isnanl.
52663         * lib/sqrtl.c: Include isnanl.h.
52664         (sqrtl): Perform test for NaN at the beginning of the function and
52665         through a call to isnanl.
52666         * lib/tanl.c: Include isnanl.h.
52667         (tanl): Perform test for NaN at the beginning of the function and
52668         through a call to isnanl.
52669         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52670         * modules/mathl (Depends-on): Add isnanl.
52671
52672 2007-03-26  Eric Blake  <ebb9@byu.net>
52673
52674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52675         regression in logic sense of previous patch.
52676
52677 2007-03-26  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52680         unportable shell command "if ! ...".
52681         Reported by Ralf Wildenhues.
52682
52683 2007-03-25  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52686         <sysexits.h> file, and only add EX_CONFIG.
52687         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52688         absolute file name and whether it is sufficient. Substitute also
52689         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52690         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52691         ABSOLUTE_SYSEXITS_H into sysexits.h.
52692
52693 2007-03-25  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52696         hints is NULL.
52697
52698 2007-03-25  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52701         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52702
52703 2007-03-25  Bruno Haible  <bruno@clisp.org>
52704
52705         * lib/vasnprintf.c: Include langinfo.h.
52706         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52707         multithread-safe.
52708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52717         Reported by Simon Josefsson.
52718
52719 2007-03-25  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52722         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52723         * modules/vasnprintf (Depends-on): Add stdint.
52724
52725 2007-03-25  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/fpieee: New file.
52728         * m4/fpieee.m4: New file.
52729         * modules/isnan-nolibm (Depends-on): Add fpieee.
52730         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52731         * modules/isnanl (Depends-on): Add fpieee.
52732
52733 2007-03-25  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52736
52737 2007-03-25  Bruno Haible  <bruno@clisp.org>
52738
52739         Avoid test failures on IRIX 6.5.
52740         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52741         (main): Use it.
52742         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52743         macros.
52744         (main): Use them.
52745
52746 2007-03-25  Bruno Haible  <bruno@clisp.org>
52747
52748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52749         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52750         exists but doesn't work.
52751         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52752         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52754         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52755         math.h.
52756
52757 2007-03-25  Bruno Haible  <bruno@clisp.org>
52758
52759         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52760         returns inf. Needed on IRIX 6.5.
52761
52762 2007-03-25  Bruno Haible  <bruno@clisp.org>
52763
52764         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52765         (main): Use isnanl instead of x != x idiom.
52766         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52767
52768         * tests/test-frexp.c: Include isnan.h.
52769         (main): Use isnan instead of x != x idiom.
52770         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52771
52772 2007-03-25  Bruno Haible  <bruno@clisp.org>
52773
52774         * tests/test-frexp.c (NaN): New function/macro.
52775         (main): Use it instead of 0.0 / 0.0.
52776         * tests/test-isnan.c (NaN): New function/macro.
52777         (main): Use it instead of 0.0 / 0.0.
52778         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52779         (test_function): Use it instead of 0.0 / 0.0.
52780         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52781         (test_function): Use it instead of 0.0 / 0.0.
52782         * tests/test-snprintf-posix.h (NaN): New function/macro.
52783         (test_function): Use it instead of 0.0 / 0.0.
52784         * tests/test-sprintf-posix.h (NaN): New function/macro.
52785         (test_function): Use it instead of 0.0 / 0.0.
52786         * tests/test-fprintf-posix.h (NaN): New function/macro.
52787         (test_function): Use it instead of 0.0 / 0.0.
52788         * tests/test-printf-posix.h (NaN): New function/macro.
52789         (test_function): Use it instead of 0.0 / 0.0.
52790
52791         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52792
52793 2007-03-25  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52796
52797 2007-03-25  Bruno Haible  <bruno@clisp.org>
52798
52799         * lib/regexec.c (merge_state_with_log): Make static.
52800
52801 2007-03-25  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/trigl.c (kernel_rem_pio2): Make static.
52804
52805 2007-03-25  Bruno Haible  <bruno@clisp.org>
52806
52807         * lib/sincosl.c (sincosl_table): Make static.
52808
52809 2007-03-25  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52812         if the compiler does not support C99.
52813
52814 2007-03-25  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/time (Makefile.am): Ensure all rule action lines start with a
52817         tab.
52818
52819 2007-03-24  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/tsearch-tests: New file.
52822         * tests/test-tsearch.sh: New file.
52823         * tests/test-tsearch.c: New file, mostly copied from glibc.
52824
52825         * modules/search-tests: New file.
52826         * tests/test-search.c: New file.
52827
52828         * modules/search: New file.
52829         * lib/search_.h: New file, incorporating lib/tsearch.h.
52830         * m4/search_h.m4: New file.
52831         * lib/tsearch.h: Remove file.
52832         * lib/tsearch.c: Include search.h instead of tsearch.h.
52833         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52834         HAVE_TSEARCH.
52835         * modules/tsearch (Files): Remove lib/tsearch.h.
52836         (Depends-on): Add search.
52837         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52838         (Include): Change tsearch.h into search.h.
52839
52840 2007-03-24  Bruno Haible  <bruno@clisp.org>
52841
52842         * modules/fpucw: New file.
52843         * lib/fpucw.h: New file.
52844         * lib/frexp.c: Include fpucw.h.
52845         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52846         (FUNC): Use them.
52847         * lib/printf-frexp.c: Include fpucw.h.
52848         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52849         (FUNC): Use them.
52850         * lib/vasnprintf.c: Include fpucw.h.
52851         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52852         'long double' calculations.
52853         * tests/test-frexpl.c: Include fpucw.h.
52854         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52855         * tests/test-printf-frexpl.c: Include fpucw.h.
52856         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52857         * modules/frexpl (Depends-on): Add fpucw.
52858         * modules/printf-frexpl (Depends-on): Likewise.
52859         * modules/fprintf-posix (Depends-on): Likewise.
52860         * modules/snprintf-posix (Depends-on): Likewise.
52861         * modules/sprintf-posix (Depends-on): Likewise.
52862         * modules/vasnprintf-posix (Depends-on): Likewise.
52863         * modules/vasprintf-posix (Depends-on): Likewise.
52864         * modules/vfprintf-posix (Depends-on): Likewise.
52865         * modules/vsnprintf-posix (Depends-on): Likewise.
52866         * modules/vsprintf-posix (Depends-on): Likewise.
52867         * modules/frexpl-tests (Depends-on): Likewise.
52868         * modules/printf-frexpl-tests (Depends-on): Likewise.
52869
52870 2007-03-24  Bruno Haible  <bruno@clisp.org>
52871
52872         * lib/float+.h: New file.
52873         * lib/isnan.c: Include float+.h.
52874         (SIZE): New macro.
52875         (FUNC): Compare only SIZE bytes of the value.
52876         * lib/vasnprintf.c: Include float+.h.
52877         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52878         SIZEOF_LDBL or SIZEOF_DBL bytes.
52879         * modules/isnan-nolibm (Files): Add lib/float+.h.
52880         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52881         * modules/isnanl (Files): Add lib/float+.h.
52882         * modules/vasnprintf (Files): Add lib/float+.h.
52883
52884 2007-03-24  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52887         include isnanl-nolibm.h.
52888
52889 2007-03-24  Bruno Haible  <bruno@clisp.org>
52890
52891         * tests/test-read-file.c (main): Don't produce spurious output for
52892         expected situations. Make the test fail if it encountered unexpected
52893         results.
52894
52895 2007-03-24  Bruno Haible  <bruno@clisp.org>
52896
52897         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52898         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52899
52900 2007-03-24  Bruno Haible  <bruno@clisp.org>
52901
52902         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52903
52904 2007-03-24  Bruno Haible  <bruno@clisp.org>
52905
52906         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52907         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52908
52909         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52910         * modules/utf8-ucs4: Turn into a symbolic link to module
52911         unistr/u8-mbtouc.
52912
52913         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52914         utf8-ucs4-unsafe.
52915         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52916         unistr/u8-mbtouc-unsafe.
52917
52918         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52919         * modules/utf16-ucs4: Turn into a symbolic link to module
52920         unistr/u16-mbtouc.
52921
52922         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52923         utf16-ucs4-unsafe.
52924         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52925         unistr/u16-mbtouc-unsafe.
52926
52927         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52928         * modules/ucs4-utf8: Turn into a symbolic link to module
52929         unistr/u8-ubtomb.
52930
52931         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52932         * modules/ucs4-utf16: Turn into a symbolic link to module
52933         unistr/u16-ubtomb.
52934
52935 2007-03-24  Bruno Haible  <bruno@clisp.org>
52936
52937         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52938         Enable the function only if HAVE_INLINE.
52939         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52940         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52941         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52942         Enable the function only if HAVE_INLINE.
52943         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52944         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52945         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52946         Enable the function only if HAVE_INLINE.
52947         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52948         Enable the function only if HAVE_INLINE.
52949         * modules/utf8-ucs4: Update.
52950         * modules/utf8-ucs4-unsafe: Update.
52951         * modules/utf16-ucs4: Update.
52952         * modules/utf16-ucs4-unsafe: Update.
52953         * modules/ucs4-utf8: Update.
52954         * modules/ucs4-utf16: Update.
52955
52956 2007-03-24  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/utf8-ucs4.h: Remove file.
52959         * lib/utf8-ucs4-unsafe.h: Remove file.
52960         * lib/utf16-ucs4.h: Remove file.
52961         * lib/utf16-ucs4-unsafe.h: Remove file.
52962         * lib/ucs4-utf8.h: Remove file.
52963         * lib/ucs4-utf16.h: Remove file.
52964         * lib/unistr.h: Include their previous contents.
52965         * m4/utf-ucs4.m4: Remove file.
52966         * m4/ucs4-utf.m4: Remove file.
52967         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52968         (Depends-on): Add unistr/base.
52969         (configure.ac): Remove gl_UTF_UCS4.
52970         (Makefile.am): Update.
52971         (Include): Change to unistr.h.
52972         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52973         (Depends-on): Add unistr/base.
52974         (configure.ac): Remove gl_UTF_UCS4.
52975         (Makefile.am): Update.
52976         (Include): Change to unistr.h.
52977         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52978         (Depends-on): Add unistr/base.
52979         (configure.ac): Remove gl_UTF_UCS4.
52980         (Makefile.am): Update.
52981         (Include): Change to unistr.h.
52982         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52983         (Depends-on): Add unistr/base.
52984         (configure.ac): Remove gl_UTF_UCS4.
52985         (Makefile.am): Update.
52986         (Include): Change to unistr.h.
52987         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52988         (Depends-on): Add unistr/base.
52989         (configure.ac): Remove gl_UCS4_UTF.
52990         (Makefile.am): Update.
52991         (Include): Change to unistr.h.
52992         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52993         (Depends-on): Add unistr/base.
52994         (configure.ac): Remove gl_UCS4_UTF.
52995         (Makefile.am): Update.
52996         (Include): Change to unistr.h.
52997         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52998         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52999         utf8-ucs4-unsafe.h.
53000         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53001         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53002         utf16-ucs4-unsafe.h.
53003         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53004         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53005         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53006         * lib/unistr/u8-strchr.c: Likewise.
53007         * lib/unistr/u8-strrchr.c: Likewise.
53008         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53009         * lib/unistr/u16-strchr.c: Likewise.
53010         * lib/unistr/u16-strrchr.c: Likewise.
53011         * lib/striconveh.c: Update.
53012         * lib/linebreak.c: Update.
53013
53014 2007-03-24  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53017         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53018
53019 2007-03-22  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53022
53023 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53024
53025         * MODULES.html.sh (File system functions): New module write-any-file.
53026         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53027         * m4/write-any-file.m4: New files.
53028
53029 2007-03-23  Eric Blake  <ebb9@byu.net>
53030
53031         * gnulib-tool: Rearrange space-tab sequences, since some editors
53032         like to eat them.
53033
53034 2007-03-23  Eric Blake  <ebb9@byu.net>
53035
53036         * lib/version-etc.c (version_etc_va): Update license wording to
53037         be more concise.  Recommended by Richard Stallman.
53038
53039 2007-03-22  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/poll.c (MSG_PEEK): New fallback definition.
53042
53043 2007-03-22  Bruno Haible  <bruno@clisp.org>
53044
53045         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
53046         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
53047         (main): Update.
53048         Fixes a compilation error on BeOS.
53049
53050 2007-03-22  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/frexpl-tests: New file.
53053         * tests/test-frexpl.c: New file.
53054
53055         * modules/frexpl: New file.
53056         * m4/frexpl.m4: New file.
53057         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53058         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53060         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53061         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53062         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53063
53064 2007-03-22  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/frexpl.c: Share code with lib/frexp.c.
53067         * modules/mathl (Files): Add lib/frexp.c.
53068         (Depends-on): Add isnanl-nolibm.
53069
53070 2007-03-22  Bruno Haible  <bruno@clisp.org>
53071
53072         * modules/printf-frexp (Files): Add m4/frexp.m4.
53073         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53074         only if the found frexp function actually works.
53075
53076 2007-03-22  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/frexp.c: Remove older implementation that uses divisions.
53079
53080 2007-03-21  Bruno Haible  <bruno@clisp.org>
53081
53082         * modules/frexp-tests: New file.
53083         * tests/test-frexp.c: New file.
53084
53085         * modules/frexp: New file.
53086         * lib/frexp.c: New file.
53087         * m4/frexp.m4: New file.
53088         * lib/math_.h (frexp): New declaration.
53089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53090         REPLACE_FREXP.
53091         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53092
53093 2007-03-21  Bruno Haible  <bruno@clisp.org>
53094
53095         * modules/isnanl-tests: New file.
53096         * tests/test-isnanl.c: New file.
53097
53098         * modules/isnanl: New file.
53099         * lib/isnanl.h: New file.
53100         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53101         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53102         gl_FUNC_ISNANL_WORKS.
53103         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53104         New macros.
53105
53106 2007-03-21  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53109         lib/isnanl.h.
53110         (Include): Update.
53111         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53112         * lib/vasnprintf.c: Update.
53113         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53114         tests/test-isnanl.h, remove tests/test-isnanl.c.
53115         (Makefile.am): Update.
53116         * tests/test-isnanl-nolibm.c: New file.
53117         * tests/test-isnanl.h: New file.
53118         * tests/test-isnanl.c: Remove file.
53119
53120 2007-03-21  Jim Meyering  <jim@meyering.net>
53121
53122         When trying to open ".", treat ESTALE like EACCES.
53123         * lib/savewd.c (savewd_save): Resort to forking not just upon
53124         failure with EACCES, but also when errno is ESTALE.
53125
53126 2007-03-20  Bruno Haible  <bruno@clisp.org>
53127
53128         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53129         Needed on AIX 5.1. Reported by Matthew Woehlke.
53130
53131 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         Suggestions by Bruno Haible:
53134         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53135         our own.
53136         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53137         * modules/acl (Depends-on): Add gettext.
53138
53139 2007-03-19  Bruno Haible  <bruno@clisp.org>
53140
53141         * modules/iconvme: Remove file.
53142         * lib/iconvme.h: Remove file.
53143         * lib/iconvme.c: Remove file.
53144         * m4/iconvme.m4: Remove file.
53145
53146 2007-03-19  Bruno Haible  <bruno@clisp.org>
53147
53148         * doc/relocatable-maint.texi: Break long shell script line.
53149         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53150
53151 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53154         handle file_has_acl.
53155         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53156         * lib/acl.c: Move header inclusions and related macro defns into
53157         lib/acl-internal.h.
53158         (S_ISLNK): Remove defn, since that's now done for us.
53159         (file_has_acl): Move to lib/file-has-acl.c.
53160         Call acl_trivial if available.  This is the crucial part of the fix.
53161         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53162         shared within the library.  Rewrite a bit, partly to make it compatible
53163         with the GNU coding style.
53164         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53165         Remove unnecessary double-quotes.
53166         Don't test for acl_to_text; the build will catch that.
53167         Replace acl_entries if it doesn't exist and it is needed.
53168         Check for -lsec and acl_trivial (as used on Solaris 10).
53169         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53170         lib/file-has-acl.c.
53171         (Depends-on): Add sys_stat, for S_ISLNK.
53172
53173 2007-03-19  Ben Pfaff  <blp@gnu.org>
53174
53175         * doc/gnulib.texi: Fix typos.
53176         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53177
53178 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53181         If size is zero here, buf must be zero.
53182
53183 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53184
53185         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53186         <bruno@clisp.org>.
53187
53188 2007-03-18  Bruno Haible  <bruno@clisp.org>
53189
53190         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53191         Suggested by Eric Blake.
53192
53193 2007-03-18  Ben Pfaff  <blp@gnu.org>
53194
53195         * doc/relocatable.texi: Recommend using as prefix a directory
53196         that does not exist and will never be created.  Based on
53197         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53198         and others.
53199
53200 2007-03-17  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/fchownat.c: Include lchown.h.
53203
53204 2007-03-17  Bruno Haible  <bruno@clisp.org>
53205
53206         Fix endless loop when the given allocated size was > INT_MAX.
53207         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53208         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53209         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53210         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53211         * lib/sprintf.c (sprintf): Likewise.
53212
53213 2007-03-17  Bruno Haible  <bruno@clisp.org>
53214
53215         * tests/test-argp-2.sh (func_compare): Output a context diff.
53216
53217 2007-03-17  Bruno Haible  <bruno@clisp.org>
53218
53219         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53220         locale's decimal-point character.
53221
53222 2007-03-17  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53225         before comparing it. Needed because on some platforms (e.g. x86) a
53226         'long double' occupies less bytes than sizeof (long double).
53227
53228 2007-03-17  Bruno Haible  <bruno@clisp.org>
53229
53230         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53231         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53232         * tests/test-getaddrinfo.c (simple): Likewise.
53233         * tests/test-read-file.c (main): Likewise.
53234
53235 2007-03-17  Bruno Haible  <bruno@clisp.org>
53236
53237         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53238
53239 2007-03-17  Bruno Haible  <bruno@clisp.org>
53240
53241         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53242         unused variable.
53243
53244 2007-03-17  Bruno Haible  <bruno@clisp.org>
53245
53246         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53247         * tests/test-c-strncasecmp.c: Likewise.
53248
53249 2007-03-17  Bruno Haible  <bruno@clisp.org>
53250
53251         * modules/stdlib (Depends-on): Add unistd.
53252         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53253         Needed for MacOS X 10.3.
53254
53255 2007-03-17  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53258
53259 2007-03-17  Bruno Haible  <bruno@clisp.org>
53260
53261         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53262
53263 2007-03-17  Bruno Haible  <bruno@clisp.org>
53264
53265         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53266         to reflect files copied from gnulib (with or without modifications).
53267         Suggested by Jim Meyering.
53268
53269 2007-03-17  Eric Blake  <ebb9@byu.net>
53270
53271         * NEWS: Document stdlib change from 2007-02-18.
53272
53273 2007-03-17  Jim Meyering  <jim@meyering.net>
53274
53275         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53276         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53277         someone uses a name containing shell meta-characters.
53278         Reported by Alfred M. Szmidt.
53279
53280         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53281
53282 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53283
53284         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53285         and copy gettext configuration files only if configure.ac contains
53286         a use of AM_GNU_GETTEXT_VERSION.
53287
53288 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53289
53290         * build-aux/bootstrap (gnulib_name): New variable.
53291         (gnulib_tool_options): Use it.
53292
53293 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53294
53295         * tests/test-des.c: Use new namespace.
53296
53297 2007-03-15  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53300         Reported by James Youngman <jay@gnu.org>.
53301
53302 2007-03-15  Bruno Haible  <bruno@clisp.org>
53303
53304         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53305         declared prototype. Needed with cc on OSF/1 5.1.
53306
53307 2007-03-15  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53310         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53311         (struct gl_list_implementation): Add dispose_fn argument to the
53312         'create_empty', 'create' methods.
53313         (struct gl_list_impl_base): Add field 'dispose_fn'.
53314         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53315         argument.
53316         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53317         dispose_fn argument.
53318         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53319         dispose_fn on the dropped values.
53320         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53321         dispose_fn argument.
53322         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53323         dropped values.
53324         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53325         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53326         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53327         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53328         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53329         argument.
53330         (gl_tree_list_free): Call dispose_fn on the dropped values.
53331         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53332         the dropped values.
53333         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53334         Add dispose_fn argument.
53335         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53336         Call dispose_fn on the dropped values.
53337         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53338         Add dispose_fn argument.
53339         (gl_sublist_create): Initialize the 'dispose_fn' field.
53340         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53341         * tests/test-array_list.c (main): Update.
53342         * tests/test-carray_list.c (main): Update.
53343         * tests/test-avltree_list.c (main): Update.
53344         * tests/test-rbtree_list.c (main): Update.
53345         * tests/test-avltreehash_list.c (main): Update.
53346         * tests/test-rbtreehash_list.c (main): Update.
53347         * tests/test-linked_list.c (main): Update.
53348         * tests/test-linkedhash_list.c (main): Update.
53349         * tests/test-array_oset.c (main): Update.
53350
53351 2007-03-15  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53354         (gl_oset_create_empty): Add dispose_fn argument.
53355         (struct gl_oset_implementation): Add dispose_fn argument to
53356         'create_empty' method.
53357         (struct gl_oset_impl_base): Add dispose_fn field.
53358         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53359         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53360         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53361         values.
53362         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53363         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53364         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53365         dropped value.
53366         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53367         dropped value.
53368         * tests/test-array_oset.c (main): Update.
53369         * tests/test-avltree_oset.c (main): Update.
53370         * tests/test-rbtree_oset.c (main): Update.
53371         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53372
53373 2007-03-13  Bruno Haible  <bruno@clisp.org>
53374
53375         * tests/test-stdbool.c (i): Update after last patch.
53376
53377 2007-03-12  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53380         the iswprint macro. Needed on Solaris 2.5.1.
53381
53382 2007-03-12  Bruno Haible  <bruno@clisp.org>
53383
53384         * tests/test-printf-frexp.c (main): Declare x as volatile.
53385
53386 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53387
53388         * doc/gnulib.texi (Build robot for gnulib): New section.
53389
53390 2007-03-12  Jim Meyering  <jim@meyering.net>
53391
53392         * build-aux/bootstrap: New file.
53393         * build-aux/bootstrap.conf: New file, from coreutils.
53394
53395 2007-03-11  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53398
53399 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53400
53401         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53402         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53403         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53404
53405 2007-03-11  Bruno Haible  <bruno@clisp.org>
53406
53407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53408         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53409
53410 2007-03-11  Bruno Haible  <bruno@clisp.org>
53411
53412         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53413         formula. Needed for SunPRO C 5.0.
53414
53415 2007-03-11  Bruno Haible  <bruno@clisp.org>
53416
53417         * modules/long-options (Depends-on): Add getopt.
53418
53419 2007-03-11  Bruno Haible  <bruno@clisp.org>
53420
53421         * modules/modechange (Depends-on): Add stdbool.
53422
53423 2007-03-11  Bruno Haible  <bruno@clisp.org>
53424
53425         * modules/i-ring (Depends-on): Add stdbool.
53426
53427 2007-03-11  Bruno Haible  <bruno@clisp.org>
53428
53429         * modules/gc-des (Depends-on): Add stdbool.
53430
53431 2007-03-11  Bruno Haible  <bruno@clisp.org>
53432
53433         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53434
53435 2007-03-11  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53438
53439 2007-03-11  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53442
53443 2007-03-11  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/vasnprintf.c (sprintf): Undefine.
53446
53447 2007-03-11  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53450         initializers in SunPRO C and Compaq C compilers.
53451
53452 2007-03-11  Bruno Haible  <bruno@clisp.org>
53453
53454         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53455         decrementing code ANSI C compliant.
53456
53457 2007-03-11  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53460         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53461
53462 2007-03-11  Bruno Haible  <bruno@clisp.org>
53463
53464         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53465         <stdbool.h> substitute doesn't pass.
53466
53467 2007-03-11  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53470
53471 2007-03-11  Bruno Haible  <bruno@clisp.org>
53472
53473         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53474         script, for submission to autobuild.josefsson.org.
53475
53476 2007-03-10  Bruno Haible  <bruno@clisp.org>
53477
53478         * modules/canonicalize-lgpl-tests: New file.
53479         * tests/test-canonicalize-lgpl.sh: New file.
53480         * tests/test-canonicalize-lgpl.c: New file.
53481
53482         * modules/c-strcase-tests: New file.
53483         * tests/test-c-strcase.sh: New file.
53484         * tests/test-c-strcasecmp.c: New file.
53485         * tests/test-c-strncasecmp.c: New file.
53486
53487         * modules/atexit-tests: New file.
53488         * tests/test-atexit.sh: New file.
53489         * tests/test-atexit.c: New file.
53490
53491 2007-03-10  Bruno Haible  <bruno@clisp.org>
53492
53493         * tests/test-binary-io.sh: Use temporary filenames that are not so
53494         likely to clash with those of other tests (in a parallel make).
53495         * tests/test-binary-io.c: Likewise.
53496
53497 2007-03-10  Bruno Haible  <bruno@clisp.org>
53498
53499         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53500         fallback; use #error instead.
53501         Suggested by Simon Josefsson.
53502
53503 2007-03-10  Bruno Haible  <bruno@clisp.org>
53504
53505         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53506         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53507         first and the last.
53508
53509 2007-03-10  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53512
53513 2007-03-10  Bruno Haible  <bruno@clisp.org>
53514
53515         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53516         "make distcheck".
53517         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53518         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53519         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53520
53521 2007-03-10  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53524         variable.
53525         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53526         variable.
53527
53528 2007-03-09  Eric Blake  <ebb9@byu.net>
53529         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53530
53531         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53532         types are not being provided by gnulib.
53533         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53534         types are supported.
53535
53536 2007-03-10  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/stdio_.h (__attribute__): New macro.
53539         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53540         vsprintf): Specify __attribute__ __format__ for GCC.
53541         Suggested by Eric Blake.
53542
53543 2007-03-09  Bruno Haible  <bruno@clisp.org>
53544
53545         * modules/printf-posix-tests: New file.
53546         * tests/test-printf-posix.sh: New file.
53547         * tests/test-printf-posix.c: New file.
53548
53549         * modules/printf-posix: New file.
53550         * lib/printf.c: New file.
53551         * m4/printf-posix-rpl.m4: New file.
53552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53553         REPLACE_PRINTF.
53554         * lib/stdio_.h (printf): New declaration.
53555         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53556         ____strfmon____): New macros.
53557         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53558         REPLACE_PRINTF.
53559
53560 2007-03-09  Bruno Haible  <bruno@clisp.org>
53561
53562         * tests/test-vasnprintf-posix2.sh: New file.
53563         * tests/test-vasnprintf-posix2.c: New file.
53564         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53565         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53566         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53567
53568         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53569         a locale dependent decimal point, rather than always '.'.
53570
53571 2007-03-09  Eric Blake  <ebb9@byu.net>
53572
53573         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53574         spite of platforms like Tandem/NSK that define it to -1.
53575
53576 2007-03-08  Bruno Haible  <bruno@clisp.org>
53577
53578         * modules/vprintf-posix-tests: New file.
53579         * tests/test-vprintf-posix.sh: New file.
53580         * tests/test-vprintf-posix.c: New file.
53581         * tests/test-printf-posix.h: New file.
53582
53583         * modules/vprintf-posix: New file.
53584         * lib/vprintf.c: New file.
53585         * m4/vprintf-posix.m4: New file.
53586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53587         REPLACE_VPRINTF.
53588         * lib/stdio_.h (vprintf): New declaration.
53589         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53590         REPLACE_VPRINTF.
53591
53592 2007-03-08  Bruno Haible  <bruno@clisp.org>
53593
53594         * modules/fprintf-posix-tests: New file.
53595         * tests/test-fprintf-posix.sh: New file.
53596         * tests/test-fprintf-posix.c: New file.
53597
53598         * modules/fprintf-posix: New file.
53599         * lib/fprintf.c: New file.
53600         * m4/fprintf-posix.m4: New file.
53601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53602         REPLACE_FPRINTF.
53603         * lib/stdio_.h (fprintf): New declaration.
53604         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53605         REPLACE_FPRINTF.
53606
53607 2007-03-08  Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/vfprintf-posix-tests: New file.
53610         * tests/test-vfprintf-posix.sh: New file.
53611         * tests/test-vfprintf-posix.c: New file.
53612         * tests/test-fprintf-posix.h: New file.
53613         * tests/test-fprintf-posix.out: New file.
53614
53615         * modules/vfprintf-posix: New file.
53616         * lib/vfprintf.c: New file.
53617         * m4/vfprintf-posix.m4: New file.
53618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53619         REPLACE_VFPRINTF.
53620         * lib/stdio_.h (vfprintf): New declaration.
53621         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53622         REPLACE_VFPRINTF.
53623
53624 2007-03-08  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53627
53628 2007-03-08  Bruno Haible  <bruno@clisp.org>
53629
53630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53631         instead of 'expr' invocations.
53632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53637         Suggested by Paul Eggert.
53638
53639 2007-03-08  Bruno Haible  <bruno@clisp.org>
53640
53641         * modules/fseterr-tests: New file.
53642         * tests/test-fseterr.c: New file.
53643
53644         * modules/fseterr: New file.
53645         * lib/fseterr.h: New file.
53646         * lib/fseterr.c: New file.
53647
53648 2007-03-08  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53651         * lib/getopt_.h: Likewise.
53652         * lib/mbswidth.h: Likewise.
53653         * lib/setenv.h: Likewise.
53654         * lib/vasnprintf.h: Likewise.
53655         * lib/vasprintf.h: Likewise.
53656         * lib/verror.h: Likewise.
53657         * lib/xsetenv.h: Likewise.
53658         * lib/xvasprintf.h: Likewise.
53659
53660 2007-03-08  Jim Meyering  <jim@meyering.net>
53661
53662         * users.txt: Add parted.
53663
53664         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53665
53666 2007-03-07  Bruno Haible  <bruno@clisp.org>
53667
53668         * m4/printf.m4: Make the shell script snippets copy&pastable.
53669
53670 2007-03-02  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/netinet_in_.h: New file.
53673         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53674         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53675         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53676         (Depends-on): Add absolute-header.
53677         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53678         into netinet/in.h.
53679
53680 2007-03-03  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/sys_select_.h: New file.
53683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53684         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53685         * modules/sys_select (Files): Add lib/sys_select_.h.
53686         (Depends-on): Add absolute-header.
53687         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53688         into sys/select.h.
53689
53690 2007-03-02  Bruno Haible  <bruno@clisp.org>
53691
53692         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53693         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53694         values.
53695         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53696         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53697         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53698         * modules/sys_socket (Depends-on): Add absolute-header.
53699         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53700         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53701         (Include): Remove requirement of inclusion of <sys/types.h>.
53702
53703 2007-03-02  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/byteswap_.h (bswap_32): Fix formula.
53706
53707 2007-03-06  Bruno Haible  <bruno@clisp.org>
53708
53709         * modules/sprintf-posix-tests: New file.
53710         * tests/test-sprintf-posix.c: New file.
53711
53712         * modules/sprintf-posix: New file.
53713         * lib/sprintf.c: New file.
53714         * m4/sprintf-posix.m4: New file.
53715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53716         REPLACE_SPRINTF.
53717         * lib/stdio_.h (sprintf): New declaration.
53718         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53719         REPLACE_SPRINTF.
53720
53721 2007-03-06  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/vsprintf-posix-tests: New file.
53724         * tests/test-vsprintf-posix.c: New file.
53725         * tests/test-sprintf-posix.h: New file.
53726
53727         * modules/vsprintf-posix: New file.
53728         * lib/vsprintf.c: New file.
53729         * m4/vsprintf-posix.m4: New file.
53730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53731         REPLACE_VSPRINTF.
53732         * lib/stdio_.h (vsprintf): New declaration.
53733         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53734         REPLACE_VSPRINTF.
53735
53736 2007-03-06  Bruno Haible  <bruno@clisp.org>
53737
53738         * modules/vsnprintf (Depend-on): Remove minmax.
53739
53740 2007-03-06  Bruno Haible  <bruno@clisp.org>
53741
53742         * modules/snprintf-posix-tests: New file.
53743         * tests/test-snprintf-posix.c: New file.
53744
53745         * modules/snprintf-posix: New file.
53746         * m4/snprintf-posix.m4: New file.
53747         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53748         gl_FUNC_SNPRINTF.
53749         (gl_FUNC_SNPRINTF): Invoke it.
53750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53751         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53752         is set.
53753         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53754
53755 2007-03-06  Bruno Haible  <bruno@clisp.org>
53756
53757         * modules/vsnprintf-posix-tests: New file.
53758         * tests/test-vsnprintf-posix.c: New file.
53759         * tests/test-snprintf-posix.h: New file.
53760
53761         * modules/vsnprintf-posix: New file.
53762         * m4/vsnprintf-posix.m4: New file.
53763         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53764         gl_FUNC_VSNPRINTF.
53765         (gl_FUNC_VSNPRINTF): Invoke it.
53766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53767         * lib/stdio_.h (vsnprintf): Define as a replacement if
53768         REPLACE_VSNPRINTF is set.
53769         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53770
53771 2007-03-06  Bruno Haible  <bruno@clisp.org>
53772
53773         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53775
53776 2007-03-06  Bruno Haible  <bruno@clisp.org>
53777
53778         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53779         (asinl): Declare also if HAVE_DECL_ASINL is set.
53780         (atanl): Declare also if HAVE_DECL_ATANL is set.
53781         (ceill): Declare also if HAVE_DECL_CEILL is set.
53782         (cosl): Declare also if HAVE_DECL_COSL is set.
53783         (expl): Declare also if HAVE_DECL_EXPL is set.
53784         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53785         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53786         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53787         (logl): Declare also if HAVE_DECL_LOGL is set.
53788         (sinl): Declare also if HAVE_DECL_SINL is set.
53789         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53790         (tanl): Declare also if HAVE_DECL_TANL is set.
53791         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53793         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53794         declaration of frexpl, ldexpl.
53795         * modules/printf-frexpl (Depends-on): Add math.
53796         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53797
53798 2007-03-05  Bruno Haible  <bruno@clisp.org>
53799
53800         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53801         frexpl and ldexpl are declared.
53802         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53803
53804 2007-03-05  Bruno Haible  <bruno@clisp.org>
53805
53806         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53807         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53808
53809 2007-03-05  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/stdio_.h: Include <stddef.h>.
53812
53813 2007-03-05  Bruno Haible  <bruno@clisp.org>
53814
53815         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53816
53817 2007-03-05  Bruno Haible  <bruno@clisp.org>
53818
53819         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53820         NetBSD 4, from Ralf Wildenhues.
53821
53822 2007-03-04  Bruno Haible  <bruno@clisp.org>
53823
53824         * lib/vasprintf.h: Update #if logic for the case when the functions
53825         exist but are overridden.
53826
53827 2007-03-04  Bruno Haible  <bruno@clisp.org>
53828
53829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53830         implementations: glibc-2.4 and MacOS X 10.3.
53831         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53832         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53833         * tests/test-vasprintf-posix.c (test_function): Likewise.
53834
53835 2007-03-04  Bruno Haible  <bruno@clisp.org>
53836
53837         * modules/vasprintf-posix-tests: New file.
53838         * tests/test-vasprintf-posix.c: New file.
53839
53840         * modules/vasprintf-posix: New file.
53841         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53842         defined.
53843         * m4/vasprintf-posix.m4: New file.
53844         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53845         gl_FUNC_VASPRINTF.
53846         (gl_FUNC_VASPRINTF): Invoke it.
53847         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53848         here.
53849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53850
53851 2007-03-04  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53854         REPLACE_GETTIMEOFDAY.
53855         * modules/sys_time (Makefile.am): Likewise.
53856         * m4/sys_time_h.m4: Likewise.
53857         * m4/gettimeofday.m4: Likewise.
53858
53859 2007-03-04  Bruno Haible  <bruno@clisp.org>
53860
53861         * modules/vasnprintf-posix-tests: New file.
53862         * tests/test-vasnprintf-posix.c: New file.
53863
53864         * modules/vasnprintf-posix: New file.
53865         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53866         printf-frexpl.h.
53867         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53868         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53869         REPLACE_VASNPRINTF is defined.
53870         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53871         gl_FUNC_VASNPRINTF.
53872         (gl_FUNC_VASNPRINTF): Invoke it.
53873         * m4/vasnprintf-posix.m4: New file.
53874         * m4/printf.m4: New file.
53875
53876 2007-03-04  Bruno Haible  <bruno@clisp.org>
53877
53878         Compile progreloc.c only if --enable-relocatable is specified.
53879         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53880         if --enable-relocatable was specified.
53881         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53882         lib_SOURCES.
53883
53884 2007-03-04  Jim Meyering  <jim@meyering.net>
53885
53886         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53887         Use it consistently, rather than enumerating errno constants.
53888
53889 2007-03-04  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/xvasprintf-tests: New file.
53892         * tests/test-xvasprintf.c: New file.
53893
53894         * modules/vasprintf-tests: New file.
53895         * tests/test-vasprintf.c: New file.
53896
53897         * modules/vasnprintf-tests: New file.
53898         * tests/test-vasnprintf.c: New file.
53899
53900         * modules/vsnprintf-tests: New file.
53901         * tests/test-vsnprintf.c: New file.
53902
53903         * modules/snprintf-tests: New file.
53904         * tests/test-snprintf.c: New file.
53905
53906 2007-03-04  Bruno Haible  <bruno@clisp.org>
53907
53908         Compile relocatable.c only if --enable-relocatable is specified.
53909         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53910         gl_RELOCATABLE_LIBRARY.
53911         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53912         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53913         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53914         gl_RELOCATABLE_LIBRARY.
53915         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53916         (Makefile.am): Remove lib_SOURCES.
53917         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53918         gl_RELOCATABLE_LIBRARY.
53919         (Makefile.am): Remove lib_SOURCES.
53920         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53921         always.
53922         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53923         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53924
53925 2007-03-04  Bruno Haible  <bruno@clisp.org>
53926
53927         * modules/argmatch-tests: New file.
53928         * tests/test-argmatch.c: New file.
53929
53930         * tests/test-allocsa.c (main): Halve the number of loop runs.
53931
53932         * modules/alloca-opt-tests: New file.
53933         * tests/test-alloca-opt.c: New file.
53934
53935 2007-03-04  Jim Meyering  <jim@meyering.net>
53936
53937         Work around difference between Linux ACLs and Solaris 10 ZFS.
53938         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53939         for EINVAL.
53940
53941 2007-03-03  Bruno Haible  <bruno@clisp.org>
53942
53943         * modules/relocatable-prog (Depends-on): Add back progreloc's
53944         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53945
53946 2007-03-03  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53949         * modules/relocatable-lib: New file.
53950
53951 2007-03-03  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/relocatable-prog: Renamed from modules/relocatable.
53954         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53955
53956 2007-03-03  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53959         m4/relocatable-lib.m4.
53960         (Depends-on): Remove 'relocatable'.
53961         (configure.ac): Add gl_RELOCATABLE_NOP.
53962
53963 2007-03-03  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/relocatable-prog-wrapper: New file.
53966         * modules/relocatable (Depends-on): Add it. Remove all other
53967         dependencies except progname.
53968         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53969
53970         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53971         (gl_FUNC_STRERROR): Nop.
53972         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53973
53974         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53975         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53976
53977         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53978         (gl_FUNC_READLINK): Update.
53979
53980         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53981
53982 2007-03-03  Bruno Haible  <bruno@clisp.org>
53983
53984         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53985         * modules/xreadlink (Depends-on): Add unistd.
53986         * modules/xreadlink-with-size (Depends-on): Likewise.
53987
53988 2007-03-03  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53991         extracted from gt_FUNC_SETENV.
53992         (gt_FUNC_SETENV): Remove macro.
53993         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53994         remove gt_FUNC_SETENV.
53995
53996 2007-03-03  Bruno Haible  <bruno@clisp.org>
53997
53998         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53999         ENABLE_RELOCATABLE here.
54000         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54001
54002 2007-03-03  Bruno Haible  <bruno@clisp.org>
54003
54004         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54005         * tests/test-rbtreehash_list.c: Include progname.h.
54006         (main): Call set_program_name.
54007
54008         * modules/rbtree-oset-tests (Depends-on): Add progname.
54009         * tests/test-rbtree_oset.c: Include progname.h.
54010         (main): Call set_program_name.
54011
54012         * modules/rbtree-list-tests (Depends-on): Add progname.
54013         * tests/test-rbtree_list.c: Include progname.h.
54014         (main): Call set_program_name.
54015
54016         * modules/linked-list-tests (Depends-on): Add progname.
54017         * tests/test-linked_list.c: Include progname.h.
54018         (main): Call set_program_name.
54019
54020 2007-03-03  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54023         All uses of __restrict changed to _Restrict_.
54024         * lib/glob_.h (__restrict): Remove macro.
54025
54026 2007-03-02  Bruno Haible  <bruno@clisp.org>
54027
54028         * modules/gettext (configure.ac): Require gettext infrastructure
54029         from version 0.16.1.
54030
54031 2007-03-02  Bruno Haible  <bruno@clisp.org>
54032
54033         * modules/linkedhash-list-tests (Depends-on): Add progname.
54034         * tests/test-linkedhash_list.c: Include progname.h.
54035         (main): Call set_program_name.
54036
54037         * modules/carray-list-tests (Depends-on): Add progname.
54038         * tests/test-carray_list.c: Include progname.h.
54039         (main): Call set_program_name.
54040
54041         * modules/avltreehash-list-tests (Depends-on): Add progname.
54042         * tests/test-avltreehash_list.c: Include progname.h.
54043         (main): Call set_program_name.
54044
54045         * modules/avltree-oset-tests (Depends-on): Add progname.
54046         * tests/test-avltree_oset.c: Include progname.h.
54047         (main): Call set_program_name.
54048
54049         * modules/avltree-list-tests (Depends-on): Add progname.
54050         * tests/test-avltree_list.c: Include progname.h.
54051         (main): Call set_program_name.
54052
54053         * modules/array-oset-tests (Depends-on): Add progname.
54054         * tests/test-array_oset.c: Include progname.h.
54055         (main): Call set_program_name.
54056
54057         * modules/array-list-tests (Depends-on): Add progname.
54058         * tests/test-array_list.c: Include progname.h.
54059         (main): Call set_program_name.
54060
54061         * modules/argp-tests (Depends-on): Add progname.
54062         * tests/test-argp.c: Include argp.h first. Include progname.h.
54063         (main): Call set_program_name.
54064
54065 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54066
54067         * doc/gnulib-tool.texi (Initial import): Reword description of
54068         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54069         limited effect even if defined after the first system include.
54070
54071 2007-03-01  Bruno Haible  <bruno@clisp.org>
54072
54073         * build-aux/config.libpath: Update to libtool-1.5.22.
54074         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54075
54076 2007-03-01  Bruno Haible  <bruno@clisp.org>
54077
54078         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54079         foo_CFLAGS.
54080         Reported by Ralf Wildenhues.
54081
54082 2007-03-01  Bruno Haible  <bruno@clisp.org>
54083
54084         * build-aux/install-reloc: Remove object files left over by some
54085         compilers.
54086         Reported by Ralf Wildenhues.
54087
54088 2007-03-01  Bruno Haible  <bruno@clisp.org>
54089
54090         * build-aux/install-reloc: Break long lines.
54091
54092 2007-03-01  Bruno Haible  <bruno@clisp.org>
54093
54094         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54095         Reported by Ralf Wildenhues.
54096
54097 2007-03-01  Bruno Haible  <bruno@clisp.org>
54098
54099         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54100         include ordering constraints.
54101
54102 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54103
54104         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54106         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54107         as another example.
54108         * lib/time_.h: Fix misspelling.
54109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54110         Require gl_HEADER_TIME_H_DEFAULTS.
54111         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54112         * m4/time_r.m4 (gl_TIME_R): Likewise.
54113         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54114
54115 2007-03-01  Bruno Haible  <bruno@clisp.org>
54116
54117         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54118         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54119
54120 2007-03-01  Jim Meyering  <jim@meyering.net>
54121
54122         * modules/xreadlink (Maintainer): Add my name.
54123         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54124
54125 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54126             Bruno Haible  <bruno@clisp.org>
54127
54128         * build-aux/install-reloc: Compile also c-ctype.c.
54129         * build-aux/relocatable.sh.in: New file.
54130         * doc/relocatable.texi: New file.
54131         * doc/relocatable-maint.texi: New file.
54132         * doc/gnulib.texi: Include relocatable-maint.texi.
54133         * lib/progreloc.c: Include unistd.h unconditionally.
54134         * lib/relocwrapper.c: Include unistd.h unconditionally.
54135         Include c-ctype.h.
54136         (add_dotbin): Use c_tolower.
54137         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54138         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54139         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54140         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54141         to m4/relocatable-lib.m4.
54142         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54143         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54144         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54145         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54146         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54147         * modules/relocatable: New file.
54148         * modules/relocatable-lib: New file.
54149         * modules/relocatable-script: New file.
54150
54151 2007-02-28  Bruno Haible  <bruno@clisp.org>
54152
54153         Import --enable-relocatable infrastructure.
54154         * build-aux/config.libpath: New file, from GNU gettext.
54155         * build-aux/install-reloc: New file, from GNU gettext.
54156         * build-aux/reloc-ldflags: New file, from GNU gettext.
54157         * lib/relocatable.h: New file, from GNU gettext.
54158         * lib/relocatable.c: New file, from GNU gettext.
54159         * lib/relocwrapper.c: New file, from GNU gettext.
54160         * m4/relocatable.m4: New file, from GNU gettext.
54161
54162 2007-02-28  Bruno Haible  <bruno@clisp.org>
54163
54164         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54165
54166         * modules/xreadlink: New file, from GNU gettext with modifications.
54167         * lib/xreadlink.c: New file, from GNU gettext.
54168         * lib/xreadlink.h: Add comments.
54169         (xreadlink): New declaration.
54170
54171         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54172         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54173         lib/xreadlink-with-size.c.
54174         (configure.ac): Remove gl_XREADLINK invocation.
54175         (Makefile.am): Augment lib_SOURCES.
54176         * m4/xreadlink.m4: Remove file.
54177         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54178         (xreadlink_with_size): Renamed from xreadink.
54179         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54180         * modules/canonicalize (Depends-on): Replace xreadlink with
54181         xreadlink-with-size.
54182         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54183
54184 2007-02-25  Jim Meyering  <jim@meyering.net>
54185
54186         * build-aux/announce-gen: When complaining about excess arguments,
54187         list them.
54188
54189 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * README: Document signed integer overflow situation more
54192         accurately.
54193
54194 2007-02-25  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54197         'a' or 'A' conversion.
54198
54199 2007-02-25  Bruno Haible  <bruno@clisp.org>
54200
54201         * modules/filename: Renamed from modules/pathname.
54202         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54203         lib/concatpath.c with lib/concat-filename.c.
54204         (Makefile.am): Update.
54205         (Include): Replace pathname.h with filename.h.
54206         * lib/filename.h: Renamed from lib/pathname.h.
54207         (concatenated_filename): Renamed from concatenated_pathname.
54208         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54209         (concatenated_filename): Renamed from concatenated_pathname.
54210         * lib/findprog.c: Include filename.h instead of pathname.h.
54211         (find_in_path): Update.
54212         * lib/javacomp.c: Include filename.h instead of pathname.h.
54213         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54214         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54215         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54216         is_oldgcj_14_13_usable, is_javac_usable): Update.
54217         * lib/javaexec.c: Include filename.h instead of pathname.h.
54218         (execute_java_class): Update.
54219         * modules/findprog: Update.
54220         * modules/javacomp: Update.
54221         * modules/javaexec: Update.
54222         * MODULES.html.sh (File system functions): Add 'filename', remove
54223         'pathname'.
54224
54225 2007-02-25  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/printf-frexpl-tests: New file.
54228         * tests/test-printf-frexpl.c: New file.
54229
54230         * modules/printf-frexpl: New file.
54231         * lib/printf-frexpl.h: New file.
54232         * lib/printf-frexpl.c: New file.
54233         * m4/printf-frexpl.m4: New file.
54234
54235 2007-02-25  Bruno Haible  <bruno@clisp.org>
54236
54237         * modules/printf-frexp-tests: New file.
54238         * tests/test-printf-frexp.c: New file.
54239
54240         * modules/printf-frexp: New file.
54241         * lib/printf-frexp.h: New file.
54242         * lib/printf-frexp.c: New file.
54243         * m4/printf-frexp.m4: New file.
54244
54245 2007-02-25  Bruno Haible  <bruno@clisp.org>
54246
54247         Assume automake >= 1.10 for the tests.
54248         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54249         * modules/arctwo-tests: Likewise.
54250         * modules/argp-tests: Likewise.
54251         * modules/avltree-list-tests: Likewise.
54252         * modules/avltree-oset-tests: Likewise.
54253         * modules/avltreehash-list-tests: Likewise.
54254         * modules/carray-list-tests: Likewise.
54255         * modules/crc-tests: Likewise.
54256         * modules/des-tests: Likewise.
54257         * modules/gc-arcfour-tests: Likewise.
54258         * modules/gc-arctwo-tests: Likewise.
54259         * modules/gc-des-tests: Likewise.
54260         * modules/gc-hmac-md5-tests: Likewise.
54261         * modules/gc-hmac-sha1-tests: Likewise.
54262         * modules/gc-md2-tests: Likewise.
54263         * modules/gc-md4-tests: Likewise.
54264         * modules/gc-md5-tests: Likewise.
54265         * modules/gc-pbkdf2-sha1-tests: Likewise.
54266         * modules/gc-rijndael-tests: Likewise.
54267         * modules/gc-sha1-tests: Likewise.
54268         * modules/gc-tests: Likewise.
54269         * modules/getaddrinfo-tests: Likewise.
54270         * modules/hmac-md5-tests: Likewise.
54271         * modules/hmac-sha1-tests: Likewise.
54272         * modules/linked-list-tests: Likewise.
54273         * modules/linkedhash-list-tests: Likewise.
54274         * modules/lock-tests: Likewise.
54275         * modules/md2-tests: Likewise.
54276         * modules/md4-tests: Likewise.
54277         * modules/md5-tests: Likewise.
54278         * modules/rbtree-list-tests: Likewise.
54279         * modules/rbtree-oset-tests: Likewise.
54280         * modules/rbtreehash-list-tests: Likewise.
54281         * modules/read-file-tests: Likewise.
54282         * modules/rijndael-tests: Likewise.
54283         * modules/stdint-tests: Likewise.
54284         * modules/tls-tests: Likewise.
54285
54286 2007-02-24  Bruno Haible  <bruno@clisp.org>
54287
54288         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54289         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54290         function; instead check whether isnan with a double argument links.
54291         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54292         function; instead check whether isnan with a 'long double' argument
54293         links.
54294         Reported by Eric Blake <ebb9@byu.net>.
54295
54296 2007-02-24  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54299         defined.
54300         * lib/isnanl.c: Remove all code. Just include isnan.c.
54301         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54302
54303 2007-02-25  Jim Meyering  <jim@meyering.net>
54304
54305         Avoid conflicting types for 'unsetenv' on FreeBSD.
54306         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54307         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54308         in stdlib.h.
54309
54310 2007-02-24  Bruno Haible  <bruno@clisp.org>
54311
54312         * modules/isnanl-nolibm-tests: New file.
54313         * tests/test-isnanl.c: New file.
54314
54315         * modules/isnanl-nolibm: New file.
54316         * lib/isnanl.h: New file.
54317         * lib/isnanl.c: New file.
54318         * m4/isnanl.m4: New file.
54319
54320 2007-02-24  Bruno Haible  <bruno@clisp.org>
54321
54322         * modules/isnan-nolibm-tests: New file.
54323         * tests/test-isnan.c: New file.
54324
54325         * modules/isnan-nolibm: New file.
54326         * lib/isnan.h: New file.
54327         * lib/isnan.c: New file.
54328         * m4/isnan.m4: New file.
54329
54330 2007-02-24  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54333         assume that an exponent fits in 20 bits.
54334
54335 2007-02-24  Jim Meyering  <jim@meyering.net>
54336
54337         * m4/regex.m4: Update the description of the configure-time option,
54338         --without-included-regex, to state accurately what the defaults are,
54339         and perhaps to give people an idea why using this option is risky.
54340
54341 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54344         loops on small arguments.  This attempts to avoid the problem
54345         Bruno Haible reported for AIX 4.3.2 in
54346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54347
54348 2007-02-23  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54351         Needed for help2man.
54352
54353 2007-02-23  Karl Berry  <karl@gnu.org>
54354
54355         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54356         exists, foo.h should be cvs-ignored, not committed.
54357
54358 2007-02-23  Eric Blake  <ebb9@byu.net>
54359
54360         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54361         * lib/stat-time.h (includes): Likewise.
54362         * lib/utimecmp.c (includes): Likewise.
54363         * lib/utimens.h (includes): Likewise.
54364         * lib/getdate.y (includes): Also include "timespec.h" for use
54365         internal to the module.
54366         * modules/utimens (Depends-on): Revert yesterday's patch.
54367         * modules/nanosleep (Depends-on): Add missing dependency.
54368
54369 2007-02-22  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/glob.c: Don't include getlogin_r.h.
54372
54373 2007-02-22  Jim Meyering  <jim@meyering.net>
54374
54375         * modules/utimens (Depends-on): Add timespec, required for
54376         utimens.h's inclusion of timespec.h.
54377
54378 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54379
54380         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54381         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54382         Schwab in
54383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54384         I'll try to think of a better way to fix the Solaris problem.
54385
54386         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54387         like glibc; on Solaris 10, it fails with errno == EINVAL.
54388         POSIX says the behavior is unspecified if the first argument is NULL,
54389         so play it safe and never pass NULL to the system getcwd.
54390
54391 2007-02-21  Jim Meyering  <jim@meyering.net>
54392
54393         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54394         of gettimeofday.  It would conflict with the one now always
54395         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54396         an IRIX 6.5 build failure.
54397
54398 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54399
54400         Minor fixups to port to Solaris 10 with Sun C 5.8.
54401         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54402         * modules/getcwd (Depends-on): Add dirfd.
54403         * lib/putenv.c (putenv): #undef it.
54404         (rpl_putenv): New decl.
54405         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54406
54407 2007-02-20  Bruno Haible  <bruno@clisp.org>
54408
54409         * modules/stdio-tests: New file.
54410         * tests/test-stdio.c: New file.
54411
54412         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54413         (Depends-on): Add stdio.
54414         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54415         (Include): Use <stdio.h> instead of vsnprintf.h.
54416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54417         HAVE_DECL_VSNPRINTF.
54418         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54419
54420         * modules/snprintf (Files): Remove lib/snprintf.h.
54421         (Depends-on): Add stdio.
54422         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54423         (Include): Use <stdio.h> instead of snprintf.h.
54424         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54425         HAVE_DECL_SNPRINTF.
54426         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54427         * lib/getaddrinfo.c: Likewise.
54428
54429         * modules/stdio: New file.
54430         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54431         * lib/snprintf.h: Remove file.
54432         * lib/vsnprintf.h: Remove file.
54433         * lib/.cppi-disable: Remove snprintf.h.
54434         * m4/stdio_h.m4: New file.
54435         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54436
54437 2007-02-20  Jim Meyering  <jim@meyering.net>
54438
54439         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54440         used by e.g., mingw.  From Bruno Haible.
54441
54442 2007-02-19  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54445         warnings.
54446         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54447
54448 2007-02-19  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54451         from mingw users.
54452
54453 2007-02-19  Bruno Haible  <bruno@clisp.org>
54454
54455         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54456         warnings.
54457         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54458
54459 2007-02-19  Jim Meyering  <jim@meyering.net>
54460
54461         Don't use FD after a successful "fdopendir (fd)".
54462         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54463         Reset it by calling dirfd on the just-obtained DIR*.
54464
54465         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54466         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54467
54468 2007-02-18  Bruno Haible  <bruno@clisp.org>
54469
54470         * lib/readlink.c: Include <unistd.h>.
54471         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54472         HAVE_READLINK.
54473         * modules/readlink (Depends-on): Add unistd.
54474         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54475         (Include): Add <unistd.h>.
54476
54477         * lib/getlogin_r.h: Remove file.
54478         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54479         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54480         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54481         HAVE_DECL_GETLOGIN_R.
54482         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54484         (Include): Use <unistd.h> instead of getlogin_r.h.
54485
54486         * lib/getcwd.h: Remove file.
54487         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54488         * lib/xgetcwd.c: Likewise.
54489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54490         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54491         * modules/getcwd (Files): Remove lib/getcwd.h.
54492         (Depends-on): Add unistd.
54493         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54494         (Include): Use <unistd.h> instad of getcwd.h.
54495
54496         * lib/ftruncate.c: Include <unistd.h> first.
54497         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54498         Set HAVE_FTRUNCATE.
54499         * modules/ftruncate (Depends-on): Add unistd.
54500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54501
54502         * lib/fchdir.c: Include <unistd.h> first.
54503         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54505         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54506         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54507         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54508
54509         * lib/dup2.c: Include <unistd.h> first.
54510         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54511         HAVE_DUP2.
54512         * modules/dup2 (Depends-on): Add unistd.
54513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54514
54515         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54516         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54517         REPLACE_CHOWN. Don't define chown as a macro here.
54518         * modules/chown (Depends-on): Add unistd.
54519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54520
54521         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54522         Add definition for GL_LINK_WARNING.
54523         (chown, dup2): New declarations.
54524         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54525         link warning.
54526         (ftruncate): New declaration.
54527         (getcwd): New declaration, taken from old getcwd.h.
54528         (getlogin_r): New declaration, taken from old getlogin_r.h.
54529         (readlink): New declaration.
54530         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54531         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54532         (gl_PREREQ_UNISTD): Remove macro.
54533         (gl_UNISTD_MODULE_INDICATOR): New macro.
54534         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54535         many new variables. Don't set UNISTD_H.
54536         * modules/unistd (Description): Change.
54537         (Depends-on): Add link-warning.
54538         (configure.ac): Update.
54539         (Makefile.am): Create unistd.h always. Substitute many new variables
54540         into it.
54541
54542 2007-02-18  Bruno Haible  <bruno@clisp.org>
54543
54544         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54545         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54546         HAVE_GETSUBOPT.
54547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54548         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54549         * lib/getsubopt.h: Remove file.
54550         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54551         (Depends-on): Add stdlib.
54552         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54553         (Includes): Use <stdlib.h> instead of getsubopt.h.
54554         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54555         Set HAVE_GETSUBOPT.
54556         * lib/getsubopt.c: Don't include getsubopt.h.
54557
54558 2007-02-18  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/fchdir (Depends-on): Add dup2.
54561
54562 2007-02-18  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/stdlib_.h: Handle glibc's special invocation convention
54565         specially.
54566
54567 2007-02-18  Bruno Haible  <bruno@clisp.org>
54568
54569         * modules/stdlib-tests: New file.
54570         * tests/test-stdlib.c: New file.
54571
54572         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54573         (Depends-on): Add stdlib.
54574         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54575         (Includes): Use <stdlib.h> instead of mkstemp.h.
54576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54577         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54578         * lib/mkstemp.c: Don't include mkstemp.h.
54579         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54580         * lib/stdlib--.h: Don't include mkstemp.h.
54581
54582         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54583         (Depends-on): Add stdlib.
54584         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54585         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54586         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54587         HAVE_MKDTEMP.
54588         * lib/mkdtemp.c: Don't include mkdtemp.h.
54589         * lib/clean-temp.c: Don't include mkdtemp.h.
54590
54591         * modules/exit (Files): Remove lib/exit.h.
54592         (Depends-on): Add stdlib.
54593         (Makefile.am): Remove lib_SOURCES.
54594         (Include): Use <stdlib.h> instead of exit.h.
54595         * lib/argmatch.c: Don't include exit.h.
54596         * lib/execute.c: Likewise.
54597         * lib/pagealign_alloc.c: Likewise.
54598         * lib/pipe.c: Likewise.
54599         * lib/wait-process.c: Likewise.
54600         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54601         * lib/exitfail.c: Likewise.
54602         * lib/savewd.c: Likewise.
54603         * lib/xsetenv.c: Likewise.
54604
54605         * modules/stdlib: New file.
54606         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54607         and extra comments about mkstemp().
54608         * lib/exit.h: Remove file.
54609         * lib/mkdtemp.h: Remove file.
54610         * lib/mkstemp.h: Remove file.
54611         * m4/stdlib_h.m4: New file.
54612         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54613
54614 2007-02-18  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/math-tests: New file.
54617         * tests/test-math.c: New file.
54618
54619         * modules/math: New file.
54620         * modules/mathl (Files): Remove lib/mathl.h.
54621         (Depends-on): Add math.
54622         (Makefile.am): Don't mention mathl.h.
54623         (Include): Use <math.h> instead of mathl.h.
54624         * lib/math_.h: New file.
54625         * lib/mathl.h: Remove file.
54626         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54627         mathl.h.
54628         * lib/asinl.c: Likewise.
54629         * lib/atanl.c: Likewise.
54630         * lib/ceill.c: Likewise.
54631         * lib/cosl.c: Likewise.
54632         * lib/expl.c: Likewise.
54633         * lib/floorl.c: Likewise.
54634         * lib/frexpl.c: Likewise.
54635         * lib/ldexpl.c: Likewise.
54636         * lib/logl.c: Likewise.
54637         * lib/sincosl.c: Likewise.
54638         * lib/sinl.c: Likewise.
54639         * lib/sqrtl.c: Likewise.
54640         * lib/tanl.c: Likewise.
54641         * lib/trigl.c: Likewise.
54642         * m4/math_h.m4: New file.
54643         * MODULES.html.sh (Mathematics): Add math.
54644
54645 2007-02-17  Bruno Haible  <bruno@clisp.org>
54646
54647         * modules/wctype-tests: New file.
54648         * tests/test-wctype.c: New file.
54649
54650         * modules/wchar-tests: New file.
54651         * tests/test-wchar.c: New file.
54652
54653         * modules/unistd-tests: New file.
54654         * tests/test-unistd.c: New file.
54655
54656         * modules/time-tests: New file.
54657         * tests/test-time.c: New file.
54658
54659         * modules/sysexits-tests: New file.
54660         * tests/test-sysexits.c: New file.
54661
54662         * modules/sys_time-tests: New file.
54663         * tests/test-sys_time.c: New file.
54664
54665         * modules/sys_stat-tests: New file.
54666         * tests/test-sys_stat.c: New file.
54667
54668         * modules/sys_socket-tests: New file.
54669         * tests/test-sys_socket.c: New file.
54670
54671         * modules/sys_select-tests: New file.
54672         * tests/test-sys_select.c: New file.
54673
54674         * modules/string-tests: New file.
54675         * tests/test-string.c: New file.
54676
54677         * modules/stdbool-tests: New file.
54678         * tests/test-stdbool.c: New file.
54679
54680         * modules/netinet_in-tests: New file.
54681         * tests/test-netinet_in.c: New file.
54682
54683         * modules/inttypes-tests: New file.
54684         * tests/test-inttypes.c: New file.
54685
54686         * modules/fcntl-tests: New file.
54687         * tests/test-fcntl.c: New file.
54688
54689         * modules/byteswap-tests: New file.
54690         * tests/test-byteswap.c: New file.
54691
54692         * modules/arpa_inet-tests: New file.
54693         * tests/test-arpa_inet.c: New file.
54694
54695 2007-02-17  Bruno Haible  <bruno@clisp.org>
54696
54697         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54698         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54699         if the corresponding module is not enabled. Emit link warnings if
54700         the function is used nevertheless.
54701         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54702         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54703         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54704         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54705         * modules/inttypes (Depends-on): Add link-warning.
54706         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54707         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54708         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54709         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54710         * modules/imaxdiv (configure.ac): Likewise.
54711         * modules/strtoimax (configure.ac): Likewise.
54712         * modules/strtoumax (configure.ac): Likewise.
54713
54714 2007-02-17  Bruno Haible  <bruno@clisp.org>
54715
54716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54717         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54718         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54719         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54720
54721 2007-02-17  Bruno Haible  <bruno@clisp.org>
54722
54723         * modules/link-warning: New file.
54724         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54725         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54726         * modules/string (Depends-on): Add link-warning.
54727         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54728         string.h.
54729         * MODULES.html.sh (Support for building libraries and executables): Add
54730         link-warning.
54731
54732 2007-02-17  Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54735         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54736         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54737         long lines.
54738
54739 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54740             Bruno Haible  <bruno@clisp.org>
54741
54742         * modules/tmpfile: New file.
54743         * lib/tmpfile.c: New file.
54744         * m4/tmpfile.m4: New file.
54745         * MODULES.html.sh (func_all_modules): New section "Input/output".
54746
54747 2007-02-15  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54750         (supports_delete_on_close): New function.
54751         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54752
54753 2007-02-14  Bruno Haible  <bruno@clisp.org>
54754
54755         * modules/mbspcasecmp-tests: New file.
54756         * tests/test-mbspcasecmp.sh: New file.
54757         * tests/test-mbspcasecmp.c: New file.
54758
54759         New module mbspcasecmp.
54760         * modules/mbspcasecmp: New file.
54761         * lib/mbspcasecmp.c: New file.
54762         * lib/string_.h (strncasecmp): Change warning message.
54763         (mbspcasecmp): New declaration.
54764         * m4/mbspcasecmp.m4: New file.
54765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54766         GNULIB_MBSPCASECMP.
54767         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54768         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54769
54770 2007-02-14  Bruno Haible  <bruno@clisp.org>
54771
54772         * modules/mbsncasecmp-tests: New file.
54773         * tests/test-mbsncasecmp.sh: New file.
54774         * tests/test-mbsncasecmp.c: New file.
54775
54776         New module mbsncasecmp.
54777         * modules/mbsncasecmp: New file.
54778         * lib/mbsncasecmp.c: New file.
54779         * lib/string_.h (mbsncasecmp): New declaration.
54780         * m4/mbsncasecmp.m4: New file.
54781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54782         GNULIB_MBSNCASECMP.
54783         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54784         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54785
54786 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54789         Verify that it doesn't overlap with our flags.
54790         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54791         do not have the desired effect in multibyte locales; instead, use
54792         mbscasecmp.
54793         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54794         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54795         we don't require GNU fnmatch ourselves (if our users require it, they
54796         should do so explicitly).
54797
54798         Fix regex code so it doesn't rely on strcasecmp.
54799         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54800         Otherwise, include gnulib's langinfo.h.
54801         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54802         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54803         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54804         * modules/regex (FILES): Remove m4/codeset.m4.
54805         (Depends-on): Add localcharset.  Remove strcase.
54806
54807 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54808
54809         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54810         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54811
54812 2007-02-13  Bruno Haible  <bruno@clisp.org>
54813
54814         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54816
54817 2007-02-12  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54820         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54821         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54822         time warning rather than a link error.
54823
54824 2007-02-12  Bruno Haible  <bruno@clisp.org>
54825
54826         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54829
54830 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54833         args, not 2.
54834
54835 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54836
54837         New module 'time', so that apps can include <time.h> as per
54838         POSIX and GNU instead of separate include files like time_r.h
54839         and timegm.h.  This implementation tries out a simpler approach
54840         for replacing decls in standard include files (as compared to
54841         the string module), somewhat as an experiment.
54842
54843         * config/srclist.txt: Comment out mktime.c for now.
54844         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54845         since it doesn't apply any more.  Use generic wording instead.
54846         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54847         'time'.
54848         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54849         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54850         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54851         Don't include <sys/types.h>; no longer needed since we assume C89.
54852         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54853         * lib/strftime.c: Likewise.
54854         * lib/time_r.c: Likewise.
54855         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54856         * lib/nanosleep.c: Include <time.h> first, to check interface.
54857         * lib/strptime.c: Likewise.
54858         * lib/time_r.c: Likewise.
54859         * lib/timegm.c: Likewise.
54860         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54861         needed.
54862         * lib/timegm.c: Don't include timegm.h; no longer needed.
54863         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54864         time.h now handles any problems in that area.
54865         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54866         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54867         that time.h defines struct timespec.
54868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54869         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54870         handles that.
54871         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54872         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54873         needed.  Set REPLACE_LOCALTIME.
54874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54875         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54876         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54877         nanosleep; time_h.m4 now does that.  Don't require
54878         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54879         module handles this now.
54880         * modules/getdate (Depends-on): Remove timespec.  Add time.
54881         * modules/nanosleep (Depends-on): Likewise.
54882         * modules/stat-time (Depends-on): Likewise.
54883         * modules/nanosleep (Include): Include time.h, not timespec.h.
54884         * modules/strptime (Files): Remove lib/strptime.h.
54885         (Depends-on): Add extensions, time.
54886         (Include): Include time.h, not strptime.h.
54887         * modules/time_r (Files): Remove lib/time_r.h.
54888         (Depends-on): Add time.
54889         (Include): Include time.h, not time_r.h.
54890         * modules/timegm: Likewise.
54891         * modules/timespec (Description): Now does timespec-related decls
54892         of our own, instead of struct timespec itself.
54893         (Depends-on): Add time; remove extensions.
54894         (Maintainer): Add self.
54895         * modules/utimecmp (Depends-on): Add time; remove timespec.
54896         * modules/utimens (Depends-on): Likewise.
54897         * modules/xnanosleep (Depends-on): Likewise.
54898
54899 2007-02-11  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/c-strstr.c: Include allocsa.h.
54902         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54903         * lib/c-strcasestr.c: Include allocsa.h.
54904         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54905         * lib/strcasestr.c: Include allocsa.h.
54906         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54907         * lib/mbsstr.c: Include allocsa.h.
54908         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54909         allocsa/freesa instead of malloc/free.
54910         * lib/mbscasestr.c: Include allocsa.h.
54911         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54912         allocsa/freesa instead of malloc/free.
54913         * modules/c-strstr (Depends-on): Add allocsa.
54914         * modules/c-strcasestr (Depends-on): Likewise.
54915         * modules/strcasestr (Depends-on): Likewise.
54916         * modules/mbsstr (Depends-on): Likewise.
54917         * modules/mbscasestr (Depends-on): Likewise.
54918
54919 2007-02-11  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54922
54923         * modules/mbsspn-tests: New file.
54924         * tests/test-mbsspn.sh: New file.
54925         * tests/test-mbsspn.c: New file.
54926
54927 2007-02-11  Bruno Haible  <bruno@clisp.org>
54928
54929         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54930
54931         * modules/mbspbrk-tests: New file.
54932         * tests/test-mbspbrk.sh: New file.
54933         * tests/test-mbspbrk.c: New file.
54934
54935 2007-02-11  Bruno Haible  <bruno@clisp.org>
54936
54937         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54938         unneeded cast.
54939
54940         * modules/mbscspn-tests: New file.
54941         * tests/test-mbscspn.sh: New file.
54942         * tests/test-mbscspn.c: New file.
54943
54944 2007-02-11  Bruno Haible  <bruno@clisp.org>
54945
54946         * modules/mbscasecmp-tests: New file.
54947         * tests/test-mbscasecmp.sh: New file.
54948         * tests/test-mbscasecmp.c: New file.
54949
54950 2007-02-11  Bruno Haible  <bruno@clisp.org>
54951
54952         Ensure O(n) worst-case complexity of mbscasestr.
54953         * lib/mbscasestr.c: Include stdbool.h.
54954         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54955         functions.
54956         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54957         the bookkeeping indicates that it's worth it.
54958         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54959
54960         * modules/mbscasestr-tests: New file.
54961         * tests/test-mbscasestr1.c: New file.
54962         * tests/test-mbscasestr2.sh: New file.
54963         * tests/test-mbscasestr2.c: New file.
54964         * tests/test-mbscasestr3.sh: New file.
54965         * tests/test-mbscasestr3.c: New file.
54966         * tests/test-mbscasestr4.sh: New file.
54967         * tests/test-mbscasestr4.c: New file.
54968         * m4/locale-tr.m4: New file.
54969
54970 2007-02-11  Bruno Haible  <bruno@clisp.org>
54971
54972         Ensure O(n) worst-case complexity of mbsstr.
54973         * lib/mbsstr.c: Include stdbool.h.
54974         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54975         functions.
54976         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54977         bookkeeping indicates that it's worth it.
54978         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54979
54980         * modules/mbsstr-tests: New file.
54981         * tests/test-mbsstr1.c: New file.
54982         * tests/test-mbsstr2.sh: New file.
54983         * tests/test-mbsstr2.c: New file.
54984         * tests/test-mbsstr3.sh: New file.
54985         * tests/test-mbsstr3.c: New file.
54986         * m4/locale-fr.m4: New file.
54987
54988 2007-02-11  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/mbsrchr.c (mbsrchr): Fix bug.
54991
54992         * modules/mbsrchr-tests: New file.
54993         * tests/test-mbsrchr.sh: New file.
54994         * tests/test-mbsrchr.c: New file.
54995
54996 2007-02-11  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/mbschr.c (mbschr): Fix bug.
54999
55000         * modules/mbschr-tests: New file.
55001         * tests/test-mbschr.sh: New file.
55002         * tests/test-mbschr.c: New file.
55003         * m4/locale-zh.m4: New file.
55004
55005 2007-02-11  Bruno Haible  <bruno@clisp.org>
55006
55007         Support for copying multibyte string iterators.
55008         * lib/mbiter.h: Include <string.h>.
55009         (mbiter_multi_copy): New function.
55010         (mbi_copy): New macro.
55011         * lib/mbuiter.h: Include <string.h>.
55012         (mbuiter_multi_copy): New function.
55013         (mbui_copy): New macro.
55014
55015 2007-02-11  Bruno Haible  <bruno@clisp.org>
55016
55017         New module mbslen.
55018         * modules/mbslen: New file.
55019         * lib/mbslen.c: New file.
55020         * lib/string_.h (mbslen): New declaration.
55021         * m4/mbslen.m4: New file.
55022         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55023         GNULIB_MBSLEN.
55024         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55025         * MODULES.html.sh (Internationalization functions): Add mbslen.
55026
55027 2007-02-11  Bruno Haible  <bruno@clisp.org>
55028
55029         Ensure O(n) worst-case complexity of strcasestr substitute.
55030         * lib/strcasestr.c: Include stdbool.h.
55031         (knuth_morris_pratt): New function.
55032         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55033         bookkeeping indicates that it's worth it.
55034         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55035
55036         * modules/strcasestr-tests: New file.
55037         * tests/test-strcasestr.c: New file.
55038
55039 2007-02-11  Bruno Haible  <bruno@clisp.org>
55040
55041         Ensure O(n) worst-case complexity of c_strcasestr.
55042         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55043         (knuth_morris_pratt): New function.
55044         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55045         the bookkeeping indicates that it's worth it.
55046         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
55047
55048         * modules/c-strcasestr-tests: New file.
55049         * tests/test-c-strcasestr.c: New file.
55050
55051 2007-02-11  Bruno Haible  <bruno@clisp.org>
55052
55053         Ensure O(n) worst-case complexity of c_strstr.
55054         * lib/c-strstr.c: Include stdbool.h, string.h.
55055         (knuth_morris_pratt): New function.
55056         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55057         bookkeeping indicates that it's worth it.
55058         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55059
55060         * lib/c-strstr.c: Complete rewrite for maintainability.
55061
55062         * modules/c-strstr-tests: New file.
55063         * tests/test-c-strstr.c: New file.
55064
55065 2007-02-11  Bruno Haible  <bruno@clisp.org>
55066
55067         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55068         5.2.1 and earlier, whereby \055 was treated just like the range
55069         delimiter '-'.
55070         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55071
55072 2007-02-08  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/regex (Depends-on): Add stdbool.
55075         Reported by Dalibor Topic <robilad@kaffe.org>.
55076
55077 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55078
55079         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55080         Prefer returning from main to exiting from it.
55081         Remove unnecessary parens after sizeof.
55082
55083 2007-02-05  Bruno Haible  <bruno@clisp.org>
55084
55085         New module mbssep.
55086         * modules/mbssep: New file.
55087         * lib/mbssep.c: New file.
55088         * lib/string_.h (strsep): Add a conditional link warning.
55089         (mbssep): New declaration.
55090         * m4/mbssep.m4: New file.
55091         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55092         GNULIB_MBSSEP.
55093         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55094         * MODULES.html.sh (Internationalization functions): Add mbssep.
55095
55096 2007-02-05  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55099         Optimize search in case of 1 delimiter.
55100
55101 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55102
55103         * lib/acl.h: Include sys/types.h before sys/acl.h.
55104
55105 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55106
55107         Merge upstream fix for glibc bugzilla #3957:
55108
55109         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55110
55111         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55112         bit for RE_HAT_LISTS_NOT_NEWLINE.
55113         (build_charclass_op): Remove bogus comment.
55114
55115 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55116
55117         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55118
55119 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55122         * lib/memmem.c [!defined _LIBC]: Include config.h.
55123
55124 2007-02-04  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55127         warning message.
55128
55129 2007-02-04  Bruno Haible  <bruno@clisp.org>
55130
55131         New module mbstok_r.
55132         * modules/mbstok_r: New file.
55133         * lib/mbstok_r.c: New file.
55134         * lib/string_.h (strtok_r): Change argument names to match the
55135         comments. Add a conditional link warning.
55136         (mbstok_r): New declaration.
55137         * m4/mbstok_r.m4: New file.
55138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55139         GNULIB_MBSTOK_R.
55140         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55141         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55142
55143 2007-02-04  Bruno Haible  <bruno@clisp.org>
55144
55145         New module mbsspn.
55146         * modules/mbsspn: New file.
55147         * lib/mbsspn.c: New file.
55148         * lib/string_.h (strspn): Add a conditional link warning.
55149         (mbsspn): New declaration.
55150         * m4/mbsspn.m4: New file.
55151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55152         GNULIB_MBSSPN.
55153         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55154         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55155
55156 2007-02-04  Bruno Haible  <bruno@clisp.org>
55157
55158         New module mbspbrk.
55159         * modules/mbspbrk: New file.
55160         * lib/mbspbrk.c: New file.
55161         * lib/string_.h (strpbrk): Add a conditional link warning.
55162         (mbspbrk): New declaration.
55163         * m4/mbspbrk.m4: New file.
55164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55165         GNULIB_MBSPBRK.
55166         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55167         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55168
55169 2007-02-04  Bruno Haible  <bruno@clisp.org>
55170
55171         New module mbscspn.
55172         * modules/mbscspn: New file.
55173         * lib/mbscspn.c: New file.
55174         * lib/string_.h (strcspn): Add a conditional link warning.
55175         (mbscspn): New declaration.
55176         * m4/mbscspn.m4: New file.
55177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55178         GNULIB_MBSCSPN.
55179         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55180         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55181
55182 2007-02-04  Bruno Haible  <bruno@clisp.org>
55183
55184         New module mbscasestr, reduced goal of strcasestr.
55185         * modules/mbscasestr: New file.
55186         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55187         (mbscasestr): Renamed from strcasestr.
55188         * lib/strcasestr.c: Don't include mbuiter.h.
55189         (strcasestr): Remove support for multibyte locales.
55190         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55191         Change the conditional link warning.
55192         (mbscasestr): New declaration.
55193         * m4/mbscasestr.m4: New file.
55194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55195         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55196         REPLACE_STRCASESTR.
55197         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55199         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55200         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55201         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55202         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55203         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55204         (Depends-on): Remove mbuiter.
55205         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55206
55207 2007-02-04  Bruno Haible  <bruno@clisp.org>
55208
55209         Simplify handling of strncasecmp.
55210         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55211         the conditional link warning.
55212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55213         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55214         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55215         * modules/strcase (configure.ac): Don't invoke
55216         gl_STRING_MODULE_INDICATOR.
55217         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55218
55219 2007-02-04  Bruno Haible  <bruno@clisp.org>
55220
55221         New module mbscasecmp, reduced goal of strcasecmp.
55222         * modules/mbscasecmp: New file.
55223         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55224         (mbscasecmp): Renamed from strcasecmp.
55225         * lib/strcasecmp.c: Don't include mbuiter.h.
55226         (strcasecmp): Remove support for multibyte locales.
55227         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55228         Change the conditional link warning.
55229         (mbscasecmp): New declaration.
55230         * m4/mbscasecmp.m4: New file.
55231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55232         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55233         REPLACE_STRCASECMP.
55234         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55236         GNULIB_MBSCASECMP.
55237         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55238         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55239         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55240         (Depends-on): Remove mbuiter.
55241         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55242
55243 2007-02-04  Bruno Haible  <bruno@clisp.org>
55244
55245         New module mbsstr. Remove module strstr.
55246         * modules/mbsstr: New file.
55247         * modules/strstr: Remove file.
55248         * lib/mbsstr.c: Renamed from lib/strstr.c.
55249         (mbsstr): Renamed from strstr.
55250         * lib/string_.h (strstr): Remove declaration. Change the conditional
55251         link warning.
55252         (mbsstr): New declaration.
55253         * m4/mbsstr.m4: New file.
55254         * m4/strstr.m4: Remove file.
55255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55256         REPLACE_STRSTR.
55257         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55258         Don't initialize GNULIB_STRSTR.
55259         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55260         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55261         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55262         (Support for systems lacking ANSI C 89): Remove strstr.
55263
55264 2007-02-04  Bruno Haible  <bruno@clisp.org>
55265
55266         New module mbsrchr.
55267         * modules/mbsrchr: New file.
55268         * lib/mbsrchr.c: New file.
55269         * lib/string_.h (strrchr): Add a conditional link warning.
55270         (mbsrchr): New declaration.
55271         * m4/mbsrchr.m4: New file.
55272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55273         GNULIB_MBSRCHR.
55274         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55275         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55276
55277 2007-02-04  Bruno Haible  <bruno@clisp.org>
55278
55279         New module mbschr.
55280         * modules/mbschr: New file.
55281         * lib/mbschr.c: New file.
55282         * lib/string_.h (strchr): Add a conditional link warning.
55283         (mbschr): New declaration.
55284         * m4/mbschr.m4: New file.
55285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55286         GNULIB_MBSCHR.
55287         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55288         * MODULES.html.sh (Internationalization functions): Add mbschr.
55289
55290 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55291
55292         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55293
55294         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55295
55296 2007-02-04  Bruno Haible  <bruno@clisp.org>
55297
55298         New module description section 'configure.ac-early'.
55299         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55300         (func_get_autoconf_early_snippet): New function.
55301         (func_import, func_create_testdir): Use it. Remove special cases for
55302         modules 'extensions' and 'lock'.
55303         * modules/extensions (configure.ac-early): Require
55304         gl_USE_SYSTEM_EXTENSIONS.
55305         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55306
55307 2007-02-04  Bruno Haible  <bruno@clisp.org>
55308
55309         Make use of gcj-4.3's -fsource and -ftarget option.
55310         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55311         and if so try the options -fsource and -ftarget.
55312         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55313         source_version, ftarget_option, target_version arguments.
55314         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55315         (is_envjavac_oldgcj_14_14_usable): Renamed from
55316         is_envjavac_gcj_14_14_usable.
55317         (is_envjavac_oldgcj_14_13_usable): Renamed from
55318         is_envjavac_gcj_14_13_usable.
55319         (is_gcj_present): Update.
55320         (is_gcj_43, is_gcj43_usable): New functions.
55321         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55322         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55323         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55324         try the options -fsource and -ftarget.
55325
55326 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55327
55328         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55329         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55330         larger value.
55331
55332 2007-02-03  Jim Meyering  <jim@meyering.net>
55333
55334         Give tools a better chance to allocate space for very large buffers.
55335         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55336
55337         Make pwd and readlink work also when run with an unreadable parent dir
55338         on systems with openat support.
55339         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55340         provided getcwd function, even when we have openat support.
55341         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55342
55343 2007-02-02  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55346         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55347         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55348         portability problems if one of these functions is only used on specific
55349         platforms.
55350         Reported by Paul Eggert.
55351
55352 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55355         is causing more trouble than it's curing.
55356         * lib/regex_internal.h (__mempcpy): Remove.
55357         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55358         (and make the code a tad smaller to boot).
55359         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55360
55361 2007-02-02  Jim Meyering  <jim@meyering.net>
55362
55363         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55364         section, not in the Makefile.am: one.
55365
55366 2007-02-02  Eric Blake  <ebb9@byu.net>
55367
55368         * lib/strchrnul.c: Always include config.h first.
55369
55370         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55371         gnulib strstr is not necessary here.
55372
55373 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55374
55375         * m4/socklen.m4: Fix typo.
55376
55377 2007-02-02  Eric Blake  <ebb9@byu.net>
55378
55379         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55380         * modules/netinet_in (Makefile.am): Likewise.
55381
55382 2007-02-01  Bruno Haible  <bruno@clisp.org>
55383
55384         * lib/string_.h (GL_LINK_WARNING): New macro.
55385         (strcasecmp, strstr, strcasestr): If provided by the system,
55386         conditionally define as a macro that leads to a warning instead of to
55387         an error.
55388         (strncasecmp): Conditionally define as a macro that leads to a warning.
55389
55390 2007-02-01  Karl Berry  <karl@gnu.org>
55391
55392         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55393
55394 2007-02-01  Bruno Haible  <bruno@clisp.org>
55395
55396         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55397         renamings.
55398
55399 2007-02-01  Eric Blake  <ebb9@byu.net>
55400
55401         * modules/regex (Depends-on): Revert dependence on mempcpy.
55402         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55403         module's definition of mempcpy.
55404         Reported by Paul Eggert.
55405
55406 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55409         the symbol XYZ before redefining it.  This fixes a problem with
55410         programs that don't use XYZ, when compiled on systems that define
55411         XYZ to something else.
55412
55413 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55416         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55417         writeable to group or other and (2) is intended to have a special
55418         mode bit that is set or cleared.  In such a case, the directory
55419         should be neither group- nor other-writeable until the special
55420         mode bits are right.
55421
55422 2007-01-31  Eric Blake  <ebb9@byu.net>
55423
55424         * modules/mountlist (Depends-on): Add strstr.
55425
55426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55427         bug.
55428         * modules/string (Makefile.am): Remove redundant replacement.
55429         * modules/regex (Depends-on): Add mempcpy.
55430
55431 2007-01-31  Bruno Haible  <bruno@clisp.org>
55432
55433         New module description field 'Link'.
55434         * gnulib-tool (func_usage): Document --extract-link-directive.
55435         (sed_extract_prog): Recognize 'Link' directive.
55436         (func_get_link_directive): New function.
55437         (func_import): Show summary of link directives.
55438         Handle --extract-link-directive option.
55439         * modules/acl (Link): New section.
55440         * modules/clock-time (Link): New section.
55441         * modules/euidaccess (Link): New section.
55442         * modules/gettext (Link): New section.
55443         * modules/iconv (Link): New section.
55444         * modules/lock (Link): New section.
55445         * modules/nanosleep (Link): New section.
55446         * modules/readline (Link): New section.
55447
55448 2007-01-27  Bruno Haible  <bruno@clisp.org>
55449
55450         Enforce the use of gnulib modules for unportable <string.h> functions.
55451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55452         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55453         (gl_HEADER_STRING_H_BODY): Require it.
55454         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55455         the symbol XYZ to one that gives a link error.
55456         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55457         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55458         * modules/mempcpy (configure.ac): Likewise.
55459         * modules/memrchr (configure.ac): Likewise.
55460         * modules/stpcpy (configure.ac): Likewise.
55461         * modules/stpncpy (configure.ac): Likewise.
55462         * modules/strcase (configure.ac): Likewise.
55463         * modules/strcasestr (configure.ac): Likewise.
55464         * modules/strchrnul (configure.ac): Likewise.
55465         * modules/strdup (configure.ac): Likewise.
55466         * modules/strndup (configure.ac): Likewise.
55467         * modules/strnlen (configure.ac): Likewise.
55468         * modules/strpbrk (configure.ac): Likewise.
55469         * modules/strsep (configure.ac): Likewise.
55470         * modules/strstr (configure.ac): Likewise.
55471         * modules/strtok_r (configure.ac): Likewise.
55472
55473 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55474
55475         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55476
55477 2007-01-30  Jim Meyering  <jim@meyering.net>
55478
55479         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55480
55481 2007-01-29  Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55484         * lib/execute.c: Likewise.
55485         * lib/pipe.c: Likewise.
55486         * lib/printf-args.h: Likewise.
55487         * lib/printf-args.c: Likewise.
55488         * lib/printf-parse.c: Likewise.
55489         * lib/vasnprintf.c: Likewise.
55490
55491 2007-01-29  Eric Blake  <ebb9@byu.net>
55492
55493         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55494         declaration.
55495
55496 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55497
55498         * lib/strptime.h (strptime): Use 'restrict' for args where
55499         POSIX requires this.
55500         * lib/strptime.c (strptime): Likewise.
55501         Change license notice from LGPL to GPL, since gnulib-tool will
55502         change this as needed.
55503         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55504         defined.
55505         Include "strptime.h" first, to check interface.
55506         Do not #undef _LIBC and _NL_CURRENT.
55507         Do not include <stdlib.h>; no longer needed.
55508         Include "time_r.h" and declare ptime_locale_status
55509         only if _LIBC is not defined.
55510         (__P): Remove unused macro.
55511         (match_string): Bring back glibc version, but use it only if _LIBC
55512         is defined.
55513         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55514         Remove unnecessary assertion and abort() call.
55515         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55516         * m4/strptime.m4: Fix serial number comment.
55517         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55518         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55519         (Depends-on): Add time_r.
55520
55521 2007-01-29  Bruno Haible  <bruno@clisp.org>
55522
55523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55524         strptime.
55525         * modules/strptime (Depends-on): Add stdbool.
55526         * lib/strptime.h: Include <time.h> always. Add comments.
55527
55528 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55529
55530         * modules/strptime: New file.
55531         * lib/strptime.h: New file.
55532         * lib/strptime.c: New file.
55533         * m4/strptime.m4: New file.
55534
55535 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55536
55537         * MODULES.html.sh: New module mpsort.
55538         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55539
55540         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55541         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55543         All uses changed.
55544         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55545         All uses changed.
55546         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55547         to _Restrict_.
55548         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55549         the parameter matches the prototype.
55550
55551 2007-01-28  Jim Meyering  <jim@meyering.net>
55552
55553         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55554         sys/time.h here, reverting that part of the previous patch:
55555         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55556
55557 2007-01-28  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55560         value of $(SYS_TIME_H).
55561         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55562         remove it conditionally, too. [added by Jim Meyering]
55563         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55565         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55566         GETTIMEOFDAY_REPLACEMENT to 1.
55567
55568 2007-01-28  Bruno Haible  <bruno@clisp.org>
55569
55570         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55571         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55573         Set UNISTD_H instead of UNISTD_H2.
55574         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55575
55576 2007-01-28  Bruno Haible  <bruno@clisp.org>
55577
55578         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55579         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55580
55581 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55582
55583         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55584         (func_create_testdir): Ensure C locale for `grep' and `tr'
55585         character ranges.
55586         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55587         ACLOCAL_AMFLAGS parsing state machine.
55588
55589 2007-01-27  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/unistr/base: Update.
55592
55593 2007-01-27  Bruno Haible  <bruno@clisp.org>
55594
55595         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55596         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55597         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55598         modules/unistr/u32-mbtouc.
55599         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55600         * lib/unistr.h: Update.
55601         * lib/linebreak.c: Update.
55602         * modules/unistr/u32-mbtouc: Renamed from
55603         modules/unistr/u32-mbtouc-safe.
55604         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55605         * lib/unistr.h: Update.
55606         * lib/unistr/u32-to-u8.c: Update.
55607         * lib/unistr/u32-to-u16.c: Update.
55608
55609 2007-01-27  Bruno Haible  <bruno@clisp.org>
55610
55611         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55612         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55613         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55614         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55615         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55616         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55617         modules/unistr/u16-mbtouc.
55618         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55619         * lib/unistr.h: Update.
55620         * lib/linebreak.c: Update.
55621         * modules/linebreak: Update.
55622         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55623         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55624         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55625         * modules/unistr/u16-mbtouc: Renamed from
55626         modules/unistr/u16-mbtouc-safe.
55627         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55628         * lib/unistr.h: Update.
55629         * lib/unistr/u16-to-u8.c: Update.
55630         * modules/unistr/u16-to-u8: Update.
55631         * lib/unistr/u16-to-u32.c: Update.
55632         * modules/unistr/u16-to-u32: Update.
55633
55634 2007-01-27  Bruno Haible  <bruno@clisp.org>
55635
55636         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55637         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55638         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55639         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55640         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55641         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55642         modules/unistr/u8-mbtouc.
55643         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55644         * lib/unistr.h: Update.
55645         * lib/striconveh.c: Update.
55646         * modules/striconveh: Update.
55647         * lib/linebreak.c: Update.
55648         * modules/linebreak: Update.
55649         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55650         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55651         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55652         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55653         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55654         * lib/unistr.h: Update.
55655         * lib/striconveh.c: Update.
55656         * modules/striconveh: Update.
55657         * lib/unistr/u8-to-u16.c: Update.
55658         * modules/unistr/u8-to-u16: Update.
55659         * lib/unistr/u8-to-u32.c: Update.
55660         * modules/unistr/u8-to-u32: Update.
55661
55662 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55663
55664         Sync from Libtool.
55665         * lib/argz.c: Do not include strings.h nor memory.h, include
55666         string.h unconditionally.  Patch by Simon Josefsson.
55667
55668 2007-01-27  Bruno Haible  <bruno@clisp.org>
55669
55670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55671         from gl_HEADER_STRING_H_BODY.
55672         (gl_HEADER_STRING_H_BODY): Require it.
55673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55675         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55678         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55680         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55681         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55683         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55684         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55685         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55688
55689 2007-01-27  Bruno Haible  <bruno@clisp.org>
55690
55691         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55692         check_PROGRAMS into noinst_PROGRAMS.
55693         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55694         check_PROGRAMS in this case.
55695         (func_import): Set for_test to false.
55696         (func_create_testdir): Set for_test to true.
55697
55698 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55699             Bruno Haible  <bruno@clisp.org>
55700
55701         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55702         (Depends-on): Add string.
55703         (Includes): Use <string.h> instead of strcasestr.h.
55704         * modules/string (Makefile.am): Also substitute the value of
55705         REPLACE_STRCASESTR.
55706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55707         assume strcasestr is declared in <string.h> not <strings.h>. Also
55708         set REPLACE_STRCASESTR.
55709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55710         REPLACE_STRCASESTR.
55711         * lib/strcasestr.h: Remove file.
55712         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55713         * lib/string_.h (strcasestr): New declaration.
55714
55715 2007-01-27  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/string_.h: Use 'extern'.
55718
55719 2007-01-27  Jim Meyering  <jim@meyering.net>
55720
55721         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55722         of set-but-not-used local, "q".
55723
55724         * lib/mempcpy.c: Include <config.h> before <string.h>.
55725         This fixes a compilation error on HP-UX, due to the system's
55726         "restrict"-using mempcpy prototype.
55727
55728 2007-01-26  Bruno Haible  <bruno@clisp.org>
55729
55730         Small optimization.
55731         * lib/javacomp.c: Include c-strstr.h.
55732          (is_envjavac_gcj): Use c_strstr instead of strstr.
55733         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55734
55735 2007-01-26  Bruno Haible  <bruno@clisp.org>
55736
55737         * MODULES.html.sh (Unicode string functions): Add the new modules.
55738
55739         * modules/uniconv/u32-strconv-to-locale: New file.
55740         * lib/uniconv/u32-strconv-to-locale.c: New file.
55741
55742         * modules/uniconv/u16-strconv-to-locale: New file.
55743         * lib/uniconv/u16-strconv-to-locale.c: New file.
55744
55745         * modules/uniconv/u8-strconv-to-locale: New file.
55746         * lib/uniconv/u8-strconv-to-locale.c: New file.
55747
55748         * modules/uniconv/u32-strconv-from-locale: New file.
55749         * lib/uniconv/u32-strconv-from-locale.c: New file.
55750
55751         * modules/uniconv/u16-strconv-from-locale: New file.
55752         * lib/uniconv/u16-strconv-from-locale.c: New file.
55753
55754         * modules/uniconv/u8-strconv-from-locale: New file.
55755         * lib/uniconv/u8-strconv-from-locale.c: New file.
55756
55757         * modules/uniconv/u32-strconv-to-enc: New file.
55758         * lib/uniconv/u32-strconv-to-enc.c: New file.
55759         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55760         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55761
55762         * modules/uniconv/u16-strconv-to-enc: New file.
55763         * lib/uniconv/u16-strconv-to-enc.c: New file.
55764         * lib/uniconv/u-strconv-to-enc.h: New file.
55765         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55766         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55767
55768         * modules/uniconv/u8-strconv-to-enc: New file.
55769         * lib/uniconv/u8-strconv-to-enc.c: New file.
55770         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55771         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55772
55773         * modules/uniconv/u32-strconv-from-enc: New file.
55774         * lib/uniconv/u32-strconv-from-enc.c: New file.
55775         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55776         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55777
55778         * modules/uniconv/u16-strconv-from-enc: New file.
55779         * lib/uniconv/u16-strconv-from-enc.c: New file.
55780         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55781         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55782
55783         * modules/uniconv/u8-strconv-from-enc: New file.
55784         * lib/uniconv/u8-strconv-from-enc.c: New file.
55785         * lib/uniconv/u-strconv-from-enc.h: New file.
55786         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55787         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55788
55789         * modules/uniconv/u32-conv-from-enc: New file.
55790         * lib/uniconv/u32-conv-from-enc.c: New file.
55791         * modules/uniconv/u32-conv-from-enc-tests: New file.
55792         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55793
55794         * modules/uniconv/u16-conv-from-enc: New file.
55795         * lib/uniconv/u16-conv-from-enc.c: New file.
55796         * lib/uniconv/u-conv-from-enc.h: New file.
55797         * modules/uniconv/u16-conv-from-enc-tests: New file.
55798         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55799
55800         * modules/uniconv/u8-conv-from-enc: New file.
55801         * lib/uniconv/u8-conv-from-enc.c: New file.
55802         * modules/uniconv/u8-conv-from-enc-tests: New file.
55803         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55804
55805         * modules/uniconv/base: New file.
55806         * lib/uniconv.h: New file.
55807
55808 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55809
55810         * doc/gnulib-tool.texi (Initial import): Update to match current
55811         behavior with strdup module.
55812         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55813         * lib/memmem.h: Remove; all uses removed.  This is now done
55814         by <string.h>.
55815         * lib/mempcpy.h: Likewise.
55816         * lib/memrchr.h: Likewise.
55817         * lib/stpcpy.h: Likewise.
55818         * lib/stpncpy.h: Likewise.
55819         * lib/strcase.h: Likewise.
55820         * lib/strchrnul.h: Likewise.
55821         * lib/strdup.h: Likewise.
55822         * lib/strndup.h: Likewise.
55823         * lib/strnlen.h: Likewise.
55824         * lib/strpbrk.h: Likewise.
55825         * lib/strsep.h: Likewise.
55826         * lib/strstr.h: Likewise.
55827         * lib/strtok_r.h: Likewise.
55828         * lib/string_.h: New file.
55829         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55830         Rely on <string.h> instead.
55831         * lib/canon-host.c: Likewise.
55832         * lib/chdir-long.c: Likewise.
55833         * lib/concatpath.c: Likewise.
55834         * lib/exclude.c: Likewise.
55835         * lib/fchdir.c: Likewise.
55836         * lib/getaddrinfo.c: Likewise.
55837         * lib/getcwd.c: Likewise.
55838         * lib/getsubopt.c: Likewise.
55839         * lib/glob.c: Likewise.
55840         * lib/hard-locale.c: Likewise.
55841         * lib/iconvme.c: Likewise.
55842         * lib/javacomp.c: Likewise.
55843         * lib/mempcpy.c: Likewise.
55844         * lib/memrchr.c: Likewise.
55845         * lib/regex_internal.h: Likewise.
55846         * lib/stpncpy.c: Likewise.
55847         * lib/strcasecmp.c: Likewise.
55848         * lib/strchrnul.c: Likewise.
55849         * lib/strdup.c: Likewise.
55850         * lib/striconv.c: Likewise.
55851         * lib/striconveh.c: Likewise.
55852         * lib/striconveha.c: Likewise.
55853         * lib/strncasecmp.c: Likewise.
55854         * lib/strndup.c: Likewise.
55855         * lib/strnlen.c: Likewise.
55856         * lib/strsep.c: Likewise.
55857         * lib/strstr.c: Likewise.
55858         * lib/strtok_r.c: Likewise.
55859         * lib/userspec.c: Likewise.
55860         * lib/w32spawn.h: Likewise.
55861         * lib/xstrndup.c: Likewise.
55862         * lib/mountlist.c (strstr): Remove decl.
55863         * m4/string_h.m4: New file.
55864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55865         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55866         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55867         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55868         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55869         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55870         Set REPLACE_STRCASECMP if necessary.
55871         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55872         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55873         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55875         HAVE_DECL_STRDUP if necessary.
55876         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55877         since gl_FUNC_STRNDUP does that now.
55878         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55879         Check for decl here...
55880         (gl_PREREQ_STRNLEN): ... not here.
55881         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55882         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55883         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55885         necessary.
55886         * modules/string: New file.
55887         * modules/memmem (Files): Remove special-purpose include file.
55888         (Depends-on): Add string.
55889         (Include): Include <string.h>, not the removed file.
55890         * modules/mempcpy: Likewise.
55891         * modules/memrchr: Likewise.
55892         * modules/stpcpy: Likewise.
55893         * modules/stpncpy: Likewise.
55894         * modules/strcase: Likewise.
55895         * modules/strchrnul: Likewise.
55896         * modules/strdup: Likewise.
55897         * modules/strndup: Likewise.
55898         * modules/strnlen: Likewise.
55899         * modules/strpbrk: Likewise.
55900         * modules/strsep: Likewise.
55901         * modules/strstr: Likewise.
55902         * modules/strtok_r: Likewise.
55903         * tests/test-dirname.c: Don't include "strdup.h", since
55904         <string.h> now suffices.
55905         * tests/test-memmem.c: Don't include "memmem.h", since
55906         <string.h> now suffices.
55907
55908 2007-01-25  Bruno Haible  <bruno@clisp.org>
55909
55910         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55911         *resultp is 0.
55912
55913         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55914         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55915         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55916         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55917
55918         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55919         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55920         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55921         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55922         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55923         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55924
55925 2007-01-24  Bruno Haible  <bruno@clisp.org>
55926
55927         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55929         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55930         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55931         gl_FUNC_FTS_CORE.
55932         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55933         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55934         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55935         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55936         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55937         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55938         gl_FUNC_FCHOWNAT.
55939         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55940         gl_FUNC_STRFTIME.
55941         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55942         Reported by Ralf Wildenhues.
55943
55944 2007-01-24  Bruno Haible  <bruno@clisp.org>
55945
55946         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55947         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55948         gl_GETADDRINFO.
55949         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55950         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55951         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55952
55953 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55954
55955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55956         Don't use 'exit'; just return from 'main'.
55957         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55958
55959         * lib/fnmatch_.h: Readjust white space and comments to match
55960         glibc, to avoid spurious diffs.
55961
55962 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55963
55964         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55965         2004-12-01 change by Jakub Jelinek, since this code won't compile
55966         if !LIBC.  Problem reported by Bob Proulx.
55967
55968 2007-01-23  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/striconveh.c: Include c-strcaseeq.h.
55971         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55972         * modules/striconveh (Depends-on): Add c-strcaseeq.
55973
55974 2007-01-23  Bruno Haible  <bruno@clisp.org>
55975
55976         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55977
55978         * modules/c-strcaseeq: New file.
55979         * lib/c-strcaseeq.h: New file.
55980
55981         * modules/streq: New file.
55982         * lib/streq.h: New file.
55983
55984 2007-01-23  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/striconveha-tests: New file.
55987         * tests/test-striconveha.c: New file.
55988
55989         * lib/striconveha.h: Include <stdbool.h>.
55990         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55991         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55992         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55993         (mem_iconveha): New function.
55994         (str_iconveha_notranslit): Renamed from str_iconveha.
55995         (str_iconveha): New function.
55996         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55997         c-strcase.
55998
55999 2007-01-23  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56002         encodings without forgiving before trying any encoding with handler.
56003         (str_iconveha): Try all encodings without forgiving before trying any
56004         encoding with handler.
56005
56006 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         Import the following changes from libc.
56009
56010         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56011
56012         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56013
56014         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56015
56016         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56017         normal_bracket label.
56018
56019         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56020
56021         [BZ #361]
56022         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56023         to normal_bracket after fetching the next character.
56024
56025 2007-01-22  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56028         argument.
56029         * lib/striconveh.c (iconv_carefully_1): New function.
56030         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56031         argument.
56032         (str_cd_iconveh): Update.
56033         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56034         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56035         * tests/test-striconveh.c (MAGIC): New macro.
56036         (new_offsets): New function.
56037         (main): Test call with and without offsets.
56038
56039 2007-01-22  Bruno Haible  <bruno@clisp.org>
56040
56041         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56042         * modules/sys_select (Makefile.am): Likewise.
56043         * modules/sys_socket (Makefile.am): Likewise.
56044         * modules/sys_time (Makefile.am): Likewise.
56045
56046 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
56047
56048         * modules/gettimeofday (License): Change from GPL to LGPL, since
56049         gettimeofday is a library function.
56050
56051 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56052
56053         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
56054
56055 2007-01-21  Bruno Haible  <bruno@clisp.org>
56056
56057         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56058
56059 2007-01-21  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/striconveha: New file.
56062         * lib/striconveha.h: New file.
56063         * lib/striconveha.c: New file.
56064         * MODULES.html.sh (Internationalization functions): Add striconveha.
56065         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56066         string.
56067         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56068
56069 2007-01-21  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56072         * lib/striconveh.c (str_iconveh): Likewise.
56073
56074 2007-01-21  Bruno Haible  <bruno@clisp.org>
56075
56076         * lib/striconveh.h (mem_iconveh): New declaration.
56077         * lib/striconveh.c (mem_iconveh): New function.
56078         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56079
56080 2007-01-21  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56083
56084         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56085         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56086         original result buffer.
56087         (str_cd_iconveh): Update.
56088         * tests/test-striconveh.c (main): Update.
56089
56090         * lib/striconv.h (mem_cd_iconv): Change specification.
56091         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56092         result buffer.
56093         (str_cd_iconv): Update.
56094         * tests/test-striconv.c (main): Update.
56095
56096 2007-01-21  Bruno Haible  <bruno@clisp.org>
56097
56098         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56099
56100 2007-01-20  Jim Meyering  <jim@meyering.net>
56101
56102         * lib/userspec.c (parse_with_separator): If a user or group string
56103         starts with "+", skip the corresponding name-to-ID look-up, since
56104         such a look-up must fail: user and group names may not include "+".
56105
56106 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56107
56108         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56109         since we now assume the sys_time module.
56110         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56111         check for sys/time.h; no longer needed.
56112         * modules/poll (Depends-on): Depend on sys_time.
56113
56114 2007-01-18  Bruno Haible  <bruno@clisp.org>
56115
56116         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56117         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56118
56119         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56120         gettimeofday.
56121
56122         * tests/test-gettimeofday.c: Include <time.h>.
56123         (dummy): Remove variable.
56124
56125         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56126         gl_HEADER_SYS_TIME_H.
56127         (gl_HEADER_SYS_TIME_H): New macro.
56128
56129         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56130         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56132         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56133         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56135         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56136         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56137         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56138         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56139         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56140
56141         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56142         last change; it caused a compilation error when cross-compiling to
56143         Cygwin.
56144
56145 2007-01-18  Jim Meyering  <jim@meyering.net>
56146
56147         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56148         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56149         than the race-prone "test -d sys || mkdir sys".
56150         (configure.ac): Use AC_PROG_MKDIR_P.
56151         * modules/sys_select: Likewise.
56152         * modules/sys_socket: Likewise.
56153         * modules/sys_time: Likewise.
56154
56155 2007-01-18  Eric Blake  <ebb9@byu.net>
56156
56157         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56158         replace gettimeofday.
56159         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56160         name, to avoid infinite recursion.
56161
56162 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56163
56164         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56165         module sys_time.
56166         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56167         assume timespec.h defines struct timeval.
56168         * lib/settime.c: Likewise.
56169         * lib/utimens.c: Likewise.
56170         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56171         since we now assume the gettimeofday module.
56172         * lib/tempname.c (__gen_tempname): Likewise.
56173         * lib/gettimeofday.h: Remove.
56174         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56175         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56176         Include <time.h>, for 'time()'.
56177         (localtime_buffer_addr): Also use this workaround if
56178         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56179         to simplify the uses.  All uses changed.
56180         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56181         that #undef is inside {}, and 'const' follows type name consistently.
56182         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56183         (gettimeofday): Do not use the maximum possible value for
56184         tv->tv_usec, since that might break usages other than ls.c.
56185         Instead, we'll leave ls.c alone.  This undoes today's patch
56186         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56187         we've never observed the problem but might as well keep the
56188         canary.
56189         * lib/nanosleep.c: Include timespec.h first, for interface check.
56190         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56191         now assume the sys_time module.
56192         * lib/tempname.c: Likewise.
56193         * lib/timespec.h: Likewise.
56194         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56195         needed.
56196         * lib/strftime.c: Likewise.
56197         * lib/timespec.h: Likewise.
56198         * lib/posixtm.c: Include posixtm.h first, for interface check.
56199         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56200         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56201         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56202         * lib/sys_time_.h: New file.
56203         * lib/timespec.h (struct timespec): Use long int, not long.
56204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56205         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56206         Remove obsolescent call to AC_HEADER_TIME.
56207         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56210         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56211         Likewise.
56212         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56213         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56214         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56215         into the sys_time module.  Check for gettimeofday just once.
56216         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56217         for gettimeofday signature to just check the signature.  Merely
56218         compile it, since linking doesn't test signature.  Improve test for
56219         whether gettimeofday.o is actually needed.
56220         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56221         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56222         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56223         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56224         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56225         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56226         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56227         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56228         than worrying about sys/time.h.
56229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56230         Don't bother worrying about TIME_WITH_SYS_TIME.
56231         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56232         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56233         * m4/sys_time_h.m4: New file.
56234         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56235         Don't include sys/time.h.  Return from main rather than exiting.
56236         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56237         all uses changed.
56238         * modules/gethrxtime (Depends-on): Add sys_time.
56239         * modules/gettime (Depends-on): Likewise.
56240         * modules/gettimeofday (Depends-on): Likewise.
56241         * modules/nanosleep (Depends-on): Likewise.
56242         * modules/settime (Depends-on): Likewise.
56243         * modules/tempname (Depends-on): Likewise.
56244         * modules/utimens (Depends-on): Likewise.
56245         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56246         (Include): Change back to <sys/time.h>.
56247         (Maintainer): Add self.
56248         * modules/sys_time: New file.
56249         * modules/tempname (Depends-on): Add gettimeofday.
56250         * tests/test-gettimeofday.c: Include <sys/time.h>
56251         rather than gettimeofday.h.
56252
56253 2007-01-17  Bruno Haible  <bruno@clisp.org>
56254
56255         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56256         the license default to GPL.
56257         (func_create_testdir): Don't complain if a module is LGPL and its
56258         tests module depends on GPLed modules.
56259
56260 2007-01-17  Bruno Haible  <bruno@clisp.org>
56261
56262         * lib/gettimeofday.c (gettimeofday): Add code for the case
56263         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56264         maximum possible value for tv->tv_usec, rather than the minimum one.
56265
56266 2005-10-08  Martin Lambers  <marlam@marlam.de>
56267 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56268 2007-01-16  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56271         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56272         gl_FUNC_GETTIMEOFDAY.
56273         (Include): Add gettimeofday.h.
56274         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56275         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56276         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56277         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56278         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56279         * lib/gettimeofday.h: New file.
56280         * lib/gettimeofday.c: Include <sys/timeb.h>.
56281         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56282         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56283         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56284         fall back on time().
56285
56286         * tests/test-gettimeofday.c: New file.
56287         * modules/gettimeofday-tests: New file.
56288
56289 2007-01-16  Eric Blake  <ebb9@byu.net>
56290
56291         * modules/fnmatch (Depends-on): Depend on wchar.
56292         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56293         * m4/fnmatch.m4: Likewise.
56294         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56295         * m4/mbchar.m4: Likewise.
56296         * modules/mbswidth (Depends-on): Depend on wchar.
56297         * lib/mbswidth.c: Assume <wchar.h>.
56298         * m4/mbswidth.m4: Likewise.
56299         * modules/quotearg (Depends-on): Depend on wchar.
56300         * lib/quotearg.c: Assume <wchar.h>.
56301         * m4/quotearg.m4: Likewise.
56302         * modules/regex (Depends-on): Depend on wchar.
56303         * lib/regex_internal.h: Assume <wchar.h>.
56304         * m4/regex.m4: Likewise.
56305         * modules/stdint (Depends-on): Depend on wchar.
56306         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56307         * m4/stdint.m4: Likewise.
56308         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56309         * modules/strftime (Depends-on): Depend on wchar.
56310         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56311         * modules/strtol (Depends-on): Depend on wchar.
56312         * lib/strtol.c: Assume <wchar.h>.
56313         * modules/wcwidth (Depends-on): Depend on wchar.
56314         * lib/wcwidth.h: Assume <wchar.h>.
56315         * m4/wcwidth.m4: Likewise.
56316
56317 2007-01-16  Bruno Haible  <bruno@clisp.org>
56318
56319         * modules/csharpexec-script: New, created from...
56320         * modules/csharpexec: ... this.
56321
56322 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56323
56324         * modules/javaexec-script: New, created from...
56325         * modules/javaexec: ... this.
56326
56327 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56328
56329         * modules/poll (Dependencies): Add sys_select.
56330
56331 2007-01-15  Jim Meyering  <jim@meyering.net>
56332
56333         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56334         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56335         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56336         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56337
56338 2007-01-15  Bruno Haible  <bruno@clisp.org>
56339
56340         * modules/striconveh: New file.
56341         * lib/striconveh.h: New file.
56342         * lib/striconveh.c: New file.
56343         * MODULES.html.sh (Internationalization functions): Add striconveh.
56344
56345         * modules/striconveh-tests: New file.
56346         * tests/test-striconveh.c: New file.
56347
56348 2007-01-15  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56351         not from GNU libiconv or GNU libc.
56352
56353 2007-01-15  Bruno Haible  <bruno@clisp.org>
56354
56355         * doc/gnulib-intro.texi (Copyright): Explain the different license
56356         terms for module descriptions, autoconf macros, tests, documentation.
56357
56358 2007-01-14  Bruno Haible  <bruno@clisp.org>
56359
56360         * modules/striconv-tests: New file.
56361         * tests/test-striconv.c: New file.
56362
56363 2007-01-14  Bruno Haible  <bruno@clisp.org>
56364
56365         * modules/iconv-tests: New file.
56366         * tests/test-iconv.c: New file.
56367
56368 2007-01-14  Bruno Haible  <bruno@clisp.org>
56369
56370         * gnulib-tool (func_get_license): For test modules, use the license of
56371         the main module.
56372
56373 2007-01-14  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56376         if iconv is found to exist.
56377
56378 2007-01-14  Bruno Haible  <bruno@clisp.org>
56379
56380         * modules/c-ctype-tests: New file.
56381         * tests/test-c-ctype.c: New file.
56382
56383 2007-01-14  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/binary-io-tests: New file.
56386         * tests/test-binary-io.sh: New file.
56387         * tests/test-binary-io.c: New file.
56388
56389 2007-01-14  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/array-oset-tests: New file.
56392         * tests/test-array_oset.c: New file.
56393
56394 2007-01-14  Bruno Haible  <bruno@clisp.org>
56395
56396         * modules/array-list-tests: New file.
56397         * tests/test-array_list.c: New file.
56398
56399 2007-01-14  Bruno Haible  <bruno@clisp.org>
56400
56401         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56402         and make.
56403         Reported by Simon Josefsson in
56404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56405
56406 2007-01-14  Bruno Haible  <bruno@clisp.org>
56407
56408         * modules/allocsa-tests: New file.
56409         * tests/test-allocsa.c: New file.
56410
56411 2007-01-14  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/fchdir (Depends-on): Add absolute-header.
56414         * modules/unistd (Depends-on): Likewise.
56415
56416 2006-12-30  Bruno Haible  <bruno@clisp.org>
56417
56418         * modules/fchdir: New file.
56419         * modules/unistd (Files): Add lib/unistd_.h.
56420         (Makefile.am): Generate unistd.h from unistd_.h.
56421         * lib/fchdir.c: New file.
56422         * lib/dirent_.h: New file.
56423         * lib/unistd_.h: New file.
56424         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56425         * m4/fchdir.m4: New file.
56426         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56427         (gl_HEADER_UNISTD): Invoke it.
56428         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56429         function.
56430         * lib/backupfile.c (opendir, closedir): Undefine.
56431         * lib/chown.c (open, close): Undefine.
56432         * lib/clean-temp.c (open, close): Undefine.
56433         * lib/copy-file.c (open, close): Undefine.
56434         * lib/execute.c (open, close): Undefine.
56435         * lib/fsusage.c (open, close): Undefine.
56436         * lib/gc-gnulib.c (open, close): Undefine.
56437         * lib/getcwd.c (opendir, closedir): Undefine.
56438         * lib/glob.c (opendir, closedir): Undefine.
56439         * lib/javacomp.c (open, close): Undefine.
56440         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56441         * lib/openat-proc.c (open, close): Undefine.
56442         * lib/pagealign_alloc.c (open, close): Undefine.
56443         * lib/pipe.c (open, close): Undefine.
56444         * lib/progreloc.c (open, close): Undefine.
56445         * lib/savedir.c (opendir, closedir): Undefine.
56446         * lib/utime.c (open, close): Undefine.
56447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56448
56449 2007-01-10  Bruno Haible  <bruno@clisp.org>
56450
56451         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56452
56453 2007-01-12  Eric Blake  <ebb9@byu.net>
56454
56455         Provide a robust <wchar.h>.  Further simplifications are now
56456         possible in other modules, but not included here.
56457         * modules/wchar: New module.
56458         * m4/wchar.m4: New file.
56459         * lib/wchar_.h: Likewise.
56460         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56461         of the new module.
56462         * MODULES.html.sh (Extended multibyte and wide character utilities):
56463         New section.
56464
56465 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56468         to a reasonable default for memory allocation.
56469         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56470         file system that reports garbage st_size values for symlinks.
56471         Problem reported by Liyang Hu.
56472
56473 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56474
56475         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56476         Emacs .#* auto-save files).
56477
56478 2007-01-11  Bruno Haible  <bruno@clisp.org>
56479
56480         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56481         directory.
56482
56483 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56484
56485         Use @...@ consistently in lib/wctype_.h.
56486         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56487         on it being set to 1 or 0.
56488         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56489         go back to AC_SUBSTing it.
56490         * modules/wctype (Makefile.am): Undo previous change.
56491
56492 2007-01-10  Eric Blake  <ebb9@byu.net>
56493
56494         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56495         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56496         * modules/wctype (Makefile.am): Likewise.
56497         Reported by Chris McGuire.
56498
56499 2007-01-10  Jim Meyering  <jim@meyering.net>
56500
56501         fts.c: a small readability/maintainability improvement
56502         * lib/fts.c (fts_read): Make this code slightly more readable and
56503         maintainable by hoisting the "sp->fts_cur = p" assignments to
56504         immediately follow the statements that set P.  Derived from
56505         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56506
56507 2007-01-10  Eric Blake  <ebb9@byu.net>
56508
56509         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56510         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56512         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56513         Reported by Chris McGuire.
56514
56515 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56516
56517         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56518         in sed script.
56519
56520 2007-01-09  Bruno Haible  <bruno@clisp.org>
56521
56522         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56523         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56524         variables.
56525         (func_module): Use them.
56526
56527 2007-01-09  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/unistr/base: New file.
56530         * lib/unistr.h: New file.
56531
56532         * modules/unistr/u8-to-u16: New file.
56533         * lib/unistr/u8-to-u16.c: New file.
56534
56535         * modules/unistr/u8-to-u32: New file.
56536         * lib/unistr/u8-to-u32.c: New file.
56537
56538         * modules/unistr/u16-to-u8: New file.
56539         * lib/unistr/u16-to-u8.c: New file.
56540
56541         * modules/unistr/u16-to-u32: New file.
56542         * lib/unistr/u16-to-u32.c: New file.
56543
56544         * modules/unistr/u32-to-u8: New file.
56545         * lib/unistr/u32-to-u8.c: New file.
56546
56547         * modules/unistr/u32-to-u16: New file.
56548         * lib/unistr/u32-to-u16.c: New file.
56549
56550         * modules/unistr/u8-check: New file.
56551         * modules/unistr/u16-check: New file.
56552         * modules/unistr/u32-check: New file.
56553         * lib/unistr/u8-check.c: New file.
56554         * lib/unistr/u16-check.c: New file.
56555         * lib/unistr/u32-check.c: New file.
56556
56557         * modules/unistr/u8-chr: New file.
56558         * modules/unistr/u16-chr: New file.
56559         * modules/unistr/u32-chr: New file.
56560         * lib/unistr/u8-chr.c: New file.
56561         * lib/unistr/u16-chr.c: New file.
56562         * lib/unistr/u32-chr.c: New file.
56563
56564         * modules/unistr/u8-cmp: New file.
56565         * modules/unistr/u16-cmp: New file.
56566         * modules/unistr/u32-cmp: New file.
56567         * lib/unistr/u8-cmp.c: New file.
56568         * lib/unistr/u16-cmp.c: New file.
56569         * lib/unistr/u32-cmp.c: New file.
56570
56571         * modules/unistr/u8-cpy: New file.
56572         * modules/unistr/u16-cpy: New file.
56573         * modules/unistr/u32-cpy: New file.
56574         * lib/unistr/u8-cpy.c: New file.
56575         * lib/unistr/u16-cpy.c: New file.
56576         * lib/unistr/u32-cpy.c: New file.
56577         * lib/unistr/u-cpy.h: New file.
56578
56579         * modules/unistr/u8-cpy-alloc: New file.
56580         * modules/unistr/u16-cpy-alloc: New file.
56581         * modules/unistr/u32-cpy-alloc: New file.
56582         * lib/unistr/u8-cpy-alloc.c: New file.
56583         * lib/unistr/u16-cpy-alloc.c: New file.
56584         * lib/unistr/u32-cpy-alloc.c: New file.
56585         * lib/unistr/u-cpy-alloc.h: New file.
56586
56587         * modules/unistr/u8-endswith: New file.
56588         * modules/unistr/u16-endswith: New file.
56589         * modules/unistr/u32-endswith: New file.
56590         * lib/unistr/u8-endswith.c: New file.
56591         * lib/unistr/u16-endswith.c: New file.
56592         * lib/unistr/u32-endswith.c: New file.
56593         * lib/unistr/u-endswith.h: New file.
56594
56595         * modules/unistr/u8-mblen: New file.
56596         * modules/unistr/u16-mblen: New file.
56597         * modules/unistr/u32-mblen: New file.
56598         * lib/unistr/u8-mblen.c: New file.
56599         * lib/unistr/u16-mblen.c: New file.
56600         * lib/unistr/u32-mblen.c: New file.
56601
56602         * modules/unistr/u8-mbtouc: New file.
56603         * modules/unistr/u16-mbtouc: New file.
56604         * modules/unistr/u32-mbtouc: New file.
56605         * lib/unistr/u8-mbtouc.c: New file.
56606         * lib/unistr/u16-mbtouc.c: New file.
56607         * lib/unistr/u32-mbtouc.c: New file.
56608
56609         * modules/unistr/u8-mbtouc-safe: New file.
56610         * modules/unistr/u16-mbtouc-safe: New file.
56611         * modules/unistr/u32-mbtouc-safe: New file.
56612         * lib/unistr/u8-mbtouc-safe.c: New file.
56613         * lib/unistr/u16-mbtouc-safe.c: New file.
56614         * lib/unistr/u32-mbtouc-safe.c: New file.
56615
56616         * modules/unistr/u8-move: New file.
56617         * modules/unistr/u16-move: New file.
56618         * modules/unistr/u32-move: New file.
56619         * lib/unistr/u8-move.c: New file.
56620         * lib/unistr/u16-move.c: New file.
56621         * lib/unistr/u32-move.c: New file.
56622         * lib/unistr/u-move.h: New file.
56623
56624         * modules/unistr/u8-next: New file.
56625         * modules/unistr/u16-next: New file.
56626         * modules/unistr/u32-next: New file.
56627         * lib/unistr/u8-next.c: New file.
56628         * lib/unistr/u16-next.c: New file.
56629         * lib/unistr/u32-next.c: New file.
56630
56631         * modules/unistr/u8-prev: New file.
56632         * modules/unistr/u16-prev: New file.
56633         * modules/unistr/u32-prev: New file.
56634         * lib/unistr/u8-prev.c: New file.
56635         * lib/unistr/u16-prev.c: New file.
56636         * lib/unistr/u32-prev.c: New file.
56637
56638         * modules/unistr/u8-set: New file.
56639         * modules/unistr/u16-set: New file.
56640         * modules/unistr/u32-set: New file.
56641         * lib/unistr/u8-set.c: New file.
56642         * lib/unistr/u16-set.c: New file.
56643         * lib/unistr/u32-set.c: New file.
56644         * lib/unistr/u-set.h: New file.
56645
56646         * modules/unistr/u8-startswith: New file.
56647         * modules/unistr/u16-startswith: New file.
56648         * modules/unistr/u32-startswith: New file.
56649         * lib/unistr/u8-startswith.c: New file.
56650         * lib/unistr/u16-startswith.c: New file.
56651         * lib/unistr/u32-startswith.c: New file.
56652         * lib/unistr/u-startswith.h: New file.
56653
56654         * modules/unistr/u8-stpcpy: New file.
56655         * modules/unistr/u16-stpcpy: New file.
56656         * modules/unistr/u32-stpcpy: New file.
56657         * lib/unistr/u8-stpcpy.c: New file.
56658         * lib/unistr/u16-stpcpy.c: New file.
56659         * lib/unistr/u32-stpcpy.c: New file.
56660         * lib/unistr/u-stpcpy.h: New file.
56661
56662         * modules/unistr/u8-stpncpy: New file.
56663         * modules/unistr/u16-stpncpy: New file.
56664         * modules/unistr/u32-stpncpy: New file.
56665         * lib/unistr/u8-stpncpy.c: New file.
56666         * lib/unistr/u16-stpncpy.c: New file.
56667         * lib/unistr/u32-stpncpy.c: New file.
56668         * lib/unistr/u-stpncpy.h: New file.
56669
56670         * modules/unistr/u8-strcat: New file.
56671         * modules/unistr/u16-strcat: New file.
56672         * modules/unistr/u32-strcat: New file.
56673         * lib/unistr/u8-strcat.c: New file.
56674         * lib/unistr/u16-strcat.c: New file.
56675         * lib/unistr/u32-strcat.c: New file.
56676         * lib/unistr/u-strcat.h: New file.
56677
56678         * modules/unistr/u8-strchr: New file.
56679         * modules/unistr/u16-strchr: New file.
56680         * modules/unistr/u32-strchr: New file.
56681         * lib/unistr/u8-strchr.c: New file.
56682         * lib/unistr/u16-strchr.c: New file.
56683         * lib/unistr/u32-strchr.c: New file.
56684
56685         * modules/unistr/u8-strcmp: New file.
56686         * modules/unistr/u16-strcmp: New file.
56687         * modules/unistr/u32-strcmp: New file.
56688         * lib/unistr/u8-strcmp.c: New file.
56689         * lib/unistr/u16-strcmp.c: New file.
56690         * lib/unistr/u32-strcmp.c: New file.
56691
56692         * modules/unistr/u8-strcpy: New file.
56693         * modules/unistr/u16-strcpy: New file.
56694         * modules/unistr/u32-strcpy: New file.
56695         * lib/unistr/u8-strcpy.c: New file.
56696         * lib/unistr/u16-strcpy.c: New file.
56697         * lib/unistr/u32-strcpy.c: New file.
56698         * lib/unistr/u-strcpy.h: New file.
56699
56700         * modules/unistr/u8-strcspn: New file.
56701         * modules/unistr/u16-strcspn: New file.
56702         * modules/unistr/u32-strcspn: New file.
56703         * lib/unistr/u8-strcspn.c: New file.
56704         * lib/unistr/u16-strcspn.c: New file.
56705         * lib/unistr/u32-strcspn.c: New file.
56706         * lib/unistr/u-strcspn.h: New file.
56707
56708         * modules/unistr/u8-strdup: New file.
56709         * modules/unistr/u16-strdup: New file.
56710         * modules/unistr/u32-strdup: New file.
56711         * lib/unistr/u8-strdup.c: New file.
56712         * lib/unistr/u16-strdup.c: New file.
56713         * lib/unistr/u32-strdup.c: New file.
56714         * lib/unistr/u-strdup.h: New file.
56715
56716         * modules/unistr/u8-strlen: New file.
56717         * modules/unistr/u16-strlen: New file.
56718         * modules/unistr/u32-strlen: New file.
56719         * lib/unistr/u8-strlen.c: New file.
56720         * lib/unistr/u16-strlen.c: New file.
56721         * lib/unistr/u32-strlen.c: New file.
56722         * lib/unistr/u-strlen.h: New file.
56723
56724         * modules/unistr/u8-strmblen: New file.
56725         * modules/unistr/u16-strmblen: New file.
56726         * modules/unistr/u32-strmblen: New file.
56727         * lib/unistr/u8-strmblen.c: New file.
56728         * lib/unistr/u16-strmblen.c: New file.
56729         * lib/unistr/u32-strmblen.c: New file.
56730
56731         * modules/unistr/u8-strmbtouc: New file.
56732         * modules/unistr/u16-strmbtouc: New file.
56733         * modules/unistr/u32-strmbtouc: New file.
56734         * lib/unistr/u8-strmbtouc.c: New file.
56735         * lib/unistr/u16-strmbtouc.c: New file.
56736         * lib/unistr/u32-strmbtouc.c: New file.
56737
56738         * modules/unistr/u8-strncat: New file.
56739         * modules/unistr/u16-strncat: New file.
56740         * modules/unistr/u32-strncat: New file.
56741         * lib/unistr/u8-strncat.c: New file.
56742         * lib/unistr/u16-strncat.c: New file.
56743         * lib/unistr/u32-strncat.c: New file.
56744         * lib/unistr/u-strncat.h: New file.
56745
56746         * modules/unistr/u8-strncmp: New file.
56747         * modules/unistr/u16-strncmp: New file.
56748         * modules/unistr/u32-strncmp: New file.
56749         * lib/unistr/u8-strncmp.c: New file.
56750         * lib/unistr/u16-strncmp.c: New file.
56751         * lib/unistr/u32-strncmp.c: New file.
56752
56753         * modules/unistr/u8-strncpy: New file.
56754         * modules/unistr/u16-strncpy: New file.
56755         * modules/unistr/u32-strncpy: New file.
56756         * lib/unistr/u8-strncpy.c: New file.
56757         * lib/unistr/u16-strncpy.c: New file.
56758         * lib/unistr/u32-strncpy.c: New file.
56759         * lib/unistr/u-strncpy.h: New file.
56760
56761         * modules/unistr/u8-strnlen: New file.
56762         * modules/unistr/u16-strnlen: New file.
56763         * modules/unistr/u32-strnlen: New file.
56764         * lib/unistr/u8-strnlen.c: New file.
56765         * lib/unistr/u16-strnlen.c: New file.
56766         * lib/unistr/u32-strnlen.c: New file.
56767         * lib/unistr/u-strnlen.h: New file.
56768
56769         * modules/unistr/u8-strpbrk: New file.
56770         * modules/unistr/u16-strpbrk: New file.
56771         * modules/unistr/u32-strpbrk: New file.
56772         * lib/unistr/u8-strpbrk.c: New file.
56773         * lib/unistr/u16-strpbrk.c: New file.
56774         * lib/unistr/u32-strpbrk.c: New file.
56775         * lib/unistr/u-strpbrk.h: New file.
56776
56777         * modules/unistr/u8-strrchr: New file.
56778         * modules/unistr/u16-strrchr: New file.
56779         * modules/unistr/u32-strrchr: New file.
56780         * lib/unistr/u8-strrchr.c: New file.
56781         * lib/unistr/u16-strrchr.c: New file.
56782         * lib/unistr/u32-strrchr.c: New file.
56783
56784         * modules/unistr/u8-strspn: New file.
56785         * modules/unistr/u16-strspn: New file.
56786         * modules/unistr/u32-strspn: New file.
56787         * lib/unistr/u8-strspn.c: New file.
56788         * lib/unistr/u16-strspn.c: New file.
56789         * lib/unistr/u32-strspn.c: New file.
56790         * lib/unistr/u-strspn.h: New file.
56791
56792         * modules/unistr/u8-strstr: New file.
56793         * modules/unistr/u16-strstr: New file.
56794         * modules/unistr/u32-strstr: New file.
56795         * lib/unistr/u8-strstr.c: New file.
56796         * lib/unistr/u16-strstr.c: New file.
56797         * lib/unistr/u32-strstr.c: New file.
56798         * lib/unistr/u-strstr.h: New file.
56799
56800         * modules/unistr/u8-strtok: New file.
56801         * modules/unistr/u16-strtok: New file.
56802         * modules/unistr/u32-strtok: New file.
56803         * lib/unistr/u8-strtok.c: New file.
56804         * lib/unistr/u16-strtok.c: New file.
56805         * lib/unistr/u32-strtok.c: New file.
56806         * lib/unistr/u-strtok.h: New file.
56807
56808         * modules/unistr/u8-uctomb: New file.
56809         * modules/unistr/u16-uctomb: New file.
56810         * modules/unistr/u32-uctomb: New file.
56811         * lib/unistr/u8-uctomb.c: New file.
56812         * lib/unistr/u16-uctomb.c: New file.
56813         * lib/unistr/u32-uctomb.c: New file.
56814
56815         * MODULES.html.sh (Unicode string functions): Add the new modules.
56816
56817 2007-01-08  Bruno Haible  <bruno@clisp.org>
56818
56819         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56820         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56821         subdirectories.
56822
56823 2007-01-08  Karl Berry  <karl@gnu.org>
56824
56825         * doc/error.texi: mention that main() fns must set program_name
56826         when progname is used.
56827
56828 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56829
56830         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56831         WCTYPE_H is empty, for the benefit of builds from non-distclean
56832         directories.  Problem reported by Eric Blake in
56833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56834
56835 2007-01-08  Bruno Haible  <bruno@clisp.org>
56836
56837         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56838         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56839         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56840         PROVIDE_CANONICALIZE_FILENAME_MODE.
56841         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56842
56843 2007-01-08  Bruno Haible  <bruno@clisp.org>
56844
56845         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56846         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56847         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56848         * lib/fts.c: Likewise.
56849         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56850
56851 2006-12-25  Bruno Haible  <bruno@clisp.org>
56852
56853         * modules/utf8-ucs4-safe: New file.
56854         * lib/utf8-ucs4-safe.h: New file.
56855         * lib/unistr/utf8-ucs4-safe.c: New file.
56856
56857         * modules/utf16-ucs4-safe: New file.
56858         * lib/utf16-ucs4-safe.h: New file.
56859         * lib/unistr/utf16-ucs4-safe.c: New file.
56860
56861         * MODULES.html.sh (Unicode string functions): Add the new modules.
56862
56863 2007-01-08  Bruno Haible  <bruno@clisp.org>
56864
56865         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56866         (Depends-on): Add unitypes.
56867         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56868         (u8_mbtouc_aux): Move out to separate file.
56869         (u8_mbtouc): Use ucs4_t, uint8_t types.
56870         * lib/unistr/utf8-ucs4.c: New file.
56871
56872         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56873         (Depends-on): Add unitypes.
56874         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56875         (u16_mbtouc_aux): Move out to separate file.
56876         (u16_mbtouc): Use ucs4_t, uint16_t types.
56877         * lib/unistr/utf16-ucs4.c: New file.
56878
56879         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56880         (Depends-on): Add unitypes.
56881         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56882         (u8_uctomb_aux): Move out to separate file.
56883         (u8_uctomb): Use ucs4_t, uint8_t types.
56884         * lib/unistr/ucs4-utf8.c: New file.
56885
56886         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56887         (Depends-on): Add unitypes.
56888         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56889         (u16_uctomb_aux): Move out to separate file.
56890         (u16_uctomb): Use ucs4_t, uint16_t types.
56891         * lib/unistr/ucs4-utf16.c: New file.
56892
56893 2006-12-25  Bruno Haible  <bruno@clisp.org>
56894
56895         * modules/unitypes: New file.
56896         * lib/unitypes.h: New file.
56897         * MODULES.html.sh (func_all_modules): New section "Unicode string
56898         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56899         this section. Add unitypes.
56900
56901 2007-01-08  Bruno Haible  <bruno@clisp.org>
56902
56903         Avoid variable names that conflict with those from libtool.
56904         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56905         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56906         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56907         library_names_spec to acl_library_names_spec, hardcode_* to
56908         acl_hardcode_*.
56909         Reported by Ralf Wildenhues.
56910
56911 2007-01-08  Bruno Haible  <bruno@clisp.org>
56912
56913         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56914         definition.
56915         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56916         definition.
56917         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56918         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56919         definition.
56920         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56921         definition.
56922         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56923         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56924         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56925         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56926         definition.
56927         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56928         definition.
56929         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56930         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56931         GC_USE_<algorithm>.
56932         * lib/gc-libgcrypt.c: Likewise.
56933         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56934         * modules/gc-arctwo (configure.ac): Likewise.
56935         * modules/gc-des (configure.ac): Likewise.
56936         * modules/gc-hmac-md5 (configure.ac): Likewise.
56937         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56938         * modules/gc-md2 (configure.ac): Likewise.
56939         * modules/gc-md4 (configure.ac): Likewise.
56940         * modules/gc-md5 (configure.ac): Likewise.
56941         * modules/gc-random (configure.ac): Likewise.
56942         * modules/gc-rijndael (configure.ac): Likewise.
56943         * modules/gc-sha1 (configure.ac): Likewise.
56944
56945 2007-01-08  Bruno Haible  <bruno@clisp.org>
56946
56947         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56948         macro definition.
56949         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56950         definition.
56951         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56952         definition.
56953         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56954         * modules/fcntl-safer (configure.ac): Likewise.
56955         * modules/fopen-safer (configure.ac): Likewise.
56956         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56957         GNULIB_FWRITEERROR macro definition.
56958
56959 2007-01-08  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/gnulib-common.m4: New file.
56962         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56963         (func_get_filelist): Add m4/gnulib-common.m4.
56964
56965 2007-01-08  Bruno Haible  <bruno@clisp.org>
56966
56967         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56968         command.
56969
56970 2007-01-08  Jim Meyering  <jim@meyering.net>
56971
56972         Use a more robust test for a "can't happen" condition.
56973         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56974         narrowed the st_size value.  Presuming the "can't happen" condition
56975         is true, that narrowing could conceivably convert an invalid st_size
56976         value into a valid one.  Instead, use a change based on Matthew
56977         Woehlke's original patch.
56978
56979         Slight readability improvement: use an assert-like macro
56980         in place of literal "abort ()" uses.
56981         * lib/fts.c (fts_assert): Define.
56982         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56983         Use this macro instead of a bare 'abort'.
56984
56985 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56986
56987         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56988         simply work around them.
56989         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56990         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56991         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56992         declaring.
56993         Don't bother to define as macros, since the standard doesn't require it.
56994         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56995         longer worry about IRIX 5.3.
56996         (HAVE_WCTYPE_CTMP_BUG): Remove.
56997
56998 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57001         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57002         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57003         Problems reported by Georg Schwarz for IRIX 5.3.
57004
57005         * gnulib-tool (autoconf_minversion): Take the maximum version number
57006         found, not the minimum.  Problem reported by James Youngman.
57007
57008 2007-01-03  Karl Berry  <karl@gnu.org>
57009
57010         * doc/error.texi: new file, explaining interaction with progname.
57011         * doc/gnulib.texi: include it.  Update copyright.
57012
57013 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57014
57015         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57016         AC_CANONICAL_HOST, to improve autobuild outputs.
57017
57018 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57019             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57020
57021         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57022         sockets, server sockets, and other file descriptors.  Count errors
57023         to compute the return value.  Reorder the code a bit to be easier
57024         to follow.  Don't set event bits that were not requested (except
57025         POLLERR and POLLHUP).
57026
57027 2007-01-01  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57030
57031 2007-01-03  Jim Meyering  <jim@meyering.net>
57032
57033         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57034
57035 2007-01-02  Bruno Haible  <bruno@clisp.org>
57036
57037         * modules/settime (Include): Require timespec.h.
57038         * modules/nanosleep (Include): Likewise.
57039
57040 2007-01-01  Bruno Haible  <bruno@clisp.org>
57041
57042         * gnulib-tool (func_emit_copyright_notice): Bump year.
57043         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57044
57045 2007-01-01  Bruno Haible  <bruno@clisp.org>
57046
57047         Improve support for OpenBSD.
57048         * build-aux/config.rpath (libname_spec): Export.
57049         (library_names_spec): New variable. Export.
57050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
57051         library_names_spec from the config.rpath output. Locate shared library
57052         through the name pattern in library_names_spec.
57053
57054 2007-01-01  Eric Blake  <ebb9@byu.net>
57055
57056         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57057
57058 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57061         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57062         assume the C locale, and avoid an "eval" that could cause trouble.
57063         Problem with SORT reported by Bob Proulx.
57064
57065         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57066         Define.  Trivial patch from Henning Nielsen Lund, originally
57067         sent to bug-grep@gnu.org today.
57068
57069 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57070
57071         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57072         struct stat.  Problem reported by Henning Nielsen Lund.
57073         * lib/acl.c: Include acl.h first, to check interface.  Don't
57074         bother to include sys/types.h and sys/stat.h again.
57075
57076 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         Import the following change from libc; problem reported by
57079         Sven Verdoolaege.
57080
57081         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57082
57083         [BZ #1373]
57084         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57085
57086 2006-12-28  Jim Meyering  <jim@meyering.net>
57087
57088         * build-aux/announce-gen: Do not assume that the package
57089         builds any of tar.gz, tar.bz2, and .xdelta files.
57090         Suggestion from Simon Josefsson.
57091
57092 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57093
57094         * modules/announce-gen: New file.
57095
57096 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57097
57098         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57099         handles its gotchas now.
57100         * lib/mbswidth.c: Likewise.
57101         * lib/wcwidth.h: Likewise.
57102         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57103         and iswcntrl; the wctype module does this stuff now.
57104         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57106         * modules/mbchar (Depends-on): Add wctype.
57107         * modules/mbswidth (Depends-on): Likewise.
57108         * modules/wcwidth (Depends-on): Likewise.
57109
57110 2006-12-27  Eric Blake  <ebb9@byu.net>
57111
57112         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57113         module uses more than what <wctype.h> is required to provide.
57114
57115 2006-12-26  Eric Blake  <ebb9@byu.net>
57116
57117         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57118
57119 2006-12-26  Eric Blake  <ebb9@byu.net>
57120
57121         * modules/absolute-header: New module.
57122         * modules/fcntl (Depends-on): Depend on it.
57123         * modules/inttypes (Depends-on): Likewise.
57124         * modules/stdint (Depends-on): Likewise.
57125         * modules/sys_stat (Depends-on): Likewise.
57126         * modules/wctype (Depends-on): Likewise.
57127         * MODULES.html.sh (Support for building libraries and
57128         executables): Document it.
57129
57130 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57131
57132         * gnulib-tool (SED): Remove, undoing previous change.
57133         The problem was that it broke coreutils on Solaris, because
57134         "sed --posix" leaked into a makefile.
57135         (sed): New alias, if 'alias' and GNU sed.
57136
57137 2006-12-24  Jim Meyering  <jim@meyering.net>
57138
57139         Work around an fchownat bug in glibc-2.4:
57140         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57141         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57142         in spite of the -P option.
57143         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57144         New macros.
57145         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57146         * modules/openat (Files): Add lib/fchownat.c.
57147         * lib/openat.c (fchownat): Don't define here.  Move to...
57148         * lib/fchownat.c: ...this new file.
57149
57150 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57151
57152         Fix bug reported by Bruno Haible in
57153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57154         where quotearg.c didn't compile on Mac OS X 10.2 because it
57155         lacks <wchar.h> and wint_t.
57156         * lib/wctype_.h (__wctype_wint_t): New type.
57157         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57158         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57159         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57160         Arg is now of type __wctype_wint_t, not wint_t.
57161         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57162         substitute HAVE_WINT_T.
57163         * modules/wctype (Files): Add m4/wint_t.m4.
57164         (wctype.h): Substitute HAVE_WINT_T.
57165
57166 2006-12-23  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57169
57170 2006-12-23  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57173         S_ISLNK.
57174         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57175         mingw.
57176
57177 2006-12-22  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/copy-file.c: Include acl.h.
57180         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57181         Close the file descriptors only after being done with copy_acl.
57182         * modules/copy-file (Depends-on): Add acl.
57183
57184 2006-12-22  Bruno Haible  <bruno@clisp.org>
57185
57186         * gnulib-tool (SED): New variable.
57187         Use $SED instead of sed everywhere.
57188
57189 2006-12-22  Bruno Haible  <bruno@clisp.org>
57190
57191         * modules/no-c++: New file.
57192         * m4/no-c++.m4: New file.
57193         * MODULES.html.sh (Support for building libraries and executables):
57194         Add no-c++.
57195
57196 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57197
57198         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57199         Include <limits.h>, and use its INT_MAX to rewrite the
57200         j loop so that it does not overflow 'int'.  Problem reported by
57201         Ralf Wildenhues in
57202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57203         Play it safe by shifting left by 1 rather than multiplying by 2,
57204         as GCC is less likely to optimize this away when the value
57205         is signed (when it assumes overflow leads to undefined behavior).
57206         Also, don't assume time_t uses two's complement.
57207
57208 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57209
57210         * MODULES.html.sh: New module wctype.
57211         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57212         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57213         <wctype.h>, since the new wctype module should fix this.
57214         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57215         the wctype module should arrange for it.
57216         * lib/regex_internal.h: Likewise.
57217         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57218         since the wctype module should handle this now.
57219         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57220         * modules/fnmatch (Depends-on): Add wctype.
57221         * modules/quotearg (Depends-on): Likewise.
57222         * modules/regex (Depends-on): Likewise.
57223
57224 2006-12-19  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57227         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57228
57229 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57230
57231         * modules/savewd (Depends-on): Fix dependency on fcntl.
57232
57233 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57236         conforms to C99, rather than relying on the user's environment
57237         setting of STDINT_H.
57238
57239 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57240         and Eric Blake  <ebb9@byu.net>
57241
57242         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57243         This is more consistent with the other defines here.
57244         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57245         Port to z/OS.  Problem reported by Paul Gilmartin.
57246         Change local vars to use gl_ prefix rather than ac_.
57247         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57248         with other defines.
57249         * modules/double-slash-root: New module.
57250         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57251         (Depends-on): Add double-slash-root.
57252         * MODULES.html.sh (File system functions): Mention new module.
57253
57254 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57255
57256         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57257         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57258         This is for the benefit of gzip, which doesn't do i18n.
57259
57260 2006-12-12  Jim Meyering  <jim@meyering.net>
57261
57262         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57263         Reported by Andreas Schwab <schwab@suse.de>.
57264
57265 2006-12-12  Bruno Haible  <bruno@clisp.org>
57266
57267         Merge these changes.
57268         2006-09-05  Bruno Haible  <bruno@clisp.org>
57269         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57270         iconv_alloc succeeded.
57271         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57272         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57273         test for " && dest " at the end - dest is always != NULL there. Call
57274         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57275         with 2xNULL arguments, also to flush the state storage. Handle the
57276         IRIX iconv behaviour. Realloc the final result, to throw away unused
57277         memory.
57278
57279 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57282         and fchmodat unconditionally, since glibc 2.4 has them.
57283         Problem reported by Arkadiusz Miskiewicz.
57284
57285 2006-12-10  Bruno Haible  <bruno@clisp.org>
57286
57287         * gnulib-tool (func_import): Show the include files only for those
57288         modules that are copied and specified.
57289         Reported by Karl Berry.
57290
57291 2006-12-08  Jim Meyering  <jim@meyering.net>
57292
57293         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57294         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57295
57296         * build-aux/announce-gen: Add two new options, both optional:
57297         --bootstrap-tools=TOOL_LIST
57298               a comma-separated list of tools, e.g.,
57299               autoconf,automake,bison,gnulib
57300         --gnulib-snapshot-date=DATE
57301               if gnulib is in the bootstrap tool list,
57302               then report this as the snapshot date.
57303               If not specified, use the current date/time.
57304               If you specify a date here, be sure it's UTC.
57305
57306 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57307
57308         * tests/test-argp-2.sh: Fix test to match actual output.
57309         (func_compare): Fix sed script to be portable.
57310
57311 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57314         workaround for this case.  It is not autoconfigured now; offhand
57315         it's hard to see how to autoconfigure it.
57316
57317 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57318
57319         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57320         a directory that is about to be chowned.  Such a directory's
57321         initial file permissions should permit the owner only and this
57322         should not be changed until after the chown, since the group and
57323         other bits would be incorrect if they granted permission before
57324         the chown.
57325
57326         Fix porting problem for iswctype reported by Georg Schwarz in:
57327         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57328         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57329         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57331         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57332
57333 2006-12-03  Jim Meyering  <jim@meyering.net>
57334
57335         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57336         p->fts_statp may not yet be defined.
57337         (fts_read): Instead, set it in the caller, once p->fts_statp is
57338         sure to be defined, and corresponds to a top-level directory.
57339         This bug made du -x fail.  Here's the coreutils test case:
57340         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57341         Reported by Mike Frysinger.
57342
57343 2006-12-01  Jim Meyering  <jim@meyering.net>
57344
57345         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57346         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57347         Reported by Simon Josefsson.
57348
57349 2006-11-30  Jim Meyering  <jim@meyering.net>
57350
57351         * m4/warning.m4: Use the all-permissive copyright notice
57352         recommended by RMS (rather than LGPL).
57353         * m4/vararrays.m4: Likewise.
57354         * m4/flexmember.m4: Likewise.
57355
57356 2006-11-29  Bruno Haible  <bruno@clisp.org>
57357
57358         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57359         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57360         using +=.
57361         Reported by Simon Josefsson <simon@josefsson.org>.
57362
57363 2006-11-28  James Youngman <jay@gnu.org>
57364
57365         * README: Advise users that they might find the bug-gnulib@gnu.org
57366         and autotools-announce@gnu.org mailing lists useful.
57367
57368 2006-11-28  Bruno Haible  <bruno@clisp.org>
57369
57370         * m4/ptrdiff_max.m4: Remove file.
57371
57372 2006-11-21  Bruno Haible  <bruno@clisp.org>
57373
57374         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57375         _AC_COMPUTE_INT.
57376         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57377         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57378         _AC_COMPUTE_INT.
57379         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57380         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57381         _AC_COMPUTE_INT.
57382         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57383
57384 2006-11-28  Jim Meyering  <jim@meyering.net>
57385
57386         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57387         warning from "gcc -Wshadow" about shadowing the builtin.
57388
57389 2006-11-27  Bruno Haible  <bruno@clisp.org>
57390
57391         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57392         _AC_COMPUTE_INT.
57393         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57394
57395 2006-11-27  Bruno Haible  <bruno@clisp.org>
57396             Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57399
57400 2006-11-26  Bruno Haible  <bruno@clisp.org>
57401
57402         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57403         noinst_LTLIBRARIES.
57404
57405 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57406             Bruno Haible  <bruno@clisp.org>
57407
57408         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57409         if compiling with "gcc -ansi".
57410
57411 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         Fix some incompatibilities with gcc -ansi -pedantic.
57414         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57415         if compiling pedantically with GCC, unless it's C99 or later.
57416         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57417         it mishandles gcc -ansi -pedantic as well.
57418         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57419         if gcc -pedantic.
57420         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57421         initializers for struct if -pedantic, unless it's C99 or later.
57422
57423 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57424
57425         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57426         Don't close an fd more than once. Identical atimes indicate
57427         success, not failure.
57428
57429 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57430
57431         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57432
57433 2006-11-23  Jim Meyering  <jim@meyering.net>
57434
57435         * build-aux/announce-gen: New file.  From coreutils.
57436
57437 2006-11-22  Jim Meyering  <jim@meyering.net>
57438
57439         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57440         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57441         (fts_read): Use a temporary to narrow the overused st_size member
57442         before using it in a switch statement.  Reported by Matthew Woehlke.
57443
57444         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57445         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57446
57447 2006-11-20  Bruno Haible  <bruno@clisp.org>
57448
57449         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57450         changequote instead of pairs of brackets.
57451         Reported by Andreas Schwab <schwab@suse.de>.
57452
57453 2006-11-21  Jim Meyering  <jim@meyering.net>
57454
57455         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57456         so as to remain compatible with older compilers.
57457         Patch from Michael Deutschmann.
57458
57459 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         * MODULES.html.sh (File system functions): Add openat.
57462
57463         * lib/openat.h (rpl_fstatat): New macro, if
57464         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57465         (fstatat): Define to rpl_fstatat under the same conditions,
57466         unless COMPILING_FSTATAT.
57467         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57468         seems to have the bug.
57469         * lib/fstatat.c: New file.
57470         * modules/openat (Files): Add it.
57471
57472 2006-11-20  Bruno Haible  <bruno@clisp.org>
57473
57474         * Makefile: New file.
57475
57476 2006-11-20  Jim Meyering  <jim@meyering.net>
57477
57478         The beginnings of syntax-related checks for gnulib.
57479         * lib/Makefile: New file.
57480         * lib/t-idcache: New script.  Ensure that the two halves of
57481         idcache.c stay in sync.
57482
57483         * lib/idcache.c: Adjust comments in user- and group- portions to
57484         be more accurate, and to be consistent with one another.
57485
57486 2006-11-20  Jim Meyering  <jim@meyering.net>
57487
57488         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57489         continue using the flexible array member (thus, this module performs
57490         half as many malloc calls), with the addition that...
57491         (getgroup, getuser): Consistently record a non-match via an empty
57492         "name" string, and map an empty string match to a NULL return value.
57493         * modules/idcache (Depends-on): Re-add flexmember.
57494
57495         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57496         (getuidbyname, getgroup, getgidbyname): Likewise.
57497
57498         Use cleaner syntax: NULL rather than 0.
57499         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57500
57501 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57502
57503         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57504         It mishandled the case where the group was missing.
57505         Problem reported by Greg Schafer.
57506         * modules/idcache: Likewise.
57507
57508 2006-11-18  Jim Meyering  <jim@meyering.net>
57509
57510         * check-module (%exempt_header): Add exception for some
57511         conditionally-included headers.
57512
57513         * modules/i-ring (Depends-on): Add verify.
57514         (License): Change to LGPL.
57515
57516 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57517
57518         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57519         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57520         and inttostr.h.  Use snprintf rather than uinttostr, so that
57521         LGPLed code doesn't depend on GPLed.
57522
57523 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * modules/inline (License): Change from GPL to LGPL.
57526
57527 2006-11-17  Jim Meyering  <jim@meyering.net>
57528
57529         * modules/d-type (License): Switch to LGPL.
57530
57531 2006-11-15  Bruno Haible  <bruno@clisp.org>
57532
57533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57534
57535 2006-11-15  Eric Blake  <ebb9@byu.net>
57536
57537         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57538         the module dependency.
57539
57540 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57541             Bruno Haible  <bruno@clisp.org>
57542
57543         * gnulib-tool (func_create_testdir): Add license consistency check.
57544
57545 2006-11-15  Eric Blake  <ebb9@byu.net>
57546
57547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57548         random "(cached)" in configure output.
57549
57550 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57551
57552         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57553         test for conforming inttypes.h is both announced and cached.
57554
57555         * MODULES.html.sh (seen_modules, seen_files): New variables.
57556         (func_module): Rewrite to use a few less gnulib-tool and sed
57557         invocations.  Avoid a couple of quadratic algorithms for ...
57558         (missed_modules, missed_files): ... these, with ...
57559         (func_append, func_tmpdir): ... these new functions, from
57560         gnulib-tool.  Analogously, install traps for cleanup.
57561
57562         * tests/test-gc.c (main): Remove unused variables.
57563         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57564
57565 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57566
57567         * modules/inttostr (License): Change to LGPL.
57568
57569 2006-11-14  Eric Blake  <ebb9@byu.net>
57570
57571         * modules/tempname (License): Change to LGPL.
57572
57573 2006-11-14  Eric Blake  <ebb9@byu.net>
57574
57575         * doc/functions.texi (Function Portability): *printf functions on
57576         Cygwin now understand all POSIX size specifiers.
57577
57578 2006-11-14  Bruno Haible  <bruno@clisp.org>
57579
57580         * modules/c-ctype (License): Change to LGPL.
57581
57582 2006-11-12  Bruno Haible  <bruno@clisp.org>
57583
57584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57585         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57586         for GNOME libraries, for which the include files are installed in
57587         subdirectories of $prefix/include.
57588
57589 2006-11-12  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/lib-link.m4: Require at least autoconf-2.54.
57592         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57593         name to underscores for the --with option.
57594
57595 2006-11-13  Bruno Haible  <bruno@clisp.org>
57596
57597         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57598         the tests directory.
57599         Reported by Ralf Wildenhues.
57600
57601 2006-11-13  Bruno Haible  <bruno@clisp.org>
57602
57603         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57604         (func_emit_initmacro_end): Undo the override here.
57605         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57606         Works around the famous automake error in coreutils.
57607
57608 2006-11-13  Eric Blake  <ebb9@byu.net>
57609
57610         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57611         element, not its node.
57612
57613 2006-11-12  Bruno Haible  <bruno@clisp.org>
57614
57615         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57616         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57617
57618 2006-11-12  Bruno Haible  <bruno@clisp.org>
57619
57620         * gnulib-tool: New option --local-symlink.
57621         (func_usage): Document it.
57622         (lsymbolic): New variable.
57623         (func_import, func_create_testdir): If --symlink was not specified,
57624         test whether --local-symlink was specified and the file comes from
57625         the local_gnulib_dir.
57626
57627 2006-11-12  Bruno Haible  <bruno@clisp.org>
57628
57629         * gnulib-tool (func_ln): New function.
57630         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57631
57632 2006-11-12  Bruno Haible  <bruno@clisp.org>
57633
57634         Finish support for source files in subdirectories.
57635         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57636         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57637         AUTOMAKE_OPTIONS.
57638         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57639
57640 2006-11-12  Bruno Haible  <bruno@clisp.org>
57641
57642         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57643         EXTRA_lib_SOURCES augmentation.
57644         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57645
57646 2006-11-12  Jim Meyering  <jim@meyering.net>
57647
57648         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57649         file descriptors.  This also averts a failure on systems with
57650         native openat support when a traversed directory lacks "x" access.
57651         * lib/fts_.h: Include "i-ring.h"
57652         (struct FTS) [fts_fd_ring]: New member.
57653         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57654         (FCHDIR): Add parentheses.
57655         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57656         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57657         When descending, rather than simply closing the previous
57658         fts_cwd_fd value, push that file descriptor onto the ring.
57659         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57660         (fts_open): Initialize the new fd_ring member.
57661         (fts_close): Clear the ring.
57662         (fts_safe_changedir): When possible, use our new fd_ring to skip
57663         the diropen and fstat and dev/ino comparison that would normally
57664         accompany a virtual `chdir ("..")'.
57665
57666         * modules/fts (Depends-on): Add i-ring.
57667         * modules/i-ring: New module.
57668         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57669         * m4/i-ring.m4: New file.
57670
57671 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57672
57673         * gnulib-tool (func_create_testdir): Fix replacement of
57674         `build-aux' in configure.ac.  Run autotools in gltests
57675         subdirectory.
57676         (func_create_testdir, func_create_megatestdir, test): There is
57677         no need for '--force' in most autotool invocations in a new
57678         tree.  Actually fail the whole test if any of the tools, or the
57679         configure or make stages fail.
57680
57681         Sync from Automake.
57682         * build-aux/gnupload: Revert last change.  Add pointer to upload
57683         instructions of the GNU Maintenance Instructions.
57684         Suggestion by Karl Berry.
57685
57686 2006-11-10  Jim Meyering  <jim@meyering.net>
57687
57688         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57689
57690 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57693         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57694         (bind_textdomain_codeset) [! ENABLE_NLS]:
57695         Evaluate all the arguments.  That way, callers get compatible behavior
57696         if the arguments have side effects.  Also, it avoids some GCC
57697         diagnostics in some cases; Joel E. Denny reported problems when Bison
57698         was configured with --enable-gcc-warnigs.
57699
57700 2006-11-10  Jim Meyering  <jim@meyering.net>
57701
57702         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57703         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57704         account.
57705
57706 2006-11-10  Jim Meyering  <jim@meyering.net>
57707
57708         * modules/inline: New file/module.
57709         * modules/xalloc (Files): Remove m4/inline.m4.
57710         (Depends-on): Add inline, instead.
57711         * modules/oset: Likewise.
57712         * modules/list: Likewise.
57713
57714 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57715
57716         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57717         Problem reported by Matthew Woehlke.
57718
57719 2006-11-09  Bruno Haible  <bruno@clisp.org>
57720
57721         * lib/tempname.c (gen_tempname): Remove variant that invokes
57722         __gen_tempname.
57723         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57724         __gen_tempname.
57725
57726 2006-11-08  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57729         to 'yes' instead of 'cross-compiling'.
57730
57731 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/quotearg.h (quotearg_free): New decl.
57734         * lib/quotearg.c (quotearg_free): New function.
57735         (slot0, nslots, slotvec0, slotvec):
57736         Now file-scope so that quotearg_free can get at them.
57737
57738 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57739
57740         Sync from Automake.
57741         * build-aux/gnupload: Add missing 'gnu' to example URL.
57742         Report by Karl Berry.
57743
57744 2006-11-08  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57747         Suggested by Paul Eggert.
57748
57749 2006-11-08  Jim Meyering  <jim@meyering.net>
57750
57751         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57752         It's already included if !_LIBC.
57753         (fts_safe_changedir): Add a comment.
57754
57755 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57756
57757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57758         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57759         Matthew Woehlke.
57760
57761         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57762         definitions up, to avoid colliding with change below.
57763         (static_inline) [HAVE_INLINE]: New macro.
57764         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57765         Provide extern decls when !HAVE_INLINE.  Do not define unless
57766         static_inline is defined, either by us or by xmalloc.c.  Use
57767         static_inline rather than static inline.
57768         (XCALLOC): Optimize sizeof(T) = 1 case.
57769         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57770
57771 2006-11-07  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57775         AC_C_INLINE.
57776         * modules/xalloc (Files): Add m4/inline.m4.
57777
57778 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57779
57780         * README: Fix typo.
57781         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57782         (Miscellanous Notes): ...from this.
57783
57784 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57787         Mention that offsetof should be used instead of sizeof.
57788         From Bruno Haible.
57789
57790 2006-11-07  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57793
57794 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57795
57796         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57797         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57798         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57799         (gl_tree_add_before, gl_tree_add_after):
57800         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57801         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57802         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57803         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57804         (gl_linked_add_after, gl_linked_add_at): Likewise.
57805         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57806         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57807         (gl_tree_add_before, gl_tree_add_after): Likewise.
57808         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57809         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57810         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57811
57812 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57813
57814         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57815
57816 2006-11-06  Bruno Haible  <bruno@clisp.org>
57817
57818         * m4/inline.m4: New file.
57819         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57820         * modules/list (Files): Add m4/inline.m4.
57821         * modules/oset (Files): Likewise.
57822
57823 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57824
57825         * lib/idcache.c: Include <stddef.h>, for offsetof.
57826         (struct userid.name): Change from char * to a flexible array member.
57827         All uses changed.
57828         * modules/idcache (Depends-on): Add flexmember.
57829
57830         * MODULES.html.sh (Core language properties): New module flexmember.
57831         * modules/flexmember, m4/flexmember.m4: New files.
57832
57833         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57834         inline functions that are identical with the old xnmalloc_inline,
57835         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57836         that we can avoid some unnecessary integer multiplications and
57837         divisions in the common case where the element size is known at
57838         compile time.
57839         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57840         needed.
57841         (xnboundedmalloc): Remove.
57842         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57843         arguments, for consistency with rest of this header.
57844         (xcharalloc): Rewrite using XNMALLOC.
57845         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57846         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57847         versions have been moved to lib/xalloc.h and renamed to be the
57848         non-*_inline versions.
57849         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57850         and xnrealloc functions, since those functions are now inline and
57851         now call us.
57852         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57853         renaming described above.
57854         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57855         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57856         captures the dependency in AC_C_INLINE.
57857
57858         New module canonicalize-lgpl, proposed by Charles Wilson in
57859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57860         with a few small changes afterwards.
57861         * MODULES.html.sh (File system functions): New module
57862         canonicalize-lgpl.
57863         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57864         and canonicalize_file_name.
57865         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57866         * modules/canonicalize-lgpl: New files.
57867
57868 2006-11-05  Bruno Haible  <bruno@clisp.org>
57869
57870         * gnulib-tool (func_import, func_create_testdir): Create directories
57871         also for files in subdirectories of lib/.
57872
57873 2006-11-05  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57876         ANSI C compliant.
57877
57878 2006-11-03  Bruno Haible  <bruno@clisp.org>
57879
57880         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57881         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57882         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57883         (xnboundedmalloc): New inline function.
57884         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57885         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57886         xmalloc.
57887         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57888         xmalloc.
57889         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57890         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57891         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57892         xmalloc.
57893         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57894         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57895         xmalloc.
57896         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57897         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57898         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57899         xmalloc.
57900         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57901         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57902         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57903         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57904         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57905         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57906         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57907
57908 2006-11-03  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/c-ctype.h [C++]: Define functions without name mangling.
57911         * lib/fwriteerror.h [C++]: Likewise.
57912         * lib/gcd.h [C++]: Likewise.
57913         * lib/linebreak.h [C++]: Likewise.
57914
57915 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57918         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57919         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57921         Check for functions and headers just once.
57922         Check for declaration of canonicalize_file_name.
57923         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57924
57925 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57926
57927         * gnulib-tool (func_import): Fix typo in actioncmd.
57928
57929 2006-11-02  Bruno Haible  <bruno@clisp.org>
57930
57931         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57932         newline sequence in the Makefile.am snippet as a space, like "make"
57933         does.
57934         Reported by Roger Persson <perrog@gmail.com>.
57935
57936 2006-11-01  Bruno Haible  <bruno@clisp.org>
57937
57938         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57939         already declared in <string.h>.
57940         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57941
57942 2006-11-01  Bruno Haible  <bruno@clisp.org>
57943
57944         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57945         * lib/strcase.h: Include <string.h>.
57946         (strcasecmp): Define to rpl_strcasecmp here.
57947
57948 2006-11-01  Bruno Haible  <bruno@clisp.org>
57949
57950         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57951
57952 2006-11-01  Eric Blake  <ebb9@byu.net>
57953
57954         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57955
57956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57957
57958 2006-10-29  Bruno Haible  <bruno@clisp.org>
57959
57960         Make it compile in C++ mode.
57961         * lib/full-write.c (full_rw): Add a cast.
57962
57963 2006-11-01  Bruno Haible  <bruno@clisp.org>
57964
57965         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57966         be POSIX compliant.
57967         Reported by Roger Persson <perrog@gmail.com>.
57968
57969 2006-11-01  Eric Blake  <ebb9@byu.net>
57970
57971         * lib/getopt_.h: Fix comments.
57972
57973 2006-10-31  Eric Blake  <ebb9@byu.net>
57974
57975         * modules/tmpdir (Depends-on): Add sys_stat.
57976         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57977         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57978         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57979         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57980         tempname.
57981
57982 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         Avoid some C++ diagnostics reported by Bruno Haible.
57985         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57986         xmalloc.
57987         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57988         (struct slotvec): Move to top level.
57989         (quotearg_n_options): Rewrite to avoid xmalloc.
57990         * lib/xalloc.h (xcharalloc): New function.
57991         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57992         [defined __cplusplus]: Add function template that provides result
57993         type propagation.  This part of the change is from Bruno Haible.
57994
57995 2006-10-29  Bruno Haible  <bruno@clisp.org>
57996
57997         Make it compile in C++ mode.
57998         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57999         * lib/strnlen1.c (strnlen1): Cast memchr result.
58000         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58001         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58002         (create_temp_dir): Rename local variable 'template'.
58003         (compile_csharp_using_sscli): Add cast.
58004         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58005         * lib/findprog.c (find_in_path): Likewise.
58006         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58007         * lib/wait-process.c (register_slave_subprocess): Likewise.
58008
58009 2006-10-22  Bruno Haible  <bruno@clisp.org>
58010
58011         * modules/tsearch: New file.
58012         * lib/tsearch.h: New file.
58013         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58014         * m4/tsearch.m4: New file.
58015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58016
58017 2006-10-29  Eric Blake  <ebb9@byu.net>
58018
58019         * lib/arcfour.c: Assume config.h.
58020         * lib/arctwo.c: Likewise.
58021         * lib/base64.c: Likewise.
58022         * lib/check-version.c: Likewise.
58023         * lib/crc.c: Likewise.
58024         * lib/des.c: Likewise.
58025         * lib/gc-gnulib.c: Likewise.
58026         * lib/gc-libgcrypt.c: Likewise.
58027         * lib/gc-pbkdf2-sha1.c: Likewise.
58028         * lib/getaddrinfo.c: Likewise.
58029         * lib/getdelim.c: Likewise.
58030         * lib/getline.c: Likewise.
58031         * lib/hmac-md5.c: Likewise.
58032         * lib/hmac-sha1.c: Likewise.
58033         * lib/iconvme.c: Likewise.
58034         * lib/md2.c: Likewise.
58035         * lib/md4.c: Likewise.
58036         * lib/memxor.c: Likewise.
58037         * lib/read-file.c: Likewise.
58038         * lib/readline.c: Likewise.
58039         * lib/rijndael-alg-fst.c: Likewise.
58040         * lib/rijndael-api-fst.c: Likewise.
58041         * lib/xgetdomainname.c: Likewise.
58042
58043 2006-10-28  Eric Blake  <ebb9@byu.net>
58044
58045         * lib/xstrndup.c: Assume config.h.
58046
58047 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
58048
58049         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
58050         stat-macros.h is now for our own macros, whereas stat_h is for
58051         macros in the <sys/stat.h> name space.
58052         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
58053         (STAT_MACROS_H): Remove.
58054         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58055         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58056         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58057         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58058         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58059         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58060         Move these macros to ...
58061         * lib/stat_.h: here.  Don't include stat-macros.h.
58062         * lib/canonicalize.c: Don't include stat-macros.h.
58063         * lib/chown.c: Likewise.
58064         * lib/euidaccess.c: Likewise.
58065         * lib/file-type.c: Likewise.
58066         * lib/filemode.c: Likewise.
58067         * lib/glob.c: Likewise.
58068         * lib/isapipe.c: Likewise.
58069         * lib/lchown.c: Likewise.
58070         * lib/lstat.c: Likewise.
58071         * lib/mkdir-p.c: Likewise.
58072         * lib/rmdir.c: Likewise.
58073         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58075         unless mkdir isn't declared, to speed up 'configure'.
58076         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58077         would define all the S_* symbols.
58078         * modules/canonicalize (Depends-on):
58079         Depend on sys_stat, not stat-macros.
58080         * modules/chown: Likewise.
58081         * modules/euidaccess: Likewise.
58082         * modules/filemode: Likewise.
58083         * modules/file-type: Likewise.
58084         * modules/glob: Likewise.
58085         * modules/isapipe: Likewise.
58086         * modules/lchown: Likewise.
58087         * modules/lstat: Likewise.
58088         * modules/mkancesdirs: Likewise.
58089         * modules/rmdir: Likewise.
58090         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58091         * modules/modechange: Likewise.
58092         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58093         (configure.ac): Remove gl_STAT_MACROS.
58094         * modules/sys_stat (Depends-on): Remove stat-macros.
58095
58096 2006-10-27  Bruno Haible  <bruno@clisp.org>
58097
58098         * m4/signed.m4: Remove file.
58099         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58100         invocation.
58101         * modules/vasnprintf (Files): Remove m4/signed.m4.
58102
58103 2006-10-27  Bruno Haible  <bruno@clisp.org>
58104
58105         Update to GNU gettext 0.16.
58106         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58107         m4/inttypes-h.m4, m4/signed.m4.
58108         * m4/gettext.m4: Update to GNU gettext 0.16.
58109         * m4/intl.m4: New file, from GNU gettext.
58110         * m4/intldir.m4: New file, from GNU gettext.
58111         * config/srclist.txt: Update
58112
58113 2006-10-27  Eric Blake  <ebb9@byu.net>
58114
58115         * MODULES.html.sh: Document tempname.
58116         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58117         dependencies.
58118         (Files): Move lib/tempname.c...
58119         * modules/tempname: ...to this new module.
58120         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58121         (gl_PREREQ_TEMPNAME): Move...
58122         * m4/tempname.m4: ...to this new file.
58123         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58124         * modules/sys_stat (Depends-on): Add stat-macros.
58125         * lib/stat_.h (includes): Pick up stat macros.
58126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58127         if stat macros are broken.
58128         * lib/tempname.c (includes): No need to include "stat-macros.h".
58129         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58130         (direxists, __path_search) [!_LIBC]: Don't compile these in
58131         gnulib; the tmpdir module covers that.
58132         * lib/tempname.h: New file.
58133
58134 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         * COPYING: Explain how gnulib-tool converts licence headers.
58137         Almost all wording by Eric Blake.
58138
58139 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         * lib/mbchar.h (is_basic_table): Make read-only.
58142         * lib/mbchar.c (is_basic_table): Likewise.
58143         Reported by John Darrington.
58144
58145 2006-10-25  Bruno Haible  <bruno@clisp.org>
58146
58147         * lib/progname.h (set_program_name): Undefine before defining.
58148
58149 2006-10-25  Bruno Haible  <bruno@clisp.org>
58150
58151         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58152         false for non-gcc C++ compilers.
58153         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58154
58155 2006-10-24  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58158         iconv implementations like Irix iconv.
58159
58160 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58161
58162         * modules/vararrays: New file.
58163         * m4/vararrays.m4: New file, taken from diffutils.
58164         * MODULES.html.sh: New module vararrays.
58165
58166 2006-10-24  Karl Berry  <karl@gnu.org>
58167
58168         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58169         Don't call GNU Unix.
58170
58171 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58172
58173         * users.txt: Add Libtool.
58174
58175         Sync from Libtool:
58176
58177         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58180         to gnulib's policy of including config.h unconditionally.
58181
58182 2006-10-24  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/wcwidth (Files): Add m4/wint_t.m4.
58185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58186         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58187
58188 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58191         to pacify GCC with some -W flags enabled.  Problem reported by
58192         Bruno Haible.
58193
58194 2006-10-24  Jim Meyering  <jim@meyering.net>
58195
58196         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58197         Reported by Karl Berry.
58198
58199 2006-10-23  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58202
58203 2006-10-24  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/gl_list.h: Use C comment style, not C++ comment style.
58206
58207 2006-10-23  Eric Blake  <ebb9@byu.net>
58208
58209         * lib/getaddrinfo.c (includes): Add missing include.
58210
58211 2006-10-23  Bruno Haible  <bruno@clisp.org>
58212             Paul Eggert  <eggert@cs.ucla.edu>
58213
58214         Ability to rename obstack_free.
58215         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58216         obstack_free.
58217         (obstack_free): Invoke the __obstack_free macro.
58218         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58219
58220 2006-10-23  Bruno Haible  <bruno@clisp.org>
58221             Paul Eggert  <eggert@cs.ucla.edu>
58222
58223         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58224         __argc, __argv from the declaration. (They are defined as macros on
58225         mingw.)
58226
58227 2006-10-22  Bruno Haible  <bruno@clisp.org>
58228
58229         * doc/gnulib-intro.texi: New file.
58230         * doc/gnulib.texi: Include it.
58231
58232 2006-10-21  Bruno Haible  <bruno@clisp.org>
58233
58234         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58235         "Introduction", "Miscellanous Notes", "Particular Modules".
58236
58237 2006-10-21  Bruno Haible  <bruno@clisp.org>
58238
58239         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58240         Change mostlyclean-local rule to avoid sh syntax error from bash
58241         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58242
58243 2006-10-23  Jim Meyering  <jim@meyering.net>
58244
58245         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58246         in place of snprintf.
58247
58248         * modules/inttostr (Files): Add lib/uinttostr.c.
58249         * lib/uinttostr.c (inttostr): New file/function.
58250         * lib/inttostr.h (uinttostr): Declare.
58251         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58252         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58253         Add uinttostr.
58254         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58255
58256 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58257
58258         * lib/canonicalize.c (ELOOP): Define if not already defined.
58259         Problem reported by Bruno Haible in
58260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58261
58262 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58263
58264         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58265         Problem reported by Perry Smith and Ville Laurikari.
58266
58267         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58268         uses.
58269
58270 2006-10-19  Bruno Haible  <bruno@clisp.org>
58271
58272         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58273         for mingw.
58274
58275 2006-10-19  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58278         Needed for mingw.
58279
58280 2006-10-19  Bruno Haible  <bruno@clisp.org>
58281
58282         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58283
58284 2006-10-19  Bruno Haible  <bruno@clisp.org>
58285
58286         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58287         it.
58288
58289 2006-10-19  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58292         invocation.
58293
58294 2006-10-19  Bruno Haible  <bruno@clisp.org>
58295
58296         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58297         mountlist by default.
58298
58299 2006-10-16  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/c-strstr.c: Include c-strstr.h.
58302
58303 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58304
58305         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58306         in a slash.
58307
58308 2006-10-18  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/lock.h [C++]: Wrap definitions in extern "C".
58311
58312 2006-10-18  Bruno Haible  <bruno@clisp.org>
58313
58314         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58315         gl_LIBOBJS list.
58316
58317 2006-10-18  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58320
58321 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58322
58323         * lib/xstrtol.h: Include gettext.h.
58324         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58325         Problem reported by Eric Blake.
58326         * modules/xstrtol (Depends-on): Add gettext-h.
58327
58328 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58329
58330         * lib/strftime.c (advance): New macro.
58331         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58332         incomplete type, so you can't add 0 to it.  Problem and patch
58333         reported by Eelco Dolstra for dietlibc.
58334
58335 2006-10-18  Jim Meyering  <jim@meyering.net>
58336
58337         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58338         type for a local, and rename it: s/up/user_proc/.
58339
58340 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58341
58342         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58343         READ_UTMP_USER_PROCESS.
58344         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58345
58346 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58349         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58350
58351 2006-10-17  Eric Blake  <ebb9@byu.net>
58352
58353         * lib/sigprocmask.c (sigprocmask): Fix typo.
58354
58355         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58356
58357         * modules/clean-temp (Makefile.am): Don't add to make output...
58358         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58359         config.h.
58360
58361 2006-10-17  Bruno Haible  <bruno@clisp.org>
58362
58363         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58364         differently if DEFAULT_TEXT_DOMAIN is set.
58365
58366 2006-10-16  Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/clean-temp.c: Include fwriteerror.h.
58369
58370 2006-10-16  Bruno Haible  <bruno@clisp.org>
58371
58372         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58373
58374 2006-10-16  Bruno Haible  <bruno@clisp.org>
58375
58376         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58377         * lib/sigprocmask.h: Include <sys/types.h>.
58378         (sigset_t): Use the system's definition if present.
58379
58380 2006-10-17  Eric Blake  <ebb9@byu.net>
58381
58382         * lib/xvasprintf.c (includes): Assume config.h.
58383         * lib/xasprintf.c (includes): Likewise.
58384
58385 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58386
58387         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58388         at least as wide as intmax_t.
58389
58390 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58391
58392         (Imported from Automake.)
58393         * build-aux/gnupload: Update to version 1.1 of directive file.
58394
58395 2006-10-16  Eric Blake  <ebb9@byu.net>
58396
58397         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58398         match Automake 1.10a.
58399
58400 2006-10-14  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/sigprocmask: New file.
58403         * lib/sigprocmask.h: New file.
58404         * lib/sigprocmask.c: New file.
58405         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58406         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58407         request sigprocmask.o.
58408         (gl_PREREQ_SIGPROCMASK): New macro.
58409         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58410         (Depends-on): Add sigprocmask.
58411         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58412         gt_SIGNALBLOCKING. Test for 'raise' only once.
58413         * lib/fatal-signal.c: Include sigprocmask.h.
58414         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58415         unblock_fatal_signals): Define always.
58416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58417         sigprocmask.
58418
58419 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         Sync from Automake.
58422         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58423         which incorrectly sets the mode of an existing destination
58424         directory.  In some cases the unpatched install-sh could do the
58425         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58426         system.  We hope this is rare in practice, but it's clearly worth
58427         fixing.  Problem reported by Alex Unleashed in
58428         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58429         Also, don't bother to check for -m bugs unless we're using -m;
58430         suggested by Stepan Kasal.
58431
58432 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58433
58434         Sync from Automake.
58435         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58436         `-c' flag, so they appear at the same position as in %FASTDEP%
58437         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58438         which ignores unknown options only after the first non-option.
58439         Bug report against M4 by Nelson H. F. Beebe.
58440
58441 2006-10-13  Jim Meyering  <jim@meyering.net>
58442
58443         Fix a bug in yesterday's change.
58444         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58445         p->fts_statp->st_dev would be used uninitialized.
58446         Ensures that we always call fts_stat on the very first entry.
58447         Miklos Szeredi reported that find -xdev stopped working.
58448
58449 2006-10-12  Bruno Haible  <bruno@clisp.org>
58450
58451         * gnulib-tool (func_get_automake_snippet): Append an automatically
58452         computed EXTRA_DIST augmentation.
58453         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58454         * modules/alloca-opt (Makefile.am): Likewise.
58455         * modules/allocsa (Makefile.am): Likewise.
58456         * modules/arcfour (Makefile.am): Likewise.
58457         * modules/arctwo (Makefile.am): Likewise.
58458         * modules/argmatch (Makefile.am): Likewise.
58459         * modules/argz (Makefile.am): Likewise.
58460         * modules/atexit (Makefile.am): Likewise.
58461         * modules/backupfile (Makefile.am): Likewise.
58462         * modules/byteswap (Makefile.am): Likewise.
58463         * modules/c-strtod (Makefile.am): Likewise.
58464         * modules/c-strtold (Makefile.am): Likewise.
58465         * modules/calloc (Makefile.am): Likewise.
58466         * modules/canon-host (Makefile.am): Likewise.
58467         * modules/canonicalize (Makefile.am): Likewise.
58468         * modules/chdir-long (Makefile.am): Likewise.
58469         * modules/chdir-safer (Makefile.am): Likewise.
58470         * modules/check-version (Makefile.am): Likewise.
58471         * modules/chown (Makefile.am): Likewise.
58472         * modules/cloexec (Makefile.am): Likewise.
58473         * modules/close-stream (Makefile.am): Likewise.
58474         * modules/closeout (Makefile.am): Likewise.
58475         * modules/crc (Makefile.am): Likewise.
58476         * modules/csharpexec (Makefile.am): Likewise.
58477         * modules/cycle-check (Makefile.am): Likewise.
58478         * modules/des (Makefile.am): Likewise.
58479         * modules/dev-ino (Makefile.am): Likewise.
58480         * modules/dirfd (Makefile.am): Likewise.
58481         * modules/dirname (Makefile.am): Likewise.
58482         * modules/dup2 (Makefile.am): Likewise.
58483         * modules/eealloc (Makefile.am): Likewise.
58484         * modules/error (Makefile.am): Likewise.
58485         * modules/euidaccess (Makefile.am): Likewise.
58486         * modules/exclude (Makefile.am): Likewise.
58487         * modules/exitfail (Makefile.am): Likewise.
58488         * modules/fcntl-safer (Makefile.am): Likewise.
58489         * modules/fcntl (Makefile.am): Likewise.
58490         * modules/file-type (Makefile.am): Likewise.
58491         * modules/fileblocks (Makefile.am): Likewise.
58492         * modules/filemode (Makefile.am): Likewise.
58493         * modules/filenamecat (Makefile.am): Likewise.
58494         * modules/fnmatch (Makefile.am): Likewise.
58495         * modules/fopen-safer (Makefile.am): Likewise.
58496         * modules/fpending (Makefile.am): Likewise.
58497         * modules/fprintftime (Makefile.am): Likewise.
58498         * modules/free (Makefile.am): Likewise.
58499         * modules/fsusage (Makefile.am): Likewise.
58500         * modules/ftruncate (Makefile.am): Likewise.
58501         * modules/fts (Makefile.am): Likewise.
58502         * modules/gc-arcfour (Makefile.am): Likewise.
58503         * modules/gc-des (Makefile.am): Likewise.
58504         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58505         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58506         * modules/gc-md4 (Makefile.am): Likewise.
58507         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58508         * modules/gc-sha1 (Makefile.am): Likewise.
58509         * modules/gc (Makefile.am): Likewise.
58510         * modules/getaddrinfo (Makefile.am): Likewise.
58511         * modules/getcwd (Makefile.am): Likewise.
58512         * modules/getdelim (Makefile.am): Likewise.
58513         * modules/getdomainname (Makefile.am): Likewise.
58514         * modules/getgroups (Makefile.am): Likewise.
58515         * modules/gethostname (Makefile.am): Likewise.
58516         * modules/gethrxtime (Makefile.am): Likewise.
58517         * modules/getline (Makefile.am): Likewise.
58518         * modules/getloadavg (Makefile.am): Likewise.
58519         * modules/getlogin_r (Makefile.am): Likewise.
58520         * modules/getndelim2 (Makefile.am): Likewise.
58521         * modules/getopt (Makefile.am): Likewise.
58522         * modules/getpagesize (Makefile.am): Likewise.
58523         * modules/getpass-gnu (Makefile.am): Likewise.
58524         * modules/getpass (Makefile.am): Likewise.
58525         * modules/getsubopt (Makefile.am): Likewise.
58526         * modules/gettime (Makefile.am): Likewise.
58527         * modules/gettimeofday (Makefile.am): Likewise.
58528         * modules/getugroups (Makefile.am): Likewise.
58529         * modules/getusershell (Makefile.am): Likewise.
58530         * modules/glob (Makefile.am): Likewise.
58531         * modules/group-member (Makefile.am): Likewise.
58532         * modules/hard-locale (Makefile.am): Likewise.
58533         * modules/hash (Makefile.am): Likewise.
58534         * modules/hmac-md5 (Makefile.am): Likewise.
58535         * modules/hmac-sha1 (Makefile.am): Likewise.
58536         * modules/human (Makefile.am): Likewise.
58537         * modules/idcache (Makefile.am): Likewise.
58538         * modules/imaxabs (Makefile.am): Likewise.
58539         * modules/imaxdiv (Makefile.am): Likewise.
58540         * modules/inet_ntop (Makefile.am): Likewise.
58541         * modules/inet_pton (Makefile.am): Likewise.
58542         * modules/intprops (Makefile.am): Likewise.
58543         * modules/inttostr (Makefile.am): Likewise.
58544         * modules/inttypes (Makefile.am): Likewise.
58545         * modules/isapipe (Makefile.am): Likewise.
58546         * modules/javaversion (Makefile.am): Likewise.
58547         * modules/lchmod (Makefile.am): Likewise.
58548         * modules/lchown (Makefile.am): Likewise.
58549         * modules/localcharset (Makefile.am): Likewise.
58550         * modules/long-options (Makefile.am): Likewise.
58551         * modules/lstat (Makefile.am): Likewise.
58552         * modules/malloc (Makefile.am): Likewise.
58553         * modules/mathl (Makefile.am): Likewise.
58554         * modules/mbchar (Makefile.am): Likewise.
58555         * modules/md2 (Makefile.am): Likewise.
58556         * modules/md4 (Makefile.am): Likewise.
58557         * modules/md5 (Makefile.am): Likewise.
58558         * modules/memcasecmp (Makefile.am): Likewise.
58559         * modules/memchr (Makefile.am): Likewise.
58560         * modules/memcmp (Makefile.am): Likewise.
58561         * modules/memcoll (Makefile.am): Likewise.
58562         * modules/memcpy (Makefile.am): Likewise.
58563         * modules/memmem (Makefile.am): Likewise.
58564         * modules/memmove (Makefile.am): Likewise.
58565         * modules/mempcpy (Makefile.am): Likewise.
58566         * modules/memrchr (Makefile.am): Likewise.
58567         * modules/memset (Makefile.am): Likewise.
58568         * modules/memxor (Makefile.am): Likewise.
58569         * modules/mkancesdirs (Makefile.am): Likewise.
58570         * modules/mkdir-p (Makefile.am): Likewise.
58571         * modules/mkdir (Makefile.am): Likewise.
58572         * modules/mkdtemp (Makefile.am): Likewise.
58573         * modules/mkstemp (Makefile.am): Likewise.
58574         * modules/mktime (Makefile.am): Likewise.
58575         * modules/modechange (Makefile.am): Likewise.
58576         * modules/mountlist (Makefile.am): Likewise.
58577         * modules/nanosleep (Makefile.am): Likewise.
58578         * modules/obstack (Makefile.am): Likewise.
58579         * modules/openat (Makefile.am): Likewise.
58580         * modules/pagealign_alloc (Makefile.am): Likewise.
58581         * modules/pathmax (Makefile.am): Likewise.
58582         * modules/physmem (Makefile.am): Likewise.
58583         * modules/poll (Makefile.am): Likewise.
58584         * modules/posixtm (Makefile.am): Likewise.
58585         * modules/posixver (Makefile.am): Likewise.
58586         * modules/putenv (Makefile.am): Likewise.
58587         * modules/quote (Makefile.am): Likewise.
58588         * modules/quotearg (Makefile.am): Likewise.
58589         * modules/raise (Makefile.am): Likewise.
58590         * modules/read-file (Makefile.am): Likewise.
58591         * modules/readline (Makefile.am): Likewise.
58592         * modules/readlink (Makefile.am): Likewise.
58593         * modules/readtokens (Makefile.am): Likewise.
58594         * modules/readutmp (Makefile.am): Likewise.
58595         * modules/realloc (Makefile.am): Likewise.
58596         * modules/regex (Makefile.am): Likewise.
58597         * modules/rename-dest-slash (Makefile.am): Likewise.
58598         * modules/rename (Makefile.am): Likewise.
58599         * modules/rijndael (Makefile.am): Likewise.
58600         * modules/rmdir (Makefile.am): Likewise.
58601         * modules/rpmatch (Makefile.am): Likewise.
58602         * modules/safe-read (Makefile.am): Likewise.
58603         * modules/safe-write (Makefile.am): Likewise.
58604         * modules/same-inode (Makefile.am): Likewise.
58605         * modules/same (Makefile.am): Likewise.
58606         * modules/save-cwd (Makefile.am): Likewise.
58607         * modules/savedir (Makefile.am): Likewise.
58608         * modules/setenv (Makefile.am): Likewise.
58609         * modules/settime (Makefile.am): Likewise.
58610         * modules/sha1 (Makefile.am): Likewise.
58611         * modules/sig2str (Makefile.am): Likewise.
58612         * modules/snprintf (Makefile.am): Likewise.
58613         * modules/stat-macros (Makefile.am): Likewise.
58614         * modules/stat-time (Makefile.am): Likewise.
58615         * modules/stdbool (Makefile.am): Likewise.
58616         * modules/stdint (Makefile.am): Likewise.
58617         * modules/stdlib-safer (Makefile.am): Likewise.
58618         * modules/stpcpy (Makefile.am): Likewise.
58619         * modules/stpncpy (Makefile.am): Likewise.
58620         * modules/strcase (Makefile.am): Likewise.
58621         * modules/strcasestr (Makefile.am): Likewise.
58622         * modules/strchrnul (Makefile.am): Likewise.
58623         * modules/strcspn (Makefile.am): Likewise.
58624         * modules/strdup (Makefile.am): Likewise.
58625         * modules/strerror (Makefile.am): Likewise.
58626         * modules/strftime (Makefile.am): Likewise.
58627         * modules/strndup (Makefile.am): Likewise.
58628         * modules/strnlen (Makefile.am): Likewise.
58629         * modules/strpbrk (Makefile.am): Likewise.
58630         * modules/strsep (Makefile.am): Likewise.
58631         * modules/strstr (Makefile.am): Likewise.
58632         * modules/strtod (Makefile.am): Likewise.
58633         * modules/strtoimax (Makefile.am): Likewise.
58634         * modules/strtok_r (Makefile.am): Likewise.
58635         * modules/strtol (Makefile.am): Likewise.
58636         * modules/strtoll (Makefile.am): Likewise.
58637         * modules/strtoul (Makefile.am): Likewise.
58638         * modules/strtoull (Makefile.am): Likewise.
58639         * modules/strtoumax (Makefile.am): Likewise.
58640         * modules/strverscmp (Makefile.am): Likewise.
58641         * modules/sys_socket (Makefile.am): Likewise.
58642         * modules/sys_stat (Makefile.am): Likewise.
58643         * modules/sysexits (Makefile.am): Likewise.
58644         * modules/time_r (Makefile.am): Likewise.
58645         * modules/timegm (Makefile.am): Likewise.
58646         * modules/timespec (Makefile.am): Likewise.
58647         * modules/tmpfile-safer (Makefile.am): Likewise.
58648         * modules/trim (Makefile.am): Likewise.
58649         * modules/unistd-safer (Makefile.am): Likewise.
58650         * modules/unlinkdir (Makefile.am): Likewise.
58651         * modules/unlocked-io (Makefile.am): Likewise.
58652         * modules/userspec (Makefile.am): Likewise.
58653         * modules/utime (Makefile.am): Likewise.
58654         * modules/utimecmp (Makefile.am): Likewise.
58655         * modules/utimens (Makefile.am): Likewise.
58656         * modules/vasnprintf (Makefile.am): Likewise.
58657         * modules/vasprintf (Makefile.am): Likewise.
58658         * modules/vsnprintf (Makefile.am): Likewise.
58659         * modules/xalloc (Makefile.am): Likewise.
58660         * modules/xgetcwd (Makefile.am): Likewise.
58661         * modules/xnanosleep (Makefile.am): Likewise.
58662         * modules/xreadlink (Makefile.am): Likewise.
58663         * modules/xstrtod (Makefile.am): Likewise.
58664         * modules/xstrtol (Makefile.am): Likewise.
58665         * modules/xstrtold (Makefile.am): Likewise.
58666         * modules/yesno (Makefile.am): Likewise.
58667         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58668
58669 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58670
58671         * modules/error (Makefile.am): Distribute files through
58672         EXTRA_DIST, not lib_SOURCES.
58673
58674 2006-10-12  Eric Blake  <ebb9@byu.net>
58675
58676         * modules/error (Makefile.am): Distribute files in /lib.
58677         * modules/obstack (Makefile.am): Likewise.
58678
58679 2006-10-12  Bruno Haible  <bruno@clisp.org>
58680
58681         * modules/acl (Makefile.am): Distribute all files in lib/ through
58682         EXTRA_DIST.
58683         * modules/arcfour (Makefile.am): Likewise.
58684         * modules/arctwo (Makefile.am): Likewise.
58685         * modules/argmatch (Makefile.am): Likewise.
58686         * modules/argz (Makefile.am): Likewise.
58687         * modules/atexit (Makefile.am): Likewise.
58688         * modules/backupfile (Makefile.am): Likewise.
58689         * modules/c-strtod (Makefile.am): Likewise.
58690         * modules/c-strtold (Makefile.am): Likewise.
58691         * modules/calloc (Makefile.am): Likewise.
58692         * modules/canon-host (Makefile.am): Likewise.
58693         * modules/canonicalize (Makefile.am): Likewise.
58694         * modules/chdir-long (Makefile.am): Likewise.
58695         * modules/chdir-safer (Makefile.am): Likewise.
58696         * modules/check-version (Makefile.am): Likewise.
58697         * modules/chown (Makefile.am): Likewise.
58698         * modules/cloexec (Makefile.am): Likewise.
58699         * modules/close-stream (Makefile.am): Likewise.
58700         * modules/closeout (Makefile.am): Likewise.
58701         * modules/crc (Makefile.am): Likewise.
58702         * modules/cycle-check (Makefile.am): Likewise.
58703         * modules/des (Makefile.am): Likewise.
58704         * modules/dirfd (Makefile.am): Likewise.
58705         * modules/dirname (Makefile.am): Likewise.
58706         * modules/dup2 (Makefile.am): Likewise.
58707         * modules/euidaccess (Makefile.am): Likewise.
58708         * modules/exclude (Makefile.am): Likewise.
58709         * modules/exitfail (Makefile.am): Likewise.
58710         * modules/fcntl-safer (Makefile.am): Likewise.
58711         * modules/file-type (Makefile.am): Likewise.
58712         * modules/fileblocks (Makefile.am): Likewise.
58713         * modules/filemode (Makefile.am): Likewise.
58714         * modules/filenamecat (Makefile.am): Likewise.
58715         * modules/fnmatch (Makefile.am): Likewise.
58716         * modules/fopen-safer (Makefile.am): Likewise.
58717         * modules/fpending (Makefile.am): Likewise.
58718         * modules/fprintftime (Makefile.am): Likewise.
58719         * modules/free (Makefile.am): Likewise.
58720         * modules/fsusage (Makefile.am): Likewise.
58721         * modules/ftruncate (Makefile.am): Likewise.
58722         * modules/fts (Makefile.am): Likewise.
58723         * modules/gc (Makefile.am): Likewise.
58724         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58725         * modules/getaddrinfo (Makefile.am): Likewise.
58726         * modules/getcwd (Makefile.am): Likewise.
58727         * modules/getdelim (Makefile.am): Likewise.
58728         * modules/getdomainname (Makefile.am): Likewise.
58729         * modules/getgroups (Makefile.am): Likewise.
58730         * modules/gethostname (Makefile.am): Likewise.
58731         * modules/gethrxtime (Makefile.am): Likewise.
58732         * modules/getline (Makefile.am): Likewise.
58733         * modules/getloadavg (Makefile.am): Likewise.
58734         * modules/getlogin_r (Makefile.am): Likewise.
58735         * modules/getopt (Makefile.am): Likewise.
58736         * modules/getpass (Makefile.am): Likewise.
58737         * modules/getpass-gnu (Makefile.am): Likewise.
58738         * modules/getsubopt (Makefile.am): Likewise.
58739         * modules/gettime (Makefile.am): Likewise.
58740         * modules/gettimeofday (Makefile.am): Likewise.
58741         * modules/getugroups (Makefile.am): Likewise.
58742         * modules/getusershell (Makefile.am): Likewise.
58743         * modules/glob (Makefile.am): Likewise.
58744         * modules/group-member (Makefile.am): Likewise.
58745         * modules/hard-locale (Makefile.am): Likewise.
58746         * modules/hash (Makefile.am): Likewise.
58747         * modules/hmac-md5 (Makefile.am): Likewise.
58748         * modules/hmac-sha1 (Makefile.am): Likewise.
58749         * modules/human (Makefile.am): Likewise.
58750         * modules/idcache (Makefile.am): Likewise.
58751         * modules/imaxabs (Makefile.am): Likewise.
58752         * modules/imaxdiv (Makefile.am): Likewise.
58753         * modules/inet_ntop (Makefile.am): Likewise.
58754         * modules/inet_pton (Makefile.am): Likewise.
58755         * modules/inttostr (Makefile.am): Likewise.
58756         * modules/isapipe (Makefile.am): Likewise.
58757         * modules/lchown (Makefile.am): Likewise.
58758         * modules/long-options (Makefile.am): Likewise.
58759         * modules/lstat (Makefile.am): Likewise.
58760         * modules/malloc (Makefile.am): Likewise.
58761         * modules/mathl (Makefile.am): Likewise.
58762         * modules/mbchar (Makefile.am): Likewise.
58763         * modules/md2 (Makefile.am): Likewise.
58764         * modules/md4 (Makefile.am): Likewise.
58765         * modules/md5 (Makefile.am): Likewise.
58766         * modules/memcasecmp (Makefile.am): Likewise.
58767         * modules/memchr (Makefile.am): Likewise.
58768         * modules/memcmp (Makefile.am): Likewise.
58769         * modules/memcoll (Makefile.am): Likewise.
58770         * modules/memcpy (Makefile.am): Likewise.
58771         * modules/memmem (Makefile.am): Likewise.
58772         * modules/memmove (Makefile.am): Likewise.
58773         * modules/mempcpy (Makefile.am): Likewise.
58774         * modules/memrchr (Makefile.am): Likewise.
58775         * modules/memset (Makefile.am): Likewise.
58776         * modules/memxor (Makefile.am): Likewise.
58777         * modules/mkancesdirs (Makefile.am): Likewise.
58778         * modules/mkdir (Makefile.am): Likewise.
58779         * modules/mkdir-p (Makefile.am): Likewise.
58780         * modules/mkdtemp (Makefile.am): Likewise.
58781         * modules/mkstemp (Makefile.am): Likewise.
58782         * modules/mktime (Makefile.am): Likewise.
58783         * modules/modechange (Makefile.am): Likewise.
58784         * modules/mountlist (Makefile.am): Likewise.
58785         * modules/nanosleep (Makefile.am): Likewise.
58786         * modules/openat (Makefile.am): Likewise.
58787         * modules/pagealign_alloc (Makefile.am): Likewise.
58788         * modules/physmem (Makefile.am): Likewise.
58789         * modules/poll (Makefile.am): Likewise.
58790         * modules/posixtm (Makefile.am): Likewise.
58791         * modules/posixver (Makefile.am): Likewise.
58792         * modules/putenv (Makefile.am): Likewise.
58793         * modules/quote (Makefile.am): Likewise.
58794         * modules/quotearg (Makefile.am): Likewise.
58795         * modules/raise (Makefile.am): Likewise.
58796         * modules/read-file (Makefile.am): Likewise.
58797         * modules/readline (Makefile.am): Likewise.
58798         * modules/readlink (Makefile.am): Likewise.
58799         * modules/readtokens (Makefile.am): Likewise.
58800         * modules/readutmp (Makefile.am): Likewise.
58801         * modules/realloc (Makefile.am): Likewise.
58802         * modules/regex (Makefile.am): Likewise.
58803         * modules/rename (Makefile.am): Likewise.
58804         * modules/rename-dest-slash (Makefile.am): Likewise.
58805         * modules/rijndael (Makefile.am): Likewise.
58806         * modules/rmdir (Makefile.am): Likewise.
58807         * modules/rpmatch (Makefile.am): Likewise.
58808         * modules/safe-read (Makefile.am): Likewise.
58809         * modules/safe-write (Makefile.am): Likewise.
58810         * modules/same (Makefile.am): Likewise.
58811         * modules/save-cwd (Makefile.am): Likewise.
58812         * modules/savedir (Makefile.am): Likewise.
58813         * modules/setenv (Makefile.am): Likewise.
58814         * modules/settime (Makefile.am): Likewise.
58815         * modules/sha1 (Makefile.am): Likewise.
58816         * modules/sig2str (Makefile.am): Likewise.
58817         * modules/snprintf (Makefile.am): Likewise.
58818         * modules/stdlib-safer (Makefile.am): Likewise.
58819         * modules/stpcpy (Makefile.am): Likewise.
58820         * modules/stpncpy (Makefile.am): Likewise.
58821         * modules/strcase (Makefile.am): Likewise.
58822         * modules/strcasestr (Makefile.am): Likewise.
58823         * modules/strchrnul (Makefile.am): Likewise.
58824         * modules/strcspn (Makefile.am): Likewise.
58825         * modules/strdup (Makefile.am): Likewise.
58826         * modules/strerror (Makefile.am): Likewise.
58827         * modules/strftime (Makefile.am): Likewise.
58828         * modules/strndup (Makefile.am): Likewise.
58829         * modules/strnlen (Makefile.am): Likewise.
58830         * modules/strpbrk (Makefile.am): Likewise.
58831         * modules/strsep (Makefile.am): Likewise.
58832         * modules/strstr (Makefile.am): Likewise.
58833         * modules/strtod (Makefile.am): Likewise.
58834         * modules/strtoimax (Makefile.am): Likewise.
58835         * modules/strtok_r (Makefile.am): Likewise.
58836         * modules/strtol (Makefile.am): Likewise.
58837         * modules/strtoll (Makefile.am): Likewise.
58838         * modules/strtoul (Makefile.am): Likewise.
58839         * modules/strtoull (Makefile.am): Likewise.
58840         * modules/strtoumax (Makefile.am): Likewise.
58841         * modules/strverscmp (Makefile.am): Likewise.
58842         * modules/time_r (Makefile.am): Likewise.
58843         * modules/timegm (Makefile.am): Likewise.
58844         * modules/tmpfile-safer (Makefile.am): Likewise.
58845         * modules/unistd-safer (Makefile.am): Likewise.
58846         * modules/unlinkdir (Makefile.am): Likewise.
58847         * modules/userspec (Makefile.am): Likewise.
58848         * modules/utime (Makefile.am): Likewise.
58849         * modules/utimecmp (Makefile.am): Likewise.
58850         * modules/utimens (Makefile.am): Likewise.
58851         * modules/vasnprintf (Makefile.am): Likewise.
58852         * modules/vasprintf (Makefile.am): Likewise.
58853         * modules/vsnprintf (Makefile.am): Likewise.
58854         * modules/xalloc (Makefile.am): Likewise.
58855         * modules/xgetcwd (Makefile.am): Likewise.
58856         * modules/xnanosleep (Makefile.am): Likewise.
58857         * modules/xreadlink (Makefile.am): Likewise.
58858         * modules/xstrtod (Makefile.am): Likewise.
58859         * modules/xstrtol (Makefile.am): Likewise.
58860         * modules/xstrtold (Makefile.am): Likewise.
58861         * modules/yesno (Makefile.am): Likewise.
58862
58863 2006-10-12  Jim Meyering  <jim@meyering.net>
58864
58865         * m4/getloadavg.m4: Revert the change below.
58866
58867         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58868         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58869         fail with a symlink, which is what coreutils' ./bootstrap now
58870         creates by default.
58871
58872 2006-10-12  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58875         mingw.
58876         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58877         MSVC and mingw explicitly.
58878
58879 2006-10-11  Simon Josefsson  <jas@extundo.com>
58880             Bruno Haible  <bruno@clisp.org>
58881
58882         Add support for multiple gnulib-tool invocations in the scope of a
58883         single configure.ac file.
58884         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58885         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58886         with the same contents as the _LIBADD variable.
58887         (func_emit_initmacro_start, func_emit_initmacro_end,
58888         func_emit_initmacro_done): New functions.
58889         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58890         gl_LIBOBJS and gl_LTLIBOBJS.
58891
58892 2006-10-11  Bruno Haible  <bruno@clisp.org>
58893
58894         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58895         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58896         autoreconf. Instead, invoke autopoint explicitly but move back the
58897         *.m4 files from gnulib.
58898
58899 2006-10-11  Bruno Haible  <bruno@clisp.org>
58900
58901         * gnulib-tool (func_usage): Make module names after --create-testdir
58902         optional.
58903         (func_create_testdir): If no module was specified, use nearly all
58904         modules.
58905
58906 2006-10-12  Jim Meyering  <jim@meyering.net>
58907
58908         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58909         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58910         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58911         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58912         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58913         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58914         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58915         (fts_set_stat_required): New function.
58916         (fts_open): Defer the calls to fts_stat, if possible or requested.
58917         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58918         into fts_stat itself.
58919         (fts_read): Perform any required (deferred) fts_stat call.
58920         (fts_build): Likewise, for the directory we're about to open and read.
58921         In the readdir loop, carefully decide whether each entry will require
58922         an eventual call to fts_stat, using dirent.d_type info if available.
58923         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58924         a command line argument into this function.  Update all callers.
58925         Map a return value of FTS_DOT to FTS_D for a command line argument.
58926         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58927         Thanks to Miklos Szeredi for his tenacity and for the initial
58928         bug report about "find" failing on a FUSE-based file system.
58929
58930         * lib/fts.c (fts_open): Use consistent indentation.
58931
58932 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58935         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58936         reported by Jim Meyering.  All uses of cache variables renamed
58937         to match Autoconf's.
58938         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58939         the other one.
58940
58941         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58942         Fix misspelling in diagnostic.
58943
58944 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58945
58946         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58947         defined.  Problem reported by Matthew Woehlke.
58948
58949         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58950         Add support for Tandem NonStop R series.
58951         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58952         Use new macro.
58953
58954         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58955         (has_trailing_slash): Omit size arg; all callers changed.
58956         Omit 'inline', since it doesn't help performance and we'd
58957         need to configure it.
58958         Don't count //, ///, etc. as having a trailing slash.
58959         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58960         (rpl_rename_dest_slash): On failure, use rename's errno rather
58961         than (in some cases) an incorrect or junk errno.
58962         Simplify code by removing need to compute length; this does
58963         cause it to make two passes instead of one over the file name,
58964         but it's worth it.
58965
58966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58967         change, since Autoconf's version may no longer be appropriate now
58968         that we are using CVS Autoconf's version.  Add support for Tandem.
58969
58970 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58971             Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58974         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58975         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58976         gl_AC_TYPE_LONG_LONG.
58977
58978         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58979         instead of HAVE_LONG_LONG.
58980         * lib/printf-args.c (printf_fetchargs): Likewise.
58981         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58982         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58983         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58984         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58985         gl_AC_TYPE_LONG_LONG.
58986
58987 2006-10-11  Bruno Haible  <bruno@clisp.org>
58988
58989         * m4/longlong.m4: Add comments.
58990         * m4/ulonglong.m4: Likewise.
58991
58992 2006-10-10  Bruno Haible  <bruno@clisp.org>
58993
58994         Make it possible to #define stpcpy, strdup to aliases.
58995         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58996         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58997
58998 2006-10-10  Bruno Haible  <bruno@clisp.org>
58999
59000         Make it possible to #define gcd to an alias.
59001         * lib/gcd.c: Include config.h.
59002
59003 2006-10-10  Bruno Haible  <bruno@clisp.org>
59004
59005         Make it possible to #define c_isascii to an alias.
59006         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59007         defined. Undefine the macros before defining them, to avoid gcc
59008         warnings.
59009         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59010         define NO_C_CTYPE_MACROS early.
59011
59012 2006-10-10  Bruno Haible  <bruno@clisp.org>
59013
59014         Make it possible to #define set_program_name to an alias.
59015         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59016         ENABLE_RELOCATABLE early.
59017
59018 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59021         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59022         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59023         More generally, don't assume that 64-bit signed int is available
59024         if unsigned int is, and vice versa.
59025         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59026         unsigned symbols, not on their signed counterparts.
59027         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59028         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59029         (UINT64_C, UINTMAX_C):
59030         Likewise.
59031         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59032         unsigned counterparts.
59033         (Have_long_long, Unsigned): New macros.
59034         (Int): Renamed from INT.
59035         (strtoimax): Use the new macros.
59036         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59037         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59038         * modules/inttypes (inttypes.h): Substitute
59039         HAVE_UNSIGNED_LONG_LONG_INT.
59040         * modules/stdint (stdint.h): Likewise.
59041         (Files): Add m4/ulonglong.m4.
59042
59043 2006-10-10  Bruno Haible  <bruno@clisp.org>
59044
59045         Fix a gcc -Wshadow warning.
59046         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
59047         to 'bucket'.
59048         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
59049         gl_linked_indexof_from_to): Likewise.
59050         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
59051         Likewise.
59052         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
59053         Likewise.
59054         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59055         Reported by Eric Blake.
59056
59057 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59058
59059         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59060         for NetBSD.  Problem reported by Bruno Haible.
59061
59062 2006-10-09  Jim Meyering  <jim@meyering.net>
59063
59064         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59065         Patch from Bruno Haible.
59066
59067 2006-10-09  Jim Meyering  <jim@meyering.net>
59068
59069         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59070         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59071         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59072
59073 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         Don't include <config.h> twice; this doesn't work in some cases,
59076         e.g., when config.h has "#define intmax_t long long int" and
59077         we include <config.h>, <inttypes.h>, <config.h> in that order.
59078         Problem reported by Matthew Woehlke in:
59079         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59080         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59081         * lib/fts-cycle.c: Don't include config.h.
59082         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59083         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59084         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59085         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59086         inttypes.h.
59087         * lib/xstrtoumax.c: Likewise.
59088         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59089         __strtol and the like, so that this module is more like its siblings.
59090         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59091         Remove; no longer needed now that we assume gnulib inttypes.h.
59092
59093 2006-10-08  Bruno Haible  <bruno@clisp.org>
59094
59095         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59096         option.
59097
59098 2006-10-07  Jim Meyering  <jim@meyering.net>
59099
59100         * modules/inttypes (inttypes.h): Revert what seems to have been
59101         an inadvertent part of today's change: use "|", not "/" in the
59102         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59103
59104 2006-10-07  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/sublist: New file.
59107
59108 2006-10-07  Bruno Haible  <bruno@clisp.org>
59109
59110         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59111         * modules/argz (argz.h): Likewise.
59112         * modules/arpa_inet (arpa/inet.h): Likewise.
59113         * modules/byteswap (byteswap.h): Likewise.
59114         * modules/configmake (configmake.h): Likewise.
59115         * modules/fcntl (fcntl.h): Likewise.
59116         * modules/fnmatch (fnmatch.h): Likewise.
59117         * modules/getopt (getopt.h): Likewise.
59118         * modules/glob (glob.h): Likewise.
59119         * modules/inttypes (inttypes.h): Likewise.
59120         * modules/netinet_in (netinet/in.h): Likewise.
59121         * modules/poll (poll.h): Likewise.
59122         * modules/stdbool (stdbool.h): Likewise.
59123         * modules/stdint (stdint.h): Likewise.
59124         * modules/sys_select (sys/select.h): Likewise.
59125         * modules/sys_socket (sys/socket.h): Likewise.
59126         * modules/sys_stat (sys/stat.h): Likewise.
59127         * modules/sysexits (sysexits.h): Likewise.
59128         * modules/unistd (unistd.h): Likewise.
59129         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59130         Add a "DO NOT EDIT" comment to the generated file.
59131         (func_import): Likewise for gnulib-comp.m4.
59132
59133 2006-10-07  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/gl_sublist.h: New file.
59136         * lib/gl_sublist.c: New file.
59137
59138 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59141         name (relative to the original working directory) and the file
59142         name component (relative to the temporary working directory).  All
59143         callers changed.
59144         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59145         * lib/mkdir-p.c (make_dir_parents): Likewise.
59146         * lib/mkdir-p.h (make_dir_parents): Likewise.
59147
59148 2006-10-06  Eric Blake  <ebb9@byu.net>
59149
59150         Define several macros for use by the clean-temp module.
59151         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59153         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59154
59155         * lib/clean-temp.h (close_stream_temp): New declaration.
59156         * lib/clean-temp.c (includes): Pull in headers according to what
59157         other modules are in use.
59158         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59159
59160 2006-10-06  Bruno Haible  <bruno@clisp.org>
59161
59162         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59163         instead of fopen, fwriteerror.
59164
59165 2006-10-06  Bruno Haible  <bruno@clisp.org>
59166
59167         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59168         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59169         int.
59170         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59171         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59172         Return an error indicator.
59173         Suggested by Eric Blake.
59174
59175 2006-10-06  Bruno Haible  <bruno@clisp.org>
59176
59177         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59178         Reported by Eric Blake.
59179
59180 2006-10-06  Bruno Haible  <bruno@clisp.org>
59181
59182         * modules/closeout (Description): Mention stderr too.
59183
59184 2006-10-06  Bruno Haible  <bruno@clisp.org>
59185         and Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         * lib/closeout.c (close_stdout): Also close stderr.
59188         * lib/closeout.h: Update comment.
59189
59190 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59193         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59194         * lib/dirchownmod.c: Include lchown.h.
59195         * lib/lchown.c: Don't include files that lchown.h now includes.
59196         Don't declare chown, since lchown.h now does that.
59197         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59198         (lchown): Define to rpl_chown if lchown is declared but
59199         does not exist.  Declare using a prototype if lchown is not
59200         declared.  Add a copyright notice.
59201         * lib/mkstemp.h: Include <unistd.h>.
59202         * lib/openat.c: Include lchown.h.
59203
59204         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59205         we now test for that separately.
59206         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59207         rather than O_NOFOLLOW, when testing whether it's possible to
59208         avoid a race condition reliably.
59209         * lib/savewd.c (savewd_chdir): Likewise.
59210
59211         Remove macros that are no longer needed now that stdint.h is
59212         reliable.
59213         * lib/fsusage.c (UINTMAX_MAX): Remove.
59214         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59215         * lib/utimecmp.c (SIZE_MAX): Remove.
59216
59217         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59218
59219         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59220         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59221         O_NOATIME works.
59222
59223 2006-10-05  Bruno Haible  <bruno@clisp.org>
59224
59225         * lib/gl_list.h (gl_sortedlist_search_from_to,
59226         gl_sortedlist_indexof_from_to): New declarations.
59227         (gl_list_implementation): New fields sortedlist_search_from_to,
59228         sortedlist_indexof_from_to.
59229         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59230         inline functions.
59231         * lib/gl_list.c (gl_sortedlist_search_from_to,
59232         gl_sortedlist_indexof_from_to): New functions.
59233         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59234         function.
59235         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59236         (gl_array_sortedlist_search_from_to): New function.
59237         (gl_array_list_implementation): Update.
59238         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59239         function.
59240         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59241         (gl_carray_sortedlist_search_from_to): New function.
59242         (gl_carray_list_implementation): Update.
59243         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59244         gl_linked_sortedlist_indexof_from_to): New functions.
59245         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59246         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59247         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59248         gl_tree_sortedlist_indexof_from_to): New functions.
59249         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59250         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59251         Update.
59252         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59253         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59254         Update.
59255
59256 2006-10-05  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59259         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59260         (struct gl_list_implementation): Add fields search_from_to,
59261         indexof_from_to. Remove fields search, indexof.
59262         (gl_list_search): Use the search_from_to method.
59263         (gl_list_search_from, gl_list_search_from_to): New functions.
59264         (gl_list_indexof): Use the indexof_from_to method.
59265         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59266         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59267         (gl_list_search_from, gl_list_search_from_to): New functions.
59268         (gl_list_indexof): Use the indexof_from_to method.
59269         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59270         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59271         gl_array_indexof. Add start_index, end_index arguments.
59272         (gl_array_search_from_to): Renamed from gl_array_search. Add
59273         start_index, end_index arguments.
59274         (gl_array_remove, gl_array_list_implementation): Update.
59275         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59276         gl_carray_indexof. Add start_index, end_index arguments.
59277         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59278         start_index, end_index arguments.
59279         (gl_carray_remove, gl_carray_list_implementation): Update.
59280         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59281         gl_linked_search. Add start_index, end_index arguments.
59282         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59283         start_index, end_index arguments.
59284         (gl_linked_remove): Update.
59285         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59286         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59287         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59288         field to 'size_t'.
59289         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59290         gl_tree_search. Add start_index, end_index arguments.
59291         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59292         start_index, end_index arguments.
59293         (gl_tree_remove): Update.
59294         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59295         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59296         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59297         function.
59298         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59299         gl_tree_search. Add start_index, end_index arguments.
59300         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59301         start_index, end_index arguments.
59302         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59303         Update.
59304         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59305
59306 2006-10-05  Bruno Haible  <bruno@clisp.org>
59307
59308         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59309
59310         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59311         fwriteerror_temp): New declarations.
59312         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59313         (descriptors): New variable.
59314         (cleanup): First, close the descriptors.
59315         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59316         fclose_temp, fwriteerror_temp): New functions.
59317
59318 2006-10-04  Jim Meyering  <jim@meyering.net>
59319
59320         * lib/fts.c (fts_open): Tiny comment change.
59321
59322 2006-10-04  Bruno Haible  <bruno@clisp.org>
59323
59324         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59325         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59326         gl_LOCK_BODY.
59327         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59328         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59329         gl_LOCK_EARLY_BODY.
59330         (gl_LOCK): Require gl_LOCK_BODY.
59331
59332 2006-10-04  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59335         (gl_oset_search_atleast): New declaration.
59336         (struct gl_oset_implementation): Add field 'search_atleast'.
59337         (gl_oset_search_atleast): New inline function.
59338         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59339         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59340         (gl_array_oset_implementation): Update.
59341         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59342         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59343         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59344
59345 2006-10-04  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59348
59349 2006-10-03  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59352         from gl_avltreehash_list_implementation.
59353
59354 2006-10-03  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/gl_oset.c (gl_oset_add): Fix return type.
59357
59358 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59359
59360         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59361
59362 2006-10-02  Eric Blake  <ebb9@byu.net>
59363
59364         * modules/strnlen (Depends-on): Add extensions.
59365
59366 2006-10-02  Eric Blake  <ebb9@byu.net>
59367
59368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59369         definition in 2.60+.
59370
59371 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59372
59373         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59374         checks.
59375
59376 2006-10-02  Bruno Haible  <bruno@clisp.org>
59377
59378         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59379         to the AUTOMAKE_OPTIONS.
59380         Reported by Jim Meyering.
59381
59382 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         Work around bug in Solaris 10 /proc file system:
59385         /proc/self/fd/NNN/.. isn't the parent directory of
59386         the directory whose file descriptor is NNN.  This needs to
59387         be worked around at run time, not compile time, since a
59388         program might be built on Solaris 8, where things work, and
59389         run on Solaris 10.
59390         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59391         to use the following interface instead:
59392         (OPENAT_BUFFER_SIZE): New macro.
59393         (openat_proc_name): New function.
59394         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59395         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59396         Likewise.
59397         * lib/openat-proc.c: New file.
59398         * modules/openat (Files): Add lib/openat-proc.c.
59399         (Depends-on): Add same-inode, stdbool.
59400         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59401
59402 2006-09-29  Bruno Haible  <bruno@clisp.org>
59403
59404         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59405         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59406         argument. Set stdout_closed before testing for ferror, not after.
59407         (fwriteerror, fwriteerror_no_ebadf): New functions.
59408
59409 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59410
59411         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59412
59413 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59414
59415         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59416         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59417
59418 2006-09-28  Jim Meyering  <jim@meyering.net>
59419
59420         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59421         Include <unistd.h>.
59422
59423 2006-09-28  Bruno Haible  <bruno@clisp.org>
59424
59425         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59426         * modules/linkedhash-list (Depends-on): Likewise.
59427         * modules/rbtreehash-list (Depends-on): Likewise.
59428
59429 2006-09-28  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/strndup.h: Simplify the redefinition of strndup.
59432         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59434
59435 2006-09-28  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59438         * lib/gl_linkedhash_list.c: Likewise.
59439         * lib/gl_rbtreehash_list.c: Likewise.
59440
59441 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59444         getaddrinfo.
59445
59446         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59447         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59448         it causes <stdio_ext.h> to cause a compile-time error.
59449         Problem reported by Nelson H. F. Beebe.
59450         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59451         of HAVE_DECL___PENDING.
59452
59453         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59454         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59455         declaration.
59456
59457 2006-09-27  Jim Meyering  <jim@meyering.net>
59458
59459         This file could end up with a definition for a function
59460         named __strndup, rather than rpl_strndup on a system with
59461         incomplete weak_alias support.
59462         * lib/strndup.c (strndup): Rename from __strndup.
59463         Remove #defines that used to map __strndup to strndup.
59464         Don't use K&R prototypes.
59465         Remove LIBC-related code, since this file is not sync'd with glibc.
59466         * lib/strndup.h: Revamp, accordingly.
59467         * m4/strndup.m4: Modernize.
59468
59469 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59470
59471         * modules/savewd (Depends-on): Add 'raise'.
59472         * lib/savewd.c: Include <signal.h>, for 'raise'.
59473
59474 2006-09-26  Jim Meyering  <jim@meyering.net>
59475
59476         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59477         when we detect Darwin 8.7.0's acl_get_file bug.
59478         Rearrange to perform the new (below) run-test while $LIBS
59479         contains any acl-related library.  Set USE_ACL at the end.
59480         (gl_ACL_GET_FILE): New function.
59481
59482 2006-09-26  Eric Blake  <ebb9@byu.net>
59483
59484         * lib/verror.c: Include <config.h> unconditionally.
59485
59486 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * modules/clock-time (Maintainer): Add self.
59489         * modules/getlogin_r (Depends-on): Add extensions.
59490
59491 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59492
59493         * modules/clock-time: New module.
59494         * modules/nanosleep (Depends-on): Add clock-time.
59495         * modules/gethrxtime (Depends-on): Likewise.
59496         * modules/gettime (Depends-on): Likewise.
59497         * modules/settime (Depends-on): Likewise.
59498
59499         * modules/fts-lgpl: Depend on openat.
59500         * modules/mkancesdirs: Depend on savewd.
59501         * modules/mkdir-p: Likewise.
59502
59503 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59504
59505         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59506
59507         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59508         `gl_have_arbitrary_file_name_length_limit' to
59509         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59510         actually works between configure runs.
59511
59512 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59513             Bruno Haible  <bruno@clisp.org>
59514
59515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59516
59517 2006-09-25  Jim Meyering  <jim@meyering.net>
59518
59519         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59520         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59521
59522 2006-09-25  Eric Blake  <ebb9@byu.net>
59523
59524         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59525         exec's in 2006-09-18 patch when shuffling fds.
59526
59527 2006-09-25  Bruno Haible  <bruno@clisp.org>
59528
59529         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59530         Reported by Jim Meyering.
59531
59532 2006-09-24  Jim Meyering  <jim@meyering.net>
59533
59534         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59535         compare a pointer against a literal "0".  That caused failures with
59536         at least HP-UX's hpcc.
59537
59538 2006-09-22  Simon Josefsson  <jas@extundo.com>
59539
59540         * modules/gc-sha1:
59541         * modules/gc-md4:
59542         * modules/gc-hmac-sha1:
59543         * modules/gc-hmac-md5:
59544         * modules/gc-des:
59545         * modules/gc-arcfour: Distribute more files.
59546
59547 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59548
59549         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59550         (gl_linked_iterator_from_to): Initialize struct completely.
59551         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59552         (gl_tree_iterator_from_to): Likewise
59553         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59554         * lib/gl_array_list.c [lint] (gl_array_iterator)
59555         (gl_array_iterator_from_to): Likewise.
59556         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59557         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59558         (gl_carray_iterator_from_to): Likewise.
59559
59560         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59561         * lib/md4.c (md4_process_block): Remove unused variable.
59562         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59563         parentheses for clarity.
59564
59565 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59566
59567         * modules/bison-i18n (Depends-on): Add gettext.
59568
59569 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59570
59571         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59572         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59573         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59574         also add missing comma that caused broken test.
59575         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59576         stdlib.h, for `abort'.
59577         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59578         variables.
59579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59580         include unistd.h if present, for `rmdir'.
59581         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59582         variables.
59583         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59584         in the process include standard headers for prototypes.
59585         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59586         gets declared on GNU/Linux.
59587         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59588         unistd.h, for `rmdir'.
59589         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59590
59591         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59592         always true.
59593         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59594
59595         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59596
59597 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59598
59599         * gnulib-tool (func_version): Create output all at once.  This
59600         may help avoid triggering unnecessary SIGPIPEs, and at any
59601         rate it doesn't hurt.
59602
59603 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59604             Bruno Haible  <bruno@clisp.org>
59605
59606         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59608         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59609
59610         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59611         (gl_FUNC_VASPRINTF): Invoke it.
59612
59613 2006-09-22  Bruno Haible  <bruno@clisp.org>
59614
59615         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59616         getloadavg.c as first argument.
59617
59618 2006-09-22  Bruno Haible  <bruno@clisp.org>
59619
59620         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59621         at the beginning of the gl_INIT macro.
59622         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59623         gl_GETLOADAVG.
59624
59625 2006-09-22  Bruno Haible  <bruno@clisp.org>
59626
59627         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59628         module.
59629         Suggested by Ralf Wildenhues.
59630
59631 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         Import this patch from libc:
59634
59635         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59636
59637         * lib/regex_internal.c (re_string_reconstruct): Handle
59638         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59639         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59640         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59641         re_string_context_at.
59642
59643         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59644         now requires it.
59645         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59646         gl_REGEX now does it for us.
59647         (gl_REGEX): Add test taken from
59648         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59649
59650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59651         Check that large offsets work.  Modernize Autoconf usages.
59652         Prefer "yes" to mean a good thing rather than a bad.
59653         Don't put "#define mkstemp" in config.h, as this might interfere
59654         with standard system headers that "#define mkstemp mkstemp64".
59655
59656         * modules/mkstemp (Depends-on): Add extensions, so that
59657         mkstemp is visible on some platforms.
59658         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59659         (Include): Change to "mkstemp.h" from <stdlib.h>.
59660         (Files): Add mkstemp.h.
59661
59662         * lib/mkstemp.h: New file, since some standard headers
59663         #define mkstemp.
59664         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59665         Include "mkstemp.h".
59666         Make the _LIBC code resemble glibc original more,
59667         e.g., use K&R style.
59668         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59669         (mkstemp): Remove, since mkstemp.h does this for us.
59670         * lib/stdlib--.h: Include mkstemp.h.
59671
59672         Import this patch from libc:
59673
59674         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59675
59676         * lib/tempname.c (__gen_tempname): Change attempts_min
59677         into a macro.  Use preprocessor to decide how to initialize
59678         attempts [Coverity CID 67].
59679
59680 2006-09-20  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/mkdtemp.c: Import from libc.
59683         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59684                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59685                 attempts_min into a macro.  Use preprocessor to decide how to
59686                 initialize attempts [Coverity CID 67].
59687         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59688                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59689                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59690
59691 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59692
59693         * gnulib-tool (func_exit): New function, to allow to pass the
59694         exit status portably through the trap.  Use everywhere.
59695         (--help, --version): Signal a write error.
59696         (trap): catch SIGPIPE, for write errors.
59697         Exit at the end of the trap, with the correct exit status.
59698
59699 2006-09-19  Karl Berry  <karl@gnu.org>
59700
59701         * doc/gnulib.texi: note about the license texinfo files.
59702
59703 2006-09-19  Eric Blake  <ebb9@byu.net>
59704
59705         * gnulib-tool: Avoid space-tab.
59706
59707 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59708
59709         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59710         that prevented coreutils 6.1 from building.  Problem reported
59711         by Petter Reinholdtsen.
59712
59713 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * gnulib-tool (avoidlist): Fix typo that broke options like
59716         --avoid=lock that are used by coreutils bootstrap.
59717
59718 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59719
59720         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59721         more systematically.
59722
59723 2006-09-18  Jim Meyering  <jim@meyering.net>
59724
59725         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59726
59727 2006-09-18  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59730
59731 2006-09-18  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59734         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59735         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59736         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59737         * m4/gettext.m4: Require autoconf >= 2.52.
59738         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59739         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59740         of gl_cv_header_inttypes_h.
59741
59742 2006-09-18  Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/javaversion.c: Include configmake.h.
59745
59746 2006-09-18  Bruno Haible  <bruno@clisp.org>
59747
59748         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59749         avoid that the while loops be executed in a subshell.
59750
59751 2006-09-18  Bruno Haible  <bruno@clisp.org>
59752
59753         * MODULES.html.sh (func_module): Break long lines.
59754         Suggested by Bruce Korb <bkorb@gnu.org>.
59755
59756 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59757
59758         Speed up by a factor of 1.12.
59759         * gnulib-tool (nl): New variable.
59760         (func_import): Rewrite include directive extraction to only read each
59761         directive once.
59762
59763 2006-09-17  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/javaversion (Makefile.am): Remove DEFS setting.
59766         (Depends-on): Add configmake, for PKGDATADIR definition.
59767
59768 2006-09-17  Bruno Haible  <bruno@clisp.org>
59769
59770         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59771
59772 2006-09-17  Bruno Haible  <bruno@clisp.org>
59773
59774         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59775         (func_modules_transitive_closure, func_modules_add_dummy,
59776         func_modules_to_filelist, func_import, func_create_testdir,
59777         func_create_megatestdir, ...): Use it wherever possible.
59778         Suggested by Ralf Wildenhues.
59779
59780 2006-09-16  Karl Berry  <karl@gnu.org>
59781
59782         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59783         to avoid sectioning errors.
59784         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59785         [ifinfo]: blank line after @center-ed titles.
59786         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59787         Spell FSF address consistently with others.
59788         (These changes approved by rms.)
59789
59790 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59791
59792         Speed up by a factor of 1.61.
59793         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59794         already checked module names again.
59795
59796 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59797
59798         Speed up by a factor of 1.13.
59799         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59800         for new_files, and the input to func_add_or_update.
59801
59802 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59803
59804         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59805         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59806
59807 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59808
59809         * modules/mkancesdirs (Depends-on): Add fcntl.
59810         * modules/savewd: New file.
59811         * MODULES.html.sh (File system functions): Add savewd.
59812
59813         * modules/configmake (Makefile.am): Add support for the
59814         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59815
59816 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * m4/savewd.m4: New file.
59819
59820 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59823         (dirchownmod): New arg FD.  All callers changed.
59824         Use FD rather than opening the directory ourself, as opening is
59825         now the caller's responsibility.
59826         * lib/dirchownmod.h: Likewise.
59827         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59828         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59829         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59830         (test_dir): Remove.
59831         (mkancesdirs): Return length of prefix of FILE that has already
59832         been made, or -2 if there is a child doing the work.  Redo
59833         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59834         ".", and treat ".." specially since it might stray back into
59835         already-created areas.  Use a subprocess if necessary.  New arg
59836         WD; all users changed.  MAKE_DIR function should now return 1
59837         if it creates a directory that is not readable.  Return -2 if
59838         a child process is spun off.
59839         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59840         Adjust signature to match code.
59841         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59842         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59843         all users changed.
59844         * lib/savewd.c, lib/savewd.h: New files.
59845
59846 2006-09-15  Jim Meyering  <jim@meyering.net>
59847
59848         * modules/rename-dest-slash: New module.
59849         * MODULES.html.sh (posix_compat): Add it here.
59850
59851         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59852
59853 2006-09-15  Jim Meyering  <jim@meyering.net>
59854
59855         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59856         file.
59857
59858         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59859
59860 2006-09-15  Jim Meyering  <jim@meyering.net>
59861
59862         * lib/rename-dest-slash.c (has_trailing_slash): Use
59863         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59864         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59865         test before testing whether SRC is a directory.
59866         Suggestions from Bruno Haible.
59867
59868         Avoid a warning about an unused variable.
59869         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59870         into the #ifdef block where it's used.
59871
59872         * lib/rename-dest-slash.c: New file.
59873
59874 2006-09-14  Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/allocsa.c: Include <config.h> unconditionally.
59877         * lib/asnprintf.c: Likewise.
59878         * lib/asprintf.c: Likewise.
59879         * lib/c-strcasecmp.c: Likewise.
59880         * lib/c-strcasestr.c: Likewise.
59881         * lib/c-strncasecmp.c: Likewise.
59882         * lib/c-strstr.c: Likewise.
59883         * lib/classpath.c: Likewise.
59884         * lib/clean-temp.c: Likewise.
59885         * lib/concatpath.c: Likewise.
59886         * lib/copy-file.c: Likewise.
59887         * lib/csharpcomp.c: Likewise.
59888         * lib/csharpexec.c: Likewise.
59889         * lib/execute.c: Likewise.
59890         * lib/fatal-signal.c: Likewise.
59891         * lib/findprog.c: Likewise.
59892         * lib/fwriteerror.c: Likewise.
59893         * lib/gl_array_list.c: Likewise.
59894         * lib/gl_array_oset.c: Likewise.
59895         * lib/gl_avltree_list.c: Likewise.
59896         * lib/gl_avltree_oset.c: Likewise.
59897         * lib/gl_avltreehash_list.c: Likewise.
59898         * lib/gl_carray_list.c: Likewise.
59899         * lib/gl_linked_list.c: Likewise.
59900         * lib/gl_linkedhash_list.c: Likewise.
59901         * lib/gl_list.c: Likewise.
59902         * lib/gl_oset.c: Likewise.
59903         * lib/gl_rbtree_list.c: Likewise.
59904         * lib/gl_rbtree_oset.c: Likewise.
59905         * lib/gl_rbtreehash_list.c: Likewise.
59906         * lib/imaxabs.c: Likewise.
59907         * lib/imaxdiv.c: Likewise.
59908         * lib/javacomp.c: Likewise.
59909         * lib/javaexec.c: Likewise.
59910         * lib/javaversion.c: Likewise.
59911         * lib/linebreak.c: Likewise.
59912         * lib/localcharset.c: Likewise.
59913         * lib/lock.c: Likewise.
59914         * lib/mbchar.c: Likewise.
59915         * lib/mbswidth.c: Likewise.
59916         * lib/mkdtemp.c: Likewise.
59917         * lib/pipe.c: Likewise.
59918         * lib/printf-args.c: Likewise.
59919         * lib/printf-parse.c: Likewise.
59920         * lib/progname.c: Likewise.
59921         * lib/progreloc.c: Likewise.
59922         * lib/readlink.c: Likewise.
59923         * lib/sh-quote.c: Likewise.
59924         * lib/stpcpy.c: Likewise.
59925         * lib/stpncpy.c: Likewise.
59926         * lib/strcasecmp.c: Likewise.
59927         * lib/strcasestr.c: Likewise.
59928         * lib/strcspn.c: Likewise.
59929         * lib/striconv.c: Likewise.
59930         * lib/strncasecmp.c: Likewise.
59931         * lib/strnlen1.c: Likewise.
59932         * lib/strstr.c: Likewise.
59933         * lib/strtok_r.c: Likewise.
59934         * lib/tls.c: Likewise.
59935         * lib/tmpdir.c: Likewise.
59936         * lib/unicodeio.c: Likewise.
59937         * lib/unsetenv.c: Likewise.
59938         * lib/vasnprintf.c: Likewise.
59939         * lib/vasprintf.c: Likewise.
59940         * lib/wait-process.c: Likewise.
59941         * lib/xallocsa.c: Likewise.
59942         * lib/xsetenv.c: Likewise.
59943         * lib/xstriconv.c: Likewise.
59944
59945 2006-09-13  Simon Josefsson  <jas@extundo.com>
59946
59947         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59948         that internally, suggested by Ralf Wildenhues
59949         <Ralf.Wildenhues@gmx.de>.
59950
59951 2006-09-13  Simon Josefsson  <jas@extundo.com>
59952
59953         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59954         @LIBOBJS@.
59955         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59956
59957 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59960         longer worry about uses that don't define HAVE_CONFIG_H.
59961         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59962         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59963         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59964         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59965         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59966         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59967         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59968         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59969         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59970         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59971         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59972         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59973         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59974         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59975         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59976         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59977         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59978         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59979         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59980         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59981         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59982         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59983         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59984         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59985         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59986         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59987         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59988         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59989         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59990         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59991         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59992         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59993         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59994         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59995         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59996         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59997         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59998         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59999         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60000         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60001         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60002         Likewise.
60003
60004 2006-09-13  Eric Blake  <ebb9@byu.net>
60005
60006         * lib/getopt.c: Fix typo in last commit.
60007
60008 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60009
60010         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60011         dgettext.
60012
60013 2006-09-12  Jim Meyering  <jim@meyering.net>
60014
60015         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60016         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60017         Reported by Nelson H. F. Beebe.
60018
60019 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60020
60021         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60022         program_invocation_name and program_invocation_short_name are
60023         initialized.
60024         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60025         and program_invocation_short_name to argp.h, so they are visible
60026         to user programs.
60027         * lib/argp.h: Likewise
60028
60029 2006-09-10  Bruno Haible  <bruno@clisp.org>
60030
60031         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60032         m4/inttypes_h.m4, m4/uintmax_t.m4.
60033
60034 2006-09-10  Bruno Haible  <bruno@clisp.org>
60035
60036         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60037         gl_AC_TYPE_UINTMAX_T.
60038
60039 2006-09-10  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60042
60043 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60044
60045         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
60046         convention.  Text proposed by Bruno Haible.
60047         (struct argp_option): Document the use of N_() wrappers.
60048
60049         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
60050         '\v', and translate the two parts separately, instead of feeding
60051         the whole string to gettext.  This allows to exclude
60052         '\v' from the strings visible to the translator by writing doc
60053         strings as N_("..") "\v" N_("..").
60054
60055 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * config/srclist.txt: Undo latest change; the bug was fixed.
60058
60059 2006-09-09  Bruno Haible  <bruno@clisp.org>
60060
60061         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60062         assignments if building a library without libtool.
60063         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60064         in func_emit_lib_Makefile_am.
60065         (func_import): When building a static library libfoo.a, arrange to
60066         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60067         (func_create_testdir): Likewise.
60068         * modules/gc (configure.ac, Makefile.am): If building statically,
60069         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60070         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60071         * modules/striconv (configure.ac, Makefile.am): Likewise.
60072         Based on a suggestion by Ralf Wildenhues.
60073
60074 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60075
60076         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60077         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60078         Also:
60079
60080         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60081         Add year_2050_test to catch glibc bug 2821
60082         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60083
60084         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60085         Prefer #ifdef to #if.
60086
60087         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60088         Return from 'main' instead of calling 'exit'.
60089
60090 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60093         returned the maximum time_t value rather than (time_t) -1.
60094         Problem originally reported by William Bardwell
60095         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60096
60097         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60098         Moved to here ...
60099         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60100         ... from here.
60101
60102 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60103
60104         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60105         2821 is fixed.
60106
60107 2006-09-08  Jim Meyering  <jim@meyering.net>
60108
60109         Don't make generated files read-only.  That would bother too many
60110         people.  However, do retain the ability to work when targets are
60111         read-only: remove the destination and temporary files before writing
60112         them (when generated via sed or echo), or by using the -f option for
60113         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60114         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60115         * modules/byteswap, modules/configmake, modules/fcntl:
60116         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60117         * modules/localcharset, modules/netinet_in, modules/poll:
60118         * modules/stdbool, modules/stdint, modules/sys_select:
60119         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60120
60121 2006-09-08  Jim Meyering  <jim@meyering.net>
60122
60123         Avoid new build failure on FreeBSD 6.0.
60124         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60125         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60126         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60127
60128 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60129
60130         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60131
60132 2006-09-07  Jim Meyering  <jim@meyering.net>
60133
60134         Fix global typo in last change: use chmod u-w, not chmod u-x.
60135         Spotted by Paul Eggert and Bruce Korb.
60136         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60137         * modules/byteswap, modules/configmake, modules/fcntl:
60138         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60139         * modules/localcharset, modules/netinet_in, modules/poll:
60140         * modules/stdbool, modules/stdint, modules/sys_select:
60141         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60142
60143 2006-09-06  Jim Meyering  <jim@meyering.net>
60144
60145         Make generated files be read-only.
60146         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60147         Ensure that each generated file is now read-only.
60148         * modules/argz: Likewise.
60149         * modules/arpa_inet: Likewise.
60150         * modules/byteswap: Likewise.
60151         * modules/configmake: Likewise.
60152         * modules/fcntl: Likewise.
60153         * modules/fnmatch: Likewise.
60154         * modules/getopt: Likewise.
60155         * modules/glob: Likewise.
60156         * modules/inttypes: Likewise.
60157         * modules/netinet_in: Likewise.
60158         * modules/poll: Likewise.
60159         * modules/stdbool: Likewise.
60160         * modules/stdint: Likewise.
60161         * modules/sys_select: Likewise.
60162         * modules/sys_socket: Likewise.
60163         * modules/sys_stat: Likewise.
60164         * modules/sysexits: Likewise.
60165         * modules/localcharset: Same as above, but continue using temporary
60166         file named "t-$@" (why different?) rather than the "$@-t" used
60167         everywhere else.
60168
60169         * modules/sysexits (Makefile.am): Replace literal occurrences
60170         of "sysexit.h" more readable, and more consistent, "$@".
60171
60172 2006-09-06  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/striconv: New file.
60175         * modules/xstriconv: New file.
60176         * MODULES.html.sh (Internationalization functions): Add striconv,
60177         xstriconv.
60178
60179 2006-09-06  Bruno Haible  <bruno@clisp.org>
60180
60181         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60182         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60183         not using libtool correctly.
60184
60185 2006-09-06  Bruno Haible  <bruno@clisp.org>
60186
60187         * lib/striconv.h: New file.
60188         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60189         iconvstring.c.
60190         * lib/xstriconv.h: New file.
60191         * lib/xstriconv.c: New file.
60192
60193 2006-09-06  Bruno Haible  <bruno@clisp.org>
60194
60195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60196         lib_..._LDFLAGS.
60197
60198 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60199
60200         * lib/argz_.h: Sync from Libtool.
60201
60202         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60203                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60204
60205         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60206
60207 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60208
60209         * modules/trim: New file.
60210
60211 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60212
60213         * lib/trim.h: New file.
60214         * lib/trim.c: New file.
60215
60216 2006-09-05  Bruno Haible  <bruno@clisp.org>
60217
60218         * MODULES.html.sh (String handling): Add trim.
60219
60220 2006-09-04  Karl Berry  <karl@gnu.org>
60221
60222         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60223         until next release.
60224
60225 2006-09-03  Bruno Haible  <bruno@clisp.org>
60226
60227         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60228         correctly.
60229
60230 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60233         not gl_GETLOADAVG.  Omit unneeded semicolons.
60234         Problems reported by Ralf Wildenhues in
60235         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60236         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60237         at the end, which is the usual gnulib style.
60238
60239         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60240         of doing all the work ourselves.
60241         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60242         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60243
60244 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60245
60246         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60247         Problem reported by Ralf Wildenhues in
60248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60249
60250         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60251         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60252
60253 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60256         yesterday's patch by changing test -n to test -z.
60257
60258 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60259
60260         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60261         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60262         the former is now obsolescent.
60263
60264         * modules/chdir-long (Depends-on): Add fcntl.
60265
60266 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60269         obsolescent, and programs should use gnulib instead.
60270         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60271         but with prefixes changed.
60272
60273 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60276         or stdbool.h, because they might not exist while configuring.
60277
60278         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60279         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60280         does that for us.
60281         (O_DIRECTORY): Remove.
60282
60283 2006-08-31  Eric Blake  <ebb9@byu.net>
60284
60285         * gnulib-tool: Don't let emacs change spaces to TAB.
60286
60287 2006-08-31  Bruno Haible  <bruno@clisp.org>
60288
60289         * gnulib-tool: When calling func_import more than once, do it in a
60290         subshell.
60291         Reported by Eric Blake <ebb9@byu.net>.
60292
60293 2006-08-31  Bruno Haible  <bruno@clisp.org>
60294
60295         * gnulib-tool (nl): Remove variable.
60296         (sed_transform_lib_file): Use more robust test for config-h module.
60297         (func_import): Fix typo in 2006-08-25 patch.
60298
60299 2006-08-31  Bruno Haible  <bruno@clisp.org>
60300
60301         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60302         specified, augment Makefile.am variables instead of assigning them.
60303
60304 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60305
60306         Work around a bug in both the Linux and SunOS 64-bit kernels:
60307         nanosleep mishandles sleeps for longer than 2**31 seconds.
60308         Problem reported by Frank v Waveren in
60309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60310         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60311         Check for nanosleep bug.
60312         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60313
60314 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60315
60316         Work around a bug in both the Linux and SunOS 64-bit kernels:
60317         nanosleep mishandles sleeps for longer than 2**31 seconds.
60318         Problem reported by Frank v Waveren in
60319         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60320         * lib/nanosleep.c (BILLION): New constant.
60321         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60322         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60323         implementation.
60324
60325 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60326
60327         * modules/nanosleep (Depends-on): Add gettime.
60328
60329 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60330         and Simon Josefsson  <jas@extundo.com>
60331         and Oskar Liljeblad  <oskar@osk.mine.nu>
60332
60333         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60334         * gnulib-tool (func_import): New license type 'unmodifiable license
60335         text'.
60336         * modules/fdl: Use it.  Longer description.
60337         * module/gpl, module/lgpl: New files.
60338
60339 2006-08-30  Jim Meyering  <jim@meyering.net>
60340
60341         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60342         shadowing the parameter.
60343
60344 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60345
60346         Sync from Libtool:
60347
60348         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60349
60350         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60351         sharing with gnulib.  Report by Eric Blake.
60352
60353 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         * modules/isapipe: New file.
60356         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60357
60358 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         * modules/configmake (Makefile.am): Add a comment, and omit
60361         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60362         by Bruno Haible.
60363
60364 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/isapipe.m4: New file.
60367
60368 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/isapipe.c, lib/isapipe.h: New files.
60371
60372 2006-08-29  Jim Meyering  <jim@meyering.net>
60373
60374         * modules/configmake (Makefile.am): Make configmake.h depend on
60375         Makefile.  Otherwise, a stale configmake.h could hang around.
60376
60377 2006-08-29  Eric Blake  <ebb9@byu.net>
60378
60379         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60380         resolution of upstream bug 3044.
60381
60382 2006-08-29  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/localcharset (Depends-on): Add configmake.
60385         (Makefile.am): Remove setting of LIBDIR through DEFS.
60386
60387 2006-08-29  Bruno Haible  <bruno@clisp.org>
60388
60389         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60390         defined.
60391
60392 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * modules/fcntl: New file.
60395         * modules/chdir-safer (Depends-on): Add fcntl.
60396         * modules/fts: Likewise.
60397         * modules/mkdir-p: Likewise.
60398
60399         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60400         This undoes the most recent change, since we're now addressing the
60401         problem in a different way.
60402
60403         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60404         into output, since the output might be called Makefile.am even
60405         if $makefile_name is something different.
60406         (func_import): Use $makefile_am rather than
60407         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60408         empty.
60409
60410         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60411
60412 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60415         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60416         recent change to stdint.m4, since we're now addressing the problem in a
60417         different way.
60418
60419 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60420
60421         * m4/fcntl_h.m4: New file.
60422
60423 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         * lib/fcntl_.h: New file.
60426         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60427         the fcntl module.
60428         * lib/dirchownmod.c: Likewise.
60429         * lib/fts.c: Likewise.
60430
60431         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60432         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60433         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60434         just before including <inttypes.h>, to avoid circular inclusion.
60435
60436 2006-08-28  Jim Meyering  <jim@meyering.net>
60437
60438         * doc/visibility.texi: Actually read and correct the grammar of the
60439         sentence affected by yesterday's change.
60440
60441 2006-08-28  Eric Blake  <ebb9@byu.net>
60442
60443         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60444         needs wrapper.
60445
60446 2006-08-28  Eric Blake  <ebb9@byu.net>
60447
60448         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60449
60450 2006-08-28  Eric Blake  <ebb9@byu.net>
60451
60452         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60453
60454 2006-08-28  Bruno Haible  <bruno@clisp.org>
60455
60456         * modules/c-strstr: New file, from GNU gettext.
60457         * MODULES.html.sh (String handling): Add c-strstr.
60458
60459 2006-08-28  Bruno Haible  <bruno@clisp.org>
60460
60461         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60462         macros.
60463         Reported by Eric Blake.
60464
60465 2006-08-28  Bruno Haible  <bruno@clisp.org>
60466
60467         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60468         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60469         * lib/vasprintf.c: Include errno.h, limits.h.
60470         (EOVERFLOW): New fallback definition.
60471         (vasprintf): Test here whether the string length is > INT_MAX.
60472         * lib/vsnprintf.c: Include errno.h, limits.h.
60473         (EOVERFLOW): New fallback definition.
60474         (vsnprintf): Fix bug when generated string was too long for the buffer.
60475         Test here whether the string length is > INT_MAX.
60476
60477 2006-08-28  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/inttypes_.h (SCNX*): Remove definitions.
60480         Reported by Eric Blake.
60481
60482 2006-08-28  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/c-strstr.h: New file, from GNU gettext.
60485         * lib/c-strstr.c: New file, from GNU gettext.
60486
60487 2006-08-28  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool: Reorder some statements.
60490
60491 2006-08-28  Bruno Haible  <bruno@clisp.org>
60492
60493         * gnulib-tool: New option --makefile-name.
60494         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60495         $makefile_name.
60496         (func_import): Write $makefile_name to the cache file, and read it from
60497         there unless explicitly specified. Use $makefile_name as file name
60498         instead of Makefile.am. Adjust the recommendations accordingly.
60499
60500 2006-08-28  Bruno Haible  <bruno@clisp.org>
60501
60502         * gnulib-tool (func_verify_module): Check against misapplying patch.
60503
60504 2006-08-28  Bruno Haible  <bruno@clisp.org>
60505
60506         * gnulib-tool (func_relativize, func_relconcat): New functions.
60507         Give an error if --local-dir is given with --update.
60508         Remove trailing slashes from $local_gnulib_dir.
60509         (func_import): Store the relativized $local_gnulib_dir in
60510         gnulib-cache.m4, and read it from there if not specified explicitly.
60511
60512 2006-08-28  Bruno Haible  <bruno@clisp.org>
60513
60514         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60515         is the current directory. Respect also $local_gnulib_dir.
60516
60517 2006-08-28  Bruno Haible  <bruno@clisp.org>
60518             Simon Josefsson  <jas@extundo.com>
60519
60520         BeOS portability.
60521         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60522
60523 2006-08-27  Jim Meyering  <jim@meyering.net>
60524
60525         * doc/visibility.texi: Remove duplicate word: "pointer".
60526
60527 2006-08-26  Bruno Haible  <bruno@clisp.org>
60528
60529         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60530         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60531         (Makefile.am): Create inttypes.h from inttypes_.h.
60532         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60533
60534         * modules/imaxabs: New file.
60535
60536         * modules/imaxdiv: New file.
60537
60538 2006-08-26  Bruno Haible  <bruno@clisp.org>
60539
60540         * m4/inttypes.m4: New file.
60541         * m4/_inttypes_h.m4: Remove file.
60542         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60543         PRI_MACROS_BROKEN.
60544         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60545
60546         * m4/imaxabs.m4: New file.
60547
60548         * m4/imaxdiv.m4: New file.
60549
60550 2006-08-26  Bruno Haible  <bruno@clisp.org>
60551
60552         * lib/inttypes_.h: New file.
60553         * lib/inttypes.h: Remove file.
60554         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60555
60556         * lib/imaxabs.c: New file.
60557
60558         * lib/imaxdiv.c: New file.
60559
60560 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60561
60562         New config-h module, so that "make" output needn't be cluttered
60563         by -DHAVE_CONFIG_H.
60564         * MODULES.html.sh (Support for building libraries and executables):
60565         Add config-h.
60566         * modules/config-h: New file.
60567         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60568         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60569         the config-h module is used.
60570
60571         New configmake module, so that "make" output needn't be cluttered
60572         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60573         * MODULES.html.sh (Support for building libraries and executables):
60574         Add configmake.
60575         * modules/configmake: New file.
60576
60577 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60578
60579         * m4/config-h.m4: New file.
60580
60581 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * config/srclist.txt: Add elisp-comp.
60584
60585 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * MODULES.html.sh (Support for building libraries and executables):
60588         Add elisp-comp.
60589         * build-aux/elisp-comp: New file.
60590         * modules/elisp-comp: New file.
60591
60592 2006-08-24  Bruno Haible  <bruno@clisp.org>
60593
60594         * gnulib-tool (func_create_testdir): Use non-default values of
60595         sourcebase and m4base.
60596
60597 2006-08-24  Bruno Haible  <bruno@clisp.org>
60598
60599         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60600         HTML structure.
60601
60602 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * modules/openat (Depends-on): Add lchown.
60605
60606 2006-08-23  Bruno Haible  <bruno@clisp.org>
60607
60608         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60609         of gl_LOCK_EARLY instead of gl_LOCK.
60610
60611 2006-08-23  Bruno Haible  <bruno@clisp.org>
60612
60613         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60614         on OSF/1 to no.
60615         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60616
60617 2006-08-23  Bruno Haible  <bruno@clisp.org>
60618
60619         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60620         as unusable.
60621
60622         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60623         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60624         (gl_LOCK): New macro.
60625
60626 2006-08-22  Simon Josefsson  <jas@extundo.com>
60627
60628         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60629         to md5 module.
60630
60631 2006-08-22  Simon Josefsson  <jas@extundo.com>
60632
60633         * MODULES.html.sh: Add "Support for maintaining and release
60634         projects".
60635
60636         * build-aux/gnupload: New file, from coreutils.
60637
60638 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         Avoid the need for AC_LIBSOURCES in m4 macros.
60641         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60642         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60643         * modules/check-version (EXTRA_DIST): Add check-version.h.
60644         * modules/crc (EXTRA_DIST): Add crc.h.
60645         * modules/des (EXTRA_DIST): Add des.h.
60646         * modules/gc (EXTRA_DIST): Add gc.h.
60647         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60648         * modules/getline (EXTRA_DIST): Add getline.h.
60649         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60650         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60651         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60652         * modules/md2 (EXTRA_DIST): Add md2.h.
60653         * modules/md4 (EXTRA_DIST): Add md4.h.
60654         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60655         * modules/read-file (EXTRA_DIST): Add read-file.h.
60656         * modules/readline (EXTRA_DIST): Add readline.h.
60657         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60658         rijndael-api-fst.h.
60659
60660 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * m4/rijndael.m4 (gl_ARCFOUR):
60663         * m4/arctwo.m4 (gl_ARCTWO):
60664         * m4/check-version.m4 (gl_CHECK_VERSION):
60665         * m4/crc.m4 (gl_CRC):
60666         * m4/des.m4 (gl_DES):
60667         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60668         * m4/gc.m4 (gl_GC):
60669         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60670         * m4/getline.m4 (gl_FUNC_GETLINE):
60671         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60672         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60673         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60674         * m4/md2.m4 (gl_MD2):
60675         * m4/md4.m4 (gl_MD4):
60676         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60677         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60678         * m4/readline.m4 (gl_FUNC_READLINE):
60679         * m4/rijndael.m4 (gl_RIJNDAEL):
60680         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60681         to get the necessary .h files and whatnot.
60682
60683 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60686         gnulib rather than the other way around.
60687         * config/srclistvars.sh (COREUTILS): Remove.
60688
60689 2006-08-22  Jim Meyering  <jim@meyering.net>
60690
60691         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60692
60693         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60694
60695 2006-08-22  Eric Blake  <ebb9@byu.net>
60696
60697         * modules/regexprops-generic: New file.
60698         * MODULES.html.sh (Support for building documentation): List it.
60699
60700 2006-08-22  Eric Blake  <ebb9@byu.net>
60701
60702         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60703         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60704         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60705         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60706
60707 2006-08-22  Bruno Haible  <bruno@clisp.org>
60708
60709         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60710         and lib_LTLIBRARIES like the other lib_* variables.
60711
60712 2006-08-22  Bruno Haible  <bruno@clisp.org>
60713
60714         * build-aux/x-to-1.in: New file, from GNU gettext.
60715
60716 2006-08-22  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60719         <utmpx.h> exists.
60720
60721 2006-08-22  Bruno Haible  <bruno@clisp.org>
60722
60723         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60724         <utmpx.h> exists.
60725
60726 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         BeOS portability.
60729         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60730         exist.
60731         Problem reported by Bruno Haible.
60732
60733 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         Avoid the need for AC_LIBSOURCES in m4 macros.
60736         * modules/acl (EXTRA_DIST): Add acl.h.
60737         * modules/argmatch (Files): Add m4/argmatch.m4.
60738         (configure.ac): Add gl_ARGMATCH.
60739         (EXTRA_DIST): Renamed from lib_SOURCES, for
60740         consistency with the other modules.  Remove argmatch.c.
60741         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60742         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60743         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60744         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60745         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60746         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60747         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60748         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60749         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60750         * modules/closeout (EXTRA_DIST): Add closeout.h.
60751         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60752         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60753         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60754         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60755         dirname.h; remove basename.c and stripslash.c.
60756         * modules/exclude (EXTRA_DIST): Add exclude.h.
60757         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60758         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60759         * modules/file-type (EXTRA_DIST): Add file-type.h.
60760         * modules/filemode (EXTRA_DIST): Add filemode.h.
60761         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60762         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60763         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60764         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60765         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60766         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60767         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60768         * modules/getdate (EXTRA_DIST): Add getdate.c.
60769         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60770         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60771         * modules/getpass (EXTRA_DIST): Add getpass.h.
60772         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60773         * modules/group-member (EXTRA_DIST): Add group-member.h.
60774         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60775         * modules/hash (EXTRA_DIST): Add hash.h.
60776         * modules/human (EXTRA_DIST): Add human.h.
60777         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60778         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60779         * modules/lchown (EXTRA_DIST): Add lchown.h.
60780         * modules/long-options (EXTRA_DIST): Add long-options.h.
60781         * modules/lstat (EXTRA_DIST): Add lstat.h.
60782         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60783         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60784         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60785         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60786         * modules/memxor (EXTRA_DIST): Add memxor.h.
60787         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60788         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60789         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60790         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60791         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60792         * modules/physmem (EXTRA_DIST): Add physmem.h.
60793         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60794         * modules/posixver (EXTRA_DIST): Add posixver.h.
60795         * modules/quote (EXTRA_DIST): Add quote.h.
60796         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60797         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60798         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60799         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60800         regex_internal.h regexec.c.
60801         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60802         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60803         * modules/same (EXTRA_DIST): Add same.h.
60804         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60805         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60806         * modules/savedir (EXTRA_DIST): Add savedir.h.
60807         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60808         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60809         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60810         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60811         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60812         * modules/strdup (EXTRA_DIST): Add strdup.h.
60813         * modules/strftime (EXTRA_DIST): Add strftime.h.
60814         * modules/strndup (EXTRA_DIST): Add strndup.h.
60815         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60816         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60817         * modules/time_r (EXTRA_DIST): Add time_r.h.
60818         * modules/timespec (EXTRA_DIST): Add timespec.h.
60819         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60820         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60821         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60822         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60823         * modules/userspec (EXTRA_DIST): Add userspec.h.
60824         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60825         * modules/utimens (EXTRA_DIST): Add utimens.h.
60826         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60827         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60828         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60829         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60830         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60831         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60832         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60833         * modules/yesno (EXTRA_DIST): Add yesno.h.
60834
60835 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60836
60837         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60838
60839         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60840         * m4/dev-ino.m4, same-inode.m4: Remove.
60841
60842         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60843         * m4/acl.m4 (AC_FUNC_ACL):
60844         * m4/backupfile.m4 (gl_BACKUPFILE):
60845         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60846         * m4/canon-host.m4 (gl_CANON_HOST):
60847         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60849         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60850         * m4/cloexec.m4 (gl_CLOEXEC):
60851         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60852         * m4/closeout.m4 (gl_CLOSEOUT):
60853         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60854         * m4/dirname.m4 (gl_DIRNAME):
60855         * m4/exclude.m4 (gl_EXCLUDE):
60856         * m4/exitfail.m4 (gl_EXITFAIL):
60857         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60858         * m4/file-type.m4 (gl_FILE_TYPE):
60859         * m4/filemode.m4 (gl_FILEMODE):
60860         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60861         * m4/fpending.m4 (gl_FUNC_FPENDING):
60862         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60863         * m4/fts.m4 (gl_FUNC_FTS):
60864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60865         * m4/getdate.m4 (gl_GETDATE):
60866         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60867         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60868         * m4/getpass.m4 (gl_FUNC_GETPASS):
60869         * m4/gettime.m4 (gl_GETTIME):
60870         * m4/getugroups.m4 (gl_GETUGROUPS):
60871         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60872         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60873         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60874         * m4/hash.m4 (gl_HASH):
60875         * m4/idcache.m4 (gl_IDCACHE):
60876         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60877         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60878         * m4/long-options.m4 (gl_LONG_OPTIONS):
60879         * m4/lstat.m4 (gl_FUNC_LSTAT):
60880         * m4/md5.m4 (gl_MD5):
60881         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60882         * m4/memcoll.m4 (gl_MEMCOLL):
60883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60885         * m4/memxor.m4 (gl_MEMXOR):
60886         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60888         * m4/modechange.m4 (gl_MODECHANGE):
60889         * m4/mountlist.m4 (gl_MOUNTLIST):
60890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60891         * m4/openat.m4 (gl_FUNC_OPENAT):
60892         * m4/pathmax.m4 (gl_PATHMAX):
60893         * m4/physmem.m4 (gl_PHYSMEM):
60894         * m4/posixtm.m4 (gl_POSIXTM):
60895         * m4/posixver.m4 (gl_POSIXVER):
60896         * m4/quote.m4 (gl_QUOTE):
60897         * m4/quotearg.m4 (gl_QUOTEARG):
60898         * m4/readtokens.m4 (gl_READTOKENS):
60899         * m4/readutmp.m4 (gl_READUTMP):
60900         * m4/regex.m4 (gl_REGEX):
60901         * m4/safe-read.m4 (gl_SAFE_READ):
60902         * m4/safe-write.m4 (gl_SAFE_WRITE):
60903         * m4/same.m4 (gl_SAME):
60904         * m4/save-cwd.m4 (gl_SAVE_CWD):
60905         * m4/savedir.m4 (gl_SAVEDIR):
60906         * m4/settime.m4 (gl_SETTIME):
60907         * m4/sha1.m4 (gl_SHA1):
60908         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60909         * m4/stat-macros.m4 (gl_STAT_MACROS):
60910         * m4/stat-time.m4 (gl_STAT_TIME):
60911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60912         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60913         * m4/strdup.m4 (gl_FUNC_STRDUP):
60914         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60915         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60916         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60917         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60918         * m4/time_r.m4 (gl_TIME_R):
60919         * m4/timespec.m4 (gl_TIMESPEC):
60920         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60921         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60922         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60923         * m4/userspec.m4 (gl_USERSPEC):
60924         * m4/utimecmp.m4 (gl_UTIMECMP):
60925         * m4/utimens.m4 (gl_UTIMENS):
60926         * m4/xalloc.m4 (gl_XALLOC):
60927         * m4/xgetcwd.m4 (gl_XGETCWD):
60928         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60929         * m4/xreadlink.m4 (gl_XREADLINK):
60930         * m4/xstrtod.m4 (gl_XSTRTOD):
60931         * m4/yesno.m4 (gl_YESNO):
60932         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60933         to get the necessary .h files and whatnot.
60934
60935 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60936             Bruno Haible  <bruno@clisp.org>
60937
60938         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60939         /bin/sh understanding of '!' conditional negation.
60940
60941 2006-08-21  Jim Meyering  <jim@meyering.net>
60942
60943         * modules/openat (Depends-on): Really alphabetize.
60944
60945         * modules/acl (Depends-on): Add error and quote.
60946
60947         * check-module (find_included_lib_files): Add at-func.c to the
60948         ok-to-include-more-than-once white list.
60949
60950         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60951
60952 2006-08-21  Bruno Haible  <bruno@clisp.org>
60953
60954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60955         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60956         Reported by Martin Lambers <marlam@marlam.de>.
60957
60958 2006-08-21  Bruno Haible  <bruno@clisp.org>
60959
60960         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60961         specify an installation location, don't emit a noinst_LIBRARIES or
60962         noinst_LTLIBRARIES assignment.
60963
60964 2006-08-21  Bruno Haible  <bruno@clisp.org>
60965
60966         BeOS portability.
60967         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60968         BeOS has mbrtowc() but no <wctype.h>.
60969
60970 2006-08-21  Bruno Haible  <bruno@clisp.org>
60971
60972         BeOS portability.
60973         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60974         exist.
60975
60976 2006-08-21  Bruno Haible  <bruno@clisp.org>
60977
60978         BeOS portability.
60979         * lib/mbchar.h: Include <wctype.h> only if it exists.
60980
60981 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         Remove files that are no longer needed by their respective modules.
60984         * m4/obstack.m4: Remove.
60985         * m4/strerror_r.m4: Remove.
60986         * m4/uint32_t.m4: Remove.
60987         * m4/uintptr_t.m4: Remove.
60988         * m4/ullong_max.m4: Remove.
60989         * m4/xstrtoimax.m4: Remove.
60990         * m4/xstrtoumax.m4: Remove.
60991
60992         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60993         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60994         dependencies now capture this.
60995
60996         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60997         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60998         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60999         * m4/human.m4 (gl_HUMAN): Likewise.
61000         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61001         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61002
61003         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61004
61005         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61006         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61007         stdint.
61008         * m4/human.m4 (gl_HUMAN): Likewise.
61009         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61010         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61011         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61012         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61013         * m4/xstrtol (gl_XSTRTOL): Likewise.
61014
61015         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61016         AC_TYPE_LONG_LONG_INT.
61017         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61018         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61019         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61020         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61021
61022         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61023         on stdbool.
61024
61025         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61026         (gl_PREREQ_XSTRTOUL): Remove.
61027
61028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61029
61030         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61031         mode.
61032
61033 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61034
61035         Add and change modules to make it easier for coreutils to use
61036         gnulib-tool.
61037         * modules/backupfile (Files): Remove m4/d-ino.m4.
61038         (Depends-on): Add d-ino.
61039         * modules/cycle-check (Depends-on): Add stdint.
61040         (lib_SOURCES): Add cycle-check.h.
61041         * modules/d-ino: New module.
61042         * modules/d-type: New module.
61043         * modules/error (Files): Remove m4/strerror_r.m4.
61044         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61045         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61046         m4/inttypes_h.m4, m4/uintmax_t.m4.
61047         (Depends-on): Add stdint.
61048         (lib_SOURCES): Add fsusage.h.
61049         * modules/getcwd (Files): Remove d-ino.m4.
61050         (Depends-on): Add d-ino.
61051         * modules/getndelim2 (Depends-on): Add stdint.
61052         * modules/glob (Files): Remove m4/d-type.m4.
61053         (Depends-on): Add d-type.
61054         * modules/host-os: New module.
61055         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61056         m4/inttypes_h.m4, m4/uintmax_t.m4.
61057         * Depends-on: Add stdint.
61058         (lib_SOURCES): Add human.h.
61059         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61060         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61061         m4/uintmax_t.m4, m4/ulonglong.m4.
61062         (Depends-on): Add stdint.
61063         (EXTRA_DIST): Add inttostr.h.
61064         * modules/lchmod: New module.
61065         * modules/link-follow: New module.
61066         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61067         (Depends-on): Add lchmod.
61068         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61069         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61070         (Depends-on): Add stdint.
61071         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61072         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61073         (Depends-on): Add stdint.
61074         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61075         * modules/perl: New module.
61076         * modules/regex (Depends-on): Add stdint.
61077         * modules/rmdir-errno: New module.
61078         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61079         m4/intmax_t.m4.
61080         (Depends-on): Add stdint.
61081         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61082         m4/uintmax_t.m4.
61083         (Depends-on): Add stdint.
61084         * modules/unlink-busy: New module.
61085         * modules/utimecmp (Depends-on): Add stdint.
61086         * modules/uptime: New module.
61087         * modules/winsz-ioctl: New module.
61088         * modules/winsz-termios: New module.
61089         * modules/xnanosleep (Depends-on): Add nanosleep.
61090         * modules/ullong_max: Remove.
61091         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61092         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61093         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61094         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61095         (Depends-on): Add inttypes.
61096         (lib_SOURCES): Add xstrtol.h.
61097         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61098         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61099         * MODULES.html.sh: Move 'assert' into the assert section.
61100         Move 'dummy' into the linking section.
61101         Remove ullong_max.
61102         Add section for compatibility checks for POSIX:2001 functions,
61103         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61104         winsz-ioctl, and winsz-termios into it.
61105         Add lchmod.
61106         Add top-level Misc section and put host-os, perl, and uptime
61107         into it.
61108
61109 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61112         now assume the stdint module.  Do not include inttypes.h.
61113         * lib/fsusage.h: Likewise.
61114         * lib/getndelim2.c: Likewise.
61115         * lib/human.h: Likewise.
61116         * lib/inttostr.h: Likewise.
61117         * lib/obstack.c: Likewise.
61118         * lib/regex_internal.h: Likewise.
61119         * lib/tempname.c: Likewise.
61120         * lib/utimecmp.c: Likewise.
61121         * lib/xstrtol.h: Likewise.
61122
61123         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61124
61125         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61126         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61127         * lib/xtime.h: Likewise.
61128
61129 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61130
61131         * modules/openat (Files): Add lib/fchmodat.c.
61132         Fixes problem reported by Jay Youngman.
61133
61134 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61135
61136         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61137         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61138
61139 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61140             Bruno Haible  <bruno@clisp.org>
61141
61142         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61143         and is a script that invokes bison. Tighten the code. Add comments.
61144
61145 2006-08-18  Jim Meyering  <jim@meyering.net>
61146
61147         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61148         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61149         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61150         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61151
61152 2006-08-18  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/bison-i18n: New file.
61155         * MODULES.html.sh (Internationalization functions): Add it.
61156
61157 2006-08-18  Bruno Haible  <bruno@clisp.org>
61158
61159         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61160         sys/statvfs.h. When getmntinfo was found, check its declaration and
61161         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61162
61163 2006-08-18  Bruno Haible  <bruno@clisp.org>
61164
61165         * m4/bison-i18n.m4: New file, from bison.
61166
61167 2006-08-18  Bruno Haible  <bruno@clisp.org>
61168
61169         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61170         (ME_DUMMY): Treat "kernfs" as a dummy.
61171         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61172
61173 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         Update from coreutils.
61176
61177         2006-08-15  Jim Meyering  <jim@meyering.net>
61178
61179         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61180
61181         2006-01-17  Jim Meyering  <jim@meyering.net>
61182
61183         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61184
61185         2006-01-11  Jim Meyering  <jim@meyering.net>
61186
61187         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61188         Check for the lchmod function.
61189
61190 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         Update from coreutils.
61193
61194         * lib/__fpending.h: Add copyright notice.
61195         * lib/fprintftime.h: Likewise.
61196         * lib/savedir.c: Use (C) in copyright notice.
61197         * lib/savedir.h: Likewise.
61198
61199         2006-08-15  Jim Meyering  <jim@meyering.net>
61200
61201         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61202         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61203         in support of the EXPECTED_ERRNO macro.
61204         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61205         definitions.  Instead, define the appropriate symbols and include
61206         "at-func.c".
61207         * lib/mkdirat.c (mkdirat): Likewise.
61208         * lib/fchmodat.c (fchmodat): Likewise.
61209         (ENOSYS): Remove definition.
61210         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61211         it.  Don't include "unistd--.h" -- it wasn't ever used.
61212
61213         2006-01-17  Jim Meyering  <jim@meyering.net>
61214
61215         Rewrite fts.c not to change the current working directory,
61216         by using openat, fstatat, fdopendir, etc..
61217
61218         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61219         (HAVE_OPENAT_SUPPORT): Define.
61220         [_LIBC] (fchdir): Don't undef or define; no longer used.
61221         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61222         Now, this `function' always succeeds, and consumes its file descriptor
61223         parameter -- so callers must not close such FDs.  Update callers.
61224         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61225         (diropen): Add parameter, SP.  Adjust all callers.
61226         Implement using diropen_fd, rather than open.
61227         (fts_open): Initialize new member, fts_cwd_fd.
61228         Remove fts_rft-setting code.
61229         (fts_close): Close fts_cwd_fd, if necessary.
61230         (__opendir2): Define in terms of opendir or opendirat,
61231         depending on whether the FST_NOCHDIR flag is set.
61232         (fts_build): Since fts_safe_changedir consumes its FD, and since
61233         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61234         and close the dup'd file descriptor upon failure.
61235         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61236         (fts_safe_changedir): Tweak semantics to reflect that this function
61237         now calls cwd_advance_fd and hence consumes its FD argument.
61238         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61239         [struct FTS] (fts_rft): Remove now-unused member.
61240         [struct FTS] (fts_cycle.state): Improve comment.
61241
61242         * lib/openat.c (openat_needs_fchdir): New function.
61243         * lib/openat.h (openat_needs_fchdir): Declare it.
61244
61245 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61246
61247         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61248         Problem and fix reported by Pádraig Brady in
61249         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61250
61251 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61254
61255 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * lib/memcoll.c (memcoll): Optimize for the common case where the
61258         arguments are bytewise equal.
61259
61260 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * doc/regexprops-generic.texi: Add a copyright notice.
61263
61264 2006-08-15  Bruno Haible  <bruno@clisp.org>
61265
61266         * modules/tmpdir (License): Change to LGPL.
61267
61268 2006-08-15  Bruno Haible  <bruno@clisp.org>
61269
61270         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61271         module.
61272
61273 2006-08-14  Simon Josefsson  <jas@extundo.com>
61274
61275         * config/srclist.txt: Add gnupload.
61276
61277 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61278
61279         Change copyright notice from LGPL 2 to GPL 2, since that's the
61280         standard form used in the gnulib repository.
61281         * tests/test-lock.c: Likewise.
61282         * tests/test-stdint.c: Likewise.
61283         * tests/test-tls.c: Likewise.
61284
61285         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61286         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61287         Add copyright notice.
61288
61289         * check-module: Add copyright notice.  Output a copyright
61290         notice if "--version" is specified.
61291         * modules/COPYING: New file.
61292         * tests/test-getaddrinfo.c: Add copyright notice.
61293         * tests/test-verify.c: Likewise.
61294
61295 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61296
61297         Change copyright notice from LGPL 2 to GPL 2, since that's the
61298         standard form used in the gnulib repository.
61299         * lib/lock.c: LGPL -> GPL.
61300         * lib/lock.h: Likewise.
61301         * lib/strnlen1.c: Likewise.
61302         * lib/strnlen1.h: Likewise.
61303         * lib/tls.c: Likewise.
61304         * lib/tls.h: Likewise.
61305         * lib/tmpdir.c: Likewise.
61306
61307         * lib/TODO: Remove; this belongs only in coreutils.
61308
61309 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61310
61311         Add copyright notices to long-enough files that lack them, since
61312         otherwise the files aren't clearly free.  Use the same notice that
61313         getdate.texi already uses.
61314         * doc/alloca-opt.texi: Add copyright notice.
61315         * doc/alloca.texi: Likewise.
61316         * doc/ctime.texi: Likewise.
61317         * doc/functions.texi: Likewise.
61318         * doc/gcd.texi: Likewise.
61319         * doc/gnulib-tool.texi: Likewise.
61320         * doc/inet_ntoa.texi: Likewise.
61321         * doc/visibility.texi: Likewise.
61322
61323         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61324         * doc/quote.texi: Add copyright notice.
61325
61326         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61327         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61328         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61329         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61330         is now obsolete, and give a pointer to the Sun list.
61331         Add copyright notice.
61332
61333 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * config/srclistvars.sh: Add copyright notice.
61336
61337 2006-08-14  Eric Blake  <ebb9@byu.net>
61338
61339         Import the following change from libc:
61340
61341         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61342
61343         Upstream bug 2997.
61344         * lib/misc/error.c: Add space between program name and message if file
61345         name is missing.
61346
61347 2006-08-12  Karl Berry  <karl@gnu.org>
61348
61349         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61350         remove, these originate in gnulib now.
61351
61352 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61353
61354         * doc/Makefile (standards.info standards.html standards.dvi):
61355         Also depend on make-stds.texi.
61356
61357 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61360         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61361
61362         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61363         in wchar_t.  Problem reported by Eric Blake.
61364
61365         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61366         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61367         Also, help the compiler to keep LEN in a register.
61368
61369 2006-08-11  Eric Blake  <ebb9@byu.net>
61370
61371         * users.txt: Sort.  Add tar.
61372
61373 2006-08-11  Bruno Haible  <bruno@clisp.org>
61374
61375         * users.txt: New file.
61376
61377 2006-08-11  Bruno Haible  <bruno@clisp.org>
61378
61379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61380         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61381
61382 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * modules/snprintf (Depends-on): Remove minmax.
61385         (Maintainer): Add self and Bruno.
61386
61387 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61390         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61391         (EOVERFLOW): Define if the system does not.
61392         Do not include "minmax.h"; it wasn't used.
61393         (snprintf): Don't assume size_t promotes to an unsigned type.
61394         Fix bug when generated string was too long for the buffer: the
61395         buffer's contents are supposed to be the initial prefix of the
61396         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61397         exceeds INT_MAX; do the check ourselves.
61398
61399         Import the following changes from libc:
61400
61401         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61402
61403         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61404         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61405         set wc to the byte which couldn't be converted.
61406         (re_string_reconstruct): Don't clear valid_raw_len before calling
61407         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61408         tip_context using re_string_context_at.
61409
61410         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61411
61412         * lib/posix/regex.h: g++ still cannot handled [restrict].
61413
61414         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61415
61416         * lib/posix/regex.h: Remove special handling for VMS.
61417
61418 2006-08-10  Jim Meyering  <jim@meyering.net>
61419
61420         * modules/same-inode: New module.
61421         * modules/dev-ino: New module.
61422         * modules/cycle-check: Depend on these modules, rather than simply
61423         including their .h files.
61424         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61425         required via m4/cycle-check.m4.
61426         * modules/same: Depend on new same-inode module, rather than
61427         including same-inode.h.
61428         * modules/chdir-safer: New file.
61429
61430         * modules/chown (Depends-on): Add stat-macros.
61431
61432 2006-08-10  Jim Meyering  <jim@meyering.net>
61433
61434         * m4/cycle-check.m4: New file.
61435         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61436         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61437
61438 2006-08-10  Eric Blake  <ebb9@byu.net>
61439
61440         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61441         in from original proposal.
61442
61443 2006-08-10  Eric Blake  <ebb9@byu.net>
61444         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61445
61446         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61447         namespace.
61448
61449 2006-08-10  Bruno Haible  <bruno@clisp.org>
61450
61451         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61452         as well.
61453
61454 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61455
61456         Sync from coreutils.
61457
61458         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61459
61460         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61461         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61462
61463 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         * modules/restrict: Remove; no longer needed now that we assume
61466         Autoconf 2.59 or later.
61467         * MODULES.html.sh: Remove 'restrict'.
61468         * modules/argp (Depends-on): Remove 'restrict'.
61469         * modules/base64 (Depends-on): Likewise.
61470         * modules/gc (Depends-on): Likewise.
61471         * modules/getaddrinfo (Depends-on): Likewise.
61472         * modules/glob (Depends-on): Likewise.
61473         * modules/inet_ntop (Depends-on): Likewise.
61474         * modules/inet_pton (Depends-on): Likewise.
61475         * modules/memxor (Depends-on): Likewise.
61476         * modules/regex (Depends-on): Likewise.
61477         * modules/strtok_r (Depends-on): Likewise.
61478         * modules/time_r (Depends-on): Likewise.
61479
61480 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61483         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61484         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61485         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61486         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61487         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61488         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61489         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61490
61491         Merge from coreutils.
61492         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61493         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61495         * m4/time_r.m4 (gl_TIME_R): Likewise.
61496
61497 2006-08-09  Karl Berry  <karl@gnu.org>
61498
61499         * config/srclist.txt: no more gettext-tools, per Bruno.
61500
61501 2006-08-08  Eric Blake  <ebb9@byu.net>
61502
61503         * modules/verror: New module.
61504         * MODULES.html.sh: Document it.
61505
61506 2006-08-08  Eric Blake  <ebb9@byu.net>
61507
61508         * lib/verror.h, lib/verror.c: New files.
61509
61510 2006-08-08  Eric Blake  <ebb9@byu.net>
61511
61512         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61513         verror_at_line output complies with GNU Coding Standards even when
61514         file is NULL.
61515
61516 2006-08-07  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61519         versions of AIX.
61520         Reported by Ralf Wildenhues.
61521
61522 2006-08-07  Bruno Haible  <bruno@clisp.org>
61523
61524         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61525         in an AC_DEFUN. Needed so that the autoconf snippets can use
61526         AC_REQUIRE.
61527
61528 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61529
61530         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61531         Initialize pkgdata_DATA.
61532         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61533         overriding it.
61534
61535 2006-08-06  Eric Blake  <ebb9@byu.net>
61536
61537         * lib/error.h: Fold in some upstream changes from glibc.
61538         * lib/error.c: Likewise.
61539
61540 2006-08-04  Bruno Haible  <bruno@clisp.org>
61541
61542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61543         Make the mostlyclean-local rule depend on mostlyclean-generic.
61544         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61545
61546 2006-07-31  Bruno Haible  <bruno@clisp.org>
61547
61548         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61549         <stdlib.h>, <string.h>.
61550
61551 2006-07-30  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/readlink (License): Change to LGPL.
61554
61555 2006-07-30  Bruno Haible  <bruno@clisp.org>
61556
61557         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61558         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61559         set PKGDATADIR to point to it.
61560
61561 2006-07-30  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/csharpexec (configure.ac): Comment out macro invocation.
61564         * modules/javaexec (configure.ac): Likewise.
61565         * modules/javacomp-script (configure.ac): Likewise.
61566
61567         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61568
61569 2006-07-30  Bruno Haible  <bruno@clisp.org>
61570
61571         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61572         linked-list.
61573
61574 2006-07-30  Bruno Haible  <bruno@clisp.org>
61575
61576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61577
61578 2006-07-30  Bruno Haible  <bruno@clisp.org>
61579
61580         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61581         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61582         get removed.
61583
61584 2006-07-29  Bruno Haible  <bruno@clisp.org>
61585
61586         Make it possible for gnulib-tool to work with locally modified or
61587         augmented gnulib repositories.
61588         * gnulib-tool (func_usage): Document --local-dir option.
61589         (local_gnulib_dir): New variable.
61590         Handle --local-dir option.
61591         (func_lookup_file): New function.
61592         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61593         (func_get_description, func_get_filelist, func_get_description,
61594         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61595         func_get_automake_snippet, func_get_include_directive,
61596         func_get_license, func_get_maintainer): Use func_lookup_file.
61597         (func_import, func_create_testdir): Use func_lookup_file.
61598
61599 2006-07-29  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/setenv (Depends-on): Add unistd.
61602
61603 2006-07-29  Bruno Haible  <bruno@clisp.org>
61604
61605         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61606
61607 2006-07-29  Bruno Haible  <bruno@clisp.org>
61608
61609         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61610
61611 2006-07-29  Bruno Haible  <bruno@clisp.org>
61612
61613         * gnulib-tool (import, update): If there is no Makefile.am, look at
61614         aclocal.m4, instead of bailing out.
61615
61616 2006-07-29  Bruno Haible  <bruno@clisp.org>
61617
61618         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61619         Categorize the options by when they are useful.
61620
61621 2006-07-29  Bruno Haible  <bruno@clisp.org>
61622
61623         * gnulib-tool (func_usage): Document option --no-libtool.
61624         Handle option --no-libtool.
61625         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61626         for changed semantics of $libtool variable.
61627         (func_import): Likewise. If libtool is not used, show this through
61628         an option --no-libtool.
61629         (func_create_testdir): Update.
61630
61631 2006-07-29  Bruno Haible  <bruno@clisp.org>
61632
61633         * gnulib-tool (func_import): Extend error message about missing
61634         --doc-base.
61635
61636 2006-07-29  Bruno Haible  <bruno@clisp.org>
61637
61638         * gnulib-tool (func_import): Don't create the $docbase directory if
61639         there is no file to store there.
61640
61641 2006-07-29  Bruno Haible  <bruno@clisp.org>
61642
61643         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61644         relevant, look for configure.ac there, not in the current directory.
61645         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61646
61647 2006-07-29  Bruno Haible  <bruno@clisp.org>
61648
61649         * gnulib-tool (SORT): New variable.
61650         (func_usage): Undocument --assume-autoconf option.
61651         Remove --assume-autoconf option handling.
61652         (autoconf_minversion): Determine from the contents of configure.ac.
61653         (func_import): Remove autoconf_minversion handling.
61654         Suggested by Eric Blake.
61655
61656 2006-07-29  Bruno Haible  <bruno@clisp.org>
61657
61658         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61659
61660 2006-07-29  Bruno Haible  <bruno@clisp.org>
61661
61662         * config/srclist.txt (*setenv.[ch]): Remove rules.
61663
61664 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61665
61666         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61667
61668 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61669
61670         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61671         arpa/inet.h.
61672
61673 2006-07-28  Simon Josefsson  <jas@extundo.com>
61674
61675         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61676         * modules/inet_pton (Depends-on): Likewise.
61677
61678 2006-07-28  Simon Josefsson  <jas@extundo.com>
61679
61680         * m4/netinet_in_h.m4: New file.
61681
61682 2006-07-28  Simon Josefsson  <jas@extundo.com>
61683
61684         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61685         #include's.
61686
61687 2006-07-28  Simon Josefsson  <jas@extundo.com>
61688
61689         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61690         #include's.
61691
61692 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61693
61694         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61695         setgid on directories only if they set these bits.
61696         * lib/modechange.h: Remove obsolete comment about masks.
61697
61698 2006-07-28  Eric Blake  <ebb9@byu.net>
61699
61700         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61701         macro expansion.
61702
61703 2006-07-28  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61706
61707 2006-07-28  Bruno Haible  <bruno@clisp.org>
61708
61709         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61710
61711 2006-07-28  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61714         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61715         Define fallbacks.
61716         Avoids link error on FreeBSD 4.x.
61717         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61718
61719         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61720         encoding.
61721         * lib/mbswidth.c (iswcntrl): Likewise.
61722
61723 2006-07-27  Bruno Haible  <bruno@clisp.org>
61724
61725         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61726         test.
61727
61728 2006-07-27  Bruno Haible  <bruno@clisp.org>
61729
61730         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61731         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61732         defined.
61733
61734 2006-07-26  Eric Blake  <ebb9@byu.net>
61735
61736         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61737
61738 2006-07-26  Eric Blake  <ebb9@byu.net>
61739
61740         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61741         like mingw that lack mkstemp.
61742         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61743         avoid compilation warning on mingw.
61744
61745 2006-07-26  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61748         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61749         INT_FAST*_MIN, INTPTR_MIN.
61750
61751 2006-07-25  Bruno Haible  <bruno@clisp.org>
61752
61753         * modules/version-etc (Depends-on): Add stdarg.
61754
61755 2006-07-25  Bruno Haible  <bruno@clisp.org>
61756
61757         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61758         complex commands.
61759
61760 2006-07-25  Bruno Haible  <bruno@clisp.org>
61761
61762         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61763         defined in <stdarg.h> or config.h.
61764
61765 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61768         (gl_STDIO_SAFER): Remove.
61769
61770 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61771
61772         * MODULES.html.sh (File stream based Input/Output):
61773         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61774         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61775         * modules/fopen-safer, modules/tmpfile-safer: New files.
61776         * modules/stdio-safer: Remove.
61777
61778 2006-07-24  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/tmpdir: New file.
61781         * MODULES.html.sh (File system functions): Add it.
61782
61783 2006-07-24  Bruno Haible  <bruno@clisp.org>
61784
61785         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61786         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61787
61788 2006-07-24  Bruno Haible  <bruno@clisp.org>
61789
61790         * modules/clean-temp: New file.
61791
61792 2006-07-24  Bruno Haible  <bruno@clisp.org>
61793
61794         * m4/tmpdir.m4: New file, from GNU gettext.
61795
61796 2006-07-24  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/tmpdir.h: New file, from GNU gettext.
61799         * lib/tmpdir.c: New file, from GNU gettext.
61800
61801 2006-07-24  Bruno Haible  <bruno@clisp.org>
61802
61803         * lib/clean-temp.h: New file, from GNU gettext.
61804         * lib/clean-temp.c: New file, from GNU gettext.
61805
61806 2006-07-23  Eric Blake  <ebb9@byu.net>
61807
61808         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61809         (Depends-on): Add binary-io.
61810
61811 2006-07-23  Eric Blake  <ebb9@byu.net>
61812
61813         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61814
61815 2006-07-23  Eric Blake  <ebb9@byu.net>
61816
61817         * lib/tmpfile-safer.c: New file.
61818         * lib/stdio-safer.h (fopen_safer): Add prototype.
61819         * lib/stdio--.h (tmpfile): Make safer.
61820
61821 2006-07-23  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61824         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61825         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61826         gl_linked_remove_at): Use it.
61827
61828 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61829         and Simon Josefsson <jas@extundo.com>
61830
61831         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61832
61833         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61834
61835 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * modules/close-stream: New file.
61838         * modules/closeout (Description): Make it clear that it exits
61839         with a diagnostic on error.
61840         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61841         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61842
61843 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61844
61845         * m4/close-stream.m4: New file.
61846
61847 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * lib/close-stream.c, lib/close-stream.h: New files.
61850
61851 2006-07-22  Bruno Haible  <bruno@clisp.org>
61852
61853         Merge from GNU gettext 0.15.
61854
61855         2006-05-01  Bruno Haible  <bruno@clisp.org>
61856
61857                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61858
61859         2006-07-22  Bruno Haible  <bruno@clisp.org>
61860
61861                 * modules/javaversion: New file.
61862                 * MODULES.html.sh (Java): Add javaversion.
61863
61864         2006-03-12  Bruno Haible  <bruno@clisp.org>
61865
61866                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61867
61868         2005-12-04  Bruno Haible  <bruno@clisp.org>
61869
61870                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61871                 (untested).
61872
61873         2006-06-21  Bruno Haible  <bruno@clisp.org>
61874
61875                 Avoid warnings from recent versions of mcs.
61876                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61877                 -o, -L, -r any more. Use options documented since mcs-1.0
61878                 instead. Similarly for -g.
61879
61880         2005-12-04  Bruno Haible  <bruno@clisp.org>
61881
61882                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61883                 .resources, not .resource.
61884
61885         2005-07-09  Bruno Haible  <bruno@clisp.org>
61886
61887                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61888                 add a .dll suffix.
61889                 Reported by Mark Junker <mjscod@gmx.de>.
61890
61891         2006-07-22  Bruno Haible  <bruno@clisp.org>
61892
61893                 * modules/gettext: Upgrade to gettext-0.15.
61894                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61895                 m4/visibility.m4.
61896                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61897
61898 2006-07-22  Bruno Haible  <bruno@clisp.org>
61899
61900         Merge from GNU gettext 0.15.
61901
61902         2006-03-25  Bruno Haible  <bruno@clisp.org>
61903
61904                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61905
61906         2006-07-21  Bruno Haible  <bruno@clisp.org>
61907
61908                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61909                 "1.1".
61910
61911         2006-05-09  Bruno Haible  <bruno@clisp.org>
61912
61913                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61914                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61915                 for the conftestver execution.
61916
61917         2006-05-01  Bruno Haible  <bruno@clisp.org>
61918
61919                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61920                 optional target-version argument. Verify that the compiler
61921                 groks source of the specified source-version, or add -source
61922                 option as necessary. Verify that the compiler produces
61923                 bytecode in the specified target-version, or add -target and
61924                 -source options as necessary. Make the result of the test
61925                 available as variable CONF_JAVAC. Also log error output in
61926                 config.log.
61927
61928         2006-03-11  Bruno Haible  <bruno@clisp.org>
61929
61930                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61931
61932         2006-05-09  Bruno Haible  <bruno@clisp.org>
61933
61934                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61935                 CLASSPATH_SEPARATOR to a semicolon.
61936
61937         2006-03-12  Bruno Haible  <bruno@clisp.org>
61938
61939                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61940                 available as variable CONF_JAVA, for subsequent autoconf
61941                 tests. Also log error output in config.log.
61942
61943         2006-07-19  Bruno Haible  <bruno@clisp.org>
61944
61945                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61946                 that getline works on glibc2 systems. Needed to avoid trouble
61947                 in relocatable.c.
61948                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61949
61950         2005-12-04  Bruno Haible  <bruno@clisp.org>
61951
61952                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61953                 launcher (untested).
61954
61955         2005-12-04  Bruno Haible  <bruno@clisp.org>
61956
61957                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61958
61959         2006-07-22  Bruno Haible  <bruno@clisp.org>
61960
61961                 * gettext.m4: Update from GNU gettext-0.15.
61962                 * nls.m4: Likewise.
61963                 * po.m4: Likewise.
61964                 * inttypes-pri.m4: Likewise.
61965                 * inttypes-h.m4: Renamed from inttypes.m4.
61966                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61967
61968 2006-07-22  Bruno Haible  <bruno@clisp.org>
61969
61970         Merge from GNU gettext 0.15.
61971
61972         2005-07-05  Bruno Haible  <bruno@clisp.org>
61973
61974                 * printf-args.c (printf_fetchargs): Work around broken
61975                 definition of wint_t on mingw.
61976
61977         2005-02-12  Bruno Haible  <bruno@clisp.org>
61978
61979                 * xallocsa.h: Add extern "C" for C++.
61980
61981         2006-05-17  Bruno Haible  <bruno@clisp.org>
61982
61983                 Cygwin portability.
61984                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61985
61986         2006-04-30  Bruno Haible  <bruno@clisp.org>
61987
61988                 * progreloc.c: Include <mach-o/dyld.h> if available.
61989                 (find_executable): Use _NSGetExecutablePath when possible.
61990
61991         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61992
61993                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61994                 function.
61995
61996         2005-12-29  Bruno Haible  <bruno@clisp.org>
61997
61998                 * progreloc.c (set_program_name_and_installdir): Fix
61999                 compilation error.
62000
62001         2005-12-04  Bruno Haible  <bruno@clisp.org>
62002
62003                 Cygwin portability.
62004                 * progreloc.c: Include <windows.h> also on Cygwin.
62005                 (find_executable): Add support for Cygwin.
62006                 (set_program_name_and_installdir): Handle also platforms with
62007                 nonempty EXEEXT.
62008
62009         2006-07-11  Bruno Haible  <bruno@clisp.org>
62010
62011                 * javacomp.c: Fix a comment.
62012                 Reported by Jim Meyering.
62013
62014         2006-04-30  Bruno Haible  <bruno@clisp.org>
62015
62016                 * javacomp.h (compile_java_class): Add source_version,
62017                 target_version arguments.
62018                 * javacomp.c: Rewritten to choose only a compiler that
62019                 respects the specified source_version and target_version.
62020
62021         2006-06-27  Bruno Haible  <bruno@clisp.org>
62022
62023                 Assume correct S_ISDIR macro.
62024                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62025
62026         2006-07-22  Bruno Haible  <bruno@clisp.org>
62027
62028                 * javaversion.h: New file, from GNU gettext.
62029                 * javaversion.c: New file, from GNU gettext.
62030                 * javaversion.java: New file, from GNU gettext.
62031                 * javaversion.class: New file, from GNU gettext.
62032
62033         2006-05-17  Bruno Haible  <bruno@clisp.org>
62034
62035                 Cygwin portability.
62036                 * javaexec.c (execute_java_class): Test for jview program
62037                 also on Cygwin.
62038
62039         2006-04-09  Bruno Haible  <bruno@clisp.org>
62040
62041                 * fatal-signal.c: Don't include string.h.
62042                 (at_fatal_signal): Use a copying loop instead of memcpy.
62043
62044         2005-12-04  Bruno Haible  <bruno@clisp.org>
62045
62046                 * csharpexec.c: Add support for 'clix' launcher (untested).
62047                 (execute_csharp_using_sscli): New function.
62048                 (execute_csharp_program): Call it.
62049
62050         2006-06-21  Bruno Haible  <bruno@clisp.org>
62051
62052                 Avoid warnings from recent versions of mcs.
62053                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
62054                 -o, -L, -r any more. Use options documented since mcs-1.0
62055                 instead. Similarly for -g.
62056
62057         2005-07-09  Bruno Haible  <bruno@clisp.org>
62058
62059                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62060                 add a .dll suffix.
62061                 Reported by Mark Junker <mjscod@gmx.de>.
62062
62063         2006-06-17  Bruno Haible  <bruno@clisp.org>
62064
62065                 * config.charset: Update for NetBSD 3.0.
62066
62067         2006-05-17  Bruno Haible  <bruno@clisp.org>
62068
62069                 Cygwin portability.
62070                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62071
62072         2006-05-16  Bruno Haible  <bruno@clisp.org>
62073
62074                 * localcharset.c [CYGWIN]: Include <windows.h>.
62075                 (get_charset_aliases): For Cygwin, return the same CPxxx
62076                 aliases list as under WIN32.
62077                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62078                 the environment variables. Fall back to GetACP().
62079
62080         2006-04-05  Bruno Haible  <bruno@clisp.org>
62081
62082                 * config.charset: Update Juan Manuel Guerrero's address.
62083
62084         2005-02-12  Bruno Haible  <bruno@clisp.org>
62085
62086                 * allocsa.h: Add extern "C" for C++.
62087
62088         2005-02-10  Bruno Haible  <bruno@clisp.org>
62089
62090                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62091                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62092
62093         2006-07-22  Bruno Haible  <bruno@clisp.org>
62094
62095                 * gettext.h: Update to GNU gettext-0.15.
62096
62097 2006-07-22  Bruno Haible  <bruno@clisp.org>
62098
62099         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62100         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62101         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62102
62103 2006-07-21  Eric Blake  <ebb9@byu.net>
62104
62105         * modules/stdlib-safer: New file.
62106         * MODULES.html.sh (File stream based Input/Output): Add
62107         stdlib-safer.
62108
62109 2006-07-21  Eric Blake  <ebb9@byu.net>
62110
62111         * lib/stdlib-safer.h: New file from coreutils, required by
62112         stdlib--.h.
62113
62114 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62117
62118 2006-07-20  Bruno Haible  <bruno@clisp.org>
62119
62120         * gnulib-tool: Recognize new option --assume-autoconf.
62121         (autoconf_minversion): New variable.
62122         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62123
62124 2006-07-20  Bruno Haible  <bruno@clisp.org>
62125
62126         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62127
62128 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62129
62130         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62131         Reindent and repaginate.
62132
62133 2006-07-19  Derek Price  <derek@ximbiot.com>
62134
62135         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62136         Correct grammar.
62137
62138 2006-07-17  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/list: New file.
62141         * modules/array-list: New file.
62142         * modules/carray-list, modules/carray-list-tests: New files.
62143         * modules/linked-list, modules/linked-list-tests: New files.
62144         * modules/avltree-list, modules/avltree-list-tests: New files.
62145         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62146         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62147         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62148         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62149         * modules/oset: New file.
62150         * modules/array-oset: New file.
62151         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62152         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62153         * tests/test-carray_list.c: New file.
62154         * tests/test-linked_list.c: New file.
62155         * tests/test-avltree_list.c: New file.
62156         * tests/test-rbtree_list.c: New file.
62157         * tests/test-linkedhash_list.c: New file.
62158         * tests/test-avltreehash_list.c: New file.
62159         * tests/test-rbtreehash_list.c: New file.
62160         * tests/test-avltree_oset.c: New file.
62161         * tests/test-rbtree_oset.c: New file.
62162         * MODULES.html.sh (Container data structures): New section.
62163
62164 2006-07-17  Bruno Haible  <bruno@clisp.org>
62165
62166         * m4/gl_list.m4: New file.
62167
62168 2006-07-17  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/gl_list.h: New file.
62171         * lib/gl_list.c: New file.
62172         * lib/gl_array_list.h: New file.
62173         * lib/gl_array_list.c: New file.
62174         * lib/gl_carray_list.h: New file.
62175         * lib/gl_carray_list.c: New file.
62176         * lib/gl_linked_list.h: New file.
62177         * lib/gl_linked_list.c: New file.
62178         * lib/gl_anylinked_list1.h: New file.
62179         * lib/gl_anylinked_list2.h: New file.
62180         * lib/gl_avltree_list.h: New file.
62181         * lib/gl_avltree_list.c: New file.
62182         * lib/gl_anyavltree_list1.h: New file.
62183         * lib/gl_anyavltree_list2.h: New file.
62184         * lib/gl_rbtree_list.h: New file.
62185         * lib/gl_rbtree_list.c: New file.
62186         * lib/gl_anyrbtree_list1.h: New file.
62187         * lib/gl_anyrbtree_list2.h: New file.
62188         * lib/gl_anytree_list1.h: New file.
62189         * lib/gl_anytree_list2.h: New file.
62190         * lib/gl_linkedhash_list.h: New file.
62191         * lib/gl_linkedhash_list.c: New file.
62192         * lib/gl_anyhash_list1.h: New file.
62193         * lib/gl_anyhash_list2.h: New file.
62194         * lib/gl_avltreehash_list.h: New file.
62195         * lib/gl_avltreehash_list.c: New file.
62196         * lib/gl_rbtreehash_list.h: New file.
62197         * lib/gl_rbtreehash_list.c: New file.
62198         * lib/gl_anytreehash_list1.h: New file.
62199         * lib/gl_anytreehash_list2.h: New file.
62200
62201         * lib/gl_oset.h: New file.
62202         * lib/gl_oset.c: New file.
62203         * lib/gl_array_oset.h: New file.
62204         * lib/gl_array_oset.c: New file.
62205         * lib/gl_avltree_oset.h: New file.
62206         * lib/gl_avltree_oset.c: New file.
62207         * lib/gl_rbtree_oset.h: New file.
62208         * lib/gl_rbtree_oset.c: New file.
62209         * lib/gl_anytree_oset.h: New file.
62210
62211 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         * m4/mkancesdirs.m4: New file.
62214         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62215         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62216         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62217         it.
62218
62219 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62222         * lib/mkancesdirs.h: New files.
62223         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62224         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62225         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62226         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62227         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62228         callers changed.  Revamp internals significantly, by not
62229         attempting to create directories that are temporarily more
62230         permissive than the final results.  Do not attempt to use
62231         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62232         This removes some race conditions, fixes some bugs, and simplifies
62233         things.  Use new dirchownmod function to do owner and mode changes.
62234         * lib/mkdir-p.h: Likewise.
62235         * lib/modechange.c (octal_to_mode): New function.
62236         (struct mode_change): New member mentioned.
62237         (make_node_op_equals): New arg mentioned.  All callers changed.
62238         (mode_compile): Keep track of which mode bits the user has explicitly
62239         mentioned.
62240         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62241         New arg PMODE_BITS, to keep track of which mode bits the user
62242         mentioned; it treats S_ISUID and S_ISGID speciall.
62243         All callers changed.
62244         * lib/modechange.h: Likewise.
62245
62246 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         * MODULES.html.sh: Add mkancestors.
62249         * modules/mkancesdirs: New module.
62250         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62251         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62252         The chdir-safer and afs files are now orphans; I'll remove them
62253         unless someone speaks up.
62254         Add lib/dirchownmod.c, lib/dirchownmod.h.
62255         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62256         Add lchown, mkancesdirs.
62257         (Maintainer): Add self.
62258
62259 2006-07-15  Karl Berry  <karl@gnu.org>
62260
62261         * gnulib-tool: help message wording/arrangement.
62262
62263 2006-07-14  Simon Josefsson  <jas@extundo.com>
62264
62265         * doc/gnulib.texi (Libtool and Windows): New section.
62266
62267 2006-07-12  Simon Josefsson  <jas@extundo.com>
62268
62269         * modules/gendocs (License): Fix license, approved by Karl.
62270
62271 2006-07-12  Eric Blake  <ebb9@byu.net>
62272
62273         * MODULES.html.sh: Add gendocs.
62274
62275 2006-07-11  Eric Blake  <ebb9@byu.net>
62276
62277         * modules/fdl: New module, to install doc/fdl.texi.
62278         * MODULES.html.sh: Add new section for documentation modules.
62279         * gnulib-tool: Avoid space-tab.
62280         (--doc-base): New option, to manage files from doc.
62281
62282 2006-07-11  Eric Blake  <ebb9@byu.net>
62283
62284         * m4/absolute-header.m4: Fix comments to match recent change.
62285
62286 2006-07-11  Eric Blake  <ebb9@byu.net>
62287
62288         * gnulib-tool: List --doc-base before --tests-base.
62289
62290 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62291
62292         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62293
62294 2006-07-11  Bruno Haible  <bruno@clisp.org>
62295
62296         * README: Mention where to put documentation.
62297
62298 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62299
62300         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62301
62302 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62303
62304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62305         to stdint.m4.
62306
62307 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62310         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62311         "no/such/file/stdint.h" when there is no such file, so that
62312         the resulting C code can be parsed by dodgy compilers.
62313         Problems reported by Bob Proulx.
62314
62315 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62316
62317         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62318         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62319         macros into the GNU _D_EXACT_NAMLEN.
62320         * lib/savedir.c:  Likewise.
62321         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62322
62323 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62324         and Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62327         * m4/savedir.m4:
62328         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62329         macros into the GNU _D_EXACT_NAMLEN.
62330
62331 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62334         around the absolute name, to work around a problem with the HP-UX
62335         11.23 native C compiler, reported by Bob Proulx.
62336
62337 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         * doc/maintain.texi, make-stds.texi: Sync from
62340         <http://savannah.gnu.org/projects/gnustandards>.
62341
62342 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62345
62346 2006-07-09  Jim Meyering  <jim@meyering.net>
62347
62348         * m4/glob.m4: Remove a doubled word in a comment.
62349
62350 2006-07-09  Jim Meyering  <jim@meyering.net>
62351
62352         * lib/argp-pv.c: Remove a doubled word in a comment.
62353         * lib/check-version.c (check_version): Likewise.
62354         * lib/javacomp.c (compile_java_class): Likewise.
62355
62356 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62359         for the benefit of people using Autoconf 2.60.  If you want to
62360         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62361         (or m4/onceonly.m4, if pre-2.57) manually.
62362
62363 2006-07-08  Jim Meyering  <jim@meyering.net>
62364
62365         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62366         comment.
62367         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62368         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62369         comment.
62370
62371 2006-07-08  Jim Meyering  <jim@meyering.net>
62372
62373         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62374
62375 2006-07-07  Simon Josefsson  <jas@extundo.com>
62376
62377         * tests/test-crc.c: Change expected crc value, the test vector
62378         were probably computed using the old broken crc.c?
62379
62380 2006-07-06  Simon Josefsson  <jas@extundo.com>
62381
62382         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62383         now the canonical place for the M4 file).
62384
62385         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62386         from the sys_socket dependency now.
62387
62388         * modules/inet_pton (Files): Ditto.
62389
62390         * modules/inet_ntop (Files): Ditto.
62391
62392 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62393
62394         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62395         not gl_PREREQ_GETUSERSHELL.
62396
62397 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62398
62399         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62400         with only one argument, for Autoconf 2.60.
62401         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62402         expand to nothing, so add a shell command to avoid syntax error.
62403         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62404
62405 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62406
62407         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62408
62409 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62412         no longer needed.  Check for isblank decl.
62413         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62414         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62415         of existence.
62416
62417 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * lib/getloadavg.c: Use __VMS, not VMS.
62420         * lib/getopt.c: Likewise.
62421         * lib/getpagesize.h: Likewise.
62422         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62423         and probably does not work.
62424
62425 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62426
62427         * lib/.cppi-disable: Add wcwidth.
62428         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62429         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62430         (ISGRAPH): Remove.  All uses changed to isgraph.
62431         (FOLD) [!defined _LIBC]: Remove special case.
62432         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62433         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62434         HAVE_ISBLANK.
62435         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62436         case.
62437
62438 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62439
62440         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62441         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62442         brackets.  Other minor changes to suppress some compiler
62443         warnings.
62444
62445 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62446         and Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62449         of invoking obsolescent AC_HEADER_DIRENT macro.
62450         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62451         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62452         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62453         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62454         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62455         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62456         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62457         * m4/readdir.m4: Remove; no longer needed.
62458
62459 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62460         and Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62463         Don't worry about this obsolete case any more.
62464         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62465         directories.
62466         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62467         worry about this obsolete case any more.
62468         * lib/fts.c: Likewise.
62469         * lib/getcwd.c: Likewise.
62470         * lib/glob.h: Likewise.
62471         * lib/savedir.c: Likewise.
62472
62473 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62476         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62477         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62478         needed.
62479         All uses removed.
62480         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62481         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62482         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62483         needed.
62484         * m4/getdate.m4 (gl_GETDATE): Likewise.
62485         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62486         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62487         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62488         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62489         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62490         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62491         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62492         needed.
62493
62494 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         * lib/memcasecmp.c: Include <limits.h>.
62497         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62498         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62499         Don't assume isdigit succeeds only on '0' through '9'.
62500
62501 2006-07-05  Eric Blake  <ebb9@byu.net>
62502
62503         * modules/getaddrinfo (Depends-on): Add snprintf.
62504
62505 2006-07-05  Eric Blake  <ebb9@byu.net>
62506
62507         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62508         to avoid 'header present but could not be compiled' on cygwin.
62509
62510 2006-07-05  Eric Blake  <ebb9@byu.net>
62511
62512         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62513         missing from netdb.h.
62514         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62515
62516 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62517
62518         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62519         no longer needed.
62520         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62521         * m4/getdate.m4 (gl_GETDATE): Likewise.
62522         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62523         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62524         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62525         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62526         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62527
62528 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62529
62530         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62531         All uses of is_space replaced by isspace.
62532         * lib/exit.h: Don't talk about STDC_HEADERS.
62533         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62534         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62535         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62536         replaced by isprint etc.
62537         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62538         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62539         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62540         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62541         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62542         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62543
62544 2006-07-05  Bruno Haible  <bruno@clisp.org>
62545
62546         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62547         the function exists, before testing against AIX.
62548         Reported by Martin Lambers <marlam@marlam.de>.
62549
62550 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62551
62552         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62553         From Mark D. Baushke.
62554
62555 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62558         to the absolute name, not just one, to bypass Sun C 5.8's
62559         "warning: #include of /usr/include/... may be non-portable".
62560
62561 2006-07-04  Eric Blake  <ebb9@byu.net>
62562
62563         * modules/dirname-tests: New test module.
62564         * tests/test-dirname.c: New file, replacing dirname.c
62565         TEST_DIRNAME section that was recently deleted.
62566
62567 2006-07-04  Bruno Haible  <bruno@clisp.org>
62568
62569         Assume ANSI C header files and <ctype.h> functions.
62570         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62571         (mbsnwidth): Use isprint, iscntrl instead.
62572
62573 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         Merge from coreutils.
62576         * MODULES.html.sh: Add xstrtold.
62577         * modules/xstrtold: New file.
62578         * modules/cycle-check (Files): Add lib/same-inode.h.
62579         * modules/dirname (Files): Add m4/double-slash-root.m4.
62580         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62581         * modules/mkdir-p (Files): Add lib/same-inode.h.
62582         * modules/same (Files): Add lib/same-inode.h.
62583
62584 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62587         This is to keep the terminology clean; POSIX talks about
62588         "absolute pathnames", not "full pathnames", but the GNU
62589         Coding Standards say to use "path" for something else;
62590         so use "absolute" to keep both sides happy.
62591         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62592         Set gl_absolute_header, not gl_full_header_path.
62593         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62594         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62595         All uses changed.
62596
62597         Merge from coreutils.
62598
62599         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62602         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62603         want to require the building of c-strtod.o.
62604         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62605         needs -lm directly.
62606         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62607
62608         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62609
62610         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62611         --as-needed option if available.  Problem reported by Albert Chin in
62612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62613         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62614         cc merely issues a bunch of annoying warnings for --as-needed
62615         (this problem was reported by Bob Proulx).  Also, try linking with
62616         -lm to detect a bug in binutils 2.16 (this problem was reported
62617         by Ralf Wildenhues).
62618
62619         2006-06-18  Jim Meyering  <jim@meyering.net>
62620
62621         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62622         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62623         macro.
62624         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62625         also check for glibc-2.4's abort-inducing bug.
62626
62627         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62628         Low-probability clean-up should be to use rmdir to get rid of
62629         the just-created directory, not unlink.
62630
62631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62632         configure fail, and request a bug report to inform us about it.
62633         Add a comment that, barring reports to the contrary, in 2007 we'll
62634         assume ftruncate is universally available.
62635
62636         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62637
62638         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62639
62640         2006-03-12  Jim Meyering  <jim@meyering.net>
62641
62642         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62643         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62644         * m4/same.m4 (gl_SAME): Likewise.
62645         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62646
62647         2006-03-11  Eric Blake  <ebb9@byu.net>
62648
62649         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62650         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62651         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62652         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62653
62654 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62657         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62658         reported by Mark D. Baushke, one in
62659         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62660
62661         Merge from coreutils.
62662
62663         * lib/.cppi-disable: Add stdint_.h.
62664         * lib/.cvsignore: Add stdint.h.
62665
62666         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62669         both double and long double versions.
62670         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62671         * lib/xstrtold.c: New file.
62672         * lib/xstrtod.h (xstrtold): New decl.
62673
62674         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62675
62676         * lib/filemode.c (setst): Remove.
62677         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62678         (arguably) clearer, and the generated code is a bit smaller on my
62679         Debian GNU/Linux stable x86 host.
62680
62681         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62682
62683         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62684         Assume that filemode.h includes sys/types.h and sys/stat.h.
62685         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62686         (ftypelet): Reorder to put common cases first, for efficiency.
62687         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62688         to do 'M'.
62689         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62690         of 10, for compatibility with FreeBSD.  All callers changed.
62691         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62692         types that can't be deduced solely from st_mode.  First arg is now a
62693         const pointer.
62694         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62695         (strmode): Renamed from mode_string.
62696         (filemodestring): New decl.
62697         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62698         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62699         needed.
62700         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62701
62702         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62703
62704         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62705         fsusage.h now does that.  Include fsusage.h first, to test interface.
62706         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62707         at most one method (the old code could have generated decls that
62708         didn't conform to C89, not that this was ever exercised).
62709         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62710
62711         2006-03-19  Jim Meyering  <jim@meyering.net>
62712
62713         Work even in a chroot where d_ino values for entries in "/"
62714         don't match the stat.st_ino values for the same names.
62715         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62716         number, iterate through all entries again, using lstat instead.
62717         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62718         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62719
62720         * lib/getcwd.c (__getcwd): Clarify a comment.
62721         Use memcpy in place of a call to strcpy.
62722
62723         2006-03-12  Jim Meyering  <jim@meyering.net>
62724
62725         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62726         matches that of the current directory (which we're about to chdir ".."
62727         out of), then save the dev-ino of the parent, instead.
62728
62729         * lib/same-inode.h (SAME_INODE): New file/macro.
62730         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62731         Include "same-inode.h", instead.
62732         * lib/same.c: Likewise.
62733         * lib/cycle-check.h: Include "same-inode.h".
62734         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62735         * lib/cycle-check.c (SAME_INODE): Remove definition.
62736         * lib/root-dev-ino.h: Include "same-inode.h".
62737
62738         2006-03-11  Eric Blake  <ebb9@byu.net>
62739
62740         * lib/same.c (same_name): s/base_name/last_component/
62741         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62742         * lib/filenamecat.c (file_name_concat): Likewise.
62743
62744         2006-03-11  Eric Blake  <ebb9@byu.net>,
62745                     Paul Eggert  <eggert@cs.ucla.edu>
62746
62747         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62748         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62749         drive prefix.
62750         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62751         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62752         (last_component): New method.
62753         * lib/dirname.c (dir_len): Determine when drive letters need a
62754         subsequent slash.  Preserve // when it is special.
62755         (dir_name): Don't append dot when drive letter is absolute.
62756         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62757         * lib/basename.c (base_name): New semantics - malloc the result.
62758         Preserve // when it is special.  Preserve relative files that look
62759         like drive letters.
62760         (base_len): Preserve // when it is special.
62761         (last_component): New method, similar to old base_name semantics.
62762         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62763         base_name.  Strip redundant slashes from ///.
62764
62765 2006-07-03  Jim Meyering  <jim@meyering.net>
62766
62767         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62768         macro is used before the first cycle_check call.
62769
62770 2006-07-03  Eric Blake  <ebb9@byu.net>
62771
62772         * modules/dirname (Depends-on): Add xstrndup.
62773
62774 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62775
62776         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62777         test cases, so that config.log is a bit easier to follow.
62778
62779 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62782         both are 64 bits, since this seems to be the tradition, and this
62783         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62784         we ever run into a host that prefers long long to long in this
62785         case, we'll need another configure-time test.  Problem reported by
62786         Jim Meyering.
62787
62788 2006-07-02  Eric Blake  <ebb9@byu.net>
62789
62790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62791
62792 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62793
62794         * modules/inttypes (Depends-on): No longer depends on stdint.
62795         * modules/stdint (Description): Say more about assumptions.
62796         Say that the fast types might differ.  Say macros are used.
62797         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62798         (Makefile.am): Revise list of substituted symbols to match
62799         new stdint.m4.
62800         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62801         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62802         * tests/test-stdint.c (verify_same_types)
62803         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62804         the code conforms to C99/C89.
62805         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62806         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62807
62808 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62811         but fix a bug, by requiring at least 64 bits.
62812         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62813         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62814         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62815         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62816
62817         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62818         changes.  Make 2.59 a prerequisite.  Check and substitute for
62819         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62820         inttypes.h.  Do not use special include files; just use the
62821         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62822         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62823         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62824         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62825         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62826         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62827         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62828         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62829         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62830         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62831         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62832         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62833         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62834         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62835         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62836         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62837         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62838         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62839         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62840         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62841         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62842         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62843         not check for things that C99 does not require, e.g., int8_t.  If
62844         a test isn't needed unless <stdint.h> isn't working, and is
62845         unlikely to be needed for any other reason, then don't do it
62846         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62847         size_t, since we assume C89 freestanding at least.  Do not check
62848         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62849         the right thing even if the types are not defined.  Instead use:
62850         (gl_STDINT_TYPE_PROPERTIES): New macro.
62851         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62852         testing whether <sys/types.h> clashes, as Autoconf does this for
62853         us now.  All uses removed.
62854         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62855         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62856         (gl_CHECK_TYPE_SAME):
62857         Remove; no longer needed.
62858         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62859         exists, since we'll return 0 anyway in that case.
62860         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62861
62862 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62863
62864         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62865         possible collision with system files.
62866         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62867         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62868         WCHAR_MIN and WCHAR_MAX in this case.
62869         (<stddef.h>): Do not include; no longer needed.
62870         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62871         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62872         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62873         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62874         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62875         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62876         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62877         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62878         !defined(__c99))]: Include in this case too, since it's harmless
62879         now.
62880         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62881         dangerous to do so.
62882         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62883         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62884         (_STDINT_MIN, _STDINT_MAX): New macros.
62885         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62886         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62887         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62888         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62889         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62890         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62891         macros, not typedefs; this simplifies things quite a bit.
62892         Use long int for all types narrower than int64_t.
62893         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62894         Define in terms of long long int or int64_t or long int,
62895         not int64_t or int32_t.  This saves some compile-time testing.
62896         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62897         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62898         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62899         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62900         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62901         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62902         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62903         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62904         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62905         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62906         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62907         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62908         undef any previous version and define our own version, for
62909         simplicity and consistency with the new macros for types.
62910         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62911         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62912         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62913         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62914         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62915         @WINT_T_SUFFIX@ to keep things simple here.
62916         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62917         Simplify by assuming typical 8/16/32/64 host, since we're
62918         already doing that elsewhere anyway.
62919         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62920         and assume long long int is 64 bits if available.  This
62921         speeds up 'configure'.
62922
62923 2006-07-01  Eric Blake  <ebb9@byu.net>
62924
62925         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62926         Reported by Andreas Buening.
62927
62928 2006-07-01  Eric Blake  <ebb9@byu.net>
62929
62930         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62931
62932 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62933
62934         * lib/getaddrinfo.c: fixed typo
62935
62936 2006-06-29  Jim Meyering  <jim@meyering.net>
62937
62938         * modules/strftime (Maintainer): Add my name, since with the
62939         FPRINTFTIME changes strftime.c has forked from glibc.
62940
62941 2006-06-29  Eric Blake  <ebb9@byu.net>
62942
62943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62944
62945 2006-06-29  Eric Blake  <ebb9@byu.net>
62946
62947         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62948
62949 2006-06-29  Eric Blake  <ebb9@byu.net>
62950
62951         * lib/stat_.h: New file.
62952
62953 2006-06-29  Eric Blake  <ebb9@byu.net>
62954
62955         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62956         unused static function.
62957
62958 2006-06-29  Eric Blake  <ebb9@byu.net>
62959
62960         * doc/functions.texi (Function Portability): Document missing lstat
62961         on mingw.
62962
62963 2006-06-29  Eric Blake  <ebb9@byu.net>
62964
62965         * MODULES.html.sh: Add sys_stat.
62966         * modules/sys_stat: New module.
62967         * modules/mkstemp (Depends-on): Add sys_stat.
62968
62969 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62970
62971         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62972
62973 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62974
62975         * m4/c-bs-a.m4: Removed.
62976
62977 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62978
62979         * lib/strftime.c: Assume strftime() exists.
62980
62981 2006-06-29  Derek Price  <derek@ximbiot.com>
62982
62983         * modules/c-bs-a: Removed - \a is C89.
62984         * MODULES.html.sh: Remove c-bs-a.
62985
62986 2006-06-29  Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/wcwidth (License): Change to LGPL.
62989
62990 2006-06-28  Simon Josefsson  <jas@extundo.com>
62991
62992         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62993         on _WIN32.
62994
62995         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62996         getnameinfo.
62997
62998 2006-06-28  Simon Josefsson  <jas@extundo.com>
62999
63000         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63001
63002 2006-06-28  Simon Josefsson  <jas@extundo.com>
63003
63004         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63005         functions there.  It will succeed on Windows XP, but on Windows
63006         2000 and (presumably) earlier, it will fail, and use the internal
63007         re-implementation.
63008         (use_win32_p): New function.
63009         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63010         Support AI_NUMERICSERV to disable getservbyname.
63011         (getnameinfo): New function, only supports
63012         NI_NUMERICHOST|NI_NUMERICSERV for now.
63013
63014         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63015         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63016         getnameinfo.
63017
63018 2006-06-28  Eric Blake  <ebb9@byu.net>
63019
63020         * modules/wcwidth: New file.
63021         * modules/mbchar (Depends-on): Add wcwidth.
63022         * modules/mbswidth (Depends-on): Add wcwidth.
63023         * MODULES.html.sh: Add wcwidth.
63024
63025 2006-06-28  Eric Blake  <ebb9@byu.net>
63026
63027         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63029
63030 2006-06-28  Eric Blake  <ebb9@byu.net>
63031
63032         * lib/xvasprintf.h: Fix comments.
63033
63034 2006-06-28  Eric Blake  <ebb9@byu.net>
63035
63036         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63037         * lib/mbswidth.c (wcwidth): Move from here...
63038         * lib/wcwidth.h: ...to this new file.
63039
63040 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63041
63042         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63043
63044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63045         it's obsolete.
63046         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
63047
63048 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63049
63050         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
63051         Autoconf 2.60 says this stuff was obsolete.
63052
63053 2006-06-28  Bruno Haible  <bruno@clisp.org>
63054
63055         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63056
63057 2006-06-28  Bruno Haible  <bruno@clisp.org>
63058
63059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63060         gt_TYPE_WCHAR_T.
63061
63062 2006-06-28  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63065         declaration for wcwidth.
63066         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63067
63068 2006-06-28  Bruno Haible  <bruno@clisp.org>
63069
63070         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63071         (mkdir): Define using _mkdir.
63072
63073 2006-06-28  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/getaddrinfo.h: Fix POSIX URL.
63076         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63077         _WIN32.
63078         (use_win32_p): Make static.
63079         (getaddrinfo): Reject service name if it is empty or does not consist
63080         solely of decimal digits, or if its value is > 65535.
63081         (getnameinfo): Remove useless casts.
63082
63083 2006-06-27  Simon Josefsson  <jas@extundo.com>
63084
63085         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63086         Eggert and Martin Lambers.
63087
63088 2006-06-27  Simon Josefsson  <jas@extundo.com>
63089
63090         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63091         Eggert and Martin Lambers.
63092
63093 2006-06-27  Bruno Haible  <bruno@clisp.org>
63094
63095         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63096         result to 0, not to empty.
63097         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63098
63099 2006-06-27  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63102
63103 2006-06-26  Simon Josefsson  <jas@extundo.com>
63104
63105         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63106         present.
63107
63108 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63109
63110         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63111         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63113
63114 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63115
63116         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63117
63118 2006-06-26  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63121
63122 2006-06-26  Bruno Haible  <bruno@clisp.org>
63123
63124         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63125
63126 2006-06-26  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63129         SGI C compiler in pre-C99 mode.
63130         Suggested by Mark D. Baushke and Larry Jones.
63131
63132 2006-06-26  Bruno Haible  <bruno@clisp.org>
63133
63134         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63135         WCHAR_MAX.
63136         Reported by Mark D. Baushke and Larry Jones.
63137
63138 2006-06-26  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63141         in pre-C99 mode.
63142         Suggested by Mark D. Baushke and Larry Jones.
63143
63144 2006-06-23  Simon Josefsson  <jas@extundo.com>
63145             Bruno Haible  <bruno@clisp.org>
63146
63147         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63148         Emit mostlyclean-local rule.
63149         (func_emit_tests_Makefile_am): Likewise.
63150         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63151
63152 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63153
63154         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63155
63156 2006-06-23  Bruno Haible  <bruno@clisp.org>
63157
63158         * tests/test-stdint.c: Update to match ISO C 99 Technical
63159         Corrigendum 1.
63160
63161 2006-06-23  Bruno Haible  <bruno@clisp.org>
63162
63163         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63164
63165 2006-06-23  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/stdint_.h: Treat IRIX like OpenBSD.
63168
63169 2006-06-23  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63172         ISO C 99 Technical Corrigendum 1.
63173
63174 2006-06-22  Simon Josefsson  <jas@extundo.com>
63175
63176         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63177         MinGW.
63178
63179 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63182         needed.  Some compiler complained about some of them.  Problem reported
63183         by Larry Jones in
63184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63185
63186 2006-06-21  Simon Josefsson  <jas@extundo.com>
63187
63188         * tests/test-getaddrinfo.c: New file.
63189
63190         * modules/getaddrinfo-tests: New file.
63191
63192         * MODULES.html.sh: Add inet_pton.
63193
63194         * modules/inet_pton: New file.
63195
63196 2006-06-21  Simon Josefsson  <jas@extundo.com>
63197
63198         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63199         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63200         of using the (limited) gnulib implementation on Windows XP.
63201
63202         * m4/inet_pton.m4: New file.
63203
63204 2006-06-21  Simon Josefsson  <jas@extundo.com>
63205
63206         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63207         variable.
63208
63209         * lib/socket_.h: Don't define WINVER.
63210
63211         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63212         slightly modified to work in gnulib.
63213
63214 2006-06-21  Simon Josefsson  <jas@extundo.com>
63215
63216         * doc/gnulib.texi (Windows sockets): Add.
63217
63218 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * lib/read-file.c (fread_file): Start with buffer allocation of
63221         0 bytes rather than 1 byte; this simplifies the code.
63222         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63223         code to free buffer and save/restore errno.
63224         (internal_read_file): Remove unused local.
63225
63226 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63229         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63230         Problem reported by Denis Excoffier in
63231         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63232
63233 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63234
63235         * modules/sys_socket, modules/socklen: Include sys/types since
63236         FreeBSD 4.x's sys/socket.h needs it.
63237
63238 2006-06-19  Simon Josefsson  <jas@extundo.com>
63239
63240         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63241
63242 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63245
63246 2006-06-19  Bruno Haible  <bruno@clisp.org>
63247
63248         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63249         and FULL_PATH_INTTYPES_H in angle brackets.
63250         Reported by Mark D. Baushke <mdb@gnu.org>.
63251
63252 2006-06-17  Eric Blake  <ebb9@byu.net>
63253
63254         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63255         errno.
63256
63257 2006-06-17  Bruno Haible  <bruno@clisp.org>
63258
63259         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63260         <sys/inttypes.h>.
63261
63262 2006-06-17  Bruno Haible  <bruno@clisp.org>
63263
63264         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63265         whether errno is declared. Assume <errno.h> declares errno.
63266
63267 2006-06-17  Bruno Haible  <bruno@clisp.org>
63268
63269         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63270
63271 2006-06-17  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63274         problem on Solaris 2.5.1.
63275
63276 2006-06-16  Eric Blake  <ebb9@byu.net>
63277
63278         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63279         * lib/unicodeio.c [!defined errno]: Likewise.
63280         * lib/strtol.c [!defined errno]: Likewise.
63281         * lib/strtod.c [!defined errno]: Likewise.
63282
63283 2006-06-15  Eric Blake  <ebb9@byu.net>
63284
63285         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63286
63287 2006-06-15  Eric Blake  <ebb9@byu.net>
63288
63289         * config/srclist.txt (ssize_t.m4): Lose sync.
63290
63291 2006-06-15  Bruno Haible  <bruno@clisp.org>
63292
63293         * modules/stdint (Files): Include m4/full-header-path.m4,
63294         m4/size_max.m4, m4/wchar_t.m4.
63295         (Makefile.am): Many more substitutions.
63296         * modules/stdint-tests: New file.
63297         * tests/test-stdint.c: New file.
63298
63299 2006-06-15  Bruno Haible  <bruno@clisp.org>
63300
63301         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63302         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63303         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63304         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63305         gl_CHECK_TYPE_SAME): New macros.
63306
63307 2006-06-15  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63310
63311 2006-06-15  Bruno Haible  <bruno@clisp.org>
63312
63313         * lib/stdint_.h: Rewritten to be fully auto-configured.
63314         Fixes bug on HP-UX/IA64.
63315
63316 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         * lib/getdate.y (__attribute__): Don't define if already defined.
63319         Problem reported by Larry Jones.
63320         * lib/utimens.c (__attribute__): Likewise.
63321
63322 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63325         reported by Andreas Schwab.
63326
63327 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63328             Bruno Haible  <bruno@clisp.org>
63329
63330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63331         check for the declaration of strnlen and a run test that exposes the
63332         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63333         rpl_strndup.
63334
63335 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63336             Bruno Haible  <bruno@clisp.org>
63337
63338         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63339
63340 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63341
63342         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63343         compile test, for Tru64 4.0D.
63344
63345 2006-05-28  Karl Berry  <karl@gnu.org>
63346
63347         * config/srclist.txt (printf-args.c): lose sync.
63348
63349 2006-05-26  Martin Lambers  <marlam@marlam.de>
63350
63351         * lib/getpass.c: Updates the test for the native W32 API, and adds
63352         missing includes, thus fixing compilation warnings.
63353
63354 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63355
63356         * lib/exclude.c (exclude_fnmatch): New function.
63357         (excluded_file_name): Call exclude_fnmatch.
63358         * lib/exclude.h (excluded_file_name): New prototype
63359
63360 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/tempname.c (small_open, large_open): New macros.
63363         (__open, __open64) [!_LIBC]: Remove.
63364         (__gen_tempname): Use small_open and large_open instead of __open
63365         and __open64.  This fixes a portability bug on HP-UX 11.11i
63366         reported by Simon Wing-Tang in
63367         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63368
63369 2006-05-24  Bruno Haible  <bruno@clisp.org>
63370
63371         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63372         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63373         Reported by Thorsten Maerz <torte@netztorte.de> via
63374         Aaron Stone <aaron@serendipity.cx>.
63375
63376 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63379         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63380         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63381         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63382         not really conditional on the cache.
63383         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63384
63385 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63388         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63389         (my_usleep): Don't mishandle maximum value.
63390
63391 2006-05-19  Jim Meyering  <jim@meyering.net>
63392
63393         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63394
63395 2006-05-17  Bruno Haible  <bruno@clisp.org>
63396
63397         Cygwin portability.
63398         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63399
63400 2006-05-17  Bruno Haible  <bruno@clisp.org>
63401
63402         * lib/stdint_.h: Fix recognition of Cygwin.
63403
63404 2006-05-15  Bruno Haible  <bruno@clisp.org>
63405
63406         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63407         on libtool patch by Ralf Wildenhues.
63408
63409 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63410
63411         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63412         test for C99 conformance; (bool) 0.5 is an integer constant
63413         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63414         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63415
63416 2006-05-11  Simon Josefsson  <jas@extundo.com>
63417
63418         * m4/xvasprintf.m4: Fix obvious typo.
63419
63420 2006-05-11  Jim Meyering  <jim@meyering.net>
63421
63422         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63423         James Lemley.
63424
63425 2006-05-10  Simon Josefsson  <jas@extundo.com>
63426
63427         * lib/md4.c: Typo fix, update copyright years.
63428         (K1, K2): Don't use L because it turn computations into 64-bit on
63429         64-bit platforms.
63430
63431 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63434         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63435         unwanted sign propagation, e.g., on hosts with 64-bit int.
63436         There still are some problems with reeelly weird theoretical hosts
63437         (e.g., 33-bit int) but it's not worth worrying about now.
63438         * lib/sha1.c (rol): Likewise.
63439         (K1, K2, K3, K4): Remove unnecessary L suffix.
63440
63441 2006-05-10  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/des.c: Cast to avoid warnings.
63444
63445 2006-05-09  Bruno Haible  <bruno@clisp.org>
63446
63447         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63448         (Depends-on): Depend also on xsize, stdarg.
63449         (configure.ac): Add gl_XVASPRINTF.
63450
63451 2006-05-09  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/xvasprintf.m4: New file.
63454
63455 2006-05-09  Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63458         (EOVERFLOW): Define fallback value.
63459         (xstrcat): New function.
63460         (xvasprintf): Recognize the special case of a string concatenation.
63461
63462 2006-05-08  Eric Blake  <ebb9@byu.net>
63463
63464         * gnulib-tool (func_version): Base copyright year on CVS date.
63465         (func_emit_copyright_notice): New function.
63466         (func_emit_lib_Makefile_am): Use it.
63467         (func_emit_tests_Makefile_am): Likewise.
63468         (func_import): Likewise.
63469
63470 2006-05-08  Bruno Haible  <bruno@clisp.org>
63471
63472         * modules/stdarg: New file.
63473         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63474
63475 2006-05-08  Bruno Haible  <bruno@clisp.org>
63476
63477         * m4/stdarg.m4: New file, from GNU gettext.
63478
63479 2006-05-08  Bruno Haible  <bruno@clisp.org>
63480
63481         * config/srclist.txt (build-aux/config.rpath): different from latest
63482         release.
63483
63484 2006-05-08  Bruno Haible  <bruno@clisp.org>
63485
63486         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63487
63488 2006-05-05  Jim Meyering  <jim@meyering.net>
63489
63490         * m4/warning.m4: New file, derived from bison's file by the same name.
63491
63492 2006-05-03  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/stdint_.h: Shorter URL.
63495         * lib/inttypes.h: Likewise.
63496
63497 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63500
63501 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63502
63503         * lib/verify.h: Document the internals better.  Most of this change
63504         was written by Bruno Haible.
63505
63506 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63507
63508         * doc/verify.texi: New file, partly based on a proposal by
63509         Bruno Haible.
63510
63511 2006-05-02  Bruno Haible  <bruno@clisp.org>
63512
63513         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63514         test from here...
63515         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63516
63517 2006-04-29  Bruno Haible  <bruno@clisp.org>
63518
63519         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63520         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63521
63522 2006-04-29  Bruno Haible  <bruno@clisp.org>
63523
63524         * gnulib-tool: Make --update option actually work.
63525
63526 2006-04-29  Bruno Haible  <bruno@clisp.org>
63527
63528         * doc/gcd.texi: New file.
63529         * doc/gnulib.texi: Include it.
63530
63531 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/getdate.y (get_date): When adding relative date, start with the
63534         initial time, not with the result of the first mktime call.
63535
63536 2006-04-25  Bruno Haible  <bruno@clisp.org>
63537
63538         * gnulib-tool (func_import): Output the include directives in three
63539         blocks, sorted separately.
63540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63541
63542 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63545         to define main with arguments, for C++.  Reported by Eric Blake.
63546         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63547         Prefer 'int main ()' to 'int main (void)', for C++.
63548         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63550         for 'main', for C99 and C++.
63551
63552 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63553
63554         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63555         Don't assume that exit status -1 is valid.
63556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63557         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63558         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63559         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63560         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63561         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63562         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63563         functions can be used without declaring them, or that you can
63564         exit with status -1.
63565         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63566
63567 2006-04-24  Karl Berry  <karl@gnu.org>
63568
63569         * config/srclist.txt (longdouble.m4): sync lost.
63570
63571 2006-04-24  Eric Blake  <ebb9@byu.net>
63572
63573         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63574
63575 2006-04-24  Bruno Haible  <bruno@clisp.org>
63576
63577         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63578         poll() implementation in AIX.
63579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63580
63581 2006-04-24  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63584         assigned exactly once.
63585
63586 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63587             Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63590         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63591         for AM_CPPFLAGS.
63592
63593 2006-04-23  Bruno Haible  <bruno@clisp.org>
63594
63595         * modules/copy-file: Depend on unistd.
63596         * modules/execute: Likewise.
63597         * modules/fatal-signal: Likewise.
63598         * modules/findprog: Likewise.
63599         * modules/mkdtemp : Likewise.
63600         * modules/pipe: Likewise.
63601         * modules/wait-process: Likewise.
63602
63603 2006-04-23  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63606         condition was already detected.
63607         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63608
63609 2006-04-23  Bruno Haible  <bruno@clisp.org>
63610
63611         * lib/copy-file.c: Include <unistd.h> unconditionally.
63612         * lib/execute.c: Likewise.
63613         * lib/fatal-signal.c: Likewise.
63614         * lib/findprog.c: Likewise.
63615         * lib/mkdtemp.c: Likewise.
63616         * lib/pipe.h: Likewise.
63617         * lib/pipe.c: Likewise.
63618         * lib/wait-process.h: Likewise.
63619
63620 2006-04-23  Bruno Haible  <bruno@clisp.org>
63621
63622         * gnulib-tool (func_usage): Fix --import description. Document
63623         --update.
63624         (func_import): Create temporary file in a temporary directory, if
63625         --dry-run is specified. Silence errors from 'grep' when there are no
63626         m4 files in $m4dir.
63627         (func_create_testdir): Silence errors from 'grep' when there are no
63628         m4 files in $m4dir.
63629         Reported by Karl Berry <karl@freefriends.org>.
63630
63631 2006-04-20  Bruno Haible  <bruno@clisp.org>
63632
63633         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63634         one argument, so that the code will be portable to Autoconf 2.60.
63635         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63636         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63637         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63638
63639 2006-04-19  Derek Price  <derek@ximbiot.com>
63640             Eric Blake  <ebb9@byu.net>
63641
63642         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63643         rather than "/full/path.h".  Update comment to match.  Shorten &
63644         generalize m4_translit call via AS_TR_CPP.
63645
63646 2006-04-19  Derek Price  <derek@ximbiot.com>
63647             Eric Blake  <ebb9@byu.net>
63648
63649         * lib/inttypes.h: Correct grammar in comment.
63650
63651 2006-04-18  Derek Price  <derek@ximbiot.com>
63652             Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * modules/inttypes: New file.
63655         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63656
63657 2006-04-18  Derek Price  <derek@ximbiot.com>
63658             Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63661         New files.
63662
63663 2006-04-18  Derek Price  <derek@ximbiot.com>
63664             Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * lib/inttypes.h: New file.
63667         * lib/strtoimax.c: Assume <inttypes.h>.
63668
63669 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63672         isn't mounted.  Problem reported by Kir Kolyshkin.
63673
63674 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63675
63676         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63677         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63678         Derek R. Price.
63679         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63680         implementation.
63681
63682 2006-04-12  Eric Blake  <ebb9@byu.net>
63683
63684         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63685         is now done automatically by the corresponding Autoconf macro.
63686
63687 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63690         time_r.h.
63691
63692 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         Merge regex changes from libc, removing some of our
63695         POSIX-conformance changes that were rejected and redoing them in a
63696         less-intrusive way.
63697
63698         * lib/regcomp.c (re_compile_internal, init_dfa):
63699         Length arg is now size_t, not Idx.  All uses changed.
63700         (peek_token): Forward decl now says internal_function.
63701         (__re_error_msgid, __re_error_msgid_idx):
63702         Now static rather than extern with attribute_hidden.
63703         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63704         For some reason libc prefers K&R style defns for external functions.
63705         (regerror) [!defined _LIBC]: Likewise.
63706         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63707         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63708         (build_range_exp, build_collating_symbol):
63709         Use K&R-style defn.
63710         (re_compile_fastmap): Use '\0' to memset, not 0.
63711         (utf8_sb_map): Make the calculations more obvious.
63712         (init_dfa, parse_bracket_exp, build_charclass_op):
63713         Call calloc and cast result, as glibc does.
63714         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63715         (build_range_exp, build_collating_symbol):
63716         Now internal functions.
63717
63718         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63719
63720         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63721         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63722         Don't depend on VMS; depend on __VMS instead, for POSIX
63723         namespace cleanness.
63724         (regoff_t): Define to ssize_t, not long int.
63725
63726         Remove the REG_ macros named below.  Instead, make the old names
63727         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63728         __USE_GNU_REGEX.
63729         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63730         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63731         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63732         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63733         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63734         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63735         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63736         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63737         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63738         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63739         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63740         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63741         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63742         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63743         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63744         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63745         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63746         (REG_NREGS):
63747         Remove.  All uses replaced by the old RE_* names.
63748         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63749         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63750         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63751         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63752         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63753         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63754         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63755         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63756         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63757         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63758         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63759         Don't bother having these macros be independent of each others'
63760         values, since they no longer exist in the POSIX name space.
63761
63762         Rename the following member names back to their old names,
63763         unless !__USE_GNU_REGEX.  All uses changed back.
63764         (buffer): Renamed from re_buffer.
63765         (allocated): Renamed from re_allocated.
63766         (used): Renamed from re_used.
63767         (syntax): Renamed from re_syntax.
63768         (fastmap): Renamed from re_fastmap.
63769         (translate): Renamed from re_translate.
63770         (can_be_null): Renamed from re_can_be_null.
63771         (regs_allocated): Renamed from re_regs_allocated.
63772         (fastmap_accurate): Renamed from re_fastmap_accurate.
63773         (no_sub): Renamed from re_no_sub.
63774         (not_bol): Renamed from re_not_bol.
63775         (not_eol): Renamed from re_not_eol.
63776         (newline_anchor): Renamed from re_newline_anchor.
63777         (num_regs): Renamed from rm_num_regs.
63778         (start): Renamed from rm_start.
63779         (end): Renamed from rm_end.
63780
63781         (free_state): Move up a bit.
63782
63783         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63784         #define to be empty.
63785         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63786         when that is what is intended.
63787         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63788         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63789         (MAX): New macro.
63790         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63791         All uses changed back to re_malloc, etc.  It's now the caller's
63792         responsibility to check for overflow; all callers changed.
63793         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63794         (re_x2nrealloc): Remove.
63795         (free_state): Remove decl.
63796
63797         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63798         (re_set_registers, re_exec):
63799         Use K&R-style defn.
63800
63801         2006-01-31  Roland McGrath  <roland@redhat.com>
63802
63803         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63804         Reported by Mike Frysinger <vapier@gentoo.org>.
63805
63806         2006-01-15  Andreas Jaeger  <aj@suse.de>
63807
63808         [BZ #1950]
63809         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63810         build_wcs_upper_buffer change.
63811         (build_wcs_upper_buffer): Change return type.
63812
63813         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63814
63815         * lib/regex_internal.h: Include <stdint.h> if available.
63816
63817         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63818
63819         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63820
63821         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63822
63823         * lib/regcomp.c: Adjust for changed secondary hash function.
63824
63825         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63826
63827         * lib/regex.h: Pretty printing.
63828         Clean up namespace a bit.
63829
63830         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63831
63832         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63833         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63834
63835         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63836                     Ulrich Drepper  <drepper@redhat.com>
63837
63838         [BZ #1302]
63839         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63840         changed.
63841         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63842
63843         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63844
63845         [BZ #281]
63846         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63847         * lib/regcomp.c: Remove unnecessary uses of
63848         unsigned RE_TRANSLATE_TYPE.
63849         * lib/regex_internal.h: Likewise.
63850         * lib/regex_internal.c: Likewise.
63851         * lib/regexec.c: Likewise.
63852         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63853
63854         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63855
63856         * lib/regexec.c (find_recover_state): Remove unnecessary
63857         initialization.
63858         (transit_state_bkref): Make DFA a const pointer.
63859         (get_subexp): Likewise.
63860         (check_arrival): Likewise.
63861         (update_cur_sifted_state): Likewise.
63862         (re_search_internal): Likewise.
63863         (prune_impossible_nodes): Likewise.
63864         (acquire_init_state_context): Likewise.
63865         (proceed_next_node): Likewise.
63866         (set_regs): Likewise.
63867         (free_fail_stack_return): Likewise.
63868         (check_arrival_expand_ecl): Mark DFA parameter as const.
63869         (check_arrival_expand_ecl_sub): Likewise.
63870         (check_subexp_limits): Likewise.
63871         (sub_epsilon_src_nodes):  Likewise.
63872         (add_epsilon_src_nodes):  Likewise.
63873         (merge_state_array): Likewise.
63874         (update_regs): Likewise.
63875         (build_trtable): Likewise.
63876         (sift_states_backward): Mark MCTX parameter as const.
63877         (build_sifted_states): Likewise.
63878         (update_cur_sifted_state): Likewise.
63879         (sift_states_mkref): Likewise.
63880         (check_arrival_expand_ecl): Mark eclosure as const.
63881         (check_dst_limits_calc_pos_1): Likewise.
63882         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63883         pointer.
63884
63885         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63886
63887         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63888         (transit_state_sb): Likewise.
63889         (transit_state_mb): Likewise.
63890         (sift_states_iter_mb): Likewise.
63891         (check_arrival_add_next_nodes): Likewise.
63892         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63893         [_LIBC] (re_search_2_stub): Use mempcpy.
63894
63895         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63896         mbrtowc for very simple UTF-8 case.
63897
63898         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63899         a pointer-to-const.
63900         (re_acquire_state_context): Likewise.
63901         * lib/regex_internal.h: Adjust prototypes.
63902
63903         * lib/regex.c: Prevent using C++ compilers.
63904
63905         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63906         (re_acquire_state_context): Likewise.
63907
63908 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63909
63910         * modules/regex (Depends-on): Add ssize_t.
63911
63912 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63913
63914         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63915         translation table.
63916
63917 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63918
63919         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63920
63921 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63922             Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63925         <sys/types.h> and <inttypes.h>.
63926
63927 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63928
63929         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63930         `__error_t_defined', so argp.h will not typedef the former.
63931
63932 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63935         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63936         glibc names.  Even if glibc is changed to conform to POSIX, the
63937         traditional names will be available anyway, since regex depends on
63938         the extensions module.  Also, fix a longstanding typo in the
63939         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63940         reported by Emanuele Giaquinta.  Also, change sense of cached
63941         variable, so that the message makes sense.
63942
63943 2006-03-24  Simon Josefsson  <jas@extundo.com>
63944
63945         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63946         including some doc fixes.
63947         (base64_encode_alloc): Fix +1 bug on allocation failures.
63948
63949 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63950
63951         * lib/base64.c (base64_encode): Do not read past end of array with
63952         unsanitized input on systems with CHAR_BIT > 8.
63953
63954 2006-03-24  Eric Blake  <ebb9@byu.net>
63955
63956         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63957
63958 2006-03-22  Karl Berry  <karl@gnu.org>
63959
63960         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63961         * config/srclistvars.sh (COREUTILS): new var.
63962
63963 2006-03-17  Jim Meyering  <jim@meyering.net>
63964
63965         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63966         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63967
63968 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63969
63970         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63971         no longer needs it.  Instead, check that regoff_t is as least
63972         as wide as ptrdiff_t.
63973
63974         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63975         so that our regex.h stays compatible with the installed regex.
63976         This is helpful for installers who configure --without-included-regex.
63977         Problem reported by Emanuele Giaquinta.
63978
63979 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63980
63981         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63982         Typedef to long int, not to off_, as POSIX will likely change
63983         in that direction.
63984
63985 2006-03-15  Eric Blake  <ebb9@byu.net>
63986
63987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63988
63989 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63990
63991         * lib/argp-help.c (validate_uparams): Fix typo
63992         * lib/argp-parse.c (argp_default_options): Consistently begin help
63993         messages with a lowercase letter.
63994
63995 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63998         overrun buffers and shouldn't be used (much as gets shouldn't be
63999         used).
64000         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64001
64002 2006-03-08  Simon Josefsson  <jas@extundo.com>
64003
64004         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64005         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64006
64007 2006-03-08  Simon Josefsson  <jas@extundo.com>
64008
64009         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64010         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64011
64012 2006-03-08  Simon Josefsson  <jas@extundo.com>
64013
64014         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64015         signal that configure disabled the device.
64016
64017 2006-03-08  Simon Josefsson  <jas@extundo.com>
64018
64019         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64020         languages.
64021
64022 2006-03-07  Simon Josefsson  <jas@extundo.com>
64023
64024         * modules/getopt (Depends-on): Add unistd.
64025
64026         * modules/unistd: New file.
64027
64028 2006-03-07  Simon Josefsson  <jas@extundo.com>
64029
64030         * modules/gc-random: New file.
64031
64032 2006-03-07  Simon Josefsson  <jas@extundo.com>
64033
64034         * m4/unistd_h.m4: New file.
64035
64036 2006-03-07  Simon Josefsson  <jas@extundo.com>
64037
64038         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64039         test to be side-effect free by storing the result in the cache
64040         variable gl_cv_lib_readline, and moving the assignment of
64041         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64042         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64043
64044 2006-03-07  Simon Josefsson  <jas@extundo.com>
64045
64046         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
64047         error on missing devices (the functions will return an error).
64048
64049         * m4/gc.m4: Move random stuff to gc-random.m4
64050
64051 2006-03-07  Simon Josefsson  <jas@extundo.com>
64052
64053         * lib/unistd_.h: New file.
64054
64055 2006-03-07  Simon Josefsson  <jas@extundo.com>
64056
64057         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64058
64059 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64060
64061         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64062         Problem reported by Juan Manuel Guerrero.
64063
64064 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64067         the unistd module.
64068         * lib/getlogin_r.c: Likewise.
64069         * lib/getlogin_r.h: Likewise.
64070         * lib/glob.c: Likewise.
64071         * lib/pagealign_alloc.c: Likewise.
64072         * lib/unistd_.h: Remove; no longer needed.
64073
64074 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64077         Add unistd.
64078         * modules/c-stack (Depends-on): Add unistd.
64079         * modules/getlogin_r: Likewise.
64080         * modules/glob: Likewise.
64081         * modules/pagealign_alloc: Likewise.
64082         * modules/unistd (Files): Remove lib/unistd_.h.
64083         (EXTRA_DIST): Remove.
64084         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64085         need unistd_.h.
64086         (MOSTLYCLEANFILES): Remove unistd.h-t.
64087
64088 2006-03-03  Simon Josefsson  <jas@extundo.com>
64089
64090         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64091
64092 2006-03-03  Simon Josefsson  <jas@extundo.com>
64093
64094         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64095         libidn and bison.
64096
64097 2006-03-03  Simon Josefsson  <jas@extundo.com>
64098
64099         * build-aux/maint.mk: Add indent target.
64100
64101 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64102
64103         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64104         our replacement poll.h in any case, to avoid a differing
64105         declaration from a system header.  Seen on AIX.
64106
64107 2006-03-01  Simon Josefsson  <jas@extundo.com>
64108
64109         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64110         <kasal@ucw.cz>.
64111
64112 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * modules/gettime (Depends-on): Add extensions module.
64115         * modules/nanosleep (Depends-on): Likewise.
64116         * modules/settime (Depends-on): Likewise.
64117
64118 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64119
64120         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64121         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64122         pedantically.
64123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64124         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64125
64126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64127         not "==".  Reported by Ralf Wildenhues.
64128
64129 2006-03-01  Karl Berry  <karl@gnu.org>
64130
64131         * doc/Copyright/request-*: new files, synced from gnuorg.
64132
64133 2006-03-01  Karl Berry  <karl@gnu.org>
64134
64135         * config/srclist.txt (Copyright/*): new entries.
64136
64137 2006-02-28  Simon Josefsson  <jas@extundo.com>
64138
64139         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64140
64141 2006-02-27  Simon Josefsson  <jas@extundo.com>
64142
64143         * lib/base64.h: Indent #define's.  From Jim Meyering
64144         <jim@meyering.net>.
64145
64146 2006-02-27  Jim Meyering  <jim@meyering.net>
64147
64148         Revert the change of 2006-02-24, so these files can continue
64149         to be sync'd from gettext.
64150         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64151         of `config.h'.
64152
64153 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         * modules/intprops: New file.
64156         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64157         Add intprops.
64158         * modules/getloadavg (Files): Remove lib/intprops.h.
64159         (Depends-on): Add intprops.
64160         * modules/human: Likewise.
64161         * modules/inttostr: Likewise.
64162         * modules/openat: Likewise.
64163         * modules/sig2str: Likewise.
64164         * modules/userspec: Likewise.
64165         * modules/utimecmp: Likewise.
64166         * modules/xnanosleep: Likewise.
64167         * modules/xstrtol: Likewise.
64168
64169 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64170
64171         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64172         * modules/lock-tests (TESTS): Use $(EXEEXT).
64173         * modules/tls-tests: Likewise.
64174         * modules/argp-tests: Likewise.
64175         (check_PROGRAMS): New var, replacing...
64176         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64177
64178 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64179
64180         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64181         `config.h'.
64182
64183 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64186
64187 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64188
64189         Sync from coreutils.
64190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64191         gl_CHDIR_SAFER.
64192
64193 2006-02-22  Jim Meyering  <jim@meyering.net>
64194
64195         Sync from coreutils.
64196         * m4/chdir-safer.m4: New file.
64197
64198 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64201         AT_FDCWD exceeds INT_MAX.
64202         * lib/openat.h (AT_FDCWD): Likewise.
64203
64204 2006-02-17  Eric Blake  <address@hidden>
64205
64206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64207
64208 2006-02-16  Simon Josefsson  <jas@extundo.com>
64209
64210         * modules/getaddrinfo (Depends-on): Add sys_socket.
64211
64212 2006-02-15  Simon Josefsson  <jas@extundo.com>
64213
64214         * build-aux/maint.mk: Add dsyntax-check rule.
64215
64216 2006-02-15  Eric Blake  <ebb9@byu.net>
64217
64218         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64219         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64220         'present but cannot compile' warnings on cygwin.
64221         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64222         use ws2tcpip.h if sys/socket.h works.
64223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64224         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64225
64226 2006-02-14  Simon Josefsson  <jas@extundo.com>
64227
64228         * modules/maintainer-makefile (Files): Rename.
64229
64230         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64231         and (the local) Makefile.cfg to maint-cfg.mk.
64232
64233         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64234         to the latter.
64235
64236         * modules/maintainer-makefile: New module.
64237
64238         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64239         severaly stripped to make it possible to build it up from scratch
64240         with reliable tests.
64241
64242         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64243         fixes to permit overriding the default actions when configure and
64244         makefile are not available.
64245
64246 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64247
64248         Sync from coreutils.
64249         * modules/lstat (Depends-on): Don't depend on xalloc.
64250         (License): Change from GPL to LGPL, since this is now simply a
64251         replacement for a libc function.
64252
64253 2006-02-14  Jim Meyering  <jim@meyering.net>
64254
64255         Sync from coreutils.
64256
64257         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64258         failure on deficient systems, and simplify gnulib lgpl dependencies.
64259         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64260         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64261
64262         * lib/xalloc-die.c: Remove unused definition of N_.
64263
64264 2006-02-14  Jim Meyering  <jim@meyering.net>
64265
64266         Sync from coreutils.
64267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64268         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64269         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64270         double-quote uses of that variable, to accommodate the rare case in
64271         which getmntent is available in none of the libraries checked.  This
64272         happens at least on FreeBSD 5.0.
64273
64274 2006-02-13  Simon Josefsson  <jas@extundo.com>
64275
64276         * gnulib-tool (Usage): Fix --import, from
64277         karl@freefriends.org (Karl Berry).
64278
64279 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64280
64281         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64282
64283 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64284
64285         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64286         "autoupdate" on 2005-12-12.
64287
64288 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         * modules/closeout (Depends-on): Remove atexit.
64291
64292 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64295         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64296
64297 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64300         __EXTENSIONS__ if this causes compilation to fail.  Problem
64301         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64302         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64303
64304 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64307         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64308         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64309         All uses changed.
64310
64311 2006-01-26  Simon Josefsson  <jas@extundo.com>
64312
64313         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64314         prototype is visible on mingw32.
64315
64316         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64317         for mingw32.
64318
64319         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64320         mingw32).
64321
64322 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64325         attempt to open for write; this always fails, at least on POSIX
64326         hosts.  This reinstates the 2006-01-09 change, which was
64327         inadvertently removed.
64328
64329 2006-01-26  Bruno Haible  <bruno@clisp.org>
64330
64331         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64332         Reported by Paul Eggert.
64333
64334 2006-01-26  Bruno Haible  <bruno@clisp.org>
64335             Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         * lib/stdbool_.h (_Bool)
64338         [(! (defined __cplusplus || defined __BEOS__)
64339           && !defined __GNUC__
64340           && !(defined __HP_cc || defined __xlc__
64341                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64342                || defined __sgi))]:
64343         #define to signed char in these cases too; this simplifies
64344         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64345         etc., separately) and makes it more conservative.
64346
64347 2006-01-25  Simon Josefsson  <jas@extundo.com>
64348
64349         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64350         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64351         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64352
64353 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64354
64355         * lib/argp-namefrob.h: Bugfix. Remove stray #
64356
64357 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64360         so that we test the test.
64361         Check for yet another HP-UX cc bug involving *bool |= bool.
64362
64363 2006-01-25  Karl Berry  <karl@gnu.org>
64364
64365         * config/srclist.txt (vasnprintf.c): sync lost.
64366
64367 2006-01-25  Jim Meyering  <jim@meyering.net>
64368
64369         Sync from the stable (b5) branch of coreutils:
64370
64371         * lib/fts.c (fts_children): Don't let close() clobber errno from
64372         failed fchdir().
64373
64374         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64375         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64376         a dangling symlink.  That can also happen at least for ELOOP.
64377         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64378         FYI, this bug predates the inclusion of fts.c in coreutils.
64379
64380         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64381         in their own block, so pre-c99 compilers don't object.
64382
64383         Avoid the double-free (first in fts_read, second in fts_close) that
64384         would occur when an `active' directory is made inaccessible (e.g.,
64385         via chmod a-x) during a traversal.
64386         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64387         before returning.  Reproduce this failure by
64388         mkdir -p a/b; cd a; chmod a-x . b
64389         Reported by Stavros Passas.
64390
64391 2006-01-25  Jim Meyering  <jim@meyering.net>
64392
64393         * lib/fileblocks.c: Remove more useless parentheses.
64394         * lib/readutmp.h: Likewise.
64395
64396 2006-01-25  Bruno Haible  <bruno@clisp.org>
64397
64398         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64399         warnings.
64400         Reported by Paul Eggert.
64401
64402 2006-01-25  Bruno Haible  <bruno@clisp.org>
64403
64404         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64405         rid of a trap command. For Solaris sh.
64406         Reported by Mark D. Baushke <mdb@gnu.org>.
64407
64408 2006-01-24  Simon Josefsson  <jas@extundo.com>
64409
64410         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64411         Bruno.
64412
64413 2006-01-24  Karl Berry  <karl@gnu.org>
64414
64415         * config/srclist.txt (argp-namefrob.h): sync lost.
64416
64417 2006-01-24  Jim Meyering  <jim@meyering.net>
64418
64419         * modules/openat (Files): Add lib/intprops.h.
64420         From Mark D. Baushke.
64421
64422 2006-01-24  Jim Meyering  <jim@meyering.net>
64423
64424         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64425         Reported by Mark D. Baushke.
64426
64427 2006-01-24  Jim Meyering  <jim@meyering.net>
64428
64429         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64430
64431 2006-01-24  Bruno Haible  <bruno@clisp.org>
64432
64433         * modules/strnlen (Maintainer): Change from glibc to all.
64434
64435 2006-01-24  Bruno Haible  <bruno@clisp.org>
64436
64437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64438         Patch by Paul Eggert.
64439
64440 2006-01-24  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64443         already has it.
64444         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64445         2005-11-26.
64446
64447         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64448         'signed char' to avoid problems with the built-in _Bool type.
64449         Reported by Paul Eggert on 2005-11-26.
64450
64451 2006-01-24  Bruno Haible  <bruno@clisp.org>
64452
64453         * gnulib-tool (func_import): Avoid constructing complicated sed
64454         expressions inside backquote.
64455         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64456
64457 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64458
64459         These changes imported from libc.
64460         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64461         test and two separate function calls.
64462         * lib/strndup.c (__strndup): Add libc_hidden_def.
64463
64464 2006-01-23  Simon Josefsson  <jas@extundo.com>
64465
64466         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64467         Remove the test_*_SOURCES variable: automake infers it by default.
64468         * modules/tls-tests: Likewise.
64469
64470 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64471
64472         Work around porting bugs reported by Dieter in
64473         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64474         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64475         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64476         Include "getopt.h" first, to check interface.
64477         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64478         !HAVE_DECL_GETENV.
64479         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64480         (__strndup): Revert to K&R-style function dfns, the glibc style.
64481         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64482         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64483         Include strnlen.h first, to get prototype properly.
64484         (strnlen): Renamed from __strnlen.
64485         Remove weak alias.
64486
64487 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64490
64491 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * config/srclist.txt: Adjust to reflect glibc reorganization.
64494         This affects only comments.
64495
64496 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64497
64498          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64499          Reported by Bruce Korb <bkorb@gnu.org>.
64500
64501 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64504         to pacify gcc -Wswitch-default.
64505
64506 2006-01-22  Bruno Haible  <bruno@clisp.org>
64507
64508         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64509         temporary buffer for sprintf, take into account the precision also
64510         for 'd', 'i', 'u', 'o', 'x', 'X'.
64511
64512 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64513
64514         * modules/argp-tests: New module
64515         * tests/test-argp.c: New file
64516         * tests/test-argp-2.sh: New file
64517
64518 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64519
64520         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64521         (__argp_base_name): Removed
64522         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64523         typo.
64524         (__argp_base_name): Provide macro definition or extern declaration
64525         depending on the configuration
64526
64527 2006-01-20  Simon Josefsson  <jas@extundo.com>
64528
64529         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64530
64531 2006-01-20  Simon Josefsson  <jas@extundo.com>
64532
64533         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64534
64535 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64536
64537         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64538         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64539         Suggested by Bruno Haible.
64540
64541 2006-01-20  Karl Berry  <karl@gnu.org>
64542
64543         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64544         until changes propagate, I guess.
64545
64546 2006-01-19  Simon Josefsson  <jas@extundo.com>
64547
64548         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64549
64550 2006-01-19  Simon Josefsson  <jas@extundo.com>
64551
64552         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64553
64554 2006-01-19  Simon Josefsson  <jas@extundo.com>
64555
64556         * gnulib-tool: Set check_PROGRAMS.
64557
64558         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64559         modules/des-tests, modules/gc-arcfour-tests,
64560         modules/gc-arctwo-tests, modules/gc-des-tests,
64561         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64562         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64563         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64564         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64565         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64566         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64567         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64568         test_*_SOURCES.
64569
64570 2006-01-18  Simon Josefsson  <jas@extundo.com>
64571
64572         * modules/socklen (Depends-on): Depend on sys_socket.
64573
64574 2006-01-18  Simon Josefsson  <jas@extundo.com>
64575
64576         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64577         modules/des-tests, modules/gc-arcfour-tests,
64578         modules/gc-arctwo-tests, modules/gc-des-tests,
64579         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64580         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64581         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64582         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64583         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64584         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64585         $(EXEEXT) to automake TESTS variable, for mingw32.
64586
64587 2006-01-17  Simon Josefsson  <jas@extundo.com>
64588
64589         * modules/socklen (Include): Need sys/socket.h.
64590
64591 2006-01-17  Bruno Haible  <bruno@clisp.org>
64592
64593         * modules/ssize_t (Include): Add <sys/types.h>.
64594
64595 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64598         it's not portable and it doesn't work with cross-compiles.
64599         Problem reported by Bruno Haible.  Fix missing-$ typo in
64600         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64601         -zignore from being used with Sun's C compiler.
64602
64603 2006-01-12  Simon Josefsson  <jas@extundo.com>
64604
64605         * lib/base64.c: Fix warning, reported by Bruno Haible
64606         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64607
64608 2006-01-12  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/ldd: New file.
64611         * build-aux/ldd.sh.in: New file.
64612         * MODULES.html.sh (Support for building libraries and executables): Add
64613         ldd.
64614
64615 2006-01-12  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/ldd.m4: New file.
64618
64619 2006-01-12  Bruno Haible  <bruno@clisp.org>
64620
64621         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64622         endless loop while replacing $auxdir with build-aux.
64623
64624 2006-01-11  Simon Josefsson  <jas@extundo.com>
64625
64626         * lib/stdint_.h (SIZE_MAX): Add missing (.
64627
64628 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         Sync from coreutils.
64631         * lib/md5.c: Fix commentary typos.
64632         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64633         * lib/md5.h (__attribute__): Remove; unused.
64634         * lib/sha1.c: Fix commentary to match md5 better.
64635         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64636         so that we don't need to worry about alignment.  All uses changed.
64637         This merges the 2005-10-28 md5 change into sha1.
64638
64639 2006-01-11  Jim Meyering  <jim@meyering.net>
64640
64641         Sync from coreutils.
64642         * lib/md5.c (OP): Fix spacing.
64643
64644 2006-01-11  Bruno Haible  <bruno@clisp.org>
64645
64646         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64647         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64648         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64649
64650 2006-01-11  Bruno Haible  <bruno@clisp.org>
64651
64652         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64653         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64654         the "early" section as well.
64655
64656 2006-01-11  Bruno Haible  <bruno@clisp.org>
64657
64658         Avoid "ar: no archive members specified" error on MacOS X.
64659         * gnulib-tool (func_modules_add_dummy): New function.
64660         (func_import, func_create_testdir): Invoke it.
64661
64662 2006-01-11  Bruno Haible  <bruno@clisp.org>
64663
64664         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64665         with $auxdir in AC_CONFIG_FILES statements.
64666
64667 2006-01-11  Bruno Haible  <bruno@clisp.org>
64668
64669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64670         Initialize also noinst_HEADERS to empty.
64671
64672 2006-01-11  Bruno Haible  <bruno@clisp.org>
64673
64674         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64675         variables.
64676         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64677         autoreconf.
64678
64679 2006-01-11  Bruno Haible  <bruno@clisp.org>
64680
64681         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64682         overridable by the user.
64683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64684
64685 2006-01-10  Simon Josefsson  <jas@extundo.com>
64686
64687         * modules/sys_socket: New file.
64688
64689 2006-01-10  Simon Josefsson  <jas@extundo.com>
64690
64691         * m4/sys_socket_h.m4: New file.
64692
64693 2006-01-10  Simon Josefsson  <jas@extundo.com>
64694
64695         * lib/socket_.h: New file.
64696
64697 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64698
64699         * modules/readutmp (Maintainer): Add myself.
64700
64701 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64702
64703         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64704         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64705         People who are still concerned with buggy memcmp implementations
64706         can invoke gl_FUNC_MEMCMP themselves.
64707
64708 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         * lib/regex_internal.h (BITSET_WORD_BITS):
64711         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64712         preprocessor mishandles large unsigned values as if they were signed.
64713         Problem reported by Claudio Fontana in
64714         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64715
64716 2006-01-10  Jim Meyering  <jim@meyering.net>
64717
64718         Avoid the double-free (first in fts_read, second in fts_close) that
64719         would occur when an `active' directory is made inaccessible (e.g.,
64720         via chmod a-x) during a traversal.
64721         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64722         before returning.  Reproduce this failure by
64723         mkdir -p a/b; cd a; chmod a-x . b
64724         Reported by Stavros Passas.
64725
64726         Sync from coreutils.
64727         * lib/sha1.c: Tweak grammar in a comment.
64728
64729 2006-01-10  Jim Meyering  <jim@meyering.net>
64730
64731         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64732         Patch by Joerg Sonnenberger.
64733
64734 2006-01-10  Bruno Haible  <bruno@clisp.org>
64735
64736         * modules/readutmp: Depend on module free.
64737         * modules/strtok_r: Depend on module restrict.
64738
64739 2006-01-10  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/gettext (configure.ac): Add an invocation of
64742         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64743
64744 2006-01-10  Bruno Haible  <bruno@clisp.org>
64745
64746         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64747         Reported by Werner Lemberg <wl@gnu.org>.
64748
64749 2006-01-10  Bruno Haible  <bruno@clisp.org>
64750
64751         * lib/localcharset.c: Update from GNU gettext.
64752
64753 2006-01-10  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/argp.h (__const): Remove macro. Use const instead.
64756         * lib/argp-fmtstream.h (__const): Likewise.
64757         * lib/glob_.h (__const): Remove macro.
64758         * lib/glob-libc.h: Use const instead of __const.
64759
64760 2006-01-10  Bruno Haible  <bruno@clisp.org>
64761
64762         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64763         variable.
64764         Needed to avoid an automake error regarding the 'gettext' module.
64765
64766 2006-01-09  Simon Josefsson  <jas@extundo.com>
64767
64768         * modules/inet_ntop (Depends-on): Add restrict.
64769
64770 2006-01-09  Simon Josefsson  <jas@extundo.com>
64771
64772         * modules/gc-rijndael-tests (License): Put under LGPL.
64773
64774         * modules/gc-des-tests (License): Likewise.
64775
64776         * modules/gc-arcfour-tests (License): Likewise.
64777
64778         * modules/gc-arctwo-tests (License): Likewise.
64779
64780         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64781
64782         * modules/gc-hmac-sha1-tests (Files): Likewise.
64783
64784         * modules/gc-hmac-md5-tests (License): Likewise.
64785
64786         * modules/gc-sha1-tests (License): Likewise.
64787
64788         * modules/gc-md5-tests (License): Likewise.
64789
64790         * modules/gc-md4-tests (License): Likewise.
64791
64792         * modules/gc-md2-tests (License): Likewise.
64793
64794         * modules/gc-tests (License): Likewise.
64795
64796         * modules/des-tests (License): Likewise.
64797
64798         * modules/md4-tests (License): Likewise.
64799
64800         * modules/md2-tests (License): Likewise.
64801
64802 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         Sync from coreutils:
64805
64806         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64807         * modules/lib-ignore: New file.
64808         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64809         chdir-safer.m4, lchmod.m4.
64810         * modules/openat: Add mkdirat.c, openat-priv.h.
64811
64812 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         Sync from coreutils.
64815         * m4/lib-ignore.m4: New file.
64816         * m4/lchmod.m4: New file.
64817
64818 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         Sync from coreutils.
64821         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64822         for write access: POSIX says that must fail.
64823         * lib/fts.c (diropen): Likewise.
64824         * lib/save-cwd.c (save_cwd): Likewise.
64825         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64826         well, for minor improvements on hosts that lack O_DIRECTORY.
64827         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64828         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64829         Fall back on chown if open failed with EACCES.
64830
64831         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64832         Report an error at compile-time if only a 1-second nominal clock
64833         resolution is found.
64834
64835         * lib/lchmod.h: New file.
64836         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64837         (make_dir_parents): Use lchown rather than chown, and
64838         lchmod rather than chmod.
64839
64840         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64841         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64842         "proc" reported by n0dalus.
64843
64844         * lib/mountlist.c: Include <limits.h>.
64845         (dev_from_mount_options)
64846         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64847         New function.  It no longer assumes "dev=" has the System V meaning
64848         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64849         (read_file_system_list)
64850         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64851         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64852         dev= in that case.
64853
64854         * lib/posixtm.h (PDS_PRE_2000): New macro.
64855         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64856         allow_century.  All usages changed.  Reject dates outside the range
64857         1969-1999 if PDS_PRE_2000 is used.
64858
64859 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64860
64861         Sync from coreutils.
64862         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64863         (Time of day items): Mention the possibility of leap seconds.
64864         Problem reported by Dr. David Alan Gilbert.
64865
64866 2006-01-09  Jim Meyering  <jim@meyering.net>
64867
64868         Sync from coreutils.
64869
64870         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64871
64872         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64873
64874         * lib/modechange.c (mode_compile): Reject an invalid mode string
64875         that starts with an octal digit.  From Andreas Gruenbacher.
64876
64877         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64878         and dup to open_safer and dup_safer, respectively.
64879         (openat_permissive): Fix typo in comment.
64880
64881         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64882         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64883         (_): Remove; no longer needed.
64884         (openat): Renamed from rpl_openat; no need for rpl_openat
64885         since openat.h renames openat for us.
64886         Replace most of the body with a call to openat_permissive,
64887         to avoid duplicate code.
64888         Port to (probably hypothetical) environments were mode_t is
64889         wider than int.
64890         (openat_permissive): Require mode arg, so that we can check
64891         types better.  Put it just after flags.  Change cwd failure
64892         indicator from pointer-to-bool to pointer-to-errno-value.
64893         All callers changed.
64894         Invoke openat_save_fail and/or openat_restore_fail if
64895         cwd_errno is null, so that openat can call us.
64896         (openat_permissive, fdopendir, fstatat, unlinkat):
64897         Simplify errno handling to avoid some duplicate code,
64898         as it's OK to set errno on success.
64899         * lib/openat.h: Revamp code so that function macros depend on
64900         __OPENAT_PREFIX only, not also on AT_FDCWD.
64901         (openat_ro): Remove.  Caller changed to use openat_permissive.
64902         (openat_permissive): Now a macro, if not a function.
64903         (openat_restore_fail, openat_save_fail): Now always functions,
64904         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64905
64906         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64907         and openat.c.
64908         * lib/mkdirat.c: Include openat-priv.h.
64909         Remove definitions of macros defined therein.
64910         * lib/openat.c: Likewise.
64911
64912         * lib/mkdirat.c (mkdirat): New file and function.
64913         * lib/openat.h (mkdirat): Declare.
64914
64915         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64916
64917         * lib/openat.h (openat_permissive): Declare.
64918         (openat_ro): Define.
64919
64920         * lib/openat.c (EXPECTED_ERRNO): New macro.
64921         (openat_permissive): New function -- used in remove.c rewrite.
64922         (all functions): Set errno just before returning, only if there
64923         was an actual failure.
64924         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64925
64926         Emulate openat-family functions using Linux's procfs, if possible.
64927         Idea and some code based on Ulrich Drepper's glibc changes.
64928
64929         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64930         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64931         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64932         before falling back on save_cwd and restore_cwd.
64933         (fdopendir, fstatat, unlinkat): Likewise.
64934
64935         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64936         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64937
64938         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64939         as second argument to va_arg.  Otherwise, some versions of gcc
64940         warn that `if this code is reached, the program will abort'.
64941
64942 2006-01-09  Jim Meyering  <jim@meyering.net>
64943
64944         Sync from coreutils.
64945         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64946         Require openat-priv.h.
64947
64948 2006-01-09  Bruno Haible  <bruno@clisp.org>
64949
64950         * modules/strnlen (Include): Use strnlen.h.
64951
64952 2006-01-09  Bruno Haible  <bruno@clisp.org>
64953
64954         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64955
64956 2006-01-09  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/sysexit_.h (EX_OK): New macro.
64959         Suggested by Martin Lambers <marlam@marlam.de>.
64960
64961 2006-01-09  Bruno Haible  <bruno@clisp.org>
64962
64963         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64964         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64965
64966 2006-01-09  Bruno Haible  <bruno@clisp.org>
64967
64968         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64969         numbers.
64970
64971 2006-01-09  Bruno Haible  <bruno@clisp.org>
64972
64973         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64974         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64975         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64976         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64977
64978 2006-01-09  Bruno Haible  <bruno@clisp.org>
64979
64980         * build-aux/javacomp.sh.in: New file, moved from lib/.
64981         * modules/javacomp-script (Files): Update.
64982         (configure.ac): Add AC_CONFIG_FILES invocation.
64983         (EXTRA_DIST): Remove variable.
64984
64985         * build-aux/javaexec.sh.in: New file, moved from lib/.
64986         * modules/javaexec (Files): Update.
64987         (configure.ac): Add AC_CONFIG_FILES invocation.
64988         (EXTRA_DIST): Remove javaexec.sh.in.
64989
64990         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64991         * modules/csharpcomp-script (Files): Update.
64992         (configure.ac): Add AC_CONFIG_FILES invocation.
64993         (EXTRA_DIST): Remove variable.
64994
64995         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64996         * modules/csharpexec (Files): Update.
64997         (configure.ac): Add AC_CONFIG_FILES invocation.
64998         (EXTRA_DIST): Remove csharpexec.sh.in.
64999
65000 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65001
65002         Sync from coreutils.
65003
65004         Add POSIX ACL support
65005         * lib/acl.h (copy_acl, set_acl): Add declarations.
65006         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65007         systems other than Linux.
65008         (chmod_or_fchmod): New function: use fchmod when possible,
65009         and chmod otherwise.
65010         (file_has_acl): Add a POSIX ACL implementation, with a
65011         Linux-specific subcase.
65012         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65013         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65014         acls are unsupported.
65015         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65016         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65017         are unsupported.
65018
65019 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65020
65021         Sync from coreutils.
65022         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65023
65024 2006-01-07  Bruno Haible  <bruno@clisp.org>
65025
65026         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65027         gl_EARLY.
65028
65029 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65032         Problem reported for Mingw by Mark Junker.
65033
65034 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * README: Gnulib normally doesn't generate a tarball.
65037
65038 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65041         long int, not int, for nanosecond counts, so that people who are
65042         used to POSIX struct timespec won't be surprised.  Reported by Jim
65043         Meyering.
65044
65045 2005-12-28  Bruno Haible  <bruno@clisp.org>
65046
65047         * build-aux/config.rpath: Update from GNU gettext.
65048
65049 2005-12-16  Jim Meyering  <jim@meyering.net>
65050
65051         * modules/fprintftime: New module.
65052         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
65053
65054 2005-12-16  Jim Meyering  <jim@meyering.net>
65055
65056         * m4/fprintftime.m4: New file.
65057
65058 2005-12-16  Jim Meyering  <jim@meyering.net>
65059
65060         * lib/fprintftime.c, lib/fprintftime.h: New files.
65061
65062 2005-12-15  Simon Josefsson  <jas@extundo.com>
65063
65064         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65065         new m4/socklen.m4.
65066
65067 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65068
65069         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65070         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65071
65072 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65073
65074         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65075         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65076         struct uparams is valid. Fall back to the default values if it is
65077         not.
65078
65079 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65080
65081         * modules/argp (Files): Add argp-pin.c
65082         (Depends-on): dirname
65083         (lib_SOURCES): Add argp-pin.c
65084
65085 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65086
65087         * m4/argp.m4:  Check if program_invocation_name and
65088         program_invocation_short_name are declared and define appropriate
65089         macros if they are not.
65090
65091 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65092
65093         * lib/argp-help.c (__argp_base_name): New function
65094         (__argp_short_program_name): Rewrite using __argp_base_name
65095         * lib/argp-namefrob.h: Define program_invocation_name and
65096         program_invocation_short_name if requested
65097         (__argp_base_name): Add prototype
65098         * lib/argp-parse.c (argp_def): Use gettext wrappers
65099         (argp_default_parser): Use __argp_base_name
65100         * lib/argp-pin.c: New file. Defines program_invocation_name and
65101         program_invocation_short_name on systems that lack them.
65102
65103 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65106         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65107         porting problem reported by Georg Schwarz in
65108         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65109
65110 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65113         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65114         porting problem reported by Georg Schwarz in
65115         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65116
65117 2005-12-05  Bruno Haible  <bruno@clisp.org>
65118
65119         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65120         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65121         Reported by Mark Junker <mjscod@gmx.de>.
65122
65123 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65126         Use implementation from Albert Chin, with some
65127         comments/corrections by Stepan Kasal and myself.
65128
65129 2005-12-02  Bruno Haible  <bruno@clisp.org>
65130
65131         * gnulib-tool (func_import): Accept GPLed build tool modules when
65132         --lgpl is given.
65133         * modules/csharpcomp-script: New file.
65134         * modules/csharpcomp: Depend on it.
65135         * modules/javacomp-script: New file.
65136         * modules/javacomp: Depend on it.
65137         Suggested by Simon Josefsson.
65138
65139 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65140
65141         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65142         statement, to work around an HP-UX 10.20 compiler bug reported by
65143         Peter O'Gorman.
65144
65145 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * modules/savedir (Depends-on): Add openat.
65148
65149 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65152         (uintmax_t) [defined uintmax_t]: Do not declare.
65153         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65154         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65155         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65156         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65157         sake of portability to weird hosts that C allows (though we don't
65158         know of any practical examples).
65159
65160         * lib/savedir.h (fdsavedir): New decl.
65161         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65162         contains most of the former guts of savedir.
65163         (savedir): Use savedirstream.
65164         Include "openat.h".
65165
65166 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * modules/obstack (Files): Add m4/ulonglong.m4.
65169         Problem reported by Davide Angelocola.
65170
65171 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65172
65173         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65174         coreutils no longer futzes with rounding modes.
65175
65176 2005-11-14  Jim Meyering  <jim@meyering.net>
65177
65178         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65179         replacement of mkstemp.
65180
65181 2005-11-10  Simon Josefsson  <jas@extundo.com>
65182
65183         * lib/readline.c: Remove EOL.
65184
65185 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65186
65187         * modules/gethrxtime (Depends-on): Add gettime.
65188
65189 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65192         or gettimeofday; no longer needed.
65193
65194 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65197         time business.
65198         (gethrxtime) [! (HAVE_NANOUPTIME
65199         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65200         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65201         our own approximation.
65202
65203 2005-11-08  Eric Blake  <ebb9@byu.net>
65204
65205         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65206
65207 2005-11-08  Eric Blake  <ebb9@byu.net>
65208
65209         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65210
65211 2005-11-04  Bruno Haible  <bruno@clisp.org>
65212
65213         * gnulib-tool: Implement --update mode.
65214
65215 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65216
65217         Fix porting problem reported by Theodoros V. Kalamatianos.
65218         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65219         Don't assume that futimes failing means we must fail.
65220
65221 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65222
65223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65224         variables to suggest the intended function of the PATH_MAX check.
65225
65226 2005-10-30  Kean Johnston  <jkj@sco.com>
65227
65228         Trivial changes to support SCO systems.
65229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65230         as PATH_MAX.
65231         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65232         where __ptr is null when no I/O is pending.
65233
65234 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65235
65236         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65237         leave errno alone.  Problem reported by Dmitry V. Levin.
65238
65239 2005-10-28  Simon Josefsson  <jas@extundo.com>
65240
65241         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65242         Test more.
65243
65244         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65245
65246         * modules/md2, modules/md2-tests: New files.
65247
65248 2005-10-28  Simon Josefsson  <jas@extundo.com>
65249
65250         * m4/inet_ntop.m4: More tests.
65251
65252         * m4/gc-md2.m4, md2.m4: New file.
65253
65254 2005-10-28  Simon Josefsson  <jas@extundo.com>
65255
65256         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65257         "restrict" keywords, as per POSIX.  Protect the function
65258         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65259         Don't use K&R prototypes.  Check the sprintf return values.
65260         Re-define EAFNOSUPPORT if not present.  Indent.
65261
65262         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65263         suggested by Bruno Haible <bruno@clisp.org>.
65264
65265         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65266
65267         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65268
65269         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65270         libgcrypt).
65271
65272         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65273
65274         * lib/md2.h, lib/md2.c: New files.
65275
65276 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65279         errno alone.  Problem reported by Frederic Jolliton.
65280
65281 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65282
65283         * modules/verify (License): Change from GPL to LGPL.  This is a
65284         tiny module and there are apparently near-equivalents that are
65285         under the BSD license.
65286
65287 2005-10-24  Simon Josefsson  <jas@extundo.com>
65288
65289         * modules/sha1: Relicense to LGPL.
65290
65291 2005-10-24  Simon Josefsson  <jas@extundo.com>
65292
65293         * lib/md4.h: Shrink buffer size, now that we changed the type.
65294
65295 2005-10-23  Simon Josefsson  <jas@extundo.com>
65296
65297         * gnulib-tool (func_import): Fix --tests-base.
65298
65299 2005-10-22  Simon Josefsson  <jas@extundo.com>
65300
65301         * modules/arcfour (Depends-on): Need stdint.
65302
65303 2005-10-22  Simon Josefsson  <jas@extundo.com>
65304
65305         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65306         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65307
65308 2005-10-22  Simon Josefsson  <jas@extundo.com>
65309
65310         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65311         suggested by Bruno Haible <bruno@clisp.org>.
65312
65313 2005-10-22  Simon Josefsson  <jas@extundo.com>
65314
65315         * lib/crc.h: Include stddef.h, for size_t.
65316
65317 2005-10-22  Simon Josefsson  <jas@extundo.com>
65318
65319         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65320         arcfour_context struct (simplify test vector testing in GNU
65321         Shishi).
65322
65323 2005-10-21  Simon Josefsson  <jas@extundo.com>
65324
65325         * modules/des, modules/des-tests: New files.
65326
65327         * modules/gc-des, modules/gc-des-tests: New files.
65328
65329         * tests/test-des.c, tests/test-gc-des.c: New file.
65330
65331 2005-10-21  Simon Josefsson  <jas@extundo.com>
65332
65333         * modules/arctwo, modules/arctwo-tests: New files.
65334
65335         * tests/test-arctwo.c: New file.
65336
65337         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65338
65339         * tests/test-gc-arctwo.c: New file.
65340
65341 2005-10-21  Simon Josefsson  <jas@extundo.com>
65342
65343         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65344         Bruno Haible <bruno@clisp.org>.
65345
65346         * m4/gc-des.m4: New file.
65347
65348 2005-10-21  Simon Josefsson  <jas@extundo.com>
65349
65350         * m4/arctwo.m4: New file.
65351
65352         * m4/gc-arctwo.m4: New file.
65353
65354 2005-10-21  Simon Josefsson  <jas@extundo.com>
65355
65356         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65357         block.
65358
65359 2005-10-21  Simon Josefsson  <jas@extundo.com>
65360
65361         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65362         <bruno@clisp.org>.
65363
65364         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65365
65366         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65367         Bruno Haible <bruno@clisp.org>.
65368
65369         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65370         <bruno@clisp.org>.
65371
65372 2005-10-21  Simon Josefsson  <jas@extundo.com>
65373
65374         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65375
65376 2005-10-21  Simon Josefsson  <jas@extundo.com>
65377
65378         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65379
65380 2005-10-21  Simon Josefsson  <jas@extundo.com>
65381
65382         * lib/des.h, lib/des.c: New files.
65383
65384         * lib/gc-gnulib.c: Support DES.c
65385
65386 2005-10-21  Simon Josefsson  <jas@extundo.com>
65387
65388         * lib/arctwo.h, lib/arctwo.c: New files.
65389
65390         * lib/gc-gnulib.c: Support ARCTWO.
65391
65392 2005-10-21  Simon Josefsson  <jas@extundo.com>
65393
65394         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65396
65397 2005-10-21  Simon Josefsson  <jas@extundo.com>
65398
65399         * gnulib-tool (func_import, func_create_testdir): Define automake
65400         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65401         Makefile.am snippet),
65402         suggested by Bruno Haible <bruno@clisp.org>.
65403
65404         * modules/gc (Makefile.am): Use it.
65405
65406 2005-10-21  Bruno Haible  <bruno@clisp.org>
65407
65408         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65409         patch.
65410
65411 2005-10-19  Simon Josefsson  <jas@extundo.com>
65412
65413         * tests/test-gc-rijndael.c: New file.
65414
65415         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65416
65417 2005-10-19  Simon Josefsson  <jas@extundo.com>
65418
65419         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65420         interface too.
65421
65422 2005-10-19  Simon Josefsson  <jas@extundo.com>
65423
65424         * tests/test-gc-arcfour.c: New file.
65425
65426         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65427
65428 2005-10-19  Simon Josefsson  <jas@extundo.com>
65429
65430         * modules/gc-md4, modules/gc-md4-tests: New file.
65431
65432         * tests/test-gc-md4.c: New file.
65433
65434 2005-10-19  Simon Josefsson  <jas@extundo.com>
65435
65436         * m4/gc-md4.m4: New file.
65437
65438 2005-10-19  Simon Josefsson  <jas@extundo.com>
65439
65440         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65441         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65442         <kasal@ucw.cz>.
65443
65444 2005-10-19  Simon Josefsson  <jas@extundo.com>
65445
65446         * m4/gc-arcfour.m4: New file.
65447
65448         * m4/gc-rijndael.m4: New file.
65449
65450 2005-10-19  Simon Josefsson  <jas@extundo.com>
65451
65452         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65453
65454 2005-10-19  Simon Josefsson  <jas@extundo.com>
65455
65456         * lib/gc-gnulib.c: Support ARCFOUR.
65457
65458 2005-10-19  Simon Josefsson  <jas@extundo.com>
65459
65460         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65461         support.
65462
65463         * lib/gc.h: Add ECB enum type.
65464
65465         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65466
65467 2005-10-18  Simon Josefsson  <jas@extundo.com>
65468
65469         * tests/test-md5.c: New file.
65470
65471         * modules/md5-tests: New file.
65472
65473 2005-10-18  Simon Josefsson  <jas@extundo.com>
65474
65475         * tests/test-md4.c: New file.
65476
65477         * modules/md4, modules/md4-tests: New files.
65478
65479 2005-10-18  Simon Josefsson  <jas@extundo.com>
65480
65481         * m4/md4.m4: New file.
65482
65483 2005-10-18  Simon Josefsson  <jas@extundo.com>
65484
65485         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65486
65487 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65488
65489         * gnulib-tool (func_create_testdir): Omit the second check whether
65490         BUILT_SOURCES in nonempty.
65491
65492 2005-10-17  Simon Josefsson  <jas@extundo.com>
65493
65494         * tests/test-rijndael.c: New file.
65495
65496 2005-10-17  Simon Josefsson  <jas@extundo.com>
65497
65498         * modules/sha1: Depend on stdint instead of md5.
65499
65500         * modules/md5: Depend on stdint, remove uint32_t.
65501
65502 2005-10-17  Simon Josefsson  <jas@extundo.com>
65503
65504         * modules/gc-sha1-tests: New file.
65505
65506         * tests/test-gc-sha1.c: New file.
65507
65508 2005-10-17  Simon Josefsson  <jas@extundo.com>
65509
65510         * m4/md5.m4: Remove call to uint32_t.m4.
65511
65512 2005-10-17  Simon Josefsson  <jas@extundo.com>
65513
65514         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65515
65516         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65517         md5.h.
65518
65519         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65520
65521         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65522
65523 2005-10-17  Simon Josefsson  <jas@extundo.com>
65524
65525         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65526
65527 2005-10-17  Simon Josefsson  <jas@extundo.com>
65528
65529         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65530
65531 2005-10-17  Simon Josefsson  <jas@extundo.com>
65532
65533         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65534
65535         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65536
65537 2005-10-17  Bruno Haible  <bruno@clisp.org>
65538
65539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65540         that it can also be used in a test.
65541
65542 2005-10-16  Bruno Haible  <bruno@clisp.org>
65543
65544         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65545         TESTS_ENVIRONMENT, so that individual tests can augment it.
65546
65547         * gnulib-tool (func_create_testdir): Use an intermediate target for
65548         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65549         macros, like $(ALLOCA_H), which cannot be passed through the command
65550         line.
65551
65552 2005-10-15  Simon Josefsson  <jas@extundo.com>
65553
65554         * modules/rijndael-tests: New file.
65555
65556         * modules/rijndael: New file.
65557
65558 2005-10-15  Simon Josefsson  <jas@extundo.com>
65559
65560         * m4/rijndael.m4: New file.
65561
65562 2005-10-15  Simon Josefsson  <jas@extundo.com>
65563
65564         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65565
65566         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65567
65568 2005-10-14  Simon Josefsson  <jas@extundo.com>
65569
65570         * tests/test-arcfour.c: New file.
65571
65572         * modules/arcfour, modules/arcfour-tests: New files.
65573
65574 2005-10-14  Simon Josefsson  <jas@extundo.com>
65575
65576         * m4/arcfour.m4: New file.
65577
65578 2005-10-14  Simon Josefsson  <jas@extundo.com>
65579
65580         * lib/arcfour.h, lib/arcfour.c: New files.
65581
65582 2005-10-14  Roland McGrath  <roland@redhat.com>
65583
65584         Import from libc.  [BZ #1331]
65585         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65586         macro argument.
65587         Reported by Matej Vela <vela@debian.org>.
65588
65589 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65592         include <wchar.h>; no longer needed.
65593
65594 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65597
65598 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65599         and  Ulrich Drepper  <drepper@redhat.com>
65600
65601         Import from libc.
65602         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65603         instead of inline stream orientation test and two separate
65604         function calls.  Pay no attention to USE_IN_LIBIO.
65605
65606 2005-10-13  Simon Josefsson  <jas@extundo.com>
65607
65608         * modules/gc-hmac-md5-tests: New file.
65609
65610         * tests/test-gc-hmac-sha1.c: New file.
65611
65612         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65613
65614         * modules/gc-hmac-md5-tests: New file.
65615
65616         * tests/test-gc-md5.c: New file.
65617
65618         * modules/gc-md5-tests: New file.
65619
65620 2005-10-13  Simon Josefsson  <jas@extundo.com>
65621
65622         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65623         Move memory allocation outside of loop.
65624
65625 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65628         intermediate directory is in a read-only file system.  Problem
65629         reported by Eric Blake.
65630
65631 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65632
65633         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65634
65635 2005-10-12  Simon Josefsson  <jas@extundo.com>
65636
65637         * tests/test-hmac-sha1.c: New file.
65638
65639         * modules/hmac-sha1-tests: New file.
65640
65641         * modules/hmac-sha1: New file.
65642
65643 2005-10-12  Simon Josefsson  <jas@extundo.com>
65644
65645         * modules/gc-sha1: New file.
65646
65647 2005-10-12  Simon Josefsson  <jas@extundo.com>
65648
65649         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65650
65651         * tests/test-gc-pbkdf2-sha1.c: New file.
65652
65653 2005-10-12  Simon Josefsson  <jas@extundo.com>
65654
65655         * modules/gc-md5, modules/gc-hmac-md5: New files.
65656
65657         * modules/gc (Files): Remove md5, memxor and hmac files.
65658
65659 2005-10-12  Simon Josefsson  <jas@extundo.com>
65660
65661         * m4/gc-pbkdf2-sha1.m4: New file.
65662
65663         * m4/gc-hmac-sha1.m4: New file.
65664
65665         * m4/gc-sha1: New file.
65666
65667         * m4/hmac-sha1.m4: New file.
65668
65669 2005-10-12  Simon Josefsson  <jas@extundo.com>
65670
65671         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65672
65673         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65674
65675 2005-10-12  Simon Josefsson  <jas@extundo.com>
65676
65677         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65678         suggested by Bruno Haible <bruno@clisp.org>.
65679
65680 2005-10-12  Simon Josefsson  <jas@extundo.com>
65681
65682         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65683
65684 2005-10-12  Simon Josefsson  <jas@extundo.com>
65685
65686         * lib/gc-pbkdf2-sha1.c: New file.
65687
65688         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65689
65690 2005-10-12  Simon Josefsson  <jas@extundo.com>
65691
65692         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65693
65694         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65695
65696 2005-10-12  Simon Josefsson  <jas@extundo.com>
65697
65698         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65699         GC_USE_HMAC_MD5, respectively.
65700
65701         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65702         (gc_md5): Fix typo.
65703
65704         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65705
65706         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65707
65708         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65709
65710 2005-10-12  Bruno Haible  <bruno@clisp.org>
65711
65712         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65713         Reported by Stepan Kasal <kasal@ucw.cz>.
65714
65715 2005-10-11  Simon Josefsson  <jas@extundo.com>
65716
65717         * tests/test-crc.c: New file.
65718
65719         * modules/crc, modules/crc-tests: New files.
65720
65721 2005-10-11  Simon Josefsson  <jas@extundo.com>
65722
65723         * m4/crc.m4: New file.
65724
65725 2005-10-11  Simon Josefsson  <jas@extundo.com>
65726
65727         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65728
65729         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65730
65731         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65732
65733 2005-10-11  Simon Josefsson  <jas@extundo.com>
65734
65735         * lib/crc.h, lib/crc.c: New files.
65736
65737         * lib/gc.h (gc_hash_buffer): Add doc.
65738
65739 2005-10-11  Bruno Haible  <bruno@clisp.org>
65740
65741         * modules/c-strcasestr: New file.
65742         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65743
65744 2005-10-11  Bruno Haible  <bruno@clisp.org>
65745
65746         * modules/c-strcase: New file.
65747         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65748
65749 2005-10-11  Bruno Haible  <bruno@clisp.org>
65750
65751         * lib/strcasecmp.c: Include limits.h.
65752         (strcasecmp): Avoid integer overflow on exotic platforms.
65753         * lib/strncasecmp.c: Include limits.h.
65754         (strncasecmp): Avoid integer overflow on exotic platforms.
65755         Reported by Paul Eggert.
65756
65757 2005-10-11  Bruno Haible  <bruno@clisp.org>
65758
65759         * lib/c-strcasestr.h: New file, from GNU gettext.
65760         * lib/c-strcasestr.c: New file, from GNU gettext.
65761
65762 2005-10-11  Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/c-strcase.h: New file, from GNU gettext.
65765         * lib/c-strcasecmp.c: New file, from GNU gettext.
65766         * lib/c-strncasecmp.c: New file, from GNU gettext.
65767
65768 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65769
65770         * modules/mempcpy (License): GPL -> LGPL.
65771         * modules/strchrnul (License): Likewise.
65772         * modules/sysexits (License): Likewise.
65773
65774 2005-10-08  Simon Josefsson  <jas@extundo.com>
65775
65776         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65777
65778 2005-10-07  Simon Josefsson  <jas@extundo.com>
65779
65780         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65781
65782 2005-10-06  Simon Josefsson  <jas@extundo.com>
65783
65784         * tests/test-hmac-md5.c: New file.
65785
65786         * modules/hmac-md5-tests: New file.
65787
65788         * modules/hmac-md5: New file.
65789
65790 2005-10-06  Simon Josefsson  <jas@extundo.com>
65791
65792         * m4/hmac-md5.m4: New file.
65793
65794         * m4/memxor.m4: Require gl_C_RESTRICT.
65795
65796 2005-10-06  Simon Josefsson  <jas@extundo.com>
65797
65798         * lib/memxor.c (memxor): Avoid casts and warnings.
65799
65800 2005-10-06  Simon Josefsson  <jas@extundo.com>
65801
65802         * lib/hmac-md5.c: New file.
65803
65804         * lib/hmac.h: New file.
65805
65806 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65809         promotes to int, not unsigned int, to catch the AIX 5.3
65810         compiler bug.
65811
65812 2005-10-05  Simon Josefsson  <jas@extundo.com>
65813
65814         * modules/memxor: New file.
65815
65816         * modules/iconv (Files): Move config.rpath to havelib, it is used
65817         there.
65818
65819         * modules/havelib (Files): Add config.rpath.
65820
65821 2005-10-05  Simon Josefsson  <jas@extundo.com>
65822
65823         * m4/memxor.m4: New file.
65824
65825 2005-10-05  Simon Josefsson  <jas@extundo.com>
65826
65827         * lib/memxor.c (memxor): Fix compiler error.
65828
65829         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65830         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65831
65832         * lib/memxor.h, lib/memxor.c: New files.
65833
65834         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65835         we assume all systems have it, suggested by Jim Meyering
65836         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65837         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65838         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65839         same reasons.
65840
65841 2005-10-05  Simon Josefsson  <jas@extundo.com>
65842
65843         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65844
65845 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65848         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65849         needed, since the source code now assumes these .h files.
65850
65851 2005-10-05  Derek Price  <derek@ximbiot.com>
65852
65853         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65854
65855 2005-10-05  Bruno Haible  <bruno@clisp.org>
65856
65857         * modules/stdint (License): Change to LGPL.
65858
65859 2005-10-04  Simon Josefsson  <jas@extundo.com>
65860
65861         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65862         D. Baushke" <mdb@gnu.org>.
65863
65864 2005-10-04  Bruno Haible  <bruno@clisp.org>
65865
65866         * lib/verify.h (verify_true): Provide alternative definition for C++.
65867
65868 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65871         (SSIZE_MAX): New macro, if not already defined.
65872         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65873         than 2 GiB.
65874
65875 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         Sync from coreutils.
65878         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65879         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65880         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65881         ULLONG_MAX doesn't work with 2.7.2.1.
65882
65883 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65886         From Ben Pfaff.
65887
65888         * modules/exclude (Depends-on): Depend on verify.
65889         * modules/strtoimax (Depends-on): Likewise.
65890         * modules/utimecmp (Depends-on): Likewise.
65891
65892 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65893
65894         * lib/exclude.c: Include verify.h.
65895         (verify): Remove.  All callers changed to use verify.h's version.
65896         * lib/strtoimax.c: Likewise.
65897         * lib/utimecmp.c: Likewis.e
65898
65899         Sync from coreutils.
65900         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65901         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65902         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65903         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65904         bother returning ENOSYS if settimeofday or stime fails; just let
65905         them return whatever errno they want to return.
65906         * lib/utimens.c: Include unistd.h, for dup2.
65907         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65908         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65909
65910 2005-10-02  Jim Meyering  <jim@meyering.net>
65911
65912         Sync from coreutils.
65913         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65914         from glibc-2.2.5 that fails for read-only files.
65915
65916 2005-10-02  Jim Meyering  <jim@meyering.net>
65917
65918         Sync from coreutils.
65919         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65920         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65921         `#if HAVE_CONFIG_H'.
65922         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65923         Remove AT_FDCWD test.
65924         Do not consume the fd unless successful.
65925         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65926         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65927         block, so that we don't even try to compile it if settimeofday is
65928         available.  This works around a compilation failure on OSF1 V5.1,
65929         due to stime requiring a `long int*' while tv_sec is `int'.
65930
65931 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65932
65933         Sync from coreutils.
65934         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65935         against `yes', rather than just testing for nonempty.
65936
65937 2005-10-01  Simon Josefsson  <jas@extundo.com>
65938
65939         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65940         and Darwin.
65941
65942         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65943         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65944         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65945         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65946         Check if struct addrinfo is declared.
65947
65948 2005-10-01  Simon Josefsson  <jas@extundo.com>
65949
65950         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65951         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65952         AI_* and EAI_* definitions.  Protect function declarations.
65953
65954 2005-10-01  Jim Meyering  <jim@meyering.net>
65955
65956         Sync from coreutils.
65957
65958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65959         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65960         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65961         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65962         in the inet and nsl libraries.  Required on Solaris 5.7.
65963
65964 2005-10-01  Jim Meyering  <jim@meyering.net>
65965
65966         Sync from coreutils.
65967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65968         in the inet and nsl libraries.  Required on Solaris 5.7.
65969
65970 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65971
65972         * lib/getdelim.c (getdelim): Remove unused variables.
65973
65974 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65977         so that the code works even with ancient cpp.  Portability problem
65978         with GCC 2.7.2.1 reported by Thomas M.Ott.
65979
65980 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * modules/regex (Depends-on): Add strcase.
65983
65984         * modules/gethostname (Licence): Change from GPL to LGPL, since
65985         gethostname.c is a trivial implementation of a standard library
65986         function.
65987         * modules/poll (License): Change from GPL to LGPL, since it's
65988         derived from LGPL code.
65989
65990 2005-09-27  Jim Meyering  <jim@meyering.net>
65991
65992         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65993         HAVE_CONFIG_H.
65994
65995         * lib/intprops.h (signed_type_or_expr__): Define.
65996         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65997         for unsigned types.
65998
65999 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * lib/verify.h (verify_expr): Remove, replacing with:
66002         (verify_true): New macro that returns true instead of void.
66003         (verify_type__): Remove.
66004         (verify): Use verify_true rather than verify_type__.
66005
66006 2005-09-26  Bruno Haible  <bruno@clisp.org>
66007
66008         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66009         is necessary.
66010         (lib_SOURCES): Remove mbchar.c.
66011         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66012         (Files): Add m4/mbrtowc.m4.
66013         * modules/mbiter: Likewise.
66014         * modules/mbuiter: Likewise.
66015
66016 2005-09-26  Bruno Haible  <bruno@clisp.org>
66017
66018         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66019         compile mbchar.c if they are not both present.
66020         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66021         * m4/mbiter.m4 (gl_MBITER): Likewise.
66022         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66023         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66024         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66025
66026 2005-09-25  Jim Meyering  <jim@meyering.net>
66027
66028         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66029         also uses socklen_t.
66030
66031 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         * lib/utimens.c (ENOSYS): Define if not already defined.
66034         (futimens): Support having a null PATH if the file descriptor
66035         is nonnegative.
66036
66037         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66038         Remove.
66039         (__attribute): Define to empty unless GCC 3.1 or later.
66040         This works around a core dump on OpenBSD 3.4, which has GCC
66041         2.95.3, which dumps core when given __attribute__(()).  It also
66042         simplifies other tests, since we really don't want to bother with
66043         worrying about which ancient version of GCC supported what.
66044         Original problem reported by Yoann Vandoorselaere, with part of
66045         the fix suggested by Derek Price.
66046
66047 2005-09-24  Jim Meyering  <jim@meyering.net>
66048
66049         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
66050         so we can once again use a positive bitfield width of 1 -- now we
66051         don't have to explain why we were using a bitfield width of 2.
66052
66053 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66056         and similarly for the other external symbols.  Problem reported
66057         by James Gallager.
66058
66059         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66060         bug reported by Jim Meyering.
66061
66062         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66063         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66064         not needed, since socklen is a prerequisite module.
66065
66066 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66069         Problem reported by Eric Blake.
66070         (getaddrinfo): Initialize se so that it's not garbage.
66071         Redo internal storage allocation so that it doesn't make unportable
66072         assumptions about alignment.
66073         Fix a memory leak.
66074
66075         * lib/utimens.c (futimens): Use futimesat if available.
66076         Prefer it to futimes since it doesn't have the futimes bug.
66077
66078         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66079         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66080         Instead, declare a function that returns a pointer to an array,
66081         and use verify_type__ to declare the size of the array.
66082         Problem and germ of a solution reported by Bruno Haible.
66083         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66084         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66085
66086 2005-09-23  Jim Meyering  <jim@meyering.net>
66087
66088         Sync from coreutils.
66089         Correct build failure (socklen_t not defined) on at least
66090         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66092
66093 2005-09-23  Jim Meyering  <jim@meyering.net>
66094
66095         * modules/getaddrinfo (Depends-on): Add socklen.
66096
66097 2005-09-23  Bruno Haible  <bruno@clisp.org>
66098
66099         * tests/test-verify.c: New file.
66100
66101 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66102
66103         Sync from coreutils.
66104
66105         * modules/argmatch (Depends-on): Add verify.
66106         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66107         unistd-safer.
66108         * modules/save-cwd (Depends-on): Likewise.
66109
66110         * modules/openat (Files): Add lib/openat-die.c.
66111         (Depends-on): Remove error, exitfail.
66112         Add dirname.
66113
66114         * modules/verify: New file.
66115         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66116         with "verify" module.
66117
66118 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         Sync from coreutils.
66121
66122         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66123         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66124         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66125         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66126         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66127         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66128         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66129         Don't bother checking for string.h, stdlib.h, unistd.h.
66130         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66131         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66132         module's job.
66133         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66134         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66135
66136         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66137         (gl_GETDATE): Use it.
66138
66139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66140
66141 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         Sync from coreutils.
66144
66145         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66146         stat-time.h.
66147         * lib/argmatch.h: Include verify.h
66148         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66149         (ARGMATCH_ASSERT): Remove; unused.
66150         * lib/canonicalize.c: Assume STDC_HEADERS.
66151         * lib/exclude.c: Include "strcase.h".
66152         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66153         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66154         and stdio-safer.h.
66155         (getusershell): Call fopen, not fopen_safer.
66156         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66157         Do not include unistd-safer.h.
66158         (save_cwd): Don't call fd_safer; no longer needed
66159         now that we include fcntl--.h.
66160
66161         * lib/getdate.y (relative_time): New type.
66162         (RELATIVE_TIME_0): New constant.
66163         (parser_control): Use relative_time instead of doing it ourselves.
66164         (%union): Add new relative_time rel member.
66165         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66166         Now typeless.
66167         (relunit, relunit_snumber): Now of type rel.
66168         (zone, rel, relunit, get_date): Adjust to above changes.
66169
66170         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66171         Do not include unistd-safer.h.
66172         (getloadavg): Don't call fd_safer; no longer needed
66173         now that we include fcntl--.h.
66174
66175         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66176         (make_dir_parents): Treat ENOSYS like EEXIST.
66177
66178         Improve quality of diagnostics on restore_cwd failure.
66179         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66180         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66181         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66182         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66183         each time through the loop.  Do not diagnose restore_cwd failure;
66184         that is the caller's job (and perhaps the caller does not care).
66185
66186         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66187         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66188         If the file already exists but is not a directory, don't bother
66189         to try to make its parents.
66190         Close potential file descriptor leak if we can't chdir("/") (!).
66191         Don't always return true if chdir($PWD) fails; return true only
66192         if the requested action was done successfully (except for the
66193         chdir($PWD)).
66194         Don't log final directory unless we actually made it.
66195         Refactor to avoid duplicate code to fix up permissions.
66196         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66197
66198         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66199         to make it a bit faster and (I hope) clearer.
66200         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66201         Fix bug in formats like %2N.
66202
66203         * lib/verify.h: New file.
66204
66205 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66206
66207         Sync from coreutils.
66208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66209
66210 2005-09-22  Jim Meyering  <jim@meyering.net>
66211
66212         Sync from coreutils.
66213
66214         * m4/lstat.m4 (gl_FUNC_LSTAT):
66215         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66216         Remove obsolete comment.
66217         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66218         * m4/xstrtod.m4: Likewise.
66219
66220         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66221
66222 2005-09-22  Jim Meyering  <jim@meyering.net>
66223
66224         Sync from coreutils.
66225
66226         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66227
66228         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66229         the .tm_year member, since otherwise gcc-4.0 would now warn about
66230         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66231
66232         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66233         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66234
66235         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66236         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66237         when run in a time zone for which daylight savings time is in effect
66238         for the starting date.
66239
66240         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66241         stop us from restricting permissions of just-created absolute-named
66242         directories.
66243         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66244         to restore initial working directory.
66245         * lib/mkdir-p.c (make_dir_parents): New parameter:
66246         different_working_dir, to tell caller if/when we change the working
66247         directory and are unable to return to the initial one.
66248         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66249         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66250         `return false'.  This fixes a bug introduced on 2004-07-30.
66251
66252         * lib/openat.c (fdopendir): Be sure to close the supplied
66253         file descriptor before returning.  This makes our replacement
66254         implementation a little closer to Solaris's, where fdopendir
66255         ties the file descriptor to the returned DIR* pointer.
66256         * lib/openat.c (unlinkat): New function.
66257         * lib/openat.h (unlinkat): Add prototype.
66258         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66259         (openat_restore_fail): Rename from openat_restore_die.
66260         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66261
66262         Provide an alternative to exiting immediately upon save_cwd or
66263         restore_cwd failure.  Now, an application can arrange e.g.,
66264         to perform a longjump in that case.
66265         * lib/openat.c: Include dirname.h.
66266         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66267         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66268         and openat_restore_die rather than calling error directly.
66269         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66270
66271         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66272         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66273         define.
66274
66275         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66276         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66277                             int utc, int nanoseconds);
66278         Background:
66279         date should not have to allocate a megabyte of virtual memory to
66280         handle a format argument like +%1048575T.  When implemented with
66281         strftime, it must allocate such a buffer, use strftime to fill it
66282         in, print it, then free it.
66283         With fprintftime, it simply prints everything and exits.
66284         With no need for memory allocation, that's one fewer way to fail.
66285         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66286         optional field width, not before, so we accept %9:z, not %:9z.
66287         (my_strftime): Be sure to use L_('x') for literals.
66288
66289         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66290         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66291         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66292         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66293         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66294         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66295         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66296         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66297         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66298         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66299         * lib/xgethostname.c, lib/xreadlink.c:
66300         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66301
66302         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66303         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66304         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66305         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66306         and don't include <sys/file.h>).
66307
66308 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66309
66310         Sync from coreutils.
66311
66312         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66313         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66314         [!LDAV_DONE]: Avoid unused variable warning.
66315
66316 2005-09-21  Bruno Haible  <bruno@clisp.org>
66317
66318         * lib/unicodeio.h (unicode_to_mb): New declaration.
66319
66320 2005-09-20  Derek Price  <derek@ximbiot.com>
66321
66322         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66323         getaddrinfo.h.
66324
66325 2005-09-20  Bruno Haible  <bruno@clisp.org>
66326
66327         * gnulib-tool: Remove trailing slashes from the values specified for
66328         --source-base, --m4-base, --tests-base, --aux-dir.
66329         Suggested by Simon Josefsson <jas@extundo.com>.
66330
66331 2005-09-20  Bruno Haible  <bruno@clisp.org>
66332
66333         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66334         func_modules_to_filelist, func_import, func_create_testdir): Make all
66335         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66336         change when gnulib-tool is invoked in a different locale.
66337
66338 2005-09-19  Simon Josefsson  <jas@extundo.com>
66339
66340         * m4/socklen.m4: Fix typo.
66341
66342 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66343
66344         Use a consistent style for including <config.h>.
66345         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66346         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66347         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66348         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66349         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66350         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66351         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66352         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66353         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66354         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66355         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66356         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66357         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66358         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66359         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66360         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66361         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66362         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66363         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66364         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66365         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66366         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66367         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66368         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66369         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66370         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66371         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66372         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66373         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66374         lib/xstrtoumax.c, lib/yesno.c:
66375         Standardize inclusion of config.h.
66376         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66377         lib/inttostr.h:  Removed inclusion of config.h from header files.
66378         * lib/inttostr.c:  Adjusted in-tree users.
66379         * lib/timespec.h: Remove superfluous warning to include config.h.
66380         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66381         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66382         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66383         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66384         config.h with HAVE_CONFIG_H.
66385
66386 2005-09-19  Jim Meyering  <jim@meyering.net>
66387
66388         * modules/pathmax (License): Change to LGPL.
66389
66390 2005-09-19  Derek Price  <derek@ximbiot.com>
66391
66392         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66393
66394 2005-09-19  Bruno Haible  <bruno@clisp.org>
66395
66396         * gnulib-tool (import): Provide default for --tests-base.
66397
66398 2005-09-19  Bruno Haible  <bruno@clisp.org>
66399
66400         * doc/quote.texi: New file, extracted from gnulib.texi.
66401         * doc/ctime.texi: New file, extracted from gnulib.texi.
66402         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66403         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66404         * doc/gnulib.texi: Include them.
66405
66406 2005-09-18  Bruno Haible  <bruno@clisp.org>
66407
66408         Portability fix.
66409         * gnulib-tool (func_readlink): New function.
66410         (func_ln_if_changed): Use it.
66411
66412 2005-09-18  Bruno Haible  <bruno@clisp.org>
66413
66414         * gnulib-tool: Support --with-tests also with --import.
66415         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66416         (func_import): Use variables $testsbase and $inctests. Emit a
66417         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66418         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66419         SUBDIRS += $testsdir.
66420         (func_create_testdir): Update.
66421
66422 2005-09-18  Bruno Haible  <bruno@clisp.org>
66423
66424         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66425         instead of $dry_run.
66426         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66427         (func_ln_if_changed): Don't handle dry-run here.
66428         (func_import): In dry-run mode, detect more precisely which actions
66429         would be performed, and don't use "...ing" verbs.
66430
66431 2005-09-18  Bruno Haible  <bruno@clisp.org>
66432
66433         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66434         (func_import): Use join on two temporary files instead of three nested
66435         loops, in order to determine which files are new or old.
66436
66437 2005-09-18  Bruno Haible  <bruno@clisp.org>
66438
66439         * gnulib-tool (func_import): Comment out code that spits out the
66440         new files with --dry-run.
66441
66442 2005-09-18  Bruno Haible  <bruno@clisp.org>
66443
66444         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66445
66446 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * lib/stat-time.h: New file.
66449         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66450         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66451         in a different way.
66452         (timespec_cmp): New function.
66453         * lib/utimecmp.c: Include stat-time.h.
66454         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66455         members exist, not on the obsolescent ST_MTIM_NSEC.
66456         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66457
66458 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66461
66462 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         * MODULES.html.sh (File system functions): Add stat-time.
66465         * modules/stat-time: New file.
66466         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66467         is now done in a different way, by the stat-time module.
66468         * modules/utimecmp (Depends-on): Add stat-time.
66469
66470 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66471
66472         * m4/st_mtim.m4: Remove.  Superseded by...
66473         * m4/stat-time.m4: New file.
66474         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66475         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66476
66477 2005-09-15  Derek Price  <derek@ximbiot.com>
66478
66479         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66480
66481 2005-09-15  Derek Price  <derek@ximbiot.com>
66482
66483         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66484         * lib/regex_internal.c: Ditto, using this...
66485         (__GNUC_PREREQ): ...new macro.
66486         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66487         using...
66488         (__GNUC_PREREQ): ...this new macro.
66489
66490         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66491
66492 2005-09-15  Derek Price  <derek@ximbiot.com>
66493             Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66496         changes, consolidating in...
66497         * lib/regex_internal.h: ...this file.
66498
66499 2005-09-13  Jim Meyering  <jim@meyering.net>
66500
66501         * lib/canon-host.c: Filter through gnu indent and reword comments
66502         slightly.
66503         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66504
66505 2005-09-13  Derek Price  <derek@ximbiot.com>
66506
66507         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66508         failure.
66509         Reported by Jim Meyering  <jim@meyering.net>.
66510
66511 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66512
66513         * lib/base64.c: Typo.
66514         (base64_encode): Put b64str in initialized data section.
66515
66516 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         Merge glibc and coreutils changes into gnulib, plus a few
66519         extra fixes.
66520         * lib/md5.c: Use #error rather than a string.
66521         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66522         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66523         (__attribute__): Define to empty for non recent-GCC.
66524         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66525         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66526         Renamed from their non-__ counterparts, with new macros replacing
66527         them if not _LIBC.  Add __THROW attribute.
66528         (rol): Remove.
66529         (struct md5_ctx): Align buffer if using GCC.
66530         * lib/sha1.h (struct sha1_ctx): Likewise.
66531         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66532         The old name was backwards.
66533         (NOTSWAP): Remove; not used.
66534         (rol): New macro, moved here from md5.h.
66535         (sha1_process_block): Remove a FIXME that doesn't make sense.
66536
66537 2005-09-12  Derek Price  <derek@ximbiot.com>
66538
66539         Return usable errors from canon-host.
66540         * lib/canon-host.h: New file.
66541         * lib/canon-host.c (canon_host): Wrap...
66542         (canon_host_r): ...this new function, which now relies exclusively on
66543         getaddrinfo.
66544         (ch_strerror): New function.
66545         (last_cherror): New global.
66546         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66547         interface.
66548         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66549         void *.
66550         (freeaddrinfo): Free ai->ai_canonname when set.
66551
66552 2005-09-12  Derek Price  <derek@ximbiot.com>
66553
66554         Make canon-host require getaddrinfo.
66555         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66556         AC_LIBSOURCE canon-host.h.  Call...
66557         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66558         gl_GETADDRINFO.
66559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66560
66561 2005-09-12  Derek Price  <derek@ximbiot.com>
66562
66563         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66564         LGPL.
66565         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66566
66567 2005-09-12  Derek Price  <derek@ximbiot.com>
66568
66569         * lib/gai_strerror.c: Include config.h when available.  Include
66570         getaddrinfo.h before other headers to test interface.
66571         Reported by Larry Jones <lawrence.jones@ugs.com>.
66572
66573 2005-09-12  Derek Price  <derek@ximbiot.com>
66574             Paul Eggert  <eggert@cs.ucla.edu>
66575
66576         * modules/glob (Files): Add glob-libc.h.
66577
66578 2005-09-12  Derek Price  <derek@ximbiot.com>
66579             Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66582         glob_.h, glob-libc.h.
66583         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66584
66585 2005-09-12  Derek Price  <derek@ximbiot.com>
66586             Paul Eggert  <eggert@cs.ucla.edu>
66587
66588         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66589         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66590         protecting things that should be done only in gnulib contexts.
66591         * lib/glob_.h: New file, containing only the glob things needed for
66592         gnulib.
66593         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66594         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66595         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66596         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66597         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66598         and to respect the namespace rules better.
66599
66600 2005-09-08  Simon Josefsson  <jas@extundo.com>
66601
66602         * modules/socklen: New file.
66603
66604 2005-09-08  Simon Josefsson  <jas@extundo.com>
66605
66606         * m4/socklen.m4: New file.
66607
66608 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * modules/utimens (Files): Add m4/utimbuf.m4, since
66611         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66612         Reported by Sergey Poznyakoff.
66613
66614 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66615
66616         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66617         definitions, since that's the preferred style in glibc.
66618         Fix a minor spacing issue, and update copyright notice to match
66619         glibc's.
66620
66621 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66622
66623         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66624
66625 2005-09-06  Simon Josefsson  <jas@extundo.com>
66626
66627         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66628         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66629
66630 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66633         warning.
66634
66635 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66636
66637         * config/srclist.txt: Add glibc bug 1302.
66638
66639 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         Change bitset word type from unsigned int to unsigned long int,
66642         as this has better performance on typical 64-bit hosts.
66643         Port bitset code to hosts with unusual word sizes.
66644         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66645         (build_collating_symbol):
66646         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66647         argument is a bitset.  This is merely a style issue, but it makes
66648         it clearer that an entire array is expected.
66649         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66650         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66651         Port to the case where bitset_word is not the same as unsigned int.
66652         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66653         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66654         Likewise.
66655         * lib/regexec.c (check_dst_limits_calc_pos_1,
66656         check_subexp_matching_top):
66657         (build_trtable, group_nodes_into_DFAstates):
66658         Likewise.
66659         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66660         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66661         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66662         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66663         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66664         * lib/regcomp.c (optimize_subexps, lower_subexp):
66665         Work even if bitset_word has holes in its bitwise representation.
66666         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66667         * lib/regexec.c (check_dst_limits_calc_pos_1,
66668         check_subexp_matching_top):
66669         Likewise.
66670         * lib/regex_internal.c (re_string_reconstruct):
66671         Don't assume UCHAR_MAX == 255.
66672         * lib/regex_internal.h (bitset_set_all): Likewise.
66673         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66674         All uses changed.
66675         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66676         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66677         All uses changed.
66678         (BITSET_WORD_MAX): New macro.
66679         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66680         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66681         (bitset_empty, bitset_copy):
66682         Prefer sizeof (bitset) to multiplying it out ourselves.
66683         (bitset_not_merge): Remove; unused.
66684         (bitset_contain): Return bool, not unsigned int with one bit on.
66685         All callers changed.
66686         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66687         alignment than re_node_set; do this by defining a new internal
66688         type struct dests_alloc and using it to allocate memory.
66689
66690 2005-09-05  Bruno Haible  <bruno@clisp.org>
66691
66692         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66693         links.
66694
66695 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66696
66697         * modules/size_max (Makefile.am): Add size_max.h
66698
66699 2005-09-04  Derek Price  <derek@ximbiot.com>
66700
66701         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66702
66703 2005-09-03  Simon Josefsson  <jas@extundo.com>
66704
66705         * gnulib-tool: Fix typo.
66706
66707 2005-09-03  Simon Josefsson  <jas@extundo.com>
66708
66709         * config/srclist.txt: Add glibc bug 1293.
66710
66711 2005-09-03  Derek Price  <derek@ximbiot.com>
66712
66713         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66714         From Larry Jones <lawrence.jones@ugs.com>.
66715
66716 2005-09-02  Simon Josefsson  <jas@extundo.com>
66717
66718         * modules/socklen: New file.
66719
66720 2005-09-02  Simon Josefsson  <jas@extundo.com>
66721
66722         * modules/havelib: New module.
66723
66724         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66725         Use havelib.
66726
66727 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         Check for arithmetic overflow when calculating sizes, to prevent
66730         some buffer-overflow issues.  These patches are conservative, in the
66731         sense that when I couldn't determine whether an overflow was possible,
66732         I inserted a run-time check.
66733         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66734         macros.
66735         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66736         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66737         (re_xnrealloc, re_x2nrealloc): New inline functions.
66738         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66739         parse_bracket_exp):
66740         (build_equiv_class, build_charclass): Check for arithmetic overflow
66741         in size expression calculations.
66742         * lib/regex_internal.c (re_string_realloc_buffers):
66743         (build_wcs_upper_buffer, re_node_set_add_intersect):
66744         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66745         (re_dfa_add_node, register_state): Likewise.
66746         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66747         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66748         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66749         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66750
66751 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66754         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66755
66756 2005-09-02  Bruno Haible  <bruno@clisp.org>
66757
66758         Support for lib vs. lib64 distinction on biarch platforms.
66759         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66760         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66762
66763 2005-09-02  Bruno Haible  <bruno@clisp.org>
66764
66765         * gnulib-tool (import): In the other first-use case, provide defaults
66766         as well.
66767
66768 2005-09-02  Bruno Haible  <bruno@clisp.org>
66769
66770         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66771         patches not yet found in the latest gettext release.
66772
66773 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66774
66775         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66776         to avoid a collision with bits/local_lim.h in glibc.
66777         All uses changed.  Problem reported by Dmitry V. Levin in
66778         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66779
66780         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66781         bugs in int versus size_t comparisons.
66782         (re_string_context_at): Fix bug where the code assumed that
66783         Idx is signed.
66784
66785         Use bool where appropriate.
66786         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66787         All callers changed.
66788         (calc_eclosure_iter): Likewise, for ROOT arg.
66789         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66790         (build_charclass_op): Likewise, for NON_MATCH arg.
66791         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66792         (re_string_construct_common): Likewise, for ICASE arg.
66793         * lib/regexec.c (re_search_2_stub, re_search_stub):
66794         Likewise, for RET_LEN arg.
66795         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66796         (set_regs): Likewise, for FL_BACKTRACK arg.
66797         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66798         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66799         (calc_eclosure_iter, parse_bracket_exp):
66800         Use bool for internal variables that are booleans.
66801         * lib/regexec.c (re_search_internal, check_matching,
66802         proceed_next_node):
66803         (set_regs, build_sifted_states, sift_states_bkref):
66804         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66805         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66806         (find_collation_sequence_value):
66807         Likewise.
66808         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66809         (re_node_set_compare):
66810         Return bool, not int. All callers changed.
66811         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66812         (build_trtable, check_node_accept): Likewise.
66813         * lib/regex_internal.h: Include stdbool.h.
66814
66815         Fix bugs uncovered when converting to bool.
66816         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66817         failure instead of charging ahead blindly.
66818         * lib/regex_internal.c (register_state): Likewise.
66819         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66820         for freeing internal storage.
66821         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66822         bitset pieces used as boolean, to avoid undefined behavior
66823         on hosts that do int overflow checking.
66824
66825 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * config/srclist.txt: Add glibc bugs 1285-1287.
66828
66829 2005-09-01  Jim Meyering  <jim@meyering.net>
66830
66831         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66832         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66833         Require gl_STAT_MACROS, too.
66834
66835 2005-09-01  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool (import): In the first-use case, provide defaults.
66838
66839 2005-09-01  Bruno Haible  <bruno@clisp.org>
66840
66841         * gnulib-tool (func_import): Remove the .tmp files.
66842
66843 2005-09-01  Bruno Haible  <bruno@clisp.org>
66844
66845         * gnulib-tool (func_import): Fix handling of symbolic links.
66846
66847 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66850         old glibc regex code mishandles strings longer than 2**31 bytes.
66851         This patch fixes this when the regex code is used in gnulib
66852         (i.e., outside glibc).
66853
66854         This patch should not affect the use of the regex code inside
66855         glibc.  No doubt this problem also needs to be handled for glibc
66856         as well, but the result will be an incompatible change to the
66857         glibc ABI, and the old ABI will have to be supported too.  That
66858         can be the the subject for another patch.
66859
66860         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66861         governing whether the rest of this patch is active.  By default,
66862         the macro is disabled and the patch has no effect.
66863         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66864         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66865         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66866         (re_match_2, re_set_registers): Use the new types.
66867         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66868         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66869         New macros.
66870         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66871         (re_string_context_at, bin_tree_t, re_dfastate_t):
66872         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66873         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66874         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66875         (re_string_char_size_at, re_string_wchar_at):
66876         (re_string_elem_size_at):
66877         Use the new types and macros to port to 64-bit hosts.
66878         Use unsigned types for internal values, so that the code
66879         mostly works even for arrays larger than SSIZE_MAX.
66880         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66881         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66882         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66883         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66884         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66885         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66886         (calc_inveclosure, parse_dup_op, build_range_exp):
66887         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66888         (fetch_number, create_token_tree, mark_opt_subexp):
66889         Likewise.
66890         * lib/regex_internal.c (re_string_construct_common,
66891         create_ci_newstate):
66892         (create_cd_newstate, re_string_allocate, re_string_construct):
66893         (re_string_realloc_buffers, build_wcs_upper_buffer):
66894         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66895         (re_string_reconstruct, re_string_peek_byte_case):
66896         (re_string_fetch_byte_case, re_string_context_at):
66897         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66898         (re_node_set_init_copy, re_node_set_add_intersect):
66899         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66900         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66901         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66902         (re_acquire_state, re_acquire_state_context, register_state):
66903         Likewise.
66904         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66905         search_cur_bkref_entry):
66906         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66907         (re_search_internal, re_search_2_stub, re_search_stub)
66908         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66909         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66910         (update_cur_sifted_state, check_dst_limits):
66911         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66912         (check_subexp_limits, sift_states_bkref, merge_state_array):
66913         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66914         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66915         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66916         (expand_bkref_cache, check_node_accept_bytes):
66917         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66918         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66919         (acquire_init_state_context, check_halt_node_context):
66920         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66921         (sift_states_backward, clean_state_log_if_needed):
66922         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66923         (find_recover_state, transit_state_sb, transit_state_mb):
66924         (transit_state_bkref, build_trtable, match_ctx_clean):
66925         Likewise.
66926         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66927         to work around an assumption that REG_MISSING is negative.
66928
66929         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66930         (seek_collating_symbol_entry) [defined _LIBC]:
66931         (lookup_collation_sequence_value) [defined _LIBC]:
66932         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66933         Use prototypes rather than old-style function definitions.
66934         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66935         (transit_state_sb) [0]:
66936         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66937
66938         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66939         rm_eo.
66940
66941         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66942         (optimize_subexps, lower_subexp):
66943         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66944         since the signed shift might overflow.  Use 1u<<31 instead.
66945         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66946         Likewise.
66947         * lib/regexec.c (check_dst_limits_calc_pos_1,
66948         check_subexp_matching_top): Likewise.
66949
66950         * lib/regcomp.c (optimize_subexps, lower_subexp):
66951         Use CHAR_BIT rather than 8, for clarity.
66952         * lib/regexec.c (check_dst_limits_calc_pos_1):
66953         (check_subexp_matching_top): Likewise.
66954         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66955         have to worry about portability issues when shifting it left.
66956         Remove no-longer-needed test for table_size > 0.
66957         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66958         in a word, as the resulting behavior is undefined.
66959         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66960         in one case, a <= should have been an <, and in another case the
66961         whole test was missing.
66962         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66963         the standard name CHAR_BIT.
66964         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66965         this is not true on one's complement and signed-magnitude hosts.
66966
66967         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66968         next_last_offset.
66969         (struct re_dfa_t): Remove unused member states_alloc.
66970         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66971
66972 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66973
66974         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66975         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66976         and large-file glibc and in 32-bit large-file Solaris.
66977
66978 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66981         lengths fit in regoff_t; this isn't true if regoff_t is the same
66982         width as size_t.
66983         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66984         (= START + RANGE) instead of RANGE.  This avoids overflow
66985         problems when regoff_t is the same width as size_t.
66986         All callers changed.
66987         (re_search_2_stub): Check for overflow when adding the
66988         sizes of the two strings.
66989         (re_search_stub): Check for overflow when adding START
66990         to RANGE; if it occurs, substitute the extreme value.
66991
66992 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66993
66994         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66995
66996 2005-08-31  Jim Meyering  <jim@meyering.net>
66997
66998         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66999         a pointer-to-const.
67000         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67001         (register_state): Likewise.
67002         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67003         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67004         (group_nodes_into_DFAstates): Likewise.
67005
67006 2005-08-31  Jim Meyering  <jim@meyering.net>
67007
67008         * check-module: Add a FIXME comment.
67009
67010 2005-08-31  Eric Blake  <ebb9@byu.net>
67011
67012         * modules/unistd-safer (Files): Add unistd--.h.
67013         * modules/stdio-safer (Files): Add stdio--.h.
67014
67015 2005-08-31  Derek Price  <derek@ximbiot.com>
67016
67017         * lib/getdelim.c (getdelim): Return EOF on EOF.
67018         Reported by Larry Jones <lawrence.jones@ugs.com>.
67019
67020 2005-08-31  Bruno Haible  <bruno@clisp.org>
67021
67022         Avoid unnecessary diffs in the generated lib/Makefile.am.
67023         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67024         the generated files.
67025         (func_import): Don't set cmd.
67026
67027 2005-08-31  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/strstr.c: Include <stddef.h>, for NULL.
67030         * lib/strcasestr.c: Likewise.
67031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67032
67033 2005-08-31  Bruno Haible  <bruno@clisp.org>
67034
67035         * gnulib-tool: New option --macro-prefix.
67036         (func_import): Use macro_prefix.
67037         (import): Handle option --macro-prefix.
67038
67039 2005-08-31  Bruno Haible  <bruno@clisp.org>
67040
67041         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67042         Also use new variables cached_lgpl, cached_libtool.
67043
67044 2005-08-31  Bruno Haible  <bruno@clisp.org>
67045
67046         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
67047         always instantiating them.
67048
67049 2005-08-31  Bruno Haible  <bruno@clisp.org>
67050
67051         * gnulib-tool (func_import): Read the previous cached settings
67052         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
67053         earlier added by gnulib but are now dropped. Warn when a gnulib file
67054         overwrites a non-gnulib file.
67055
67056 2005-08-31  Bruno Haible  <bruno@clisp.org>
67057
67058         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67059         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67060         projects that don't keep autogenerated files in CVS. Put into
67061         actioncmd only the specified modules, not the transitive closure.
67062
67063 2005-08-31  Bruno Haible  <bruno@clisp.org>
67064
67065         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67066         Create directories that shall be filled.
67067         (import): Don't look for gl_* macros in configure.ac. Recurse across
67068         all directories containing a gnulib-cache.m4 files, if meaningful.
67069
67070 2005-08-31  Bruno Haible  <bruno@clisp.org>
67071
67072         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67073         (import): Set seen_libtool when we see gl_LIBTOOL.
67074
67075 2005-08-31  Bruno Haible  <bruno@clisp.org>
67076
67077         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67078         declaration macro definitions from generated gnulib.m4.
67079
67080 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67081
67082         * lib/iconvme.h: Add prototype for iconv_alloc.
67083
67084 2005-08-29  Simon Josefsson  <jas@extundo.com>
67085
67086         * lib/iconvme.c: Fix errno.
67087
67088 2005-08-29  Bruno Haible  <bruno@clisp.org>
67089
67090         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67091         that it works when the directory contains spaces.
67092
67093 2005-08-29  Bruno Haible  <bruno@clisp.org>
67094
67095         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67096
67097 2005-08-29  Bruno Haible  <bruno@clisp.org>
67098
67099         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67100         Emit more advice.
67101
67102 2005-08-29  Bruno Haible  <bruno@clisp.org>
67103         and Stepan Kasal  <kasal@ucw.cz>
67104
67105         * check-module: If more parameters are given, check each of them
67106         separately; add more exceptions, as noted by Jim Meyering.
67107         (check_module): New procedure.
67108         (%exempt_header): Now contains all exceptions.
67109
67110 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67111
67112         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67113
67114 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67115
67116         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67117
67118 2005-08-28  Bruno Haible  <bruno@clisp.org>
67119
67120         * m4/gnulib-tool.m4: New file.
67121
67122 2005-08-27  Jim Meyering  <jim@meyering.net>
67123
67124         * modules/unistd-safer (Files): Add pipe-safer.c.
67125         * modules/fcntl-safer (Files): Add creat-safer.c.
67126
67127 2005-08-27  Jim Meyering  <jim@meyering.net>
67128
67129         * m4/stdlib-safer.m4: New file.  From coreutils.
67130         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67131         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67132         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67133         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67134         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67135
67136 2005-08-27  Jim Meyering  <jim@meyering.net>
67137
67138         * lib/fopen-safer.c: Merge minor changes from coreutils.
67139         * lib/dup-safer.c: Likewise.
67140         * lib/fd-safer.c: Likewise.
67141
67142         Merge from coreutils.
67143         * lib/stdio--.h: New file.
67144         * lib/stdlib--.h: New file.
67145         * lib/mkstemp-safer.c: New file.
67146
67147         GNU tar needs these.
67148         * lib/pipe-safer.c: New file.
67149         * lib/creat-safer.c: New file.
67150         * lib/fcntl--.h (creat): Define to creat_safer.
67151         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67152         * lib/unistd--.h (pipe): Define to pipe_safer.
67153         * lib/unistd-safer.h: Declare pipe_safer.
67154
67155 2005-08-26  Simon Josefsson  <jas@extundo.com>
67156
67157         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67158         Haible <bruno@clisp.org>.
67159
67160 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/regex_internal.h: Remove all references to
67163         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67164         or better.
67165         (bitset_not, bitset_merge, bitset_not_merge):
67166         (bitset_mask, re_string_allocate, re_string_construct):
67167         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67168         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67169         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67170         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67173         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67174         (re_acquire_state_context):
67175         Remove unnecessary forward decls.
67176         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67177         Put __attribute at function definition,
67178         now that the function decl has been removed.
67179         * lib/regex_internal.c (re_string_peek_byte_case):
67180         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67181         Likewise.
67182
67183 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67184
67185         * m4/regex.m4: Add AC_PREREQ(2.50).
67186         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67187
67188 2005-08-25  Simon Josefsson  <jas@extundo.com>
67189
67190         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67191         __fsetlocking.
67192
67193 2005-08-25  Simon Josefsson  <jas@extundo.com>
67194
67195         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67196         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67197         GLIBC specific code.
67198
67199 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67200
67201         Make regex safe for g++.  This fixes one real bug (an "err"
67202         that should have been "*err").  g++ problem reported by
67203         Sam Steingold.
67204         * lib/regex_internal.h (re_calloc): New macro, consistent with
67205         re_malloc etc.  All callers of calloc changed to use re_calloc.
67206         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67207         not int.  All callers changed.
67208         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67209         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67210         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67211         (find_recover_state): Change "err" to "*err"; this fixes what
67212         appears to be a real bug.
67213         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67214         versus int.
67215
67216 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * modules/regex (Depends-on): Add malloc, since the code
67219         assumes that !malloc(0) means failure.
67220
67221 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67224
67225         alloca modernization/simplification for regex.
67226         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67227         needs to be at the start of the file, and can be moved into
67228         regex_internal.h and simplified.
67229         * lib/regex_internal.h: Include <alloca.h>.
67230         (__libc_use_alloca) [!defined _LIBC]: New macro.
67231         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67232         now works outside glibc.
67233
67234 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * config/srclist.txt: Add glibc bugs 1241, 1245.
67237
67238 2005-08-25  Jim Meyering  <jim@meyering.net>
67239
67240         * lib/open-safer.c: Include <config.h>.
67241         Otherwise, we'd lose LARGEFILE support in any file using
67242         e.g. "fcntl--.h"
67243
67244 2005-08-25  Bruno Haible  <bruno@clisp.org>
67245
67246         * m4/minmax.m4: Require autoconf 2.52.
67247         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67248         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67249         alternatives of translit over the alphabet.
67250         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67251
67252 2005-08-24  Simon Josefsson  <jas@extundo.com>
67253
67254         * tests/test-getpass.c: New file.
67255
67256 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67259         for GNU regex features.
67260
67261 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67262
67263         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67264         * lib/regex.h (regerror): Likewise.
67265
67266         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67267         requires this.  (The code never needed it.)
67268
67269         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67270         All uses of recently-renamed identifiers changed to use the new,
67271         POSIX-compliant names.  The code will build and run just fine
67272         without these changes, but it's better to eat our own dog food
67273         and use the standard-conforming names.
67274
67275         * lib/regex.h: Fix a multitude of POSIX name space violations.
67276         These changes have an effect only for programs that define
67277         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67278         do not change anything for programs compiled in the normal way.
67279         Also, there is no effect on the ABI.
67280
67281         (_REGEX_SOURCE): New macro.
67282         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67283         defined and _GNU_SOURCE is not; this fixes a name space violation.
67284
67285         Rename the following macros to obey POSIX requirements.
67286         The old names are still visible as macros if _REGEX_SOURCE is defined.
67287         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67288         RE_BACKSLASH_ESCAPE_IN_LISTS.
67289         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67290         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67291         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67292         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67293         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67294         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67295         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67296         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67297         (REG_INTERVALS): renamed from RE_INTERVALS.
67298         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67299         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67300         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67301         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67302         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67303         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67304         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67305         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67306         RE_UNMATCHED_RIGHT_PAREN_ORD.
67307         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67308         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67309         (REG_DEBUG): renamed from RE_DEBUG.
67310         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67311         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67312         unusual, since we can't clash with the POSIX REG_ICASE.
67313         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67314         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67315         (REG_NO_SUB): renamed from RE_NO_SUB.
67316         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67317         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67318         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67319         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67320         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67321         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67322         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67323         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67324         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67325         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67326         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67327         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67328         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67329         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67330         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67331         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67332         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67333         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67334         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67335         (REG_FIXED): Renamed from REGS_FIXED.
67336         (REG_NREGS): Renamed from RE_NREGS.
67337
67338         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67339         of other REG_* macros, since POSIX says the user is allowed to
67340         #undef these macros selectively.
67341
67342         (reg_errcode_t): Update comment stating what other tables need
67343         to be consistent.
67344
67345         Rename the following enum values to obey POSIX requirements.
67346         The old names are still visible as macros.
67347         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67348         is not defined, since GNU is supposed to be a superset of POSIX as
67349         much as possible, and since we want reg_errcode_t to be a signed
67350         type for implementation consistency.
67351         (_REG_NOERROR): Renamed from REG_NOERROR.
67352         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67353         (_REG_BADPAT): Renamed from REG_BADPAT.
67354         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67355         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67356         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67357         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67358         (_REG_EBRACK): Renamed from REG_EBRACK.
67359         (_REG_EPAREN): Renamed from REG_EPAREN.
67360         (_REG_EBRACE): Renamed from REG_EBRACE.
67361         (_REG_BADBR): Renamed from REG_BADBR.
67362         (_REG_ERANGE): Renamed from REG_ERANGE.
67363         (_REG_ESPACE): Renamed from REG_ESPACE.
67364         (_REG_BADRPT): Renamed from REG_BADRPT.
67365         (_REG_EEND): Renamed from REG_EEND.
67366         (_REG_ESIZE): Renamed from REG_ESIZE.
67367         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67368         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67369         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67370         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67371         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67372
67373         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67374         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67375         changed.  But support the old name if the new one is not defined
67376         and if _REGEX_SOURCE.
67377
67378         Change the following member names in struct re_pattern_buffer.
67379         The old names are still supported if !_REGEX_SOURCE.
67380         The new names are always supported, regardless of _REGEX_SOURCE.
67381         (re_buffer): Renamed from buffer.
67382         (re_allocated): Renamed from allocated.
67383         (re_used): Renamed from used.
67384         (re_syntax): Renamed from syntax.
67385         (re_fastmap): Renamed from fastmap.
67386         (re_translate): Renamed from translate.
67387         (re_can_be_null): Renamed from can_be_null.
67388         (re_regs_allocated): Renamed from regs_allocated.
67389         (re_fastmap_accurate): Renamed from fastmap_accurate.
67390         (re_no_sub): Renamed from no_sub.
67391         (re_not_bol): Renamed from not_bol.
67392         (re_not_eol): Renamed from not_eol.
67393         (re_newline_anchor): Renamed from newline_anchor.
67394
67395         Change the following member names in struct re_registers.
67396         The old names are still supported if !_REGEX_SOURCE.
67397         The new names are always supported, regardless of _REGEX_SOURCE.
67398         (rm_num_regs): Renamed from num_regs.
67399         (rm_start): Renamed from start.
67400         (rm_end): Renamed from end.
67401
67402         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67403         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67404         Prepend __ to parameter names.
67405
67406         Undo yesterday's changes.
67407
67408 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67411         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67412         lib/regex.c.
67413
67414 2005-08-24  Jim Meyering  <jim@meyering.net>
67415
67416         Sync from coreutils.
67417         * m4/fcntl-safer.m4: New file.
67418
67419         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67420         and object files for this module.
67421
67422 2005-08-24  Jim Meyering  <jim@meyering.net>
67423
67424         Sync from coreutils.
67425         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67426
67427 2005-08-24  Jim Meyering  <jim@meyering.net>
67428
67429         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67430         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67431
67432 2005-08-24  Jim Meyering  <jim@meyering.net>
67433
67434         * modules/fcntl-safer: New module.
67435         * modules/fts (Depends-on): Add fcntl-safer.
67436         * MODULES.html.sh (File descriptor based Input/Output):
67437         Add fcntl-safer.
67438
67439 2005-08-24  Bruno Haible  <bruno@clisp.org>
67440
67441         Support for unit test modules.
67442         * modules/README: Mention tests modules.
67443         * modules/TEMPLATE-TESTS: New file.
67444         * gnulib-tool: New options --extract-tests-module, --with-tests and
67445         --tests-base (unused for the moment).
67446         (testsbase, inctests): New variables.
67447         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67448         (func_verify_module): Exclude TEMPLATE-TESTS.
67449         (func_verify_nontests_module, func_verify_tests_module): New functions.
67450         (func_get_dependencies): Add implicit dependency for tests modules.
67451         (func_get_tests_module): New function.
67452         (func_modules_transitive_closure): When --with-tests was specified,
67453         include the unit tests as well, unless explicitly avoided.
67454         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67455         (func_emit_tests_Makefile_am): New function.
67456         (func_create_testdir): When --with-tests was specified, emit a
67457         tests/ directory.
67458         * MODULES.html.sh (Future developments): Update.
67459
67460 2005-08-24  Bruno Haible  <bruno@clisp.org>
67461
67462         * modules/tls-tests: New file.
67463         * tests/test-tls.c: New file, from GNU gettext.
67464
67465 2005-08-24  Bruno Haible  <bruno@clisp.org>
67466
67467         * modules/lock-tests: New file.
67468         * tests/test-lock.c: New file, from GNU gettext.
67469
67470 2005-08-24  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/lock.h: Add multiple inclusion guard.
67473         * lib/tls.h: Add multiple inclusion guard.
67474
67475 2005-08-24  Bruno Haible  <bruno@clisp.org>
67476
67477         * gnulib-tool: Add support for the --aux-dir option to
67478         --create-testdir, --create-megatestdir, --test, --megatest.
67479         (func_create_testdir, func_create_megatestdir): Optionally emit a
67480         AC_CONFIG_AUX_DIR directive.
67481         (create-testdir, create-megatestdir, test, megatest): Provide a
67482         default value for $auxdir.
67483
67484 2005-08-24  Bruno Haible  <bruno@clisp.org>
67485
67486         * gnulib-tool (import): Use compound statement instead of subshell
67487         where possible.
67488
67489 2005-08-24  Bruno Haible  <bruno@clisp.org>
67490
67491         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67492
67493 2005-08-24  Bruno Haible  <bruno@clisp.org>
67494
67495         * gnulib-tool (func_version): Update.
67496
67497 2005-08-24  Bruno Haible  <bruno@clisp.org>
67498
67499         * gnulib-tool (func_import, func_create_testdir,
67500         func_create_megatestdir): Quote all autoconf macro arguments.
67501
67502 2005-08-24  Bruno Haible  <bruno@clisp.org>
67503
67504         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67505         option --force, because --force causes the aclocal.m4 of each
67506         subdirectory to be newer than the corresponding config.h.in.
67507
67508 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67509
67510         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67511         All contents moved to gl_REGEX.
67512         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67513         assume that it does.
67514
67515 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * lib/regex.h (REG_NOSYS)
67518         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67519         Define, since POSIX requires it as of 2001.
67520         (_REG_ENOSYS)
67521         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67522         New private symbol, used to keep the enum signed in all cases.
67523         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67524         Youngman in
67525         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67526
67527         * lib/regex_internal.c (re_string_skip_chars, register_state):
67528         (calc_state_hash):
67529         Remove forward decls; no longer needed now that we use prototypes.
67530         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67531         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67532         (clean_state_log_if_needed): Likewise.
67533
67534 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * config/srclist.txt: Add glibc bugs 1231-1233.
67537
67538 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         Fix problems reported by Sam Steingold in
67541         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67542         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67543         assumed that reg_errcode_t is a signed type, which is not
67544         necessarily true if _XOPEN_SOURCE is not defined.
67545         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67546         since some compilers warn about it otherwise.
67547
67548 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67551         (init_word_char, create_initial_state, duplicate_node_closure):
67552         (fetch_token, peek_token_bracket, build_range_exp):
67553         (build_collating_symbol): Remove forward decls; no longer needed
67554         now that we use prototypes.
67555
67556         * lib/regcomp.c:
67557         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67558         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67559         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67560         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67561         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67562         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67563         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67564         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67565         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67566         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67567         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67568         (build_charclass, build_charclass_op, fetch_number, create_tree):
67569         (create_token_tree, mark_opt_subexp, duplicate_tree):
67570         Use prototypes rather than old-style definitions.
67571
67572         * lib/regex_internal.c:
67573         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67574         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67575         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67576         (re_string_reconstruct, re_string_peek_byte_case):
67577         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67578         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67579         (re_node_set_init_copy, re_node_set_add_intersect):
67580         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67581         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67582         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67583         (re_acquire_state, re_acquire_state_context, register_state):
67584         (create_ci_newstate, create_cd_newstate, free_state):
67585         Likewise.
67586         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67587         re_search_2):
67588         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67589         (re_search_internal, prune_impossible_nodes):
67590         (acquire_init_state_context, check_matching, static):
67591         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67592         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67593         (update_regs, sift_states_backward, build_sifted_states):
67594         (clean_state_log_if_needed, merge_state_array):
67595         (update_cur_sifted_state, add_epsilon_src_nodes):
67596         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67597         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67598         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67599         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67600         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67601         (check_arrival, check_arrival_add_next_nodes):
67602         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67603         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67604         (check_node_accept_bytes, check_node_accept, extend_buffers):
67605         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67606         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67607         (sift_ctx_init):
67608         Likewise.
67609
67610         * lib/regex_internal.h:
67611         (re_string_allocate, re_string_construct, re_string_reconstruct):
67612         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67613         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67614         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67615         (re_string_context_at, re_string_peek_byte_case):
67616         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67617         is defined, since we now use prototypes always.
67618
67619         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67620         C89 or better.  All uses removed.
67621
67622 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67623
67624         * config/srclist.txt: Add glibc bugs 1220-1227.
67625
67626 2005-08-20  Jim Meyering  <jim@meyering.net>
67627
67628         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67629         of unused local, dfa.
67630
67631 2005-08-20  Bruno Haible  <bruno@clisp.org>
67632
67633         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67634
67635 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67636
67637         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67638         (re_node_set_insert_last, re_dfa_add_node):
67639         Rename local variables to avoid GCC shadowing warnings.
67640
67641 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67642
67643         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67644         [defined lint]: Suppress bogus uninitialized-variable warnings.
67645
67646         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67647         and let the caller return REG_ESPACE if out of space.  This
67648         removes an uninitialied-variable warning with GCC 4.0.1, and also
67649         avoids taking the address of a local variable.  All callers
67650         changed.
67651
67652 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67653
67654         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67655         $LIBCSRC/posix/regexec.c.
67656         Add glibc bug 1217 for regcomp.c.
67657
67658 2005-08-19  Jim Meyering  <jim@meyering.net>
67659
67660         * lib/regexec.c (proceed_next_node): Redo local variables to
67661         avoid GCC shadowing warnings.
67662
67663 2005-08-18  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/strstr.c (strstr): Fix return value in multibyte case.
67666         * lib/strcasestr.c (strcasestr): Likewise.
67667
67668 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67671
67672 2005-08-17  Jim Meyering  <jim@meyering.net>
67673
67674         Make the %s format (seconds since the epoch) work for a negative
67675         number and when used with a zero-padded field width, e.g. %015s.
67676
67677         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67678         label so that it precedes the code to set `digits'.  Otherwise,
67679         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67680         print `00-22'.  Now, it prints `-0022', as it should.
67681
67682 2005-08-17  Bruno Haible  <bruno@clisp.org>
67683
67684         * modules/strstr (Files): Add m4/mbrtowc.m4.
67685         (Depends-on): Add mbuiter.
67686
67687 2005-08-17  Bruno Haible  <bruno@clisp.org>
67688
67689         * modules/strcasestr: New file.
67690         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67691         strcasestr.
67692
67693 2005-08-17  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67696
67697 2005-08-17  Bruno Haible  <bruno@clisp.org>
67698
67699         * modules/mbuiter: New file.
67700         * MODULES.html.sh (Extended multibyte and wide character utilities):
67701         Add mbuiter.
67702
67703 2005-08-17  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67706         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67707
67708 2005-08-17  Bruno Haible  <bruno@clisp.org>
67709
67710         * m4/strcasestr.m4: New file.
67711
67712 2005-08-17  Bruno Haible  <bruno@clisp.org>
67713
67714         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67715         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67716
67717 2005-08-17  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/strcasestr.h: New file.
67720         * lib/strcasestr.c: New file.
67721
67722 2005-08-17  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/strcasecmp.c: Use mbuiter.h.
67725
67726 2005-08-17  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/mbuiter.h: New file.
67729
67730 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67733         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67734         and gl_GETOPT are both invoked via different paths (as happens
67735         with GNU tar CVS because it uses both argp and getopt), the former
67736         wins.
67737
67738 2005-08-16  Bruno Haible  <bruno@clisp.org>
67739
67740         * modules/tls: New file.
67741         * MODULES.html.sh (Multithreading): Add tls.
67742
67743 2005-08-16  Bruno Haible  <bruno@clisp.org>
67744
67745         * modules/strnlen1: New file.
67746         * MODULES.html.sh (String handling): Add strnlen1.
67747
67748 2005-08-16  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/strcase (Files): Add m4/mbrtowc.m4.
67751         (Depends-on): Add strnlen1, mbchar.
67752
67753 2005-08-16  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/mbiter: New file.
67756         * MODULES.html.sh (Extended multibyte and wide character utilities):
67757         Add mbiter.
67758
67759 2005-08-16  Bruno Haible  <bruno@clisp.org>
67760
67761         * modules/mbfile: New file.
67762         * MODULES.html.sh (Extended multibyte and wide character utilities):
67763         Add mbfile.
67764
67765 2005-08-16  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/mbchar: New file.
67768         * MODULES.html.sh (Extended multibyte and wide character utilities):
67769         New section.
67770
67771 2005-08-16  Bruno Haible  <bruno@clisp.org>
67772
67773         * m4/tls.m4: New file, from GNU gettext.
67774
67775 2005-08-16  Bruno Haible  <bruno@clisp.org>
67776
67777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67778         always.
67779         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67780
67781 2005-08-16  Bruno Haible  <bruno@clisp.org>
67782
67783         * m4/mbiter.m4: New file.
67784
67785 2005-08-16  Bruno Haible  <bruno@clisp.org>
67786
67787         * m4/mbfile.m4: New file.
67788
67789 2005-08-16  Bruno Haible  <bruno@clisp.org>
67790
67791         * m4/mbchar.m4: New file.
67792
67793 2005-08-16  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/tls.h: New file, from GNU gettext.
67796         * lib/tls.c: New file, from GNU gettext.
67797
67798 2005-08-16  Bruno Haible  <bruno@clisp.org>
67799
67800         * lib/strnlen1.h: New file.
67801         * lib/strnlen1.c: New file.
67802
67803 2005-08-16  Bruno Haible  <bruno@clisp.org>
67804
67805         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67806         (mbi_init): Update.
67807         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67808         NUL byte, not after it.
67809
67810 2005-08-16  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/strcase.h (strcasecmp): Add note in comments.
67813         * lib/strncasecmp.c: Use code from strcasecmp.c.
67814         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67815         (strcasecmp): Work correctly in multibyte locales.
67816
67817 2005-08-16  Bruno Haible  <bruno@clisp.org>
67818
67819         * lib/mbiter.h: New file.
67820
67821 2005-08-16  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/mbfile.h: New file.
67824
67825 2005-08-16  Bruno Haible  <bruno@clisp.org>
67826
67827         * lib/mbchar.h: New file.
67828         * lib/mbchar.c: New file.
67829
67830 2005-08-16  Bruno Haible  <bruno@clisp.org>
67831
67832         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67833         the valid ones. Makes the comparison operations transitive:
67834         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67835         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67836
67837 2005-08-15  Simon Josefsson  <jas@extundo.com>
67838
67839         * modules/ssize_t (License): Change to 'unlimited'.
67840
67841         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67842
67843 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67846         Add comments for each pending glibc patch.
67847
67848 2005-08-15  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67851         __cplusplus is defined.
67852
67853 2005-08-14  Jim Meyering  <jim@meyering.net>
67854
67855         Sync from coreutils.
67856
67857         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67858         Use the hash-table-based cycle-detection code not just when
67859         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67860         Reported by James Youngman in
67861         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67862         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67863         FTS_TIGHT_CYCLE_CHECK.
67864         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67865         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67866         once again.
67867         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67868         * lib/fts.c (fd_safer): Remove decl.
67869         Include fcntl--.h rather than unistd-safer.h
67870         (fts_safe_changedir): Don't call fd_safer; no longer needed
67871         now that we include fcntl--.h.
67872
67873 2005-08-12  Simon Josefsson  <jas@extundo.com>
67874
67875         * modules/getndelim2: Use ssize_t module.
67876         * modules/getnline: Likewise.
67877         * modules/safe-read: Likewise.
67878         * modules/xreadlink: Likewise.
67879
67880         * modules/ssize_t: New file.
67881
67882 2005-08-12  Simon Josefsson  <jas@extundo.com>
67883
67884         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67885
67886 2005-08-12  Simon Josefsson  <jas@extundo.com>
67887
67888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67889         ssize_t.
67890
67891 2005-08-12  Simon Josefsson  <jas@extundo.com>
67892
67893         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67894         readline, getdelim and check_version.
67895         (Support for systems lacking ISO C 99: Sizes of integer types):
67896         Add size_max.
67897
67898 2005-08-12  Bruno Haible  <bruno@clisp.org>
67899
67900         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67901
67902 2005-08-11  Simon Josefsson  <jas@extundo.com>
67903
67904         * modules/readline: New file.
67905
67906         * modules/strnlen (Files): Add strnlen.h.
67907
67908 2005-08-11  Simon Josefsson  <jas@extundo.com>
67909
67910         * m4/readline.m4: New file.
67911
67912 2005-08-11  Simon Josefsson  <jas@extundo.com>
67913
67914         * lib/readline.h, readline.c: New file.
67915
67916 2005-08-11  Simon Josefsson  <jas@extundo.com>
67917
67918         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67919         gl_AVOID.
67920
67921 2005-08-11  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67924
67925 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67926
67927         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67928
67929 2005-08-10  Simon Josefsson  <jas@extundo.com>
67930
67931         * tests/test-iconvme.c: New file.
67932
67933 2005-08-10  Simon Josefsson  <jas@extundo.com>
67934
67935         * m4/strnlen.m4: New file.
67936
67937         * m4/strndup.m4: Don't check for strnlen declaration, done in
67938         strnlen.m4.
67939
67940 2005-08-10  Simon Josefsson  <jas@extundo.com>
67941
67942         * lib/strndup.c: Use strnlen.h.
67943
67944         * lib/strnlen.h: New file.
67945
67946 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67947
67948         * README: Typos.
67949
67950 2005-08-02  Simon Josefsson  <jas@extundo.com>
67951
67952         * modules/readline: New file.
67953
67954 2005-08-02  Simon Josefsson  <jas@extundo.com>
67955
67956         * modules/getdelim: New file.
67957
67958         * modules/getline: Rewrite, don't use getndelim2.
67959
67960 2005-08-02  Simon Josefsson  <jas@extundo.com>
67961
67962         * m4/getline.m4: Separate out getdelim stuff into separate module.
67963
67964         * m4/getdelim.m4: New file.
67965
67966 2005-08-02  Simon Josefsson  <jas@extundo.com>
67967
67968         * lib/getline.h, getline.c: Rewrite.
67969
67970         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67971
67972 2005-07-31  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/lock.h (gl_lock_initializer): New macro.
67975         (gl_lock_define_initialized): Use it.
67976         (gl_rwlock_initializer): New macro.
67977         (gl_rwlock_define_initialized): Use it.
67978         (gl_recursive_lock_initializer): New macro.
67979         (gl_recursive_lock_define_initialized): Use it.
67980
67981 2005-07-30  Karl Berry  <karl@gnu.org>
67982
67983         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67984         Report from Ben Pfaff, regarding getopt.
67985
67986 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67989         normal way.
67990         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67991         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67992         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67993         (gl_GETOPT): Use the new macros.  Most of the implementation
67994         is moved to the new macros.  This is for programs like Emacs
67995         that don't want all the functionality of gl_GETOPT.
67996
67997 2005-07-26  Bruno Haible  <bruno@clisp.org>
67998
67999         * m4/lock.m4: Update from GNU gettext.
68000
68001 2005-07-26  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/lock.h: Update from GNU gettext.
68004         * lib/lock.c: Update from GNU gettext.
68005
68006 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68009         obsolescent AC_TRY_RUN.  Include the default includes files, for
68010         'exit'.
68011
68012 2005-07-24  Bruno Haible  <bruno@clisp.org>
68013
68014         * modules/visibility: New file.
68015         * MODULES.html.sh (Misc): Add visibility.
68016
68017 2005-07-24  Bruno Haible  <bruno@clisp.org>
68018
68019         * m4/visibility.m4: New file.
68020
68021 2005-07-24  Bruno Haible  <bruno@clisp.org>
68022
68023         * doc/visibility.texi: New file.
68024
68025 2005-07-22  Bruno Haible  <bruno@clisp.org>
68026
68027         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68028         $(ALLOCA_H), redundant through BUILT_SOURCES.
68029         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68030         redundant through BUILT_SOURCES.
68031         * modules/byteswap (Makefile.am): Remove explicit dependency on
68032         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68033         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68034         $(FNMATCH_H), redundant through BUILT_SOURCES.
68035         * modules/getopt (Makefile.am): Remove explicit dependency on
68036         $(GETOPT_H), redundant through BUILT_SOURCES.
68037         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68038         redundant through BUILT_SOURCES.
68039         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68040         redundant through BUILT_SOURCES.
68041         * modules/stdbool (Makefile.am): Remove explicit dependency on
68042         $(STDBOOL_H), redundant through BUILT_SOURCES.
68043         * modules/stdint (Makefile.am): Remove explicit dependency on
68044         $(STDINT_H), redundant through BUILT_SOURCES.
68045         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
68046         Remove explicit dependency on $(SYSEXITS_H).
68047         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
68048
68049 2005-07-18  Simon Josefsson  <jas@extundo.com>
68050
68051         * lib/check-version.c (check_version): Accept identical versions too.
68052
68053 2005-07-18  Bruno Haible  <bruno@clisp.org>
68054
68055         * modules/lock: New file.
68056         * MODULES.html.sh (Multithreading): New section.
68057
68058 2005-07-18  Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/lock.m4: New file, from GNU gettext.
68061
68062 2005-07-18  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/lock.h: New file, from GNU gettext.
68065         * lib/lock.c: New file, from GNU gettext.
68066
68067 2005-07-18  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/lock.h (gl_once_t): New type.
68070         (gl_once_define, gl_once): New macros.
68071         * lib/lock.c (fresh_once): New variable.
68072         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68073         functions.
68074
68075 2005-07-16  Simon Josefsson  <jas@extundo.com>
68076
68077         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68078         workaround, suggested by Bruno.
68079
68080 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         * modules/xalloc (Depends-on): Add xalloc-die.
68083         * modules/xvasprintf (Depends-on): Add xalloc-die.
68084
68085 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68088         with a minor change.
68089
68090 2005-07-15  Bruno Haible  <bruno@clisp.org>
68091
68092         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68093         When using lib/poll.c, define poll as rpl_poll.
68094
68095 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * modules/argp (Depends-on): Remove unlocked-io.
68098
68099 2005-07-14  Derek Price  <derek@ximbiot.com>
68100
68101         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68102         for glob symlink bug.
68103
68104 2005-07-14  Bruno Haible  <bruno@clisp.org>
68105
68106         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68107         Instead, test for *_unlocked function declarations directly.
68108
68109 2005-07-11  Simon Josefsson  <jas@extundo.com>
68110
68111         * modules/size_max: New file.
68112
68113         * modules/xsize: Depend on size_max module for size_max.m4.
68114
68115 2005-07-11  Simon Josefsson  <jas@extundo.com>
68116
68117         * lib/size_max.h: New file.
68118
68119 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68122         copyright symbol and the year.
68123         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68124         (version_etc_va): Use parameterized copyright notice.
68125         Reword to conform to the current GNU coding standards.
68126
68127 2005-07-11  Karl Berry  <karl@gnu.org>
68128
68129         * doc/gnulib.texi (Quoting): new node.
68130         (Initial import): more info, from Patrice.
68131
68132 2005-07-11  Bruno Haible  <bruno@clisp.org>
68133
68134         * gnulib-tool (func_usage): Document option --avoid.
68135         (Command line options): Handle --avoid.
68136         (func_acceptable): New function.
68137         (func_modules_transitive_closure): Use it.
68138
68139 2005-07-11  Bruno Haible  <bruno@clisp.org>
68140
68141         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68142         Reported by Jim Meyering.
68143
68144 2005-07-10  Bruno Haible  <bruno@clisp.org>
68145
68146         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68147         Needed when size_t is smaller than 'unsigned int'.
68148         Reported by Paul Eggert.
68149
68150 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68151
68152         * modules/argp (Depends-on): Add unlocked-io
68153
68154 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68155
68156         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68157         block of defines.
68158
68159 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68162         fix now.
68163
68164 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68165         and Paul Eggert  <eggert@cs.ucla.edu>
68166
68167         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68168         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68169
68170 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * modules/regex (Files): Add lib/regex_internal.c,
68173         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68174         (Depends-on): Add extensions.
68175         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68176
68177 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68180         pathconf.
68181         * m4/same.m4 (gl_SAME): Likewise.
68182         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68183
68184         * m4/regex.m4: Adjust to new libc regex implementation.
68185         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68186         all the .c and .h parts of (the new) regex.
68187         Quote the m4 stuff better.
68188         Check for RE_ICASE bug of old gnulib.
68189         Check for REG_STARTEND of recent libc.
68190         Rename local variables from jm_* to gl_*.
68191         Quote operand of "test -f".
68192         Say "recent enough" version of libc, not "version 2".
68193         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68194         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68195         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68196         Remove check for btowc, isascii.
68197         Require AM_LANGINFO_CODESET.
68198
68199 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68200
68201         * lib/regex.c, regex.h: Sync from libc.
68202         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68203         * lib/regexec.c:
68204         New files, synced from libc, except that regex_internal.h
68205         currently has a small porting fix.
68206
68207 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68210         regex_internal.c, regexec.c.
68211         Add regex_internal.h too, but as a comment, since the libc version
68212         is currently broken in gnulib mode.
68213
68214 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         Support programs like Emacs that use gnulib but not gettext.
68217         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68218         * modules/gettext-h: New file.
68219         * modules/gettext (Files): Remove lib/gettext.h.
68220         (Depends-on): Add gettext-h.
68221         (Makefile.am): Remove lib_SOURCES.
68222         * modules/argmatch, modules/c-stack, modules/closeout:
68223         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68224         * modules/execute, modules/file-type, modules/getaddrinfo:
68225         * modules/getopt, modules/human, modules/javacomp:
68226         * modules/javaexec, modules/mkdir-p, modules/obstack:
68227         * modules/openat, modules/pagealign_alloc, modules/pipe:
68228         * modules/quotearg, modules/regex, modules/rpmatch:
68229         * modules/unicodeio, modules/userspec, modules/version-etc:
68230         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68231         * modules/xsetenv:
68232         Depend on gettext-h, not gettext.
68233
68234 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68235
68236         * gnulib-tool (func_import): Add support for 'public domain' license.
68237         * modules/alloca, modules/atexit, modules/memmove:
68238         Now public domain, not GPL.
68239         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68240         * modules/realloc, modules/strerror, modules/strtod:
68241         Now LGPL, not GPL.
68242
68243 2005-07-05  Bruno Haible  <bruno@clisp.org>
68244
68245         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68246         autoconf CVS. Needed for mingw.
68247
68248 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         Remove the dependency of the strftime module on the tzset module.
68251         * modules/strftime (Depends-on): Remove dependency on tzset.
68252
68253 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68254
68255         Remove the dependency of the strftime module on the tzset module.
68256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68257         gl_FUNC_TZSET_CLOBBER.
68258
68259 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         Remove the dependency of the strftime module on the tzset module.
68262         * lib/strftime.c (my_strftime)
68263         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68264         Copy the input structure, to work around some of the bug with
68265         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68266         Solaris releases, you should also use the tzset module, but we won't
68267         require it as a dependency any more since we don't want LGPLed code
68268         to depend on GPLed code.
68269
68270 2005-07-02  Jim Meyering  <jim@meyering.net>
68271
68272         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68273         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68274         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68275         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68276
68277 2005-07-02  Jim Meyering  <jim@meyering.net>
68278
68279         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68280
68281 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68284         declares only 'struct timespec;' (!).
68285
68286 2005-07-01  Jim Meyering  <jim@meyering.net>
68287
68288         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68289         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68290         * lib/save-cwd.c, tempname.c:
68291         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68292         and don't include <sys/file.h>).
68293
68294 2005-06-29  Jim Meyering  <jim@meyering.net>
68295
68296         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68297         type name.  Use the variable name instead.
68298         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68299         Likewise.
68300
68301 2005-06-28  Simon Josefsson  <jas@extundo.com>
68302
68303         * modules/check-version (Files): Add check-version.m4.
68304
68305 2005-06-28  Simon Josefsson  <jas@extundo.com>
68306
68307         * m4/check-version.m4: New file, suggested by Jim Meyering
68308         <jim@meyering.net>.
68309
68310 2005-06-28  Simon Josefsson  <jas@extundo.com>
68311
68312         * lib/check-version.h, lib/check-version.c: New files.
68313
68314 2005-06-28  Simon Josefsson  <jas@extundo.com>
68315
68316         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68317         collision with global variable.  Better indentation.  Don't
68318         increment buffer pointer beyond buffer end.  Based on comments
68319         from Paul Eggert <eggert@cs.ucla.edu>.
68320
68321         * lib/base64.h: Indent.
68322
68323 2005-06-28  Simon Josefsson  <jas@extundo.com>
68324
68325         * doc/gnulib.texi (Library version handling): New section.
68326
68327 2005-06-28  Jim Meyering  <jim@meyering.net>
68328
68329         * check-module (find_included_lib_files): Hard-code another
68330         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68331         but modules/fts-lgpl (correctly) does not list those files.
68332
68333         * modules/canonicalize (Files): Add lib/pathmax.h.
68334
68335 2005-06-25  Simon Josefsson  <jas@extundo.com>
68336
68337         * modules/check-version: New file.
68338
68339 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68340
68341         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68342         initializer of struct addrinfo, as an indication that we don't
68343         care how many members the structure has.
68344
68345 2005-06-24  Derek Price  <derek@ximbiot.com>
68346         and Bruno Haible  <bruno@clisp.org>
68347
68348         Remove stat module & update lstat.
68349         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68350         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68351         * m4/stat.m4: Remove this file.
68352
68353 2005-06-24  Derek Price  <derek@ximbiot.com>
68354         and Bruno Haible  <bruno@clisp.org>
68355
68356         Remove stat module & update lstat.
68357         * lib/stat.c: Remove this file...
68358         (slash_aware_lstat): ...moving this content and its support...
68359         * lib/lstat.c (rpl_lstat): ...into here.
68360         * lib/lstat.h: New file.
68361
68362 2005-06-24  Derek Price  <derek@ximbiot.com>
68363         and Bruno Haible  <bruno@clisp.org>
68364
68365         Remove stat module & update lstat.
68366         * config/srclist.txt (libc sources): Remove stat.
68367
68368 2005-06-24  Derek Price  <derek@ximbiot.com>
68369         and Bruno Haible  <bruno@clisp.org>
68370
68371         Remove stat module & update lstat.
68372         * MODULES.html.sh (stat): Remove.
68373         * MODULES.html: Regenerated.
68374         * modules/lstat (Description): Correct function name.
68375         (Files): Add "lstat.h".
68376         (Depends-on): Remove stat, add xalloc, stat-macros.
68377         * modules/stat: Remove this file.
68378         (Include): Add "lstat.h", remove <sys/stat.h>.
68379
68380 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68381
68382         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68383         (ranged_convert): Don't save conversion in a temporary struct.
68384         This causes a warning with GCC 4.0.0, and anyway in the typical
68385         case it's not worth the extra 100 bytes or so of code.
68386         (ranged_convert, __mktime_internal): When calling a function via a
68387         pointer P, use P () rather than (*P) (), as we now assume C89 or
68388         better.
68389
68390 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68393         "who -r" failed to give output.  Problem reported by Tim Waugh.
68394
68395         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68396         (xcalloc): Use it to avoid needless tests.
68397         Problem reported by Jim Meyering.
68398
68399 2005-06-20  Derek Price  <derek@ximbiot.com>
68400
68401         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68402         unnecessary for Autoconfs > 2.59c.
68403
68404 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68405
68406         * lib/argp.h (__option_is_short): Check upper limit of
68407         __key. Isprint() requires its argument to have the value
68408         of an unsigned char or EOF.
68409
68410 2005-06-16  Jim Meyering  <jim@meyering.net>
68411
68412         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68413         when either N or S is zero.
68414
68415 2005-06-16  Derek Price  <derek@ximbiot.com>
68416
68417         * m4/bison.m4: Declare YACC & YFLAGS precious.
68418
68419 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68422         multibyte string or pattern, fall back on unibyte matching.
68423         Problem reported by James Youngman.
68424
68425 2005-06-08  Bruno Haible  <bruno@clisp.org>
68426
68427         * modules/csharpcomp: New file.
68428         * MODULES.html.sh (C#): Add csharpcomp.
68429
68430 2005-06-08  Bruno Haible  <bruno@clisp.org>
68431
68432         * m4/csharpcomp.m4: New file, from GNU gettext.
68433
68434 2005-06-08  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/csharpcomp.h: New file, from GNU gettext.
68437         * lib/csharpcomp.c: New file, from GNU gettext.
68438         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68439
68440 2005-06-08  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68443         warning on mingw.
68444
68445 2005-06-07  Derek Price  <derek@ximbiot.com>
68446
68447         Sync from CVS.
68448         * lib/glob_.h: Indent nested #ifdef.
68449
68450 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         Sync from coreutils.
68453         Use "file name" when talking about file names, instead of "filename"
68454         or "path", as per the GNU coding standards.
68455         * lib/mkdir-p.c: Renamed from makepath.c.
68456         (make_dir_parents): Renamed from make_path.  All callers changed.
68457         * lib/mkdir-p.h: Likewise.  All includers changed.
68458         * lib/filenamecat.c: Renamed from path-concat.c.
68459         (file_name_concat): Renamed from path_concat.  All callers changed.
68460         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68461         * lib/filenamecat.h: Likewise.  All includers changed.
68462         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68463         in comments or local variable names.
68464         * lib/basename.c: Likewise.
68465         * lib/canonicalize.c, canonicalize.h: Likewise.
68466         * lib/dirname.c, dirname.h: Likewise.
68467         * lib/euidaccess.c: Likewise.
68468         * lib/exclude.c: Likewise
68469         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68470         * lib/fsusage.c, fsuage.h: Likewise.
68471         * lib/fts.c, fts_.h: Likewise.
68472         * lib/getcwd.c: Likewise.
68473         * lib/getloadavg.c: Likewise.
68474         * lib/mkstemp.c: Likewise.
68475         * lib/mountlist.c, mountlist.h: Likewise.
68476         * lib/openat.c, openat.h: Likewise.
68477         * lib/readlink-stub.c: Likewise.
68478         * lib/readutmp.c, readutmp.h: Likewise.
68479         * lib/rename.c: Likewise.
68480         * lib/rmdir.c: Likewise.
68481         * lib/same.c: Likewise.
68482         * lib/savedir.c: Likewise.
68483         * lib/stripslash.c: Likewise.
68484         * lib/tempname.c: Likewise.
68485         * lib/xreadlink.c: Likewise.
68486         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68487         All uses changed.
68488         * lib/exclude.h: Likewise.
68489
68490         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68491         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68492         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68493         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68494         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68495         files have been getting away with it for years (MORE/BSD 4.3
68496         is extinct now).
68497         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68498         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68499
68500         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68501         Define to 256, not 255, as per modern POSIX.
68502
68503 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         Sync from coreutils.
68506         Use "file name" when talking about file names, instead of "filename"
68507         or "path", as per the GNU coding standards.
68508         * MODULES.html.sh: mkdir-p renamed from makepath.
68509         filenamecat renamed from path-concat.
68510         * modules/filenamecat: Renamed from modules/path-concat.
68511         (Files): filenamecat.h and filenamecat.c renamed from
68512         path-concat.h and path-concat.c.
68513         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68514         (Include): filenamecat.h, not path-concat.h.
68515         * modules/mkdir-p: Renamed from modules/makepath.
68516         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68517         makepath.c.
68518         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68519         (Include): mkdir-p.h, not makepath.h.
68520
68521 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         Sync from coreutils.
68524         * m4/mkdir-p.m4: Renamed from makepath.m4.
68525         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68526         Rename files from makepath.c to mkdir-p.c, and from
68527         makepath.h to mkdir-p.h.
68528         * m4/filenamecat.m4: Renamed from path-concat.m4.
68529         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68530         Rename files from path-concat.c to filenamecat.c,
68531         and from path-concat.h to filenamecat.h.
68532         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68533         "file name" in local variables or comments.
68534         * m4/rename.m4: Likewise.
68535
68536 2005-06-01  Bruno Haible  <bruno@clisp.org>
68537
68538         * modules/csharpexec: New file.
68539         * MODULES.html.sh (C#): New section.
68540
68541 2005-06-01  Bruno Haible  <bruno@clisp.org>
68542
68543         * m4/csharp.m4: New file, from GNU gettext.
68544         * m4/csharpexec.m4: New file, from GNU gettext.
68545
68546 2005-06-01  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/csharpexec.h: New file, from GNU gettext.
68549         * lib/csharpexec.c: New file, from GNU gettext.
68550         * lib/csharpexec.sh.in: New file, from GNU gettext.
68551
68552 2005-05-31  Derek Price  <derek@ximbiot.com>
68553             Paul Eggert  <eggert@cs.ucla.edu>
68554
68555         Sync from cvs.
68556         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68557
68558 2005-05-31  Derek Price  <derek@ximbiot.com>
68559             Paul Eggert  <eggert@cs.ucla.edu>
68560
68561         Sync from cvs.
68562         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68563
68564 2005-05-29  Derek Price  <derek@ximbiot.com>
68565
68566         * config/srclist.txt (glob_.h, glob.c): Add these files.
68567
68568 2005-05-29  Derek Price  <derek@ximbiot.com>
68569
68570         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68571         * modules/glob: New file.
68572         * modules/getlogin_r: Add link to POSIX spec in description.
68573
68574 2005-05-29  Derek Price  <derek@ximbiot.com>
68575             Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * m4/glob.m4: New file.
68578
68579 2005-05-29  Derek Price  <derek@ximbiot.com>
68580             Paul Eggert  <eggert@cs.ucla.edu>
68581
68582         * lib/glob_.h, lib/glob.c: New files.
68583
68584 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68585
68586         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68587         * modules/fts-lgpl (Depends-on): Remove gettext.
68588
68589 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68592         and don't require gt_INTTYPES_PRI.
68593
68594 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68597
68598         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68599         the configuration hassle isn't worth it.
68600         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68601         (LONGEST_MODIFIER, PRIuMAX): Remove.
68602
68603 2005-05-27  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68606
68607 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68610         _POSIX_PTHREAD_SEMANTICS for Solaris.
68611
68612 2005-05-25  Derek Price  <derek@ximbiot.com>
68613
68614         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68615
68616 2005-05-25  Derek Price  <derek@ximbiot.com>
68617             Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68620         * lib/getlogin_r.c, getlogin_r.h: New files.
68621
68622 2005-05-25  Bruno Haible  <bruno@clisp.org>
68623             Derek Price  <derek@ximbiot.com>
68624
68625         * lib/getlogin_r.h: Simplify API documentation.
68626
68627 2005-05-23  Derek Price  <derek@ximbiot.com>
68628
68629         * modules/minmax (Files): Add m4/minmax.m4.
68630         (configure.ac): Add gl_MINMAX.
68631
68632 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68633
68634         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68635         so that unistd-safer.h (GPL'ed code) need not be included.
68636
68637 2005-05-22  Bruno Haible  <bruno@clisp.org>
68638
68639         * m4/minmax.m4: New file.
68640         Based on a patch by Derek Price <derek@ximbiot.com>.
68641
68642 2005-05-22  Bruno Haible  <bruno@clisp.org>
68643
68644         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68645         (INT64_MIN): Fix definition.
68646         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68647
68648         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68649         NEED_SIGNED_INT_TYPES.
68650
68651         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68652         HAVE_SYSTEM_INTTYPES.
68653
68654 2005-05-22  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68657         Also include <sys/param.h> if it defines MIN, MAX.
68658         Based on a patch by Derek Price <derek@ximbiot.com>.
68659
68660 2005-05-21  Jim Meyering  <jim@meyering.net>
68661
68662         * modules/fts (Files): Add m4/inttypes-pri.m4.
68663         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68664
68665 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         New fts module.
68668         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68669         (setup_dir, free_dir): New functions.
68670         (enter_dir, leave_dir): Define trivial
68671         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68672         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68673         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68674         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68675         Move to fts-cycle.c.
68676         (fts_open): Use setup_dir.
68677         (fts_close): Use free_dir.
68678         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68679         This adds a label and some gotos, but the alternatives were messier.
68680         Check for memory allocation failure when entering a dir.
68681         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68682         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68683         (FTS): New member fts_cycle, that is a union that contains the
68684         old active_dir_ht and cycle_state.  All uses changed to mention
68685         fts_cycle.ht and fts_cycle.state.
68686         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68687         fts.c, with the following changes:
68688         (setup_dir, free_dir): New functions.
68689         (enter_dir): Now returns bool.  Return true if successful, false
68690         if memory exhausted.  All callers changed.
68691         Do not bother partly cleaning up on
68692         memory allocation failure; that is free_dir's job.
68693         However, free ad if hash_insert fails, to avoid memory leak.
68694         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68695         fts->fts_options to see which union member to use.
68696
68697 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68700         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68701
68702 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68705
68706 2005-05-20  Jim Meyering  <jim@meyering.net>
68707
68708         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68709         Now a macro, to pacify GCC.
68710
68711 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68712
68713         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68714         of -1.
68715
68716 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68717
68718         * lib/chown.c (rpl_chown): Return -1 on failure.
68719
68720 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68723         Don't check for stddef.h.
68724         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68725         don't use its results.
68726         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68727         since we include them unconditionally.  Don't require
68728         AM_STDBOOL_H, since stdbool is a prerequisite.
68729         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68730         since we assume C89 or better.
68731         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68732         as we don't use their results.
68733         Don't check for fchdir, memmove, memset, strrchr, as we use
68734         them unconditionally.
68735         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68736         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68737
68738 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68739
68740         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68741         Include <stddef.h> unconditionally, since we assume C89 now.
68742         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68743         * lib/fts.c: Include fts_.h first, to check interface.
68744         Do not include intprops.h; no longer needed.
68745         Include cycle-check.h and hash.h, since fts_.h no longer does.
68746         Remove unnecessary casts of closedir to void.
68747         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68748         decide whether to decrement nlinks.
68749         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68750         (FTS): Use struct hash_table * instead of Hash_table, so that
68751         we no longer need to include hash.h here.
68752
68753 2005-05-18  Jim Meyering  <jim@meyering.net>
68754
68755         * modules/dirfd (License): Change to LGPL.  Most of the code
68756         is already in the public domain.
68757
68758 2005-05-18  Jim Meyering  <jim@meyering.net>
68759
68760         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68761         Reported by Yoann Vandoorselaere.
68762
68763 2005-05-17  Jim Meyering  <jim@meyering.net>
68764
68765         * m4/fts.m4: New file, from coreutils.
68766
68767 2005-05-17  Jim Meyering  <jim@meyering.net>
68768
68769         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68770
68771 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         Sync from coreutils.
68774         * m4/unlinkdir.m4: New file.
68775
68776 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         Sync from coreutils.
68779         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68780         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68781         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68782         White space changes only.
68783         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68784         special.
68785         * lib/yesno.c: Include getline.h, not ctype.h.
68786         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68787         Use getline to remove arbitrary restriction on response length.
68788
68789 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * config/srclist-update: Spell out "Street" in FSF postal
68792         mail address; this is the style the FSF seems to prefer.
68793
68794         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68795         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68796         this updates FSF postal mail address.
68797
68798         Sync from coreutils.
68799         * modules/unlinkdir: New file.
68800         * modules/yesno (Depends-on): Add getline.
68801         * MODULES.html.sh (File system functions): Add unlinkdir.
68802
68803 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68806         lib/strsep.h:
68807         Change the initial comment to refer to GPL, not LGPL.
68808         gnulib-tool will change it to LGPL as needed.
68809
68810         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68811         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68812         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68813         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68814         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68815         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68816         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68817         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68818         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68819         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68820         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68821         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68822         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68823         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68824         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68825         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68826         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68827         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68828         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68829         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68830         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68831         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68832         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68833         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68834         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68835         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68836         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68837         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68838         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68839         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68840         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68841         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68842         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68843         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68844         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68845         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68846         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68847         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68848         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68849         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68850         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68851         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68852         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68853         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68854         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68855         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68856         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68857         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68858         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68859         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68860         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68861         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68862         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68863         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68864         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68865         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68866         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68867         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68868         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68869         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68870         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68871         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68872         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68873         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68874         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68875         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68876         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68877         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68878         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68879         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68880         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68881         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68882         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68883         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68884         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68885         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68886         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68887         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68888         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68889         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68890         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68891         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68892         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68893         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68894         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68895         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68896         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68897         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68898         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68899         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68900         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68901         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68902         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68903         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68904         lib/yesno.c, lib/yesno.h:
68905         Update FSF postal mail address.
68906
68907 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68910         tests/test-memmem.c, tests/test-stpncpy.c:
68911         Update FSF postal mail address.
68912
68913 2005-05-13  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68916         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68917         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68918         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68919         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68920         Add support for 64-bit integers in the MSVC compiler.
68921
68922 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68923
68924         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68925
68926 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68927
68928         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68929
68930 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * doc/getdate.texi (General date syntax): Don't say that date
68933         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68934         Problem reported by Nic Ferrier.
68935
68936 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68937
68938         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68939         specified in ai_socktype. Fix invalid ai_protocol
68940         check. ai_protocol is usually set to 0 or depending on
68941         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68942         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68943         ai_socktype / ai_protocol in the returned addrinfo structure.
68944
68945 2005-05-10  Simon Josefsson  <jas@extundo.com>
68946
68947         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68948         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68949
68950 2005-05-10  Karl Berry  <karl@gnu.org>
68951
68952         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68953         (from http://www.gnu.org/licenses).
68954         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68955         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68956         fdl.texi suffices.
68957
68958 2005-05-10  Karl Berry  <karl@gnu.org>
68959
68960         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68961         (COPYING.DOC): remove.
68962
68963         * config/srclist-update: new FSF address.
68964
68965 2005-05-10  Derek Price  <derek@ximbiot.com>
68966
68967         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68968         possible.
68969
68970 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68971             Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/inet_ntop: New file.
68974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68975         inet_ntop.
68976
68977 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68978             Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/inet_ntop.m4: New file.
68981
68982 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68983             Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/inet_ntop.h: New file.
68986         * lib/inet_ntop.c: New file, from glibc with modifications.
68987
68988 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * modules/time_r (License): Change to LGPL.
68991         * modules/extensions (License): Change to LGPL.  Actually,
68992         the license is more permissive than that, but currently gnulib-tool
68993         doesn't know how to handle more-permissive licenses.
68994
68995         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68996         Problem reported by Dave Love.
68997
68998 2005-05-08  Jim Meyering  <jim@meyering.net>
68999
69000         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69001         blank.
69002
69003 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * modules/argmatch (Depends-on): Add stdbool.
69006         * modules/backupfile (Depends-on): Likewise.
69007         * modules/chdir-long (Depends-on): Likewise.
69008         * modules/closeout (Depends-on): Likewise.
69009         * modules/cycle-check (Depends-on): Likewise.
69010         * modules/dirname (Depends-on): Likewise.
69011         * modules/fnmatch (Depends-on): Likewise.
69012         * modules/fsusage (Depends-on): Likewise.
69013         * modules/fwriteerror (Depends-on): Likewise.
69014         * modules/getcwd (Depends-on): Likewise.
69015         * modules/getloadavg (Depends-on): Likewise.
69016         * modules/hard-locale (Depends-on): Likewise.
69017         * modules/makepath (Depends-on): Likewise.
69018         * modules/mountlist (Depends-on): Likewise.
69019         * modules/nanosleep (Depends-on): Likewise.
69020         * modules/posixtm (Depends-on): Likewise.
69021         * modules/quotearg (Depends-on): Likewise.
69022         * modules/readtokens (Depends-on): Likewise.
69023         * modules/readtokens0 (Depends-on): Likewise.
69024         * modules/readutmp (Depends-on): Likewise.
69025         * modules/save-cwd (Depends-on): Likewise.
69026         * modules/strftime (Depends-on): Likewise.
69027         * modules/userspec (Depends-on): Likewise.
69028         * modules/utimecmp (Depends-on): Likewise.
69029         * modules/xgetcwd (Depends-on): Likewise.
69030         * modules/xnanosleep (Depends-on): Likewise.
69031         * modules/xstrtod (Depends-on): Likewise.
69032         * modules/yesno (Depends-on): Likewise.
69033
69034 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69037         needless checks.
69038
69039 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         Merge from coreutils.  Among other things,
69042         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69043         * lib/fd-safer.c: New file.
69044         * lib/fcntl-safer.h, open-safer.c: Remove.
69045         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
69046         * lib/dup-safer.c: Include unistd-safer.h first.
69047         Don't include errno.h.
69048         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
69049         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
69050         * lib/file-type.c: Rely on file-type.h change.
69051         * lib/getloadavg.c: Include unistd-safer.h.
69052         (getloadavg): Use safer open.
69053         * lib/getusershell.c: Include "stdio-safer.h".
69054         (getusershell): Use safer fopen.
69055         * lib/long-options.c (long_options): Use NULL rather than 0.
69056         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69057         'free'.
69058         * lib/modechange.c: Likewise.
69059         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69060         (MODE_DONE): New constant.
69061         (struct mode_change): Remove 'next' member.
69062         (make_node_op_equals): New function; like the old one of the
69063         same name, except it allocates an array.
69064         (mode_compile, mode_create_from_ref): Use it.
69065         (mode_compile): Allocate result as an array, not a linked list.
69066         Parse octal string ourself, so that we catch mistakes like "+0".
69067         (mode_adjust): Arg is an array, not a linked list.
69068         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69069         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69070         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69071         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69072         Remove.  This is now stat-macros.h's job.
69073         (talloc): Remove.  All callers replaced by xalloc, so that
69074         our invokers don't have to worry about reporting memory failures.
69075         (make_node_op_equals): Remove.
69076         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69077         New constants.
69078         (struct mode_change): Moved here from modechange.h.
69079         (mode_append_entry): Remove.
69080         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69081         apps to have incorrect behavior.  Use simpler algorithm for head
69082         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69083         Detect more invalid usages rather than having somewhat-random behavior.
69084         Don't insert an "a=" action, as that leads to incorrect behavior.
69085         (mode_compile, mode_create_from_ref): Return NULL on error instead
69086         of an enum, since now there's only one way to have an error.  All
69087         callers changed.
69088         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69089         at the correct time.  Simplify calculation of "+u" and its ilk.
69090         Don't mishandle "+X".
69091         (mode_free): Remove "register" and localize decls.
69092         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69093         (struct mode_change): Move to modechange.c; callers don't
69094         need to see this stuff.
69095         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69096         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69097         (mode_change, mode_adjust): Reflect the new signatures noted above.
69098         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69099         that might redefine system include files.
69100         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69101         (my_usleep): Use NULL rather than (void *) 0.
69102         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69103         Use siginterrupt to specify that system calls should be interrupted.
69104         (rpl_nanosleep): Move initialization of suspended closer to call of
69105         my_usleep.
69106         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69107         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69108         (desirable_utmp_entry): New function.
69109         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69110         using x2nrealloc, to simplify logic.
69111         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69112         size calculation.  Do not assume utmp file is a regular file.
69113         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69114         (READ_UTMP_CHECK_PIDS): New constant.
69115         * lib/save-cwd.c: Include unistd-safer.h.
69116         (save_cwd): Use fd_safer.
69117         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69118         [!_LIBC] Include "stat-macros.h" instead.
69119         * lib/unistd-safer.h (fd_safer): New decl.
69120
69121 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * modules/getloadavg (Depends-on): Add unistd-safer.
69124         * modules/getusershell (Depends-on): Add stdio-safer.
69125         * modules/lstat (Depends-on): Remove xalloc.
69126         * modules/mkstemp (Depends-on): Add stat-macros.
69127         * modules/modechange (Depends-on): Remove xstrtol.
69128         Add stat-macros, xalloc.
69129         * modules/save-cwd (Depends-on): Add unistd-safer.
69130         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69131         * modules/unistd-safer (Files): Add lib/fd-safer.c
69132         (Makefile.am): Remove lib_SOURCES.
69133
69134         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69135         Remove fcntl-safer; unistd-safer supersedes it.
69136
69137 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69140         AC_HEADER_STAT.
69141         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69142         (gl_PREREQ_CHOWN): Remove.
69143         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69144         it.  Don't require AC_HEADER_STAT.
69145         (gl_PREREQ_LSTAT): Remove.
69146         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69147         Don't require AC_HEADER_STAT.
69148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69149         (gl_PREREQ_RMDIR): Remove.
69150         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69151         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69152         the stat-macros module a prerequisite.
69153         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69154         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69155         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69156         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69157         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69158         variable names.
69159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69160         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69161         variable prefixes.
69162         * m4/fcntl-safer.m4: Remove.
69163         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69164         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69165         Invoke gl_PREREQ_FD_SAFER.
69166         (gl_PREREQ_FD_SAFER): New macro.
69167         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69168         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69169         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69170         Remove duplicate call to AC_LIBOBJ(readutmp).
69171         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69172
69173         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69174         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69175
69176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * MODULES.html.sh (Misc): Add byteswap.
69179
69180 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69181
69182         * modules/getcwd (Depends-on): Add extensions.
69183         * modules/openat (Depends-on): Likewise.
69184
69185 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69186
69187         * modules/byteswap: New file.
69188
69189 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69190
69191         * m4/byteswap.m4: New file.
69192
69193 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69194
69195         * lib/byteswap_.h: New file.
69196
69197 2005-04-25  Karl Berry  <karl@gnu.org>
69198
69199         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69200
69201 2005-04-25  Albert Chin  <china@thewrittenword.com>
69202
69203         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69204         Toolkit C bug.
69205
69206 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69207
69208         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69209         (func_ln_if_changed): Remove forcibly for no error message
69210         in case file does not exist.
69211
69212 2005-04-19  Simon Josefsson  <jas@extundo.com>
69213
69214         * gnulib-tool (Options): Make --symlink mean --symbolic.
69215
69216 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69217
69218         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69219
69220 2005-04-16  Simon Josefsson  <jas@extundo.com>
69221
69222         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69223
69224 2005-04-15  Simon Josefsson  <jas@extundo.com>
69225
69226         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69227
69228 2005-04-15  Simon Josefsson  <jas@extundo.com>
69229
69230         * gnulib-tool: Rename --symlink to --symbolic.
69231
69232 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69233
69234         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69235         symbolic links to files instead of copying/moving.  Add --aux-dir,
69236         specifying directory relative --dir where auxiliary build tools
69237         are placed.
69238
69239 2005-04-14  Bruno Haible  <bruno@clisp.org>
69240
69241         * modules/allocsa (License): Change to LGPL.
69242         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69243
69244 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69245
69246         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69247         that "UTC +1 second" continues to work.  Problem reported
69248         by Dmitry V. Levin.
69249         (relunit_snumber): New rule.
69250         (relunit): Use it.
69251
69252 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69253
69254         * lib/getdate.y (universal_time_zone_table): New constant.
69255         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69256         universal_time_zone_table.
69257         (lookup_zone): Prefer universal_time_zone_table to
69258         local_time_zone_table, so that "GMT" time stamps are allowed in
69259         London during the summer.  Problem reported by Ian Abbott.
69260
69261 2005-04-12  Jim Meyering  <jim@meyering.net>
69262
69263         * lib/human.c (humblock): Set *options even when returning due to
69264         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69265         warning from gcc-4.
69266
69267 2005-04-09  Jim Meyering  <jim@meyering.net>
69268
69269         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69270         -Wuninitialized: initialize tm0.tm_year.
69271
69272 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69275         count, since there's no maximum.  All uses changed.
69276         Add member dsts_seen.
69277         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69278         not being INT_MAX.
69279         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69280         Use pc_rels_seen to decide whther a date is absolute.
69281
69282         * lib/getdate.y (number): Don't overwrite year.
69283         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69284         check.
69285
69286 2005-04-02  Simon Josefsson  <jas@extundo.com>
69287
69288         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69289         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69290
69291 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69292
69293         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69294         where no absolute path name can be longer than PATH_MAX.
69295
69296 2005-03-27  Jim Meyering  <jim@meyering.net>
69297
69298         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69299
69300 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69301
69302         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69303         "one's complement" -> "ones' complement" in comment, as per Knuth.
69304         "value of type" -> "type or expression" in comment.
69305         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69306
69307 2005-03-26  Jim Meyering  <jim@meyering.net>
69308
69309         Comment nits.
69310         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69311         Correct typos: s/or/of/.
69312
69313 2005-03-26  Jim Meyering  <jim@meyering.net>
69314
69315         * modules/check-include-files: Move to ../ and rename to...
69316         * check-module: ...this.
69317
69318 2005-03-25  Jim Meyering  <jim@meyering.net>
69319
69320         * modules/xvasprintf (Files): Add xalloc.h.
69321
69322 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * modules/gettext (Files): config/config.rpath ->
69325         build-aux/config.rpath
69326         * modules/iconv (Files): Likewise.
69327         Problem reported by Oskar Liljeblad.
69328
69329 2005-03-23  Jim Meyering  <jim@meyering.net>
69330
69331         * modules/check-include-files: New script to check for
69332         missing dependencies, multiple includes, etc.
69333
69334         * modules/c-strtold (Depends-on): Add xalloc.
69335         * modules/c-strtod (Depends-on): Add xalloc.
69336         * modules/hash (Depends-on): Add xalloc.
69337         (Files): Remove lib/xalloc.h.
69338
69339         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69340         * modules/userspec (Files): Add lib/inttostr.h.
69341
69342 2005-03-23  Jim Meyering  <jim@meyering.net>
69343
69344         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69345
69346 2005-03-22  Jim Meyering  <jim@meyering.net>
69347
69348         * modules/stat-macros: New module.
69349         * modules/canonicalize, modules/euidaccess, modules/file-type,
69350         * modules/filemode, modules/lchown, modules/makepath,
69351         * modules/rmdir, modules/stat: Depend on new stat-macros module
69352         rather than listing lib/stat-macros.h manually.
69353         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69354
69355 2005-03-22  Jim Meyering  <jim@meyering.net>
69356
69357         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69358
69359 2005-03-22  Bruno Haible  <bruno@clisp.org>
69360
69361         * config/srclist.txt: Replace target directory 'config' with
69362         'build-aux'.
69363         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69364         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69365         ../build-aux/.
69366
69367 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * modules/chdir-long (Depends-on): Add mempcpy.
69370
69371         * modules/acl, modules/backupfile, modules/c-strtod,
69372         modules/c-strtold, modules/canon-host, modules/canonicalize,
69373         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69374         modules/exclude, modules/exitfail, modules/file-type,
69375         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69376         modules/getdate, modules/getline, modules/getpagesize,
69377         modules/getpass, modules/getugroups, modules/group-member,
69378         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69379         modules/inttostr, modules/long-options, modules/makepath,
69380         modules/md5, modules/memcasecmp, modules/memcoll,
69381         modules/modechange, modules/mountlist, modules/path-concat,
69382         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69383         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69384         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69385         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69386         modules/strftime, modules/strndup, modules/strverscmp,
69387         modules/timespec, modules/unlocked-io, modules/userspec,
69388         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69389         modules/yesno:
69390         Remove lib_SOURCES line from Makefile.am section, as this is now
69391         done automatically by the corresponding Autoconf macro.
69392
69393 2005-03-21  Jim Meyering  <jim@meyering.net>
69394
69395         Changes imported from coreutils.
69396
69397         * lib/cycle-check.c: Don't include xalloc.h.
69398
69399         * lib/path-concat.c: Don't include assert.h.
69400         (path_concat): Remove assertion that would have triggered
69401         for ABASE starting with more than one slash.
69402         Reported by Andreas Schwab.
69403
69404         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69405         properly when ABASE is an absolute file name.
69406         Correct the description of this function.
69407         Include <assert.h>.
69408         Add an assertion and a test driver.
69409         This fixes a bug introduced on 2004-07-02.
69410         Andreas Schwab reported the resulting failure of cp --parents:
69411         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69412
69413 2005-03-21  Jim Meyering  <jim@meyering.net>
69414
69415         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69417
69418 2005-03-21  Jim Meyering  <jim@meyering.net>
69419         and  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69422         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69423         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69424         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69425         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69426         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69427         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69428         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69429         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69430         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69431         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69432         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69433         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69434         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69435         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69436         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69437         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69438         for these modules.
69439
69440 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69443         (which shouldn't happen), generate nothing instead of returning 0
69444         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69445
69446 2005-03-16  Bruno Haible  <bruno@clisp.org>
69447
69448         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69449         HAVE_LONGLONG_64BIT.
69450
69451 2005-03-16  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69454         HAVE_LONGLONG_64BIT.
69455
69456 2005-03-16  Bruno Haible  <bruno@clisp.org>
69457
69458         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69459         HAVE_LONGLONG_64BIT.
69460
69461 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69464         reliably distinguish strftime failure from empty output on POSIX
69465         hosts.
69466
69467 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69468
69469         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69470         (iconv_string): Don't guess a size-zero buffer, as that might cause
69471         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69472         result would be 'too large', where 'too large' is (heuristically)
69473         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69474         overflow concerns.  This will prevent some unwanted malloc failures
69475         when the inputs are very large.
69476
69477 2005-03-15  Karl Berry  <karl@gnu.org>
69478
69479         * config/srclist.txt (config.rpath): from gettext.
69480         * config/config.rpath: update.
69481
69482 2005-03-15  Bruno Haible  <bruno@clisp.org>
69483
69484         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69485         to 'negate'.
69486
69487         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69488         variable.
69489
69490         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69491         results.
69492
69493 2005-03-14  Simon Josefsson  <jas@extundo.com>
69494
69495         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69496         <fx@gnu.org>.
69497
69498 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69501         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69502         intprops.h.
69503         * lib/strtol.c: Likewise.
69504
69505 2005-03-14  Jim Meyering  <jim@meyering.net>
69506
69507         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69508         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69509         to be nonzero so that we (and caller) can detect the difference
69510         between a valid zero-length expansion and an error return, even
69511         when the underlying strftime fails before writing anything into
69512         that location.
69513
69514 2005-03-14  Bruno Haible  <bruno@clisp.org>
69515
69516         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69517         Update from GNU gettext 0.14.3.
69518
69519 2005-03-10  Jim Meyering  <jim@meyering.net>
69520
69521         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69522
69523 2005-03-10  Jim Meyering  <jim@meyering.net>
69524
69525         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69526         so that this module works on systems without fchdir.
69527
69528 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69529
69530         Factor int-properties macros into a single file, except for
69531         glibc-related files.
69532         * lib/intprops.h: New file.
69533         * lib/getloadavg.c: Include it instead of limits.h.
69534         (INT_STRLEN_BOUND): Remove.
69535         * lib/human.c: Include intprops.h.
69536         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69537         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69538         302/1000.
69539         * lib/inttostr.h: Include intprops.h instead of limits.h.
69540         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69541         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69542         for consistency with intprops.h.
69543         (time_t_is_integer, twos_complement_arithmetic): Use them.
69544         * lib/sig2str.h: Include <signal.h>, intprops.h.
69545         (INT_STRLEN_BOUND): Remove.
69546         * lib/strftime.c (TYPE_SIGNED): Remove.
69547         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69548         * lib/strtol.c: Adjust comments to match intprops.h.
69549         * lib/userspec.c: Include intprops.h.
69550         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69551         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69552         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69553         instead of rolling our own expressions.
69554         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69555
69556         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69557         instead of int.
69558         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69559         the right thing even if adding 1900 would overflow.  Similarly
69560         for tm_mon + 1 and tm_yday + 1.
69561         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69562         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69563         (DO_SIGNED_NUMBER): New macro.
69564         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69565
69566 2005-03-07  Bruno Haible  <bruno@clisp.org>
69567
69568         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69569
69570 2005-03-07  Bruno Haible  <bruno@clisp.org>
69571
69572         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69573
69574 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69575
69576         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69577         (func_import): Only replace files via --import when they have actually
69578         changed.
69579
69580 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69581
69582         * m4/mmap-anon.m4: New file.
69583         * m4/pagealign_alloc.m4: New file.
69584
69585 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69586             Bruno Haible  <bruno@clisp.org>
69587
69588         * modules/pagealign_alloc: New file.
69589         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69590
69591 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69592             Bruno Haible  <bruno@clisp.org>
69593
69594         * lib/pagealign_alloc.h: New file.
69595         * lib/pagealign_alloc.c: New file.
69596
69597 2005-03-03  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69600         Use an all-permissive copyright notice, recommended by RMS.
69601
69602 2005-03-02  Bruno Haible  <bruno@clisp.org>
69603
69604         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69605         of AIX, the replacement has to be done only after <string.h> is
69606         included, therefore not in config.h. stpncpy.h does the replacement,
69607         and stpncpy.c uses it.
69608
69609 2005-03-02  Bruno Haible  <bruno@clisp.org>
69610
69611         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69612         stpncpy.c uses it.
69613
69614 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69617         The workaround isn't strictly needed for POSIX conformance, and
69618         it's too much of a pain to configure and maintain.  We'll ask
69619         people to fix their kernels instead.
69620         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69621         (NANOSLEEP_BUG_WORKAROUND): Remove.
69622         (xnanosleep): Remove the workaround.
69623
69624 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69627         Reported by Derek Price.
69628         (Include): Add "timespec.h".
69629
69630         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69631
69632 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69635         to detect nanosleep bug.
69636
69637 2005-03-01  Bruno Haible  <bruno@clisp.org>
69638
69639         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69640
69641 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         * modules/gethrxtime: New file.
69644         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69645         (Depends-on): Add gethrxtime.
69646         (configure.ac): Add gl_XNANOSLEEP.
69647         (Makefile.am): Remove lib_SOURCES line.
69648
69649 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69652         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69653
69654 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69655
69656         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69657         * lib/timespec.h (gettime): Return void, since it always
69658         succeeds now.  All uses changed.
69659         * lib/gettime.c (gettime): Likewise.
69660         [HAVE_NANOTIME]: Prefer nanotime.
69661         Assume gettimeofday succeeds, as POSIX requires.
69662         Assime time () succeeds, since other code already does.
69663         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69664         (timespec_subtract): Remove.
69665         (NANOSLEEP_BUG_WORKAROUND): New constant.
69666         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69667         things considerably.  Use it only on GNU/Linux hosts, since the
69668         workaround shouldn't be needed elsewhere.
69669
69670 2005-02-24  Bruno Haible  <bruno@clisp.org>
69671
69672         * modules/gettext (Files): Add m4/glibc2.m4.
69673
69674 2005-02-24  Bruno Haible  <bruno@clisp.org>
69675
69676         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69677         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69678         * m4/progtest.m4:
69679         Update from GNU gettext 0.14.2.
69680         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69681
69682 2005-02-24  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69685         * lib/config.charset: Update from GNU gettext 0.14.2.
69686
69687 2005-02-24  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/gettext.h: Update from GNU gettext 0.14.2.
69690
69691 2005-02-23  Simon Josefsson  <jas@extundo.com>
69692
69693         * m4/iconvme.m4: New file.
69694
69695 2005-02-23  Jim Meyering  <jim@meyering.net>
69696
69697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69698         change.
69699         Thanks to Bruno Haible for catching it.
69700
69701 2005-02-22  Simon Josefsson  <jas@extundo.com>
69702
69703         * modules/iconvme: New file.
69704
69705         * MODULES.html.sh: Add iconvme.
69706
69707 2005-02-22  Simon Josefsson  <jas@extundo.com>
69708
69709         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69710
69711 2005-02-22  Simon Josefsson  <jas@extundo.com>
69712
69713         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69714
69715 2005-02-22  Jim Meyering  <jim@meyering.net>
69716
69717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69718         s/ifndef/ifdef/.
69719
69720 2005-02-20  Neil Conway  <neilc@samurai.com>
69721
69722         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69723         returned by OSX/Darwin if the specified buffer is not large
69724         enough for the hostname.
69725
69726 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69727
69728         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69729         pass it to _help, otherwise the latter coredumps trying to
69730         dereference state.root_argp.
69731
69732 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69733
69734         * modules/chdir-long (Depends-on): Add memrchr.
69735         * modules/memrchr (Files): Add lib/memrchr.h.
69736         (Include): "memrchr.h".
69737
69738 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69741
69742 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         * lib/memrchr.h: New file.
69745         * lib/chdir-long.c: Include it.
69746         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69747         Don't bother including stddef.h.
69748
69749 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69752         inclusion.
69753         Include <sys/types.h>, for dev_t.
69754         (ME_DUMMY, ME_REMOTE): Move from here....
69755         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69756         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69757         Dmitry V. Levin.
69758         Include mountlist.h first, to test the interface.
69759
69760 2005-01-29  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/progname.c (program_name): Initialize.
69763         Needed when linking statically on MacOS X.
69764
69765 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         Sync from coreutils.
69768         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69769         (Depends-on): Add c-strtod.
69770         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69771
69772 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         Sync from coreutils.
69775         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69776
69777         Remove files that are specific to coreutils.
69778         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69779
69780 2005-01-28  Bruno Haible  <bruno@clisp.org>
69781
69782         * modules/javacomp: New file.
69783         * MODULES.html.sh (Java): Add javacomp.
69784
69785 2005-01-28  Bruno Haible  <bruno@clisp.org>
69786
69787         * m4/javacomp.m4: New file, from GNU gettext.
69788
69789 2005-01-28  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/javacomp.sh.in: New file, from GNU gettext.
69792         * lib/javacomp.h: New file, from GNU gettext.
69793         * lib/javacomp.c: New file, from GNU gettext.
69794
69795 2005-01-26  Simon Josefsson  <jas@extundo.com>
69796
69797         * lib/gai_strerror.c: Use GPL in header.
69798
69799 2005-01-26  Bruno Haible  <bruno@clisp.org>
69800
69801         * modules/javaexec: New file.
69802         * MODULES.html.sh (Java): Add javaexec.
69803
69804 2005-01-26  Bruno Haible  <bruno@clisp.org>
69805
69806         * m4/javaexec.m4: New file, from GNU gettext.
69807
69808 2005-01-26  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/javaexec.sh.in: New file, from GNU gettext.
69811         * lib/javaexec.h: New file, from GNU gettext.
69812         * lib/javaexec.c: New file, from GNU gettext.
69813
69814 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69815
69816         * modules/lchown (Depends-on): Remove lchown.h
69817
69818 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69819
69820         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69821         must be defined if the header file was not found, in order
69822         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69823
69824 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69825
69826         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69827         initializers for struct pentry_state.
69828         (__argp_error): Check return value of __asprintf
69829         (__argp_failure): Translate error message
69830
69831         * lib/argp-parse.c: Removed braces around the expansion of N_()
69832
69833 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69836         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69837         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69838         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69839         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69840         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69841         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69842         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69843         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69844         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69845         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69846         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69847         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69848         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69849         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69850         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69851         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69852         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69853         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69854         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69855         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69856         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69857         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69858         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69859         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69860         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69861         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69862         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69863         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69864         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69865         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69866         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69867         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69868         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69869         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69870         Use an all-permissive copyright notice, recommended by RMS.
69871
69872 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69873
69874         * modules/chdir-long (Depends-on): Remove mempcpy.
69875
69876 2005-01-21  Jim Meyering  <jim@meyering.net>
69877
69878         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69879         same value as for Solaris 9.
69880
69881         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69882         component length.  This included changing the parameter to be
69883         of type `char *' rather than `char const *'.
69884         * lib/chdir-long.h (chdir_long): Update prototype.
69885
69886         * lib/openat.c (fdopendir, fstatat): New functions.
69887         * lib/openat.h: Include headers required for use of DIR and struct
69888         stat.
69889         [AT_SYMLINK_NOFOLLOW]: Define.
69890         (fdopendir, fstatat): Add prototypes.
69891
69892 2005-01-21  Bruno Haible  <bruno@clisp.org>
69893
69894         * modules/classpath: New file.
69895         * MODULES.html.sh (Java): Add classpath.
69896
69897 2005-01-21  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/classpath.h: New file, from GNU gettext.
69900         * lib/classpath.c: New file, from GNU gettext.
69901
69902 2005-01-20  Simon Josefsson  <jas@extundo.com>
69903
69904         * modules/version-etc-fsf: New file.
69905
69906 2005-01-20  Simon Josefsson  <jas@extundo.com>
69907
69908         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69909         * lib/version-etc.c: Remove version_etc_copyright.
69910         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69911         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69912
69913 2005-01-20  Simon Josefsson  <jas@extundo.com>
69914
69915         * lib/base64.h (isbase64): Add.
69916
69917         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69918         using a unsigned prototype, don't inline.
69919         (base64_decode): Use it.
69920
69921 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69924         it.
69925
69926 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * lib/save-cwd.c (save_cwd): Remove code to support the case
69929         where fchdir is missing or flaky.
69930
69931 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69934
69935 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69938         AC_LIBSOURCES now does this.
69939         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69940         with new ullong_max module.
69941
69942 2005-01-19  Bruno Haible  <bruno@clisp.org>
69943
69944         * modules/sh-quote: New file.
69945         * MODULES.html.sh (Executing programs): Add sh-quote.
69946
69947 2005-01-19  Bruno Haible  <bruno@clisp.org>
69948
69949         * lib/sh-quote.h: New file, from GNU gettext.
69950         * lib/sh-quote.c: New file, from GNU gettext.
69951
69952 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         Merge from coreutils.
69955         * m4/ullong_max.m4: New file.
69956         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69957         (gl_MACROS): Assume localeconv exists.
69958
69959 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         Merge changes from coreutils, as described below in several
69962         changelogs dated today.
69963
69964         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69965         (O_DIRECTORY): Remove; not needed here, since "." must be
69966         a directory.  All uses removed.
69967         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69968         universal on Suns, and we also need to test for IRIX.
69969         Revamp code to use 'if' rather than '#if'.
69970         Avoid unnecessary comparison of cwd->desc to 0.
69971
69972         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69973         for known valid error numbers rather than observed invalid ones.
69974
69975 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * modules/ullong_max: New file.
69978
69979         * modules/chdir-long, modules/openat: New files.
69980         * modules/save-cwd (Depends-on): Depend on chdir-long.
69981         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69982
69983 2005-01-18  Jim Meyering  <jim@meyering.net>
69984
69985         Merge from coreutils.
69986         * m4/chdir-long.m4, m4/openat.m4: New files.
69987         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69988         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69989         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69990         is sane and DOES follow symlinks.  Besides, testing 20 different
69991         systems found no broken chown implementations.
69992         Prompted by a change in rsync's copy of this macro.
69993         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69994
69995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69996
69997         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69998         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69999         NULL-means-set-to-current-time semantics.
70000         Remove temporary file immediately, rather than waiting
70001         for configure's at-exit trap code to do it.
70002
70003 2005-01-18  Jim Meyering  <jim@meyering.net>
70004
70005         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70006
70007         * lib/utimens.c (futimens): Account for the fact that futimes
70008         can also fail with errno == ENOSYS or errno == ENOENT.
70009         Patch from Dmitry V. Levin.
70010
70011         Change the name of the robust chdir function from chdir to chdir_long.
70012         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70013         (restore_cwd): Use chdir_long, not chdir.
70014         * lib/chdir-long.c: Renamed from chdir.c.
70015         * lib/chdir-long.h: Renamed from chdir.h.
70016         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70017         Hurd.
70018
70019 2005-01-18  Bruno Haible  <bruno@clisp.org>
70020
70021         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70022         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70023         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70024         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70025         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70026         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70027         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70028         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70029         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70030         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70031         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70032         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70033         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70034         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70035         Use an all-permissive copyright notice, recommended by RMS.
70036
70037 2005-01-18  Bob Proulx  <bob@proulx.com>
70038
70039         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70040         simplify offsetof() macro construct to avoid compile failure with
70041         native HP-UX 11.0 ANSI C compiler.
70042
70043 2005-01-17  Bruno Haible  <bruno@clisp.org>
70044
70045         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
70046         redundant because stpncpy.m4 takes care of it.
70047
70048 2005-01-17  Bruno Haible  <bruno@clisp.org>
70049
70050         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
70051
70052 2005-01-17  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70055         used.
70056
70057 2005-01-17  Bruno Haible  <bruno@clisp.org>
70058
70059         * lib/fwriteerror.h (fwriteerror): Change specification to include
70060         fclose.
70061         * lib/fwriteerror.c: Include <stdbool.h>.
70062         (fwriteerror): At the end, close the file stream. Record whether
70063         stdout was already closed.
70064
70065 2005-01-17  Bruno Haible  <bruno@clisp.org>
70066
70067         * lib/execute.c (environ): Declare if needed.
70068         * lib/pipe.c (environ): Likewise.
70069         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70070
70071 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70072
70073         * modules/argp: Depend on vsnprintf
70074
70075 2005-01-10  Jim Meyering  <jim@meyering.net>
70076
70077         * modules/closeout (Depends-on): Add atexit.
70078
70079 2005-01-06  Bruno Haible  <bruno@clisp.org>
70080
70081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70082
70083 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70086         definitions to be after all include files, to avoid collisions.
70087         Problem reported by Bob Proulx.
70088
70089 2005-01-04  Jim Meyering  <jim@meyering.net>
70090
70091         Changes imported from coreutils.
70092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70093         as the mkstemp template, use a temporary directory and an
70094         8.3-friendly template to avoid trouble on systems like DJGPP.
70095         Reported by Juan M. Guerrero via Stepan Kasal.
70096         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70097         close. Remove the temporary directory right away, rather than waiting
70098         for configure's at-exit trap code to do it.
70099         Suggestion from Stepan Kasal.
70100
70101 2005-01-01  Simon Josefsson  <jas@extundo.com>
70102
70103         * gnulib-tool: Print #include directives when --import'ing.
70104
70105 2004-12-28  Simon Josefsson  <jas@extundo.com>
70106
70107         * tests/test-base64.c: Include required header files.  Remove
70108         unused variables.
70109
70110 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * modules/error (Depends-on): Remove gettext.
70113
70114 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70117         not needed.  This removes a dependency on the gettext module.
70118         [defined _LIBC]: Do not include <libintl.h>; not needed.
70119
70120 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70123         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70124
70125 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70128         HAVE_DECL_STRTOLD.
70129
70130 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * modules/getdate (Depends-on): Remove alloca-opt.
70133
70134 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70137
70138 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/argp-parse.c: Include <stddef.h>.
70141         (alignof, alignto): New macros.
70142         (parser_init): Don't assume that void * is aligned sufficiently
70143         for struct option.
70144
70145         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70146         need to extend the stack.
70147         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70148         large.
70149
70150 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70151
70152         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70153
70154 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70155
70156         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70157         (2004-10-24) change.  Apparently this was a false alarm.
70158
70159         * modules/getdate: Depend on alloca-opt, not alloca.
70160
70161 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70164         Remove now-obsolete comment about AIX.
70165         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70166         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70167         (YYMAXDEPTH): New macro.
70168
70169 2004-12-18  Simon Josefsson  <jas@extundo.com>
70170
70171         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70172
70173 2004-12-18  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70176
70177 2004-12-18  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/fatal-signal.c (fatal_signals): Make non-const.
70180         (init_fatal_signals): New function.
70181         (uninstall_handlers, install_handlers): Ignore signals that were set to
70182         SIG_IGN.
70183         (at_fatal_signal): Call init_fatal_signals.
70184         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70185         SIG_IGN.
70186         Reported by Paul Eggert.
70187
70188 2004-12-18  Bruno Haible  <bruno@clisp.org>
70189
70190         * doc/alloca.texi: New file.
70191         * doc/alloca-opt.texi: New file.
70192
70193 2004-12-17  Jim Meyering  <jim@meyering.net>
70194
70195         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70196         Otherwise, install-sh could exit with improper exit status when
70197         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70198
70199 2004-12-16  Simon Josefsson  <jas@extundo.com>
70200
70201         * tests/test-base64.c: Add license.
70202
70203 2004-12-15  Stepan Kasal  <address@hidden>
70204
70205         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70206
70207 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * modules/getcwd (Files): Add m4/d-ino.m4.
70210         Suggested by Mark D. Baushke.
70211
70212 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * lib/getdate.y (textint): New member "negative".
70215         (time_zone_hhmm): New function.
70216         Expect 14 shift-reduce conflicts, not 13.
70217         (o_colon_minutes): New rule.
70218         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70219         (yylex): Set the "negative" member of signed numbers.
70220
70221 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * doc/getdate.texi (Time of day items, Time zone items):
70224         Describe new formats +00:00, UTC+00:00.
70225
70226 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70229         spurious "-l"s.  Problem reported by Stepan Kasal.
70230
70231 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70234         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70235
70236 2004-12-04  Simon Josefsson  <jas@extundo.com>
70237
70238         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70239         Vandoorselaere <yoann@prelude-ids.org>.
70240
70241 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         Changes imported from coreutils.
70244         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70245         exist.
70246         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70247
70248 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         Changes imported from coreutils.
70251         * lib/hard-locale.c: Assume <locale.h> exists.
70252         Include "strdup.h".
70253         (GLIBC_VERSION): New macro.
70254         (hard_locale): Assume setlocale exists.
70255         Rewrite to avoid #ifdef.
70256         Use strdup rather than malloc + strcpy.
70257         * lib/human.c: Assume <locale.h> exists.
70258         (human_readable): Assume localeconv exists.
70259
70260 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * modules/hard-locale (Depends-on): Add strdup.
70263
70264 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70265
70266         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70267         convert T2, not T.  (Imported from libc.)
70268
70269 2004-11-30  Simon Josefsson  <jas@extundo.com>
70270
70271         * modules/restrict (License): Change to LGPL.
70272
70273 2004-11-30  Simon Josefsson  <jas@extundo.com>
70274
70275         * m4/restrict.m4: Add copyright and copying conditions.
70276
70277 2004-11-30  Simon Josefsson  <jas@extundo.com>
70278
70279         * m4/base64.m4: New file.
70280
70281 2004-11-30  Simon Josefsson  <jas@extundo.com>
70282
70283         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70284         base64.
70285
70286         * tests/test-base64.c: New file.
70287
70288         * modules/base64: New file.
70289
70290 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70291
70292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70293         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70294
70295         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70296
70297 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70300         (__getcwd.c): Don't restore errno; glibc doesn't.
70301         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70302         first, falling back to our code only if its results look suspicious.
70303         Ensure that the resulting buffer is only as large as necessary.
70304
70305         * lib/readutmp.c: Include readutmp.h first.
70306         Include <errno.h>, since readutmp.h no longer does that.
70307         * lib/readutmp.h: Don't include <errno.h>,
70308         <sys/param.h>, <time.h>; not needed to establish interface.
70309         (errno): Remove decl.
70310         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70311         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70312         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70313
70314 2004-11-28  Simon Josefsson  <jas@extundo.com>
70315
70316         * lib/base64.h, base64.c: New file.
70317
70318 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70319
70320         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70321
70322 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70325         (Depends-on): Remove pathmax, same.  Add mempcpy.
70326         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70327         (Makefile.am): Append getcwd.h to lib_SOURCES.
70328         (Include): Add getcwd.h.
70329         (Maintainer): Change from Jim Meyering to "all, glibc",
70330         since getdate now uses intended-for-glibc code.
70331         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70332         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70333
70334 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70337         HP's ANSI C compiler.
70338         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70339         Declaring int functions causes warnings on some modern systems and
70340         shouldn't be needed to compile on ancient ones.
70341         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70342         defined.
70343
70344         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70345         with the following changes.
70346         (__set_errno): Parenthesize properly.
70347         Include <stdbool.h>.
70348         (MIN, MAX, MATCHING_INO): New macros.
70349         (__getcwd): Define with prototype, not K&R form.
70350         Use heuristics to allocate default buffer on stack if possible.
70351         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70352         behavior, and to avoid the PATH_MAX limit when computing
70353         ../../../../...
70354         Use MATCHING_INO to compare inode number to file.
70355         Check for arithmetic overflow in size calculations.
70356         Fix bug in reallocation of dot array that caused getcwd to fail
70357         on directories nested deeper than 75.
70358         Be more careful about saving errno on error.
70359         Do not use realloc; use only free+malloc, as this is a bit
70360         more flexible and avoids a needless copy operation.
70361         Do not inspect st_dev and st_ino for symbolic links; POSIX
70362         doesn't specify the latter.
70363         Check for closedir errors.
70364         Avoid needless casts.
70365         Use "#ifdef weak_alias" around weak_alias, to be like other
70366         glibc code.
70367         The following changes to getcwd.c have effect only when used in
70368         gnulib; they have no effect inside glibc proper.
70369         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70370         as alloca isn't used.
70371         (alloca, __alloca): Likewise.
70372         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70373         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70374         unconditionally, as gnulib assumes C89 or better.
70375         Do not include <sys/param.h>.
70376         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70377         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70378         better.
70379         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70380         Include <dirent.h> in a way that is compatible with modern Autoconf.
70381         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70382         New macros, if not already defined.
70383         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70384         Use "_LIBC", not "defined _LIBC", for consistency.
70385         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70386         a mempcpy module.
70387         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70388         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70389         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70390         credit only to Jim Meyering and adjust the copyright dates.
70391         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70392         <stdlib.h>, <unistd.h>, "pathmax.h".
70393         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70394         (INITIAL_BUFFER_SIZE): Remove.
70395         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70396
70397 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70400         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70401         Use the _ONCE methods, for efficiency.
70402         Check for fcntl.h.  In test program, include <errno.h>
70403         and <fcntl.h> if available.  Remove old K&R cruft from
70404         test program.  Check for common errors in GNU/Linux,
70405         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70406         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70407         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70408         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70409         name accordingly.
70410         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70411         accommodate new getcwd.c.
70412         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70413         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70414         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70415         that's all we need now.
70416
70417 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70418
70419         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70420         argp-parse.c depends on getopt internals, that means we should
70421         always use our getopt, to be on the safe side.
70422         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70423         order not to spoil the result of an eventual previous invocation
70424         of gl_GETOPT_SUBSTITUTE.
70425
70426 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70427
70428         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70429         redefinition warnings. To avoid them, include the defines
70430         in `#if !defined __need_getopt ... #endif'. The only place
70431         where __getopt_argv_const is used is in definitions
70432         of getopt_long and getopt_long_only below, which are as well
70433         protected by `#ifndef __need_getopt'.
70434         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70435         __need_getopt after including <stdio.h> and <unistd.h> These
70436         headers might have defined it.
70437
70438 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70441
70442 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70445         (futimens): New function, which uses futimes if available.
70446         (futimens, utimens): Support timespec==NULL, with same semantics
70447         as utime and utimens.
70448         * lib/utimens.h (futimens): New decl.
70449
70450 2004-11-23  Jim Meyering  <jim@meyering.net>
70451
70452         * lib/getopt_.h: Remove trailing blanks.
70453
70454 2004-11-23  Jim Meyering  <jim@meyering.net>
70455
70456         * lib/__fpending.c: Add comment.
70457
70458 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * modules/canonicalize (Depends-on): Add xreadlink.
70461         Problem reported by James Youngman.
70462
70463 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70466         New macros.
70467         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70468         optopt): Use them instead of invoking ## directly; otherwise, the
70469         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70470
70471 2004-11-19  Bruno Haible  <bruno@clisp.org>
70472
70473         * lib/strtok_r.c: Move comments from here...
70474         * lib/strtok_r.h: ... to here.
70475
70476 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70479         implementations that mishandle size_t overflow.
70480
70481 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70484         might fail.  Problem reported by Yoann Vandoorselaere.
70485         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70486         implementations that mishandle size_t overflow.
70487
70488 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * modules/canon-host (Depends-on): Add strdup.
70491
70492 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70495
70496 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         * lib/canon-host.c: Include "strdup.h".
70499         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70500         Use strdup instead of malloc/strcpy to duplicate strings.
70501
70502         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70503         (human_space_before_unit): New constant.
70504         * lib/human.c (human_readable): Support it.
70505
70506         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70507         (xgetcwd): Set errno correctly when failing.
70508         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70509         the failure is actually due to a PATH_MAX problem.
70510
70511         Further getopt changes to make it more likely that glibc will
70512         buy the changes back.
70513         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70514         (getopt): Use it, so to preserve glibc semantic
70515         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70516         when compiling for libc.
70517         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70518         (getopt_long, getopt_long_only): Use it.
70519
70520         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70521         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70522         (getopt): Argv is now char * const *, as per standard.
70523         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70524         not char *__getopt_argv_const *.
70525         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70526         _getopt_long_only_r): Likewise.
70527         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70528         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70529         _getopt_long_r, _getopt_long_only_r): Likewise.
70530         * lib/getopt_.h (__getopt_argv_const): Remove.
70531         (getopt): Argv is now char * const *, as per standard.
70532
70533         * lib/getdate.y (tORDINAL): New token.
70534         (day, relunit): Allow it for relative times.
70535         (relative_time_table): Use tORDINAL for ordinals.
70536
70537 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70540         Document that "second" isn't allowed as an ordinal number.
70541
70542 2004-11-16  Jim Meyering  <jim@meyering.net>
70543
70544         * modules/closeout (Depends-on): Add fpending.
70545
70546 2004-11-15  Jim Meyering  <jim@meyering.net>
70547
70548         * lib/closeout.c: Include "__fpending.h" once again.
70549         Include <stdbool.h>.
70550         (close_stdout): Don't fail just because stdout was closed initially,
70551         since some programs don't write to stdout in the normal course of
70552         operation (other than --version and --help), and we don't want this
70553         function to make e.g. `touch file >&-' fail.
70554         But do fail if it was closed and someone has tried to write to it.
70555         E.g., `printf foo >&-' must fail.
70556
70557 2004-11-13  Jim Meyering  <jim@meyering.net>
70558
70559         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70560
70561 2004-11-12  Simon Josefsson  <jas@extundo.com>
70562
70563         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70564         small doc fix is still pending.
70565
70566 2004-11-11  Simon Josefsson  <jas@extundo.com>
70567
70568         * modules/strtok_r: New file.
70569
70570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70571         strtok_r.
70572
70573 2004-11-11  Simon Josefsson  <jas@extundo.com>
70574
70575         * m4/strtok_r.m4: New file.
70576
70577         * m4/getopt.m4: Replace opterr.
70578
70579 2004-11-11  Simon Josefsson  <jas@extundo.com>
70580
70581         * lib/strtok_r.h, strtok_r.c: New file.
70582
70583 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70584
70585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70586         of replacing opterr, getopt, etc.  This should handle the
70587         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70588
70589 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70592         we can stop lying to compilers about the constness of argv when we
70593         are compiled outside glibc.
70594         (getopt, getopt_long, getopt_long_only): Use it.
70595         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70596         _getopt_internal, getopt): Likewise.
70597         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70598         _getopt_long_only_r): Likewise.
70599         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70600         _getopt_long_r, _getopt_long_only_r): Likewise.
70601
70602         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70603         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70604         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70605         the other external symbols.
70606         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70607         declaration, since the above renaming now works around collisions.
70608
70609 2004-11-11  Jim Meyering  <jim@meyering.net>
70610
70611         * lib/linebreak.c: Remove trailing blanks.
70612         * lib/alloca_.h: Likewise.
70613         * lib/acosl.c: Likewise.
70614         * lib/euidaccess.c: Likewise.
70615         * lib/allocsa.h: Likewise.
70616
70617 2004-11-10  Simon Josefsson  <jas@extundo.com>
70618
70619         * m4/getaddrinfo.m4: New file.
70620
70621 2004-11-10  Simon Josefsson  <jas@extundo.com>
70622
70623         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70624
70625 2004-11-10  Simon Josefsson  <jas@extundo.com>
70626
70627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70628         getaddrinfo.
70629
70630         * modules/getaddrinfo: New file.
70631
70632 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70635
70636 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         * lib/mktime.c (SHR): New macro, which is a portable
70639         substitute for >> that should work even on Crays.
70640         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70641         Problem reported by Mark D. Baushke in
70642         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70643         * lib/getdate.y (SHR): Likewise.
70644         (tm_diff): Use it.
70645         * lib/strftime.c (SHR): Likewise.
70646         (tm_diff): Use it.
70647         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70648         quote_these_too, so that right shifts are well defined.  All uses
70649         changed.
70650
70651 2004-11-10  Jim Meyering  <jim@meyering.net>
70652
70653         Ensure that no close failure goes unreported.
70654         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70655         return early when it seems there's nothing to flush.
70656         Don't include __fpending.h.
70657
70658 2004-11-10  Jim Meyering  <jim@meyering.net>
70659
70660         * modules/closeout (Depends-on): Remove fpending.
70661
70662 2004-11-10  Jim Meyering  <jim@meyering.net>
70663
70664         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70665
70666 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70669         gl_FUNC_STRFTIME.
70670         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70671         and AC_REQUIRE when possible, to avoid duplicate checks.
70672         Check for <wchar.h>.
70673
70674 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70677
70678 2004-11-09  Bruno Haible  <bruno@clisp.org>
70679
70680         * m4/sockpfaf.m4: New file.
70681
70682 2004-11-05  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70685         Reported by Mark D. Baushke <mdb@cvshome.org>.
70686
70687 2004-11-04  Bruno Haible  <bruno@clisp.org>
70688
70689         2004-09-11  Bruno Haible  <bruno@clisp.org>
70690                 * allocsa.valgrind: New file.
70691         2004-02-06  Bruno Haible  <bruno@clisp.org>
70692                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70693                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70694                 Reported by Christopher Seip <chris.seip@hp.com>.
70695
70696 2004-11-04  Bruno Haible  <bruno@clisp.org>
70697
70698         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70699         (Makefile.am): Distribute it.
70700
70701 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70704         with errno == ERANGE if the buffer is too small.
70705         Problem reported by Mark D. Baushke.
70706
70707 2004-11-03  Albert Chin  <china@thewrittenword.com>
70708             Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70711         equivalent, substitute $ac_type for equivalent type rather than
70712         blindly using uint32_t *always* which won't work if uint32_t is not
70713         available.  Define _UINT32_T to work around typedef of uint32_t if
70714         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70715         2.5.1.
70716
70717 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * m4/jm-macros.m4: Sync from coreutils.
70720         (gl_MACROS): Check for mbrlen, for pathchk.
70721         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70722
70723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * lib/xreadlink.c (MAXSIZE): New macro.
70726         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70727         size does not exceed MAXSIZE.  Avoid cast.
70728         As suggested by Mark D. Baushke in
70729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70730         if readlink fails with buffer size just under MAXSIZE, try again
70731         with MAXSIZE.
70732
70733 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70736
70737 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70738         and  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70741         (get_date): Overparenthesize to avoid GCC warning.
70742
70743 2004-11-02  Bruno Haible  <bruno@clisp.org>
70744
70745         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70746         returns void.
70747
70748 2004-11-02  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70751         function returns void.
70752
70753 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70756         fflush_unlocked, flockfile, funlockfile, funlockfile,
70757         fputs_unlocked, putc_unlocked.
70758
70759 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70762         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70763         already declared.
70764
70765 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * modules/getdate (Files): Add doc/getdate.texi.
70768         (Depends-on): Add setenv, xalloc.
70769
70770 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * lib/getdate.y: Add support for TZ="foo" within a date string.
70773         Fix some bugs near time_t boundaries.  Reject dates with
70774         out-of-range components, e.g., "Sept 31".
70775         Include <stdlib.h>, "setenv.h", "xalloc.h".
70776         (ISDIGIT_LOCALE): Remove; unused.
70777         Note that the TZ and time functions used here are not reentrant.
70778         (mktime_ok, get_tz): New functions.
70779         (TZBUFSIZE): New constant.
70780         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70781         This requires that we sometimes generate our own TZ="XXX..." setting.
70782
70783 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         * doc/getdate.texi: New file, from coreutils with modifications for
70786         the new TZ parsing.
70787
70788 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70789
70790         * lib/mktime.c (not_equal_tm): Remove redundant check.
70791
70792 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * modules/regex (lib_SOURCES): Add regex.c.
70795         Reported by James Youngman in
70796         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70797
70798 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         * lib/getdate.y: Use Bison 1.875 features, and some minor
70801         code cleanups.  This change does not affect semantics.
70802         Don't include <stdlib.h>; no longer needed.
70803         Don't include unlocked-io.h; only the "#if TEST" code uses
70804         stdio, and performance isn't crucial there.
70805         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70806         Bison 1.875 features as described below.
70807         All uses of "PC." replaced by "pc->".
70808         (YYSTYPE): Add a forward declaration.
70809         (yylex, yyerror): Use full prototypes in forward decls.
70810         Use "%pure-parser" rather than obsolescent "%pure_parser".
70811         Use %parse-param and %lex-param instead of obsolescent
70812         YYPARSE_PARAM and YYLEX_PARAM.
70813         (meridian_table, month_and_day_table, time_units_table,
70814         relative_time_table, time_zone_table, military_table,
70815         lookup_zone, lookup_word, get_date):
70816         Use NULL instead of 0 where appropriate.
70817         (to_hour): Avoid abort (), to avoid a dependency on
70818         stdlib.h.
70819         (yyerror, yylex): Now accepts parser_control * arg.
70820         (main) [TEST]: Use '\0' rather than 0 for char.
70821
70822 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70823
70824         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70825
70826 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70829         It's now the caller's responsibility to handle the case where
70830         !HAVE_GETPAGESIZE && !defined getpagesize.
70831
70832         * lib/mktime.c (leapyear): Arg is long int, not int.
70833
70834 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70837
70838 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70841         missing.  Problem reported by James Youngman.
70842
70843 2004-10-16  Simon Josefsson  <jas@extundo.com>
70844
70845         * gnulib-tool: Fix comments.  Fix parse problem.
70846         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70847
70848 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70851         implementation of getopt_long.  Problem reported by Alexander Taler in:
70852         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70853
70854 2004-10-15  Bruno Haible  <bruno@clisp.org>
70855
70856         * gnulib-tool: Untabify. Initialize supplied_libname.
70857         (func_usage): More homogenous output.
70858         (func_modules_transitive_closure, func_modules_to_filelist,
70859         func_emit_lib_Makefile_am): New functions.
70860         (func_import): New function, extracted from big case statement. Use
70861         func_get_license, func_modules_transitive_closure,
70862         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70863         opt_lgpl. Don't use test -a, as it's not portable.
70864         (func_create_testdir): Use func_modules_transitive_closure,
70865         func_modules_to_filelist, func_emit_lib_Makefile_am.
70866
70867 2004-10-15  Bruno Haible  <bruno@clisp.org>
70868
70869         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70870
70871 2004-10-15  Bruno Haible  <bruno@clisp.org>
70872
70873         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70874         the portions belonging to each module.
70875         Suggested by Derek Robert Price <derek@ximbiot.com>.
70876
70877 2004-10-12  Simon Josefsson  <jas@extundo.com>
70878
70879         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70880         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70881         to real functions.
70882
70883 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70884
70885         * modules/vsnprintf: New file.
70886
70887 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70888
70889         * m4/vsnprintf.m4: New file.
70890
70891 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70892
70893         * lib/vsnprintf.h: New file.
70894         * lib/vsnprintf.c: New file.
70895
70896 2004-10-11  Bruno Haible  <bruno@clisp.org>
70897
70898         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70899         vsnprintf.
70900
70901 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70902
70903         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70904
70905 2004-10-07  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70908         fits into the provided buffer.
70909
70910 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         * lib/diacrit.c, diacrit.h: Add GPL notice.
70913
70914         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70915         notice.
70916         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70917         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70918         This avoids a potential constant-folding bug.
70919
70920 2004-10-05  Bruno Haible  <bruno@clisp.org>
70921
70922         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70923         for the declaration of strsep.
70924
70925 2004-10-05  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70928
70929 2004-10-04  Simon Josefsson  <jas@extundo.com>
70930
70931         * modules/memmem: New file.
70932         * tests/test-memmem.c: New file.
70933         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70934
70935 2004-10-04  Simon Josefsson  <jas@extundo.com>
70936
70937         * m4/memmem.m4: New file.
70938
70939 2004-10-04  Simon Josefsson  <jas@extundo.com>
70940
70941         * lib/memmem.h: New file.
70942         * lib/memmem.c: New file, taken from glibc.
70943
70944 2004-10-04  Simon Josefsson  <jas@extundo.com>
70945
70946         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70947         '#ifdef USE_UNLOCKED_IO'.
70948
70949 2004-10-04  Simon Josefsson  <jas@extundo.com>
70950
70951         * config/srclist.txt: Add memmem from glibc.
70952
70953 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70956
70957         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70958         modules/exclude, modules/getdate, modules/getline,
70959         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70960         modules/getusershell, modules/linebuffer, modules/md5,
70961         modules/mountlist, modules/posixtm, modules/readtokens,
70962         modules/readutmp, modules/regex, modules/sha1,
70963         modules/version-etc, modules/yesno:
70964         Remove dependency on unlocked-io.
70965
70966 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70969
70970         * m4/unlocked-io.m4: Add copyright notice.
70971         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70972
70973 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70974
70975         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70976         * lib/xmalloc.c (xmemdup): Likewise.
70977         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70978         XFREE): Remove these long-obsolescent macros.
70979         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70980         * lib/xstrdup.c: Remove.
70981
70982         * lib/regex.c (re_comp): Cast gettext return value to char *,
70983         Problem reported by Martin Neitzel via Mark D. Baushke.
70984
70985 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70988         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70989         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70990         regex.c, sha1.c, version-etc.c, yesno.c:
70991         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70992         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70993         the includer's responsibility.
70994
70995         Sync from coreutils.
70996
70997         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70998         points to the start of a string, as the C Standard says the
70999         resulting behavior is undefined.
71000
71001         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71002         simple -> simple_backups, numbered_existing ->
71003         numbered_existing_backups, numbered -> numbered_backups
71004         to avoid shadowing problems.  All uses changed.
71005         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71006         * lib/backupfile.c (check_extension, numbered_backup):
71007         Rename locals to avoid shadowing 'basename'.
71008         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71009         once.
71010
71011         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71012         * lib/.cvsignore: Add getopt.h.
71013
71014 2004-10-04  Bruno Haible  <bruno@clisp.org>
71015
71016         * modules/README: New file.
71017         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71018         not a module.
71019
71020 2004-10-02  Jim Meyering  <jim@meyering.net>
71021
71022         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71023
71024 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71025
71026         * modules/strsep: New file.
71027
71028 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71029
71030         * m4/strsep.m4: New file.
71031
71032 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71033
71034         * lib/strsep.h: New file.
71035         * lib/strsep.c: New file.
71036
71037 2004-10-01  Simon Josefsson  <jas@extundo.com>
71038
71039         * lib/snprintf.c (snprintf): Handle size==0.
71040
71041 2004-10-01  Simon Josefsson  <jas@extundo.com>
71042             Bruno Haible  <bruno@clisp.org>
71043
71044         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71045         (snprintf): Declare 'args'.
71046
71047 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
71048
71049         * lib/snprintf.c: Remove comments as to why each header is needed.
71050
71051 2004-10-01  Bruno Haible  <bruno@clisp.org>
71052
71053         * MODULES.html.sh: Add strsep.
71054
71055 2004-09-30  Simon Josefsson  <jas@extundo.com>
71056
71057         * modules/snprintf: New file.
71058
71059 2004-09-30  Simon Josefsson  <jas@extundo.com>
71060
71061         * m4/snprintf.m4: New file.
71062
71063 2004-09-30  Simon Josefsson  <jas@extundo.com>
71064
71065         * lib/snprintf.h, lib/snprintf.c: New files.
71066
71067 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71068
71069         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71070         (hol_entry_help): Never translate an empty string.
71071         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71072         * lib/argp.h (OPTION_NO_TRANS): New option.
71073
71074 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * modules/argp (Maintainer): Replace Simon Josefsson
71077         by Sergey Poznyakoff.
71078
71079 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71082         changes merged back into glibc.
71083
71084 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71087
71088 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71089
71090         * lib/xvasprintf.c: Include xalloc.h.
71091         (xvasprintf): Use xalloc_die, not xmalloc_die.
71092
71093 2004-09-29  Bruno Haible  <bruno@clisp.org>
71094
71095         * modules/alloca-opt: New file, derived from modules/alloca.
71096         * modules/allocsa: Depend on alloca-opt instead of alloca.
71097         * modules/setenv: Likewise.
71098         * modules/vasnprintf: Likewise.
71099         * MODULES.html.sh: Add alloca-opt.
71100
71101 2004-09-28  Simon Josefsson  <jas@extundo.com>
71102
71103         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71104         LGPL, and to replace license template from GPL to LGPL.
71105
71106 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71107
71108         * modules/dummy: Change license to LGPL.
71109
71110 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71111
71112         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71113
71114 2004-09-24  Simon Josefsson  <jas@extundo.com>
71115
71116         * modules/minmax (License): Change from GPL to LGPL.
71117
71118 2004-09-23  Simon Josefsson  <jas@extundo.com>
71119
71120         * gnulib-tool (--import): Typo.
71121
71122 2004-09-23  Simon Josefsson  <jas@extundo.com>
71123
71124         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71125
71126 2004-09-22  Bruno Haible  <bruno@clisp.org>
71127
71128         * modules/*: Add 'License' field.
71129         * gnulib-tool: Accept --extract-license option.
71130         (func_get_license): New function.
71131
71132 2004-09-21  Bruno Haible  <bruno@clisp.org>
71133
71134         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71135         Reported by Simon Josefsson.
71136
71137 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71140         gl_AC_TYPE_LONG_LONG.
71141
71142 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71145
71146 2004-09-18  Simon Josefsson  <jas@extundo.com>
71147         and  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71150         calls with autoreconf.  Define GL_LIB.
71151
71152 2004-09-14  Karl Berry  <karl@gnu.org>
71153
71154         * config/srclist.txt: unsync setenv.c, sigh.
71155
71156 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71159         Problem reported by Bruno Haible in:
71160         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71161
71162 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * config/srclist.txt: Comment out argp-pvh.c.
71165
71166 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71169         in case some system header has #define'd it.  Problem reported by
71170         Soeren D. Schulze in
71171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71172
71173 2004-09-09  Karl Berry  <karl@gnu.org>
71174
71175         * regex.[ch]: delete from the root.  These were supposed to be
71176                 synced with emacs cvs, but this has not happened for about
71177                 a year, and anyway nothing else uses emacs regex.[ch].
71178                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71179                 lib/regex[.ch] is untouched.
71180
71181 2004-09-09  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71184
71185 2004-09-09  Bruno Haible  <bruno@clisp.org>
71186
71187         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71188         modifications.
71189         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71190
71191 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71192
71193         * modules/xvasprintf: New file.
71194         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71195
71196 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71197
71198         * lib/xvasprintf.h: New file.
71199         * lib/xvasprintf.c: New file.
71200         * lib/xasprintf.c: New file.
71201
71202 2004-09-08  Bruno Haible  <bruno@clisp.org>
71203
71204         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71205
71206 2004-09-08  Bruno Haible  <bruno@clisp.org>
71207
71208         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71209         length is > INT_MAX.
71210         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71211         more.
71212
71213 2004-09-08  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/stdint_.h: New file, taken from GNU clisp.
71216
71217 2004-09-08  Bruno Haible  <bruno@clisp.org>
71218             Oskar Liljeblad  <oskar@osk.mine.nu>
71219
71220         * modules/stdint: New file.
71221         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71222
71223 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         Import from coreutils.
71226         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71227         strings on unbounded length.  alloca's performance benefits aren't
71228         that important here.
71229         (V_STRDUP): Remove.
71230         (parse_with_separator): New function, with most of the internals
71231         of the old parse_user_spec.  Allow user to omit both user and group,
71232         for compatibility with FreeBSD.
71233         Clone only the user name, not the entire spec.
71234         Do not set *uid, *gid unless entirely successful.
71235         Avoid memory leak in some failing cases.
71236         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71237         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71238         (parse_user_spec): Rewrite to use parse_with_separator.
71239
71240 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * modules/userspec: Don't depend on alloca.
71243
71244 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71247
71248 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71249
71250         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71251         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71252         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71253
71254 2004-08-16  Simon Josefsson  <jas@extundo.com>
71255
71256         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71257         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71258         Add --dry-run for --import.
71259         Let user provided command line parameters override configure.ac
71260         settings.
71261
71262 2004-08-12  Simon Josefsson  <jas@extundo.com>
71263
71264         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71265         as discussed with Paul Eggert in threads rooted at
71266         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71267         and
71268         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71269         Before, the test was empty, and relied on ELIDE_CODE in source
71270         code.)
71271         (gl_PREREQ_GETOPT): New macro.
71272         (gl_GETOPT): Use them.
71273
71274 2004-08-12  Simon Josefsson  <jas@extundo.com>
71275
71276         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71277         * lib/getopt_.h: Renamed from getopt.h.
71278
71279 2004-08-12  Simon Josefsson  <jas@extundo.com>
71280
71281         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71282         Change default library name from libfoo to libgnu.
71283         Now, if you have a configure.ac that says:
71284                 gl_SOURCE_BASE(gl)
71285                 gl_M4_BASE(gl/m4)
71286                 gl_MODULES(error getopt etcetera)
71287                 gl_INIT
71288         you can import all you need by running:
71289                 ../gnulib/gnulib-tool --import
71290
71291         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71292         (Makefile.am): Rewrite, use logic from argz.
71293         (Include): Use <getopt.h> instead of "getopt.h".
71294
71295 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * modules/argp (Files): Add m4/unlocked-io.m4.
71298         (Depends-on): Add extensions.
71299
71300 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71303         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71304         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71305         Check for program_invocation_name, program_invocation_short_name,
71306         flockfile, funlockfile, features.h, _getopt_long_only_r.
71307
71308 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71311         its complicated substitute.
71312         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71313         and program_invocation_name.
71314         (__argp_basename) [!_LIBC]: Remove; the only use was
71315         replaced by its body.
71316         (__argp_short_program_name): Change condition from
71317         !defined __argp_short_program_name to
71318         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71319         to match argp-namefrob.h.
71320         (__argp_failure): Don't assume strerror_r returns char *.
71321         * lib/argp-parse.c (N_): Define unconditionally.
71322         (argp_default_options): Fill out initializers with 0 to avoid
71323         gcc warnings.
71324
71325 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71328         getopt1.c.
71329
71330 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         Merge from coreutils.
71333
71334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71335
71336         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71337         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71338
71339 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71340
71341         Merge from coreutils.
71342
71343         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71344         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71345         for Reliant Unix 5.43.
71346
71347         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71348         (union fooround): Use uintmax_t, not long int.
71349         The rest is a merge from libc:
71350         [defined _LIBC]: Include <shlib-compat.h>.
71351         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71352
71353         * lib/settime.c (settime): Recode to avoid warning with
71354         Sun Forte C 6U2.
71355
71356         * lib/strverscmp.c: Convert to UTF-8.
71357
71358 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71359
71360         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71361         m4/uintmax_t.m4.
71362
71363 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * modules/xalloc-die: New file.
71366         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71367
71368         * modules/md5 (Files): Add m4/uint32_t.m4.
71369         * modules/sha1: Renamed from modules/sha.
71370         (Files):
71371         Rename lib/sha.h to lib/sha1.h.
71372         Rename lib/sha.c to lib/sha1.c.
71373         Rename m4/sha.m4 to m4/sha1.m4.
71374         (lib_SOURCES): Likewise.
71375         (configure.ac): Rename gl_SHA to gl_SHA1.
71376         (Include): sha.h -> sha1.h.
71377
71378 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71381         * m4/sha1.m4: Renamed from sha.m4.
71382         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71383
71384 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * lib/obstack.h (obstack_empty_p):
71387         Don't assume that chunk->contents is suitably aligned.
71388         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71389         Likewise. Problem reported by Benno in
71390         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71391
71392         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71393         readable.  This could be improved further but it'd take some work.
71394
71395 2004-08-08  Simon Josefsson  <jas@extundo.com>
71396
71397         * modules/xgethostname (Depends-on): Remove exit and error (not
71398         used).
71399
71400         * modules/getpass-gnu: Add getpass.h.
71401         (Depends-on): Add stdbool.
71402         * modules/getpass: Add getpass.h.
71403
71404 2004-08-08  Simon Josefsson  <jas@extundo.com>
71405
71406         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71407         Check getpass declaration.
71408
71409 2004-08-08  Simon Josefsson  <jas@extundo.com>
71410
71411         * lib/xgethostname.c: Don't include error.h (not used).
71412
71413         * lib/getpass.h: Add.
71414         * lib/getpass.c: Include getpass.h first.
71415
71416 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * lib/xalloc-die.c: New file.
71419         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71420         All uses removed.
71421         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71422         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71423         xalloc-die.c.
71424         (_, N_, xalloc_die): Move to xalloc-die.c.
71425         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71426         so that we needn't mess with xalloc_msg_memory_exhausted.
71427
71428         * lib/sha1.h: Renamed from sha.h.
71429         (SHA1_H): Renamed from _SHA_H.
71430         (sha1_ctx): Renamed from sha_ctx.
71431         (sha1_init_ctx): Renamed from sha_init_ctx.
71432         (sha1_process_block): Renamed from sha_process_block.
71433         (sha1_process_bytes): Renamed from sha_process_bytes.
71434         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71435         (sha1_read_ctx): Renamed from sha_read_ctx.
71436         (sha1_stream): Renamed from sha_stream.
71437         (sha1_buffer): Renamed from sha_buffer.
71438         * lib/sha1.c: Likewise; renamed from sha.c.
71439         Do not include <sys/types.h>.
71440         Include <stddef.h> rather than <stdlib.h>.
71441
71442 2004-08-08  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71445         FILESYSTEM_PREFIX_LEN.
71446         * lib/progreloc.c: Likewise.
71447         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71448
71449 2004-08-06  Simon Josefsson  <jas@extundo.com>
71450
71451         * modules/progname (Depends-on): Don't depend on stdbool.
71452
71453 2004-08-06  Simon Josefsson  <jas@extundo.com>
71454
71455         * modules/getsubopt: New file.
71456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71457         getsubopt.
71458
71459 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         More merge from coreutils.
71462
71463         * m4/utimens.m4, m4/utimecmp.m4: New files.
71464         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71465         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71466         prereq.m4, sha.m4: Import changes from coreutils.
71467
71468 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         More merge from coreutils.
71471         * modules/raise, modules/readtokens0, modules/utimens:
71472         * modules/utimecmp, module/xnanosleep: New files.
71473         * modules/strftime: Add lib/strftime.h.
71474         Change include from <time.h> to "strftime.h".
71475         * modules/yesno: Add lib/yesno.h.
71476         * modules/backupfile: Remove lib/addext.c.
71477         * modules/euidaccess: Add stat-macros.h.
71478         * modules/canonicalize, modules/euidaccess,
71479         modules/filemode, modules/lchown, modules/makepath,
71480         modules/rmdir, modules/stat: Likewise.
71481
71482 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         Merge from tar.
71485         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71486         SIZE_MAX is a valid preprocessor constant.
71487         (__argp_basename): Change from "#ifndef _LIBC"
71488         to "#ifndef __argp_short_program_name", so that
71489         we don't compile these functions for tar.
71490
71491         More merges from coreutils.
71492         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71493         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71494         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71495         * lib/addext.c: Remove; no longer needed.
71496         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71497         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71498         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71499         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71500         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71501         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71502         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71503         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71504         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71505         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71506         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71507         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71508         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71509         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71510         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71511         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71512         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71513         Import changes from coreutils.
71514
71515 2004-08-05  Simon Josefsson  <jas@extundo.com>
71516
71517         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71518
71519 2004-08-05  Simon Josefsson  <jas@extundo.com>
71520
71521         * m4/getsubopt.m4: New file.
71522
71523 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         Merge from coreutils.
71526
71527         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71528         * m4/getcwd-path-max.m4: New files.
71529
71530         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71531         FILESYSTEM_PREFIX_LEN ->
71532         FILE_SYSTEM_PREFIX_LEN.
71533         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71534         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71535         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71536         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71537
71538         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71539         prerequisite modules now handle the DOS stuff.
71540         Don't check for unistd.h.
71541
71542 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         Merge from coreutils.
71545
71546         * lib/.gdb-history: Remove; this doesn't belong here.
71547
71548         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71549         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71550         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71551         * lib/getcwd.c: New files.
71552
71553         * lib/dirname.h: Include <stdbool.h>.
71554         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71555         for consistency with POSIX terminology.  All uses changed.
71556         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71557         (strip_trailing_slashes): Use bool for booleans.
71558         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71559
71560         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71561         sometimes returns a positive errno value even when it succeeds.
71562         (print_errno_message) [!LIBC]: Fall back on strerror if
71563         __strerror_r fails.
71564
71565         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71566         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71567         (longest_relative_suffix): New function.
71568         (path_concat): Use it.  Assume first argument is not NULL.
71569         Port to DOS.  Omit redundant separators.
71570         Report an error instead of returning NULL.
71571         Use mempcpy instead of memcpy.
71572         (xpath_concat): Remove: not declared or used.
71573
71574         * lib/same.h: Include <stdbool.h>
71575         (same_name): Return bool, not int.
71576         * lib/same.c (same_name): Likewise.
71577         (errno): Don't declare; we assume C89 or better now.
71578
71579         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71580         if not already defined.
71581
71582         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71583         * lib/dup-safer.c (errno): Likewise.
71584
71585 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71586
71587         Merge from coreutils.
71588         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71589         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71590         * modules/path-concat: Don't depend on strdup.
71591
71592 2004-08-03  Simon Josefsson  <jas@extundo.com>
71593
71594         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71595         * lib/progname.h: Don't include stdbool.h.
71596
71597 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71600         * MODULES.html.sh (func_all_modules): Remove fatal.
71601
71602 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71605
71606 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71607
71608         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71609         working.
71610
71611 2004-08-02  Simon Josefsson  <jas@extundo.com>
71612
71613         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71614         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71615         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71616
71617 2004-08-01  Simon Josefsson  <jas@extundo.com>
71618
71619         * lib/xgetdomainname.c: Include stdlib.h, for free().
71620
71621 2004-07-19  Bruno Haible  <bruno@clisp.org>
71622
71623         * MODULES.html.sh (func_all_modules): Add dummy.
71624
71625 2004-07-16  Simon Josefsson  <jas@extundo.com>
71626
71627         * modules/dummy: New file.
71628
71629 2004-07-16  Simon Josefsson  <jas@extundo.com>
71630
71631         * lib/dummy.c: New file.
71632
71633 2004-07-16  Bruno Haible  <bruno@clisp.org>
71634
71635         * lib/backupfile.h: Add extern "C" for C++.
71636         * lib/closeout.h: Likewise.
71637         * lib/copy-file.h: Likewise.
71638         * lib/findprog.h: Likewise.
71639         * lib/full-write.h: Likewise.
71640         * lib/pathname.h: Likewise.
71641         * lib/progname.h: Likewise.
71642         * lib/stpcpy.h: Likewise.
71643         * lib/stpncpy.h: Likewise.
71644         * lib/strcase.h: Likewise.
71645         * lib/strstr.h: Likewise.
71646         * lib/xalloc.h: Likewise.
71647
71648         * lib/mbswidth.h: Add extern "C" for C++.
71649         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71650
71651 2004-07-13  Robert Millan  <robertmh@gnu.org>
71652
71653         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71654
71655 2004-07-09  Simon Josefsson  <jas@extundo.com>
71656
71657         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71658         failed without this.)
71659
71660 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * modules/chown (Files): Add lib/fchown-stub.c, since
71663         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71664
71665 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * lib/fchown-stub.c: New file.
71668
71669 2004-06-24  Jim Meyering  <jim@meyering.net>
71670
71671         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71672
71673 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * modules/argz: Omit "#include".
71676
71677         * MODULES.html.sh (func_all_modules): Add calloc, to match
71678         2004-06-01 addition of calloc module.
71679
71680 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * m4/argz.m4: New file, which is autoupdated from libtool.
71683
71684 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71687         libtool.
71688
71689 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * config/srclist-update: Don't insist on "USA." before the
71692         close-comment, as libtool omits the period and puts the */ on a
71693         separate line.
71694         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71695         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71696
71697 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71698
71699         * modules/argz: New file.
71700         * MODULES.html.sh (func_all_modules): Add argz.
71701
71702 2004-06-12  Jim Meyering  <jim@meyering.net>
71703         and  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * modules/hash (Files): Add lib/xalloc.h.
71706         * modules/pipe (Depends-on): Add wait-process.
71707         * modules/stat (Depends-on): Add xalloc.
71708         * modules/userspec (Files): Add lib/userspec.h.
71709         * modules/xstrto
71710
71711         Upgrade from gettext-0.13.
71712         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71713         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71714         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71715
71716 2004-06-10  Jim Meyering  <jim@meyering.net>
71717
71718         * lib/calloc.c: New file.
71719
71720 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * lib/getdate.y (yylex): Allow space between sign and number.
71723         Problem reported by Dan Jacobson.
71724
71725 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         Merge from coreutils CVS.
71728
71729         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71730         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71731         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71732         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71733         xstrtol.m4: Fix copyright date and/or serial number.
71734
71735         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71736         See if we need an fchown replacement.
71737         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71738         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71739         and use the replacement function if we detect either defect.
71740
71741         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71742         gl_UTIMECMP.
71743
71744 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71745         and  Jim Meyering  <jim@meyering.net>
71746
71747         Merge from coreutils CVS.
71748
71749         * lib/stat-macros.h: New file, with contents from file-type.h
71750         and coreutils' system.h.
71751         * lib/file-type.c: Include "stat-macros.h".
71752         * lib/file-type.h (file_type): Move all macro definitions to new file,
71753         stat-macros.h.
71754
71755         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71756         Wrap old code with this conditional.
71757         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71758         function that does not dereference symlinks.
71759         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71760
71761         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71762         dependency problems.
71763         (xreadlink): Accept new arg SIZE, for efficiency.
71764         All decls and uses changed.
71765         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71766
71767         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71768         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71769
71770         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71771         sysexits.h.
71772
71773 2004-06-01  Jim Meyering  <jim@meyering.net>
71774
71775         * m4/calloc.m4: New file.
71776
71777 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71778
71779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71780         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71781         Also, fix a typo in a diagnostic.
71782
71783 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71786         or AC_FUNC_REALLOC.
71787
71788 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71791         macros to be defined.
71792         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71793         the allocator returns NULL because the requested size is zero.
71794
71795 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71798         var.  Add comment explaining why libc still defines it.  This
71799         merges the following patch from glibc:
71800         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71801
71802 2004-05-20  Andreas Schwab  <schwab@suse.de>
71803
71804         * m4/free.m4: Replace free if it not known to work, not the other
71805         way round.
71806
71807 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71810         present in glibc since revision 1.1 of this file.
71811         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71812         obstack_alignment_mask, obstack_alloc, obstack_base,
71813         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71814         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71815         obstack_grow0, obstack_init, obstack_int_grow,
71816         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71817         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71818         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71819         nonexistent functions.
71820
71821 2004-05-18  Karl Berry  <karl@gnu.org>
71822
71823         * config/srclist.txt: break link for vasnprintf.c.
71824
71825 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         Port obstack to the AS/400, where pointers are 16 bytes wide and
71828         you cannot cast an integer to a valid pointer.  This patch is
71829         currently waiting to be integrated into glibc; see
71830         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71831
71832         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71833         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71834         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71835         (struct obstack): temp member is now a union of a pointer and
71836         an integer, instead of an integer.  All integer uses changed.
71837         This does not affect the physical layout of struct obstack,
71838         except on hosts (like the AS/400) where the size or alignment of
71839         void * is greater than that of ptrdiff_t.
71840         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71841         __STDC__)]: Store temporary in pointer member of union, not
71842         integer member.
71843         * lib/obstack.c: Include <stddef.h>, for offsetof.
71844         (struct fooalign): Remove; it doesn't need a name.
71845         (union fooround): Change double to long double, and add void *.
71846         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71847         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71848         not a macro.  Hence the values are always int; so remove all
71849         casts-to-int in uses.
71850
71851 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71854         we can get this patch merged into glibc.
71855
71856 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71857             Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * m4/argp: Depend on alloca.
71860
71861 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71862             Paul Eggert  <eggert@cs.ucla.edu>
71863
71864         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71865         freecoding.
71866
71867 2004-05-17  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71870         precision that consists of a '.' followed by an empty digit string.
71871         Patch by Tor Lillqvist <tml@iki.fi>.
71872
71873 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71874
71875         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71876         for backward compatibility with older code.  We need our own
71877         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71878         it under some other name, and our alloca.h will define it.
71879
71880 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71881             Derek Price  <derek@ximbiot.com>
71882
71883         * lib/alloca.c: Include <alloca.h>, to get our interface.
71884         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71885         include <alloca.h> first.  Use C89 prototype for alloca; this
71886         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71887         Use #elif for simplicity, since we can assume C89 now.
71888         Don't try to source the system alloca.h since it will not be found
71889         and to prevent recursively including its replacement.
71890         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71891         * lib/regex.c: Likewise.
71892
71893 2004-05-16  Derek Price  <derek@ximbiot.com>
71894             Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         getline cleanup.  This changes the getndelim2 API: both order of
71897         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71898         no delimiter).
71899
71900         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71901         interface does that.
71902         (getline): Always use getdelim, so that we don't have two
71903         copies of this code.
71904         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71905         if available.
71906         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71907         (GETNDELIM2_MAXIMUM): New macro.
71908         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71909         instead of the old practice of delim2==0.  All callers changed.
71910         Return -1 on overflow, instead of returning junk.
71911         Do not set *linesize unless allocation succeeds.
71912         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71913         that we include sys/types.h.
71914         * lib/getnline.h: Likewise.
71915         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71916         (getndelim2): Reorder arguments.
71917         * lib/getnline.c (getnline, getndelim):
71918         Don't discard the NMAX argument.
71919         (getnline): Invoke getndelim, to avoid code duplication.
71920         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71921         of (size_t) -1 by callers of the getnline family.
71922
71923 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71926         Check for gettimeofday.
71927         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71928         Check for settimeofday, stime.
71929
71930 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71931
71932         * lib/nanosleep.c (suspended): Change its type from int to
71933         sig_atomic_t volatile.
71934         (first_call): Make it private to rpl_nanosleep, and have it
71935         be zero initially as that's a bit faster.
71936         (my_usleep): Round up fractional times instead of truncating them,
71937         as this is the usual meaning for 'sleep'.
71938
71939         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71940         doesn't work.
71941         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71942         (ENOSYS): Define if not defined.
71943         (settime): Fall back on stime if it exists and settimeofday fails.
71944         But don't bother with fallbacks if a method fails with errno == EPERM.
71945
71946 2004-05-11  Jim Meyering  <jim@meyering.net>
71947
71948         Prior to this change, the save_cwd caller required read access to the
71949         current directory on most systems (ones with the fchdir function).
71950
71951         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71952         fails, try write-only, and finally, resort to using xgetcwd.
71953
71954 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * lib/obstack.c, obstack.h: Import changes from libc.
71957
71958 2004-04-28  Bruno Haible  <bruno@clisp.org>
71959
71960         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71961         also implicitly appends .exe to executables.
71962         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71963         accepts Windows pathnames.
71964         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71965         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71966         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71967         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71968         Reported by Derek Robert Price <derek@ximbiot.com>.
71969
71970 2004-04-21  Karl Berry  <karl@gnu.org>
71971
71972         * config/srclist.txt (localcharset.c): break sync.
71973
71974 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71975
71976         * m4/host-os.m4: Add a copyright notice.
71977
71978 2004-04-20  Jim Meyering  <jim@meyering.net>
71979
71980         Change UTILS_ to gl_ in AC_DEFINE'd names.
71981         Change utils_- and jm_-prefixed variables, too.
71982         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71983         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71985
71986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71987         Don't emit trailing blanks.
71988         Also rename jm_-prefixed variables to have gl_ prefix.
71989
71990         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71991         Also rename jm_-prefixed variables to have gl_ prefix.
71992
71993         * m4/jm-macros.m4: Reflect the renamings.
71994         * m4/prereq.m4: Likewise.
71995
71996 2004-04-20  Jim Meyering  <jim@meyering.net>
71997
71998         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71999         memory.
72000
72001 2004-04-20  Jim Meyering  <jim@meyering.net>
72002             Bruno Haible  <bruno@clisp.org>
72003
72004         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72005         memory when realloc fails.
72006
72007 2004-04-19  Jim Meyering  <jim@meyering.net>
72008
72009         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72010         now that readutmp.c may call `free (0)'.
72011
72012 2004-04-19  Bruno Haible  <bruno@clisp.org>
72013
72014         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72015         * m4/inttypes_h.m4: Likewise.
72016         * m4/stdint_h.m4: Likewise.
72017         * m4/intmax_t.m4: Likewise.
72018         * m4/uintmax_t.m4: Likewise.
72019
72020 2004-04-18  Jim Meyering  <jim@meyering.net>
72021
72022         * m4/prereq.m4: Don't forbid jm_ prefix.
72023
72024         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72025         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72026         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72027         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72028         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72029         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72030         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72031         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72032         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72033         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72034         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72035         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72036         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72037         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72038         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72039         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72040         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72041         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72042         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72043
72044 2004-04-18  Jim Meyering  <jim@meyering.net>
72045
72046         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
72047         failure, don't leak memory and do call END_UTMP_ENT.
72048
72049 2004-04-16  Jim Meyering  <jim@meyering.net>
72050
72051         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
72052         coreutils' stat program.
72053         (gl_PREREQ): Don't require jm_PREREQ_STAT.
72054
72055 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72056
72057         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72058         C89.
72059         (CHAR_BIT): Remove, since we assume C89.
72060         Include <stdint.h> if available, as per current Autoconf CVS advice.
72061
72062 2004-03-31  Jim Meyering  <jim@meyering.net>
72063
72064         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72065         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72066         * m4/xalloc.m4: Likewise.
72067
72068 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72069
72070         Merge from coreutils.
72071
72072         * m4/inttostr.m4: New file.
72073         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72074         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72075         Require gl_CLOCK_TIME.
72076         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72077
72078 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72079
72080         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72081         not bool, to be more consistent with Unix conventions.
72082         Suggested by Bruno Haible.
72083
72084         Merge from coreutils.
72085
72086         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72087         * lib/umaxtostr.c: New files.
72088
72089         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72090         the usual <time.h> dance.
72091         (get_date): Change signature to support fractional time stamps.
72092         All callers changed.
72093         * lib/getdate.y: Include "getdate.h" first, as we can now
72094         assume C89 and don't need to worry about 'const'.
72095         Similarly, include "unlocked-io.h" near start, not in middle.
72096         Include <limits.h>.
72097         (textint.value): Use long int rather than int.
72098         (textint.digits): Use size_t rather than int.
72099         (BILLION, LOG10_BILLION): New constants.
72100         (parser_control): New member rel_ns.  Members day_ordinal,
72101         time_zone, month, day, hour, minutes, rel_year, rel_month,
72102         rel_day, rel_hour, rel_minutes, rel_seconds
72103         are now long int, not int.  Member seconds is now struct timespec,
72104         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72105         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72106         not int.
72107         (%union.intval): Now long int, not int.
72108         New member timespec.
72109         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72110         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72111         (spec): Now is a timespec or an item list.
72112         (timespec, items): New nonterminals.
72113         (time, rel, relunit, number, get_date):
72114         Add support for fractional seconds.
72115         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72116         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72117         (to_hour): First arg is now long int, not int.
72118         (to_year): Returns long int, not int.
72119         Don't treat year -70 like 70.
72120         (tm_diff): Returns long int, not int.
72121         (lookup_word): Use bool instead of int when appropriate.
72122         (yylex): Use size_t for count, not int.
72123         Detect overflow when parsing large integer constants.
72124         Add support for fractions.
72125         (get_date): Make pointers 'const' if possible.
72126         Use more-portable code to detect integer overflow.
72127         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72128         Don't use ctime; it's not reliable if the year has >4 digits.
72129
72130         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72131         This is for compatibility with BSD.
72132
72133         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72134         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72135         From coreutils' system.h.
72136
72137         * lib/userspec.c: Don't include "posixver.h".
72138         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72139         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72140         compatible extension.  Simplify code by removing a boolean int
72141         that was always nonzero if a string was nonnull.
72142
72143 2004-03-30  Jim Meyering  <jim@meyering.net>
72144
72145         Merge from coreutils.
72146
72147         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72148         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72149         on some systems one must include <grp.h> before it.
72150         Reported by Christian Krackowizer.
72151
72152 2004-03-30  Jim Meyering  <jim@meyering.net>
72153
72154         Merge from coreutils.
72155
72156         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72157
72158         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72159         an empty input stream.
72160
72161         * lib/readtokens.c: Include <stdbool.h>.
72162         (readtoken): Use `size_t' rather than int/long.
72163         All callers adjusted.
72164         Use `bool' rather than `int' where appropriate.
72165         Use memset rather than an explicit loop.
72166         Use x2nrealloc rather than xrealloc.
72167         Allow the use of `\0' as a delimiter.
72168         (readtokens): Likewise.
72169         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72170
72171 2004-03-30  Jim Meyering  <jim@meyering.net>
72172
72173         * m4/realloc.m4: Remove file, since now it does no more than
72174         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72175         the `configure.ac' section of module/realloc.
72176         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72177
72178 2004-03-30  Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72181         nonnull.
72182
72183 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72184
72185         Merge changes to getloadavg.c from coreutils and Emacs.
72186
72187         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72188         Define to an expression, not to the empty string.
72189         Include cloexec.h and xalloc.h.
72190         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72191         Use set_cloexec_flag rather than rolling our own.
72192         * lib/cloexec.c, lib/cloexec.h: New files.
72193
72194 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72195
72196         * m4/cloexec.m4: New file.
72197
72198 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72199
72200         * lib/getopt.h: Sync with libc CVS.
72201
72202 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72203             Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72206         mbswidth.
72207
72208 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72209             Bruno Haible  <bruno@clisp.org>
72210
72211         * lib/mbswidth.h: Include <wchar.h> only if
72212         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72213         <wchar.h>.
72214         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72215
72216 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72217
72218         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72219         Sync with libc CVS.
72220         * lib/getopt_int.h: New file, also synced from libc.
72221
72222 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72223
72224         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72225         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72226         Bring back getopt.c, getopt.h, getopt1.c.
72227
72228 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72229
72230         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72231         All uses changed.  Check for sa_sigaction member; this fixes
72232         a bug first reported by Jason Andrade in
72233         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72234
72235 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72236
72237         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72238         '#if' expressions.  Unlike the code it replaces, it does not
72239         depend on (defined _SC_PAGESIZE).  However, it does depend on
72240         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72241         first reported by Jason Andrade in
72242         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72243
72244 2004-02-25  Simon Josefsson  <jas@extundo.com>
72245
72246         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72247
72248 2004-02-25  Simon Josefsson  <jas@extundo.com>
72249
72250         * lib/strdup.h: New file.
72251         * lib/strdup.c: Include it.
72252         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72253         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72254
72255 2004-02-23  Karl Berry  <karl@gnu.org>
72256
72257         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72258         (from fencepost.gnu.org:/gd/gnuorg).
72259
72260 2004-02-23  Karl Berry  <karl@gnu.org>
72261
72262         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72263         * config/srclist.txt: add maintain/standards documents.
72264
72265 2004-02-18  Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72268         Reported by Derek Robert Price <derek@ximbiot.com>.
72269
72270 2004-02-16  Karl Berry  <karl@gnu.org>
72271
72272         * config/mkinstalldirs, install-sh: update from automake.
72273
72274 2004-02-06  Karl Berry  <karl@gnu.org>
72275
72276         * m4/po.m4: update from gettext 0.14.1.
72277
72278 2004-02-06  Karl Berry  <karl@gnu.org>
72279
72280         * lib/config.charset: update from gettext 0.14.1.
72281
72282 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72283
72284         Add comments and code, prompted by suggestions from Bruno Haible
72285         for sh-quote.
72286         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72287         describing the enum quoting_style values.
72288         * lib/quotearg.c (quotearg_alloc): New function.
72289         (quotearg_buffer_restyled): Treat lone { and } as special.
72290         Treat = as special.  Work around bug with older shells
72291         that "see" a '\' that is really the 2nd byte of a multibyte char.
72292         Quote empty string with shell_quoting_style.
72293
72294 2004-02-03  Bruno Haible  <bruno@clisp.org>
72295
72296         * m4/pipe.m4: New file, from GNU gettext.
72297
72298 2004-02-03  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/pipe.h: New file, from GNU gettext.
72301         * lib/pipe.c: New file, from GNU gettext.
72302
72303 2004-01-27  Bruno Haible  <bruno@clisp.org>
72304
72305         * m4/execute.m4: New file, from GNU gettext.
72306
72307 2004-01-27  Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/execute.h: New file, from GNU gettext.
72310         * lib/execute.c: New file, from GNU gettext.
72311         * lib/w32spawn.h: New file, from GNU gettext.
72312
72313 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72314
72315         Merge from diffutils.
72316
72317         * lib/file-type.c (file_type): Add typed memory objects.
72318         * lib/file-type.h (S_TYPEISTMO): New macro.
72319
72320         * lib/c-stack.h (c_stack_action): Remove argv argument.
72321         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72322         (die): Don't calculate message unless segv_action returns.
72323         (get_stack_location, min_address_from_argv, max_address_from_argv,
72324         volatile stack_base, volatile_stack_size): Remove.
72325         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72326         that every segmentation violation is a stack overflow.  (Ouch!)
72327         See Debian bug 136249 (still outstanding) for more info about why
72328         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72329
72330 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72331
72332         Exit-status fix from coreutils.
72333
72334         Use exit_failure consistently in place of EXIT_FAILURE,
72335         so that program exit statuses are consistent on failure.
72336
72337         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72338         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72339         * lib/argmatch.h: Comment fix to match the above.
72340         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72341         Now a macro referring to exit_failure, instead of a separate
72342         variable.  Include "exitfail.h" to get it.
72343         * lib/xstrtol.h: Include "exitfail.h".
72344         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72345
72346         * lib/long-options.c (parse_long_options): Use prototype
72347         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72348         for clarity.
72349
72350 2004-01-21  Jim Meyering  <jim@meyering.net>
72351
72352         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72353         so as not to conflict with a different-sized __mktime_internal
72354         function in GNU libc.
72355         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72356         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72357
72358 2004-01-20  Karl Berry  <karl@gnu.org>
72359
72360         * config/config.guess: update from config.
72361
72362         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72363
72364 2004-01-20  Bruno Haible  <bruno@clisp.org>
72365
72366         Safer stack allocation.
72367         * lib/setenv.c: Include allocsa.h.
72368         (alloca): Remove fallback definition.
72369         (freea): Remove macro.
72370         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72371         instead of freea.
72372
72373 2004-01-20  Bruno Haible  <bruno@clisp.org>
72374
72375         * m4/eealloc.m4: New file, from GNU gettext.
72376
72377 2004-01-20  Bruno Haible  <bruno@clisp.org>
72378
72379         * m4/allocsa.m4: New file, from GNU gettext.
72380
72381 2004-01-20  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/xallocsa.h: New file, from GNU gettext.
72384         * lib/xallocsa.c: New file, from GNU gettext.
72385
72386 2004-01-20  Bruno Haible  <bruno@clisp.org>
72387
72388         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72389
72390 2004-01-20  Bruno Haible  <bruno@clisp.org>
72391
72392         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72393         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72394         specially.
72395
72396 2004-01-20  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72399         patch.
72400
72401 2004-01-20  Bruno Haible  <bruno@clisp.org>
72402
72403         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72404
72405 2004-01-20  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/eealloc.h: New file.
72408
72409 2004-01-20  Bruno Haible  <bruno@clisp.org>
72410
72411         * lib/binary-io.h: Avoid warnings on Cygwin.
72412
72413 2004-01-20  Bruno Haible  <bruno@clisp.org>
72414
72415         * lib/allocsa.h: New file, from GNU gettext.
72416         * lib/allocsa.c: New file, from GNU gettext.
72417
72418 2004-01-18  Karl Berry  <karl@gnu.org>
72419
72420         * doc/gpl.texi, doc/lgpl.texi: new files.
72421
72422 2004-01-18  Karl Berry  <karl@gnu.org>
72423
72424         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72425         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72426
72427 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72428
72429         Merge from coreutils.
72430
72431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72432         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72433         (gl_DEFAULT_POSIX2_VERSION): Move
72434         the documentation from 'configure' into 'config.hin',
72435         so that 'configure --help' isn't burdened by it and
72436         we don't have to worry about its formatting there.
72437         Reword the documentation so that it's more succinct
72438         and can be run together into a single paragraph.
72439         * m4/same.m4 (gl_SAME): Check for pathconf.
72440
72441 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72442
72443         Merge from coreutils.
72444
72445         * lib/posixver.c: Include posixver.h.
72446
72447         * lib/same.c: Include <stdbool.h>, <limits.h>.
72448         (_POSIX_NAME_MAX): Define if not defined.
72449         (MIN): New macro.
72450         (same_name): If file names are silently truncated, report
72451         that the file names are the same if they are the same after
72452         the silent truncation.
72453
72454         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72455         conversion function.
72456         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72457         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72458         longer needed.
72459
72460 2004-01-15  Jim Meyering  <jim@meyering.net>
72461
72462         Merge from coreutils.
72463
72464         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72465         if no library is required.
72466         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72467         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72468         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72469         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72470         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72471         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72472         value, $ac_cv_search_crypt, if it's "none required".
72473         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72474         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72475         not gl_FUNC_GETLOADAVG.
72476         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72477         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72478
72479 2004-01-15  Jim Meyering  <jim@meyering.net>
72480
72481         Merge from coreutils.
72482
72483         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72484         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72485         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72486
72487         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72488         optional configure-time default.
72489
72490         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72491
72492         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72493
72494 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72495
72496         Merge from coreutils.
72497
72498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72499         value, $ac_cv_search_nanosleep, if it's "none required".
72500
72501 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72502
72503         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72504         with like-named macro in fnmatch.c.
72505         (EXT): Use an internal constant instead.
72506
72507         Merge fnmatch patches from glibc.
72508         * lib/fnmatch.c (mbsinit): Remove define.
72509         Add libc_hidden_ver (__fnmatch, fnmatch).
72510         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72511         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72512
72513 2004-01-14  Karl Berry  <karl@gnu.org>
72514
72515         * config/install-sh: update from automake.
72516
72517 2004-01-13  Karl Berry  <karl@gnu.org>
72518
72519         * config/install-sh: update from automake.
72520
72521 2004-01-09  Karl Berry  <karl@gnu.org>
72522
72523         * config/install-sh: update from automake.
72524
72525 2004-01-05  Karl Berry  <karl@gnu.org>
72526
72527         * config/config.{sub,guess}: update from config.
72528
72529 2003-12-31  Karl Berry  <karl@gnu.org>
72530
72531         * config/depcomp: update from automake.
72532
72533 2003-12-14  Karl Berry  <karl@gnu.org>
72534
72535         * lib/config.charset: update from gettext-runtime.
72536
72537 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72538
72539         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72540         Bug reported by Alfred M. Szmidt.
72541
72542 2003-12-03  Bruno Haible  <bruno@clisp.org>
72543
72544         * m4/gettext.m4: Upgrade from gettext-0.13.
72545         * m4/po.m4: Upgrade from gettext-0.13.
72546         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72547         * m4/intmax.m4: New file, from gettext-0.13.
72548         * m4/printf-posix.m4: New file, from gettext-0.13.
72549
72550 2003-11-29  Karl Berry  <karl@gnu.org>
72551
72552         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72553
72554 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72555             Bruno Haible  <bruno@clisp.org>
72556
72557         * lib/printf-parse.h: Don't include sys/types.h.
72558         (ARG_NONE): New macro.
72559         (char_directive): Change type of *arg_index fields to size_t.
72560         * lib/printf-parse.c: Don't include sys/types.h.
72561         (SSIZE_MAX): Remove macro.
72562         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72563         Remove unnecessary overflow check.
72564         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72565         fields.
72566
72567 2003-11-25  Bruno Haible  <bruno@clisp.org>
72568
72569         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72570
72571 2003-11-25  Bruno Haible  <bruno@clisp.org>
72572
72573         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72574         gt_TYPE_SSIZE_T.
72575
72576 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72577
72578         * modules/alloca: Remove dependency on xalloc.
72579
72580 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72581
72582         * lib/alloca.c: Remove dependency on xalloc module.
72583         (xalloc_die): Remove.
72584         (memory_full) [!defined emacs]: New macro.
72585         [!defined emacs]: Don't include xalloc.h.
72586         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72587         address arithmetic overflows.  Change datatypes a bit to avoid
72588         unnecessary casts.
72589
72590 2003-11-22  Jim Meyering  <jim@meyering.net>
72591
72592         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72593         s/size/size_t/.
72594
72595 2003-11-21  Karl Berry  <karl@gnu.org>
72596
72597         * config/config.{sub,guess}: update from config.
72598
72599 2003-11-18  Karl Berry  <karl@gnu.org>
72600
72601         * config/config.{sub,guess}: update from config.
72602
72603         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72604
72605 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72606
72607         * README: Mention that S+T cannot overflow if S is the size of
72608         an existing object and T is sufficiently small.
72609
72610 2003-11-17  Jim Meyering  <jim@meyering.net>
72611
72612         On systems without utime and without a utimes function capable of
72613         dealing with a NULL struct utimbuf* argument, this utime replacement
72614         could -- in unusual circumstances -- leak a file descriptor.
72615         * lib/utime.c: Include <unistd.h> and <errno.h>.
72616         (utime_null): Be sure to close `fd' and to preserve errno.
72617         Reported by Geoff Collyer via Arnold Robbins.
72618
72619 2003-11-17  Bruno Haible  <bruno@clisp.org>
72620
72621         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72622         (Depends-on): Add xsize.
72623
72624 2003-11-17  Bruno Haible  <bruno@clisp.org>
72625
72626         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72627
72628 2003-11-17  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/vasnprintf.c (alloca): Remove fallback definition.
72631         (freea): Remove definition.
72632         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72633         Reported by Paul Eggert.
72634
72635 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72636             Bruno Haible  <bruno@clisp.org>
72637
72638         Protect against address arithmetic overflow.
72639         * lib/printf-args.h: Include stddef.h.
72640         (arguments): Change type of field 'count' to size_t.
72641         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72642         'unsigned int' where appropriate.
72643         * lib/printf-parse.h: Include sys/types.h.
72644         (char_directive): Change type of *arg_index fields to ssize_t.
72645         (char_directives): Change type of fields 'count', max_*_length to
72646         size_t.
72647         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72648         (SSIZE_MAX): Define fallback value.
72649         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72650         instead of 'int' where appropriate. Check a_allocated, d_allocated
72651         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72652         * lib/vasnprintf.c: Include xsize.h.
72653         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72654         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72655         overflow. Avoid wraparound when converting a width or precision from
72656         decimal to binary.
72657
72658 2003-11-16  Bruno Haible  <bruno@clisp.org>
72659
72660         Update from GNU gettext.
72661         * lib/printf-parse.c: Generalize to it can be compiled for wide
72662         strings.
72663         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72664         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72665         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72666         SNPRINTF): New macros.
72667         Don't include <alloca.h> if the file is used inside libintl.
72668         (local_wcslen): New function, for Solaris 2.5.1.
72669         (VASNPRINTF): Use it instead of wcslen.
72670
72671 2003-11-16  Bruno Haible  <bruno@clisp.org>
72672
72673         * lib/xsize.h (xmax): New function.
72674         (xsum, xsum3, xsum4): Declare as "pure" functions.
72675
72676 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72677
72678         * modules/xalloc (Files): Undo latest change, since xalloc.h
72679         no longer needs SIZE_MAX or PTRDIFF_MAX.
72680
72681 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72682
72683         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72684         gl_PTRDIFF_MAX.
72685
72686 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72687
72688         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72689         "return", to pacify some unknown compiler.  Problem reported
72690         by Joerg Schilling.
72691
72692 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72693
72694         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72695         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72696         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72697         heuristic is just as accurate as far as we know, and it removes a
72698         dependency on size_max.m4 and ptrdiff_max.m4.
72699
72700 2003-11-11  Bruno Haible  <bruno@clisp.org>
72701
72702         * modules/xsize (Files): Add m4/size_max.m4.
72703         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72704
72705 2003-11-11  Bruno Haible  <bruno@clisp.org>
72706
72707         * m4/size_max.m4: New file.
72708         * m4/ptrdiff_max.m4: New file.
72709         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72710         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72711         (gl_XALLOC): Invoke it.
72712
72713 2003-11-11  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72716         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72717         defined.
72718
72719 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72720
72721         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72722         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72723         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72724         From Bruno Haible.
72725         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72726         not (size_t) -1, since it's defined here.
72727
72728 2003-11-09  Karl Berry  <karl@gnu.org>
72729
72730         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72731
72732 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72733
72734         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72735         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72736         Reject sizes of exactly SIZE_MAX bytes.
72737         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72738         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72739
72740 2003-11-05  Bruno Haible  <bruno@clisp.org>
72741
72742         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72743         SIZE_MAX defined in <limits.h> on Solaris.
72744
72745 2003-11-04  Jim Meyering  <jim@meyering.net>
72746
72747         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72748         variable names, rather than @VAR@.
72749         * modules/poll: Likewise.
72750
72751 2003-11-04  Bruno Haible  <bruno@clisp.org>
72752
72753         * modules/xsize: New file.
72754         * modules/linebreak: Depend on xsize.
72755         * MODULES.html.sh (func_all_modules): Add xsize.
72756
72757 2003-11-04  Bruno Haible  <bruno@clisp.org>
72758
72759         * m4/xsize.m4: New file.
72760
72761 2003-11-04  Bruno Haible  <bruno@clisp.org>
72762
72763         * lib/xsize.h: New file.
72764         * lib/linebreak.c: Include xsize.h.
72765         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72766         argument for overflow.
72767         Suggested by Paul Eggert.
72768
72769 2003-11-03  Karl Berry  <karl@gnu.org>
72770
72771         * config/config.{guess,sub}: update from config.
72772
72773 2003-11-03  Jim Meyering  <jim@meyering.net>
72774
72775         * modules/userspec (lib_SOURCES): Add userspec.h.
72776         (Include): Add "userspec.h".
72777         Improve description.
72778
72779 2003-11-03  Jim Meyering  <jim@meyering.net>
72780
72781         * lib/userspec.c: Include "userspec.h".
72782         * lib/userspec.h: New file.
72783
72784 2003-11-03  Bruno Haible  <bruno@clisp.org>
72785
72786         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72787
72788 2003-11-03  Bruno Haible  <bruno@clisp.org>
72789
72790         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72791         available, to avoid (extremely rare) race condition.
72792         Suggested by Paul Eggert.
72793
72794 2003-11-02  Karl Berry  <karl@gnu.org>
72795
72796         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72797
72798 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72799
72800         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72801         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72802         (read_filesystem_list): Set and use me_type_malloced.
72803         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72804         whatever the type happens to be), for brevity and consistency.
72805         Check for size calculation overflow on Alphas running OSF/1.
72806
72807 2003-10-31  Jim Meyering  <jim@meyering.net>
72808
72809         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72810
72811         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72812
72813 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72814             Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72817         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72818
72819 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72822         netbsd*-gnu*.  Suggested by Robert Millan.
72823
72824 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72825
72826         * modules/group-member: Depend on stdbool.
72827
72828 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72829
72830         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72831
72832 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72833
72834         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72835         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72836         after the 'gnu' in these cases.  This fixes some bugs in the
72837         previous change, and is based on suggestions by Robert Millan.
72838
72839 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72840
72841         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72842         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72843         no longer needed.
72844         * lib/quotearg.c (quotearg_n_options): Use it.
72845         * lib/group-member.c: Include <stdbool.h>.
72846         (free_group_info): Arg is now const *; don't free arg.
72847         (get_group_info): Now returns bool and accepts struct group_info *,
72848         rather than returning a malloc'ed struct group_info *.
72849         All uses changed.  Check for overflow in internal size calculation.
72850
72851         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72852         rather than xmalloc/xrealloc.
72853         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72854         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72855         conformance bug: the old code used a pointer after freeing the
72856         storage that it addressed.
72857         * lib/hash.c (hash_initialize): Simplify the code by using
72858         xalloc_oversized rather than doing it by hand.
72859         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72860         the buffer preserved.  Use free and xmalloc instead.
72861         * lib/quotearg.c (quotearg_n_options): Likewise.
72862         Use a simpler test for size overflow.  Don't use xalloc_oversized
72863         because unsigned int might be wider than size_t (!); this suggests
72864         that we should switch from unsigned int to size_t for slot numbers.
72865
72866 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72867
72868         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72869         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72870         NetBSD kernels.  Requested by Richard Stallman.
72871
72872 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72873
72874         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72875         to allocate the returned structure.  Do not allocate a subarray,
72876         as x2nrealloc will do that.
72877         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72878         instead of xnrealloc.
72879         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72880
72881 2003-10-27  Bruno Haible  <bruno@clisp.org>
72882
72883         * lib/stdbool_.h: Better support for BeOS.
72884
72885 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72886
72887         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72888         now uses inline.
72889
72890 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72891
72892         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72893         callers that want to do their own size-overflow checking.  Include
72894         <stdbool.h>, since xalloc_oversized returns bool.
72895         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72896         to use xalloc_oversized.
72897
72898         Add two functions x2realloc, x2nrealloc, for programs that grow
72899         arrays dynamically by doubling their sizes.
72900         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72901         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72902         New functions.
72903
72904         Port to C99 semantics for 'inline' of external functions.
72905         Bug reported by Bruno Haible.
72906         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72907         with the old contents of xnmalloc.
72908         (xnmalloc, xmalloc): Use it.
72909         (xnrealloc_inline): New static inline function,
72910         with the old contents of xnrealloc.
72911         (xnrealloc, xrealloc): Use it.
72912
72913         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72914         that.
72915
72916 2003-10-26  Karl Berry  <karl@gnu.org>
72917
72918         * config/srclist.txt (COPYING.DOC): no longer available from
72919         /gd/gnuorg; don't know where the ultimate source is.
72920
72921 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72922
72923         Fix several address-calculation bugs in the hash modules,
72924         plus some minor code cleanup.
72925
72926         * lib/hash.h: Include <stdbool.h>, for bool.
72927         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72928         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72929         hash_get_n_entries, hash_get_max_bucket_length,
72930         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72931         hash_rehash): Use size_t rather than unsigned.
72932         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72933         hash_get_n_buckets_used, hash_get_n_entries,
72934         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72935         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72936         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72937         Likewise.
72938         (SIZE_MAX): Define if not defined.
72939         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72940         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72941         hash_print):
72942         Use const * when possible.
72943         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72944         (check_tuning): Fix bug: if tuning parameters were very close to
72945         0 or 1, rounding errors could have caused subscript violations.
72946         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72947         (hash_initialize): Add 'fail:' label
72948         to free table and return NULL, and use it to simplify code.
72949         Use calloc rather than clearing the storage ourself.
72950         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72951         buffer size calculations.
72952         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72953         Include <stddef.h>, for size_t.
72954         * lib/hash-pjw.c (hash_pjw): Likewise.
72955         Switch to method described by Bruno Haible.
72956         Include <limits.h>, for CHAR_BIT.
72957         (SIZE_BITS): New macro.
72958
72959 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72960
72961         * m4/getline.m4 (AM_FUNC_GETLINE):
72962         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72963         hosts.  Problem reported by Derek Robert Price in
72964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72965         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72966         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72967
72968 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72969
72970         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72971         ceiling the allocation at NMAX bytes rather than silently
72972         discarding input bytes before NMAX is reached.  This makes
72973         a difference only if NMAX exceeds SIZE_MAX / 2.
72974
72975         * lib/obstack.c: Merge from glibc.
72976         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72977         Add libc_hidden_def (_obstack_newchunk).
72978         (_obstack_free) [! defined _LIBC]: Remove.
72979         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72980         a clone of the function body.
72981         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72982         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72983
72984         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72985         glibc.
72986         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72987         arg to memcpy.
72988
72989         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72990         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72991         Don't use lvalue casts, as GCC plans to remove support for them
72992         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72993         was also present in the non-GCC version, indicating that this
72994         code had always been buggy and had never been widely used.
72995         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72996         Use the fast variant of each macro, rather than copying the
72997         definiens of the fast variant; that way, we'll be more likely to
72998         catch future bugs in the fast variants.
72999
73000 2003-10-20  Bruno Haible  <bruno@clisp.org>
73001
73002         * modules/wait-process: New file.
73003         * MODULES.html.sh (func_all_modules): Add wait-process.
73004
73005 2003-10-20  Bruno Haible  <bruno@clisp.org>
73006
73007         * m4/wait-process.m4: New file.
73008
73009 2003-10-20  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/wait-process.h: New file, from GNU gettext.
73012         * lib/wait-process.c: New file, from GNU gettext.
73013
73014 2003-10-19  Jim Meyering  <jim@meyering.net>
73015
73016         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73017         HPUX 10.20.
73018
73019 2003-10-18  Karl Berry  <karl@gnu.org>
73020
73021         * config/config.guess: update from config.
73022
73023 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73024
73025         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73026         (getgroups): First arg is int, not size_t.
73027         Don't let 'free' mangle errno.
73028
73029 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73030
73031         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73032
73033 2003-10-16  Karl Berry  <karl@gnu.org>
73034
73035         * config/config.{guess,sub}: update from config.
73036
73037 2003-10-16  Jim Meyering  <jim@meyering.net>
73038
73039         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73040         memcpy.
73041
73042 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73043
73044         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73045         (SIZE_MAX): Remove.
73046         (new_exclude, add_exclude_file): Initial size no longer needs to
73047         be a power of 2.
73048         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
73049         our own address arithmetic overflow checking.
73050
73051         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
73052         (fnmatch): Do not alloca more than 2000 wide characters;
73053         instead, use malloc for large buffers.
73054         Check for address arithmetic overflow, and return -1
73055         with errno set to ENOMEM in that case.
73056         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73057         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73058         instead, return -1.  Check for address arithmetic overflow.
73059
73060 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73061
73062         Handle invalid suffixes and overflow independently, so that
73063         callers can treat them independently as needed.  Fix some bugs in
73064         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73065         suffix for a human-readable blocksize.  The major caller-visible
73066         change is the addition of a new
73067         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73068         that both overflow and suffix chars were found.
73069
73070         * lib/human.c (humblock): Don't check separately for invalid suffix
73071         char; that is xstrtoumax's job (now that its bug is fixed).
73072         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73073         INTMAX_MAX]: New macros.
73074         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73075         TYPE_MAXIMUM): New macros.
73076         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73077         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73078         if overflow occurs, as it's what __strtol does and it's more useful
73079         in practice.
73080         (__xstrtol): If __strtol reports some error other than ERANGE,
73081         reflect it to the caller as LONGINT_INVALID.  If it reports
73082         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73083         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73084         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73085         value.
73086         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73087         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73088         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73089         [defined UINTMAX_MAX]: New macros.
73090
73091 2003-10-14  Bruno Haible  <bruno@clisp.org>
73092
73093         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73094
73095 2003-10-14  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/sig_atomic_t: New file, from GNU gettext.
73098         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73099
73100 2003-10-14  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73103         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73104         Also use volatile where needed.
73105
73106 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73107
73108         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73109         Change maintainer from Bruno Haible to 'all'.
73110
73111 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73112
73113         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73114
73115 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73116
73117         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73118         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73119         and define in terms of the other primitives.
73120         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73121         (SIZE_MAX): Define if not already defined.
73122         (array_size_overflow): New function.
73123         (xalloc_die): Abort instead of exiting if 'error' returns.
73124         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73125         (xmalloc, xrealloc): Use them.
73126         (xcalloc): Check for address arithmetic overflow.
73127         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73128         a bit faster than strcpy.
73129
73130 2003-10-10  Simon Josefsson  <jas@extundo.com>
73131
73132         * modules/argp (Depends-on): Add restrict and strcase.
73133
73134 2003-10-10  Simon Josefsson  <jas@extundo.com>
73135
73136         * m4/argp.m4: Add AC_C_INLINE.
73137
73138 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73139
73140         Merge getpass from libc, plus a few fixes.
73141
73142         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73143         Include <stdbool.h>.
73144         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73145         __fsetlocking to empty.
73146         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73147         do include <bits/libc-lock.h>.
73148         Do not include <fcntl.h>; not needed.
73149         [_LIBC]: Include <wchar.h>.
73150         (NOTCANCEL_MODE): New macro.
73151         (flockfile, funlockfile) [_LIBC]: New macros.
73152         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73153         [!_LIBC]: New macros.
73154         (call_fclose): New function.
73155         (getpass): Use it.  Save tty stream separately; this simplifies the
73156         code and makes it more reliable if stdin happens to equal stdout.
73157         Invoke __fsetlocking on tty.
73158         Handle thread cancellation if needed.
73159         Namespace cleanup (use __tcgetattr, __getline).
73160         Use bool for Booleans.
73161         [USE_IN_LIBIO]: Handle wide streams.
73162         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73163         stream might go where.
73164
73165         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73166         doesn't have to include <stdio.h> before us.
73167         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73168         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73169         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73170         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73171         if not declared, so that we can use getpass.c code from libc without
73172         rewriting it.
73173         (flockfile, ftrylockfile, funlockfile): New macros.
73174
73175 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73176
73177         * modules/getpass: Depend on stdbool.
73178
73179 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73180
73181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73182
73183 2003-10-07  Karl Berry  <karl@gnu.org>
73184
73185         * config/config.{guess,sub}: update from config.
73186
73187 2003-10-06  Jim Meyering  <jim@meyering.net>
73188             Bruno Haible  <bruno@clisp.org>
73189
73190         This lets translators provide better translations for the
73191         "Written by ..." part of --version output.
73192         * lib/version-etc.h: Include stdarg.h.
73193         (version_etc_copyright): Declare as readonly.
73194         (version_etc): Make this function variadic with a NULL-terminated list
73195         of author name strings.
73196         (version_etc_va): New declaration.
73197         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73198         (version_etc_copyright): Declare as readonly.
73199         (version_etc_va): New function. Provide a different translatable string
73200         for each possible number of authors < 10. Abbreviate when there are 10
73201         authors or more.
73202         (version_etc): Make this function variadic. Call version_etc_va.
73203         Suggestion from Gary V. Vaughan.
73204
73205         * lib/long-options.h (parse_long_options): Change prototype: the
73206         authors string is moved to the end and becomes variadic.
73207         * lib/long-options.c: Include stdarg.h.
73208         (parse_long_options): Make this function variadic, too.
73209         Call version_etc_va, not version_etc.
73210
73211 2003-10-06  Bruno Haible  <bruno@clisp.org>
73212
73213         * modules/version-etc-2: Remove file.
73214         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73215
73216 2003-10-06  Bruno Haible  <bruno@clisp.org>
73217
73218         * modules/fatal-signal: New file.
73219         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73220
73221 2003-10-06  Bruno Haible  <bruno@clisp.org>
73222
73223         * m4/fatal-signal.m4: New file.
73224         * m4/signalblocking.m4: New file, from GNU gettext.
73225
73226 2003-10-06  Bruno Haible  <bruno@clisp.org>
73227
73228         * lib/version-etc-2.h: Remove file.
73229         * lib/version-etc-2.c: Remove file.
73230
73231 2003-10-06  Bruno Haible  <bruno@clisp.org>
73232
73233         * lib/fatal-signal.h: New file, from GNU gettext.
73234         * lib/fatal-signal.c: New file, from GNU gettext.
73235
73236 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73237
73238         * README: Rework advice for preventing empty .o files.
73239         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73240         not <sys/types.h>.
73241
73242 2003-10-04  Karl Berry  <karl@gnu.org>
73243
73244         * lib/argp*: update from libc.
73245
73246 2003-10-04  Karl Berry  <karl@gnu.org>
73247
73248         * config/config.{guess,sub}: update from config.
73249
73250 2003-10-02  Bruno Haible  <bruno@clisp.org>
73251
73252         * modules/lchown (Include): Add lchown.h.
73253         * modules/time_r (Include): Use "..." syntax.
73254         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73255
73256 2003-10-01  Simon Josefsson  <jas@extundo.com>
73257
73258         * MODULES.html.sh (func_all_modules): Move gethostname from section
73259         'based on' to section 'lacking' POSIX:2001.
73260
73261 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73262
73263         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73264         to output mode on the same stream.
73265
73266 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73267
73268         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73269         Fix arg typo in previous patch.
73270
73271 2003-09-28  Jim Meyering  <jim@meyering.net>
73272
73273         * lib/error.c: Correct cpp indentation.
73274
73275 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73276
73277         * modules/free: New file.
73278
73279 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73280
73281         * m4/free.m4: New file.
73282
73283 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73284
73285         * lib/minmax.h (MIN, MAX)
73286         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73287         Omit the special code that used __typeof__, since we worry that
73288         it could be more trouble than it's worth.  See:
73289         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73290         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73291
73292         * lib/free.c: New file.
73293
73294 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73295
73296         Trivial fixes to Makefile.am parts of module listings.
73297         * modules/strstr: Append strstr.h to lib_SOURCES.
73298         * modules/strcase: Likewise, for strcase.h.
73299
73300 2003-09-27  Karl Berry  <karl@gnu.org>
73301
73302         * config/mkinstalldirs: update from automake.
73303
73304 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73305
73306         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73307         (error_tail): Do not loop, reallocating temporary buffer, since
73308         the output cannot contain more wide characters than the input
73309         contains bytes, the size must be big enough already.  This avoids
73310         one potential size overflow calculation.  Check for size overflow
73311         when calculating temporary buffer size.  Free temporary buffer
73312         when done, if it was allocated with malloc; this plugs a memory
73313         leak.  Remove casts from void * to pointers, that are no longer
73314         needed now that we're assuming C89 or better.
73315
73316         Merge error changes from glibc.
73317
73318         * lib/error.c, error.h: Update copyright notice header to match glibc.
73319         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73320         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73321         Disable cancellation while printing error.
73322         * lib/error.h: Prepend __ to parameter names.
73323
73324 2003-09-26  Jim Meyering  <jim@meyering.net>
73325
73326         * lib/error.c (error_tail): Move some declarations
73327         into inner scope where the local variables are used.
73328
73329 2003-09-26  Bruno Haible  <bruno@clisp.org>
73330
73331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73332         stpncpy().
73333         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73334
73335 2003-09-26  Bruno Haible  <bruno@clisp.org>
73336
73337         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73338         (stpncpy): Define as alias for gnu_stpncpy.
73339         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73340
73341 2003-09-25  Simon Josefsson  <jas@extundo.com>
73342
73343         * lib/xgetdomainname.h: New file.
73344         * lib/xgetdomainname.c: New file.
73345
73346 2003-09-25  Simon Josefsson  <jas@extundo.com>
73347             Bruno Haible  <bruno@clisp.org>
73348
73349         * modules/getdomainname: New file.
73350         * modules/xgetdomainname: New file.
73351         * MODULES.html.sh (func_all_modules): Add getdomainname,
73352         xgetdomainname.
73353
73354 2003-09-25  Simon Josefsson  <jas@extundo.com>
73355             Bruno Haible  <bruno@clisp.org>
73356
73357         * m4/getdomainname.m4: New file.
73358
73359 2003-09-25  Simon Josefsson  <jas@extundo.com>
73360             Bruno Haible  <bruno@clisp.org>
73361
73362         * lib/getdomainname.h: New file.
73363         * lib/getdomainname.c: New file.
73364
73365 2003-09-25  Karl Berry  <karl@gnu.org>
73366
73367         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73368
73369 2003-09-25  Karl Berry  <karl@gnu.org>
73370
73371         * config/install-sh: update from automake.
73372
73373 2003-09-25  Bruno Haible  <bruno@clisp.org>
73374
73375         * modules/version-etc-2: New file, from modules/version-etc with
73376         modifications.
73377         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73378
73379 2003-09-25  Bruno Haible  <bruno@clisp.org>
73380
73381         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73382         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73383
73384 2003-09-24  Simon Josefsson  <jas@extundo.com>
73385
73386         * modules/xgethostname: Add xgethostname.h.
73387
73388 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73389
73390         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73391         the buffer associated with the argument.  Bug reported by
73392         Simon Josefsson.
73393
73394 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73395
73396         * README: Document assumptions that 'int' is at least 32 bits
73397         wide, that integer arithmetic is 2's complement without overflow,
73398         that there are no holes in integer values, that adding sizes of
73399         two nonoverlapping objects can't overflow, and that all-bits-zero
73400         yields scalar zero.  Fix spelling and capitalization typos.
73401
73402 2003-09-19  Karl Berry  <karl@gnu.org>
73403
73404         * lib/argp.h: update from libc.
73405
73406 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73407
73408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73409         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73410         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73411
73412 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73413
73414         * gnulib-tool: Use "test -h", not "test -L", for portability
73415         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73416         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73417         (sed_extract_prog): Issue s commands one-by-one, rather than
73418         using \| in one s command.
73419
73420 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73421
73422         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73423         input error, instead of returning NULL the next time we are called
73424         (and therefore losing track of errno).
73425
73426 2003-09-16  Bruno Haible  <bruno@clisp.org>
73427
73428         * gnulib-tool (func_create_testdir): Warn about duplicated
73429         dependencies.
73430
73431 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73432
73433         * modules/argmatch, modules/fatal, modules/obstack,
73434         modules/xalloc, modules/xgethostname: Sort dependencies by
73435         importance, not alphabetically.
73436
73437 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73438
73439         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73440         fails, so that the caller gets the proper errno.
73441
73442         * lib/readutmp.c (read_utmp): Likewise.
73443         Check for fstat error.  Close stream and free storage
73444         when failing.
73445
73446 2003-09-14  Karl Berry  <karl@gnu.org>
73447
73448         * config/srclist.txt (strdup.c): disable for c89 changes.
73449
73450 2003-09-14  Jim Meyering  <jim@meyering.net>
73451
73452         * lib/getloadavg.c: Correct cpp indentation.
73453         * lib/strdup.c: Likewise.
73454         * lib/vasnprintf.c: Likewise.
73455
73456 2003-09-14  Bruno Haible  <bruno@clisp.org>
73457
73458         * modules/fwriteerror: New file.
73459         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73460
73461 2003-09-14  Bruno Haible  <bruno@clisp.org>
73462
73463         * lib/fwriteerror.h: New file.
73464         * lib/fwriteerror.c: New file.
73465
73466 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73467
73468         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73469         modules/xgethostname, modules/xalloc: Depend on exit.
73470
73471 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73472
73473         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73474
73475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73476         and AC_MINIX, too, so that their extensions are available.
73477
73478         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73479         This macro has been superseded by gl_BACKUPFILE.
73480
73481         More patches to assume C89 or better.
73482
73483         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73484
73485         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73486         unconditionally.
73487         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73488         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73489         Include <string.h>, <stdlib.h> unconditionally.
73490         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73491         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73492         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73493         headers or for string.h.
73494         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73495         or strtoul.
73496
73497         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73498         headers.
73499         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73500         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73501         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73502         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73504         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73505         memcpy, memset.
73506         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73507         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73508         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73509         strtol.
73510         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73511         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73513         strtoul.
73514
73515 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73516
73517         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73518         * lib/obstack.c [!defined _LIBC]: Likewise.
73519         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73520         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73521         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73522
73523         More changes to assume C89 or better.
73524
73525         * lib/error.c (error_tail): Assume vprintf.
73526
73527         * lib/argmatch.c (getenv): Remove decl.
73528         * lib/progreloc.c (get_full_program_name): Define via prototype.
73529         * lib/setenv.c (clearenv): Likewise.
73530         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73531         needed.
73532         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73533         (malloc, memcpy): Remove decls.
73534         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73535         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73536         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73537         (memcpy): Remove macro.
73538         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73539         (__P): Remove.  All uses removed.
73540         (PTR): Remove.  All uses changed to void *.
73541         (CHAR_BIT, NULL): Remove.
73542         (spaces, zeros, memset_space, memset_zero)
73543         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73544         Remove.
73545         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73546         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73547         Define with prototype.
73548         Remove now-unnecessary prototype decl.
73549         (extra_args_spec): Assume ANSI C.  All uses changed.
73550         (extra_args_spec_iso): Remove.
73551         (my_strftime, emacs_strftimeu): Define via prototype.
73552         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73553         unconditionally.
73554         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73555         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73556         (strtoul, strtol): Remove decls.
73557         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73558         LONG_MAX): Remove.
73559         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73560         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73561         (LOCALE_PARAM_PROTO): New macro.
73562         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73563         (INTERNAL (strtol), strtol): Define with a prototype.
73564         (PARAMS): Remove.  All uses removed.
73565         * lib/tempname.c: Include <string.h> unconditionally.
73566         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73567         * lib/xgethostname.c (main): Define with a prototype.
73568         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73569         Include <stdlib.h> unconditionally.
73570         (calloc, malloc, realloc, free): Remove decls.
73571         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73572         Include <stdlib.h> unconditionally.  Sort include file names.
73573         (strtod): Remove.
73574         (xstrtod): Define with a prototype.
73575         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73576         (strtol, strtoul): Remove decls.
73577
73578 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73579
73580         More patches to assume C89 or better.
73581         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73582         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73583         string.h, memchr, STDC_HEADERS.
73584
73585 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73586
73587         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73588         Include <stdlib.h>, <string.h> unconditionally.
73589         Remove now-unnecessary cast to char *.
73590         * lib/strnlen.c: Include <string.h> unconditionally.
73591         * lib/yesno.c (yesno): Define with a prototype.
73592
73593 2003-09-11  Bruno Haible  <bruno@clisp.org>
73594
73595         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73596
73597 2003-09-10  Jim Meyering  <jim@meyering.net>
73598
73599         * lib/error.c: Correct indentation of cpp directives.
73600
73601 2003-09-10  Bruno Haible  <bruno@clisp.org>
73602
73603         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73604         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73605         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73606         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73607         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73608         <stdlib.h> and <string.h> checks.
73609         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73610         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73611
73612 2003-09-10  Bruno Haible  <bruno@clisp.org>
73613
73614         * lib/strcspn.c: Include <string.h> unconditionally.
73615         * lib/strpbrk.c: Include <string.h> unconditionally.
73616         * lib/strstr.c: Include <string.h> unconditionally.
73617         * lib/unicodeio.c: Include <string.h> unconditionally.
73618         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73619         * lib/unsetenv.c: Likewise.
73620         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73621         * lib/yesno.c: Include <stdlib.h> unconditionally.
73622         (rpmatch): Add prototype.
73623
73624 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73625
73626         More patches to assume C89 or better.
73627         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73628         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73629         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73630         or for string.h.
73631         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73632         stdlib.h.
73633         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73634         C headers.
73635         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73636         string.h.
73637         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73638         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73639         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73640         or for string.h.
73641         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73642         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73643         C headers.
73644         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73645         memcpy.
73646         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73647         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73648         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73649         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73650         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73651         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73652         string.h, free.
73653         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73654         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73655         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73656         C headers, or for string.h.
73657         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73658         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73659         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73660         headers, memory.h, stdlib.h, string.h, strings.h.
73661         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73662         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73663         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73664         strchr.
73665         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73666         headers, memory.h, string.h.
73667         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73668         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73669         free.
73670         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73671         headers.
73672         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73673         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73674         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73675         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73676         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73677
73678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73679
73680         More K&R removal.
73681
73682         * lib/acosl.c (main): Use a prototype.
73683         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73684         tanl.c: Likewise.
73685
73686         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73687
73688         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73689         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73690         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73691         with a prototype.
73692         * lib/getopt.c (const): Remove macro.
73693         Include <string.h> unconditionally.
73694         (my_index): Remove; all uses changed to strchr.
73695         (strlen): Remove decl.
73696         (exchange): Remove forward decl; no longer needed.
73697         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73698         Define with prototype.
73699         * lib/getopt1.c (const): Remove macro.
73700         (getopt_long, getopt_long_only, main): Define with prototype.
73701
73702         * lib/getugroups.c: Include <string.h> unconditionally.
73703
73704         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73705         (getusershell, setusershell, endusershell, readname, main):
73706         Define with prototypes.
73707
73708         * lib/group-member.c: Include group-member.h first.
73709         Include <stdlib.h> unconditionally.
73710
73711         * lib/hard-locale.c: Include hard-locale.h first.
73712         Include <stdlib.h>, <string.h> unconditionally.
73713
73714         * lib/hash.c (free, malloc): Remove decls.
73715         Include <stdlib.h> unconditionally.
73716
73717         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73718         (getenv): Do not declare.
73719
73720         * lib/idcache.c: Include <string.h> unconditionally.
73721
73722         * lib/long-options.c: Include long-options.h first, to test interface.
73723         Include <stdlib.h> unconditionally.
73724
73725         * lib/makepath.c: Include makepath.h first, to test interface.
73726         Include <stdlib.h> and <string.h> unconditionally.
73727
73728         * lib/linebuffer.c: Include <stdlib.h>.
73729         (free): Remove decl.
73730
73731         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73732         stddef.h. rpl_malloc returns void *, not char *.
73733         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73734         prototype.
73735
73736         * lib/md5.h: Include <limits.h> unconditionally.
73737         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73738         (__P): Remove; all uses removed.
73739         * lib/md5.c: Include "md5.h" first.
73740         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73741         md5_buffer, md5_process_bytes, md5_process_block):
73742         Define with prototypes.
73743         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73744         * lib/sha.c: Include "sha.h" first.
73745         Include <stdlib.h>, <string.h> unconditionally.
73746
73747         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73748         * lib/memcmp.c (__ptr_t): Likewise.
73749         * lib/memrchr.c (__ptr_t): Likewise.
73750         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73751         Include <string.h> unconditionally.
73752         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73753         * lib/memchr.c: Include <stdlib.h> unconditionally.
73754         * lib/memchr.c (LONG_MAX): Remove.
73755         * lib/memrchr.c (LONG_MAX): Likewise.
73756         * lib/memchr.c (__memchr): Define via a prototype.
73757         * lib/memrchr.c (__memrchr): Likewise.
73758         * lib/memcmp.c (__P): Remove, and remove all uses.
73759         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73760         Remove forward decls; no longer needed.
73761         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73762         Use types required by C89 in prototype.
73763
73764         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73765         * lib/savedir.c: Likewise.
73766         * lib/mkdir.c (free): Remove decl.
73767         * lib/rmdir.c (rmdir): Define with a prototype.
73768         * lib/savedir.c: Include savedir.h first, to test interface.
73769
73770         * lib/mktime.c (STDC_HEADERS): Remove.
73771         Include <stdlib.h>, <string.h> unconditionally.
73772
73773         * lib/modechange.c: Include <stdlib.h> unconditionally.
73774         (malloc): Remove decl.
73775
73776         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73777         (free): Remove decl.
73778
73779         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73780         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73781         (This type really should be intptr_t, but that's a C99ism.)
73782         (_obstack_memcpy): Remove: all uses changed to memcpy.
73783         Include <string.h> unconditionally.
73784         (struct obstack): Assume __STDC__ for types of members
73785         chunkfun, freefun, extra_arg.
73786         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73787         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73788         obstack_begin, obstack_specify_allocation,
73789         obstack_specify_allocation_with_arg, obstack_chunkfun,
73790         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73791         Remove unprototyped decls and the macros that use them.
73792         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73793         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73794         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73795         (defined __STDC__ && __STDC__)]:
73796         Remove nonprototyped code.
73797         Include <stdlib.h> unconditionally.
73798         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73799         _obstack_allocated_p, _obstack_free, obstack_free,
73800         _obstack_memory_used, print_and_abort):
73801         Define using prototypes.
73802         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73803         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73804         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73805         obstack_next_free, obstack_object_size, obstack_room) [0]:
73806         Remove unused, unprototyped code.
73807
73808         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73809
73810         * lib/physmem.c (physmem_total, physmem_available, main): Define
73811         with prototypes.
73812
73813         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73814         (main): Define with a prototype.
73815
73816         * lib/posixver.c (getenv): Remove decl.
73817
73818         * lib/putenv.c (malloc): Returns void *, not char *.
73819         Include <string.h> unconditionally.
73820         (strchr, memcpy, NULL): Do not define.
73821
73822         * lib/readtokens.c: Include readtokens.h first, to test interface.
73823         Include <stdlib.h>, <string.h> unconditionally.
73824         (init_tokenbuffer): Define with a prototype.
73825
73826         * lib/regex.c (PARAMS): Remove.  All uses removed.
73827         All uses of _RE_ARGS removed, too.
73828         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73829         unconditionally.
73830         (bzero): Assume memset exists.
73831         (memcmp, memcpy, NULL): Remove.
73832         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73833         char, or assignments to local vars of type signed char.
73834         (init_syntax_once, PREFIX(extract_number_and_incr),
73835         PREFIX(print_partial_compiled_pattern),
73836         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73837         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73838         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73839         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73840         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73841         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73842         wcs_compile_range, byte_compile_range, truncate_wchar,
73843         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73844         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73845         count_mbs_length, wcs_re_match_2_internal,
73846         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73847         PREFIX(alt_match_null_string_p),
73848         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73849         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73850         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73851         now-unnecessary declaration, if any.
73852         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73853         regcomp, regexec):
73854         Remove now-unnecessary casts among pointer types.
73855         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73856
73857         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73858         (free): Remove decl.
73859
73860         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73861
73862         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73863         (free): Remove decl.
73864
73865         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73866         * lib/xgetcwd.c: Likewise.
73867
73868         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73869         (free): Remove decl.
73870
73871         * lib/strchrnul.c (strchrnul): Define with a prototype.
73872         Fix bug: c_in was not converted to char before searching.
73873
73874         The following changes are not K&R related:
73875
73876         * lib/group-member.h: Include <sys/types.h>, so that this file is
73877         self-contained.
73878         * lib/makepath.h: Likewise.
73879
73880         * lib/getusershell.c (readname, default_index, line_size, readname):
73881         Use size_t, not int, for sizes.
73882         (readname): If the size overflows, report an error instead of
73883         looping forever.
73884
73885 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73886
73887         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73888         libc.
73889
73890 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73891
73892         * README: New section: portability guidelines.
73893
73894 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73895
73896         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73897         C89 spec.
73898
73899 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73900
73901         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73902
73903 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73904
73905         Assume C89 or better; remove K&R cruft.
73906         A few of these changes were first proposed by Derek Robert Price
73907         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73908
73909         * lib/addext.c: Include <string.h> unconditionally.
73910         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73911         Don't declare getenv or malloc.
73912
73913         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73914         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73915         (NULL): Remove.
73916         (find_stack_direction, alloca): Use prototypes.
73917
73918         * lib/atexit.c (atexit): Define using a prototype.
73919
73920         * lib/basename.c, dirname.c, stripslash.c:
73921         Include <string.h> unconditionally.
73922
73923         * lib/bcopy.c: Include <stddef.h>.
73924         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73925
73926         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73927
73928         * lib/error.h (error, error_at_line, error_print_progname)
73929         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73930         * lib/error.c: Include error.h first, to check interface.
73931         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73932         (VA_START): Remove; all uses changeed to va_start.
73933         (exit, strerror): Remove decls.
73934         (error_print_progname): Prototype uncondionally.
73935         Don't include <errno.h>; no longer needed.
73936         (private_strerror): Remove.
73937         (error_tail): Always define.
73938         (error, error_at_line): Assume C89 or better; always use prototypes.
73939         * lib/fatal.c: Include "fatal.h" first, to test interface.
73940         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73941         (VA_START): Remove; all uses changed to va_start.
73942         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73943         this case.
73944         (exit): Remove decl.
73945         (fatal): Prototype unconditionally.  Assume va_start works.
73946         Abort at end, to pacify gcc.
73947
73948         * lib/euidaccess.c (main): Define with a prototype.
73949
73950         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73951
73952         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73953
73954         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73955         prototypes.
73956         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73957         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73958         (getenv): Remove decl.
73959         (fnmatch): Define using a prototype.
73960         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73961         (FCT): Define using a prototype.
73962
73963         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73964
73965         * lib/gethostname.c: Include <stddef.h>.
73966         (gethostname): Define with prototype.  Length is size_t, not int.
73967
73968 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73969
73970         Assume C89 or better; remove K&R cruft.
73971         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73972         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73973         string.h, getenv, malloc.
73974         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73975         headers.
73976         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73977         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73978         do not check for strerror.
73979         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73980         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73981         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73982         do not check for doprnt or vprintf.
73983         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73984         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73985
73986 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73987
73988         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73989         getversion.c should have been removed then, but was accidentally
73990         preserved.
73991
73992         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73993         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73994
73995 2003-09-08  Karl Berry  <karl@gnu.org>
73996
73997         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73998                 config, forget about prep.
73999
74000         * config/depcomp, missing: update from automake.
74001
74002 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74003
74004         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74005         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74006
74007 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74008
74009         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74010         copy_tm_result.  Bug reported by Simon Josefsson in
74011         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74012
74013 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74014
74015         * m4/time_r.m4: New file.
74016         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74017         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74018         is. Check for timegm declaration.
74019         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74020         Do not check for gmtime_r.
74021         Replace mktime if __mktime_internal does not exist and if mktime
74022         hasn't been replaced already.
74023
74024 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74025
74026         * lib/time_r.c, lib/time_r.h: New files.
74027
74028         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74029         __localtime_r.
74030         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74031         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74032
74033         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74034         __gmtime_r.
74035         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74036         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74037         Include <time_r.h>.
74038
74039         * lib/timegm.c: Switch to glibc implementation, with the following
74040         changes:
74041         [defined HAVE_CONFIG_H]: Include <config.h>.
74042         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74043         (__mktime_internal) [!defined _LIBC]: New decl.
74044         (__gmtime_r) [!defined _LIBC]: New macro and function.
74045         (timegm): Use a prototype, since gnulib assumes C89.
74046         Do not bother declaring tmp to be const, as it's not really usefu.
74047         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
74048         (timegm): Declare only if HAVE_DECL_TIMEGM.
74049
74050 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74051
74052         * MODULES.html.sh (func_all_modules): Add time_r.
74053         * modules/time_r: New file.
74054         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74055         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74056
74057 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74058
74059         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74060         Bug reported by Lute Kamstra in
74061         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74062
74063         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74064         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74065         course with correspondingly smaller numbers for tomorrow and
74066         yesterday.  From Tadayoshi Funaba.  Originally installed into
74067         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74068         coreutils merge?).
74069
74070 2003-08-31  Simon Josefsson  <jas@extundo.com>
74071
74072         * modules/timegm: New file.
74073         * MODULES.html.sh (func_all_modules): Add timegm.
74074
74075 2003-08-31  Simon Josefsson  <jas@extundo.com>
74076
74077         * m4/timegm.m4: New file.
74078
74079 2003-08-31  Simon Josefsson  <jas@extundo.com>
74080
74081         * lib/timegm.h: New file.
74082         * lib/timegm.c: New file.  Based on
74083         wget-1.8.2/src/http.c:mktime_from_utc.
74084
74085 2003-08-31  Karl Berry  <karl@gnu.org>
74086
74087         * lib/argp.h: update from libc.
74088
74089 2003-08-28  Bruno Haible  <bruno@clisp.org>
74090
74091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74092         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74093         followed by '#define fnmatch fnmatch_posix' gives an error.
74094
74095 2003-08-28  Bruno Haible  <bruno@clisp.org>
74096
74097         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74098         warning on QNX, which defines O_BINARY to 000000.
74099
74100 2003-08-27  Jim Meyering  <jim@meyering.net>
74101
74102         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74103         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74104         would fail after 32.  Reported by Danny Levinson.  Details here:
74105         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74106
74107 2003-08-24  Bruno Haible  <bruno@clisp.org>
74108
74109         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74110         MSVC7 <stdio.h> is included later.
74111
74112 2003-08-22  Simon Josefsson  <jas@extundo.com>
74113
74114         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74115
74116 2003-08-20  Karl Berry  <karl@gnu.org>
74117
74118         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74119
74120 2003-08-20  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/progname: New file.
74123         * MODULES.html.sh (func_all_modules): Add progname.
74124
74125 2003-08-20  Bruno Haible  <bruno@clisp.org>
74126
74127         * lib/progname.h: New file, from GNU gettext.
74128         * lib/progname.c: New file, from GNU gettext.
74129         * lib/progreloc.c: New file, from GNU gettext.
74130
74131 2003-08-19  Jim Meyering  <jim@meyering.net>
74132
74133         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74134         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74135
74136 2003-08-19  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74139         more.
74140
74141 2003-08-19  Bruno Haible  <bruno@clisp.org>
74142
74143         * lib/xstrdup.c: Assume <string.h> exists.
74144
74145 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74146
74147         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74148         in makefile rules.
74149
74150 2003-08-18  Jim Meyering  <jim@meyering.net>
74151
74152         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74153         * m4/lib-ld.m4: Likewise.
74154
74155 2003-08-18  Jim Meyering  <jim@meyering.net>
74156
74157         * lib/setenv.h: Indent nested cpp directive.
74158         * lib/vasnprintf.c: Remove trailing blanks.
74159
74160 2003-08-17  Simon Josefsson  <jas@extundo.com>
74161
74162         * modules/xstrndup: New file.
74163         * MODULES.html.sh (func_all_modules): Add xstrndup.
74164
74165 2003-08-17  Simon Josefsson  <jas@extundo.com>
74166
74167         * modules/argp: Fix autoconf macro name. Add more dependencies.
74168
74169 2003-08-17  Simon Josefsson  <jas@extundo.com>
74170
74171         * m4/xstrndup.m4: New file.
74172
74173 2003-08-17  Simon Josefsson  <jas@extundo.com>
74174
74175         * m4/argp.m4: New file.
74176
74177 2003-08-17  Simon Josefsson  <jas@extundo.com>
74178             Bruno Haible  <bruno@clisp.org>
74179
74180         * lib/xstrndup.h: New file.
74181         * lib/xstrndup.c: New file.
74182
74183 2003-08-17  Bruno Haible  <bruno@clisp.org>
74184
74185         * modules/strndup (Files, Include): Add lib/strndup.h.
74186
74187 2003-08-17  Bruno Haible  <bruno@clisp.org>
74188
74189         * modules/euidaccess (Files): Add lib/euidaccess.h.
74190
74191 2003-08-17  Bruno Haible  <bruno@clisp.org>
74192
74193         * lib/strndup.h: New file.
74194
74195 2003-08-17  Bruno Haible  <bruno@clisp.org>
74196
74197         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74198         like AC_GNU_SOURCE.
74199         * modules/extensions (configure.ac): Comment out the invocation of
74200         gl_USE_SYSTEM_EXTENSIONS.
74201
74202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74203
74204         Merges from coreutils, etc.
74205         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74206         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74207         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74208         fixing a typo.
74209         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74210         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74211
74212 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74213
74214         Document merge from coreutils.
74215         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74216         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74217         * modules/utime: Add m4/utimes-null.m4.
74218
74219 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74220
74221         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74222         space, undoing this 2003-08-12 change:
74223         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74224
74225 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74226
74227         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74228         strtoul.c from libc, undoing this 2003-08-12 change:
74229         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74230
74231 2003-08-16  Jim Meyering  <jim@meyering.net>
74232
74233         Merges from coreutils.
74234         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74235         prefix.  Adjust cache variables similarly.  Create 500 rather than
74236         just 300 files, to exercise bug on Darwin6.5, too.
74237         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74238         $missing_dir.
74239         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74240         AM_SYS_POSIX_TERMIOS.
74241         Reported by mkc@mathdogs.com.
74242         Also change use of $am_cv_sys_posix_termios
74243         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74244         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74245         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74246         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74247         in /proc/mounts until it finds one with matching device number.  This
74248         is unnecessary when the FILE argument *is* a mount point.  No stat call
74249         is necessary in that case.  So, disable the statvfs-testing code on
74250         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74251         as RedHat bug# 84846.
74252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74253         to 1MB, so as not to render systems with no stack size limit (e.g.,
74254         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74255         Include <unistd.h>.  On some systems,
74256         it is required for the definition of _SC_PAGESIZE.
74257
74258 2003-08-16  Jim Meyering  <jim@meyering.net>
74259
74260         Merge from coreutils.
74261         * lib/xstrtoimax.c: #else #if -> #elif.
74262         * lib/xstrtoumax.c: Likewise.
74263
74264 2003-08-16  Jim Meyering  <jim@meyering.net>
74265
74266         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74267         * m4/utimes.m4: Removed.
74268         * m4/utimes-null.m4: Renamed from utimes.m4.
74269
74270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74271         to 1MB, so as not to render systems with no stack size limit (e.g.,
74272         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74273         Include <unistd.h>.  On some systems,
74274         it is required for the definition of _SC_PAGESIZE.
74275
74276 2003-08-16  Jim Meyering  <jim@meyering.net>
74277         and Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         Merges from coreutils, etc.
74280
74281         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74282         using the latest version from cvs.  This avoids problems with #line
74283         directives using a vendor (Sun) compiler.
74284         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74285         Don't set GETGROUPS_LIB here; now it's
74286         done via getgroups.m4's wrapper function.
74287         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74288         rather than just in sh-util/configure.in, so that the
74289         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74290         same.
74291         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74292         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74293         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74294         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74295         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74296         Remove code that is now done by the newly-required macros.
74297         Append $(EXEEXT) to DF_PROG.
74298         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74299         Do not invoke or require the following here,
74300         since prereq.m4 or some gnulib .m4 now does this for us:
74301         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74302         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74303         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74304         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74305         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74306         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74307         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74308         AC_FUNC_OBSTACK.
74309         Do not replace the following functions, as this is now the job
74310         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74311         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74312         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74313         atexit getpass, strdup, getpagesize.
74314         Replace 'raise'.
74315         Do not check for the following functions, as this is now the job
74316         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74317         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74318         setregid.
74319         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74320         Check for sys/sysctl.h.
74321         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74322         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74323         of checking for ssize_t ourselves.
74324
74325         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74326         Require every macro that gnulib/modules/* suggests for us.
74327         (jm_PREREQ_ADDEXT): New macro.
74328         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74329         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74330
74331         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74332         (gl_PHYSMEM): Use it.
74333         Also check for `table' function.
74334         Check for new headers and functions.
74335         Add check for sys/sysmp.h.
74336         With suggestions from Kaveh Ghazi.
74337         Ignore headers that are present but cannot be compiled.  This
74338         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74339         C 5.4.
74340
74341 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74342
74343         Document merge from coreutils.
74344         * modules/userspec: Depend on posixver.
74345         * modules/strftime: Depend on tzset.
74346
74347 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74348
74349         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74350         rather than tab, after '#' in shell-script copyright notices.
74351         Suggested by Bruno Haible.
74352
74353 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74354
74355         * config/srclist-update: Use three spaces, rather than tab, after '#'
74356         in shell-script copyright notices.  Suggested by Bruno Haible.
74357         Remove unnecessary parenthesization in regular expression.
74358
74359 2003-08-15  Jim Meyering  <jim@meyering.net>
74360
74361         Merge from coreutils.
74362         * lib/xgethostname.c: Include <stdlib.h>.
74363         (xghostname): Don't exit for anything other than memory-related
74364         failure; just return NULL.
74365         * lib/userspec.c: Include "posixver.h".
74366         (parse_user_spec): Accept `.' as a separator only
74367         in pre-POSIX-200112 mode.
74368         * lib/strtoimax.c: Use #elif rather than #else #if.
74369         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74370         Remove function, now that we can rely on a working tzset function.
74371         [!_LIBC]: Ensure that the required autoconf test has been run.
74372         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74373         Use underlying_strftime for %r.
74374         * lib/sha.c: Merge in some clean-up and optimization changes from
74375         glibc.
74376         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74377         Ensure that it is a multiple of 64.
74378         Rearrange loop exit tests so as to avoid performing an
74379         additional fread after encountering an error or EOF.
74380         * lib/realloc.c: Update copyright date.
74381
74382 2003-08-15  Jim Meyering  <jim@meyering.net>
74383         and Paul Eggert  <eggert@twinsun.com>
74384
74385         Merge from coreutils.
74386         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74387         member but strut utmpx does not.  Needed for AIX 4.3.3.
74388         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74389
74390 2003-08-15  Jim Meyering  <jim@meyering.net>
74391         and Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         Merges from coreutils, etc.
74394         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74395         Require gl_FUNC_TZSET_CLOBBER.
74396         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74397         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74398         members.
74399
74400 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74401
74402         Help the merge from coreutils.
74403         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74404         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74405         * m4/tzset.m4: Use it too.
74406
74407 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74408
74409         * modules/tzset: New file.
74410
74411 2003-08-14  Jim Meyering  <jim@meyering.net>
74412
74413         Merges from coreutils.
74414         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74415         variable names, rather than @FNMATCH_H@.
74416         * modules/alloca: Likewise for $(ALLOCA_H).
74417
74418         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74419         the three copies of the literal target, `fnmatch.h'.
74420         * modules/alloca (alloca.h): Likewise.
74421
74422 2003-08-14  Jim Meyering  <jim@meyering.net>
74423
74424         Merge from coreutils.
74425         * m4/tzset.m4: New file.
74426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74427         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74428         otherwise, AIX 5.1 systems would end up using the latter.
74429         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74430         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74431         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74432         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74433
74434 2003-08-14  Jim Meyering  <jim@meyering.net>
74435
74436         Merge from coreutils.
74437         * lib/obstack.h: Whitespace changes.
74438         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74439         and xcalloc return values.
74440         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74441         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74442         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74443         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74444         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74445         error from mntctl.
74446         Use mntctl's return value to drive the entry-processing loop, since
74447         we can't rely on the value of the vmt_length member in the last
74448         entry.  On some systems doing so could result in exhausting
74449         virtual memory.  Based in part on a patch from Mike Jetzer.
74450
74451 2003-08-14  Jim Meyering  <jim@meyering.net>
74452         and Paul Eggert  <eggert@twinsun.com>
74453
74454         Merges from coreutils, plus other fixes.
74455         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74456         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74457         for credits and details.  Thanks to Kaveh Ghazi for helping
74458         to keep these files in sync.
74459         (ARRAY_SIZE): Define it.
74460         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74461         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74462         (memcasecmp): Don't assume size_t fits in unsigned int.
74463         Remove casts and duplicate code.
74464         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74465         (memcpy): Remove definition.
74466         Merge in some clean-up and optimization changes from glibc.
74467         [BLOCKSIZE]: Move definition to top of file.
74468         Ensure that it is a multiple of 64.
74469         Rearrange loop exit tests so as to avoid performing an
74470         additional fread after encountering an error or EOF.
74471         * lib/md5.h (md5_uintptr): Define.
74472         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74473         return to the initial working directory.  Preserve errno
74474         for caller.
74475         * lib/idcache.c: Include "xalloc.h".
74476         (xmalloc, xrealloc): Remove decls.
74477         (getuser): Remove casts no longer required in C89.
74478         * lib/human.c: Include stdio.h, for sprintf.
74479         * lib/group-member.c: Include "xalloc.h".
74480         (xmalloc, xrealloc): Remove decls.
74481         (get_group_info): Remove casts no longer required in C89.
74482         * lib/getusershell.c (readname): Remove casts no longer required in
74483         C89.
74484         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74485         * lib/getline.c: Whitespace fix, from coreutils.
74486
74487 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74488
74489         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74490         Check for isascii.
74491
74492         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74493         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74494         Undo previous (whitespace-only) change.
74495
74496 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74497
74498         * lib/exclude.c: Include <ctype.h>
74499         (IN_CTYPE_DOMAIN): New macro.
74500         (is_space): New fn.
74501         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74502         and empty lines.
74503
74504         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74505         Undo previous (whitespace-only) change.
74506
74507 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74508
74509         * config/srclist-update: Change update back to the old behavior,
74510         leaving whitespace alone.  Use one 'sed' command rather than a
74511         pipeline.
74512         (fixlicense): Now a variable, not a function.
74513         (remove_trailing_blanks): Remove.
74514         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74515         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74516         Undo previous (whitespace-only) change.
74517
74518 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74519
74520         Merge from coreutils.
74521         * modules/euidaccess: Add lib_SOURCES, include for new
74522         file euidaccess.h
74523
74524 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74525
74526         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74527         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74528         Normalize leading white space and remove trailing white space.
74529
74530         Merge from coreutils
74531         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74532
74533         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74534         0.12.1.  These files are now being upgraded automatically by
74535         ../config/srclist-update.
74536
74537 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74538
74539         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74540         Normalize leading white space and remove trailing white space.
74541         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74542         notice, as per ../config/srclist-update.
74543
74544         Merge from coreutils.
74545         * lib/euidaccess.h: New file.
74546         * lib/euidaccess.c: Include it.
74547         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74548         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74549         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74550
74551 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74552
74553         * config/srclist-update: Add copyright notice.
74554         (remove_id_lines, remove_trailing_blanks): New constants.
74555         (fixfile): Use them to normalize spacing a bit in copied files.
74556         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74557         Normalize leading white space and remove trailing white space.
74558
74559         * config/texinfo.tex: Sync with texinfo.
74560
74561         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74562         strtoul.c from libc, to merge coreutils whitespace changes.
74563
74564         * config/srclist.txt: Get the following m4 files from gettext:
74565         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74566         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74567         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74568         wint_t.m4.
74569
74570 2003-08-12  Karl Berry  <karl@gnu.org>
74571
74572         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74573         been made.
74574
74575 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74576
74577         * modules/gnu-source, m4/gnu-source.m4:
74578         Remove; we're assuming Autoconf 2.54 or later now.
74579         Suggested by Bruno Haible.
74580         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74581
74582 2003-08-11  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74585
74586 2003-08-11  Bruno Haible  <bruno@clisp.org>
74587
74588         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74589         (vasnprintf): Use it instead of wcslen.
74590
74591 2003-08-11  Bruno Haible  <bruno@clisp.org>
74592
74593         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74594         value to ensure that _Bool promotes to int. Use #define for _Bool when
74595         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74596
74597 2003-08-10  Karl Berry  <karl@gnu.org>
74598
74599         * lib/regex.h: update from libc (whitespace fix).
74600
74601 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74602
74603         Merge some files from coreutils.  These changes were
74604         originally made by Jim Meyering.
74605         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74606         many older Unixes require this.
74607         * lib/alloca.c (alloca): Remove cast to argument of free;
74608         no longer needed in C89.
74609         * lib/alloca_.h, regex.h: Fix white space to match
74610         what GNU indent does.
74611
74612 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74613
74614         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74615         apparently Emacs's Unicode mode got confused before my 2003-08-05
74616         checkin.
74617
74618 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74619
74620         * m4/extensions.m4: New file.
74621         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74622         Require gl_USE_SYSTEM_EXTENSIONS.
74623         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74624         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74625
74626 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74627
74628         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74629         * modules/extensions, modules/gnu-source: New files.
74630         * modules/timespec, modules/unlocked-io: Depend on extensions.
74631
74632 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74633
74634         * modules/restrict: New file.
74635         * MODULES.html.sh (func_all_modules): Add restrict.
74636         * modules/regex: Depend on restrict.
74637
74638 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74639
74640         * m4/restrict.m4: New file.
74641         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74642
74643 2003-08-07  Bruno Haible  <bruno@clisp.org>
74644
74645         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74646         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74647
74648 2003-08-07  Bruno Haible  <bruno@clisp.org>
74649
74650         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74651         makes the module 'getndelim2' compatible with the module 'getline'.
74652
74653 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74654
74655         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74656         byte with "\201" to avoid glitches when editing that source file
74657         with multi-gnome-terminal.
74658
74659 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74660
74661         * lib/bumpalloc.h: Remove.
74662
74663 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74664
74665         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74666         * modules/bumpalloc: Remove.
74667
74668 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74669
74670         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74671         GNU coding style.
74672
74673         Merge from coreutils.
74674         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74675         1. From glibc.
74676         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74677         from Karl Berry, implemented by Jim Meyering.
74678         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74679         from Dmitry V. Levin.
74680         Remove anachronistic cast of xrealloc.
74681         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74682         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74683         type. Otherwise, it wouldn't compile with at least /bin/cc on
74684         ymp-cray-unicos9.0.2.X.
74685         Combine two mostly-identical uses of alloca into one.
74686         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74687
74688 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74689
74690         [From Emacs.]
74691
74692         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74693         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74694         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74695         obsolete NLIST_NAME_UNION.
74696         [__GNU__]: Undef BSD and FSCALE.
74697         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74698
74699 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74700
74701         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74702         an enum type, so that it's guaranteed to promote to int.  See:
74703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74704
74705 2003-08-03  Karl Berry  <karl@gnu.org>
74706
74707         * config/depcomp: update from automake.
74708
74709 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74710
74711         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74712         (strerror): Don't assume that a printable int fits in 14 bytes.
74713
74714 2003-07-31  Bruno Haible  <bruno@clisp.org>
74715
74716         * modules/getpass-gnu: New file.
74717         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74718
74719 2003-07-31  Bruno Haible  <bruno@clisp.org>
74720
74721         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74722
74723 2003-07-24  Karl Berry  <karl@gnu.org>
74724
74725         * config/missing: update from automake.
74726
74727 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74728             Bruno Haible  <bruno@clisp.org>
74729
74730         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74731         * lib/getline.c (getline, getdelim): Likewise.
74732         Remove _GNU_SOURCE define; now it's defined in config.h through
74733         m4/getline.m4.
74734
74735 2003-07-23  Karl Berry  <karl@gnu.org>
74736
74737         * config/config.sub: update from prep.
74738
74739 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74740
74741         * modules/xalloc (Depends-on): Add exitfail.
74742         * modules/xmemcoll: Likewise.
74743
74744 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74745
74746         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74747         over-parenthesization in macros.
74748
74749         Sync with coreutils.
74750
74751         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74752         required by C99.
74753
74754         Use `exit_failure' for xalloc and xmemcoll instead of their own
74755         private exit-failure variables.
74756         * lib/xalloc.h (xalloc_exit_failure): Remove.
74757         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74758         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74759         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74760         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74761         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74762
74763 2003-07-20  Jim Meyering  <jim@meyering.net>
74764
74765         * modules/closeout (Depends-on): Add exitfail.
74766         Suggestion from Bruno Haible.
74767
74768 2003-07-19  Karl Berry  <karl@gnu.org>
74769
74770         * config/config.sub: update from prep.
74771
74772 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74773
74774         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74775         Remove.
74776         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74777         to test that it can stand by itself.  Include "exitfail.h".
74778         Clients should set exit_failure instead.
74779         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74780
74781 2003-07-18  Bruno Haible  <bruno@clisp.org>
74782
74783         * modules/getndelim2: New file.
74784         * modules/getline: Share files with module getndelim2.
74785         * modules/getnline: Depend on getndelim2 instead of sharing files with
74786         it. Add getnline.c to lib_SOURCES.
74787         * MODULES.html.sh (func_all_modules): Add getndelim2.
74788
74789 2003-07-18  Bruno Haible  <bruno@clisp.org>
74790
74791         * m4/getndelim2.m4: New file.
74792         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74793         invoke gl_PREREQ_GETNDELIM2.
74794         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74795         gl_PREREQ_GETNDELIM2.
74796         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74797         gl_GETNDELIM2.
74798
74799 2003-07-18  Bruno Haible  <bruno@clisp.org>
74800
74801         * lib/getndelim2.h: New file.
74802         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74803         getndelim2.h.
74804         (getndelim2): Make non-static. Change return type to ssize_t.
74805         * lib/getline.h: Change argument names.
74806         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74807         * lib/getnline.c: Include getndelim2.h.
74808
74809 2003-07-18  Andreas Schwab  <schwab@suse.de>
74810
74811         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74812
74813 2003-07-17  Karl Berry  <karl@gnu.org>
74814
74815         * config/config.sub: update from prep.
74816
74817 2003-07-17  Bruno Haible  <bruno@clisp.org>
74818
74819         * modules/getnline: New file.
74820         * modules/getline: Add lib/getndelim2.c to source file list.
74821         * MODULES.html.sh (func_all_modules): Add getnline.
74822
74823 2003-07-17  Bruno Haible  <bruno@clisp.org>
74824
74825         * m4/getnline.m4: New file.
74826
74827 2003-07-17  Bruno Haible  <bruno@clisp.org>
74828
74829         * m4/Makefile.am.in: Remove file.
74830         * m4/Makefile.am: Remove file.
74831         * m4/Makefile.in: Remove file.
74832
74833 2003-07-17  Bruno Haible  <bruno@clisp.org>
74834
74835         * lib/getnline.h: New file.
74836         * lib/getnline.c: New file.
74837         * lib/getndelim2.c: New file, extracted from getline.c.
74838         (getndelim2): Renamed from getdelim2, with added nmax argument.
74839         * lib/getline.c: Include getndelim2.c.
74840         (getdelim2): Moved out to getndelim2.c.
74841         (getline, getdelim): Update.
74842
74843 2003-07-17  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/Makefile.am: Remove file.
74846         * lib/Makefile.in: Remove file.
74847
74848 2003-07-17  Bruno Haible  <bruno@clisp.org>
74849
74850         * configure.in: Remove file.
74851         * Makefile.in: Remove file.
74852
74853 2003-07-17  Bruno Haible  <bruno@clisp.org>
74854
74855         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74856
74857 2003-07-16  Karl Berry  <karl@gnu.org>
74858
74859         * config/srclist-update: was running fixlicense twice, which caused
74860                 texinfo.tex to be nullified for some reason.  Simplify,
74861                 $gplsrc is no longer needed as far as I can see?
74862
74863 2003-07-16  Jim Meyering  <jim@meyering.net>
74864
74865         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74866
74867 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74868
74869         * config/srclist.txt: Get the following files from gettext-runtime/intl
74870         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74871         ref-del.sin.  From Bruno Haible.
74872         * config/srclist-update (fixfile): Change grep pattern again, since the
74873         previous fix didn't work (there was another trailing $).  Use
74874         '[$]' to escape the $s.
74875
74876 2003-07-15  Karl Berry  <karl@gnu.org>
74877
74878         * lib/vasnprintf.c: update from gettext.
74879
74880 2003-07-15  Karl Berry  <karl@gnu.org>
74881
74882         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74883         gets expanded when surrounded by '$'.
74884
74885 2003-07-15  Jim Meyering  <jim@meyering.net>
74886
74887         * modules/save-cwd: Don't depend on error.  From Derek Price.
74888
74889 2003-07-15  Jim Meyering  <jim@meyering.net>
74890
74891         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74892
74893 2003-07-14  Simon Josefsson  <jas@extundo.com>
74894
74895         * modules/mempcpy: New file.
74896         * MODULES.html.sh (func_all_modules): Add mempcpy.
74897
74898 2003-07-14  Simon Josefsson  <jas@extundo.com>
74899
74900         * m4/mempcpy.m4: New file.
74901
74902 2003-07-14  Simon Josefsson  <jas@extundo.com>
74903
74904         * lib/mempcpy.h: New file.
74905         * lib/mempcpy.c: New file.
74906
74907 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74908
74909         * modules/getdate, modules/posixtm: Depend on mktime.
74910
74911 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74912
74913         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74914         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74915         unicodeio.c, unicodeio.h, unlocked-io.h:
74916         Switch from LGPL to GPL.
74917
74918 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74919
74920         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74921         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74922         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74923         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74924         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74925         updated automatically by ../config/srclist-update.  This changes
74926         their license from LPGL to GPL.
74927
74928 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74929
74930         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74931         assumed to refer to the root of the most recent stable gettext version.
74932         * config/srclistvars.sh: Add defaults for eggert.
74933         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74934         Match "This program" as well as "The program".  This is needed
74935         for gettext.
74936
74937 2003-07-14  Jim Meyering  <jim@meyering.net>
74938
74939         Don't emit diagnostics.  Let callers do that.
74940         * lib/save-cwd.c: Don't include "error.h".
74941         (save_cwd): Don't call error.  Ensure that errno is valid
74942         when returning nonzero.
74943
74944         * lib/save-cwd.h (restore_cwd): Update prototype.
74945         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74946         Simplify.  Don't call error upon failure.  Let callers do that.
74947         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74948         when auditing is enabled.  But don't bother updating the #if.
74949
74950 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74951
74952         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74953         it breaks C++ compilation.
74954         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74955
74956 2003-07-10  Simon Josefsson  <jas@extundo.com>
74957
74958         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74959
74960 2003-07-10  Jim Meyering  <jim@meyering.net>
74961
74962         * m4/clock_time.m4: Remove trailing blank.
74963         * m4/intmax_t.m4: Likewise.
74964
74965 2003-07-10  Jim Meyering  <jim@meyering.net>
74966
74967         * lib/vasnprintf.c: Remove trailing blanks.
74968         Make cpp indentation consistent.
74969
74970 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74971
74972         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74973         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74974         Switch from LGPL to GPL.
74975
74976 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74977
74978         * config/srclist.txt: Sort sublists.  Add
74979         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74980         that differ from gnulib for one reason or another; we'd like this list
74981         to be smaller but for now let's document what we have.
74982
74983 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74984
74985         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74986         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74987         and sweeter "eval x=$x".
74988         * config/srclist.txt: Get lib/argp* from glibc.
74989
74990 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74991
74992         * lib/mktime.c: Fix some boundary cases and remove need for floating
74993         point.
74994
74995         Issue a compile-time diagnostic if time_t is floating point, or if
74996         two's complement arithmetic is not in effect, or if arithmetic
74997         right shift does not propagate the sign.  These assumptions were
74998         all in the original code but they weren't checked.
74999
75000         (TIME_T_MIDPOINT, verify): New macros.
75001         (__isleap): Remove; it has integer overflow problems.
75002         (leapyear): New function, without those problems.
75003         (ydhms_tm_diff): Remove; splitting into two parts.
75004         (ydhms_diff): New function, containing the arithmetic part of
75005         the old ydhms_tm_diff function.  Issue a compile-time
75006         diagnostic if we are not using C99 integer division.
75007         Avoid casts when possible.
75008         (guess_time_tm): New function, containing the checking part of
75009         the old ydhms_tm_diff function.  Return the new value, rather than
75010         the difference between it and the old.  Accept a new argument T
75011         so that *T specifies the old value.  Check for overflow in the result.
75012
75013         (__mktime_internal): Use a time_t offset, not a long int offset.
75014         This undoes the 2003-06-04 change, which is no longer needed now
75015         that we have better overflow checking.
75016         (localtime_offset): Likewise.
75017
75018         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75019         and long are 64-bit but int is only 32-bit.
75020         (ydhms_diff): Use long int to store year1 and yday1.
75021         Issue a compile-time diagnostic if long int is not wide enough.
75022
75023         (__mktime_internal): Use long int to store adjusted year and yday.
75024         Use plain C rather than preprocessor commands, if that doesn't
75025         affect efficiency.
75026         Check for overflow (and try to repair) after each probe
75027         rather than checking only at the very end.  This avoids some bugs
75028         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75029         does not equal GMT offset at maximum time).
75030         Use integer to check for overflow rather than floating point; this
75031         is more portable to non-IEEE hosts, and is a tad faster.
75032         When we detect that we are oscillating between two values,
75033         don't check whether tm_isdst has the requested value, since
75034         we already know the answer.  When tm_isdst has the wrong value,
75035         use a different heuristic to find the right one, based on the
75036         extreme values actually observed in practice in tz2003a,
75037         rather than the (overly optimistic) "previous 3 calendar quarters".
75038
75039         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75040         "T const" to accommodate glibc style.
75041         (check_result): Use less-confusing report format.  "long" -> "long int.
75042         (main): Likewise.
75043         Don't loop if the iteration overflows time_t.
75044         Allow a negative step in the iteration.
75045
75046 2003-07-06  Karl Berry  <karl@gnu.org>
75047
75048         * config/depcomp: update from automake.
75049         * config/config.sub: update from prep.
75050
75051 2003-07-03  Karl Berry  <karl@gnu.org>
75052
75053         * config/config.guess: update from prep.
75054
75055 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75056
75057         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75058         xreadlink.c now includes it unconditionally.
75059
75060 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75061
75062         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75063         having it depend on HAVE_SYS_TYPES_H.
75064
75065 2003-07-01  Bruno Haible  <bruno@clisp.org>
75066
75067         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75068         <sys/types.h> should be sufficient.
75069         Reported by Paul Eggert.
75070
75071 2003-06-26  Karl Berry  <karl@gnu.org>
75072
75073         * config/depcomp: update from automake.
75074
75075 2003-06-26  Bruno Haible  <bruno@clisp.org>
75076
75077         * modules/human: Depend on module stdbool.
75078
75079 2003-06-25  Bruno Haible  <bruno@clisp.org>
75080
75081         * modules/readlink: New file.
75082         * modules/xreadlink: Depend on it.
75083         * MODULES.html.sh (func_all_modules): Add readlink.
75084
75085 2003-06-25  Bruno Haible  <bruno@clisp.org>
75086
75087         * m4/readlink.m4: New file.
75088
75089 2003-06-25  Bruno Haible  <bruno@clisp.org>
75090
75091         * lib/readlink.c: New file.
75092
75093 2003-06-22  Karl Berry  <karl@gnu.org>
75094
75095         * config/srclist.txt: update mkinstalldirs from automake.
75096         * config/mkinstalldirs: update.
75097
75098 2003-06-22  Bruno Haible  <bruno@clisp.org>
75099
75100         Portability to mingw32.
75101         * m4/ssize_t.m4: New file, from GNU gettext.
75102         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75103         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75104
75105 2003-06-22  Bruno Haible  <bruno@clisp.org>
75106
75107         * modules/safe-read: Add m4/ssize_t.m4.
75108         * modules/xreadlink: Add m4/ssize_t.m4.
75109
75110 2003-06-20  Bruno Haible  <bruno@clisp.org>
75111
75112         Assume C89, so PARAMS isn't needed.
75113         * lib/unicodeio.h (PARAMS): Remove.
75114         * lib/unicodeio.c: Don't use PARAMS.
75115
75116 2003-06-18  Karl Berry  <karl@gnu.org>
75117
75118         * config/config.{guess,sub}: update from prep.
75119
75120 2003-06-18  Jim Meyering  <jim@meyering.net>
75121
75122         Merge changes from coreutils.
75123         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75124         Remove explicit declarations of xmalloc and realloc.
75125         Include xalloc.h.
75126         (read_utmp): Remove anachronistic cast of xmalloc.
75127
75128 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75129
75130         Assume C89, so PARAMS isn't needed.
75131         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75132         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75133         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75134         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75135         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75136         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75137         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75138         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75139         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75140         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75141         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75142         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75143         no longer needed. Anyway, config.h should always be included before any
75144         other file.
75145
75146 2003-06-11  Simon Josefsson  <jas@extundo.com>
75147
75148         * modules/sysexits: New file.
75149         * MODULES.html.sh (func_all_modules): Add sysexits.
75150
75151 2003-06-11  Simon Josefsson  <jas@extundo.com>
75152
75153         * lib/sysexit_.h: New file.
75154
75155 2003-06-11  Derek Price  <derek@ximbiot.com>
75156
75157         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75158         necessary.
75159
75160 2003-06-11  Bruno Haible  <bruno@clisp.org>
75161
75162         * m4/sysexits.m4: New file.
75163
75164 2003-06-10  Simon Josefsson  <jas@extundo.com>
75165
75166         * lib/argp.h: New file, from glibc.
75167         * lib/argp-ba.c: New file, from glibc.
75168         * lib/argp-eexst.c: New file, from glibc.
75169         * lib/argp-fmtstream.c: New file, from glibc.
75170         * lib/argp-fmtstream.h: New file, from glibc.
75171         * lib/argp-fs-xinl.c: New file, from glibc.
75172         * lib/argp-help.c: New file, from glibc.
75173         * lib/argp-namefrob.h: New file, from glibc.
75174         * lib/argp-parse.c: New file, from glibc.
75175         * lib/argp-pv.c: New file, from glibc.
75176         * lib/argp-pvh.c: New file, from glibc.
75177         * lib/argp-xinl.c: New file, from glibc.
75178
75179 2003-06-10  Simon Josefsson  <jas@extundo.com>
75180
75181         * modules/strchrnul: New file.
75182
75183 2003-06-10  Simon Josefsson  <jas@extundo.com>
75184
75185         * modules/argp: New file.
75186
75187 2003-06-10  Simon Josefsson  <jas@extundo.com>
75188
75189         * m4/strchrnul.m4: New file.
75190
75191 2003-06-10  Simon Josefsson  <jas@extundo.com>
75192
75193         * lib/strchrnul.h: New file.
75194         * lib/strchrnul.c: New file.
75195
75196 2003-06-10  Bruno Haible  <bruno@clisp.org>
75197
75198         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75199
75200 2003-06-07  Karl Berry  <karl@gnu.org>
75201
75202         * config/config.{guess,sub}: update from prep.
75203
75204 2003-06-07  Jim Meyering  <jim@meyering.net>
75205
75206         * modules/strtod: Use $(...) notation, not @...@ for
75207         AC_REPLACE'd variables.
75208         * modules/localcharset: Likewise.
75209
75210 2003-06-07  Jim Meyering  <jim@meyering.net>
75211
75212         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75213         in place of my name in the copyright comment.
75214         Remove definition and uses of __P.
75215
75216         From coreutils.
75217         * lib/stat.c: Don't declare xmalloc explicitly.
75218         Instead, include "xalloc.h".
75219         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75220         xrealloc, and xcalloc return values.
75221         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75222         Improve comment.
75223         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75224
75225 2003-06-07  Bruno Haible  <bruno@clisp.org>
75226
75227         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75228         avoid AC_CONFIG_LINKS.
75229         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75230         fnmatch.h, to avoid AC_CONFIG_LINKS.
75231         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75232
75233 2003-06-07  Bruno Haible  <bruno@clisp.org>
75234
75235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75236         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75237         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75238         directory.
75239         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75240         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75241         directory.
75242
75243 2003-06-06  Jim Meyering  <jim@meyering.net>
75244
75245         Merge from coreutils.
75246         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75247         Consolidate declarations and initializations of *_base* locals.
75248
75249         Merge from coreutils.
75250         This avoids a core dump on systems without GNU putenv,
75251         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75252         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75253         (unsetenv): New static function, from GNU libc.
75254         (rpl_putenv): Use it.
75255
75256         * lib/modechange.c: Remove trailing blanks.
75257
75258         Merge from coreutils.
75259         * lib/fsusage.c: Remove declaration of statfs.
75260         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75261
75262         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75263
75264 2003-06-06  Jim Meyering  <jim@meyering.net>
75265
75266         * lib/stdbool_.h: Renamed from stdbool.h.in.
75267
75268 2003-06-06  Jim Meyering  <jim@meyering.net>
75269             Bruno Haible  <bruno@clisp.org>
75270
75271         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75272         Adjust Makefile.am snippet not to redirect directly to target.
75273         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75274
75275 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75276
75277         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75278         mismatch, look in future quarters as well as past.  This fixes a
75279         bug when processing fall-backwards gaps immediately after a long
75280         period of daylight-saving time.
75281
75282         * lib/mktime.c: Assume freestanding C89 or better.
75283         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75284         (__P): Remove; not used.
75285         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75286         (mktime, not_equal_tm, print_tm, check_result,
75287         main): Use prototypes.  Use const * where appropriate.
75288         (main): Fix typo in testing code that uncovered by above changes.
75289         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75290
75291 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75292
75293         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75294         locale.h, localeconv.  This merges changes from coreutils.
75295
75296         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75297         It can be removed after the next Autoconf is released.
75298         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75299         needed.
75300
75301 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75302
75303         * lib/mktime.c: Fix Debian bug 177940
75304         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75305         (localtime_offset): Now long int, not time_t, because we want it
75306         to be guaranteed to be signed.  All uses changed.
75307         (__mktime_internal): If overflow would occur when adding offset,
75308         don't add it.
75309
75310         Merge 'human' changes from coreutils.  Rewrite to support
75311         locale-specific notations like thousands separators.
75312         * lib/human.c: Simplify authorship notice.
75313         Include human.h immediately after config.h.
75314         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75315         <limits.h>: Do not include, since human.h does.
75316         (SIZE_MAX, UINTMAX_MAX): New macros.
75317         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75318         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75319         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75320         (power_letter): Renamed from suffixes.
75321         (generate_suffix_backwards): Remove.
75322         (adjust_value): Now takes int style (because of human.h changes)
75323         and long double value (for greater precision on some platforms).
75324         (group_number): New function.
75325         (human_readable): Use it.  Use integer options, not enum.
75326         Put the options before the sizes in the arg list.
75327         Support all the new options.
75328         The old human_readable function has been removed;
75329         use inttostr.h instead.
75330         (human_readable, default_block_size, humblock):
75331         Use uintmax_t, not int, for block sizes.
75332         (human_readable_inexact, block_size_types): Remove.
75333         (block_size_opts): New constant.
75334         (human_options): Renamed from human_block_size, with new signature
75335         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75336         * lib/human.h: Add copyright and authorship notice.
75337         Include <limits.h> and <stdbool.h> unconditionally.
75338         (PARAMS): Remove.  All uses removed.
75339         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75340         (enum human_inexact_style): Remove tag; now a nameless enum.
75341         (human_floor, human_ceiling, human_round_to_even): Now have
75342         values 2, 0, 1 rather than -1, 1, 0.
75343         (human_group_digits, human_suppress_point_zero, human_autoscale,
75344         human_base_1024, human_SI, human_B): New constants.
75345         (human_readable_inexact, human_block_size): Remove.
75346         (human_readable): Size args are now uintmax_t, not int.
75347         (human_options): New decl.
75348
75349         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75350         unnecessary now that we assume C89 or better.  This change
75351         imported from coreutils.
75352
75353         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75354         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75355         in the 2003-05-30 sync from glibc.
75356
75357         .h files should stand alone, but we shouldn't include <sys/types.h>
75358         if we can get away with just <stddef.h>.
75359
75360         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75361         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75362         rather than <sys/types.h>, as we merely need size_t.
75363         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75364         to get size_t.
75365         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75366         Include <stdio.h>, to get FILE.
75367         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75368         memcasecmp.h has included <stddef.h> and all we need is size_t.
75369         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75370         our interface, instead of including <sys/types.h>
75371
75372 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75373
75374         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75375         now, as glibc mktime is buggy on non-glibc systems.
75376
75377 2003-06-03  Karl Berry  <karl@gnu.org>
75378
75379         * config/config.sub: update from prep.
75380
75381 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75382
75383         [from coreutils]
75384         Fix some minor time-related bugs with POSIX time arguments.
75385         Some valid time stamps were being rejected (notably -1, and
75386         time stamps before 1900 on 64-bit hosts).  And some invalid
75387         time stamps were being accepted, e.g. September 31.
75388
75389         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75390         that we can return (time_t) -1 successfully.
75391         * lib/posixtm.c: Likewise.
75392         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75393         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75394         (t): Remove static var.
75395         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75396         of static var.  All uses changed.
75397         (year): Do not reject years before 1900; they can occur with
75398         64-bit time_t.
75399         (posix_time_parse): Do not check for out-of-range components;
75400         that is now the caller's responsibility, since our checks were
75401         only approximations.
75402         (posixtime): Use mktime to check for out-of-range components,
75403         since it knows them exactly.
75404         If mktime returns (time_t) -1, check whether an error actually occurred
75405         by invoking localtime on -1.
75406         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75407         posixtime failures better.
75408         Improve the test data (in comments only).
75409
75410 2003-06-02  Karl Berry  <karl@gnu.org>
75411
75412         * config/mkinstalldirs (version): new variable.
75413         (--version): new option.
75414         (usage): improve message.
75415
75416 2003-05-30  Karl Berry  <karl@gnu.org>
75417
75418         * lib/mktime.c: update from libc.
75419
75420 2003-05-30  Bruno Haible  <bruno@clisp.org>
75421
75422         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75423         * config/config.rpath: Upgrade to gettext-0.12.1.
75424
75425 2003-05-30  Bruno Haible  <bruno@clisp.org>
75426
75427         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75428         * m4/nls.m4: New file, from gettext-0.12.1.
75429         * m4/po.m4: New file, from gettext-0.12.1.
75430         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75431
75432 2003-05-30  Bruno Haible  <bruno@clisp.org>
75433
75434         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75435         * lib/localcharset.h: Likewise.
75436         * lib/localcharset.c: Likewise.
75437
75438 2003-05-29  Karl Berry  <karl@gnu.org>
75439
75440         * config/config.rpath: update from gettext.
75441
75442 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75443
75444         Assume the headers required for C89 freestanding compilers.
75445         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75446         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75447         * m4/human.m4 (gl_HUMAN): Likewise.
75448         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75449         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75450         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75451         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75452         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75453         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75454
75455 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75456
75457         Assume the headers required for C89 freestanding compilers.
75458         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75459         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75460         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75461         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75462         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75463         define, since <limits.h> is guaranteed to do that.
75464         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75465         * lib/exclude.c: Include <stdbool.h> unconditionally.
75466         * lib/tempname.c: Include <stddef.h> unconditionally.
75467         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75468         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75469         <stddef.h> does that.
75470         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75471         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75472         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75473         needed.
75474         * lib/xstrtol.c: Likewise.
75475         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75476         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75477
75478         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75479         warnings on some platforms.
75480
75481         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75482         arbitrarily.
75483
75484 2003-05-26  Jim Meyering  <jim@meyering.net>
75485
75486         Merge in a change from coreutils:
75487         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75488         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75489         that condition, rather than `-1' which is slightly misleading.
75490         Change the name of the cache variable to have the gl_ prefix.
75491         Prompted by a patch from Richard Dawe for DJGPP.
75492
75493 2003-05-24  Karl Berry  <karl@gnu.org>
75494
75495         * config/config.guess: update from prep.
75496
75497 2003-05-22  Karl Berry  <karl@gnu.org>
75498
75499         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75500
75501 2003-05-20  Karl Berry  <karl@gnu.org>
75502
75503         * config/config.guess: update from prep.
75504
75505 2003-05-18  Karl Berry  <karl@gnu.org>
75506
75507         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75508         might actually be set by the user.
75509
75510         * config/depcomp, install-sh, mdate-sh: update from automake.
75511
75512 2003-05-17  Bruno Haible  <bruno@clisp.org>
75513
75514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75515         invalid expansion for AC_EGREP_CPP.
75516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75517         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75518         Suggested by Akim Demaille <akim@epita.fr> in
75519         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75520
75521 2003-05-12  Jim Meyering  <jim@meyering.net>
75522
75523         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75524         the space-padded-by-default conversion specifiers, %e, %k, %l.
75525
75526 2003-05-12  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75529         the string is longer than 4 KB.
75530
75531 2003-05-11  Karl Berry  <karl@gnu.org>
75532
75533         * config/config.{guess,sub}: update from prep.
75534
75535 2003-05-09  Bruno Haible  <bruno@clisp.org>
75536
75537         * modules/error: Add m4/strerror_r.m4 to file list.
75538
75539 2003-05-03  Bruno Haible  <bruno@clisp.org>
75540
75541         Upgrade to Unicode-4.0.
75542         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75543         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75544         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75545         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75546         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75547         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75548         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75549         Change width of U+E0100..U+E01EF from 1 to 0.
75550
75551 2003-04-25  Jim Meyering  <jim@meyering.net>
75552
75553         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75554         of type size_t, not int.
75555
75556 2003-04-25  Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/copy-file.c: Include <stddef.h>, for size_t.
75559
75560 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75561
75562         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75563         code which expansion is under static control.  Patch imported from
75564         Akim Demaille's patch to Bison; see
75565         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75566
75567 2003-04-14  Bruno Haible  <bruno@clisp.org>
75568
75569         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75570
75571 2003-04-11  Jim Meyering  <jim@meyering.net>
75572
75573         Merge changes from Coreutils.
75574
75575         2003-03-22  Jim Meyering  <jim@meyering.net>
75576
75577         * lib/strftime.c (widen): Cast alloca return value to proper type.
75578
75579         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75580
75581         From GNU libc.
75582         * lib/strftime.c (my_strftime): Handle very large width
75583         specifications for numeric values correctly.  Improve checks for
75584         overflow.
75585
75586         2003-01-19  Jim Meyering  <jim@meyering.net>
75587
75588         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75589         definitions.
75590         (nl_get_alt_digit) [! defined my_strftime]: Define.
75591         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75592         _nl_get_alt_digit and _nl_get_walt_digit.
75593
75594         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75595         libc. These changes have no effect outside of _LIBC.
75596
75597 2003-04-10  Bruno Haible  <bruno@clisp.org>
75598
75599         * modules/findprog: New file.
75600         * MODULES.html.sh (func_all_modules): Add it.
75601
75602 2003-04-10  Bruno Haible  <bruno@clisp.org>
75603
75604         * m4/findprog.m4: New file.
75605         * m4/eaccess.m4: New file.
75606
75607 2003-04-10  Bruno Haible  <bruno@clisp.org>
75608
75609         * lib/findprog.h: New file, from GNU gettext.
75610         * lib/findprog.c: New file, from GNU gettext.
75611
75612 2003-04-05  Jim Meyering  <jim@meyering.net>
75613
75614         Merge changes from Coreutils.
75615
75616         * lib/exclude.h (PARAMS): Remove definition and uses.
75617         * lib/exclude.c: Remove uses of `PARAMS'.
75618
75619         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75620         Add test-cases for DOS filenames. Declare program_name.
75621         (main): Set up program_name.  Patch by Rich Dawe.
75622
75623         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75624         error from mntctl.
75625         Use mntctl's return value to drive the entry-processing loop, since
75626         we can't rely on the value of the vmt_length member in the last
75627         entry.  On some systems doing so could result in exhausting
75628         virtual memory.  Based in part on a patch from Mike Jetzer.
75629
75630 2003-04-04  Bruno Haible  <bruno@clisp.org>
75631
75632         * modules/linebreak: New file.
75633         * MODULES.html.sh (func_all_modules): Add it.
75634
75635 2003-04-04  Bruno Haible  <bruno@clisp.org>
75636
75637         * m4/linebreak.m4: New file.
75638
75639 2003-04-04  Bruno Haible  <bruno@clisp.org>
75640
75641         * lib/linebreak.h: New file, from GNU gettext.
75642         * lib/linebreak.c: New file, from GNU gettext with slight
75643         modifications.
75644         * lib/lbrkprop.h: New file, from GNU gettext.
75645
75646 2003-04-03  Bruno Haible  <bruno@clisp.org>
75647
75648         * modules/utf8-ucs4: New file.
75649         * modules/utf16-ucs4: New file.
75650         * modules/ucs4-utf8: New file.
75651         * modules/ucs4-utf16: New file.
75652         * MODULES.html.sh (func_all_modules): Add them.
75653
75654 2003-04-03  Bruno Haible  <bruno@clisp.org>
75655
75656         * m4/utf-ucs4.m4: New file.
75657         * m4/ucs4-utf.m4: New file.
75658
75659 2003-04-03  Bruno Haible  <bruno@clisp.org>
75660
75661         * lib/utf8-ucs4.h: New file, from GNU gettext.
75662         * lib/utf16-ucs4.h: New file, from GNU gettext.
75663         * lib/ucs4-utf8.h: New file, from GNU gettext.
75664         * lib/ucs4-utf16.h: New file, from GNU gettext.
75665
75666 2003-04-02  Bruno Haible  <bruno@clisp.org>
75667
75668         * modules/binary-io: New file.
75669         * MODULES.html.sh (func_all_modules): Add it.
75670
75671 2003-04-02  Bruno Haible  <bruno@clisp.org>
75672
75673         * lib/binary-io.h: New file, from GNU gettext.
75674
75675 2003-04-01  Bruno Haible  <bruno@clisp.org>
75676
75677         * modules/pathname: New file.
75678         * MODULES.html.sh (func_all_modules): Add it.
75679
75680 2003-04-01  Bruno Haible  <bruno@clisp.org>
75681
75682         * lib/pathname.h: New file, from GNU gettext.
75683         * lib/concatpath.c: New file, from GNU gettext.
75684
75685 2003-03-30  Bruno Haible  <bruno@clisp.org>
75686
75687         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75688
75689 2003-03-30  Bruno Haible  <bruno@clisp.org>
75690
75691         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75692         function chown() doesn't exist.
75693
75694 2003-03-28  Bruno Haible  <bruno@clisp.org>
75695
75696         * modules/copy-file: New file.
75697         * MODULES.html.sh (func_all_modules): Add it.
75698
75699 2003-03-28  Bruno Haible  <bruno@clisp.org>
75700
75701         * m4/copy-file.m4: New file.
75702
75703 2003-03-28  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/copy-file.h: New file, from GNU gettext.
75706         * lib/copy-file.c: New file, from GNU gettext.
75707
75708 2003-03-18  Jim Meyering  <jim@meyering.net>
75709
75710         * lib/quote.c (quote_n): Fix typo in comment.
75711
75712 2003-03-18  Bruno Haible  <bruno@clisp.org>
75713
75714         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75715         checking.
75716         * m4/onceonly_2_57.m4: Likewise.
75717
75718 2003-03-17  Bruno Haible  <bruno@clisp.org>
75719
75720         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75721         (m4_quote): Remove macro.
75722         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75723
75724 2003-03-14  Jim Meyering  <jim@meyering.net>
75725
75726         Merge changes from Coreutils.
75727         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75728         to be const, in order to avoid warnings.
75729         (obstack_room): Likewise.
75730         (obstack_empty_p): Likewise.
75731
75732 2003-03-14  Bruno Haible  <bruno@clisp.org>
75733
75734         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75735         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75736
75737 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75738
75739         Merge changes from Bison.
75740         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75741         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75742         when compiling Bison 1.875's `bitset bset = obstack_alloc
75743         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75744         * lib/hash.c: Include <stdbool.h> unconditionally.
75745
75746 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75747
75748         * m4/onceonly.m4 (m4_quote): New macro.
75749         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75750         Quote AC_FOREACH variable-expansions properly.
75751
75752 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75753
75754         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75755
75756 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75757
75758         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75759         Reported by Bruce Becker; see:
75760         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75761
75762 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75763             Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75766         Reported by John Hughes, see
75767         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75768
75769 2003-02-20  Bruno Haible  <bruno@clisp.org>
75770
75771         * MODULES.html.sh (func_all_modules): Add poll.
75772
75773 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75774
75775         * modules/poll: New file.
75776
75777 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75778
75779         * lib/poll_.h: New file.
75780         * lib/poll.c: New file.
75781
75782 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75783
75784         * m4/poll.m4: New file.
75785
75786 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75787
75788         * modules/mathl: New file.
75789
75790 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75791
75792         * lib/mathl.h: New file.
75793         * lib/acosl.c: New file.
75794         * lib/asinl.c: New file.
75795         * lib/atanl.c: New file.
75796         * lib/ceill.c: New file.
75797         * lib/cosl.c: New file.
75798         * lib/expl.c: New file.
75799         * lib/floorl.c: New file.
75800         * lib/frexpl.c: New file.
75801         * lib/ldexpl.c: New file.
75802         * lib/logl.c: New file.
75803         * lib/sincosl.c: New file.
75804         * lib/sinl.c: New file.
75805         * lib/sqrtl.c: New file.
75806         * lib/tanl.c: New file.
75807         * lib/trigl.c: New file.
75808         * lib/trigl.h: New file.
75809
75810 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75811
75812         * m4/mathl.m4: New file.
75813
75814 2003-02-18  Bruno Haible  <bruno@clisp.org>
75815
75816         * MODULES.html.sh (func_all_modules): Add mathl.
75817
75818 2003-02-17  Bruno Haible  <bruno@clisp.org>
75819
75820         * modules/mkdtemp: New module.
75821         * MODULES.html.sh (func_all_modules): Add it.
75822
75823 2003-02-17  Bruno Haible  <bruno@clisp.org>
75824
75825         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75826
75827 2003-02-17  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/mkdtemp.h: New file, from GNU gettext.
75830         * lib/mkdtemp.c: New file, from GNU gettext.
75831
75832 2003-02-02  Jim Meyering  <jim@meyering.net>
75833
75834         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75835         e.g. glibc-2.2.93.
75836
75837 2003-01-31  Bruno Haible  <bruno@clisp.org>
75838
75839         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75840         'rpl_rename'.
75841         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75842         'rpl_strnlen'.
75843         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75844         'rpl_strtod'.
75845         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75846         'rpl_utime'.
75847
75848 2003-01-31  Bruno Haible  <bruno@clisp.org>
75849
75850         * lib/rename.c: #undef rename before defining rpl_rename.
75851         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75852
75853 2003-01-30  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/vasnprintf, modules/vasprintf: New modules.
75856         * MODULES.html.sh (func_all_modules): Add them.
75857
75858 2003-01-30  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/signed.m4: New file, from GNU gettext.
75861         * m4/longdouble.m4: New file, from GNU gettext.
75862         * m4/wchar_t.m4: New file, from GNU gettext.
75863         * m4/wint_t.m4: New file, from GNU gettext.
75864         * m4/vasnprintf.m4: New file.
75865         * m4/vasprintf.m4: New file.
75866
75867 2003-01-30  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/printf-args.h: New file, from GNU gettext.
75870         * lib/printf-args.c: New file, from GNU gettext.
75871         * lib/printf-parse.h: New file, from GNU gettext.
75872         * lib/printf-parse.c: New file, from GNU gettext.
75873         * lib/vasnprintf.h: New file, from GNU gettext.
75874         * lib/vasnprintf.c: New file, from GNU gettext.
75875         * lib/asnprintf.c: New file, from GNU gettext.
75876         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75877         * lib/vasprintf.c: New file, from GNU gettext.
75878         * lib/asprintf.c: New file, from GNU gettext.
75879
75880 2003-01-29  Bruno Haible  <bruno@clisp.org>
75881
75882         * modules/stpncpy: New module.
75883         * MODULES.html.sh (func_all_modules): Add it.
75884
75885 2003-01-29  Bruno Haible  <bruno@clisp.org>
75886
75887         * m4/stpncpy.m4: New file.
75888
75889 2003-01-29  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75892         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75893
75894 2003-01-28  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/c-ctype: New module.
75897         * MODULES.html.sh (func_all_modules): Add it.
75898
75899 2003-01-28  Bruno Haible  <bruno@clisp.org>
75900
75901         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75902         Paul Eggert.
75903         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75904         Paul Eggert.
75905
75906 2003-01-27  Bruno Haible  <bruno@clisp.org>
75907
75908         * modules/xsetenv: New module.
75909         * MODULES.html.sh (func_all_modules): Add it.
75910
75911 2003-01-27  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/xsetenv.h: New file, from GNU gettext.
75914         * lib/xsetenv.c: New file, from GNU gettext.
75915
75916 2003-01-23  Jim Meyering  <jim@meyering.net>
75917
75918         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75919         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75920
75921 2003-01-23  Bruno Haible  <bruno@clisp.org>
75922
75923         * modules/minmax: New module.
75924         * MODULES.html.sh (func_all_modules): Add it.
75925
75926 2003-01-23  Bruno Haible  <bruno@clisp.org>
75927
75928         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75929         Eggert.
75930
75931 2003-01-22  Bruno Haible  <bruno@clisp.org>
75932
75933         * modules/exit: New module.
75934         * MODULES.html.sh (func_all_modules): Add it.
75935
75936 2003-01-22  Bruno Haible  <bruno@clisp.org>
75937
75938         * lib/exit.h: New file, from GNU gettext.
75939
75940 2003-01-19  Bruno Haible  <bruno@clisp.org>
75941
75942         * gnulib-tool: Recognize option --extract-maintainer.
75943         (func_get_maintainer): New function.
75944         * modules/*: Add Maintainer entry.
75945
75946 2003-01-16  Jim Meyering  <jim@meyering.net>
75947
75948         * m4/regex.m4: The `regex' struct is both input and output.
75949         Initialize it before each use.  Patch by Tim Waugh.
75950
75951 2003-01-16  Bruno Haible  <bruno@clisp.org>
75952
75953         * MODULES.html.sh: Add a table of contents. Add the module name as
75954         leftmost column. Add hyperlinks.
75955
75956 2003-01-15  Bruno Haible  <bruno@clisp.org>
75957
75958         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75959
75960 2003-01-15  Bruno Haible  <bruno@clisp.org>
75961
75962         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75963         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75964         suffix.
75965
75966 2003-01-15  Bruno Haible  <bruno@clisp.org>
75967
75968         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75969
75970 2003-01-15  Bruno Haible  <bruno@clisp.org>
75971
75972         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75973         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75974
75975 2003-01-14  Jim Meyering  <jim@meyering.net>
75976
75977         * lib/same.c (same_name): Tweak a comment.
75978
75979 2003-01-14  Bruno Haible  <bruno@clisp.org>
75980
75981         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75982         when a string comparison is sufficient.
75983
75984 2003-01-14  Bruno Haible  <bruno@clisp.org>
75985
75986         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75987         'unsigned int'.
75988
75989 2003-01-14  Bruno Haible  <bruno@clisp.org>
75990
75991         * lib/hash-pjw.c: Add comment about low quality of this function.
75992
75993 2003-01-13  Bruno Haible  <bruno@clisp.org>
75994
75995         * modules/stpcpy: Distribute lib/stpcpy.h.
75996         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75997
75998 2003-01-13  Bruno Haible  <bruno@clisp.org>
75999
76000         * modules/*: Add a description.
76001         * modules/strpbrk: Fix Makefile.am snippet.
76002         * modules/strtoimax: Fix dependencies.
76003         * modules/strtoumax: Likewise.
76004
76005 2003-01-13  Bruno Haible  <bruno@clisp.org>
76006
76007         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76008         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76009         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76010
76011 2003-01-13  Bruno Haible  <bruno@clisp.org>
76012
76013         * gnulib-tool (func_create_testdir): Store config/* files in the main
76014         directory.
76015         * config.rpath: Move to ...
76016         * config/config.rpath: ... here.
76017         * modules/gettext: Contains config/config.rpath, not config.rpath.
76018         * modules/iconv: Likewise.
76019
76020 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76021
76022         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76023         to avoid collisions with libcurses and libreadline.
76024
76025         * m4/getstr.m4: Remove.
76026         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76027
76028 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76029
76030         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76031         to avoid collisions with libcurses and libreadline.
76032
76033         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76034         * lib/getstr.h, getstr.c: Remove.
76035         * lib/getline.c: Include "getline.h", to check interface.
76036         Move body of old getstr.c here: this defines MIN_CHUNK and
76037         declares getdelim2, which is renamed from getstr.
76038         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76039
76040         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76041         All uses changed.
76042         * lib/linebuffer.h: Likewise.
76043         (readline): Remove backward-compatibility macro.
76044
76045 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76046
76047         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76048         to avoid collisions with libcurses and libreadline.
76049         * getstr: Remove.
76050         * MODULES.html.sh: Remove getstr.
76051         * modules/getline: Depend on unlocked-io, not getstr.
76052
76053 2003-01-12  Jim Meyering  <jim@meyering.net>
76054
76055         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76056
76057 2003-01-10  Bruno Haible  <bruno@clisp.org>
76058
76059         * modules/alloca: Change Makefile.am requirements. Simplify Include
76060         requirements. Add lib/alloca_.h to file list.
76061
76062 2003-01-10  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76065
76066 2003-01-10  Bruno Haible  <bruno@clisp.org>
76067
76068         * lib/alloca_.h: New file.
76069         * lib/getdate.y: Unconditionally include alloca.h.
76070         * lib/makepath.c: Likewise.
76071         * lib/setenv.c: Likewise.
76072         * lib/userspec.c: Likewise.
76073
76074 2003-01-09  Karl Berry  <karl@gnu.org>
76075
76076         * MODULES.html.sh: include `dirname $0` in PATH, to find
76077         gnulib-tool.
76078
76079 2003-01-09  Bruno Haible  <bruno@clisp.org>
76080
76081         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76082         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76083
76084 2003-01-09  Bruno Haible  <bruno@clisp.org>
76085
76086         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76087
76088 2003-01-09  Bruno Haible  <bruno@clisp.org>
76089
76090         * lib/stdbool.h.in: New file.
76091
76092 2003-01-09  Bruno Haible  <bruno@clisp.org>
76093
76094         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76095         * MODULES.html.sh: Likewise.
76096
76097 2003-01-08  Jim Meyering  <jim@meyering.net>
76098
76099         * lib/full-write.c: Undefine and define-away `const' after inclusion
76100         of errno.h, not before.  Suggestion from Bruno Haible.
76101
76102 2003-01-08  Bruno Haible  <bruno@clisp.org>
76103
76104         * modules/full-read: Depend on full-write.
76105
76106 2003-01-08  Bruno Haible  <bruno@clisp.org>
76107
76108         * lib/safe-read.c: Include specification header first, to ensure its
76109         selfcontainedness.
76110         * lib/full-write.c: Likewise.
76111
76112 2003-01-07  Jim Meyering  <jim@meyering.net>
76113
76114         * lib/full-write.c: Rework so that it may serve to define full_read,
76115         too.
76116         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76117
76118 2003-01-07  Bruno Haible  <bruno@clisp.org>
76119
76120         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76121         <inttypes.h>.
76122         * lib/xstrtol.h: Likewise.
76123         * lib/xstrtoimax.c: Likewise.
76124         * lib/xstrtoumax.c: Likewise.
76125         * lib/human.h: Likewise.
76126
76127         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76128         on systems that have <inttypes.h> but not <stdint.h>.
76129
76130 2003-01-07  Bruno Haible  <bruno@clisp.org>
76131
76132         * MODULES.html.sh: Add copyright notice.
76133         (missed_files): Omit CVS directory entries.
76134         (func_module): Make it work with sed-3.02.
76135         * MODULES.txt: Remove file.
76136
76137 2003-01-06  Jim Meyering  <jim@meyering.net>
76138
76139         * lib/version-etc.c: Update year in translatable copyright string.
76140
76141 2003-01-03  Karl Berry  <karl@gnu.org>
76142
76143         * config/config.{guess,sub}: update from prep.
76144
76145 2003-01-02  Karl Berry  <karl@gnu.org>
76146
76147         * doc/COPYING.DOC: belatedly updated to 1.2.
76148
76149 2003-01-01  Karl Berry  <karl@gnu.org>
76150
76151         * gnulib-tool (func_verify_module): report module name $module in
76152         error message, not $1.
76153         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76154         be created, only if it doesn't exist.
76155         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76156
76157 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76158
76159         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76160
76161 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76162
76163         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76164         memcmp if strcoll doesn't work.
76165
76166 2002-12-31  Bruno Haible  <bruno@clisp.org>
76167
76168         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76169         nonempty.
76170
76171 2002-12-31  Bruno Haible  <bruno@clisp.org>
76172
76173         * lib/memcoll.c (STRCOLL): New macro.
76174         (memcoll): Use it.
76175
76176 2002-12-31  Bruno Haible  <bruno@clisp.org>
76177
76178         * lib/localcharset.h: New file.
76179         * lib/localcharset.c: Include it.
76180         * lib/unicodeio.c: Likewise.
76181
76182 2002-12-31  Bruno Haible  <bruno@clisp.org>
76183
76184         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76185         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76186
76187 2002-12-31  Bruno Haible  <bruno@clisp.org>
76188
76189         * lib/getline.h: Include <stddef.h>, for size_t.
76190
76191         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76192         * lib/unicodeio.c: Don't include <stddef.h>.
76193
76194 2002-12-31  Bruno Haible  <bruno@clisp.org>
76195
76196         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76197         HAVE_TM_ZONE.
76198
76199 2002-12-24  Karl Berry  <karl@gnu.org>
76200
76201         * config/config.guess: update from prep.
76202
76203 2002-12-24  Bruno Haible  <bruno@clisp.org>
76204
76205         General infrasructure.
76206         * m4/README: Rewritten.
76207         * m4/onceonly.m4: New file.
76208         * m4/onceonly_2_57.m4: New file.
76209
76210         Module atexit.
76211         * m4/atexit.m4: New file.
76212
76213         Module strtod.
76214         * m4/strtod.m4: New file.
76215
76216         Module strtol.
76217         * m4/strtol.m4: New file.
76218
76219         Module strtoul.
76220         * m4/strtoul.m4: New file.
76221
76222         Module memchr.
76223         * m4/memchr.m4: New file.
76224
76225         Module memcmp.
76226         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76227         (jm_FUNC_MEMCMP): Invoke it.
76228
76229         Module memcpy.
76230         * m4/memcpy.m4: New file.
76231
76232         Module memmove.
76233         * m4/memmove.m4: New file.
76234
76235         Module memset.
76236         * m4/memset.m4: New file.
76237
76238         Module strcspn.
76239         * m4/strcspn.m4: New file.
76240
76241         Module strpbrk.
76242         * m4/strpbrk.m4: New file.
76243
76244         Module strstr.
76245         * m4/strstr.m4: New file.
76246
76247         Module strerror.
76248         * m4/strerror.m4: New file.
76249
76250         Module mktime.
76251         * m4/mktime.m4: Renamed from jm-mktime.m4.
76252         (gl_PREREQ_MKTIME): New macro.
76253         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76254
76255         Module malloc.
76256         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76257         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76258         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76259
76260         Module realloc.
76261         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76262         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76263         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76264
76265         Module strftime.
76266         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76267         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76268         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76269         gl_TM_GMTOFF.
76270         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76271
76272         Module xalloc.
76273         * m4/xalloc.m4: New file.
76274
76275         Module alloca.
76276         * m4/alloca.m4: New file.
76277
76278         Module putenv.
76279         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76280         (jm_FUNC_PUTENV): Invoke it.
76281
76282         Module setenv.
76283         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76284         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76285         when invoked twice.
76286         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76287         gt_FUNC_SETENV.
76288
76289         Module memrchr.
76290         * m4/memrchr.m4: New file.
76291
76292         Module stpcpy.
76293         * m4/stpcpy.m4: New file.
76294
76295         Module strcase.
76296         * m4/strcase.m4: New file.
76297
76298         Module strdup.
76299         * m4/strdup.m4: New file.
76300
76301         Module strnlen.
76302         * m4/strnlen.m4: New file.
76303
76304         Module strndup.
76305         * m4/strndup.m4: New file.
76306
76307         Module xstrtod.
76308         * m4/xstrtod.m4: New file.
76309
76310         Module xstrtol.
76311         * m4/xstrtol.m4: New file.
76312
76313         Module getdate.
76314         * m4/getdate.m4: New file.
76315
76316         Module unlocked-io.
76317         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76318         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76319         * m4/jm-glibc-io.m4n: Remove file.
76320
76321         Module long-options.
76322         * m4/long-options.m4: New file.
76323
76324         Module md5.
76325         * m4/md5.m4: New file.
76326
76327         Module sha.
76328         * m4/sha.m4: New file.
76329
76330         Module getstr.
76331         * m4/getstr.m4: New file.
76332
76333         Module getline.
76334         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76335         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76336         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76337         simply getline. Infoke gl_PREREQ_GETLINE.
76338
76339         Module obstack.
76340         * m4/obstack.m4: New file.
76341
76342         Module hash.
76343         * m4/hash.m4: New file.
76344
76345         Module readtokens.
76346         * m4/readtokens.m4: New file.
76347
76348         Module strverscmp.
76349         * m4/strverscmp.m4: New file.
76350
76351         Module stdbool.
76352         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76353         OSF/1.
76354
76355         Module strtoll.
76356         * m4/strtoll.m4: New file.
76357
76358         Module strtoull.
76359         * m4/strtoull.m4: New file.
76360
76361         Module strtoimax.
76362         * m4/strtoimax.m4: New file.
76363
76364         Module strtoumax.
76365         * m4/strtoumax.m4: New file.
76366
76367         Module xstrtoimax.
76368         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76369         jm_AC_PREREQ_XSTRTOIMAX.
76370         Moved the strtol prerequisites to strtol.m4.
76371         Moved the strtoll prerequisites to strtoll.m4.
76372         Moved the strtoimax prerequisites to strtoimax.m4.
76373
76374         Module xstrtoumax.
76375         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76376         jm_AC_PREREQ_XSTRTOUMAX.
76377         Moved the strtoul prerequisites to strtoul.m4.
76378         Moved the strtoull prerequisites to strtoull.m4.
76379         Moved the strtoumax prerequisites to strtoumax.m4.
76380
76381         Module chown.
76382         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76383         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76384
76385         Module dup2.
76386         * m4/dup2.m4: New file.
76387
76388         Module ftruncate.
76389         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76390         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76391
76392         Module getgroups.
76393         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76394         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76395
76396         Module gettimeofday.
76397         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76398         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76399         gl_PREREQ_GETTIMEOFDAY.
76400
76401         Module mkdir.
76402         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76403         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76404
76405         Module mkstemp.
76406         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76407         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76408         jm_AC_TYPE_UINTMAX_T.
76409         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76410
76411         Module stat.
76412         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76413         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76414
76415         Module lstat.
76416         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76417         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76418
76419         Module timespec.
76420         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76421         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76422         * m4/st_mtim.m4: Indentation.
76423
76424         Module nanosleep.
76425         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76426         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76427         gl_PREREQ_NANOSLEEP.
76428
76429         Module regex.
76430         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76431         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76432         (gl_REGEX): New macro.
76433
76434         Module rename.
76435         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76436         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76437
76438         Module rmdir.
76439         * m4/rmdir.m4: New file.
76440
76441         Module utime.
76442         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76443         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76444         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76445
76446         Module dirname.
76447         * m4/dirname.m4: New file.
76448
76449         Module getopt.
76450         * m4/getopt.m4: New file.
76451
76452         Module unistd-safer.
76453         * m4/unistd-safer.m4: New file.
76454
76455         Module fnmatch.
76456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76457         declaration.
76458         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76459         (gl_FUNC_FNMATCH_POSIX): New macro.
76460         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76461         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76462         simply fnmatch.
76463
76464         Module exclude.
76465         * m4/exclude.m4: New file.
76466
76467         Module human.
76468         * m4/human.m4: New file.
76469
76470         Module acl.
76471         * m4/acl.m4: Nop.
76472
76473         Module backupfile.
76474         * m4/backupfile.m4: New file.
76475         * m4/d-ino.m4: Indentation.
76476
76477         Module fsusage.
76478         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76479         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76480         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76481
76482         Module dirfd.
76483         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76484         requirements.
76485
76486         Module euidaccess.
76487         * m4/euidaccess.m4: New file.
76488
76489         Module file-type.
76490         * m4/file-type.m4: New file.
76491
76492         Module fileblocks.
76493         * m4/fileblocks.m4: New file.
76494
76495         Module filemode.
76496         * m4/filemode.m4: New file.
76497
76498         Module isdir.
76499         * m4/isdir.m4: New file.
76500
76501         Module lchown.
76502         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76503         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76504
76505         Module makepath.
76506         * m4/makepath.m4: New file.
76507
76508         Module modechange.
76509         * m4/modechange.m4: New file.
76510
76511         Module mountlist.
76512         * m4/mountlist.m4: New file.
76513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76514         Indentation.
76515
76516         Module path-concat.
76517         * m4/path-concat.m4: New file.
76518
76519         Module pathmax.
76520         * m4/pathmax.m4: New file.
76521
76522         Module same.
76523         * m4/same.m4: New file.
76524
76525         Module save-cwd.
76526         * m4/save-cwd.m4: New file.
76527
76528         Module savedir.
76529         * m4/savedir.m4: New file.
76530
76531         Module xgetcwd.
76532         * m4/xgetcwd.m4: New file.
76533         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76534
76535         Module xreadlink.
76536         * m4/xreadlink.m4: New file.
76537
76538         Module safe-read.
76539         * m4/safe-read.m4: New file.
76540
76541         Module safe-write.
76542         * m4/safe-write.m4: New file.
76543
76544         Module closeout.
76545         * m4/closeout.m4: New file.
76546
76547         Module stdio-safer.
76548         * m4/stdio-safer.m4: New file.
76549
76550         Module getpass.
76551         * m4/getpass.m4: New file.
76552
76553         Module getugroups.
76554         * m4/getugroups.m4: New file.
76555
76556         Module group-member.
76557         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76558         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76559
76560         Module idcache.
76561         * m4/idcache.m4: New file.
76562
76563         Module userspec.
76564         * m4/userspec.m4: New file.
76565
76566         Module gettime.
76567         * m4/clock_time.m4: New file.
76568         * m4/gettime.m4: New file.
76569
76570         Module settime.
76571         * m4/settime.m4: New file.
76572
76573         Module posixtm.
76574         * m4/posixtm.m4: New file.
76575
76576         Module gethostname.
76577         * m4/gethostname.m4: New file.
76578
76579         Module canon-host.
76580         * m4/canon-host.m4: New file.
76581
76582         Module gettext.
76583         * m4/codeset.m4: New file, from gettext-0.11.5.
76584         * m4/gettext.m4: New file, from gettext-0.11.5.
76585         * m4/glibc21.m4: New file, from gettext-0.11.5.
76586         * m4/iconv.m4: New file, from gettext-0.11.5.
76587         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76588         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76589         * m4/inttypes.m4: New file, from gettext-0.11.5.
76590         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76591         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76592         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76593         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76594         * m4/lib-link.m4: New file, from gettext-0.11.5.
76595         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76596         * m4/progtest.m4: New file, from gettext-0.11.5.
76597         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76598         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76599         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76600
76601         Module localcharset.
76602         * m4/localcharset.m4: New file.
76603
76604         Module hard-locale.
76605         * m4/hard-locale.m4: New file.
76606
76607         Module mbswidth.
76608         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76609         onceonly macros.
76610         * m4/mbrtowc.m4: Add comment.
76611
76612         Module memcasecmp.
76613         * m4/memcasecmp.m4: New file.
76614
76615         Module memcoll.
76616         * m4/memcoll.m4: New file.
76617
76618         Module unicodeio.
76619         * m4/unicodeio.m4: New file.
76620
76621         Module rpmatch.
76622         * m4/rpmatch.m4: New file.
76623
76624         Module yesno.
76625         * m4/yesno.m4: New file.
76626
76627         Module exitfail.
76628         * m4/exitfail.m4: New file.
76629
76630         Module c-stack.
76631         * m4/c-stack.m4 (gl_C_STACK): New macro.
76632         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76633
76634         Module error.
76635         * m4/error.m4 (gl_ERROR): New macro.
76636         (jm_PREREQ_ERROR): Use onceonly macros.
76637
76638         Module fatal.
76639         * m4/fatal.m4: New file.
76640
76641         Module getloadavg.
76642         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76643         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76644
76645         Module getpagesize.
76646         * m4/getpagesize.m4: New file.
76647
76648         Module getusershell.
76649         * m4/getusershell.m4: New file.
76650
76651         Module physmem.
76652         * m4/physmem.m4: New file.
76653
76654         Module posixver.
76655         * m4/posixver.m4: New file.
76656
76657         Module quotearg.
76658         * m4/quotearg.m4: New file.
76659
76660         Module quote.
76661         * m4/quote.m4: New file.
76662
76663         Module readutmp.
76664         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76665
76666         Module sig2str.
76667         * m4/sig2str.m4: New file.
76668
76669         Other.
76670         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76671         ulonglong.m4.
76672         * m4/intmax_t.m4: New file.
76673         * m4/d-type.m4: Indentation.
76674         * m4/jm-macros.m4: Update.
76675         * m4/prereq.m4 (jm_PREREQ): Update.
76676         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76677         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76678         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76679         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76680         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76681         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76682         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76683         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76684         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76685         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76686         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76687         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76688         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76689         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76690         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76691         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76692         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76693         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76694         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76695
76696 2002-12-24  Bruno Haible  <bruno@clisp.org>
76697
76698         * MODULES.txt: Update according to m4/ changes.
76699
76700         Module gettext.
76701         * config.rpath: New file, from gettext-0.11.5.
76702
76703         * modules/*: New module descriptions.
76704         * gnulib-tool: New file.
76705         * MODULES.html.sh: New file.
76706
76707 2002-12-21  Karl Berry  <karl@gnu.org>
76708
76709         * doc/fdl.texi: update to version 1.2.
76710
76711 2002-12-19  Karl Berry  <karl@gnu.org>
76712
76713         * config/config.guess: update from prep.
76714
76715 2002-12-18  Bruno Haible  <bruno@clisp.org>
76716
76717         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76718         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76719
76720 2002-12-17  Bruno Haible  <bruno@clisp.org>
76721
76722         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76723         stdlib.h, string.h.
76724
76725 2002-12-17  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/canon-host.c (strdup): Remove unused declaration.
76728
76729         * lib/fsusage.c: Include full_read.h.
76730         (get_fs_usage): Use full_read instead of safe_read.
76731
76732         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76733
76734 2002-12-12  Karl Berry  <karl@gnu.org>
76735
76736         * config/config.guess: update from prep.
76737
76738 2002-12-11  Bruno Haible  <bruno@clisp.org>
76739
76740         * m4/setenv.m4: New file, from gettext-0.11.5.
76741
76742 2002-12-11  Bruno Haible  <bruno@clisp.org>
76743
76744         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76745         not unsetenv().
76746         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76747         modifications:
76748
76749         2002-12-11  Bruno Haible  <bruno@clisp.org>
76750
76751                 * setenv.c (alloca): Fall back to malloc.
76752                 (freea): New macro.
76753                 (setenv): Use freea() to free memory allocated with alloca().
76754
76755         2002-11-13  Bruno Haible  <bruno@clisp.org>
76756
76757                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76758                 function declarations.
76759                 * unsetenv.c (unsetenv): Likewise.
76760
76761         2002-03-04  Bruno Haible  <bruno@clisp.org>
76762
76763                 Portability to AIX 4.3.3.
76764                 * unsetenv.c: New file, extracted from setenv.c.
76765                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76766
76767         2001-12-20  Bruno Haible  <bruno@clisp.org>
76768
76769                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76770                 use malloc instead. For SunOS 4.
76771
76772         2001-12-11  Bruno Haible  <bruno@clisp.org>
76773
76774                 * setenv.c: Declare alloca.
76775                 (compar_fn_t): New typedef.
76776                 (KNOWN_VALUE, STORE_VALUE): Use it.
76777
76778         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76779         setenv.h.
76780
76781 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76782
76783         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76784         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76785         Choose values that are less likely to collide with system fnmatch
76786         options.
76787         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76788         defined (e.g., a pure POSIX system).
76789         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76790         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76791
76792 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76793
76794         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76795         a pain in practice to deal with generated m4 files.  This change
76796         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76797
76798         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76799         and jm-glibc-io.m4, as they are no longer a special case.
76800         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76801         kludge and the auto-generation stuff.  Check only whether the
76802         functions are declared, not whether they exist, since older hosts
76803         that don't declare the functions can't use the optimization anyway.
76804
76805 2002-12-06  Jim Meyering  <jim@meyering.net>
76806
76807         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76808
76809         Merge in changes from libc's misc/error.c, in preparation
76810         for the merge of gnulib's changes back into libc.
76811
76812         * lib/error.c (_): Define only if not already defined.
76813         Move definition to follow all #include directives.
76814         Include unlocked-io.h only if !_LIBC.
76815         [_LIBC]: Include <libio/libioP.h>.
76816         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76817         (fflush): Tweak definition to use INTUSE.
76818         (putc): Define.
76819
76820 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76821
76822         * lib/alloca.c [defined emacs]: Include "lisp.h".
76823         (xalloc_die) [defined emacs]: New macro.
76824         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76825         [! defined emacs]: Include <xalloc.h>.
76826         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76827         (pointer): Typedef to POINTER_TYPE *.
76828         (malloc): Remove decl; we now always use xmalloc.
76829         (alloca): Use old-style definition, since Emacs needs this.
76830         Check for arithmetic overflow when computing combined size.
76831
76832 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76833
76834         Do not generate unlocked-io.h automatically, since it's easier to
76835         maintain it by hand.
76836
76837         * lib/unlocked-io.h: New file, from GNU diffutils,
76838         but with proper copyright notice and attribution.
76839         * lib/gen-uio: Remove.
76840         * lib/Makefile.am: Add copyright notice.
76841         (libfetish_a_SOURCES): Add unlocked-io.h.
76842         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76843         (DISTCLEANFILES, io_functions): Remove macros.
76844         (EXTRA_DIST): Remove gen_uio.
76845         (unlocked-io.h): Remove rule.
76846
76847 2002-12-04  Jim Meyering  <jim@meyering.net>
76848
76849         Reflect the fact that stat.c and lstat.c are no longer generated.
76850         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76851         (DISTCLEANFILES): Likewise.
76852         (EXTRA_DIST): Likewise.
76853         (all_local): Don't depend on stat.c or lstat.c.
76854         (stat.c, lstat.c): Remove rules.
76855         (EXTRA_DIST): Remove xstat.in.
76856
76857         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76858         * lib/stat.c: New file.  Contents mostly from xstat.in.
76859         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76860         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76861
76862         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76863         too.
76864         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76865
76866 2002-12-03  Jim Meyering  <jim@meyering.net>
76867
76868         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76869         but not semantics, to minimize the differences between these two files.
76870         (safe_read): Change comment to mention SAFE_READ_ERROR.
76871
76872         * lib/safe-read.c (IS_EINTR): Define.
76873         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76874
76875 2002-12-02  Jim Meyering  <jim@meyering.net>
76876
76877         * lib/safe-read.c (EINTR): Define.
76878         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76879         (INT_MAX): Provide fallback.
76880         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76881
76882         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76883
76884 2002-12-02  Bruno Haible  <bruno@clisp.org>
76885
76886         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76887         Define, taken from safe-read.c.
76888         (INT_MAX): Provide fallback.
76889         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76890         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76891
76892         * lib/safe-read.c (EINTR): Remove definition.
76893         (safe_read): Don't use EINTR if it is absent.
76894
76895 2002-12-01  Jim Meyering  <jim@meyering.net>
76896
76897         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76898         zero.
76899         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76900
76901 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76902
76903         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76904         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76905         with `if (! (value < limit)) abort ();', for readability.
76906
76907 2002-11-26  Karl Berry  <karl@gnu.org>
76908
76909         * lib/strdup.c: copy from libc again, with jim's ok.
76910         * lib/.cppi-disable: re-add strdup.c
76911
76912 2002-11-25  Karl Berry  <karl@gnu.org>
76913
76914         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76915         instead of "strtol.c".
76916
76917 2002-11-25  Karl Berry  <karl@gnu.org>
76918
76919         * config/install-sh: update from automake for variable quoting, $0 in
76920         error msgs, etc.
76921
76922         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76923         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76924         entry.
76925
76926 2002-11-25  Jim Meyering  <jim@meyering.net>
76927
76928         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76929
76930 2002-11-24  Karl Berry  <karl@gnu.org>
76931
76932         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76933         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76934
76935 2002-11-24  Jim Meyering  <jim@meyering.net>
76936
76937         Update from coreutils:
76938
76939         * lib/mktime.c: Merge in changes from libc.
76940
76941         Avoid a link-time failure on some Linux systems.
76942         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76943         (otherwise).
76944         (__mon_yday): Declare with the STATIC attribute.
76945         (__mktime_internal): Likewise.
76946         Based on a report from Greg Schafer.
76947
76948 2002-11-23  Jim Meyering  <jim@meyering.net>
76949
76950         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76951         Use `unsigned', not `int', as type of index.
76952
76953         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76954
76955         * lib/fsusage.c: Remove unneeded parentheses around operands of
76956         `defined'.
76957
76958 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76959
76960         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76961         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76962         so that we can be included first.
76963         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76964         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76965         No need to include stddef.h or sys/types.h any more.
76966         Surround local include files with "", not "<>".
76967         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76968         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76969         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76970         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76971         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76972         (ISPRINT): Remove; no longer needed now that we assume C89.
76973
76974         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76975         Preserve errno.
76976
76977         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76978         quotearg_char): Use SIZE_MAX rather than
76979         (size_t) -1 when we are talking about "infinity".
76980
76981         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76982
76983 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76984
76985         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76986         hint that one should use `if (! x) abort ();' rather than `assert
76987         (x);', and anyway it's one less thing to worry about configuring.
76988         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76989         hash_rehash, hash_insert): Use abort rather than assert.
76990
76991 2002-11-22  Bruno Haible  <bruno@clisp.org>
76992
76993         * lib/safe-read.h: Assume C89. Add comments.
76994         (safe_read): Change return type to size_t.
76995         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76996         byte counts > SSIZE_MAX correctly.
76997         * lib/safe-write.h: New file.
76998         * lib/safe-write.c: New file.
76999         * lib/full-read.h: New file.
77000         * lib/full-read.c: New file.
77001         * lib/full-write.h: Assume C89. Add comments.
77002         * lib/full-write.c: Include safe-write.h.
77003         (full_write): Rewritten to use safe_write.
77004         Suggested by Jim Meyering and Paul Eggert.
77005
77006 2002-11-21  Jim Meyering  <jim@meyering.net>
77007
77008         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77009
77010         Merge in changes from the coreutils.
77011
77012         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77013         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77014         <stdint.h>.
77015         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77016         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77017         int.  Work more efficiently if X is the same width as uintmax_t.
77018         Do not compare X to -1, to avoid bogus compiler warning.
77019         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77020         Don't assume that f_frsize and f_bsize are the same type.
77021
77022         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77023         warning on FreeBSD.
77024
77025         * lib/makepath.c (make_path): Restore umask *before* creating the final
77026         component.
77027         (make_path): Minor reformatting.
77028
77029         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77030         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77031         HAVE_MALLOC/HAVE_REALLOC.
77032
77033         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77034         dummy ones.  At least on GNU/Linux systems, `auto' means something
77035         else.
77036         From Michael Stone.
77037
77038 2002-11-21  Bruno Haible  <bruno@clisp.org>
77039
77040         Remove case insensitive option matching.
77041         * lib/argmatch.h (argcasematch): Remove declaration.
77042         (ARGCASEMATCH): Remove macro.
77043         (__xargmatch_internal): Remove case_sensitive argument.
77044         (XARGMATCH): Update.
77045         (XARGCASEMATCH): Remove macro.
77046         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
77047         case_sensitive argument.
77048         (argcasematch): Remove function.
77049         (__xargmatch_internal): Remove case_sensitive argument.
77050         (main): Use XARGMATCH instead of XARGCASEMATCH.
77051
77052         * lib/xmalloc.c: Change compile-time error message. Add comment about
77053         required autoconf version.
77054
77055 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77056
77057         Merge argmatch cleanups from Bison.  Assume C89.
77058
77059         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77060         Include stdlib.h, for EXIT_FAILURE.
77061         Always include <string.h>, since we assume C89.
77062         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77063         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77064         Include <stddef.h> instead, since it's all we need for size_t.
77065         (PARAMS): Remove.  All uses removed.
77066         (ARRAY_CARDINALITY): Do not bother to #undef.
77067         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77068         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77069         Remove unnecessary parentheses.
77070         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77071         Insert necessary parentheses.
77072         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77073         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77074
77075 2002-11-19  Bruno Haible  <bruno@clisp.org>
77076
77077         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77078         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77079
77080         * lib/mbswidth.h (PARAMS): Remove macro.
77081         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77082         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77083
77084         * lib/gcd.h (PARAMS): Remove macro.
77085         (gcd): Use ANSI C function declarations.
77086         * lib/gcd.c (gcd): Likewise.
77087
77088 2002-11-15  Bruno Haible  <bruno@clisp.org>
77089
77090         * lib/strcspn.c: Include <stddef.h>.
77091         (strcspn): Use ANSI C function declaration. Change return type to
77092         size_t. Use NULL.
77093         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77094         (strpbrk): Use NULL.
77095         * lib/strpbrk.h (PARAMS): Remove macro.
77096         (strpbrk): Use ANSI C function declaration.
77097         * lib/strstr.c: Don't include <sys/types.h>.
77098         * lib/strstr.h (PARAMS): Remove macro.
77099         (strstr): Use ANSI C function declarations.
77100
77101 2002-11-14  Karl Berry  <karl@gnu.org>
77102
77103         * config/mkinstalldirs: `do' on separate line, instead of
77104         `for var; do'.
77105
77106 2002-11-06  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77109         * lib/gcd.c (gcd): Likewise.
77110
77111 2002-11-05  Bruno Haible  <bruno@clisp.org>
77112
77113         * lib/gcd.h: New file, from gettext-0.11.5.
77114         * lib/gcd.c: New file, from gettext-0.11.5.
77115
77116 2002-11-05  Bruno Haible  <bruno@clisp.org>
77117
77118         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77119         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77120         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77121         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77122
77123         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77124         <libintl.h>.
77125         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77126         <libintl.h>.
77127
77128         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77129         * lib/human.c: Include gettext.h instead of <libintl.h>.
77130         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77131         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77132         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77133         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77134         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77135         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77136         (textdomain): Remove definition.
77137         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77138
77139         * lib/long-options.c: Remove include of <libintl.h> and definition of
77140         _.
77141         * lib/same.c: Remove include of <libintl.h> and definition of _.
77142
77143 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77144
77145         * lib/config.charset: A few additions for Solaris.
77146
77147 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77148
77149         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77150         * lib/localcharset.c (locale_charset): Declare as extern "C".
77151
77152 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77153
77154         * lib/config.charset: msdos in uk_UA uses CP1125.
77155
77156 2002-11-04  Bruno Haible  <bruno@clisp.org>
77157
77158         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77159         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77160         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77161         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77162         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77163
77164 2002-11-04  Bruno Haible  <bruno@clisp.org>
77165
77166         * lib/localcharset.c (locale_charset): Don't return an empty string.
77167
77168 2002-11-04  Bruno Haible  <bruno@clisp.org>
77169
77170         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77171         aliases.
77172
77173 2002-11-04  Bruno Haible  <bruno@clisp.org>
77174
77175         * lib/config.charset: Update for newest glibc. Add canonical names
77176         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77177
77178 2002-11-04  Bruno Haible  <bruno@clisp.org>
77179
77180         * lib/config.charset: Add support for NetBSD.
77181
77182 2002-11-04  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77185
77186 2002-11-01  Bruno Haible  <bruno@clisp.org>
77187
77188         * configure.in: Add AC_CONFIG_AUX_DIR call.
77189         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77190         test/Makefile.
77191         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77192
77193 2002-09-28  Karl Berry  <karl@gnu.org>
77194
77195         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77196         installed automake until the next release, since changes have been
77197         made.
77198
77199 2002-09-25  Karl Berry  <karl@gnu.org>
77200
77201         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77202         * lib/getopt*: copy from libc/posix.
77203         * lib/gettext.h: copy from gettext.
77204         * lib/.cppi-disable: add strdup.c, gettext.h.
77205
77206 2002-09-25  Karl Berry  <karl@gnu.org>
77207
77208         * config/srclist.txt: enable gettext.h check.
77209         * config/config.{guess,sub}: update from prep.
77210         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77211                 from automake 1.6.3.
77212         See srclist*.
77213
77214 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77215
77216         * regex.c (PATFETCH): Remove the translating fetch.
77217         (PATFETCH_RAW): Rename to PATFETCH.
77218         (set_image_of_range): New fun.
77219         (SET_RANGE_TABLE_WORK_AREA): Use it.
77220         (regex_compile): Don't translate the pattern chars so eagerly.
77221         Only do it when inserting an `exactn' bytecode or when handling
77222         a char-range.
77223         (mutually_exclusive_p): Avoid empty statement.
77224
77225 2002-07-06  Jim Meyering  <meyering@lucent.com>
77226
77227         * m4/README: Don't mention Makefile.am.in.
77228         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77229
77230 2002-07-01  Jim Meyering  <meyering@lucent.com>
77231
77232         * lib/c-stack.c: Include sys/time.h.
77233         From Volker Borchert.
77234
77235 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77236
77237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77238
77239 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77240
77241         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77242         New macro.  Use it uniformly instead of
77243         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77244         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77245         reported by Vin Shelton.
77246
77247 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77248
77249         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77250         Do not assume SA_SIGINFO behavior.
77251         Bug reported by Jim Meyering on NetBSD 1.5.2.
77252
77253 2002-06-22  Jim Meyering  <meyering@lucent.com>
77254
77255         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77257
77258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77259         now that configure.ac uses AC_GNU_SOURCE.
77260         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77261         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77262
77263         Update to latest tools.  Suggestions from Paul Eggert.
77264         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77265         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77266         * m4/fnmatch.m4: Likewise.
77267         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77268         to AC_HEADER_STDBOOL
77269
77270 2002-06-22  Jim Meyering  <meyering@lucent.com>
77271
77272         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77273         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77274
77275 2002-06-22  Jim Meyering  <meyering@lucent.com>
77276
77277         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77278
77279         * lib/exitfail.c, exitfail.h: Likewise.
77280         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77281
77282         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77283         of fnmatch.h.
77284         (EXTRA_DIST): Add fnmatch_loop.c.
77285         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77286
77287         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77288         * lib/fnmatch.c: Update from diffutils-2.8.2.
77289         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77290         * lib/fnmatch.h: Remove file.
77291
77292 2002-06-21  Jim Meyering  <meyering@lucent.com>
77293
77294         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77295         * m4/mbrtowc.m4: Likewise.
77296
77297         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77298         * m4/mbswidth.m4: Reflect name change:
77299         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77301
77302         * m4/lib-link.m4: Update from gettext-0.11.2.
77303         * m4/gettext.m4: Likewise.
77304
77305         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77306         From Alfred M. Szmidt.
77307
77308 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77309
77310         * lib/file-type.h: Report an error if neither S_ISREG nor
77311         S_IFREG is defined, instead of using a test specific to glibc
77312         2.2.  This should be safe, since POSIX requires S_ISREG and
77313         Unix Version 7 had S_IFREG.  We don't need to check for
77314         <sys/types.h> since we don't use any symbols that it defines.
77315
77316 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77317
77318         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77319         $@-t, so that each temporary file name is unique and valid in the first
77320         8 characters, for operation under DOS.
77321
77322 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77323
77324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77325
77326 2002-06-15  Jim Meyering  <meyering@lucent.com>
77327
77328         Work even with DJGPP 2.03, which lacks support for symlinks.
77329         From Richard Dawe.
77330         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77331         is defined.
77332         * lib/lchown.c (S_ISLNK): Likewise.
77333
77334 2002-06-15  Jim Meyering  <meyering@lucent.com>
77335
77336         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77337         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77338         have been included before this file.
77339
77340 2002-06-14  Jim Meyering  <meyering@lucent.com>
77341
77342         * lib/file-type.h: Use the version from diffutils-2.8.2.
77343         * lib/file-type.c: Likewise.
77344
77345 2002-06-07  Jim Meyering  <meyering@lucent.com>
77346
77347         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77348         They're needed at least for NetBSD 1.5.2.
77349         ($statxfs_includes): Include those same headers.
77350         ($statxfs_includes): Include sys/vfs.h if available.
77351         ($statxfs_includes): Likewise for sys/statvfs.h.
77352         Check for the following members in both structs statfs and statvfs:
77353         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77354
77355 2002-06-01  Jim Meyering  <meyering@lucent.com>
77356
77357         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77358         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77359
77360 2002-05-28  Jim Meyering  <meyering@lucent.com>
77361
77362         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77363         Reported by Volker Borchert.
77364
77365 2002-05-27  Jim Meyering  <meyering@lucent.com>
77366
77367         Fix a problem seen only on nonconforming systems whereby ls.c's
77368         use of localtime, and then of gettimeofday would cause trouble:
77369         the localtime call used to initialize rpl_gettimeofday's save
77370         mechanism would clobber ls's current local time information so
77371         that in any long listing the first file would always be listed
77372         with date 1970-01-01.  Analysis by Volker Borchert.
77373
77374         * lib/gettimeofday.c (localtime): Undefine.
77375         (rpl_localtime): New function.
77376
77377 2002-05-27  Jim Meyering  <meyering@lucent.com>
77378
77379         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77380         localtime.
77381
77382         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77383         use the replacement function; it wouldn't resolve at link time.
77384         Reported by Volker Borchert.
77385
77386 2002-05-22  Jim Meyering  <meyering@lucent.com>
77387
77388         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77389         file-type.h.
77390         * lib/file-type.h: New file.
77391         * lib/file-type.c (file_type): New file/function.  Extracted from
77392         diffutils.
77393
77394 2002-04-30  Jim Meyering  <meyering@lucent.com>
77395
77396         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77397
77398 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77399
77400         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77401
77402 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77403
77404         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77405         Do not check for alloca.h (no longer used) or stdbool.h (was never
77406         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77407
77408 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77409
77410         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77411
77412 2002-04-29  Jim Meyering  <meyering@lucent.com>
77413
77414         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77415         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77416         Use AC_FUNC_STRNLEN here instead.
77417
77418         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77419         With autoconf-2.53a, it's part of AC_PROG_CC.
77420
77421 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77422
77423         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77424         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77425
77426 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/sig2str.h, lib/sig2str.c: New files.
77429         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77430
77431 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77432
77433         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77434         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77435         of 127, since 64 is the largest conceivable number for ancient
77436         nonstandard hosts.
77437         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77438
77439 2002-04-28  Jim Meyering  <meyering@lucent.com>
77440
77441         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77442
77443 2002-04-24  Jim Meyering  <meyering@lucent.com>
77444
77445         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77446         (jm_PREREQ): Use it.
77447
77448         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77449         mach/mach.h fcntl.h.
77450         Check for this function: setlocale.
77451
77452 2002-04-24  Jim Meyering  <meyering@lucent.com>
77453
77454         * lib/gettext.h: New file, from Gettext.
77455         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77456         (libfetish_a_SOURCES): Add gettext.h.
77457
77458 2002-04-16  Jim Meyering  <meyering@lucent.com>
77459
77460         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77461         ut_pid, ut_id, ut_exit.
77462
77463 2002-04-16  Jim Meyering  <meyering@lucent.com>
77464
77465         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77466         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77467         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77468
77469 2002-04-12  Jim Meyering  <meyering@lucent.com>
77470
77471         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77472         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77473         existence of the getmntinfo function.  Needed for Darwin 5.3.
77474
77475         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77476         This is necessary at least on Darwin 5.3.
77477
77478         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77479         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77480         strnlen.o in the library, and that makes some versions of ranlib
77481         object.
77482
77483 2002-04-12  Jim Meyering  <meyering@lucent.com>
77484
77485         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77486
77487 2002-04-09  Jim Meyering  <meyering@lucent.com>
77488
77489         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77490         to be more precise.  Rather than saying we're checking whether the
77491         function `works', say what we're testing.
77492         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77493         Reported by Bruno Haible.
77494
77495 2002-03-10  Jim Meyering  <meyering@lucent.com>
77496
77497         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77498         Suggestion from Santiago Vila.
77499
77500 2002-03-08  Jim Meyering  <meyering@lucent.com>
77501
77502         * lib/rename.c: Mention that this wrapper is needed also on
77503         mips-dec-ultrix4.4 systems.
77504
77505 2002-03-02  Jim Meyering  <meyering@lucent.com>
77506
77507         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77508         not HAVE_CLOCK_SETTIME.
77509
77510 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77511
77512         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77513         Check for clock_settime.
77514
77515 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77516
77517         * lib/nanosleep.h: Rename to....
77518         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77519
77520         * lib/gettime.c: New file.
77521         * lib/settime.c: New file.
77522         * lib/stime.c: Remove.
77523
77524         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77525         timespec.h.  Remove nanosleep.h.
77526
77527 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77528
77529         * m4/acl.m4: New file.
77530         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77531         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77532
77533 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77534
77535         * lib/acl.c, lib/acl.h: New files.
77536         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77537
77538 2002-02-24  Jim Meyering  <meyering@lucent.com>
77539
77540         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77541         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77542         cause trouble.  Reported by Nelson Beebe.
77543
77544 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77545
77546         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77547         compilers that don't know that xalloc_die never returns.
77548
77549 2002-02-20  Jim Meyering  <meyering@lucent.com>
77550
77551         * lib/getdate.c: Regenerate using bison-1.33.
77552
77553 2002-02-17  Jim Meyering  <meyering@lucent.com>
77554
77555         * config/config.guess (main): Don't use `head -1'; it's no longer
77556         portable. Use `sed 1q' instead.
77557
77558 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77559
77560         * m4/codeset.m4: Upgrade to gettext-0.11.
77561         * m4/gettext.m4: Upgrade to gettext-0.11.
77562         * m4/glibc21.m4: Upgrade to gettext-0.11.
77563         * m4/iconv.m4: Upgrade to gettext-0.11.
77564         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77565         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77566         * m4/lib-ld.m4: New file, from gettext-0.11.
77567         * m4/lib-link.m4: New file, from gettext-0.11.
77568         * m4/lib-prefix.m4: New file, from gettext-0.11.
77569         * m4/progtest.m4: Upgrade to gettext-0.11.
77570
77571 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77572
77573         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77574         (jm_PREREQ): Use it.
77575
77576 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77577
77578         * lib/posixver.c, lib/posixver.h: New files.
77579         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77580
77581 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77582             Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77585         (fwrite_success_callback): New declaration.
77586         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77587         print_unicode_char. Call failure callback instead of error.
77588         (fwrite_success_callback): New function.
77589         (exit_failure_callback): New function.
77590         (fallback_failure_callback): New function.
77591         (print_unicode_char): Call unicode_to_mb.
77592
77593 2002-01-26  Jim Meyering  <meyering@lucent.com>
77594
77595         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77596         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77597
77598 2002-01-26  Jim Meyering  <meyering@lucent.com>
77599
77600         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77601
77602 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77603
77604         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77605
77606 2002-01-22  Jim Meyering  <meyering@lucent.com>
77607
77608         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77609         Otherwise, some versions of automake would omit the rule that makes
77610         Makefile from Makefile.in.
77611
77612 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77613
77614         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77615         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77616         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77617         (memcoll): Set errno to zero if there is no error.
77618
77619         * lib/quotearg.c (quotearg_buffer_restyled):
77620         Fix bug with quoting buffers containing NUL when backslashing escapes.
77621         This bug was exposed by the other changes in this patch.
77622         (quotearg_n_options): New arg ARGSIZE.
77623         All callers changed.
77624         (quoting_options_from_style): New function.
77625         (quotearg_n_style): Use it.
77626         (quotearg_n_style_mem): New function.
77627
77628         * lib/quotearg.h (quotearg_n_style_mem): New function.
77629
77630 2002-01-19  Jim Meyering  <meyering@lucent.com>
77631
77632         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77633         Remove useless quotes: DF_PROG="df".
77634         * m4/strnlen.m4: New file.
77635
77636 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77637
77638         * lib/backupfile.c (ISDIGIT): Comment fix.
77639         * lib/getdate.y (ISDIGIT): Likewise.
77640         * lib/posixtm.c (ISDIGIT, year): Likewise.
77641         * lib/strverscmp.c (ISDIGIT): Likewise.
77642         * lib/userspec.c (ISDIGIT): Likewise.
77643
77644 2002-01-16  Jim Meyering  <meyering@lucent.com>
77645
77646         * lib/getdate.y: Add three semicolons, each just before a closing
77647         brace. Bison (as of version 1.31) no longer papers over that mistake.
77648
77649 2002-01-05  Jim Meyering  <meyering@lucent.com>
77650
77651         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77652
77653 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77654
77655         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77656         not silently exit merely because the output buffer happens to
77657         have nothing pending.
77658
77659 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77660
77661         See the big note in ../ChangeLog.
77662         * lib/human.c (suffixes): Prefer K to k for 1024.
77663         (generate_suffix_backwards): New function.
77664         (human_readable_inexact): Use it.
77665         * lib/xstrtol.c (__xstrtol): If there is no number but there
77666         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77667         Accept 'K' as well as 'k'.
77668
77669 2001-12-15  Jim Meyering  <meyering@lucent.com>
77670
77671         * lib/regex.h (__restrict_arr): Update from libc.
77672
77673         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77674         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77675         (STREQ): Define.
77676
77677 2001-12-14  Jim Meyering  <meyering@lucent.com>
77678
77679         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77680         Suggestion from Bruno Haible.
77681
77682 2001-12-10  Jim Meyering  <meyering@lucent.com>
77683
77684         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77685         xrealloc, Instead, include "xalloc.h".
77686         (initbuffer): Don't cast xmalloc return value to char*.
77687         (readline): Reword comment.
77688         Don't cast xrealloc return value to char*
77689         Return NULL, not 0.
77690
77691 2001-12-09  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77694         about `signed and unsigned type in conditional expression'.
77695         * lib/posixtm.c (posix_time_parse): Likewise.
77696
77697         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77698
77699         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77700         to avoid a pedantic warning.
77701
77702         * lib/getstr.c: Don't include assert.h.
77703         (getstr): Remove warning-evoking assertions.
77704         Return -1 if offset parameter is out of bounds.
77705         Change the type of a local from int to size_t.
77706
77707         * lib/strftime.c (my_strftime_localtime_r): Include this function
77708         definition in the `#if ! HAVE_TM_GMTOFF' block.
77709
77710         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77711         Include xalloc.h instead.
77712
77713 2001-12-02  Jim Meyering  <meyering@lucent.com>
77714
77715         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77716         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77717         included.
77718
77719         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77720         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77721
77722 2001-11-30  Akim Demaille  <akim@epita.fr>
77723
77724         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77725         before being defined.
77726
77727 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77728
77729         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77730         First arg is int, not unsigned.
77731         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77732         (SIZE_MAX, UINT_MAX): New macros.
77733         (quotearg_n_options): Abort if N is negative.
77734         Avoid overflow check on hosts where size_t is 64 bits and int
77735         is 32 bits, as overflow is impossible there.
77736         Fix off-by-one typo that caused unnecessary reallocation.
77737
77738 2001-11-27  Jim Meyering  <meyering@lucent.com>
77739
77740         * lib/tempname.c: Merge with version from libc.
77741         * lib/regex.c: Likewise.
77742
77743         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77744         systems for which STDC_HEADERS is 0, it was not included, resulting in
77745         a warning about an integer-to-pointer conversion problem with getenv.
77746         Reported by Volker Borchert.
77747
77748 2001-11-26  Jim Meyering  <meyering@lucent.com>
77749
77750         * lib/gtod.h: Remove file.
77751         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77752         * lib/gettimeofday.c: Don't include gtod.h.
77753         (GTOD_init): Remove function.
77754         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77755         Suggestion from Volker Borchert.
77756
77757 2001-11-23  Jim Meyering  <meyering@lucent.com>
77758
77759         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77760         it.
77761         * lib/hash.c (struct hash_table): Define it here instead.
77762
77763 2001-11-22  Jim Meyering  <meyering@lucent.com>
77764
77765         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77766
77767 2001-11-20  Jim Meyering  <meyering@lucent.com>
77768
77769         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77770         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77771
77772 2001-11-19  Jim Meyering  <meyering@lucent.com>
77773
77774         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77775         directory.  Use "conftestXXXXXX" as the template.
77776         Suggestion from Paul Eggert.
77777
77778         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77779         immediately, so the test doesn't mistakenly hit the max-open-files
77780         limit.
77781
77782 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77783
77784         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77785         (TEMPORARIES): New macro.
77786         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77787         removes an artificial limitation (e.g. HP-UX 10.20, where
77788         TMP_MAX is 17576).
77789
77790 2001-11-18  Jim Meyering  <meyering@lucent.com>
77791
77792         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77793
77794 2001-11-18  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77797         on SunOS 4.
77798
77799         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77800         files will be created before anything else.
77801
77802 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77803
77804         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77805         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77806
77807 2001-11-17  Jim Meyering  <meyering@lucent.com>
77808
77809         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77810         Prompted by a report from Bob Proulx.
77811
77812         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77813         Instead, require UTILS_FUNC_MKSTEMP.
77814
77815 2001-11-17  Jim Meyering  <meyering@lucent.com>
77816
77817         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77818         Now, that's done as part of AC_FUNC_STRTOD.
77819
77820 2001-11-17  Jim Meyering  <meyering@lucent.com>
77821
77822         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77823         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77824         rather than group writable.  Patch by Juan F. Codagnone.
77825
77826         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77827         xrealloc, Instead, include "xalloc.h".
77828
77829         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77830         Remove explicit declarations of xmalloc, xrealloc,
77831         and xstrdup.  Instead, include "xalloc.h".
77832
77833         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77834         unlocked-io.h.
77835         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77836         Likewise.
77837         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77838
77839         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77840         Reported by Padraig Brady.
77841
77842         * lib/mkstemp.c: #undef mkstemp.
77843         Include config.h.
77844         (rpl_mkstemp): Rename from mkstemp.
77845         Protoize.
77846
77847 2001-11-16  Jim Meyering  <meyering@lucent.com>
77848
77849         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77850         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77851         determine the amount of total physical memory, use pstat_getstatic.
77852         HPUX-11 doesn't define _SC_PHYS_PAGES.
77853         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77854         If sysconf couldn't be used to determine the amount of available
77855         physical memory, use both pstat_getstatic and pstat_getdynamic.
77856         Based on a patch from Bob Proulx.
77857
77858 2001-11-10  Jim Meyering  <meyering@lucent.com>
77859
77860         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77861         (jm_PREREQ): Use it.
77862
77863 2001-11-09  Jim Meyering  <meyering@lucent.com>
77864
77865         * m4/jm-macros.m4: Require autoconf-2.52f.
77866         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77867         Use these AC_-prefixed names, not the AM_-prefixed ones.
77868
77869         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77870
77871 2001-11-05  Jim Meyering  <meyering@lucent.com>
77872
77873         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77874
77875 2001-11-04  Jim Meyering  <meyering@lucent.com>
77876
77877         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77878         $DEFS.
77879
77880 2001-11-03  Jim Meyering  <meyering@lucent.com>
77881
77882         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77883         of AC_DEFUN.
77884
77885         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77886         know the name of the variable in the macro definition.
77887
77888 2001-11-03  Jim Meyering  <meyering@lucent.com>
77889
77890         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77891         in argmatch_to_argument call.
77892
77893         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77894         argument.
77895
77896         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77897         e.g., a fault due to an attempt to free a NULL pointer.
77898
77899 2001-11-01  Jim Meyering  <meyering@lucent.com>
77900
77901         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77902         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77903
77904 2001-11-01  Jim Meyering  <meyering@lucent.com>
77905
77906         * lib/dirfd.c, lib/dirfd.h: New files.
77907         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77908
77909         * lib/hash.c (hash_print) [TESTING]: Clean up.
77910
77911 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77912
77913         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77914         to avoid a warning if -Wall.
77915
77916 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77917
77918         * README: New file
77919         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77920         (per RMS's instructions, this is now the canonical source)
77921         * lgpl/, gpl/: New directories.
77922
77923 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77924
77925         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77926
77927 2001-10-21  Jim Meyering  <meyering@lucent.com>
77928
77929         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77930         this code would end up calling gettext even in packages built
77931         with --disable-nls.
77932         * lib/getopt.c (_): Likewise.
77933         * lib/regex.c (_): Likewise.
77934
77935 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77936
77937         * m4/error.m4 (jm_PREREQ_ERROR):
77938         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77939         AC_FUNC_STRERROR_R does that.
77940         Check for strerror declaration.
77941
77942         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77943         are supposed to have them these days.
77944         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77945         Merge changes from latest Autoconf CVS.
77946         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77947         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77948         POSIX decided to standardize on the int flavor of strerror_r.
77949
77950 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77951
77952         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77953         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77954         Use strerror_r that is only a macro, even if it is not a function.
77955         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77956         (private_strerror): Use prototypes, not old-style function definition.
77957         (print_errno_message): New function.
77958         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77959         char*-flavored one.
77960         (error_tail, error, error_at_line): Use it.
77961
77962 2001-10-11  Jim Meyering  <meyering@lucent.com>
77963
77964         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77965         and quote_n (1, ... to avoid clobbering a buffer.
77966
77967 2001-10-05  Jim Meyering  <meyering@lucent.com>
77968
77969         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77970         hash-pjw.h.
77971         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77972         * lib/hash-pjw.h: New file.
77973
77974 2001-09-30  Jim Meyering  <meyering@lucent.com>
77975
77976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77977         `struct fsstat' has the `f_fstypename' member.
77978         Use that to define FS_TYPE, which is now used to make
77979         the getfsstat link test tighter.
77980
77981 2001-09-30  Jim Meyering  <meyering@lucent.com>
77982
77983         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77984         Include <sys/ucred.h>, for Apple Darwin.
77985         Include sys/mount.h and sys/fs_types.h only if available.
77986         (FS_TYPE): Define.
77987         (read_filesystem_list): Use FS_TYPE.
77988
77989 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77990
77991         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77992         a boolean context.
77993
77994 2001-09-29  Jim Meyering  <meyering@lucent.com>
77995
77996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77997         [one-argument getmntent function]): Include stdio.h before mntent.h.
77998         SunOS 4.1.x needs it for the declaration of `FILE'.
77999         Patch by Volker Borchert.
78000
78001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78002         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78003         sys/fs_types.h, and make the link-test for getfsstat guard #include
78004         directives with appropriate #if HAVE_*_H tests so that we can
78005         detect getfsstat on Apple Darwin1.3.7 systems.
78006         Reported by Nelson Beebe.
78007         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78008
78009 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78010
78011         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78012         #defines strtoimax.  Also treat the other strto* functions
78013         like strtoimax.
78014
78015         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78016         Check for strtoul and strtoumax,
78017         as those declarations are made even in the signed case.
78018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78019         Likewise, for strtol and strtoimax.
78020
78021 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78022
78023         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78024         #defines strtoimax.  Also treat the other strto* functions
78025         like strtoimax.
78026
78027         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78028         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78029         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78030
78031 2001-09-26  Jim Meyering  <meyering@lucent.com>
78032
78033         Most macros in unlocked-io.h had the wrong number of arguments.
78034         * lib/gen-uio: New script.
78035         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78036         * lib/unlocked-io.hin: Remove file.
78037         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78038         rather than trying to embed it here.
78039         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78040         Reported by Padraig Brady.
78041
78042 2001-09-25  Volker Borchert  <bt@teknon.de>
78043
78044         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78045         `result'.
78046
78047 2001-09-24  Jim Meyering  <meyering@lucent.com>
78048
78049         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
78050
78051 2001-09-23  Jim Meyering  <meyering@lucent.com>
78052
78053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
78054         instead of the mere test for existence of mntent.h.  The latter
78055         would get a false-positive on AIX 3.4 systems.
78056         In the outer getmntent if-block, don't die if neither of the getmntent
78057         tests succeeds.  Instead, just fall through and continue with the
78058         remaining tests.
78059
78060 2001-09-23  Jim Meyering  <meyering@lucent.com>
78061
78062         * lib/mountlist.c: Remove useless parentheses in #if directives.
78063         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78064         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78065
78066 2001-09-22  Jim Meyering  <meyering@lucent.com>
78067
78068         * m4/gettext.m4: New file.  From gettext.
78069         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78070         * m4/progtest.m4: Likewise
78071         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78072         * m4/glibc21.m4: Likewise.
78073
78074         * m4/libintl.m4: Remove.  No longer used.
78075
78076 2001-09-22  Jim Meyering  <meyering@lucent.com>
78077
78078         * lib/localcharset.c: Update from latest gettext.
78079         * lib/config.charset: Likewise.
78080
78081 2001-09-20  Jim Meyering  <meyering@lucent.com>
78082
78083         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78084         strtoimax.
78085         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78086         strtoumax.
78087
78088 2001-09-20  Jim Meyering  <meyering@lucent.com>
78089
78090         * lib/xstrtol.c (strtoimax): Guard declaration with
78091         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78092         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78093         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78094         (strtoumax): Likewise, for completeness (it wasn't necessary).
78095
78096 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78097
78098         * lib/strtoimax.c (HAVE_LONG_LONG):
78099         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78100         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78101         to work around bug in IBM C compiler.
78102
78103 2001-09-17  Jim Meyering  <meyering@lucent.com>
78104
78105         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78106         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78107         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78108         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78109         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78110         whenever the right hand side need not be expanded by the shell.
78111
78112 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78115         library.  It's not correct, as some older glibcs are buggy.
78116         fnmatch wasn't fixed until glibc 2.2.
78117
78118         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78119         special shell magic here.
78120
78121 2001-09-16  Jim Meyering  <meyering@lucent.com>
78122
78123         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78124         * m4/jm-macros.m4: Require it.
78125
78126 2001-09-16  Jim Meyering  <meyering@lucent.com>
78127
78128         * lib/mkdir.c: New file.
78129
78130 2001-09-15  Jim Meyering  <meyering@lucent.com>
78131
78132         * m4/jm-macros.m4: Check for help2man.
78133
78134 2001-09-11  Jim Meyering  <meyering@lucent.com>
78135
78136         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78137         The body, by Paul Eggert, was moved here from configure.in.
78138         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78139
78140 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78141
78142         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78143         (jm_PREREQ): Use it.
78144
78145 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78146
78147         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78148         Use ssize_t, not int, to store result of readlink.
78149         Check for ssize_t overflow as well as size_t overflow,
78150         as POSIX says the result of readlink is implementation-defined
78151         when ssize_t overflows.
78152         Remove unnecessary cast to char*.
78153         Use free+malloc instead of realloc, as the storage doesn't need
78154         to be preserved and it's clearer and can be more efficient that way.
78155         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78156         * lib/xreadlink.h (xreadlink): Update prototype.
78157
78158 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78159
78160         * lib/xgetcwd.c: Revert some of the previous change; intead,
78161         fix the HAVE_GETCWD_NULL code to behave more like the
78162         !HAVE_GETCWD_NULL code used to.
78163
78164         Include "xalloc.h".
78165         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78166         invoke xalloc_die.
78167
78168 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78169
78170         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78171         sys/param.h, as pathmax.h includes them.
78172
78173 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78174
78175         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78176         (jm_PREREQ_XGETCWD): New macro.
78177
78178         * m4/getcwd.m4: New file.
78179
78180 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78181
78182         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78183         like the HAVE_GETCWD_NULL code.
78184         Include pathmax.h if not HAVE_GETCWD.
78185         Do not include xalloc.h.
78186         (INITIAL_BUFFER_SIZE): New symbol.
78187         Do not use xmalloc / xrealloc, since the caller is responsible for
78188         handling errors.  Preserve errno around `free' during failure.
78189         Do not overrun buffer when using getwd.
78190
78191 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78192
78193         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78194         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78195         getcwd (NULL, 0).
78196
78197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78198
78199         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78200         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78201         spotted by Jim Meyering.
78202
78203 2001-09-03  Jim Meyering  <meyering@lucent.com>
78204
78205         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78206         failure.
78207
78208 2001-09-02  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/error.c: Update from GNU libc.
78211
78212 2001-09-01  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78215         Used by df.
78216
78217 2001-09-01  Jim Meyering  <meyering@lucent.com>
78218
78219         * lib/xreadlink.c: New file.
78220         * lib/xreadlink.h: New file.
78221         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78222         xreadlink.h.
78223
78224         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78225         doesn't conflict with sparc Solaris 7's definition in
78226         /usr/include/sys/int_types.h.
78227
78228         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78229         files.
78230         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78231         and strncasecmp as r-values.  Unixware didn't have declarations.
78232
78233 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78234
78235         * lib/xstrtol.h: Add copyright notice.
78236         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78237         LONGINT_INVALID_SUFFIX_CHAR.
78238
78239 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78240
78241         * lib/xstrtol.c (strtoimax): New decl.
78242
78243 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78244
78245         * lib/xgetcwd.c: Don't include pathmax.h.
78246         Include stdlib.h and unistd.h if available.
78247         Include xalloc.h.
78248         (xmalloc, xstrdup, free): Remove decls.
78249         (xgetcwd): Don't assume sizes fit in unsigned.
78250         Check for overflow when computing sizes.
78251         Simplify reallocation code.
78252
78253 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78254
78255         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78256         a directory's st_size can have an arbitrary value, so the old
78257         usage could waste an arbitrary amount of memory.  All uses
78258         changed.
78259         * lib/savedir.h: Update prototype.
78260
78261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78262
78263         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78264
78265         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78266         old strtoimax.c.
78267
78268         Also, make the following further changes to make this file's
78269         configuration more similar to that of strtol.c:
78270         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78271         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78272         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78273         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78274         changed to signed values.
78275
78276         And make the following changes as well:
78277         Fix copyright notice, as 1999 was missing.
78278         (verify): New macro.
78279         (strtoimax): Check sizes at compile-time, not run-time.
78280         Prefer strtol to strtoll if both work.
78281         (main): Remove; it was not that useful and was a pain to maintain.
78282
78283         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78284
78285 2001-08-31  Jim Meyering  <meyering@lucent.com>
78286
78287         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78288         Use an initial, malloc'd, buffer of length 128 rather than
78289         a statically allocated one of length 1024.
78290
78291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78292
78293         Simplify code, partly by assuming autoconf 2.52 semantics.
78294
78295         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78296
78297         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78298         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78299         All uses removed.
78300         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78301         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78302         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78303         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78304         jm_AC_HEADER_INTTYPES_H.
78305         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78306
78307         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78308
78309         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78310         Quote first arg of AC_DEFUN.
78311         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78312         since they are needed to parse the include file even if we need
78313         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78314         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78315         but with opposite signedness.
78316
78317 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78318
78319         Merge 'exclude' changes from tar 1.13.22.
78320         This fixes one or two unlikely storage allocation overflow bugs,
78321         but doesn't change user-visible behavior otherwise.
78322
78323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78324
78325         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78326         (jm_PREREQ_EXCLUDE): New macro.
78327
78328 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78329
78330         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78331         tm to be declared.
78332
78333 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78334
78335         * lib/hash.c: Remove '2001' from copyright notice.
78336
78337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78338
78339         * lib/full-write.h: New file.
78340         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78341         * lib/full-write.c: Correct credits, as cccp.c no longer
78342         exists and anyway it was so heavily changed from the old cccp
78343         code as to be unrecognizable.  Include full-write.h.
78344         (full_write): Return size_t, with short writes meaning failure.
78345         All callers changed.  This fixes a bug with large buffers
78346         on 64-bit hosts.
78347         * lib/utime.c: Include full-write.h.
78348
78349 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78350
78351         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78352         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78353         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78354         Include if available.
78355         (<xalloc.h>): Include
78356         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78357         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78358         collide with FNM macros.
78359         (struct patopts): New struct.
78360         (struct exclude): Use it, as exclude patterns now come with options.
78361         (new_exclude): Support above changes.
78362         (new_exclude, add_exclude_file):
78363         Initial size must now be a power of two to simplify overflow checking.
78364         (free_exclude, fnmatch_no_wildcards): New function.
78365         (excluded_filename): No longer requires options arg, as the options
78366         are determined by add_exclude.  Now returns bool, not int.
78367         (excluded_filename, add_exclude):
78368         Add support for the fancy new exclusion options.
78369         (add_exclude, add_exclude_file): Now takes int options arg.
78370         Check for arithmetic overflow when computing sizes.
78371         (add_exclude_file): xrealloc might modify errno, so don't
78372         realloc until after errno might be used.
78373
78374         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78375         New macros.
78376         (free_exclude): New decl.
78377         (add_exclude, add_exclude_file): Now takes int options arg.
78378         (excluded_filename): No longer requires options arg, as the options
78379         are determined by add_exclude.  Now returns bool, not int.
78380
78381 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78382
78383         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78384
78385 2001-08-27  Jim Meyering  <meyering@lucent.com>
78386
78387         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78388
78389         * lib/version-etc.c (N_): Remove definition.
78390         Revert most of last change.
78391         Instead, simply don't mark the `Copyright...' string for translation.
78392         Based on advice from Paul Eggert.
78393
78394         * lib/strtoxmax.c: Tweak comment.
78395
78396 2001-08-26  Jim Meyering  <meyering@lucent.com>
78397
78398         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78399
78400         * m4/xstrtoimax.m4: New file.
78401         * m4/xstrtoumax.m4: Add comments explaining why we
78402         AC_REPLACE_FUNCS(strtol).
78403
78404 2001-08-26  Jim Meyering  <meyering@lucent.com>
78405
78406         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78407         of copyright with `%s' so translators don't get an untranslated
78408         message in 2002.
78409         (COPYRIGHT_YEAR): Define.
78410         (version_etc): Use fprintf rather than fputs.
78411         Suggestion from Ulrich Drepper.
78412
78413         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78414
78415         * lib/strtoll.c: New file, from GNU libc.
78416         * lib/xstrtoimax.c: New file.
78417
78418         * lib/xstrtol.h: Add xstrtoimax.
78419         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78420         * lib/strtoimax.c: New file.  Likewise, but first define
78421         STRTOUXMAX_SIGNED.
78422
78423         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78424         ...
78425         * lib/strtoxmax.c: ... then renamed to this.
78426
78427 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78428
78429         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78430         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78431         (jm_AC_TYPE_INTMAX_T): New macro.
78432         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78433
78434         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78435
78436         * m4/longlong.m4: Renamed from ulonglong.m4.
78437         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78438         * m4/uintmax_t.m4: Removed.
78439
78440 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78441
78442         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78443         Port to Solaris 8, where 'sed' requires a space after the 'r'
78444         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78445         Redirect output to $tmp just once.
78446
78447 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78448
78449         * lib/addext.c (<errno.h>): Include.
78450         (errno): Declare if not defined.
78451         (addext): Work correctly when pathconf returns -1 and leaves
78452         errno alone because there is no limit.  Also, work even if
78453         pathconf returns a value greater than SIZE_MAX.
78454
78455 2001-08-12  Jim Meyering  <meyering@lucent.com>
78456
78457         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78458         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78459         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78460         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78461         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78462         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78463         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78464         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78465         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78466         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78467         utime.m4, utimes.m4, xstrtoumax.m4:
78468         Quote the first argument in each use of AC_DEFUN.
78469
78470 2001-08-12  Jim Meyering  <meyering@lucent.com>
78471
78472         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78473         Simply `return getcwd (NULL, 0);'.
78474         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78475         Use 1300 as initial value for length, not PATH_MAX.
78476
78477         * lib/pathmax.h: Clean up cpp syntax.
78478
78479 2001-08-12  Jim Meyering  <meyering@lucent.com>
78480
78481         * lib/gettimeofday.c: New file.
78482         * lib/gtod.h: New file.
78483         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78484
78485 2001-08-05  Jim Meyering  <meyering@lucent.com>
78486
78487         * m4/jm-macros.m4: Require autoconf-2.52.
78488
78489 2001-08-04  Jim Meyering  <meyering@lucent.com>
78490
78491         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78492         stmt, to get in sync with glibc.
78493
78494 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78495
78496         The following changes are from gettext 0.10.39 as maintained by
78497         Bruno Haible.
78498
78499         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78500         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78501         with inverted sense.  All uses changed.
78502
78503         * lib/mbswidth.c: Don't include <limits.h>.
78504         Include <stdlib.h> and <string.h> unconditionally.
78505         (iswcntrl, mbsinit, ISCNTRL): New macros.
78506         (mbsnwidth): Use K&R style function declarations.
78507         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78508         can optimize it when MB_CUR_MAX == 1.
78509         The width of control characters is zero, not 1.
78510
78511 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78512
78513         The following changes are from gettext 0.10.39 as maintained by
78514         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78515
78516         * m4/codeset.m4: Upgrade to serial AM1.
78517         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78518         all uses changed.  Quote first arg of AC_DEFUN.
78519         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78520
78521         * m4/iconv.m4: Upgrade to serial AM2.
78522         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78523         Add --with-libconv-prefix.
78524         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78525         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78526         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78527         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78528         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78529
78530         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78531         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78532         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78533         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78534         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78535         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78536         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78537         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78538         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78539
78540         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78541         string.h any more.
78542
78543         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78544         not the default value.
78545
78546         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78547         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78548         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78549         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78550         Also check for iswcntrl, used for wcwidth fallback.
78551         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78552         to Autoconf 2.13.
78553
78554 2001-08-03  Jim Meyering  <meyering@lucent.com>
78555
78556         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78557         as it was in the original.  Reported by Paul Eggert.
78558
78559 2001-07-16  Jim Meyering  <meyering@lucent.com>
78560
78561         * m4/gettimeofday.m4: New file.
78562         Prompted by a report from Bernhard Baehr.
78563
78564 2001-07-15  Jim Meyering  <meyering@lucent.com>
78565
78566         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78567         stuff. Now it's in ../Makefile.cfg.
78568
78569 2001-07-15  Jim Meyering  <meyering@lucent.com>
78570
78571         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78572         (BUILT_SOURCES): Add unlocked-io.h.
78573         (io_functions): Define.
78574         (unlocked-io.h): New rule.
78575         (DISTCLEANFILES): Add unlocked-io.h.
78576         (all-local): Depend on unlocked-io.h, to ensure it is created.
78577
78578         * lib/unlocked-io.hin: New file
78579
78580         * lib/regex.c: Update from glibc.
78581
78582 2001-07-05  Jim Meyering  <meyering@lucent.com>
78583
78584         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78585         recommendation.
78586         (libfetish_a_SOURCES): Put all .h files here instead.
78587         Remove a thus-exposed (better checks in automake) duplicate and
78588         two unnecessary .h files.
78589
78590 2001-07-04  Jim Meyering  <meyering@lucent.com>
78591
78592         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78593         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78594         distcheck failure.
78595
78596 2001-07-02  Jim Meyering  <meyering@lucent.com>
78597
78598         The following changes were prompted by suggestions from Bruno Haible.
78599
78600         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78601         is now generated.
78602         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78603         definition of EXTRA_DIST.
78604         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78605         ensure that the generated file is created/updated whenever the list
78606         of $(unlocked_functions) is changed.
78607         (jm-glibc-io.m4): New rule.
78608         (unlocked-io.h): New rule -- currently unused.
78609
78610 2001-06-24  Jim Meyering  <meyering@lucent.com>
78611
78612         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78613         unmatched right bracket, rather than kludging it with an extra,
78614         falsely-matching quote in a comment.  Patch by Akim Demaille.
78615
78616 2001-06-11  Jim Meyering  <meyering@lucent.com>
78617
78618         * lib/regex.c: Update from GNU libc.
78619
78620 2001-05-27  Jim Meyering  <meyering@lucent.com>
78621
78622         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78623         Check for ut_type in struct utmp.
78624
78625 2001-05-27  Jim Meyering  <meyering@lucent.com>
78626
78627         * lib/readutmp.h (UT_TYPE): Define.
78628
78629 2001-05-24  Jim Meyering  <meyering@lucent.com>
78630
78631         * lib/argmatch.c: Include "quote.h".
78632         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78633         quote function.  Reported by Göran Uddeborg.
78634
78635 2001-05-22  Jim Meyering  <meyering@lucent.com>
78636
78637         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78638         now that we use the package-supplied version unconditionally.
78639         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78640
78641 2001-05-21  Jim Meyering  <meyering@lucent.com>
78642
78643         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78644         shell syntax errors.
78645
78646 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78647
78648         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78649
78650 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78651
78652         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78653         Don't bother to check library strftime, since
78654         we'll be using our own my_strftime function anyway.
78655         Define my_strftime instead of strftime.
78656
78657 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78658
78659         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78660         which is not yet declared.
78661
78662 2001-05-15  Jim Meyering  <meyering@lucent.com>
78663
78664         * m4/regex.m4: Use proper quoting so brackets appear in the test
78665         program.
78666         Reported by, and with help from, Bruno Haible.
78667
78668 2001-05-13  Jim Meyering  <meyering@lucent.com>
78669
78670         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78671         undefined.
78672
78673 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78674
78675         dirname code cleanup.  base_name now behaves more compatibly
78676         with POSIX basename when given file names that have trailing
78677         slashes, and similarly for dir_name.  Add new primitives
78678         base_len and dir_len.  Put the directory-name-related decls
78679         into dirname.h.
78680
78681         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78682         * lib/backupfile.c (base_name): Likewise.
78683         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78684         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78685         * lib/makepath.c (strip_trailing_slashes): Likewise.
78686         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78687         ISSLASH): Likewise.
78688         * lib/rename.c (strip_trailing_slashes): Likewise.
78689         * lib/same.c (base_name): Likewise.
78690         * lib/stripslash.c (ISSLASH): Likewise.
78691
78692         * lib/addext.c: Include <dirname.h> after size_t is defined.
78693         * lib/backupfile.c: Likewise.
78694
78695         * lib/addext.c (addext): Use base_len to trim redundant
78696         trailing slashes instead of doing it ourselves.
78697         But do not trim the last slash if it is not redundant.
78698
78699         * lib/backupfile.c (find_backup_file_name,
78700         max_backup_version): Use base_len instead of rolling it ourselves.
78701         Handle the case of "" and (on DOS) "C:" correctly.
78702
78703         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78704         needed. Include <string.h>, <dirname.h>.
78705         (base_name): Allow file names ending in slashes, other than names
78706         that are all slashes.  In this case, return the basename followed
78707         by the slashes.  This is more general, and can be used in places
78708         where the original base_name purposely had an assertion failure.
78709         (base_len): New function.
78710
78711         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78712         Do not include <assert.h>; no longer needed.
78713         Include xalloc.h.
78714         (memrchr): Remove decl.
78715         (dir_name_r): Remove.
78716         (dir_len): Renamed from dirlen.  All callers changed.
78717         Rewrite in terms of base_name, for simplicity and consistency.
78718         (dir_name): Never return NULL.  All callers changed.
78719         Do not include <stdlib.h> in test program; no longer needed.
78720         return 0; is fine for test program.
78721
78722         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78723         New macros.
78724         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78725
78726         * lib/path-concat.c (path_concat): Use base_len to compute
78727         base length, not strlen; this means we cannot rely on memcpy
78728         to null-terminate.
78729
78730         * lib/same.c (STREQ): Remove.
78731         (same_name): Handle the case where the basename ends in trailing '/'.
78732
78733         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78734         a slash was stripped.  Do not strip the last slash after a
78735         file system prefix.
78736
78737 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78738
78739         * lib/Makefile.am (libfetish_a_SOURCES):
78740         Add strftime.c, since we now compile it on all hosts.
78741
78742         * lib/strftime.c (my_strftime):
78743         Define to nstrftime if emacs, but only if my_strftime is not defined.
78744         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78745         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78746         Add one more extra argument: a nanoseconds value.
78747         All uses changed.
78748         (ns): New macro.
78749         (my_strftime function): Add %N format.
78750         (emacs_strftimeu): Renamed from emacs_strftime,
78751         with extra ut argument.
78752
78753 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78754
78755         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78756
78757 2001-04-21  Jim Meyering  <meyering@lucent.com>
78758
78759         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78760         doesn't interfere.
78761
78762 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78763
78764         * m4/ftruncate.m4: Check for chsize.
78765         Link with ftruncate.o unconditionally if ftruncate is missing.
78766         This was required when cross-compiling to i586-mingw32msvc.
78767
78768 2001-04-08  Jim Meyering  <meyering@lucent.com>
78769
78770         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78771         recomputed; that's necessary when the offset spans a DST transition.
78772         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78773
78774 2001-04-02  Jim Meyering  <meyering@lucent.com>
78775
78776         * lib/regex.h, regex.c: Update from GNU libc.
78777
78778 2001-03-24  Jim Meyering  <meyering@lucent.com>
78779
78780         * m4/jm-macros.m4: Require autoconf-2.49d.
78781
78782 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78783
78784         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78785
78786 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78787
78788         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78789
78790 2001-03-17  Jim Meyering  <meyering@lucent.com>
78791
78792         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78793         now that the version in autoconf is equivalent.
78794         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78795
78796         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78797         Suggestion from Akim Demaille.
78798
78799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78800         (jm_PREREQ_TEMPNAME): New function.
78801
78802 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78803
78804         * lib/tempname.c (uint64_t): Define to uintmax_t if
78805         not defined, and if UINT64_MAX is not defined.
78806         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78807         Reported by John David Anglin.
78808
78809 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78810
78811         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78812         resolve alias if codeset is empty.
78813         * lib/config.charset (BeOS): Use wildcard syntax.
78814
78815 2001-03-13  Jim Meyering  <meyering@lucent.com>
78816
78817         * lib/path-concat.c (path_concat)
78818         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78819         concatenating e.g., `C:' and `foo'.
78820         From Bruno Haible.
78821
78822 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78823
78824         * lib/localcharset.c (locale_charset): Don't use
78825         setlocale(LC_CTYPE,NULL). Don't return NULL.
78826         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78827
78828 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78829
78830         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78831         support for DOS/DJGPP.
78832
78833 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78834
78835         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78836         lacks mkstemp.  Compile our own tempname.c if we compile our own
78837         mkstemp.c, as mkstemp relies on tempname.
78838
78839 2001-03-01  Jim Meyering  <meyering@lucent.com>
78840
78841         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78842         AH_VERBATIM really does output its argument verbatim.
78843
78844 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78845
78846         * lib/Makefile.am (libfetish_a_SOURCES):
78847         Add dup-safer.c, fopen-safer.c.
78848         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78849
78850         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78851         * lib/unistd-safer.h: New files.
78852
78853 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78854
78855         The mkstemp replacement is taken from glibc 2.2.2, with some
78856         portability fixes for use outside glibc, as follows:
78857
78858         * lib/tempname.c (struct_stat64): New macro.
78859         (direxists, __gen_tempname): Use it.
78860         This avoids a portability problem with Solaris 8.
78861
78862         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78863         (<stddef.h>, <stdint.h>, <string.h>):
78864         Include only if STDC_HEADERS || _LIBC.
78865         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78866         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78867         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78868         (__set_errno): Define this macro if <errno.h> doesn't.
78869         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78870         Define these macros if <stdio.h> doesn't.
78871         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78872         Define these macros if <sys/stat.h>
78873         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78874         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78875         __xstat64): Define if not _LIBC.
78876         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78877         (__gen_tempname): Invoke gettimeofday only if
78878         HAVE_GETTIMEOFDAY || _LIBC;
78879         otherwise, fall back on plain "time".
78880         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78881
78882         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78883
78884         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78885
78886 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78887
78888         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78889
78890 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78891
78892         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78893         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78894         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78895         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78896
78897 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78898
78899         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78900         Remove workaround macros for hosts that have mbrtowc but not
78901         mbstate_t, as we now insist on proper declarations for both
78902         before using mbrtowc.
78903
78904 2001-02-17  Jim Meyering  <meyering@lucent.com>
78905
78906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78907         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78908         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78909         UnixWare 7.1.1.
78910
78911         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78912         rather than AC_CACHE_VAL.
78913
78914 2001-02-17  Jim Meyering  <meyering@lucent.com>
78915
78916         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78917         around included file name.
78918
78919         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78920
78921         * lib/strftime.c: Update from GNU libc (the only changes were to
78922         comments).
78923
78924 2001-02-17  Jim Meyering  <meyering@lucent.com>
78925
78926         * lib/regex.c: Update from libc.
78927
78928 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78929
78930         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78931         clash.
78932
78933 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78934
78935         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78936         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78937         Reported by Mark Hounschell via Paul Eggert.
78938
78939 2001-02-07  Jim Meyering  <meyering@lucent.com>
78940
78941         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78942
78943 2001-02-05  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78946         it includes the patch required for `large file' support with at least
78947         HP-UX's 10.20 /bin/cc.
78948
78949 2001-02-03  Jim Meyering  <meyering@lucent.com>
78950
78951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78952         AS_IF, now that it works once again (mysteriously).
78953         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78954
78955 2001-01-30  Jim Meyering  <meyering@lucent.com>
78956
78957         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78958         * m4/chown.m4: Rename conftestchown to conftest.chown.
78959         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78960         s/conftestdir2/conftest.d2/.
78961         * m4/utimes.m4: s/conftestdata/conftest.data/
78962         Inspired by Pavel Roskin's change in autoconf.
78963
78964 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78965
78966         * lib/config.charset: Update for FreeBSD 4.2.
78967
78968 2001-01-27  Jim Meyering  <meyering@lucent.com>
78969
78970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78971         a use of AS_IF.
78972         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78973
78974 2001-01-26  Jim Meyering  <meyering@lucent.com>
78975
78976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78977         quotearg.c includes it.
78978
78979 2001-01-26  Jim Meyering  <meyering@lucent.com>
78980
78981         * lib/quotearg.c: Include stddef.h.
78982         * lib/quote.c: Include stddef.h.
78983         Reported by Axel Kittenberger.
78984
78985         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78986         line in double quotes so that it evokes a better diagnostic.
78987         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78988         Reported by Axel Kittenberger.
78989
78990 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78991
78992         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78993         as if it was a `charset'.
78994
78995 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78996
78997         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78998         has const.
78999
79000 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79001
79002         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79003         to avoid a warning.  Add back 'const' to inptr.
79004
79005 2001-01-20  Jim Meyering  <meyering@lucent.com>
79006
79007         Be sure that headers are checked before used in code compiled
79008         for the type checks.
79009         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79010         In place of that, invoke jm_CHECK_ALL_TYPES.
79011         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79012         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79013         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79014         The check for ssize_t was mistakenly run before the test for unistd.h.
79015
79016         The configure-time check for stdbool.h was missing.
79017         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79018         (jm_PREREQ_HASH): New function.
79019
79020 2001-01-17  Jim Meyering  <meyering@lucent.com>
79021
79022         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79023         for autoconf-2.49c.
79024         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79025
79026 2001-01-16  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79029         From Bruno Haible.
79030
79031 2001-01-14  Jim Meyering  <meyering@lucent.com>
79032
79033         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79034         foo and bar.  Create conftestdir/ in the script, not in the C code.
79035         Remove directories in the script, not in the C code.
79036         Remove conftestdir{,2} before trying to create the directory.
79037         Make the entire configure script fail if the mkdir fails.
79038
79039 2001-01-14  Jim Meyering  <meyering@lucent.com>
79040
79041         * lib/rename.c: New file.  From Volker Borchert.
79042         Include stdlib.h, string.h or strings.h, and xalloc.h.
79043         Use strip_trailing_slashes rather than open-coding it.
79044
79045 2001-01-03  Paul Eggert  <eggert@twinsun.com>
79046
79047         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
79048
79049 2001-01-03  Jim Meyering  <meyering@lucent.com>
79050
79051         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
79052         of local `inptr' to avoid warning with some system declarations of
79053         iconv.
79054
79055 2001-01-02  Volker Borchert  <bt@teknon.de>
79056
79057         * m4/rename.m4: New file.
79058         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79059
79060 2001-01-01  Jim Meyering  <meyering@lucent.com>
79061
79062         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79063         even on systems with utmpx.h.  It's necessary for the declaration of
79064         utmp's ut_user member.  Reported by Andreas Jaeger.
79065
79066         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79067         available. They are required for the declarations of getgrgid and
79068         getpwuid resp.
79069         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79070         Reported by Andreas Jaeger.
79071
79072 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79073
79074         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79075         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79076         so `make install' also works in VPATH builds.
79077
79078 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79079
79080         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79081         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79082         can be used in subdirectories.
79083
79084 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79085
79086         * lib/modechange.c: Do not assume that mode_t uses the
79087         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79088         the other-execute bit of FOO even if S_IXOTH != 1.
79089
79090         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79091         WOTH, XOTH, ALLM): New macros.
79092         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79093          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79094         Use them.
79095         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79096         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79097         (mode_compile):
79098         No need to use uintmax_t; unsigned long is long enough.
79099         Don't bother to get suffix since we don't use it.
79100
79101 2000-12-26  Jim Meyering  <meyering@lucent.com>
79102
79103         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79104         better with autoheader.
79105
79106 2000-12-24  Jim Meyering  <meyering@lucent.com>
79107
79108         * lib/hash.c (is_prime): Return explicit boolean values.
79109         (hash_get_first): Return NULL to appease Irix5.6's 89.
79110         Reported by Nelson Beebe.
79111
79112 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79113
79114         * lib/localcharset.c (locale_charset): Add support for Win32.
79115
79116 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79117
79118         * lib/physmem.h, lib/physmem.c: New files.
79119
79120         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79121         (noinst_HEADERS): Add physmem.h.
79122
79123         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79124         't' for compatibility with Solaris 8 sort.
79125
79126 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79127
79128         * lib/config.charset: Add support for BeOS.
79129
79130 2000-12-17  Jim Meyering  <meyering@lucent.com>
79131
79132         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79133         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79134
79135 2000-12-16  Jim Meyering  <meyering@lucent.com>
79136
79137         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79138         N and M) would have treated it like `chown N:N FILE'.
79139
79140         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79141
79142 2000-12-16  Jim Meyering  <meyering@lucent.com>
79143
79144         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79145         SHELLS_FILE to a file name that's useful on djgpp systems.
79146         Include stdlib.h.
79147         (ADDITIONAL_DEFAULT_SHELLS): Define.
79148         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79149         Based mostly on a patch from Prashant TR.
79150
79151 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79152
79153         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79154         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79155         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79156
79157 2000-12-08  Andreas Schwab  <schwab@suse.de>
79158
79159         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79160         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79161
79162 2000-12-07  Jim Meyering  <meyering@lucent.com>
79163
79164         * lib/stripslash.c (ISSLASH): Define.
79165         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79166         `/'.
79167         From Prashant TR.
79168
79169         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79170         (dir_name_r): Declare this function as static.
79171         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79172         manifest itself on a name containing a mix of slashes and
79173         backslashes.
79174         Make this function work with names starting with a DOS-style
79175         drive letter and colon prefix.
79176         (dir_name): Append `.' if necessary.
79177         Based mostly on patches from Prashant TR and Eli Zaretskii.
79178
79179         * lib/dirname.h (dir_name_r): Remove prototype.
79180
79181 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79182
79183         * m4/off_t-format.m4: Remove this file.
79184         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79185
79186 2000-12-06  Jim Meyering  <meyering@lucent.com>
79187
79188         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79189         replacement strtoull, we may well need the replacement strtoul, too.
79190         Check for declarations of strtoul and strtoull.
79191         Check for strtol.  Mainly as a cue to cause automake to include
79192         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79193         Check for limits.h -- strtol.c needs it.
79194
79195 2000-12-05  Jim Meyering  <meyering@lucent.com>
79196
79197         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79198
79199 2000-12-04  Jim Meyering  <meyering@lucent.com>
79200
79201         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79202         Also include memory.h, stdlib.h, unistd.h if appropriate.
79203         Reported by Andreas Jaeger (conflicting declaration of malloc).
79204
79205 2000-12-02  Jim Meyering  <meyering@lucent.com>
79206
79207         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79208         * m4/jm-macros.m4 (jm_MACROS): require it.
79209
79210 2000-12-02  Jim Meyering  <meyering@lucent.com>
79211
79212         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79213
79214 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79215
79216         * lib/memrchr.c: Include <config.h> before any system include file.
79217
79218 2000-11-30  Jim Meyering  <meyering@lucent.com>
79219
79220         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79221
79222 2000-11-30  Jim Meyering  <meyering@lucent.com>
79223
79224         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79225
79226 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79227
79228         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79229
79230 2000-11-26  Jim Meyering  <meyering@lucent.com>
79231
79232         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79233
79234 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79235
79236         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79237         size of (size_t) -1; it's not portable.
79238
79239 2000-11-17  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/strstr.c: Update from GNU libc.
79242
79243 2000-11-17  Akim Demaille  <akim@epita.fr>
79244
79245         * lib/obstack.h: Formatting changes.
79246         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79247         prevent type checking.
79248         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79249         cast the value to (void *): assigning a `foo *' to a `void *'
79250         variable is valid.
79251         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79252
79253 2000-11-16  Jim Meyering  <meyering@lucent.com>
79254
79255         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79256
79257 2000-11-11  Jim Meyering  <meyering@lucent.com>
79258
79259         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79260
79261 2000-11-10  Jim Meyering  <meyering@lucent.com>
79262
79263         * lib/obstack.h: Update from GNU libc.
79264         * lib/obstack.c: Likewise.
79265
79266 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79267
79268         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79269
79270 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79271
79272         * lib/getusershell.c (setusershell): Use rewind rather than
79273         fseek/fseeko, to avoid configuration hassles with fseeko.
79274         Don't bother opening SHELLS_FILE if shellstream is NULL;
79275         it's not necessary.
79276
79277 2000-11-05  Jim Meyering  <meyering@lucent.com>
79278
79279         * lib/makepath.h (make_dir): Declare.
79280         * lib/makepath.c (make_dir): Remove `static' attribute.
79281         Tweak a comment.
79282
79283 2000-11-04  Jim Meyering  <meyering@lucent.com>
79284
79285         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79286
79287 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79288
79289         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79290         last one in a bucket, advance to the next bucket.
79291
79292 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79293
79294         * lib/fnmatch.c: Do not comment out all the code if we are using
79295         the GNU C library, because in some cases we are replacing buggy
79296         code in the GNU C library itself.
79297
79298 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79299
79300         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79301         (regex_compile): Catch bogus \(\1\).
79302
79303 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79304
79305         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79306         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79307         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79308
79309 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79310
79311         * lib/error.h, getline.h, modechange.h:
79312         Remove "2000" from Copyright line, as the file hasn't been
79313         changed this year other than in the copyright notice.
79314
79315         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79316         was changed this year.
79317
79318 2000-10-29  Jim Meyering  <meyering@lucent.com>
79319
79320         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79321         renaming.
79322         * m4/ls-mntd-fs.m4: Likewise
79323
79324 2000-10-29  Jim Meyering  <meyering@lucent.com>
79325
79326         * lib/xstat.in: Fix grammar in comment.
79327
79328 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79329
79330         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79331         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79332         doesn't define __restrict_arr.
79333
79334 2000-10-28  Jim Meyering  <meyering@lucent.com>
79335
79336         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79337         (jm_PREREQ_MEMCHR): New function.
79338
79339 2000-10-28  Jim Meyering  <meyering@lucent.com>
79340
79341         * lib/memchr.c: Update from libc.
79342         Adjust for portability:
79343         [HAVE_STDLIB_H]: Include stdlib.h.
79344         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79345         Undef __memchr, too.
79346         [!weak_alias]: Define __memchr to memchr.
79347
79348         * lib/regex.c: Update from libc.
79349         * lib/regex.h: Likewise.
79350         * lib/getopt1.c: Likewise.
79351         * lib/memcmp.c: Likewise.
79352
79353         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79354         Avoid using fseek, when possible -- it's broken by design.
79355         Patch by Ulrich Drepper.
79356
79357 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79358
79359         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79360         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79361         Giving in to popular pressure to shut up the compiler with casts.
79362
79363 2000-10-26  Jim Meyering  <meyering@lucent.com>
79364
79365         * lib/strftime.c: Update from libc.
79366
79367 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79368
79369         * regex.c: More `unsigned char' -> `re_char' changes.
79370         Also change several `int' into `re_wchar_t'.
79371         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79372         (PUSH_FAILURE_POINTER): Don't cast any more.
79373         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79374         We want GCC to complain, since this piece of code makes
79375         re_match non-reentrant, which *should* be fixed.
79376         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79377         (EXTEND_BUFFER): Use RETALLOC.
79378         (SET_LIST_BIT): Don't cast.
79379         (re_wchar_t): New type.
79380         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79381         that those two functions will always properly return.
79382         (IMMEDIATE_QUIT_CHECK): Cast to void.
79383         (analyse_first): Use recursion rather than an explicit stack.
79384         (re_compile_fastmap): Can't fail anymore.
79385         (re_search_2): Don't check re_compile_fastmap for failure.
79386         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79387         Now also sets the new value (passed in a new argument).
79388         (re_match_2_internal): Use it.
79389         Also, use a new var `reg' of type size_t when looping through regs
79390         rather than reuse the inappropriate `mcnt'.
79391
79392 2000-10-25  Jim Meyering  <meyering@lucent.com>
79393
79394         * lib/obstack.c: Update from libc.
79395
79396 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79397
79398         * regex.c (regex_compile): Change the way of handling a range from
79399         a char less than 256 to a char not less than 256.
79400
79401 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79402
79403         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79404         NT-Emacs only.
79405         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79406         so that re_search functions only quit when callers expect them to.
79407
79408 2000-10-23  Jim Meyering  <meyering@lucent.com>
79409
79410         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79411         wrong.  That set_locale call must not have any side effects.
79412         From Paul Eggert.
79413
79414 2000-10-22  Jim Meyering  <meyering@lucent.com>
79415
79416         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79417         [CYCLIC]: Remove now-unused definition.
79418
79419         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79420         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79421         Suggestion from Ulrich Drepper.
79422
79423 2000-10-21  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79426         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79428
79429 2000-10-21  Jim Meyering  <meyering@lucent.com>
79430
79431         * lib/dirname.c (memrchr): Declare if necessary.
79432         (dir_name): Remove the restriction that there be no
79433         trailing slashes.  Now, this code skips past them, effectively
79434         ignoring them.
79435         [TEST_DIRNAME] (main): New unit tests.
79436
79437         * lib/memrchr.c: New file from GNU libc.
79438         Undef __memrchr, too.
79439         [!weak_alias]: Define __memrchr to memrchr.
79440         Guard weak_alias use with `#ifdef weak_alias'.
79441
79442 2000-10-21  Jim Meyering  <meyering@lucent.com>
79443
79444         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79445         (dir_name): Use dir_name_r.
79446         * lib/dirname.h (dir_name_r): Declare it.
79447
79448 2000-10-17  Jim Meyering  <meyering@lucent.com>
79449
79450         * lib/quote.h (PARAMS): Define and use.
79451         Reported by Akim Demaille.
79452
79453         * lib/getopt.c: Update from libc.
79454
79455 2000-10-16  Jim Meyering  <meyering@lucent.com>
79456
79457         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79458         setlocale.
79459         From Jan Fedak.
79460
79461 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79462
79463         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79464
79465 2000-09-25  Jim Meyering  <meyering@lucent.com>
79466
79467         * lib/md5.h (rol): Define (from GnuPG).
79468
79469         * lib/sha.c: Give credit (GnuPG) where due.
79470         (M): Use rol rather than open-coding it.
79471         Add a FIXME comment.
79472
79473 2000-09-21  Jim Meyering  <meyering@lucent.com>
79474
79475         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79476         Reported by Michael Stone.
79477
79478 2000-09-20  Jim Meyering  <meyering@lucent.com>
79479
79480         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79481         (noinst_HEADERS): Add sha.h.
79482         Based on code from Scott G. Miller and from GnuPG.
79483
79484 2000-09-18  Jim Meyering  <meyering@lucent.com>
79485
79486         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79487         LIBS. Otherwise, everyone ends up linking with -lelf for some
79488         configurations.
79489         Reported by Mike Stone.
79490
79491 2000-09-15  Jim Meyering  <meyering@lucent.com>
79492
79493         * lib/regex.c: Update from libc.
79494
79495 2000-09-10  Jim Meyering  <meyering@lucent.com>
79496
79497         * lib/getopt.c (_getopt_internal): Update from glibc.
79498
79499 2000-09-09  Jim Meyering  <meyering@lucent.com>
79500
79501         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79502         think it should be used as a general replacement for isascii.
79503         * lib/fnmatch.c: Likewise.
79504         * lib/mbswidth.c: Likewise
79505         * lib/regex.c: Likewise.
79506
79507         Don't use atoi.
79508         * lib/userspec.c: Include sys/param.h and limits.h.
79509         Include xstrtol.h.
79510         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79511         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79512         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79513         UID, GID.  Check range.
79514
79515 2000-09-06  Jim Meyering  <meyering@lucent.com>
79516
79517         * lib/getopt.c (_getopt_internal): Update from glibc.
79518
79519 2000-08-30  Jim Meyering  <meyering@lucent.com>
79520
79521         * lib/strftime.c: Merge in changes from GNU libc.
79522
79523 2000-08-26  Jim Meyering  <meyering@lucent.com>
79524
79525         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79526         * m4/fpending.m4: New file.
79527
79528 2000-08-26  Jim Meyering  <meyering@lucent.com>
79529
79530         * lib/closeout.c: Include "__fpending.h".
79531         (close_stdout_status): Return right away if there's nothing to flush.
79532
79533         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79534         * lib/__fpending.c: New file.
79535         * lib/__fpending.h: New file.
79536
79537 2000-08-20  Jim Meyering  <meyering@lucent.com>
79538
79539         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79540         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79541         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79542
79543 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79544
79545         Improve fileutils installation on systems where running
79546         programs (like install) can't be unlinked.
79547         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79548         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79549
79550 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79551
79552         Standardize on "memory exhausted" instead of "Memory exhausted"
79553         or "virtual memory exhausted".
79554         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79555         "virtual memory exhausted".
79556         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79557         our own message.
79558         * lib/userspec.c (parse_user_spec): Likewise.
79559         * lib/bumpalloc.h: comment fix
79560         * lib/same.c, userspec.c: Include xalloc.h.
79561
79562         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79563         not char *const and pointing to a constant array.
79564         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79565         (xrealloc): Comment fix.
79566
79567         * lib/userspec.c (parse_user_spec):
79568         Don't translate a message until just before returning,
79569         to avoid unnecessary translation.
79570
79571 2000-08-07  Jim Meyering  <meyering@lucent.com>
79572
79573         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79574         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79575         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79576         getgroups.c, gethostname.c, getopt.h, group-member.c,
79577         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79578         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79579         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79580         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79581         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79582         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79583         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79584         yesno.c: Back out Copyright date changes for each file with no change
79585         this year.  This eases coordination with other programs using the same
79586         source code modules.  From Paul Eggert.
79587
79588 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79589
79590         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79591         not char, for compatibility with glibc 2.1.3 strftime.c.
79592
79593 2000-08-03  Greg McGary  <greg@mcgary.org>
79594
79595         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79596         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79597         (EXTEND_BUFFER): Use them.
79598
79599 2000-08-01  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/dirname.c (ISSLASH): Define.
79602         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79603         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79604         both `\' and `/' may be use as path separators.
79605         Based on a patch from Prashant TR.
79606
79607 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79608
79609         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79610         slot vector a constant, since it might get modified.
79611
79612 2000-07-31  Jim Meyering  <meyering@lucent.com>
79613
79614         * lib/xmalloc.c: Use `virtual memory exhausted', not
79615         `Memory exhausted'.
79616         * lib/obstack.c (print_and_abort): Likewise.
79617
79618 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79619
79620         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79621         buffer, so that the caller can always quote one small
79622         component of a "memory exhausted" message in slot 0.
79623         From a suggestion by Jim Meyering.
79624
79625 2000-07-30  Jim Meyering  <meyering@lucent.com>
79626
79627         * lib/makepath.c (make_path): Quote the other instance, too.
79628
79629         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79630         (STATIC_BUF_SIZE): Define.
79631         (quotearg_n_options): Use only statically allocated storage when
79632         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79633         than STATIC_BUF_SIZE.
79634
79635 2000-07-29  Jim Meyering  <meyering@lucent.com>
79636
79637         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79638         * lib/dirname.c (dir_name): Likewise.
79639
79640         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79641         `/'.
79642
79643         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79644         (dir_name): Assert that there are no trailing slashes.
79645
79646 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79647
79648         * lib/mbswidth.h (mbswidth): Add a flags argument.
79649         (mbswidth): New declaration.
79650         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79651         * lib/mbswidth.c (mbswidth): Add a flags argument.
79652         (mbsnwidth): New function.
79653
79654 2000-07-24  Jim Meyering  <meyering@lucent.com>
79655
79656         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79657
79658 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79659
79660         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79661
79662 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79663
79664         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79665         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79666         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79667         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79668         invoke multibyte primitives.
79669
79670 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79671
79672         * lib/quotearg.c:
79673         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79674         so that mbstate_t is always defined.
79675
79676         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79677         be 1 in at least one GCC installation, and this configuration
79678         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79679         performance on hosts that have mbrtowc but have only unibyte
79680         locales, but I assume these hosts are rare.
79681
79682 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79683
79684         * lib/mbswidth.c (_XOPEN_SOURCE):
79685         Don't define; this causes problems on Solaris 7.
79686         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79687
79688 2000-07-23  Jim Meyering  <meyering@lucent.com>
79689
79690         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79691         too: getgrgid, getpwuid, getuid.
79692
79693 2000-07-23  Jim Meyering  <meyering@lucent.com>
79694
79695         * lib/basename.c (base_name): Add an assertion.
79696
79697 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79698
79699         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79700         shadow its mbsinit function.
79701
79702 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79703
79704         * lib/mbswidth.h: New file.
79705         * lib/mbswidth.c: New file.
79706         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79707         (noinst_HEADERS): Add mbswidth.h.
79708
79709 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79710
79711         * lib/config.charset: Add support for FreeBSD. Improve support for
79712         HP-UX and IRIX 6.
79713
79714 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79715
79716         * m4/mbswidth.m4: New file.
79717         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79718
79719 2000-07-15  Jim Meyering  <meyering@lucent.com>
79720
79721         * lib/makepath.c: Include quote.h.
79722         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79723         corresponding argument in a `quote (...)' call.
79724         Give better diagnostics.
79725
79726         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79727         (noinst_HEADERS): Add quote.h.
79728
79729         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79730         from tar's src/misc.c.
79731         * lib/quote.h: New file.  Prototypes for same.
79732
79733 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79734
79735         From a suggestion by Bruno Haible.
79736         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79737         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79738         to decide whether to define the BeOS workaround macro;
79739         this adjusts to the change to AC_MBSTATE_T.
79740
79741 2000-07-14  Jim Meyering  <meyering@lucent.com>
79742
79743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79744         jm_AC_TYPE_UINTMAX_T.
79745
79746 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79747
79748         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79749
79750         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79751         quotearg_buffer_restyled): Add support for
79752         clocale_quoting_style.  Undo previous change to
79753         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79754         and "{RIGHT QUOTATION MARK}" msgids.
79755
79756 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79757
79758         From a suggestion by Bruno Haible.
79759         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79760         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79761         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79762         and mbstate_t, to a single-part test that simply defines mbstate_t.
79763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79764         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79765
79766 2000-07-10  Jim Meyering  <meyering@lucent.com>
79767
79768         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79769
79770         * m4/gnu-source.m4: Output to confdefs.h directly.
79771         Suggestion from Akim Demaille.
79772
79773 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79774
79775         The old behavior of quoting `like this' doesn't look good with
79776         newer, ISO-style fonts.  See:
79777         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79778
79779         Instead, quote "like this" by default.  Let the translator
79780         tailor the locale-specific quoting behavior by providing
79781         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79782
79783         * lib/quotearg.c (N_): New macro.
79784         (gettext_default): New function.
79785         (quotearg_buffer_restyled): Use
79786         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79787         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79788
79789 2000-07-09  Jim Meyering  <meyering@lucent.com>
79790
79791         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79792         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79793
79794         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79796
79797 2000-07-09  Jim Meyering  <meyering@lucent.com>
79798
79799         * lib/Most files: Update copyright dates to include 2000.
79800
79801 2000-07-08  Jim Meyering  <meyering@lucent.com>
79802
79803         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79804         if not defined.
79805         (xgethostname): Remove now-unnecessary #ifdef.
79806         Move declaration of `err' into loop where it's used.
79807
79808 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79809         and Bruno Haible  <haible@clisp.cons.org>
79810
79811         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79812         only if the test for an object-type mbstate_t fails.  This
79813         prevents us from mistakenly reporting that mbstate_t is a
79814         system object type after we "#define mbstate_t int" to work
79815         around its lack.
79816
79817 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79818         and Bruno Haible  <haible@clisp.cons.org>
79819
79820         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79821
79822 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79823
79824         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79825         to strerror_r.
79826         Include <ctype.h> for use of isalpha.
79827
79828 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79829
79830         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79831         by allocating a larger buffer. Test the gethostname return value for
79832         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79833         returns an error and ENAMETOOLONG isn't defined.
79834
79835 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79836
79837         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79838         dimension.
79839
79840 2000-07-04  Jim Meyering  <meyering@lucent.com>
79841
79842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79843         of the deprecated AC_CHECKING.
79844
79845 2000-07-04  Jim Meyering  <meyering@lucent.com>
79846
79847         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79848         Reported by Bruno Haible.
79849
79850 2000-07-04  Jim Meyering  <meyering@lucent.com>
79851
79852         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79853         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79854         lacks mbrtowc.
79855
79856 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79857
79858         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79859         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79860
79861 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79862         and Bruno Haible  <haible@clisp.cons.org>
79863
79864         * lib/quotearg.c (mbrtowc):
79865         Assign to *pwc, and return 1 only if result is nonzero.
79866         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79867
79868 2000-07-03  Jim Meyering  <meyering@lucent.com>
79869
79870         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79871
79872 2000-07-03  Jim Meyering  <meyering@lucent.com>
79873
79874         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79875         This is necessary to get a definition of e.g., UTMP_FILE on
79876         HP-UX 10.20.
79877         From Bob Proulx.
79878
79879 2000-07-02  Jim Meyering  <meyering@lucent.com>
79880
79881         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79882
79883         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79884         AC_LIBOBJ(function_name).
79885         * m4/chown.m4: Likewise.
79886         * m4/fnmatch.m4: Likewise.
79887         * m4/ftruncate.m4: Likewise.
79888         * m4/getgroups.m4: Likewise.
79889         * m4/getline.m4: Likewise.
79890         * m4/group-member.m4: Likewise.
79891         * m4/jm-macros.m4: Likewise.
79892         * m4/lstat.m4: Likewise.
79893         * m4/malloc.m4: Likewise.
79894         * m4/memcmp.m4: Likewise.
79895         * m4/nanosleep.m4: Likewise.
79896         * m4/putenv.m4: Likewise.
79897         * m4/realloc.m4: Likewise.
79898         * m4/regex.m4: Likewise.
79899         * m4/stat.m4: Likewise.
79900         * m4/strftime.m4: Likewise.
79901
79902 2000-07-02  Jim Meyering  <meyering@lucent.com>
79903
79904         * lib/quotearg.c (mbstate_t): Don't define here.
79905
79906 2000-07-02  Jim Meyering  <meyering@lucent.com>
79907
79908         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79909
79910 2000-07-01  Jim Meyering  <meyering@lucent.com>
79911
79912         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79913
79914 2000-07-01  Jim Meyering  <meyering@lucent.com>
79915
79916         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79917         problem.
79918
79919 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79920
79921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79922         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79923
79924 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79925
79926         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79927         per change in ../m4/ls-mntd-fs.m4.
79928         (read_filesystem_list): Ignore symbolic links.
79929
79930 2000-06-29  Jim Meyering  <meyering@lucent.com>
79931
79932         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79933         for declaration of strcmp.
79934
79935         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79936
79937         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79938         Avoid warning by casting result to `char *' to remove `const'.
79939
79940 2000-06-28  Jim Meyering  <meyering@lucent.com>
79941
79942         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79943         included by quotearg.c, for which we perform this test.  From
79944         Bruno Haible.
79945
79946 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79947
79948         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79949         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79950         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79951
79952 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79953
79954         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79955
79956 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79957
79958         savedir now sets errno on failure and invokes xmalloc to get memory.
79959         Fix a couple of other minor bugs while we're at it.
79960
79961         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79962         (NAMLEN): Remove macro.
79963         (malloc, realloc): Remove decls.
79964         (stpcpy): Likewise.
79965         ("xalloc.h"): Include.
79966         (NAME_SIZE_DEFAULT): New macro.
79967         (savedir): Use xmalloc / xrealloc to allocate memory.
79968         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79969         Skip "" directory entries.
79970         Use strlen to calculate directory entry length, since the old method
79971         is rarely used these days and isn't worth supporting.
79972         Don't use a pointer after freeing it.
79973         Check for integer overflow when calculating allocation size.
79974         Use memcpy to copy entries, instead of stpcpy.
79975         Set errno properly when returning NULL.
79976         Check for readdir error.
79977
79978 2000-06-26  Jim Meyering  <meyering@lucent.com>
79979
79980         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79981
79982 2000-06-25  Jim Meyering  <meyering@lucent.com>
79983
79984         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79985         Linux header bug when _XOPEN_SOURCE is defined to 500.
79986
79987 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79988
79989         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79990         deficiency.
79991
79992 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79993
79994         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79995         Include xalloc.h.
79996         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79997
79998 2000-06-24  Jim Meyering  <meyering@lucent.com>
79999
80000         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80001         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80002         for which strerror does return char*, but which lacks a conveniently
80003         accessible declaration of the function.  If the compile-test says
80004         strerror_r doesn't work, then resort to a `run'-test that works on
80005         BeOS and segfaults on DEC Unix.
80006
80007 2000-06-24  Jim Meyering  <meyering@lucent.com>
80008
80009         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80010
80011 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80012
80013         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80014         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80015
80016 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80017
80018         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80019         (mbrtowc, mbstate_t): Define substitutes if
80020         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80021         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80022         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80023
80024 2000-06-23  Jim Meyering  <meyering@lucent.com>
80025
80026         * m4/afs.m4: Add missing AC_MSG_RESULT.
80027         Reported by Bruno Haible.
80028
80029         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80030         Suggestion from Bruno Haible.
80031
80032 2000-06-23  Jim Meyering  <meyering@lucent.com>
80033
80034         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80035
80036 2000-06-21  Jim Meyering  <meyering@lucent.com>
80037
80038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80039
80040 2000-06-21  Jim Meyering  <meyering@lucent.com>
80041
80042         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80043         (noinst_HEADERS): Add getstr.h.
80044
80045         * lib/getline.c (getstr): Move into a separate file.
80046         * lib/getstr.c (getstr): New file, extracted from getline.c, with
80047         the following changes: new parameter, delim2; both delim[12]
80048         parameters have type `int', not `char'.  The latter would lose
80049         with 8-bit delimiters.
80050         * lib/getstr.h: New file.
80051
80052 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80053
80054         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80055         than 1024, return a memory chunk of least possible size, instead
80056         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80057         Use free/xmalloc instead of xrealloc to avoid copying for very long
80058         paths.
80059
80060 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80061
80062         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80063         the empty string.
80064
80065 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80066
80067         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80068         address, not strdup.  Include <stdlib.h> and don't declare free().
80069
80070 2000-06-19  Jim Meyering  <meyering@lucent.com>
80071
80072         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80073
80074 2000-06-18  Jim Meyering  <meyering@lucent.com>
80075
80076         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80077
80078         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80079         `checking whether...' message to be consistent with that of the
80080         lstat test.
80081
80082 2000-06-18  Jim Meyering  <meyering@lucent.com>
80083
80084         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80085         Besides, these days every porting target provides a mkdir function.
80086
80087         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80088         needed. (this snippet comes from src/system.h).
80089
80090 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80091
80092         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80093
80094 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80095
80096         * lib/human.c (adjust_value): New function.
80097         (human_readable_inexact): Apply rounding style even when
80098         printing approximate values.
80099
80100 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80101
80102         * lib/human.c (human_readable_inexact): Allow an input block
80103         size that is not a multiple of the output block size, and vice versa.
80104         Reported by Piergiorgio Sartor.
80105
80106 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80107
80108         * lib/getdate.y (get_date): Apply relative times after time
80109         zone indicator, not before.  Reported by Todd A. Jacobs.
80110
80111 2000-06-13  Jim Meyering  <meyering@lucent.com>
80112
80113         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80114
80115         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80116
80117 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80118
80119         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80120
80121 2000-06-12  Jim Meyering  <meyering@lucent.com>
80122
80123         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80124         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80125         optional argument.
80126         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80127         the optional argument, `lib'.
80128
80129 2000-06-08  Jim Meyering  <meyering@lucent.com>
80130
80131         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80132
80133 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80134
80135         Rewrite largefile configuration so that we don't need to run
80136         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80137         AC_CANONICAL_HOST in configure.in -- jmm]
80138
80139         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80140         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80141         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80142         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80143         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80144         All uses changed.
80145         Instead of inspecting the output of getconf, try to compile the
80146         test program without and with the macro definition.
80147         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80148         for getconf.  Instead, check for the needed flags by compiling
80149         test programs.
80150
80151 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80152
80153         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80154
80155 2000-06-04  Jim Meyering  <meyering@lucent.com>
80156
80157         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80158         SunOS 4.1.4 for which gid_t is an unsigned type.
80159
80160 2000-06-03  Jim Meyering  <meyering@lucent.com>
80161
80162         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80163         now that autoconf requires that.
80164
80165         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80166         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80167         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80168
80169 2000-06-03  Jim Meyering  <meyering@lucent.com>
80170
80171         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80172
80173 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80174
80175         * m4/glibc21.m4: New file.
80176         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80177
80178 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80179
80180         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80181         newer, don't install charset.alias.
80182         * lib/config.charset: Change the Linux/glibc rules so they become empty
80183         on glibc-2.1 or newer.
80184
80185 2000-06-02  Jim Meyering  <meyering@lucent.com>
80186
80187         * lib/mountlist.c: Back out last change.  Instead, do this...
80188         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80189         me_dummy member using the same `ignore'-testing code.
80190         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80191         fs_type strings.
80192         From Mark D. Roth.
80193
80194 2000-05-29  Jim Meyering  <meyering@lucent.com>
80195
80196         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80197         mounts with the `ignore' attribute.  Based on a patch from
80198         Mark D. Roth.
80199
80200 2000-05-28  Jim Meyering  <meyering@lucent.com>
80201
80202         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80203         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80204         * m4/stat.m4: Likewise.
80205         * m4/lstat.m4: Likewise.
80206         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80207
80208         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80209         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80210
80211 2000-05-26  Jim Meyering  <meyering@lucent.com>
80212
80213         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80214
80215 2000-05-24  Jim Meyering  <meyering@lucent.com>
80216
80217         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80218         autoconf requires that.
80219         * m4/lib-check.m4: Likewise.
80220         * m4/jm-macros.m4: Likewise.
80221         * m4/strftime.m4: Likewise.
80222
80223         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80224         AC_CHECK_DECLS, now that autoconf requires that.
80225
80226 2000-05-22  Jim Meyering  <meyering@lucent.com>
80227
80228         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80229         * m4/lstat.m4: Likewise.
80230
80231 2000-05-22  Jim Meyering  <meyering@lucent.com>
80232
80233         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80234
80235 2000-05-20  Jim Meyering  <meyering@lucent.com>
80236
80237         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80238         (jm_PREREQ): Use it.
80239
80240 2000-05-18  Jim Meyering  <meyering@lucent.com>
80241
80242         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80243         back, too, since it may have been modified by allocate_entry.
80244         (hash_delete): Rewrite to use neither the assignment operator
80245         nor the comma operator in an if-expression.
80246
80247 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80248
80249         * lib/closeout.c:
80250         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80251         Remove; no longer needed.
80252         "quotearg.h": Add include.
80253         (file_name): Do not bother to explicitly initialize to NULL; it's less
80254         efficient on some hosts.
80255         (close_stdout_status): Remove test as to whether stdout was already
80256         closed; it breaks for the case "echo x | sort >&-".
80257         Quote file name colons.
80258         Do not assume that _("write error") lacks format strings.
80259
80260 2000-05-15  Jim Meyering  <meyering@lucent.com>
80261
80262         * lib/version-etc.c (version_etc_copyright): Update the copyright
80263         string used in all --version output.
80264
80265 2000-05-14  Jim Meyering  <meyering@lucent.com>
80266
80267         * lib/closeout.c (close_stdout_set_file_name): New function.
80268         (close_stdout_status): Use new file-scoped global.
80269         Return right away if fstat says the stdout file descriptor is invalid.
80270         * lib/closeout.h (close_stdout_set_file_name): Declare.
80271
80272 2000-05-10  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80275         (close_stdout_set_status): New function.
80276         * lib/closeout.h (close_stdout_set_status): Declare.
80277
80278 2000-05-09  Jim Meyering  <meyering@lucent.com>
80279
80280         * m4/gettext.m4: Rename this...
80281         * m4/libintl.m4: ...to this.
80282
80283 2000-05-08  Jim Meyering  <meyering@lucent.com>
80284
80285         * lib/long-options.c: Don't include closeout.h.
80286         (parse_long_options): Don't call close_stdout for --version.
80287
80288 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80289
80290         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80291         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80292         2.1.3 bug.  This avoids a clash when files like regex.c define
80293         _GNU_SOURCE.
80294
80295 2000-05-06  Jim Meyering  <meyering@lucent.com>
80296
80297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80298         (AC_REPLACE_FUNCS): Add strnlen.
80299
80300         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80301         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80302
80303         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80304         AC_SEARCH_LIBS call for nanosleep.
80305         (LIB_NANOSLEEP): Set and AC_SUBST.
80306
80307 2000-05-06  Jim Meyering  <meyering@lucent.com>
80308
80309         * lib/strnlen.c: Undefine __strnlen and strnlen.
80310         [!weak_alias]: Define __strnlen to strnlen.
80311
80312         * lib/atexit.c: New file, from libiberty.
80313
80314 2000-05-06  Jim Meyering  <meyering@lucent.com>
80315
80316         * lib/closeout.c (close_stdout_status): Also check for errors on the
80317         stderr stream.
80318
80319 2000-05-05  Jim Meyering  <meyering@lucent.com>
80320
80321         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80322         AC_SEARCH_LIBS call for clock_gettime.
80323         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80324
80325         * m4/search-libs.m4: Update from autoconf.
80326
80327         su doesn't work on Solaris 2.6.
80328         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80329         <shadow.h>.  Reported by Dragos Harabor.
80330
80331 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80332
80333         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80334         memcpy instead of xmalloc, xrealloc, path_concat.
80335         (locale_charset): Treat empty environment variables as absent.
80336         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80337
80338 2000-05-04  Jim Meyering  <meyering@lucent.com>
80339
80340         * lib/getopt.c: Update from glibc.
80341         * lib/obstack.c: Likewise.
80342         * lib/obstack.h: Likewise.
80343         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80344         file
80345
80346         * lib/regex.h: Likewise.
80347         * lib/strndup.c: Likewise.
80348         * lib/strnlen.c: New file, from glibc.
80349
80350 2000-05-03  Jim Meyering  <meyering@lucent.com>
80351
80352         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80353
80354 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80355
80356         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80357         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80358         compile-time test, rather than inspecting host and OS, to
80359         decide whether to define _LARGEFILE_SOURCE.
80360
80361 2000-05-01  Jim Meyering  <meyering@lucent.com>
80362
80363         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80364
80365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80366         Based on a patch from Bruno Haible.
80367
80368 2000-05-01  Jim Meyering  <meyering@lucent.com>
80369
80370         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80371
80372 2000-04-29  Jim Meyering  <meyering@lucent.com>
80373
80374         * lib/path-concat.c: Declare strdup only if it's not defined.
80375         * lib/canon-host.c: Likewise.
80376
80377 2000-04-28  Jim Meyering  <meyering@lucent.com>
80378
80379         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80380         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80381         is included first, then limits.h is included by locale.h by libintl.h.
80382         From John David Anglin.
80383
80384 2000-04-25  Jim Meyering  <meyering@lucent.com>
80385
80386         * lib/makepath.c (S_IRWXUGO): Define.
80387         (make_path): Always perform explicit chmod if MODE specifies any
80388         of the `special' permission bits.  Prompted by a bug report against
80389         install from Mate Wierdl and Joost van Baal.
80390
80391 2000-04-18  Jim Meyering  <meyering@lucent.com>
80392
80393         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80394         (jm_PREREQ): Use it.
80395
80396 2000-04-18  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/README: New file.
80399
80400         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80401         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80402
80403 2000-04-17  Jim Meyering  <meyering@lucent.com>
80404
80405         Get it right :-)
80406         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80407         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80408         Suggestion from Akim Demaille.
80409
80410 2000-04-17  Jim Meyering  <meyering@lucent.com>
80411
80412         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80413         the definition of it to rpl_strftime also defined-away the system's
80414         declaration.
80415
80416 2000-04-15  Jim Meyering  <meyering@lucent.com>
80417
80418         Use `C' to denote so-called `contiguous' files, the same way
80419         that tar does.
80420         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80421         (ftypelet): Use S_ISCTG.
80422         From Michael Deutschmann.
80423
80424 2000-04-14  Jim Meyering  <meyering@lucent.com>
80425
80426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80427         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80428         clobbered.
80429
80430 2000-04-14  Jim Meyering  <meyering@lucent.com>
80431
80432         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80433
80434 2000-04-13  Jim Meyering  <meyering@lucent.com>
80435
80436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80437         AH_VERBATIM to insert required #ifndef into config.h.in.
80438         Suggestion from Akim Demaille.
80439
80440 2000-04-12  Jim Meyering  <meyering@lucent.com>
80441
80442         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80443         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80444         Christian Krackowizer.
80445
80446         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80447         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80448         (AC_SYS_LARGEFILE): Require.
80449         (AM_C_PROTOTYPES): Require.
80450
80451 2000-04-08  Jim Meyering  <meyering@lucent.com>
80452
80453         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80454         names don't conflict.  Reported by Eli Zaretskii.
80455
80456 2000-04-07  Jim Meyering  <meyering@lucent.com>
80457
80458         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80459         sys/types.h, to work around system header problems on AIX 3.2.5.
80460         From Bruno Haible.
80461
80462 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80463
80464         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80465         bug.  Deal with the different error behavior of Irix iconv.
80466
80467 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80468
80469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80470         IRIX if the installer said otherwise.
80471
80472 2000-04-05  Jim Meyering  <meyering@lucent.com>
80473
80474         Portability tweaks required for ultrix4.3.
80475         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80476         (jm_CHECK_DECLS): Add getutent to the list of functions.
80477         (_jm_DECL_HEADERS): Add utmpx.h.
80478         From John David Anglin.
80479
80480         * m4/strftime.m4: Back out the 2000-04-02 change.
80481         Instead of that change, simply undefine putenv in the test program.
80482
80483 2000-04-05  Jim Meyering  <meyering@lucent.com>
80484
80485         Portability tweaks required for ultrix4.3.
80486         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80487         getutent.
80488         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80489         * lib/canon-host.c: Declare strdup.
80490         * lib/path-concat.c: Likewise.
80491         From John David Anglin.
80492
80493 2000-04-04  Jim Meyering  <meyering@lucent.com>
80494
80495         Be more DOS 8.3-friendly.
80496         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80497         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80498         * lib/Makefile.am: Reflect renaming.
80499         Reported by Eli Zaretskii.
80500
80501         Use a temporary file name that won't clash with `charset.alias'
80502         in the DOS 8.3 name space.
80503         * lib/Makefile.am (charset_tmp): Define.
80504         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80505         (uninstall-local): Likewise.
80506         Reported by Eli Zaretskii.
80507
80508 2000-04-03  Jim Meyering  <meyering@lucent.com>
80509
80510         * m4/gettext.m4: Fix typo in comment.
80511
80512         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80513         textutils/configure.in).  Suggestion from Paul Eggert.
80514         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80515
80516 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80517
80518         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80519         variable in the shell rather than using putenv, which isn't
80520         portable.  This avoids the configure-time inter-test dependency
80521         on the potentially-renamed putenv function.
80522
80523 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80524
80525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80526         before checking struct stat.st_blksize, so that
80527         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80528
80529 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80530
80531         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80532         since strftime.c uses HAVE_STRFTIME to decide whether to use
80533         the underlying strftime.
80534
80535 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80536
80537         * lib/time/strftime.c (my_strftime): Make sure we call the system
80538         strftime, not ourselves, when invoking the underlying strftime.
80539
80540 2000-03-24  Jim Meyering  <meyering@lucent.com>
80541
80542         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80543         (charset_alias): Define.
80544         (install-exec-local): Factor out common code.
80545         (uninstall-local): Split lines longer than 80.
80546         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80547         (SUFFIXES): Define.
80548         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80549         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80550
80551 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80552
80553         * lib/config.charset: Output a line containing "Packages using this
80554         file".
80555         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80556         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80557         ref-del.sed): New rules.
80558
80559 2000-03-17  Jim Meyering  <meyering@lucent.com>
80560
80561         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80562         Otherwise, include <strings.h>
80563
80564 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80565
80566         * lib/unicodeio.c (utf8_wctomb): New function.
80567         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80568         format instead of in UCS-4 with platform dependent endianness.
80569
80570 2000-03-10  Jim Meyering  <meyering@lucent.com>
80571
80572         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80573         From Marco Franzen.
80574
80575 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80576
80577         * lib/savedir.c (savedir): Work even if directory size is
80578         negative; this can happen with some screwy NFS configurations.
80579
80580 2000-03-06  Jim Meyering  <meyering@lucent.com>
80581
80582         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80583         if it's NULL (because we ran out of memory).  From Bruno Haible.
80584
80585 2000-03-05  Jim Meyering  <meyering@lucent.com>
80586
80587         * lib/localcharset.c ("path-concat.h"): Include.
80588         (get_charset_aliases): Use path_concat instead of ANSI string
80589         concatenation.
80590
80591         * lib/unicodeio.h (PARAMS): Define.
80592         Use it to guard prototype.
80593
80594 2000-03-04  Jim Meyering  <meyering@lucent.com>
80595
80596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80597         for lib/localcharset.c.
80598
80599 2000-03-04  Jim Meyering  <meyering@lucent.com>
80600
80601         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80602         installing into it.
80603         (uninstall-local): Uncomment this rule so `make distcheck' works
80604         once again.
80605
80606         * lib/unicodeio.c (<errno.h>): Include it.
80607         (errno): Declare if not defined.
80608
80609         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80610
80611         * lib/config.charset: New version, incorporating remarks from a linux
80612         i18n mailing list.  From Bruno Haible.
80613
80614 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80615
80616         * m4/codeset.m4: New file.
80617         * m4/iconv.m4: New file.
80618         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80619
80620 2000-03-03  Jim Meyering  <meyering@lucent.com>
80621
80622         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80623
80624 2000-03-02  Jim Meyering  <meyering@lucent.com>
80625
80626         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80627         the messages come out on separate lines.
80628
80629         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80630         rather than jm_CHECK_DECLARATIONS.
80631         * m4/decl.m4: Remove now-unused file.
80632
80633         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80634         geteuid.
80635
80636 2000-03-02  Jim Meyering  <meyering@lucent.com>
80637
80638         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80639
80640 2000-03-01  Jim Meyering  <meyering@lucent.com>
80641
80642         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80643         * lib/unicodeio.c: Likewise.
80644
80645 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80646
80647         * lib/config.charset: New file.
80648         * lib/localcharset.c: New file.
80649         * lib/unicodeio.h, lib/unicodeio.c: New files.
80650         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80651         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80652         (noinst_HEADERS): Add unicodeio.h.
80653         (all-local, install-exec-local, charset.alias): New targets.
80654
80655 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80656
80657         * lib/quotearg.c (ALERT_CHAR): New macro.
80658         (quotearg_buffer_restyled): Use it.
80659
80660 2000-02-27  Jim Meyering  <meyering@lucent.com>
80661
80662         * m4/check-decl.m4: Add getenv to the list.
80663
80664 2000-02-27  Jim Meyering  <meyering@lucent.com>
80665
80666         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80667         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80668
80669         * lib/backupfile.c: Guard inclusion of stdlib.h with
80670         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80671         Declare malloc if needed.
80672
80673         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80674         `#ifndef HAVE_DECL..'
80675         now that autoconf always defines the HAVE_DECL_ symbols.
80676         * lib/human.c: Likewise.
80677         * lib/same.c: Likewise.
80678         * lib/strtoumax.c: Likewise.
80679
80680         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80681         declaration check was not run.
80682         * lib/hash.c: Likewise.
80683         * lib/human.c: Likewise.
80684         * lib/same.c: Likewise.
80685         * lib/strtoumax.c: Likewise.
80686
80687         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80688         `.', then first look up the entire `.'-containing string as a login
80689         name.
80690
80691 2000-02-23  Jim Meyering  <meyering@lucent.com>
80692
80693         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80694         in place of my hack.
80695
80696 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80697
80698         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80699         (textint): New typedef.
80700         (parser_control): Member year changed from int to textint.
80701         All uses changed.
80702         (YYSTYPE): Removed; replaced by %union with int and textint members.
80703         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80704         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80705         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80706         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80707         (date, number, to_year): Use width of number in digits, not its value,
80708         to determine whether it's a 2-digit year, or a 2-digit time.
80709         (yylex): Store number of digits of numeric tokens.
80710         Reported by John Kendall.
80711
80712         (parser_control): Changed from struct parser_control to typedef (for
80713         consistency).  All uses changed.
80714
80715         (tID): Removed; not used.
80716         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80717
80718 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80719
80720         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80721         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80722
80723 2000-02-12  Jim Meyering  <meyering@lucent.com>
80724
80725         * lib/userspec.c (ISDIGIT): Define it.
80726         (isdigit): Remove definition.
80727         (is_number): Use ISDIGIT, not isdigit.
80728         <libintl.h>: Include.
80729         (_ and N_): Define.
80730         (parse_user_spec): Mark translatable strings.
80731
80732 2000-02-10  Jim Meyering  <meyering@lucent.com>
80733
80734         With these changes, nanosleep.[ch] are finally enough like the other
80735         lib/* replacement files to compile on a few more losing systems.
80736
80737         * lib/nanosleep.h: Don't include config.h.
80738         Remove prototype from declaration of nanosleep.
80739         (PARAMS): Remove now-unneeded definition.
80740         * lib/nanosleep.c: #undef nanosleep.
80741         (rpl_nanosleep): Rename from nanosleep.
80742
80743 2000-02-10  Jim Meyering  <meyering@lucent.com>
80744
80745         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80746         gnu_nanosleep to rpl_nanosleep.
80747
80748 2000-02-09  Jim Meyering  <meyering@lucent.com>
80749
80750         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80751         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80752
80753 2000-02-08  Akim Demaille  <akim@epita.fr>
80754
80755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80756         `[' and `]' and remove uses of `changequote'.
80757         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80758         (AC_SYS_LARGEFILE): Likewise.
80759         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80760         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80761         of changequote.
80762         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80763         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80764         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80765         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80766
80767 2000-02-05  Jim Meyering  <meyering@lucent.com>
80768
80769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80770         Remove explicit use of AC_HEADER_TIME.  It is required by
80771         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80772         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80773         in autoconf whereby the expansion of the latter ended up preceding
80774         the expansion of its prerequisite, AC_HEADER_TIME.
80775         Reported by Volker Borchert.
80776
80777 2000-02-03  Jim Meyering  <meyering@lucent.com>
80778
80779         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80780
80781 2000-02-03  Jim Meyering  <meyering@lucent.com>
80782
80783         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80784         rather than with `#if HAVE_UTMPNAME'.
80785
80786 2000-02-02  Jim Meyering  <meyering@lucent.com>
80787
80788         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80789         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80790         Reported by Eli Zaretskii.
80791
80792 2000-02-01  Jim Meyering  <meyering@lucent.com>
80793
80794         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80795
80796 2000-01-31  Jim Meyering  <meyering@lucent.com>
80797
80798         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80799         functions.  Add the time.h and sys/time.h headers along with the
80800         AC_REQUIRE'ment of AC_HEADER_TIME.
80801
80802 2000-01-31  Jim Meyering  <meyering@lucent.com>
80803
80804         * lib/nanosleep.h (nanosleep): Guard declaration with
80805         `#if ! HAVE_DECL_NANOSLEEP'.
80806         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80807         the declaration in that vendor's sys/timers.h.
80808         Reported by Christian Krackowizer.
80809
80810         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80811         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80812         (ISPRINT): Likewise.
80813         Reported by Tom Tromey.
80814
80815 2000-01-30  Jim Meyering  <meyering@lucent.com>
80816
80817         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80818
80819         * m4/prereq.m4 (utmp_includes): Define.
80820         Check for ut_user and ut_name members in both struct utmpx
80821         and struct utmp.
80822
80823 2000-01-30  Jim Meyering  <meyering@lucent.com>
80824
80825         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80826         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80827         header files where only utmpx.ut_user is declared.
80828
80829         * lib/readutmp.h (UT_USER): Define.
80830
80831 2000-01-29  Jim Meyering  <meyering@lucent.com>
80832
80833         * m4/lib-check.m4: New file containing library-related checks from
80834         fileutils and sh-utils (textutils had none).
80835
80836 2000-01-28  Jim Meyering  <meyering@lucent.com>
80837
80838         * m4/perl.m4: Change format of warning message to look more like that
80839         from the missing script.  Suggestion from François Pinard.
80840
80841 2000-01-25  Jim Meyering  <meyering@lucent.com>
80842
80843         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80844         well as time.h in the compile check.
80845         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80846         Fix typo in cross-compiling case: s/yes/no/.
80847
80848 2000-01-23  Jim Meyering  <meyering@lucent.com>
80849
80850         * m4/jm-macros.m4: Move df-related tests here from
80851         fileutils/configure.in
80852
80853         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80854         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80855
80856         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80857         s/space/ac_fsusage_space/.
80858         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80859
80860         * m4/ftruncate.m4: New file (derived from part of
80861         fileutils/configure.in).
80862         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80863         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80864
80865         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80866         AC_SUBST these here, rather than just in sh-util/configure.in, so
80867         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80868         all the same.
80869         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80870         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80871         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80872         (AC_SUBST(POW_LIBM)): Likewise.
80873         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80874
80875 2000-01-23  Jim Meyering  <meyering@lucent.com>
80876
80877         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80878         obstack.c.
80879
80880 2000-01-22  Jim Meyering  <meyering@lucent.com>
80881
80882         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80883
80884         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80885
80886         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80887         configure.in
80888         (AC_CHECK_HEADERS): Likewise for sh-utils.
80889         (AC_CHECK_HEADERS): Likewise for textutils.
80890         Merge the three lists of headers.
80891
80892         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80893         from fileutils' configure.in.
80894
80895         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80896         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80897         check-decl.m4.
80898
80899         * m4/check-decl.m4: Use #if rather than #ifdef.
80900         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80901         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80902         (_jm_DECL_HEADERS): Define new function.
80903         (jm_CHECK_DECLARATIONS): Require it.
80904
80905 2000-01-22  Jim Meyering  <meyering@lucent.com>
80906
80907         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80908         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80909         Required for some AIX systems.  Reported by Christian Krackowizer.
80910         [TESTING] (main): New function.
80911
80912         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80913         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80914         letters.
80915
80916         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80917         iswprint.
80918
80919         * lib/strverscmp.c (ISDIGIT): Define.
80920         (strverscmp): Use ISDIGIT, not isdigit.
80921
80922 2000-01-19  Jim Meyering  <meyering@lucent.com>
80923
80924         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80925         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80926         defines `struct timespec' in <sys/time.h>
80927
80928         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80929         Thanks to Akim for explaining.
80930
80931 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80932
80933         * lib/nanosleep.c (nanosleep):
80934         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80935         POSIX.1 doesn't require SA_INTERRUPT and some systems
80936         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80937         it's been part of POSIX.1 since day 1 (in 1988).
80938
80939 2000-01-17  Jim Meyering  <meyering@lucent.com>
80940
80941         * lib/interlock: Remove unused file.  Reported by François Pinard.
80942
80943 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80944
80945         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80946         alert, backslash, formfeed, and vertical tab unnecessarily in
80947         shell quoting style.
80948
80949 2000-01-16  Jim Meyering  <meyering@lucent.com>
80950
80951         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80952         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80953         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80954         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80955
80956 2000-01-16  Jim Meyering  <meyering@lucent.com>
80957
80958         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80959         because the latter didn't work.
80960
80961 2000-01-15  Jim Meyering  <meyering@lucent.com>
80962
80963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80964         (AC_REPLACE_FUNCS): Add memcpy and memset.
80965         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80966         Add strpbrk.
80967         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80968
80969 2000-01-12  Jim Meyering  <meyering@lucent.com>
80970
80971         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80972         (jm_PREREQ): Use it.
80973         (jm_PREREQ_READUTMP): New macro.
80974         (jm_PREREQ): Use it.
80975
80976 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80977
80978         Quote multibyte characters correctly.
80979         * m4/c-bs-a.m4: New file.
80980         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80981         (jm_PREREQ): Use it.
80982
80983 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80984
80985         * m4/uintmax_t.m4: Port to autoconf 2.13.
80986
80987 2000-01-08  Jim Meyering  <meyering@ascend.com>
80988
80989         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80990         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80991
80992 2000-01-04  Jim Meyering  <meyering@ascend.com>
80993
80994         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80995         jm_STRUCT_DIRENT_D_TYPE.
80996         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80997         jm_STRUCT_DIRENT_D_INO.
80998         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80999         jm_STRUCT_UTIMBUF.
81000         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81001         renamings.
81002         * m4/utime.m4: Likewise.
81003
81004         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81005         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81006
81007 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81008
81009         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81010         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81011
81012 2000-01-02  Jim Meyering  <meyering@ascend.com>
81013
81014         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81015         remember if this is necessary.
81016
81017 1999-12-26  Jim Meyering  <meyering@ascend.com>
81018
81019         * m4/jm-macros.m4: Use it here.
81020         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81021
81022 1999-12-23  Jim Meyering  <meyering@ascend.com>
81023
81024         * m4/jm-macros.m4: Check for clock_gettime (moved from
81025         fileutils/configure.in)
81026         Check for gettimeofday.
81027
81028 1999-12-20  Jim Meyering  <meyering@ascend.com>
81029
81030         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81031         autoconf-2.14a-1999-12-20.
81032
81033 1999-12-19  Jim Meyering  <meyering@ascend.com>
81034
81035         * m4/lstat-slash.m4: New file.
81036         * m4/jm-macros.m4: Use the new macro:
81037         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81038
81039 1999-12-07  Jim Meyering  <meyering@ascend.com>
81040
81041         * m4/perl.m4: Require that File::Compare be available, too.
81042         Too many systems seem to lack it.
81043
81044         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81045         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
81046
81047 1999-11-18  Paul Eggert  <eggert@twinsun.com>
81048
81049         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
81050         problem with the QNX 4.25 shell, which doesn't propagate exit
81051         status of failed commands inside shell assignments.
81052
81053 1999-11-17  Jim Meyering  <meyering@ascend.com>
81054
81055         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81056
81057 1999-11-07  Jim Meyering  <meyering@ascend.com>
81058
81059         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81060
81061 1999-11-06  Jim Meyering  <meyering@ascend.com>
81062
81063         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81064         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81065
81066 1999-11-05  Jim Meyering  <meyering@ascend.com>
81067
81068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81069         configure.in of textutils, fileutils, and sh-utils into this one
81070         (shared between those packages) file.
81071         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81072         AC_STRUCT_ST_BLKSIZE.
81073
81074 1999-11-03  Jim Meyering  <meyering@ascend.com>
81075
81076         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81077         of AC_CHECK_TYPE checks includes unistd.h.
81078         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81079         Suggestion from Akim Demaille.
81080
81081 1999-10-30  Jim Meyering  <meyering@ascend.com>
81082
81083         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81084         m4-quoted string.
81085         * m4/ls-mntd-fs.m4: Likewise.
81086         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81087         * m4/jm-winsz1.m4: Likewise.
81088
81089         * m4/const.m4: Remove file, since the fix made it into the experimental
81090         version of autoconf.
81091         * m4/mktime.m4: Likewise.
81092
81093         * m4/check-type.m4: Remove file, now that the latest version of
81094         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81095
81096         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81097         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81098         AC_CHECK_TYPE.
81099
81100 1999-10-04  Jim Meyering  <meyering@ascend.com>
81101
81102         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81103
81104 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81105
81106         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81107         2.95.1 bug with HP-UX 10.20.
81108
81109 1999-09-17  Jim Meyering  <meyering@ascend.com>
81110
81111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81112         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81113         due to missing strdup (against sh-utils-2.0).
81114
81115 1999-08-29  Jim Meyering  <meyering@ascend.com>
81116
81117         * m4/jm-macros.m4: Require jm_BISON.
81118         * m4/bison.m4: New file.
81119
81120 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81121
81122         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81123         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81124
81125 1999-08-05  Jim Meyering  <meyering@ascend.com>
81126
81127         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81128         to avoid conflicts with `conftest' on 8+3 filesystems.
81129         Suggestion from Eli Zaretskii.
81130
81131 1999-08-04  Jim Meyering  <meyering@ascend.com>
81132
81133         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81134         fileutils and sh-utils (textutils's getline test was inadequate).
81135         (AM_FUNC_GETLINE): Run this test.
81136         (AC_CHECK_FUNCS): Check for getdelim.
81137         Reported by Bob Proulx.
81138
81139 1999-08-02  Jim Meyering  <meyering@ascend.com>
81140
81141         * m4/jm-macros.m4: Add a comment.
81142
81143 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81144
81145         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81146         <inttypes.h> defines strtoumax as a macro (and not as a
81147         function).
81148
81149 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81150
81151         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81152         that we can shift, multiply and divide unsigned long long
81153         values; Ultrix cc can't do it.
81154
81155 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81156
81157         * m4/mktime.m4: New file, which is a preview of what should appear
81158         in the next public autoconf release.
81159
81160 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81161
81162         * m4/lfs.m4: Remove this file.
81163         * m4/largefile.m4: New file.  It contains the old contents of
81164         lfs.m4, except that all names with prefix AC_LFS have been
81165         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81166         compatible with future autoconf versions.  Also, some minor m4
81167         quoting problems have been fixed.
81168
81169 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81170
81171         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81172         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81173         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81174         and simplify the shell code.
81175
81176 1999-08-01  Jim Meyering  <meyering@ascend.com>
81177
81178         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81179         m4.
81180
81181 1999-07-20  Jim Meyering  <meyering@ascend.com>
81182
81183         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81184
81185 1999-07-15  Jim Meyering  <meyering@ascend.com>
81186
81187         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81188
81189 1999-05-22  Jim Meyering  <meyering@ascend.com>
81190
81191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81192
81193 1999-05-20  Jim Meyering  <meyering@ascend.com>
81194
81195         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81196         Add a colon after each `then' in case $4 is empty.
81197
81198 1999-05-16  Jim Meyering  <meyering@ascend.com>
81199
81200         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81201
81202 1999-05-10  Jim Meyering  <meyering@ascend.com>
81203
81204         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81205
81206         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81207         AC_FUNC_MKTIME.
81208
81209 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81210
81211         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81212
81213 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81214
81215         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81216         not CPPFLAGS, so that linking works correctly in IRIX.
81217
81218 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81219
81220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81221
81222 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81223
81224         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81225         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81227         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81228         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81229
81230         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81231
81232 1999-04-20  Jim Meyering  <meyering@ascend.com>
81233
81234         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81235         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81236         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81237
81238 1999-04-18  Jim Meyering  <meyering@ascend.com>
81239
81240         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81241         * m4/jm-macros.m4: Use it.
81242
81243 1999-04-06  Jim Meyering  <meyering@ascend.com>
81244
81245         * m4/strftime.m4: Remove test for %f.
81246
81247 1999-03-29  Jim Meyering  <meyering@ascend.com>
81248
81249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81250         superset of the AC_TYPE_* checks in the textutils, fileutils,
81251         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81252         AC_TYPE_PID_T.
81253
81254 1999-03-28  Jim Meyering  <meyering@ascend.com>
81255
81256         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81257         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81258         replaced e.g., in the *.sh files of the sh-utils.
81259
81260 1999-03-20  Jim Meyering  <meyering@ascend.com>
81261
81262         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81263         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81264         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81265
81266 1999-03-19  Jim Meyering  <meyering@ascend.com>
81267
81268         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81269
81270 1999-03-12  Jim Meyering  <meyering@ascend.com>
81271
81272         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81273
81274 1999-03-07  Jim Meyering  <meyering@ascend.com>
81275
81276         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81277         declared.
81278
81279 1999-02-17  Jim Meyering  <meyering@ascend.com>
81280
81281         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81282         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81283
81284 1999-02-07  Jim Meyering  <meyering@ascend.com>
81285
81286         * m4/group-member.m4: New file -- extracted from sh-utils'
81287         configure.in.
81288
81289         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81290         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81291
81292 1999-02-06  Jim Meyering  <meyering@ascend.com>
81293
81294         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81295         * m4/fnmatch.m4: Likewise.
81296         * m4/getgroups.m4: Likewise.
81297         * m4/lstat.m4: Likewise.
81298         * m4/malloc.m4: Likewise.
81299         * m4/putenv.m4: Likewise.
81300         * m4/realloc.m4: Likewise.
81301         * m4/regex.m4: Likewise.
81302         * m4/stat.m4: Likewise.
81303         * m4/strftime.m4: Likewise.
81304         Suggestion from Alain Magloire.
81305
81306         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81307         * m4/fnmatch.m4: Likewise.
81308         * m4/getgroups.m4: Likewise.
81309         * m4/getline.m4: Likewise.
81310         * m4/lstat.m4: Likewise.
81311         * m4/malloc.m4: Likewise.
81312         * m4/memcmp.m4: Likewise.
81313         * m4/putenv.m4: Likewise.
81314         * m4/realloc.m4: Likewise.
81315         * m4/regex.m4: Likewise.
81316         * m4/stat.m4: Likewise.
81317         * m4/strftime.m4: Likewise.
81318         Suggestion from Alain Magloire.
81319
81320         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81321         an argument.
81322
81323         * m4/regex.m4: Add a run-time Test for proper operation of
81324         re_compile_pattern.
81325
81326 1999-01-31  Jim Meyering  <meyering@ascend.com>
81327
81328         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81329
81330 1999-01-30  Jim Meyering  <meyering@ascend.com>
81331
81332         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81333
81334         * m4/jm-mktime.m4: Make this a wrapper around the official
81335         AM_FUNC_MKTIME rather than my private copy, now that the official one
81336         is up to date.
81337         * m4/mktime.m4: Remove file.
81338
81339         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81340         * m4/uptime.m4: Likewise.
81341         * m4/uintmax_t.m4: Likewise.
81342
81343 1999-01-28  Jim Meyering  <meyering@ascend.com>
81344
81345         * m4/jm-macros.m4: Use jm_AFS.
81346         * m4/afs.m4: New file (from fileutils' configure.in).
81347
81348         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81349         * m4/chown.m4: Likewise.
81350         * m4/d-ino.m4: Likewise.
81351         * m4/d-type.m4: Likewise.
81352         * m4/fnmatch.m4: Likewise.
81353         * m4/getgroups.m4: Likewise.
81354         * m4/gettext.m4: Likewise.
81355         * m4/jm-mktime.m4: Likewise.
81356         * m4/jm-winsz2.m4: Likewise.
81357         * m4/lcmessage.m4: Likewise.
81358         * m4/ls-mntd-fs.m4: Likewise.
81359         * m4/malloc.m4: Likewise.
81360         * m4/memcmp.m4: Likewise.
81361         * m4/putenv.m4: Likewise.
81362         * m4/realloc.m4: Likewise.
81363         * m4/st_mtim.m4: Likewise.
81364         * m4/strftime.m4: Likewise.
81365
81366 1999-01-16  Jim Meyering  <meyering@ascend.com>
81367
81368         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81369         (ARGMATCH_DIE_DECL): Define.
81370
81371 1999-01-12  Jim Meyering  <meyering@ascend.com>
81372
81373         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81374         Reported by Lars Hecking.
81375
81376 1999-01-10  Jim Meyering  <meyering@ascend.com>
81377
81378         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81379         gross kludge.
81380         * m4/inttypes_h.m4: Likewise.
81381         * m4/lstat.m4: Likewise.
81382         * m4/malloc.m4: Likewise.
81383         * m4/readdir.m4: Likewise.
81384         * m4/realloc.m4: Likewise.
81385         * m4/st_dm_mode.m4: Likewise.
81386         * m4/stat.m4: Likewise.
81387         * m4/utimbuf.m4: Likewise.
81388         * m4/utimes.m4: Likewise.
81389
81390         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81391         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81392         comments in config.h.in are meaningful.
81393
81394         * m4/jm-macros.m4: Require autoconf-2.13 here.
81395
81396         * m4/regex.m4: By default, don't use the included regex.c on systems
81397         with glibc 2.  Suggestion from Uli Drepper.
81398
81399 1999-01-02  Jim Meyering  <meyering@ascend.com>
81400
81401         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81402
81403 1998-12-18  Jim Meyering  <meyering@ascend.com>
81404
81405         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81406         Based on a suggestion from Lars Hecking.
81407
81408 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81409
81410         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81411
81412 1998-11-16  Jim Meyering  <meyering@ascend.com>
81413
81414         * m4/lfs.m4: Double-quote the `uname...` expression.
81415
81416 1998-11-14  Jim Meyering  <meyering@ascend.com>
81417
81418         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81419         * m4/stat.m4: Likewise.
81420
81421 1998-11-03  Jim Meyering  <meyering@ascend.com>
81422
81423         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81424         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81425
81426 1998-10-18  Jim Meyering  <meyering@ascend.com>
81427
81428         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81429
81430 1998-10-17  Jim Meyering  <meyering@ascend.com>
81431
81432         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81433         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81434         calls for those previously hard-coded headers.  Instead, take a new
81435         parameter.
81436         (jm_CHECK_DECLARATIONS): Reflect interface change.
81437         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81438         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81439
81440         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81441
81442 1998-10-14  Jim Meyering  <meyering@ascend.com>
81443
81444         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81445         instead of "TZ=America/Vancouver".  From Paul Eggert.
81446
81447 1998-10-11  Jim Meyering  <meyering@ascend.com>
81448
81449         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81450         This adds a test for a recently added compatibility fix for mktime.c.
81451         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81452
81453 1998-09-27  Jim Meyering  <meyering@ascend.com>
81454
81455         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81456
81457         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81458         ../configure.in, including a change from Gordon Matzigkeit to allow
81459         cross-compiling for the Hurd.
81460
81461         * m4/glibc.m4: New file/macro to test for the GNU C Library
81462         versions 1 and 2.  From Gordon Matzigkeit.
81463         Indent.
81464
81465 1998-09-21  Jim Meyering  <meyering@ascend.com>
81466
81467         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81468
81469 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81470
81471         Port nanosecond-resolution times to UnixWare 2.1.2 and
81472         pedantic Solaris 2.6.
81473
81474         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81475         AC_STRUCT_ST_MTIM.
81476         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81477         Generate name of ns member, instead of just 1 or undef.
81478         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81479
81480 1998-08-15  Jim Meyering  <meyering@ascend.com>
81481
81482         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81483         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81484         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81485         instead of jm_TYPE_SSIZE_T.
81486
81487 1998-08-12  Jim Meyering  <meyering@ascend.com>
81488
81489         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81490
81491 1998-08-02  Jim Meyering  <meyering@ascend.com>
81492
81493         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81494         in acconfig.h manually.
81495
81496 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81497
81498         * m4/st_mtim.m4: New file.
81499
81500 1998-07-28  Jim Meyering  <meyering@ascend.com>
81501
81502         * m4/utimes.m4: Undef stat.
81503
81504 1998-07-25  Jim Meyering  <meyering@ascend.com>
81505
81506         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81507         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81508
81509 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81510
81511         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81512         uid and gid actually remain unchanged.
81513
81514 1998-07-07  Jim Meyering  <meyering@ascend.com>
81515
81516         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81517
81518 1998-07-04  Jim Meyering  <meyering@ascend.com>
81519
81520         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81521         to prove that this macro can be used in packages without regex.c.
81522
81523 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81524
81525         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81526         is to be used.
81527
81528 1998-07-03  Jim Meyering  <meyering@ascend.com>
81529
81530         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81531
81532         * m4/gettext.m4: New file -- from gettext-0.10.35.
81533         * m4/lcmessage.m4: Likewise.
81534         * m4/progtest.m4: Likewise.
81535
81536         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81537         * m4/jm-macros.m4: Require the new macro.
81538
81539 1998-06-29  Jim Meyering  <meyering@ascend.com>
81540
81541         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81542         for the definition of NGROUPS (used in a system header included
81543         by sys/mount.h).
81544
81545 1998-06-28  Jim Meyering  <meyering@ascend.com>
81546
81547         * m4/ls-mntd-fs.m4: New file.
81548         * m4/fstypename.m4: New file.
81549
81550         * m4/jm-macros.m4: Require the new macro.
81551         * m4/jm-glibc-io.m4: New file.
81552
81553 1998-05-19  Jim Meyering  <meyering@ascend.com>
81554
81555         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81556         * m4/lchown.m4: New file.
81557
81558         * m4/Makefile.am.in: New file.
81559         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81560
81561 1998-05-14  Jim Meyering  <meyering@ascend.com>
81562
81563         * m4/Makefile.am (EXTRA_DIST): Add them.
81564         * m4/jm-macros.m4: New file.
81565         * m4/utimbuf.m4: New file.
81566
81567 1998-05-12  Jim Meyering  <meyering@ascend.com>
81568
81569         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81570
81571 1998-05-11  Jim Meyering  <meyering@ascend.com>
81572
81573         * m4/isc-posix.m4: New file.
81574
81575 1998-05-10  Jim Meyering  <meyering@ascend.com>
81576
81577         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81578
81579 1998-05-09  Jim Meyering  <meyering@ascend.com>
81580
81581         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81582         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81583         with automake.
81584
81585         * m4/ssize_t.m4: New file.
81586         * m4/mktime.m4: Remove file -- the new automake has this now.
81587
81588 1998-04-26  Jim Meyering  <meyering@ascend.com>
81589
81590         * m4/assert.m4: New file.
81591         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81592
81593 1998-04-05  Jim Meyering  <meyering@ascend.com>
81594
81595         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81596         (jm_PREREQ): Use it here.
81597
81598 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81599
81600         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81601         in acconfig.h.
81602
81603 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81604
81605         * m4/prereq.m4: New file.
81606         * m4/error.m4: New file.
81607         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81608
81609 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81610
81611         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81612         cache-check for the same variable -- that defeated the purpose of
81613         the test; the test program was never run.  This was a problem only
81614         on systems with losing getline functions -- HP-UX 10.20 is one.
81615         Reported by Bjorn Helgaas.
81616
81617 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81618
81619         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81620
81621 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81622
81623         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81624
81625         * m4/const.m4: New file.  Use an initializer in this declaration
81626         typedef int charset[2]; const charset x;
81627         Reported by Bob Glickstein.
81628
81629 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81630
81631         * m4/chown.m4: Fix reversed types on -1 args to chown.
81632         From Kaveh Ghazi.
81633
81634 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81635
81636         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81637         Add lseek and memchr.
81638
81639         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81640         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81641         have a 20-character limit on names.
81642
81643 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81644
81645         * m4/inttypes_h.m4: New file.
81646         * m4/uintmax_t.m4: New file.
81647         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81648
81649
81650         -----
81651
81652         Local Variables:
81653         coding: utf-8
81654         End:
81655
81656         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81657
81658         Copying and distribution of this file, with or without
81659         modification, are permitted provided the copyright notice
81660         and this notice are preserved.