mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
[pspp] / ChangeLog
1 2011-05-21  Bruno Haible  <bruno@clisp.org>
2
3         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5         gl_PREREQ_MBSNRTOWCS invocations from here...
6         * modules/mbsnrtowcs (configure.ac): ... to here.
7
8 2011-05-21  Bruno Haible  <bruno@clisp.org>
9
10         mbsinit: Move AC_LIBOBJ invocations to module description.
11         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12         invocations from here...
13         * modules/mbsinit (configure.ac): ... to here.
14
15 2011-05-21  Bruno Haible  <bruno@clisp.org>
16
17         mbrlen: Move AC_LIBOBJ invocations to module description.
18         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19         invocations from here...
20         * modules/mbrlen (configure.ac): ... to here.
21
22 2011-05-21  Bruno Haible  <bruno@clisp.org>
23
24         mbrtowc: Respect rules for use of AC_LIBOBJ.
25         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
26         invocations from here...
27         * modules/mbrtowc (configure.ac): ... to here.
28
29 2011-05-21  Bruno Haible  <bruno@clisp.org>
30
31         malloc-*: Move AC_LIBOBJ invocations to module description.
32         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
33         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
34         AC_LIBOBJ invocations from here...
35         * modules/malloc-gnu (configure.ac): ... to here.
36         * modules/malloc-posix (configure.ac): ... and here.
37
38 2011-05-21  Bruno Haible  <bruno@clisp.org>
39
40         lstat, openat: Respect rules for use of AC_LIBOBJ.
41         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
42         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
43         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
44         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
45         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
46         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
47         here.
48         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49
50 2011-05-21  Bruno Haible  <bruno@clisp.org>
51
52         lseek: Move AC_LIBOBJ invocations to module description.
53         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
54         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
55         * modules/lseek (configure.ac): ... to here.
56
57 2011-05-21  Bruno Haible  <bruno@clisp.org>
58
59         linkat: Move AC_LIBOBJ invocations to module description.
60         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
61         here...
62         * modules/linkat (configure.ac): ... to here.
63
64 2011-05-21  Bruno Haible  <bruno@clisp.org>
65
66         link: Respect rules for use of AC_LIBOBJ.
67         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
68         * modules/link (configure.ac): ... to here.
69
70 2011-05-21  Bruno Haible  <bruno@clisp.org>
71
72         lchown: Move AC_LIBOBJ invocations to module description.
73         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
74         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
75         * modules/lchown (configure.ac): ... to here.
76
77 2011-05-21  Bruno Haible  <bruno@clisp.org>
78
79         iswctype: Move AC_LIBOBJ invocations to module description.
80         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
81         here...
82         * modules/iswctype (configure.ac): ... to here.
83
84 2011-05-21  Bruno Haible  <bruno@clisp.org>
85
86         iswblank: Move AC_LIBOBJ invocations to module description.
87         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
88         here...
89         * modules/iswblank (configure.ac): ... to here.
90
91 2011-05-21  Bruno Haible  <bruno@clisp.org>
92
93         atanl: Move AC_LIBOBJ invocations to module description.
94         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
95         * modules/atanl (configure.ac): ... to here.
96
97 2011-05-21  Bruno Haible  <bruno@clisp.org>
98
99         acosl: Move AC_LIBOBJ invocations to module description.
100         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
101         * modules/acosl (configure.ac): ... to here.
102
103 2011-05-21  Bruno Haible  <bruno@clisp.org>
104
105         asinl: Respect rules for use of AC_LIBOBJ.
106         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
107         * modules/asinl (configure.ac): ... to here.
108
109 2011-05-21  Bruno Haible  <bruno@clisp.org>
110
111         tanl: Move AC_LIBOBJ invocations to module description.
112         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
113         * modules/tanl (configure.ac): ... to here.
114
115 2011-05-21  Bruno Haible  <bruno@clisp.org>
116
117         cosl: Move AC_LIBOBJ invocations to module description.
118         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
119         * modules/cosl (configure.ac): ... to here.
120
121 2011-05-21  Bruno Haible  <bruno@clisp.org>
122
123         sinl: Move AC_LIBOBJ invocations to module description.
124         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
125         * modules/sinl (configure.ac): ... to here.
126
127 2011-05-21  Bruno Haible  <bruno@clisp.org>
128
129         logl: Move AC_LIBOBJ invocations to module description.
130         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
131         * modules/logl (configure.ac): ... to here.
132
133 2011-05-21  Bruno Haible  <bruno@clisp.org>
134
135         expl: Move AC_LIBOBJ invocations to module description.
136         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
137         * modules/expl (configure.ac): ... to here.
138
139 2011-05-21  Bruno Haible  <bruno@clisp.org>
140
141         roundl: Move AC_LIBOBJ invocations to module description.
142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
143         * modules/roundl (configure.ac): ... to here.
144
145 2011-05-21  Bruno Haible  <bruno@clisp.org>
146
147         round: Move AC_LIBOBJ invocations to module description.
148         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
149         * modules/round (configure.ac): ... to here.
150
151 2011-05-21  Bruno Haible  <bruno@clisp.org>
152
153         roundf: Move AC_LIBOBJ invocations to module description.
154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
155         * modules/roundf (configure.ac): ... to here.
156
157 2011-05-21  Bruno Haible  <bruno@clisp.org>
158
159         truncl: Move AC_LIBOBJ invocations to module description.
160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
161         * modules/truncl (configure.ac): ... to here.
162
163 2011-05-21  Bruno Haible  <bruno@clisp.org>
164
165         trunc: Move AC_LIBOBJ invocations to module description.
166         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
167         * modules/trunc (configure.ac): ... to here.
168
169 2011-05-21  Bruno Haible  <bruno@clisp.org>
170
171         truncf: Move AC_LIBOBJ invocations to module description.
172         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
173         * modules/truncf (configure.ac): ... to here.
174
175 2011-05-21  Bruno Haible  <bruno@clisp.org>
176
177         ceill: Move AC_LIBOBJ invocations to module description.
178         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
179         * modules/ceill (configure.ac): ... to here.
180
181 2011-05-21  Bruno Haible  <bruno@clisp.org>
182
183         ceil: Move AC_LIBOBJ invocations to module description.
184         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
185         * modules/ceil (configure.ac): ... to here.
186
187 2011-05-21  Bruno Haible  <bruno@clisp.org>
188
189         ceilf: Move AC_LIBOBJ invocations to module description.
190         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
191         * modules/ceilf (configure.ac): ... to here.
192
193 2011-05-21  Bruno Haible  <bruno@clisp.org>
194
195         floorl: Respect rules for use of AC_LIBOBJ.
196         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
197         * modules/floorl (configure.ac): ... to here.
198
199 2011-05-21  Bruno Haible  <bruno@clisp.org>
200
201         floor: Respect rules for use of AC_LIBOBJ.
202         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
203         * modules/floor (configure.ac): ... to here.
204
205 2011-05-21  Bruno Haible  <bruno@clisp.org>
206
207         floorf: Move AC_LIBOBJ invocations to module description.
208         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
209         * modules/floorf (configure.ac): ... to here.
210
211 2011-05-20  Bruno Haible  <bruno@clisp.org>
212
213         sqrtl: Respect rules for use of AC_LIBOBJ.
214         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
215         * modules/sqrtl (configure.ac): ... to here.
216
217 2011-05-20  Bruno Haible  <bruno@clisp.org>
218
219         ldexpl: Respect rules for use of AC_LIBOBJ.
220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
221         * modules/ldexpl (configure.ac): ... to here.
222
223 2011-05-20  Bruno Haible  <bruno@clisp.org>
224
225         frexpl*: Respect rules for use of AC_LIBOBJ.
226         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
227         invocation from here...
228         * modules/frexpl (configure.ac): ... to here.
229         * modules/frexpl-nolibm (configure.ac): ... and here.
230
231 2011-05-20  Bruno Haible  <bruno@clisp.org>
232
233         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
234         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
235         invocation from here...
236         * modules/frexp (configure.ac): ... to here.
237         * modules/frexp-nolibm (configure.ac): ... and here.
238
239 2011-05-20  Bruno Haible  <bruno@clisp.org>
240
241         isnan: Respect rules for use of AC_LIBOBJ.
242         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
243         invocations here.
244         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
245         REPLACE_ISNAN.
246         * modules/isnand (configure.ac): Likewise.
247         * modules/isnanl (configure.ac): Likewise.
248
249 2011-05-20  Bruno Haible  <bruno@clisp.org>
250
251         isnanl*: Respect rules for use of AC_LIBOBJ.
252         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
253         invocation from here...
254         * modules/isnanl (configure.ac): ... to here.
255         * modules/isnanl-nolibm (configure.ac): ... and here.
256
257 2011-05-20  Bruno Haible  <bruno@clisp.org>
258
259         isnand*: Move AC_LIBOBJ invocations to module description.
260         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
261         invocation from here...
262         * modules/isnand (configure.ac): ... to here.
263         * modules/isnand-nolibm (configure.ac): ... and here.
264
265 2011-05-20  Bruno Haible  <bruno@clisp.org>
266
267         isnanf*: Move AC_LIBOBJ invocations to module description.
268         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
269         invocation from here...
270         * modules/isnanf (configure.ac): ... to here.
271         * modules/isnanf-nolibm (configure.ac): ... and here.
272
273 2011-05-20  Bruno Haible  <bruno@clisp.org>
274
275         isnan*: Separate the AC_LIBOBJ invocations.
276         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
277         AC_LIBOBJ invocation.
278         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
279         here.
280         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
281         AC_LIBOBJ invocation.
282         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
283         here.
284         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
285         AC_LIBOBJ invocation.
286         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
287         here.
288         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
289
290 2011-05-08  Bruno Haible  <bruno@clisp.org>
291
292         isinf: Move AC_LIBOBJ invocations to module description.
293         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
294         * modules/isinf (configure.ac): ... to here.
295
296 2011-05-08  Bruno Haible  <bruno@clisp.org>
297
298         isfinite: Move AC_LIBOBJ invocations to module description.
299         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
300         * modules/isfinite (configure.ac): ... to here.
301
302 2011-05-08  Bruno Haible  <bruno@clisp.org>
303
304         isblank: Move AC_LIBOBJ invocations to module description.
305         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
306         here...
307         * modules/isblank (configure.ac): ... to here.
308
309 2011-05-08  Bruno Haible  <bruno@clisp.org>
310
311         isapipe: Move AC_LIBOBJ invocations to module description.
312         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
313         gl_PREREQ_ISAPIPE invocations from here...
314         * modules/isapipe (configure.ac): ... to here.
315         (Depends-on): Update condition.
316
317 2011-05-08  Bruno Haible  <bruno@clisp.org>
318
319         ioctl: Move AC_LIBOBJ invocations to module description.
320         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
321         invocations from here...
322         * modules/ioctl (configure.ac): ... to here.
323         (Depends-on): Update condition.
324
325 2011-05-08  Bruno Haible  <bruno@clisp.org>
326
327         imaxdiv: Move AC_LIBOBJ invocations to module description.
328         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
329         invocations from here...
330         * modules/imaxdiv (configure.ac): ... to here.
331
332 2011-05-08  Bruno Haible  <bruno@clisp.org>
333
334         imaxabs: Move AC_LIBOBJ invocations to module description.
335         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
336         invocations from here...
337         * modules/imaxabs (configure.ac): ... to here.
338
339 2011-05-08  Bruno Haible  <bruno@clisp.org>
340
341         getaddrinfo: Move AC_LIBOBJ invocations to module description.
342         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
343         AC_LIBOBJ invocations from here...
344         * modules/getaddrinfo (configure.ac): ... to here.
345         (Depends-on): Add conditions.
346
347 2011-05-08  Bruno Haible  <bruno@clisp.org>
348
349         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
350         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
351         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
352         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
353         (gl_PREREQ_INET_PTON): ... from here.
354         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
355         gl_PREREQ_INET_PTON here.
356         (Depends-on): Update condition.
357
358 2011-05-08  Bruno Haible  <bruno@clisp.org>
359
360         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
361         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
362         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
363         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
364         (gl_PREREQ_INET_NTOP): ... from here.
365         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
366         gl_PREREQ_INET_NTOP here.
367         (Depends-on): Update condition.
368
369 2011-05-08  Bruno Haible  <bruno@clisp.org>
370
371         iconv_open: Move AC_LIBOBJ invocations to module description.
372         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
373         AC_LIBOBJ invocations from here...
374         * modules/iconv_open (configure.ac): ... to here.
375
376 2011-05-08  Bruno Haible  <bruno@clisp.org>
377
378         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
379         If module 'iconv_open' is among the main modules and module
380         'iconv_open-utf' is among the tests dependencies, then
381         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
382         return the special iconv_t values. Therefore iconv() and iconv_close()
383         must support these special iconv_t values, already in lib, not only in
384         tests.
385         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
386         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
387         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
388         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
389         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
390         (Depends-on): Add the dependencies of iconv_open-utf.
391         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
392         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
393         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
394
395 2011-05-08  Bruno Haible  <bruno@clisp.org>
396
397         group-member: Move AC_LIBOBJ invocations to module description.
398         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
399         gl_PREREQ_GROUP_MEMBER invocations from here...
400         * modules/group-member (configure.ac): ... to here.
401
402 2011-05-08  Bruno Haible  <bruno@clisp.org>
403
404         grantpt: Move AC_LIBOBJ invocations to module description.
405         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
406         invocations from here...
407         * modules/grantpt (configure.ac): ... to here.
408
409 2011-05-08  Bruno Haible  <bruno@clisp.org>
410
411         glob: Move AC_LIBOBJ invocations to module description.
412         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
413         from here...
414         * modules/glob (configure.ac): ... to here.
415
416 2011-05-08  Bruno Haible  <bruno@clisp.org>
417
418         getusershell: Move AC_LIBOBJ invocations to module description.
419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
420         Move AC_LIBOBJ invocation from here...
421         * modules/getusershell (configure.ac): ... to here.
422         (Depends-on): Update condition.
423
424 2011-05-08  Bruno Haible  <bruno@clisp.org>
425
426         gettimeofday: Move AC_LIBOBJ invocations to module description.
427         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
428         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
429         gl_PREREQ_GETTIMEOFDAY invocations from here...
430         * modules/gettimeofday (configure.ac): ... to here.
431
432 2011-05-08  Bruno Haible  <bruno@clisp.org>
433
434         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
435         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
436         just gl_FUNC_TZSET.
437         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
438         (gl_FUNC_TZSET_CLOBBER): Remove actions.
439         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
440         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
441
442 2011-05-08  Bruno Haible  <bruno@clisp.org>
443
444         getsubopt: Move AC_LIBOBJ invocations to module description.
445         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
446         gl_PREREQ_GETSUBOPT invocations from here...
447         * modules/getsubopt (configure.ac): ... to here.
448
449 2011-05-08  Bruno Haible  <bruno@clisp.org>
450
451         getpass-gnu: Move AC_LIBOBJ invocations to module description.
452         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
453         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
454         * modules/getpass-gnu (configure.ac): ... to here.
455
456 2011-05-08  Bruno Haible  <bruno@clisp.org>
457
458         getpass: Move AC_LIBOBJ invocations to module description.
459         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
460         gl_PREREQ_GETPASS invocations from here...
461         * modules/getpass (configure.ac): ... to here.
462
463 2011-05-08  Bruno Haible  <bruno@clisp.org>
464
465         getpagesize: Move AC_LIBOBJ invocations to module description.
466         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
467         from here...
468         * modules/getpagesize (configure.ac): ... to here.
469
470 2011-05-08  Bruno Haible  <bruno@clisp.org>
471
472         getopt: Move AC_LIBOBJ invocations to module description.
473         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
474         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
475         invocations from here...
476         * modules/getopt-gnu (configure.ac): ... to here.
477         * modules/getopt-posix (configure.ac): ... and here.
478         (Depends-on): Update condition.
479
480 2011-05-08  Bruno Haible  <bruno@clisp.org>
481
482         getopt, argp: Respect rules for use of AC_LIBOBJ.
483         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
484         (gl_REPLACE_GETOPT_ALWAYS): New macro.
485         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
486         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
487
488 2011-05-08  Bruno Haible  <bruno@clisp.org>
489
490         getlogin_r: Move AC_LIBOBJ invocations to module description.
491         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
492         gl_PREREQ_GETLOGIN_R invocations from here...
493         * modules/getlogin_r (configure.ac): ... to here.
494
495 2011-05-08  Bruno Haible  <bruno@clisp.org>
496
497         getlogin: Move AC_LIBOBJ invocations to module description.
498         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
499         here...
500         * modules/getlogin (configure.ac): ... to here.
501
502 2011-05-08  Bruno Haible  <bruno@clisp.org>
503
504         getloadavg: Move AC_LIBOBJ invocations to module description.
505         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
506         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
507         * modules/getloadavg (configure.ac): ... to here.
508
509 2011-05-08  Bruno Haible  <bruno@clisp.org>
510
511         gethrxtime: Move AC_LIBOBJ invocations to module description.
512         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
513         LIB_GETHRXTIME from here...
514         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
515         invocations from here...
516         * modules/gethrxtime (configure.ac): ... to here.
517
518 2011-05-08  Bruno Haible  <bruno@clisp.org>
519
520         gethostname: Move AC_LIBOBJ invocations to module description.
521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
522         gl_PREREQ_GETHOSTNAME invocations from here...
523         * modules/gethostname (configure.ac): ... to here.
524
525 2011-05-08  Bruno Haible  <bruno@clisp.org>
526
527         getgroups: Move AC_LIBOBJ invocations to module description.
528         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
529         here...
530         * modules/getgroups (configure.ac): ... to here.
531
532 2011-05-08  Bruno Haible  <bruno@clisp.org>
533
534         getdtablesize: Move AC_LIBOBJ invocations to module description.
535         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
536         invocation from here...
537         * modules/getdtablesize (configure.ac): ... to here.
538
539 2011-05-08  Bruno Haible  <bruno@clisp.org>
540
541         getdomainname: Move AC_LIBOBJ invocations to module description.
542         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
543         gl_PREREQ_GETDOMAINNAME invocations from here...
544         * modules/getdomainname (configure.ac): ... to here.
545
546 2011-05-08  Bruno Haible  <bruno@clisp.org>
547
548         getline: Move AC_LIBOBJ invocations to module description.
549         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
550         invocations from here...
551         * modules/getline (configure.ac): ... to here.
552
553 2011-05-08  Bruno Haible  <bruno@clisp.org>
554
555         getline: Simplify.
556         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
557         It's already handled through the module dependency.
558
559 2011-05-08  Bruno Haible  <bruno@clisp.org>
560
561         getdelim: Move AC_LIBOBJ invocations to module description.
562         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
563         and gl_PREREQ_GETDELIM invocations from here...
564         * modules/getdelim (configure.ac): ... to here.
565         (Depends-on): Fix condition.
566
567 2011-05-08  Bruno Haible  <bruno@clisp.org>
568
569         getcwd: Move AC_LIBOBJ invocations to module description.
570         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
571         invocations from here...
572         * modules/getcwd (configure.ac): ... to here.
573
574 2011-05-08  Bruno Haible  <bruno@clisp.org>
575
576         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
577         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
578         here...
579         * modules/getcwd-lgpl (configure.ac): ... to here.
580
581 2011-05-07  Bruno Haible  <bruno@clisp.org>
582
583         crypto/gc: Move AC_LIBOBJ invocations to module description.
584         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
585         * modules/crypto/gc (configure.ac): ... to here.
586
587 2011-05-07  Bruno Haible  <bruno@clisp.org>
588
589         fwriting: Move AC_LIBOBJ invocations to module description.
590         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
591         here...
592         * modules/fwriting (configure.ac): ... to here.
593
594 2011-05-07  Bruno Haible  <bruno@clisp.org>
595
596         fwritable: Move AC_LIBOBJ invocations to module description.
597         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
598         here...
599         * modules/fwritable (configure.ac): ... to here.
600
601 2011-05-07  Bruno Haible  <bruno@clisp.org>
602
603         futimens: Move AC_LIBOBJ invocations to module description.
604         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
605         here...
606         * modules/futimens (configure.ac): ... to here.
607
608 2011-05-07  Bruno Haible  <bruno@clisp.org>
609
610         ftruncate: Move AC_LIBOBJ invocations to module description.
611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
612         gl_PREREQ_FTRUNCATE invocations from here...
613         * modules/ftruncate (configure.ac): ... to here.
614
615 2011-05-07  Bruno Haible  <bruno@clisp.org>
616
617         fsync: Move AC_LIBOBJ invocations to module description.
618         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
619         invocations from here...
620         * modules/fsync (configure.ac): ... to here.
621
622 2011-05-07  Bruno Haible  <bruno@clisp.org>
623
624         fsusage: Move AC_LIBOBJ invocations to module description.
625         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
626         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
627         * modules/fsusage (configure.ac): ... to here.
628
629 2011-05-07  Bruno Haible  <bruno@clisp.org>
630
631         freopen: Move AC_LIBOBJ invocations to module description.
632         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
633         invocations from here...
634         * modules/freopen (configure.ac): ... to here.
635
636 2011-05-07  Bruno Haible  <bruno@clisp.org>
637
638         free: Move AC_LIBOBJ invocations to module description.
639         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
640         invocations from here...
641         * modules/free (configure.ac): ... to here.
642
643 2011-05-07  Bruno Haible  <bruno@clisp.org>
644
645         freadable: Move AC_LIBOBJ invocations to module description.
646         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
647         here...
648         * modules/freadable (configure.ac): ... to here.
649
650 2011-05-07  Bruno Haible  <bruno@clisp.org>
651
652         fpurge: Move AC_LIBOBJ invocations to module description.
653         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
654         invocations from here...
655         * modules/fpurge (configure.ac): ... to here.
656
657 2011-05-07  Bruno Haible  <bruno@clisp.org>
658
659         fpending: Move AC_LIBOBJ invocations to module description.
660         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
661         gl_FUNC_FPENDING.
662         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
663         invocations from here...
664         * modules/fpending (configure.ac): ... to here.
665
666 2011-05-07  Bruno Haible  <bruno@clisp.org>
667
668         fopen: Move AC_LIBOBJ invocations to module description.
669         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
670         invocations from here...
671         * modules/fopen (configure.ac): ... to here.
672
673 2011-05-07  Bruno Haible  <bruno@clisp.org>
674
675         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
676         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
677         gl_FUNC_FNMATCH_POSIX.
678         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
679         invocations from here...
680         * modules/fnmatch (configure.ac): ... to here.
681         * modules/fnmatch-gnu (configure.ac): ... and here.
682
683 2011-05-07  Bruno Haible  <bruno@clisp.org>
684
685         flock: Move AC_LIBOBJ invocations to module description.
686         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
687         invocations from here...
688         * modules/flock (configure.ac): ... to here.
689
690 2011-05-07  Bruno Haible  <bruno@clisp.org>
691
692         fileblocks: Move AC_LIBOBJ invocations to module description.
693         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
694         gl_PREREQ_FILEBLOCKS invocations from here...
695         * modules/fileblocks (configure.ac): ... to here.
696
697 2011-05-06  Bruno Haible  <bruno@clisp.org>
698
699         fflush: Move AC_LIBOBJ invocations to module description.
700         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
701         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
702         invocations from here...
703         * modules/fflush (configure.ac): ... to here.
704
705 2011-05-06  Bruno Haible  <bruno@clisp.org>
706
707         fdopendir: Move AC_LIBOBJ invocations to module description.
708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
709         here...
710         * modules/fdopendir (configure.ac): ... to here.
711         (Depends-on): Improve conditions.
712
713 2011-05-06  Bruno Haible  <bruno@clisp.org>
714
715         _Exit: Move AC_LIBOBJ invocations to module description.
716         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
717         invocations from here...
718         * modules/_Exit (configure.ac): ... to here.
719
720 2011-05-21  Bruno Haible  <bruno@clisp.org>
721
722         euidaccess: Respect rules for use of AC_LIBOBJ.
723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
725         from here...
726         * modules/euidaccess (configure.ac): ... to here.
727
728 2011-05-06  Bruno Haible  <bruno@clisp.org>
729
730         error: Move AC_LIBOBJ invocations to module description.
731         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
732         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
733         invocations from here...
734         * modules/error (configure.ac): ... to here.
735
736 2011-05-06  Bruno Haible  <bruno@clisp.org>
737
738         duplocale: Move AC_LIBOBJ invocations to module description.
739         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
740         gl_PREREQ_DUPLOCALE invocations from here...
741         * modules/duplocale (configure.ac): ... to here.
742
743 2011-05-05  Bruno Haible  <bruno@clisp.org>
744
745         dirfd: Move AC_LIBOBJ invocations to module description.
746         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
747         gl_FUNC_DIRFD.
748         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
749         here...
750         * modules/dirfd (configure.ac): ... to here.
751         (Depends-on): Fix condition.
752
753 2011-05-05  Bruno Haible  <bruno@clisp.org>
754
755         chown: Respect rules for use of AC_LIBOBJ.
756         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
757         * modules/chown (configure.ac): ... to here.
758
759 2011-05-05  Bruno Haible  <bruno@clisp.org>
760
761         chdir-long: Move AC_LIBOBJ invocations to module description.
762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
763         gl_PREREQ_CHDIR_LONG invocations from here...
764         * modules/chdir-long (configure.ac): ... to here.
765
766 2011-05-05  Bruno Haible  <bruno@clisp.org>
767
768         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
769         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
770         from here...
771         * modules/canonicalize-lgpl (configure.ac): ... to here.
772
773 2011-05-05  Bruno Haible  <bruno@clisp.org>
774
775         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
776         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
777         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
778         REPLACE_CALLOC.
779         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
780         * modules/calloc-gnu (configure.ac): Likewise.
781
782 2011-05-05  Bruno Haible  <bruno@clisp.org>
783
784         btowc: Move AC_LIBOBJ invocations to module description.
785         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
786         invocations from here...
787         * modules/btowc (configure.ac): ... to here.
788
789 2011-05-21  Bruno Haible  <bruno@clisp.org>
790
791         atexit: Move AC_LIBOBJ invocations to module description.
792         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
794         here...
795         * modules/atexit (configure.ac): ... to here.
796
797 2011-05-05  Bruno Haible  <bruno@clisp.org>
798
799         atoll: Move AC_LIBOBJ invocations to module description.
800         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
801         invocations from here...
802         * modules/atoll (configure.ac): ... to here.
803
804 2011-05-05  Bruno Haible  <bruno@clisp.org>
805
806         argz: Move AC_LIBOBJ invocations to module description.
807         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
808         * modules/argz (configure.ac): ... to here.
809
810 2011-05-05  Bruno Haible  <bruno@clisp.org>
811
812         alphasort: Move AC_LIBOBJ invocations to module description.
813         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
814         gl_PREREQ_ALPHASORT invocations from here...
815         * modules/alphasort (configure.ac): ... to here.
816
817 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
818
819         verify: new macro verify_expr; verify_true deprecated
820         * NEWS: Mention this.
821         * doc/verify.texi (Compile-time Assertions): Document this.
822         * lib/verify.h (verify_true): Deprecate.
823         (verify_expr): New macro.
824         * tests/test-verify.c (function): Test verify_expr.
825
826 2011-06-14  Jim Meyering  <meyering@redhat.com>
827
828         init.sh: give more portable redirection-related advice in a comment
829         * tests/init.sh (stderr_fileno_): Update the advice in comments.
830         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
831         for lots of discussion.  Stefano Lattarini suggested the solution
832         of putting "9>&2" after the command.  Reported by Bruno Haible.
833
834 2011-06-13  Bruno Haible  <bruno@clisp.org>
835
836         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
837         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
838         'none'.
839
840 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
841
842         ftoastr: use strtof only if HAVE_STRTOF
843         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
845         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
846         * modules/ftoastr (configure.ac): Check for strtof.
847
848 2011-06-13  Bruno Haible  <bruno@clisp.org>
849
850         gnulib-tool: Addendum to 2011-06-08 commit.
851         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
852         and --witness-c-macro have been given, augment AM_CPPFLAGS.
853
854 2011-06-13  Bruno Haible  <bruno@clisp.org>
855
856         fseeko: Provide a non-inline replacement of fseek().
857         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
858         * modules/fseeko (Depends-on): Add fseek.
859         * modules/fseek (License): Change to LGPLv2+.
860
861 2011-06-13  Bruno Haible  <bruno@clisp.org>
862
863         ftello: Provide a non-inline replacement of ftell().
864         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
865         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
866         not have ftello() (such as on mingw).
867         * modules/ftello (Depends-on): Add ftell.
868         * modules/ftell (License): Change to LGPLv2+.
869
870 2011-05-07  Bruno Haible  <bruno@clisp.org>
871
872         ftell: Move AC_LIBOBJ invocations to module description.
873         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
874         * modules/ftell (configure.ac): ... to here.
875
876 2011-05-07  Bruno Haible  <bruno@clisp.org>
877
878         ftello: Respect rules for use of AC_LIBOBJ.
879         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
880         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
881         here...
882         * modules/ftello (configure.ac): ... to here.
883
884 2011-05-07  Bruno Haible  <bruno@clisp.org>
885
886         fseeko: Simplify.
887         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
888         (gl_FUNC_FSEEKO): Inline it here.
889
890 2011-05-07  Bruno Haible  <bruno@clisp.org>
891
892         fseek: Move AC_LIBOBJ invocations to module description.
893         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
894         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
895         * modules/fseek (configure.ac): ... to here.
896
897 2011-05-07  Bruno Haible  <bruno@clisp.org>
898
899         fseek: Respect rules for use of AC_LIBOBJ.
900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
901         here...
902         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
903
904 2011-05-07  Bruno Haible  <bruno@clisp.org>
905
906         fseeko: Respect rules for use of AC_LIBOBJ.
907         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
908         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
909         here...
910         * modules/fseeko (configure.ac): ... to here.
911
912 2011-06-13  Bruno Haible  <bruno@clisp.org>
913
914         gnulib-tool: Allow comments in the 'Depends-on' section.
915         * doc/gnulib.texi (Module description): Mention comment syntax in the
916         Depends-on section.
917         * gnulib-tool (func_get_dependencies): Filter out comment lines.
918
919 2011-06-13  Bruno Haible  <bruno@clisp.org>
920
921         file-set.h: guard __attibute__ use, now that it's not always defined
922         * lib/file-set.h (record_file): Use __attribute__ only with compiler
923         versions that support it.  This fixes a coreutils build failure with
924         the vendor cc on HP-UX 11.31.
925
926 2011-06-12  Bruno Haible  <bruno@clisp.org>
927
928         acl: Add support for HP-UX >= 11.11 JFS ACLs.
929         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
930         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
931         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
932         (acl, aclsort): New declarations.
933         (aclv_nontrivial): New declaration.
934         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
935         (file_has_acl): Read also the second kind of HP-UX ACLs.
936         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
937         kind of HP-UX ACLs if the first kind fails.
938         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
939         second kind of HP-UX ACLs.
940         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
941         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
942         agree.
943         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
944         hpuxjfs.
945         Handle hpuxjfs.
946         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
947         hpuxjfs.
948         Handle hpuxjfs.
949         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
950         (func_test_same_acls): Use both lsacl and getacl.
951         Handle hpuxjfs.
952         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
953         (func_test_same_acls): Use both lsacl and getacl.
954         Handle hpuxjfs.
955
956 2011-06-12  Bruno Haible  <bruno@clisp.org>
957
958         acl: Complete the 2010-08-10 fix.
959         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
960         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
961         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
962         explicitly.
963         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
964         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
965
966 2011-06-12  Bruno Haible  <bruno@clisp.org>
967
968         spawn-pipe tests: Comments.
969         * tests/test-spawn-pipe-child.c (main): Update comment.
970         Reported by James Youngman <jay@gnu.org>.
971
972 2011-06-11  James Youngman  <jay@gnu.org>
973
974         New module 'stat-size'.
975         * modules/stat-size: New module.  Provides macros for accessing
976         file size information in instances of struct stat.  Depends on the
977         fileblocks module because it calls st_blocks.
978         * lib/stat-size.h: New file, adapted from coreutils' system.h.
979         * doc/gnulib.texi: Include stat-size.texi.
980         * doc/stat-size.texi: Documentation for this module.
981         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
982         * m4/fileblocks.m4: Mention that stat-size depends on the call to
983         AC_STRUCT_ST_BLOCKS.
984
985 2011-06-09  Bruno Haible  <bruno@clisp.org>
986
987         thread: Support pthreads-win32.
988         * lib/glthread/thread.h (gl_thread_self): Define differently on
989         pthreads-win32.
990         (gl_null_thread): New declaration.
991         (gl_thread_self_pointer): New macro.
992         * lib/glthread/thread.c (gl_null_thread): New constant.
993         * tests/test-lock.c: Use gl_thread_self_pointer instead of
994         gl_thread_self.
995         * tests/test-tls.c: Likewise.
996         Suggested by Paul Eggert. Reported by Eric Blake.
997
998 2011-06-09  Bruno Haible  <bruno@clisp.org>
999
1000         thread: Fix confusion between NULL and 0.
1001         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
1002         Reported by Paul Eggert.
1003
1004 2011-06-09  Bruno Haible  <bruno@clisp.org>
1005
1006         spawn-pipe tests: Avoid test failure on HP-UX 11.
1007         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
1008         is closed.
1009
1010 2011-06-09  Bruno Haible  <bruno@clisp.org>
1011
1012         acl tests: Fix compilation error on HP-UX 11.
1013         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
1014
1015 2011-06-09  Bruno Haible  <bruno@clisp.org>
1016
1017         rmdir: Avoid test failure on HP-UX 10.20.
1018         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
1019         EEXIST.
1020
1021 2011-06-08  Eric Blake  <eblake@redhat.com>
1022
1023         perror: fix test on mingw
1024         * modules/perror-tests (Depends-on): Add dup2.
1025
1026         strerror_r-posix: fix on MacOS
1027         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
1028         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
1029         logic bug.
1030         * lib/strerror_r.c (strerror_r): Fix the bug.
1031         * lib/strerror.c (strerror): Likewise.
1032         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
1033         problem.
1034         * doc/posix-functions/strerror.texi (strerror): Likewise.
1035         * doc/posix-functions/perror.texi (perror): Likewise.
1036         * tests/test-strerror.c (main): Enhance test.
1037         * tests/test-strerror_r.c (main): Likewise.
1038
1039 2011-06-08  Bruno Haible  <bruno@clisp.org>
1040
1041         gnulib-tool: Better isolation between different gnulib-tool invocations.
1042         * gnulib-tool: New option --witness-c-macro.
1043         (witness_c_macro): New variable.
1044         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
1045         AM_CPPFLAGS define it as a C macro.
1046         (func_emit_tests_Makefile_am): Likewise.
1047         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
1048         read it from there.
1049         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
1050         m4_define, not AC_DEFUN.
1051         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
1052         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
1053         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
1054         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
1055         s|...|...|, to substitute the values of the GNULIB_* module indicator
1056         variables.
1057         * modules/dirent (Makefile.am): Likewise.
1058         * modules/fcntl-h (Makefile.am): Likewise.
1059         * modules/iconv-h (Makefile.am): Likewise.
1060         * modules/langinfo (Makefile.am): Likewise.
1061         * modules/locale (Makefile.am): Likewise.
1062         * modules/math (Makefile.am): Likewise.
1063         * modules/netdb (Makefile.am): Likewise.
1064         * modules/poll-h (Makefile.am): Likewise.
1065         * modules/pty (Makefile.am): Likewise.
1066         * modules/search (Makefile.am): Likewise.
1067         * modules/signal (Makefile.am): Likewise.
1068         * modules/spawn (Makefile.am): Likewise.
1069         * modules/stdio (Makefile.am): Likewise.
1070         * modules/stdlib (Makefile.am): Likewise.
1071         * modules/string (Makefile.am): Likewise.
1072         * modules/sys_ioctl (Makefile.am): Likewise.
1073         * modules/sys_select (Makefile.am): Likewise.
1074         * modules/sys_socket (Makefile.am): Likewise.
1075         * modules/sys_stat (Makefile.am): Likewise.
1076         * modules/sys_times (Makefile.am): Likewise.
1077         * modules/sys_utsname (Makefile.am): Likewise.
1078         * modules/sys_wait (Makefile.am): Likewise.
1079         * modules/termios (Makefile.am): Likewise.
1080         * modules/time (Makefile.am): Likewise.
1081         * modules/unistd (Makefile.am): Likewise.
1082         * modules/wchar (Makefile.am): Likewise.
1083
1084 2011-06-08  Eric Blake  <eblake@redhat.com>
1085
1086         strerror: simplify replacement
1087         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
1088         * modules/strerror (configure.ac): No prereqs needed here...
1089         * modules/strerror-override (configure.ac): ...but this needs it.
1090         (Files): Add file for needed prereq macro.
1091
1092 2011-06-08  Bruno Haible  <bruno@clisp.org>
1093
1094         strerror_r-posix: Tweaks.
1095         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
1096         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
1097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
1098         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
1099         (gl_FUNC_STRERROR_R): ... to here.
1100         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
1101
1102 2011-06-07  Eric Blake  <eblake@redhat.com>
1103
1104         perror: document fixed bugs
1105         * doc/posix-functions/perror.texi (perror): Document recent
1106         patches.
1107
1108 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         stat-time: get_stat_birthtime failure is better-defined
1111         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
1112         return a timestamp whose tv_sec and tv_nsec values are both -1.
1113         Previously, the spec said only that the tv_nsec value was negative.
1114         This upward-compatible change simplifies GNU tar a bit.
1115
1116 2011-06-07  Eric Blake  <eblake@redhat.com>
1117
1118         strerror_r-posix: work around cygwin 1.7.9
1119         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
1120         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
1121         bug without replacing strerror_r.
1122         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
1123         strerror_r is buggy, but without requiring strerror_r compilation.
1124         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
1125
1126         test-perror: relax test to ignore cygwin bug
1127         * tests/test-perror2.c (main): Relax test on requiring detection
1128         of stream errors, and use unbuffered stream.
1129         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
1130         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1131         * doc/posix-functions/fputc.texi (fputc): Likewise.
1132         * doc/posix-functions/fputs.texi (fputs): Likewise.
1133         * doc/posix-functions/fputws.texi (fputws): Likewise.
1134         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1135         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
1136         * doc/posix-functions/getopt.texi (getopt): Likewise.
1137         * doc/posix-functions/perror.texi (perror): Likewise.
1138         * doc/posix-functions/printf.texi (printf): Likewise.
1139         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
1140         * doc/posix-functions/psignal.texi (psignal): Likewise.
1141         * doc/posix-functions/putc.texi (putc): Likewise.
1142         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
1143         Likewise.
1144         * doc/posix-functions/putchar.texi (putchar): Likewise.
1145         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
1146         Likewise.
1147         * doc/posix-functions/puts.texi (puts): Likewise.
1148         * doc/posix-functions/putwc.texi (putwc): Likewise.
1149         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
1150         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1151         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1152         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1153         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1154         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1155         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
1156         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1157
1158 2011-05-22  Bruno Haible  <bruno@clisp.org>
1159
1160         strerror: Move AC_LIBOBJ invocations to module description.
1161         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
1162         gl_PREREQ_STRERROR invocations from here...
1163         * modules/strerror (configure.ac): ... to here.
1164
1165 2011-05-21  Bruno Haible  <bruno@clisp.org>
1166
1167         perror: Use common idiom.
1168         * modules/perror (configure.ac): Reorder statements.
1169
1170 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1171
1172         tests: fix usage message in 'mktempd_'
1173         * tests/init.sh (mktempd_): In the usage message, use literal
1174         'mktempd_', not '$ME' (which is even undefined), as the name of
1175         the subroutine.
1176
1177 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1178
1179         tests init: new function 'fatal_', for hard errors
1180         Before this patch, the only way offered by tests/init.sh to
1181         properly signal a hard error was the `framework_failure_'
1182         function.  But the error message issued by that function,
1183         as its name would suggest, refers to a set-up failure in the
1184         testsuite, while hard errors can obviously also be due to
1185         other reasons.  The best way to fix this inconsistency is to
1186         introduce a new function with a more general error message.
1187         * tests/init.sh (fatal_): New function.
1188
1189 2011-06-06  Eric Blake  <eblake@redhat.com>
1190
1191         canonicalize-lgpl: use common idiom
1192         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
1193         over newer POSIX -Rf.
1194         Reported by Bruno Haible.
1195
1196         canonicalize-lgpl: work around AIX realpath bug
1197         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
1198         * doc/posix-functions/realpath.texi (realpath): Document it.
1199         Reported by Bruno Haible.
1200
1201         strerror: work around FreeBSD bug
1202         * lib/strerror.c (strerror): Special case 0.
1203         Reported by Bruno Haible.
1204
1205         strerror-override: avoid bloating errno module
1206         * modules/errno (Files, configure.ac): Move replacement strings...
1207         * modules/strerror-override: ...to new module.
1208         * modules/strerror (Depends-on): Add strerror-override.
1209         * modules/strerror_r-posix (Depends-on): Likewise.
1210         * MODULES.html.sh: Document new module.
1211         Reported by Bruno Haible.
1212
1213 2011-06-06  Bruno Haible  <bruno@clisp.org>
1214
1215         spawn-pipe tests: Rename program.
1216         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
1217         * tests/test-spawn-pipe-child.c: Update comment.
1218         * tests/test-spawn-pipe.sh: Update.
1219         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
1220
1221         spawn-pipe tests: Link the child program only against libc.
1222         * tests/test-spawn-pipe-child.c: New file, extracted from
1223         tests/test-spawn-pipe.c.
1224         (main): Expect only one argument.
1225         (is_open): New function, copied from tests/test-pipe.c.
1226         * tests/test-spawn-pipe.c: Don't include <errno.h>.
1227         (child_main): Remove function.
1228         (test_pipe): Pass only one argument to the child program.
1229         (main): Remove child process code. Expect the child program's name as
1230         first argument.
1231         * tests/test-spawn-pipe.sh: Pass the child program's name as first
1232         argument.
1233         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
1234         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
1235         test-spawn-pipe-child against no libraries.
1236
1237 2011-06-06  Bruno Haible  <bruno@clisp.org>
1238
1239         careadlinkat: Avoid mismatch between ssize_t and int.
1240         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
1241         * lib/careadlinkat.c (careadlinkatcwd): Define always.
1242
1243 2011-06-06  Jim Meyering  <meyering@redhat.com>
1244
1245         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
1246         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
1247         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
1248
1249 2011-06-05  Bruno Haible  <bruno@clisp.org>
1250
1251         ansi-c++-opt: Interoperability with libtool.
1252         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
1253         set the variable to "no", not to ":".
1254         * NEWS: Mention the change.
1255
1256 2011-06-05  Bruno Haible  <bruno@clisp.org>
1257
1258         acl: Fix test failure on AIX 7.
1259         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
1260         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
1261
1262 2011-06-05  Bruno Haible  <bruno@clisp.org>
1263
1264         pipe-filter-ii: Fix test failure on AIX and IRIX.
1265         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
1266         with EAGAIN, retry with a smaller buffer size.
1267
1268 2011-06-05  Bruno Haible  <bruno@clisp.org>
1269
1270         localename: Fix link dependencies.
1271         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
1272         * modules/localename-tests (Makefile.am): Link test-localename with
1273         $(LIBTHREAD).
1274
1275 2011-06-05  Bruno Haible  <bruno@clisp.org>
1276
1277         error: Avoid gcc warning.
1278         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
1279
1280 2011-06-05  Bruno Haible  <bruno@clisp.org>
1281
1282         unsetenv: Avoid gcc warning.
1283         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
1284
1285 2011-06-05  Bruno Haible  <bruno@clisp.org>
1286
1287         setenv: Avoid gcc warning.
1288         * lib/setenv.c (setenv): Provide declaration if system lacks it.
1289
1290 2011-06-05  Bruno Haible  <bruno@clisp.org>
1291
1292         sys_select: Ensure memset is declared also on AIX 7.
1293         * lib/sys_select.in.h: Include <string.h> also on AIX.
1294         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
1295         self-contained also on AIX 7.1.
1296
1297 2011-06-04  Jim Meyering  <meyering@redhat.com>
1298
1299         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
1300         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
1301         function name, "error".
1302         (_gl_translatable_diag_func_re): New configurable variable.
1303
1304 2011-06-04  Bruno Haible  <bruno@clisp.org>
1305
1306         getopt: Avoid gcc warning.
1307         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
1308
1309 2011-06-04  Bruno Haible  <bruno@clisp.org>
1310
1311         strerror_r: Fix comments.
1312         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
1313         commit.
1314
1315 2011-06-04  Bruno Haible  <bruno@clisp.org>
1316
1317         perror: Fix compilation error.
1318         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
1319         Undefine fprintf, not sprintf.
1320         * modules/perror (Depends-on): Remove intprops, verify.
1321
1322 2011-06-04  Bruno Haible  <bruno@clisp.org>
1323
1324         setlocale: Enable replacement on Cygwin 1.5.
1325         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
1326         Cygwin 1.5.x.
1327         * doc/posix-functions/setlocale.texi: Mention that the problem with the
1328         LC_CTYPE category also exists on Cygwin 1.5.x.
1329
1330 2011-06-04  Bruno Haible  <bruno@clisp.org>
1331
1332         strerror-override: Don't disable symbol renamings.
1333         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1334         * lib/strerror-override.c: Include config.h.
1335         (strerror_override): Don't undefine.
1336
1337 2011-06-03  Bruno Haible  <bruno@clisp.org>
1338
1339         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1340         * lib/localename.h: Update copyright header.
1341         * lib/localename.c: Likewise.
1342         * lib/relocatable.h: Likewise.
1343         * lib/relocatable.c: Likewise.
1344
1345 2011-06-02  Bruno Haible  <bruno@clisp.org>
1346
1347         doc: Fix a module name.
1348         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1349
1350 2011-06-02  Bruno Haible  <bruno@clisp.org>
1351
1352         pipe2: Remove dependency on 'nonblocking' module.
1353         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1354         O_NONBLOCK is defined by gnulib.
1355         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1356         is zero.
1357         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1358         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1359         defined by gnulib.
1360         (get_nonblocking_flag): New function.
1361         (main): Test O_NONBLOCK flag only if it is nonzero.
1362         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1363
1364 2011-06-03  Jim Meyering  <meyering@redhat.com>
1365
1366         maint: three new prohibit-header-without-use rules
1367         Prohibit use of cloexec.h, posixver.h, same.h without use.
1368         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1369         (sc_prohibit_posixver_without_use): Likewise.
1370         (sc_prohibit_same_without_use): Likewise.
1371
1372 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1373
1374         allocator: 'die' routine is now given requested size
1375         * lib/allocator.h (struct allocator.die): New size arg.
1376         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1377         If the actual problem is an ssize_t limitation, not a size_t or
1378         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1379
1380 2011-06-01  Eric Blake  <eblake@redhat.com>
1381
1382         strerror: drop strerror_r dependency
1383         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1384         * lib/strerror-override.c (strerror_override): ...to new file.
1385         * lib/strerror-override.h: Add prototype.
1386         * lib/strerror-impl.h: Delete.
1387         * lib/strerror.c (strerror): New implementation.
1388         * modules/errno (Files): Add new files.
1389         (configure.ac): Compile new file as appropriate.
1390         * modules/strerror (Files): Drop unused file.
1391         (Depends-on): Drop strerror_r-posix.
1392         * MODULES.html.sh: Document strerror_r-posix.
1393         Requested by Sam Steingold.
1394
1395         perror: call strerror_r directly
1396         * modules/perror (Files): Drop strerror-impl.h.
1397         * lib/perror.c (perror): Use our own stack buffer, rather than
1398         calling a wrapper that uses static storage.
1399         * doc/posix-functions/perror.texi (perror): Document a limitation
1400         of our replacement.
1401
1402         strerror_r: fix includes for FreeBSD
1403         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1404         since we use abort on some platforms.
1405         Reported by Matthias Bolte.
1406
1407 2011-05-31  Bruno Haible  <bruno@clisp.org>
1408
1409         Fix link errors in tests: openat-die uses gettext-h.
1410         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1411         against $(LIBINTL).
1412         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1413         against $(LIBINTL).
1414         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1415         $(LIBINTL).
1416         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1417         against $(LIBINTL).
1418         * modules/linkat-tests (Makefile.am): Link test-linkat against
1419         $(LIBINTL).
1420         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1421         $(LIBINTL).
1422         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1423         against $(LIBINTL).
1424         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1425         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1426         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1427         $(LIBINTL).
1428         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1429         $(LIBINTL).
1430         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1431         $(LIBINTL).
1432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1433
1434 2011-05-31  Bruno Haible  <bruno@clisp.org>
1435
1436         Fix link errors in tests: wait-process uses gettext-h.
1437         * modules/nonblocking-pipe-tests (Makefile.am): Set
1438         test_nonblocking_pipe_main_LDADD.
1439         * modules/nonblocking-socket-tests (Makefile.am): Link
1440         test-nonblocking-socket-main against $(LIBINTL).
1441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1442
1443 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1444
1445         assert-h: work around 'verify' incompatibility
1446         * lib/verify.h: Use @...@ directives, not ifdef.
1447         * modules/assert-h (assert.h): Implement the directives.
1448         (assert.h): Substitute the symbol-prefix more consistently.
1449
1450 2011-05-29  Jim Meyering  <meyering@redhat.com>
1451
1452         trim: remove three superfluous assignments
1453         * lib/trim.c (trim2): Remove three superfluous assignments
1454         and correct brace positioning.
1455
1456 2011-05-29  Bruno Haible  <bruno@clisp.org>
1457
1458         wctype-h: Avoid namespace pollution on Solaris 2.6.
1459         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1460         identifiers.
1461         * doc/posix-headers/wctype.texi: Mention the problem.
1462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1463
1464 2011-05-28  Jim Meyering  <meyering@redhat.com>
1465
1466         parse-datetime.y: accommodate -Wstrict-overflow
1467         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1468         placate -Wstrict-overflow.
1469
1470         trim: avoid a warning from -O2 -Wstrict-overflow
1471         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1472
1473 2011-05-29  Bruno Haible  <bruno@clisp.org>
1474
1475         gnulib-tool: Fix bug in yesterday's commit.
1476         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1477         twice.
1478
1479 2011-05-29  Bruno Haible  <bruno@clisp.org>
1480
1481         Allow multiple gnulib generated include files to be combined.
1482         * gnulib-tool (func_compute_include_guard_prefix): New function.
1483         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1484         ${gl_include_guard_prefix} references.
1485         (func_import, func_create_testdir): Invoke
1486         func_compute_include_guard_prefix.
1487         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1488         * lib/ctype.in.h: Likewise.
1489         * lib/dirent.in.h: Likewise.
1490         * lib/errno.in.h: Likewise.
1491         * lib/fcntl.in.h: Likewise.
1492         * lib/float.in.h: Likewise.
1493         * lib/getopt.in.h: Likewise.
1494         * lib/iconv.in.h: Likewise.
1495         * lib/langinfo.in.h: Likewise.
1496         * lib/locale.in.h: Likewise.
1497         * lib/math.in.h: Likewise.
1498         * lib/netdb.in.h: Likewise.
1499         * lib/netinet_in.in.h: Likewise.
1500         * lib/poll.in.h: Likewise.
1501         * lib/pthread.in.h: Likewise.
1502         * lib/pty.in.h: Likewise.
1503         * lib/sched.in.h: Likewise.
1504         * lib/se-selinux.in.h: Likewise.
1505         * lib/search.in.h: Likewise.
1506         * lib/signal.in.h: Likewise.
1507         * lib/spawn.in.h: Likewise.
1508         * lib/stdarg.in.h: Likewise.
1509         * lib/stddef.in.h: Likewise.
1510         * lib/stdint.in.h: Likewise.
1511         * lib/stdio.in.h: Likewise.
1512         * lib/stdlib.in.h: Likewise.
1513         * lib/string.in.h: Likewise.
1514         * lib/strings.in.h: Likewise.
1515         * lib/sys_file.in.h: Likewise.
1516         * lib/sys_ioctl.in.h: Likewise.
1517         * lib/sys_select.in.h: Likewise.
1518         * lib/sys_socket.in.h: Likewise.
1519         * lib/sys_stat.in.h: Likewise.
1520         * lib/sys_time.in.h: Likewise.
1521         * lib/sys_times.in.h: Likewise.
1522         * lib/sys_uio.in.h: Likewise.
1523         * lib/sys_utsname.in.h: Likewise.
1524         * lib/sys_wait.in.h: Likewise.
1525         * lib/sysexits.in.h: Likewise.
1526         * lib/termios.in.h: Likewise.
1527         * lib/time.in.h: Likewise.
1528         * lib/unistd.in.h: Likewise.
1529         * lib/wchar.in.h: Likewise.
1530         * lib/wctype.in.h: Likewise.
1531         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1532         * modules/ctype (Makefile.am): Likewise.
1533         * modules/dirent (Makefile.am): Likewise.
1534         * modules/errno (Makefile.am): Likewise.
1535         * modules/fcntl-h (Makefile.am): Likewise.
1536         * modules/float (Makefile.am): Likewise.
1537         * modules/getopt-posix (Makefile.am): Likewise.
1538         * modules/iconv-h (Makefile.am): Likewise.
1539         * modules/langinfo (Makefile.am): Likewise.
1540         * modules/locale (Makefile.am): Likewise.
1541         * modules/math (Makefile.am): Likewise.
1542         * modules/netdb (Makefile.am): Likewise.
1543         * modules/netinet_in (Makefile.am): Likewise.
1544         * modules/poll-h (Makefile.am): Likewise.
1545         * modules/pthread (Makefile.am): Likewise.
1546         * modules/pty (Makefile.am): Likewise.
1547         * modules/sched (Makefile.am): Likewise.
1548         * modules/search (Makefile.am): Likewise.
1549         * modules/selinux-h (Makefile.am): Likewise.
1550         * modules/signal (Makefile.am): Likewise.
1551         * modules/spawn (Makefile.am): Likewise.
1552         * modules/stdarg (Makefile.am): Likewise.
1553         * modules/stddef (Makefile.am): Likewise.
1554         * modules/stdint (Makefile.am): Likewise.
1555         * modules/stdio (Makefile.am): Likewise.
1556         * modules/stdlib (Makefile.am): Likewise.
1557         * modules/string (Makefile.am): Likewise.
1558         * modules/strings (Makefile.am): Likewise.
1559         * modules/sys_file (Makefile.am): Likewise.
1560         * modules/sys_ioctl (Makefile.am): Likewise.
1561         * modules/sys_select (Makefile.am): Likewise.
1562         * modules/sys_socket (Makefile.am): Likewise.
1563         * modules/sys_stat (Makefile.am): Likewise.
1564         * modules/sys_time (Makefile.am): Likewise.
1565         * modules/sys_times (Makefile.am): Likewise.
1566         * modules/sys_uio (Makefile.am): Likewise.
1567         * modules/sys_utsname (Makefile.am): Likewise.
1568         * modules/sys_wait (Makefile.am): Likewise.
1569         * modules/sysexits (Makefile.am): Likewise.
1570         * modules/termios (Makefile.am): Likewise.
1571         * modules/time (Makefile.am): Likewise.
1572         * modules/unistd (Makefile.am): Likewise.
1573         * modules/wchar (Makefile.am): Likewise.
1574         * modules/wctype-h (Makefile.am): Likewise.
1575         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1576
1577 2011-05-29  Bruno Haible  <bruno@clisp.org>
1578
1579         assert-h: Allow multiple gnulib generated replacements to coexist.
1580         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1581
1582 2011-05-29  Bruno Haible  <bruno@clisp.org>
1583
1584         argp: Allow coexistence with strerror_r-posix module.
1585         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1586         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1587         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1588         not the glibc signature.
1589
1590 2011-05-28  Bruno Haible  <bruno@clisp.org>
1591
1592         gnulib-tool: Alternative structure of testdirs, similar to --import.
1593         * gnulib-tool: New option --single-configure.
1594         (func_usage): Document it.
1595         (single_configure): New variable.
1596         (func_modules_transitive_closure_separately,
1597         func_modules_transitive_closure_separately,
1598         func_determine_use_libtests, func_modules_add_dummy_separately,
1599         func_modules_to_filelist_separately): New functions, extracted from
1600         func_import.
1601         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1602         (func_import): Use the new functions.
1603         (func_create_testdir): Set final_modules. Handle $single_configure =
1604         true case.
1605
1606 2011-05-28  Bruno Haible  <bruno@clisp.org>
1607
1608         getloadavg: Remove an unreliable safety check.
1609         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1610         getloadavg.c is in place.
1611         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1612         Reported by Sam Steingold <sds@gnu.org>.
1613
1614 2011-05-28  Bruno Haible  <bruno@clisp.org>
1615
1616         doc: Cleanup yet another file produced by texinfo.tex.
1617         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1618
1619 2011-05-28  Bruno Haible  <bruno@clisp.org>
1620
1621         Finish the conditional dependencies mechanism.
1622         * gnulib-tool: New option --no-conditional-dependencies.
1623         (func_usage): Document it. Don't mark --conditional-dependencies as
1624         experimental.
1625         (cond_dependencies): The possible values can now be true, false, empty.
1626         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1627         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1628         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1629
1630 2011-05-28  Bruno Haible  <bruno@clisp.org>
1631
1632         doc: Use a recent texinfo.tex.
1633         * doc/Makefile (tex_opts): New variable.
1634         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1635
1636 2011-05-28  Jim Meyering  <meyering@redhat.com>
1637
1638         intprops.h: adjust comment to match code change
1639         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1640         only once, it *may* have side effects.  Also fix an unrelated typo.
1641         (_GL_INT_SIGNED): Likewise.
1642
1643 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1644
1645         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1646
1647 2011-05-26  Bruno Haible  <bruno@clisp.org>
1648
1649         mbsrchr: Avoid collision with system function on Interix.
1650         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1651         Reported by Markus Duft <mduft@gentoo.org>.
1652
1653 2011-05-15  James Youngman  <jay@gnu.org>
1654
1655         getopt: for ambiguous options, enumerate the possibilities.
1656         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1657         the ambiguous options when an ambiguous prefix is given. This was
1658         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1659         glibc change was
1660         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1661
1662 2011-05-25  Eric Blake  <eblake@redhat.com>
1663
1664         getcwd: work around mingw bug
1665         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1666         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1667         Reported by Matthias Bolte.
1668
1669 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         test-intprops: disable -Wtype-limits diagnostics
1672         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1673         diagnostics.  Otherwise, the integer overflow macros generate many
1674         diagnostics.  Reported by Jim Meyering in
1675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1676
1677         intprops: shorten, to pacify gcc -Woverlength-strings
1678         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1679         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1680         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1681         likely to run afoul of C compiler limits for string constant lengths.
1682         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1683
1684 2011-05-24  Eric Blake  <eblake@redhat.com>
1685
1686         docs: document recently fixed glibc printf bug
1687         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1688         * doc/posix-functions/printf.texi (printf): Likewise.
1689         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1690         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1691
1692         closein-tests: convert to init.sh
1693         * modules/closein-tests (Files): Add init.sh
1694         * tests/test-closein.sh Use it.
1695
1696         yesno-tests: convert to init.sh
1697         * modules/yesno-tests (Files): Add init.sh.
1698         * tests/test-yesno.sh: Use it.
1699
1700         atexit-tests: ensure reliable exit status
1701         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1702         Reported by Bruno Haible.
1703
1704 2011-05-24  Bruno Haible  <bruno@clisp.org>
1705
1706         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1708         gl_PREREQ_STRERROR_R invocations from here...
1709         * modules/strerror_r-posix (configure.ac): ... to here.
1710
1711 2011-05-24  Eric Blake  <eblake@redhat.com>
1712
1713         strerror_r: fix missing header
1714         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1715
1716         strerror_r: fix AIX test failures
1717         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1718         ERANGE failure.
1719
1720         strerror_r: fix Solaris test failures
1721         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1722         failures.
1723         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1724
1725         strerror_r: enforce POSIX recommendations
1726         * lib/strerror_r.c (safe_copy): New helper method.
1727         (strerror_r): Guarantee a non-empty string.
1728         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1729         recent POSIX rulings and to match our strerror guarantees.
1730         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1731
1732 2011-05-24  Jim Meyering  <meyering@redhat.com>
1733
1734         test-perror2.c: avoid warning about unused variable
1735         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1736
1737 2011-05-24  Eric Blake  <eblake@redhat.com>
1738
1739         perror: avoid spurious test failure on HP-UX
1740         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1741
1742         tests: fix logic bug in init.sh
1743         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1744         shell.
1745
1746 2011-05-24  Jim Meyering  <meyering@redhat.com>
1747
1748         utimensat: do not reference an out-of-scope buffer
1749         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1750         declared in an inner scope, yet "times" would be dereferenced outside
1751         the scope in which "ts" was valid.
1752         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1753         of ts[2] "out/up", so that the use of aliased "times" (via
1754         "times = ts;") does not end up referencing an out-of-scope "ts"
1755
1756         opendir-safer.c: don't clobber errno; don't close negative FD
1757         * lib/opendir-safer.c (opendir_safer):
1758         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1759         file descriptor, and more importantly, don't clobber the
1760         offending errno value with EINVAL.  Before, upon failure
1761         of dup_safer, we would pass the negative file descriptor to
1762         fdopendir, which would clobber errno.
1763
1764 2011-05-23  Bruno Haible  <bruno@clisp.org>
1765
1766         idcache: Fix module description.
1767         * modules/idcache (Include): Set to "idcache.h".
1768
1769 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1770
1771         gnulib-tool: fix portability problem with MacOS sed
1772         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1773         before the "}".  Problem reported by Leo in
1774         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1775         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1776         sed_extract_condition1, sed_extract_condition2.
1777
1778 2011-05-23  Bruno Haible  <bruno@clisp.org>
1779
1780         hash: Simplify autoconf macro.
1781         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1782
1783 2011-05-23  Bruno Haible  <bruno@clisp.org>
1784
1785         getugroups: Fix module description.
1786         * modules/getugroups (Include): Set to "getugroups.h".
1787
1788 2011-05-23  Bruno Haible  <bruno@clisp.org>
1789
1790         linkat: Simplify autoconf macro.
1791         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1792
1793 2011-05-23  Bruno Haible  <bruno@clisp.org>
1794             Eric Blake  <eblake@redhat.com>
1795
1796         linkat, renameat: Update dependencies.
1797         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1798         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1799         symlinkat.
1800
1801 2011-05-23  Jim Meyering  <meyering@redhat.com>
1802
1803         maint.mk: more tight_scope improvements
1804         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1805         (_gl_TS_headers): Define only in if-0'd block.
1806         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1807         sometimes we must *not* use it.  Adjust uses accordingly.
1808         (sc_tight_scope): Use much simpler grep-based test to determine
1809         whether we skip this rule.
1810
1811         maint.mk: generalize/improve the tight-scope rule
1812         * top/maint.mk: Emit a warning when the test is skipped.
1813         (_gl_TS_dir): Add $(srcdir)/ prefix.
1814         (_gl_TS_function_match): Simplify, rather than trying
1815         to enumerate common types.  Otherwise, it would fail to match an
1816         "extern unsigned char const *" declaration in idutils.
1817         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1818         a way to support use of that type of macro.
1819         (_gl_TS_var_match): Simplify regexp.
1820         (_gl_TS_obj_files): New configurable variable.
1821         (_gl_TS_headers): Likewise.
1822
1823 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1824
1825         verify: fix bug when gnulib <assert.h> is also included
1826         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1827         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1828         Perhaps there's a better way, but this fixes the immediate problem.
1829         Problem reported by Bruno Haible in
1830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1831
1832 2011-05-22  Bruno Haible  <bruno@clisp.org>
1833
1834         xgetcwd: Simplify autoconf macro.
1835         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1836
1837 2011-05-22  Bruno Haible  <bruno@clisp.org>
1838
1839         New module 'mktime-internal'.
1840         * modules/mktime-internal: New file.
1841         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1842         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1843         mktime_internal as a C macro if libc has __mktime_internal.
1844         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1845         conditions.
1846         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1847
1848 2011-05-22  Bruno Haible  <bruno@clisp.org>
1849
1850         timegm: Correct mktime replacement statements.
1851         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1852         defining mktime as a C macro. This completes a 2009-07-28 commit.
1853
1854 2011-05-22  Bruno Haible  <bruno@clisp.org>
1855
1856         timegm: Simplify autoconf macro.
1857         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1858
1859 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1860
1861         clock-time: change to LGPLv2+.
1862         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1863         BSD-like but we have no mark for that; this is good enough for now.
1864
1865 2011-05-21  Bruno Haible  <bruno@clisp.org>
1866
1867         strerror_r: Fix comments.
1868         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1869
1870 2011-05-21  Bruno Haible  <bruno@clisp.org>
1871
1872         relocatable-prog-wrapper: Fix possible link error.
1873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1874         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1875         (gl_FUNC_SETENV): ... to here.
1876         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1877         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1878
1879 2011-05-21  Bruno Haible  <bruno@clisp.org>
1880
1881         relocatable-prog-wrapper: Assume strerror() exists.
1882         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1883         m4/strerror.m4.
1884         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1885         * lib/relocwrapper.c: Remove mention of strerror module.
1886         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1888         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1889         C macro.
1890
1891 2011-05-21  Bruno Haible  <bruno@clisp.org>
1892
1893         select: Simplify replacement idiom.
1894         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1895         Win32 platforms.
1896         * lib/sys_select.in.h (select): Simplify accordingly.
1897         * modules/select (Depends-on): Likewise.
1898
1899 2011-05-21  Bruno Haible  <bruno@clisp.org>
1900
1901         mkdir-p: Simplify autoconf macro.
1902         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1903         gl_FUNC_LCHOWN.
1904
1905 2011-05-21  Eric Blake  <eblake@redhat.com>
1906
1907         strerror_r: avoid clobbering strerror on cygwin
1908         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1909         fall back instead to sys_errlist.
1910         * modules/strerror (configure.ac): Add witness.
1911         * tests/test-strerror_r.c (main): Enhance test.
1912         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1913         * tests/test-perror2.c (main): Free memory before exit.
1914
1915 2011-05-21  Bruno Haible  <bruno@clisp.org>
1916
1917         mkdtemp: Use gnulib naming conventions.
1918         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1919         * modules/mkdtemp (configure.ac): Update.
1920
1921 2011-05-20  Eric Blake  <eblake@redhat.com>
1922
1923         strerror_r: avoid corrupting errno on Solaris
1924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1925         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1926
1927         strerror_r: avoid compiler warning
1928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1929
1930         strerror_r: simplify AIX code
1931         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1932
1933         test-perror: avoid spurious failure on FreeBSD
1934         * modules/perror-tests (Depends-on): Add strerror, now that
1935         strerror_r no longer pulls it in.
1936
1937 2011-05-20  Bruno Haible  <bruno@clisp.org>
1938
1939         strerror_r-posix: Remove unused dependencies.
1940         * modules/strerror_r-posix (Depends-on): Remove strerror.
1941         Reported by Eric Blake.
1942
1943 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1944
1945         intprops: remove assumption about A|B representation
1946         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1947         is a valid integer if both A and B are.  Although this is true for
1948         all known practical hosts, the C standard doesn't guarantee it,
1949         and the code need not assume it.  Also, this change may work around
1950         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1952
1953 2011-05-20  Eric Blake  <eblake@redhat.com>
1954
1955         perror: work around FreeBSD bug
1956         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1957         is broken.  Move AC_LIBOBJ...
1958         * modules/perror (configure.ac): Here.
1959         * doc/posix-functions/perror.texi (perror): Document this.
1960         * tests/test-perror2.c (main): Enhance test.
1961
1962         test-perror: check for strerror interactions
1963         * tests/macros.h (STREQ): Add macro.
1964         * modules/perror-tests (Files): Add second test.
1965         * tests/test-perror2.c (main): New file.
1966         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1967
1968         test-perror: rewrite to use init script
1969         * modules/perror-tests (Files): Add init.sh.
1970         * tests/test-perror.sh: Use temporary directory.
1971
1972 2011-05-20  Jim Meyering  <meyering@redhat.com>
1973
1974         maint: replace misused "a" with "an"
1975         * doc/intprops.texi: "a integer"
1976         * doc/regex.texi: "a explanation"
1977         * lib/alignof.h: "a object"
1978         * lib/argmatch.h: "a explanation"
1979         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1980         * lib/stdint.in.h: "a integer"
1981         * lib/userspec.c: "a owner"
1982         * doc/gnulib.texi: Fix "a idea", and reword.
1983
1984 2011-05-19  Jim Meyering  <meyering@redhat.com>
1985
1986         maint: correct misuse of "a" and "an"
1987         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1988         * lib/argp-help.c: "an docum...": s/an/a/
1989         * lib/argp-parse.c: "An vector": s/An/A/
1990         * lib/execute.c: "an native": s/an/a/
1991         * lib/spawn-pipe.c: Likewise.
1992         * lib/gc.h: "an Gc_rc": s/an/a/
1993         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1994         * lib/fts.c: "an stat.st_dev": s/an/a/
1995
1996 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         intprops-tests: work around HP-UX 11.23 cc bug with constants
1999         * tests/test-intprops.c (VERIFY): New macro.
2000         (main): Use it, instead of verify, to work around the compiler bug; see
2001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2002
2003         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
2004         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
2005         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
2006         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
2007         (_GL_REMAINDER_OVERFLOW): Use it.
2008
2009         intprops-tests: revert unsigned part of previous change
2010         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
2011         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
2012         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
2013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
2014
2015 2011-05-19  Bruno Haible  <bruno@clisp.org>
2016
2017         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
2018         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
2019         strerror_r() returned without filling the buffer.
2020         Reported by Eric Blake.
2021
2022 2011-05-19  Eric Blake  <eblake@redhat.com>
2023
2024         strerror_r: guarantee unchanged errno
2025         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
2026         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
2027         failure.
2028         * tests/test-strerror_r.c (main): Enhance test.
2029
2030 2011-05-19  Bruno Haible  <bruno@clisp.org>
2031
2032         strerror_r: Reorder #if blocks.
2033         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
2034         for consistency with the previous commit.
2035
2036 2011-05-19  Bruno Haible  <bruno@clisp.org>
2037
2038         perror: Avoid clobbering the strerror buffer when possible.
2039         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
2040         * lib/strerror.c: Include it.
2041         * modules/strerror (Files): Add lib/strerror-impl.h.
2042         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
2043         (my_strerror): New function, defined through lib/strerror-impl.h.
2044         (perror): Use it instead of strerror.
2045         * modules/perror (Files): Add lib/strerror-impl.h.
2046         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
2047
2048 2011-05-19  Eric Blake  <eblake@redhat.com>
2049
2050         strerror_r: fix on newer cygwin
2051         * lib/strerror_r.c (strerror_r): Cygwin now has
2052         __xpg_strerror_r, use it.
2053
2054 2011-05-19  Bruno Haible  <bruno@clisp.org>
2055
2056         strerror_r: Avoid clobbering the strerror buffer when possible.
2057         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
2058         (sys_nerr, sys_errlist): New declarations.
2059         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
2060         HP-UX, native Win32, IRIX, and 32-bit Solaris.
2061         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
2062
2063 2011-05-19  Bruno Haible  <bruno@clisp.org>
2064
2065         strerror_r: Fix test failure on mingw.
2066         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
2067         EXTEND_STRERROR_R.
2068         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
2069         macros from errno.in.h instead.
2070
2071 2011-05-19  Eric Blake  <eblake@redhat.com>
2072
2073         strerror: relax test for Solaris
2074         * tests/test-strerror.c (main): Permit Solaris behavior.
2075         * tests/test-strerror_r.c (main): Likewise.
2076
2077         strerror: enforce POSIX ruling on strerror(0)
2078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
2079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
2080         * lib/strerror_r.c (rpl_strerror_r): Work around it.
2081         * doc/posix-functions/strerror.texi (strerror): Document it.
2082         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
2083         * tests/test-strerror.c (main): Strengthen test.
2084         * tests/test-strerror_r.c (main): Likewise.
2085
2086 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2087
2088         intprop-tests: port to older and more-pedantic compilers
2089         * modules/intprops-tests (Files): Add tests/macros.h.
2090         * tests/test-intprops.c: Include macros.h.
2091         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
2092         it's no longer documented to expand to an integer constant expression.
2093         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
2094         argument is floating point, as it's no longer documented to expand
2095         to an integer constant expression in that case.
2096         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
2097         compiler bugs reported by Bruno Haible.  See
2098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2099         (U0, U1): New constants, to work around the same bugs.  Also,
2100         in tests, use e.g., "(unsigned int) 39" rather than "39u".
2101
2102         intprops: work around C compiler bugs
2103         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
2104         bug in Sun C 5.11 2010/08/13 and other compilers; see
2105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
2106
2107         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
2108         * doc/intprops.texi (Integer Type Determination): Fix
2109         documentation for TYPE_IS_INTEGER: it returns an constant
2110         expression, not an integer constant expression.  Fix doc for
2111         TYPE_SIGNED: it returns an integer constant expression only if its
2112         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
2113         hardly worth documented that way....)
2114
2115 2011-05-18  Bruno Haible  <bruno@clisp.org>
2116
2117         strerror_r: Avoid clobbering the strerror buffer when possible.
2118         * lib/strerror_r.c (strerror_r): Merge the three implementations.
2119         Handle gnulib defined errno values here. When strerror() returns NULL
2120         or an empty string, return EINVAL.
2121         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
2122         gnulib defined errno values here.
2123         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
2124
2125 2011-05-18  Eric Blake  <eblake@redhat.com>
2126
2127         fnmatch: avoid compiler warning
2128         * lib/fnmatch_loop.c (FCT): Use correct type.
2129         Reported by Matthias Bolte.
2130
2131 2011-05-13  Jim Meyering  <meyering@redhat.com>
2132
2133         maint.mk: three new prohibit_<HDR>_without_use rules
2134         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
2135         (sc_prohibit_stdio-safer_without_use): Likewise.
2136         (sc_prohibit_xfreopen_without_use): Likewise.
2137
2138 2011-05-17  Jim Meyering  <meyering@redhat.com>
2139
2140         announce-gen: fail if the NEWS delta is empty
2141         If there's nothing noteworthy in NEWS, then either you forgot
2142         or you shouldn't be releasing.
2143         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
2144
2145 2011-05-17  Pádraig Brady <P@draigBrady.com>
2146
2147         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
2148         reserved symbols starting with double underscore from the check.
2149
2150 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
2151
2152         intprops: add doc
2153         * doc/intprops.texi: New file, documenting intprops.
2154         * doc/gnulib.texi (Particular Modules): Include it.
2155
2156         verify: add doc to gnulib manual and fix example
2157         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
2158         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
2159         (Compile-time Assertions): Fix example so it can't overflow.
2160
2161 2011-05-17  Jim Meyering  <meyering@redhat.com>
2162
2163         warnings.m4: don't usurp save_CPPFLAGS variable name
2164         * m4/warnings.m4: Prefix local temporary variable name with gl_.
2165
2166         doc: fix typo
2167         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
2168
2169 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2170             Bruno Haible  <bruno@clisp.org>
2171
2172         doc: Tweak recent change.
2173         * README (Portability guidelines): Tweak new text.
2174         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
2175         Interix 6.1.
2176
2177 2011-05-16  Eric Blake  <eblake@redhat.com>
2178
2179         inttypes: avoid autoconf warning
2180         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
2181         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2182
2183 2011-05-16  Sam Steingold <sds@gnu.org>
2184         and Eric Blake  <eblake@redhat.com>
2185
2186         vc-list-files: accept multiple directory operands
2187         * build-aux/vc-list-files: Iterate over all remaining operands.
2188
2189 2011-05-16  Bruno Haible  <bruno@clisp.org>
2190
2191         Fix confusion regarding deprecated modules.
2192         * modules/calloc (Status, Notice): Mark module as deprecated, not
2193         obsolete.
2194         * modules/fnmatch-posix (Status, Notice): Likewise.
2195         * modules/getdate (Status, Notice): Likewise.
2196         * modules/getopt (Status, Notice): Likewise.
2197         * modules/malloc (Status, Notice): Likewise.
2198         * modules/pipe (Status, Notice): Likewise.
2199         * modules/realloc (Status, Notice): Likewise.
2200         * modules/rename-dest-slash (Status, Notice): Likewise.
2201         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
2202         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
2203         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
2204         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
2205         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
2206
2207 2011-05-16  Bruno Haible  <bruno@clisp.org>
2208
2209         doc: List the target platforms.
2210         * doc/gnulib-intro.texi (Target Platforms): New section.
2211         * doc/gnulib.texi (Introduction): Update menu.
2212         * README (Portability guidelines): Refer to the new section. Update
2213         statement about oldest supported environment. Remove rationale why
2214         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
2215         unportable C89 function.
2216         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
2217         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
2218
2219 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2220
2221         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
2222
2223 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
2224
2225         intprops-tests: new module
2226         * modules/intprops-tests, tests/test-intprops.c: New files.
2227
2228         intprops: add safe, portable integer overflow checking
2229         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
2230         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
2231         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
2232         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
2233         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
2234         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
2235         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
2236         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
2237         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
2238         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
2239         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
2240
2241 2011-05-12  James Youngman  <jay@gnu.org>
2242
2243         Add a test for glibc's Bugzilla bug #12378.
2244         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
2245         doesn't allow the literal matching of a lone "[" (which is
2246         required by POSIX).
2247         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
2248
2249 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2250
2251         Sync glibc change fixing Bugzilla bug #12378.
2252         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
2253         beginning and fall back to matching as normal character if the
2254         string ends before the matching ']' is found.  This is what POSIX
2255         requires.
2256
2257 2011-05-13  Eric Blake  <eblake@redhat.com>
2258
2259         getcwd-lgpl: relax test for FreeBSD
2260         * doc/posix-functions/getcwd.texi (getcwd): Document portability
2261         issue.
2262         * tests/test-getcwd-lgpl.c (main): Relax test.
2263         Reported by Matthias Bolte.
2264
2265 2011-05-11  Eric Blake  <eblake@redhat.com>
2266
2267         test-fflush: silence compiler warning
2268         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
2269
2270 2011-05-11  Bruno Haible  <bruno@clisp.org>
2271
2272         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
2273         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
2274         * modules/canonicalize (Depends-on): Add 'nocrash'.
2275         * modules/canonicalize-lgpl (Depends-on): Likewise.
2276         * doc/posix-functions/realpath.texi: Update platforms list.
2277         Reported by Ryan Schmidt <ryandesign@macports.org>.
2278
2279 2011-05-11  Bruno Haible  <bruno@clisp.org>
2280
2281         group-member: Declare function in <unistd.h>.
2282         * lib/unistd.in.h (group_member): New declaration.
2283         * lib/group-member.h: Remove file.
2284         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
2285         * tests/test-unistd-c++.cc: Check signature of group_member.
2286         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
2287         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
2288         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
2289         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
2290         HAVE_GROUP_MEMBER.
2291         * modules/group-member (Files): Remove lib/group-member.h.
2292         (Depends-on): Add unistd. Specify conditions.
2293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2294         (Include): Change to <unistd.h>.
2295         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
2296         HAVE_GROUP_MEMBER.
2297         * NEWS: Mention the change.
2298         * lib/euidaccess.c: Don't include group-member.h.
2299
2300 2011-05-11  Bruno Haible  <bruno@clisp.org>
2301
2302         group-member: Document module.
2303         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
2304         module.
2305
2306 2011-05-11  Bruno Haible  <bruno@clisp.org>
2307
2308         fclose: Fix mistake earlier today.
2309         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
2310
2311 2011-05-11  Eric Blake  <eblake@redhat.com>
2312
2313         fclose: preserve fflush errors
2314         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
2315         Reported by Jim Meyering.
2316
2317         bootstrap: support a prereq of 'rpcgen -' on RHEL5
2318         * build-aux/bootstrap (check_versions): When no specific version
2319         is required, merely check that the app produces an exit status
2320         that indicates its existence.
2321
2322         maint.mk: drop redundant check
2323         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
2324         the same but better.
2325
2326 2011-05-11  Bruno Haible  <bruno@clisp.org>
2327
2328         fclose: Fix possible link error.
2329         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
2330         unregister_shadow_fd. Improve comments.
2331         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2332         Eric Blake.
2333
2334 2011-05-11  Jim Meyering  <meyering@redhat.com>
2335
2336         maint.mk: improve "can not" detection and generalize rule name
2337         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2338         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2339         Use the same technique as in sc_prohibit_doubled_word, so that
2340         we recognize "can not" also when the words are separated by a newline.
2341         Suggested by Eric Blake.
2342         (perl_filename_lineno_text_): Define.  Factored out of...
2343         (prohibit_doubled_word_): ...here.  Use the new definition.
2344         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2345         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2346         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2347
2348 2011-05-10  Eric Blake  <eblake@redhat.com>
2349
2350         fclose: avoid double close race when possible
2351         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2352         all but WINDOWS_SOCKETS.
2353
2354 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2355
2356         openat: correct new comment
2357         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2358
2359 2011-05-10  Jim Meyering  <meyering@redhat.com>
2360
2361         openat: add comments
2362         * lib/openat-proc.c (openat_proc_name): Add comments,
2363         mostly from Eric Blake.
2364
2365 2011-05-09  Eric Blake  <eblake@redhat.com>
2366
2367         openat: reduce syscalls in first probe of /proc
2368         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2369         be a directory.  Simplify the probe for .. bugs.
2370         * modules/openat (Depends-on): Drop same-inode.
2371         Reported by Bastien ROUCARIES.
2372
2373 2011-05-09  Jim Meyering  <meyering@redhat.com>
2374
2375         maint.mk: change semantics/name of tight_scope variables
2376         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2377         Rename variables to align with semantics that make them more useful.
2378
2379         maint.mk: tweak new rule's name not to impinge
2380         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2381         (sc_tight_scope): Use new rule name rather than $@-0.
2382
2383         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2384         * top/maint.mk (sc_tight_scope): New rule.
2385         (sc_tight_scope-0): New rule, ifdef'd out.
2386         (_gl_TS_dir): Default.
2387         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2388         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2389
2390 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2391
2392         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2393         Haible <bruno@clisp.org>.
2394
2395 2011-05-08  Bruno Haible  <bruno@clisp.org>
2396
2397         Comments.
2398         * m4/isnanf.m4: Add comment.
2399         * m4/isnanl.m4: Likewise.
2400
2401 2011-05-08  Bruno Haible  <bruno@clisp.org>
2402
2403         glob: Remove obsolete macro.
2404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2405
2406 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         intprops: Sun C 5.11 supports __typeof__
2409         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2410         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2411         which is new.
2412         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2413
2414         intprops: switch to usual gnulib indenting and naming
2415         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2416         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2417
2418         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2419
2420 2011-05-08  Jim Meyering  <meyering@redhat.com>
2421
2422         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2423         * top/maint.mk (release-prep): Use make's --no-print-directory
2424         option when generating the announcement.  This eliminates the
2425         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2426         generated announcement template.
2427
2428 2011-05-08  Bruno Haible  <bruno@clisp.org>
2429
2430         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2431         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2432         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2433
2434 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2435
2436         ignore-value, verify: Omit include files from lib_SOURCES.
2437         * modules/ignore-value, modules/verify (Makefile.am):
2438         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2439         that leads Automake to duplicate use of am__objects_... variables
2440         in Makefile.in.  See
2441         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2442
2443 2011-05-07  Bruno Haible  <bruno@clisp.org>
2444
2445         fclose: Simplify autoconf macro.
2446         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2447         defined.
2448
2449 2011-05-07  Bruno Haible  <bruno@clisp.org>
2450
2451         canonicalize-lgpl: Fix autoconf macro ordering bug.
2452         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2453         gl_STDLIB_H_DEFAULTS.
2454
2455 2011-05-06  Eric Blake  <eblake@redhat.com>
2456
2457         maintainer-makefile: make sc_po_check easier to tune
2458         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2459         to probe for strings, such as an alternate location for gnulib.
2460
2461         fclose: guarantee behavior on seekable stdin
2462         * modules/fclose (Depends-on): Add fflush.
2463         * doc/posix-functions/fclose.texi (fclose): Document this.
2464         * tests/test-fclose.c (main): Make test for this unconditional.
2465
2466 2011-05-06  Bruno Haible  <bruno@clisp.org>
2467
2468         fflush, fpurge: Relicense under LGPLv2+.
2469         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2470         * modules/fpurge (License): Likewise.
2471         With permission from Eric Blake and Jim Meyering.
2472         Suggested by Eric Blake.
2473
2474 2011-05-06  Karl Berry  <karl@gnu.org>
2475
2476         * MODULES.html.sh (func_all_modules): remove exit.
2477
2478 2011-05-06  Jim Meyering  <meyering@redhat.com>
2479
2480         maint.mk: use info-gnu@ as the default only for a stable release
2481         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2482         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2483         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2485
2486 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2487
2488         assert-h: new module, which supports C1X-style static_assert
2489         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2490         * lib/verify.h: Revamp so that this can be copied into assert.h,
2491         while retaining the ability to use it standalone as before.
2492         Rename private identifiers so as not to encroach on the
2493         standard C namespace, since this is now used by assert.h.
2494         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2495         the old verify_true.
2496         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2497         the old verify_true.  Use _GL_VERIFY_TYPE.
2498         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2499         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2500         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2501         defined when this file is copied into the replacement assert.h.
2502         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2503         and _Static_assert is not built in.
2504         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2505         defined, and use the new macros mentioned above.
2506         * doc/posix-headers/assert.texi: Document this.
2507
2508 2011-05-05  Bruno Haible  <bruno@clisp.org>
2509
2510         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2511         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2512         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2513         gl_REPLACE_FCLOSE here.
2514         * modules/fflush (Depends-on): Remove fclose.
2515         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2516         combination with module 'fclose'.
2517
2518 2011-05-05  Bruno Haible  <bruno@clisp.org>
2519
2520         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2521         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2522         gl_FUNC_FFLUSH.
2523         (gl_FUNC_FFLUSH): Use it.
2524         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2525         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2526         gl_REPLACE_FSEEKO here.
2527
2528 2011-05-05  Bruno Haible  <bruno@clisp.org>
2529
2530         tzset: Relicense under LGPL.
2531         * modules/tzset (License): Change to LGPL.
2532         No agreement needed; it's a no-op.
2533
2534         strtoimax, strtoumax: Relicense under LGPL.
2535         * modules/strtoimax (License): Change to LGPL.
2536         * modules/strtoumax (License): Likewise.
2537         With permission from Jim Meyering, Paul Eggert:
2538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2540
2541         getgroups: Relicense under LGPL.
2542         * modules/getgroups (License): Change to LGPL.
2543         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2547
2548         nanosleep: Relicense under LGPL.
2549         * modules/nanosleep (License): Change to LGPL.
2550         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2551         Haible:
2552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2556
2557         futimens: Relicense under LGPL.
2558         * modules/futimens (License): Change to LGPL.
2559         With permission from Eric Blake:
2560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2561
2562         fflush: Relicense under LGPL.
2563         * modules/fflush (License): Change to LGPL.
2564         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2568
2569         tmpfile: Relicense under LGPL.
2570         * modules/tmpfile (License): Change to LGPL.
2571         With permission from Ben Pfaff:
2572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2573
2574         isfinite: Relicense under LGPL.
2575         * modules/isfinite (License): Change to LGPL.
2576         With permission from Ben Pfaff, Bruno Haible:
2577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2579
2580         acosl..tanl: Relicense under LGPL.
2581         * modules/acosl (License): Change to LGPL.
2582         * modules/asinl (License): Likewise.
2583         * modules/atanl (License): Likewise.
2584         * modules/cosl (License): Likewise.
2585         * modules/expl (License): Likewise.
2586         * modules/logl (License): Likewise.
2587         * modules/sinl (License): Likewise.
2588         * modules/sqrtl (License): Likewise.
2589         * modules/tanl (License): Likewise.
2590         Source code originally from glibc and Paolo Bonzini. Agreements:
2591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2593
2594 2011-05-05  Bruno Haible  <bruno@clisp.org>
2595
2596         signal: Define sighandler_t.
2597         * lib/signal.in.h (sighandler_t): New type.
2598         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2599         whether sighandler_t is defined.
2600         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2601         * modules/signal (Depends-on): Add extensions.
2602         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2603         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2604         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2605
2606 2011-05-05  Eric Blake  <eblake@redhat.com>
2607
2608         maint: remove useless REPLACE_*_H macros
2609         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2611         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2612         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2613         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2614         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2615         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2616         * m4/btowc.m4: Update callers.
2617         * m4/dirfd.m4: Likewise.
2618         * m4/duplocale.m4: Likewise.
2619         * m4/fchdir.m4: Likewise.
2620         * m4/fdopendir.m4: Likewise.
2621         * m4/inet_ntop.m4: Likewise.
2622         * m4/inet_pton.m4: Likewise.
2623         * m4/ioctl.m4: Likewise.
2624         * m4/mbrlen.m4: Likewise.
2625         * m4/mbrtowc.m4: Likewise.
2626         * m4/mbsinit.m4: Likewise.
2627         * m4/mbsnrtowcs.m4: Likewise.
2628         * m4/mbsrtowcs.m4: Likewise.
2629         * m4/poll.m4: Likewise.
2630         * m4/setlocale.m4: Likewise.
2631         * m4/wcrtomb.m4: Likewise.
2632         * m4/wcsnrtombs.m4: Likewise.
2633         * m4/wcsrtombs.m4: Likewise.
2634         * m4/wctob.m4: Likewise.
2635         * m4/wcwidth.m4: Likewise.
2636         * modules/posix_spawn: Likewise.
2637         * modules/posix_spawn_file_actions_addclose: Likewise.
2638         * modules/posix_spawn_file_actions_adddup2: Likewise.
2639         * modules/posix_spawn_file_actions_addopen: Likewise.
2640         * modules/posix_spawn_file_actions_destroy: Likewise.
2641         * modules/posix_spawn_file_actions_init: Likewise.
2642         * modules/posix_spawnattr_destroy: Likewise.
2643         * modules/posix_spawnattr_getflags: Likewise.
2644         * modules/posix_spawnattr_getpgroup: Likewise.
2645         * modules/posix_spawnattr_getschedparam: Likewise.
2646         * modules/posix_spawnattr_getschedpolicy: Likewise.
2647         * modules/posix_spawnattr_getsigdefault: Likewise.
2648         * modules/posix_spawnattr_getsigmask: Likewise.
2649         * modules/posix_spawnattr_init: Likewise.
2650         * modules/posix_spawnattr_setflags: Likewise.
2651         * modules/posix_spawnattr_setpgroup: Likewise.
2652         * modules/posix_spawnattr_setschedparam: Likewise.
2653         * modules/posix_spawnattr_setschedpolicy: Likewise.
2654         * modules/posix_spawnattr_setsigdefault: Likewise.
2655         * modules/posix_spawnattr_setsigmask: Likewise.
2656         * modules/posix_spawnp: Likewise.
2657
2658 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2659
2660         Add option to do-release-commit-and-tag to specify branch.
2661         * build-aux/do-release-commit-and-tag: Add --branch.
2662
2663 2011-05-03  Bruno Haible  <bruno@clisp.org>
2664
2665         Avoid unnecessary compilation units, through conditional dependencies.
2666         * modules/accept (Depends-on): Add conditions to the dependencies.
2667         * modules/acosl (Depends-on): Likewise.
2668         * modules/argz (Depends-on): Likewise.
2669         * modules/asinl (Depends-on): Likewise.
2670         * modules/atanl (Depends-on): Likewise.
2671         * modules/atoll (Depends-on): Likewise.
2672         * modules/bind (Depends-on): Likewise.
2673         * modules/btowc (Depends-on): Likewise.
2674         * modules/canonicalize-lgpl (Depends-on): Likewise.
2675         * modules/ceil (Depends-on): Likewise.
2676         * modules/ceilf (Depends-on): Likewise.
2677         * modules/ceill (Depends-on): Likewise.
2678         * modules/chdir-long (Depends-on): Likewise.
2679         * modules/chown (Depends-on): Likewise.
2680         * modules/close (Depends-on): Likewise.
2681         * modules/connect (Depends-on): Likewise.
2682         * modules/cosl (Depends-on): Likewise.
2683         * modules/dirfd (Depends-on): Likewise.
2684         * modules/dprintf (Depends-on): Likewise.
2685         * modules/dprintf-posix (Depends-on): Likewise.
2686         * modules/error (Depends-on): Likewise.
2687         * modules/euidaccess (Depends-on): Likewise.
2688         * modules/expl (Depends-on): Likewise.
2689         * modules/faccessat (Depends-on): Likewise.
2690         * modules/fchdir (Depends-on): Likewise.
2691         * modules/fclose (Depends-on): Likewise.
2692         * modules/fcntl (Depends-on): Likewise.
2693         * modules/fdopendir (Depends-on): Likewise.
2694         * modules/fflush (Depends-on): Likewise.
2695         * modules/floor (Depends-on): Likewise.
2696         * modules/floorf (Depends-on): Likewise.
2697         * modules/floorl (Depends-on): Likewise.
2698         * modules/fnmatch (Depends-on): Likewise.
2699         * modules/fopen (Depends-on): Likewise.
2700         * modules/fprintf-posix (Depends-on): Likewise.
2701         * modules/frexp (Depends-on): Likewise.
2702         * modules/frexp-nolibm (Depends-on): Likewise.
2703         * modules/frexpl (Depends-on): Likewise.
2704         * modules/frexpl-nolibm (Depends-on): Likewise.
2705         * modules/fseek (Depends-on): Likewise.
2706         * modules/fsusage (Depends-on): Likewise.
2707         * modules/ftell (Depends-on): Likewise.
2708         * modules/ftello (Depends-on): Likewise.
2709         * modules/futimens (Depends-on): Likewise.
2710         * modules/getcwd (Depends-on): Likewise.
2711         * modules/getcwd-lgpl (Depends-on): Likewise.
2712         * modules/getdelim (Depends-on): Likewise.
2713         * modules/getdomainname (Depends-on): Likewise.
2714         * modules/getgroups (Depends-on): Likewise.
2715         * modules/gethostname (Depends-on): Likewise.
2716         * modules/getline (Depends-on): Likewise.
2717         * modules/getlogin_r (Depends-on): Likewise.
2718         * modules/getopt-posix (Depends-on): Likewise.
2719         * modules/getpeername (Depends-on): Likewise.
2720         * modules/getsockname (Depends-on): Likewise.
2721         * modules/getsockopt (Depends-on): Likewise.
2722         * modules/getsubopt (Depends-on): Likewise.
2723         * modules/getusershell (Depends-on): Likewise.
2724         * modules/glob (Depends-on): Likewise.
2725         * modules/grantpt (Depends-on): Likewise.
2726         * modules/iconv_open (Depends-on): Likewise.
2727         * modules/iconv_open-utf (Depends-on): Likewise.
2728         * modules/inet_ntop (Depends-on): Likewise.
2729         * modules/inet_pton (Depends-on): Likewise.
2730         * modules/ioctl (Depends-on): Likewise.
2731         * modules/isapipe (Depends-on): Likewise.
2732         * modules/isfinite (Depends-on): Likewise.
2733         * modules/isinf (Depends-on): Likewise.
2734         * modules/lchown (Depends-on): Likewise.
2735         * modules/ldexpl (Depends-on): Likewise.
2736         * modules/link (Depends-on): Likewise.
2737         * modules/linkat (Depends-on): Likewise.
2738         * modules/listen (Depends-on): Likewise.
2739         * modules/logl (Depends-on): Likewise.
2740         * modules/lstat (Depends-on): Likewise.
2741         * modules/mbrlen (Depends-on): Likewise.
2742         * modules/mbrtowc (Depends-on): Likewise.
2743         * modules/mbsinit (Depends-on): Likewise.
2744         * modules/mbsnrtowcs (Depends-on): Likewise.
2745         * modules/mbsrtowcs (Depends-on): Likewise.
2746         * modules/mbtowc (Depends-on): Likewise.
2747         * modules/memcmp (Depends-on): Likewise.
2748         * modules/mkdir (Depends-on): Likewise.
2749         * modules/mkdtemp (Depends-on): Likewise.
2750         * modules/mkfifo (Depends-on): Likewise.
2751         * modules/mkfifoat (Depends-on): Likewise.
2752         * modules/mknod (Depends-on): Likewise.
2753         * modules/mkostemp (Depends-on): Likewise.
2754         * modules/mkostemps (Depends-on): Likewise.
2755         * modules/mkstemp (Depends-on): Likewise.
2756         * modules/mkstemps (Depends-on): Likewise.
2757         * modules/mktime (Depends-on): Likewise.
2758         * modules/nanosleep (Depends-on): Likewise.
2759         * modules/open (Depends-on): Likewise.
2760         * modules/openat (Depends-on): Likewise.
2761         * modules/perror (Depends-on): Likewise.
2762         * modules/poll (Depends-on): Likewise.
2763         * modules/popen (Depends-on): Likewise.
2764         * modules/posix_spawn (Depends-on): Likewise.
2765         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2766         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2767         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2768         * modules/posix_spawnp (Depends-on): Likewise.
2769         * modules/pread (Depends-on): Likewise.
2770         * modules/printf-posix (Depends-on): Likewise.
2771         * modules/ptsname (Depends-on): Likewise.
2772         * modules/putenv (Depends-on): Likewise.
2773         * modules/pwrite (Depends-on): Likewise.
2774         * modules/readline (Depends-on): Likewise.
2775         * modules/readlink (Depends-on): Likewise.
2776         * modules/readlinkat (Depends-on): Likewise.
2777         * modules/recv (Depends-on): Likewise.
2778         * modules/recvfrom (Depends-on): Likewise.
2779         * modules/regex (Depends-on): Likewise.
2780         * modules/remove (Depends-on): Likewise.
2781         * modules/rename (Depends-on): Likewise.
2782         * modules/renameat (Depends-on): Likewise.
2783         * modules/rmdir (Depends-on): Likewise.
2784         * modules/round (Depends-on): Likewise.
2785         * modules/roundf (Depends-on): Likewise.
2786         * modules/roundl (Depends-on): Likewise.
2787         * modules/rpmatch (Depends-on): Likewise.
2788         * modules/select (Depends-on): Likewise.
2789         * modules/send (Depends-on): Likewise.
2790         * modules/sendto (Depends-on): Likewise.
2791         * modules/setenv (Depends-on): Likewise.
2792         * modules/setlocale (Depends-on): Likewise.
2793         * modules/setsockopt (Depends-on): Likewise.
2794         * modules/shutdown (Depends-on): Likewise.
2795         * modules/sigaction (Depends-on): Likewise.
2796         * modules/signbit (Depends-on): Likewise.
2797         * modules/sigprocmask (Depends-on): Likewise.
2798         * modules/sinl (Depends-on): Likewise.
2799         * modules/sleep (Depends-on): Likewise.
2800         * modules/snprintf (Depends-on): Likewise.
2801         * modules/snprintf-posix (Depends-on): Likewise.
2802         * modules/socket (Depends-on): Likewise.
2803         * modules/sprintf-posix (Depends-on): Likewise.
2804         * modules/sqrtl (Depends-on): Likewise.
2805         * modules/stat (Depends-on): Likewise.
2806         * modules/strchrnul (Depends-on): Likewise.
2807         * modules/strdup-posix (Depends-on): Likewise.
2808         * modules/strerror (Depends-on): Likewise.
2809         * modules/strerror_r-posix (Depends-on): Likewise.
2810         * modules/strndup (Depends-on): Likewise.
2811         * modules/strnlen (Depends-on): Likewise.
2812         * modules/strptime (Depends-on): Likewise.
2813         * modules/strsep (Depends-on): Likewise.
2814         * modules/strsignal (Depends-on): Likewise.
2815         * modules/strstr-simple (Depends-on): Likewise.
2816         * modules/strtod (Depends-on): Likewise.
2817         * modules/strtoimax (Depends-on): Likewise.
2818         * modules/strtok_r (Depends-on): Likewise.
2819         * modules/strtoumax (Depends-on): Likewise.
2820         * modules/symlink (Depends-on): Likewise.
2821         * modules/symlinkat (Depends-on): Likewise.
2822         * modules/tanl (Depends-on): Likewise.
2823         * modules/tcgetsid (Depends-on): Likewise.
2824         * modules/tmpfile (Depends-on): Likewise.
2825         * modules/trunc (Depends-on): Likewise.
2826         * modules/truncf (Depends-on): Likewise.
2827         * modules/truncl (Depends-on): Likewise.
2828         * modules/uname (Depends-on): Likewise.
2829         * modules/unlink (Depends-on): Likewise.
2830         * modules/unlockpt (Depends-on): Likewise.
2831         * modules/unsetenv (Depends-on): Likewise.
2832         * modules/usleep (Depends-on): Likewise.
2833         * modules/utimensat (Depends-on): Likewise.
2834         * modules/vasprintf (Depends-on): Likewise.
2835         * modules/vdprintf (Depends-on): Likewise.
2836         * modules/vdprintf-posix (Depends-on): Likewise.
2837         * modules/vfprintf-posix (Depends-on): Likewise.
2838         * modules/vprintf-posix (Depends-on): Likewise.
2839         * modules/vsnprintf (Depends-on): Likewise.
2840         * modules/vsnprintf-posix (Depends-on): Likewise.
2841         * modules/vsprintf-posix (Depends-on): Likewise.
2842         * modules/wcrtomb (Depends-on): Likewise.
2843         * modules/wcscasecmp (Depends-on): Likewise.
2844         * modules/wcscspn (Depends-on): Likewise.
2845         * modules/wcsdup (Depends-on): Likewise.
2846         * modules/wcsncasecmp (Depends-on): Likewise.
2847         * modules/wcsnrtombs (Depends-on): Likewise.
2848         * modules/wcspbrk (Depends-on): Likewise.
2849         * modules/wcsrtombs (Depends-on): Likewise.
2850         * modules/wcsspn (Depends-on): Likewise.
2851         * modules/wcsstr (Depends-on): Likewise.
2852         * modules/wcstok (Depends-on): Likewise.
2853         * modules/wcswidth (Depends-on): Likewise.
2854         * modules/wctob (Depends-on): Likewise.
2855         * modules/wctomb (Depends-on): Likewise.
2856         * modules/wctype (Depends-on): Likewise.
2857         * modules/wcwidth (Depends-on): Likewise.
2858         * modules/write (Depends-on): Likewise.
2859
2860 2011-05-03  Bruno Haible  <bruno@clisp.org>
2861
2862         Support for conditional dependencies.
2863         * doc/gnulib.texi (Module description): Document the syntax of
2864         conditional dependencies.
2865         * gnulib-tool: New option --conditional-dependencies.
2866         (func_usage): Document it.
2867         (cond_dependencies): New variable.
2868         (func_get_automake_snippet_conditional,
2869         func_get_automake_snippet_unconditional): New functions, extracted from
2870         func_get_automake_snippet.
2871         (func_get_automake_snippet): Use them.
2872         (sed_first_32_chars): New variable.
2873         (func_module_shellfunc_name): New function.
2874         (func_module_shellvar_name): New function.
2875         (func_module_conditional_name): New function.
2876         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2877         func_cond_module_condition): New functions.
2878         (func_modules_transitive_closure): Add support for conditional
2879         dependencies.
2880         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2881         conditional automake snippet in an automake conditional.
2882         (func_emit_autoconf_snippets): Emit shell functions that contain the
2883         code for conditional modules.
2884         (func_import, func_create_testdir): Update specification.
2885
2886 2011-05-03  Eric Blake  <eblake@redhat.com>
2887
2888         test-getaddrinfo: report error information
2889         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2890
2891 2011-05-03  Jim Meyering  <meyering@redhat.com>
2892
2893         bootstrap: avoid build failure when $GZIP is set
2894         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2895         program name.  If defined at all, it is supposed to list gzip options.
2896         Reported by Alan Curry in http://debbugs.gnu.org/8609
2897
2898 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2899
2900         readme-release: new module with release instructions
2901         * modules/readme-release: New module.
2902         * top/README-release: New file, from coreutils, grep, diffutils.
2903         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2904
2905 2011-05-02  Eric Blake  <eblake@redhat.com>
2906
2907         fflush: also replace fclose when fixing fflush
2908         * modules/fflush (Depends-on): Add fclose.
2909         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2910         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2911         memstreams with no backing fd.
2912         * doc/posix-functions/fclose.texi (fclose): Document the use of
2913         fflush module to fix the bug.
2914         * tests/test-fclose.c (main): Relax test when fclose is used in
2915         isolation.
2916
2917         fclose: add some tests
2918         * modules/fclose-tests: New test module.
2919         * tests/test-fclose.c: New file.
2920         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2921
2922         fclose: reduced dependencies
2923         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2924         simpler lseek.
2925         * lib/fclose.c (rpl_fclose): Likewise.
2926         Reported by Simon Josefsson.
2927
2928         exit: drop remaining clients
2929         * modules/argmatch (Depends-on): Replace exit with stdlib.
2930         * modules/copy-file (Depends-on): Likewise.
2931         * modules/execute (Depends-on): Likewise.
2932         * modules/exitfail (Depends-on): Likewise.
2933         * modules/obstack (Depends-on): Likewise.
2934         * modules/pagealign_alloc (Depends-on): Likewise.
2935         * modules/pipe-filter-gi (Depends-on): Likewise.
2936         * modules/pipe-filter-ii (Depends-on): Likewise.
2937         * modules/savewd (Depends-on): Likewise.
2938         * modules/spawn-pipe (Depends-on): Likewise.
2939         * modules/wait-process (Depends-on): Likewise.
2940         * modules/xsetenv (Depends-on): Likewise.
2941         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2942         * modules/git-merge-changelog (Depends-on): Likewise.
2943         * modules/long-options (Depends-on): Likewise.
2944         * modules/pt_chown (Depends-on): Likewise.
2945         * modules/sysexits (Depends-on): Likewise.
2946
2947         freading: relax license from LGPLv3+ to LGPLv2+
2948         * modules/freading (License): Relax LGPL version.
2949
2950 2011-05-02  Bruno Haible  <bruno@clisp.org>
2951
2952         fchdir: Remove unused dependencies.
2953         * modules/fchdir (Depends-on): Remove include_next.
2954
2955 2011-05-02  Bruno Haible  <bruno@clisp.org>
2956
2957         gnulib-tool: Refactor.
2958         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2959         from func_emit_autoconf_snippets.
2960         (func_emit_autoconf_snippets): Use it.
2961
2962 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2963
2964         * NEWS: Document removal of 'exit'.
2965         * modules/exit: Remove file.
2966
2967 2011-05-01  Bruno Haible  <bruno@clisp.org>
2968
2969         Update DEPENDENCIES.
2970         * DEPENDENCIES (gettext): Recommend the newest release.
2971         Reported by Simon Josefsson.
2972
2973 2011-05-01  Bruno Haible  <bruno@clisp.org>
2974
2975         gnulib-tool: Reduce code duplication.
2976         * gnulib-tool (func_emit_autoconf_snippets): New function.
2977         (func_import, func_create_testdir): Use it.
2978
2979 2011-04-30  Eric Blake  <eblake@redhat.com>
2980
2981         fclose: don't fail on non-seekable input stream
2982         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2983         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2984         since fflush is allowed to fail in that case.
2985
2986 2011-04-30  Bruno Haible  <bruno@clisp.org>
2987
2988         dup3: cleanup
2989         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2990
2991 2011-04-30  Bruno Haible  <bruno@clisp.org>
2992
2993         netdb: Make it work in C++ mode.
2994         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2995         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2996         module.
2997         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2998         gl_MODULE_INDICATOR_FOR_TESTS.
2999         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
3000         * modules/netdb-c++-tests: New file.
3001         * tests/test-netdb-c++.cc: New file.
3002
3003 2011-04-30  Bruno Haible  <bruno@clisp.org>
3004
3005         New modules 'vfscanf', 'vscanf'.
3006         * modules/vfscanf: New file.
3007         * modules/vscanf: New file.
3008         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
3009         here.
3010         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
3011         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
3012
3013 2011-04-30  Bruno Haible  <bruno@clisp.org>
3014
3015         passfd: Add comments.
3016         * lib/passfd.c: Add comments about platforms.
3017
3018 2011-04-30  Bruno Haible  <bruno@clisp.org>
3019
3020         sys_uio: Make <sys/uio.h> self-contained.
3021         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
3022         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
3023
3024 2011-04-30  Bruno Haible  <bruno@clisp.org>
3025
3026         sys_socket: Ensure 'struct iovec' definition.
3027         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
3028         <sys/socket.h>.
3029         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
3030
3031 2011-04-30  Bruno Haible  <bruno@clisp.org>
3032
3033         sys_uio: Protect definition of 'struct iovec'.
3034         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
3035         it as a C struct.
3036
3037 2011-04-30  Bruno Haible  <bruno@clisp.org>
3038
3039         manywarnings: fix indentation
3040         * m4/manywarnings.m4: Indent by 2 spaces consistently.
3041
3042 2011-04-30  Pádraig Brady <P@draigBrady.com>
3043
3044         manywarnings: add -Wno-missing-field-initializers if needed.
3045         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
3046         option if it's needed to allow initialization with { 0, }
3047
3048 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
3049
3050         announce-gen: cosmetic improvement
3051         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
3052
3053 2011-04-29  Jim Meyering  <meyering@redhat.com>
3054
3055         vc-list-files: indent with spaces, not TABs
3056         * build-aux/vc-list-files: Convert leading TABs to spaces,
3057         to match the style of most other files in gnulib.
3058
3059         announce-gen: indent with spaces, not TABs
3060         * build-aux/announce-gen: Convert all TABs to spaces, to match
3061         the style of most other files in gnulib.
3062
3063 2011-04-29  Eric Blake  <eblake@redhat.com>
3064
3065         quotearg: avoid uninitialized variable use
3066         * lib/quotearg.c (quoting_options_from_style): Initialize
3067         remaining fields, and ensure that custom styles are only used via
3068         quoting_options rather than quoting_style.
3069
3070 2011-04-29  Jim Meyering  <meyering@redhat.com>
3071
3072         maint.mk: remove unused VC-tag variable
3073         * top/maint.mk (VC-tag): Remove unused variable.
3074
3075 2011-04-29  Bruno Haible  <bruno@clisp.org>
3076
3077         netdb: fix gai_strerror replacements
3078         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
3079         * modules/netdb: Substitute it.
3080
3081 2011-04-29  Jim Meyering  <meyering@redhat.com>
3082
3083         test-getcwd.c: avoid new set-but-not-used warning
3084         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
3085         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
3086         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
3087         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
3088
3089         test-hash.c: avoid a new shadowing warning
3090         * tests/test-hash.c (main): Don't shadow "dup".
3091
3092 2011-04-28  Eric Blake  <eblake@redhat.com>
3093
3094         getaddrinfo: fix gai_strerror signature
3095         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
3096         and work around mingw with UNICODE defined.
3097         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
3098         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
3099         * modules/netdb (Makefile.am): Substitute it.
3100         * lib/netdb.in.h (gai_strerror): Declare replacement.
3101         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
3102         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
3103         the fix.
3104
3105         getsockopt: avoid compiler warning
3106         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
3107         Reported by Matthias Bolte.
3108
3109         tests: drop unused link dependency
3110         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
3111         * modules/dirent-safer-tests (Makefile.am): Likewise.
3112         * modules/fdopendir-tests (Makefile.am): Likewise.
3113         * modules/mkfifoat-tests (Makefile.am): Likewise.
3114         * modules/openat-safer-tests (Makefile.am): Likewise.
3115         * modules/openat-tests (Makefile.am): Likewise.
3116         * modules/readlinkat-tests (Makefile.am): Likewise.
3117         * modules/symlinkat-tests (Makefile.am): Likewise.
3118         * modules/linkat-tests (Makefile.am): Likewise.
3119         (Depends-on): Switch to filenamecat-lgpl.
3120         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
3121         LIBINTL.
3122         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
3123         * tests/test-linkat.c (main): Don't require xalloc.
3124
3125         hash, mgetgroups: drop xalloc dependency
3126         * lib/hash.c (includes): Adjust includes.
3127         * lib/mgetgroups.c (includes): Likewise.
3128         (xgetgroups): Move...
3129         * lib/xgetgroups.c: ...to new file.
3130         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
3131         * modules/xgetgroups: New file, split from...
3132         * modules/mgetgroups: ...here.
3133         (Depends-on): Add xalloc-oversized.
3134         * modules/hash (Depends-on): Likewise.
3135         * modules/hash-tests (Depends-on): Drop xalloc.
3136         (test_hash_LDADD): Drop unused library.
3137         * tests/test-hash.c (main): Break xalloc dependency.
3138         (includes): Drop unused include.
3139
3140         xalloc-oversized: new module
3141         * modules/xalloc-oversized: New module.
3142         * modules/xalloc (Depends-on): Add it.
3143         * lib/xalloc.h (xalloc_oversized): Move...
3144         * lib/xalloc-oversized.h: ...into new file.
3145
3146         utimecmp: drop dependency on xmalloc
3147         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
3148         due to memory pressure.
3149         * modules/utimecmp (Depends-on): Drop xalloc.
3150
3151 2011-04-27  Eric Blake  <eblake@redhat.com>
3152
3153         getcwd: fix mingw bugs
3154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
3155         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
3156         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
3157
3158 2011-04-27  Bruno Haible  <bruno@clisp.org>
3159
3160         mkstemps: Ensure declaration on MacOS X 10.5.
3161         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
3162         * doc/glibc-functions/mkstemps.texi: Document header file problem on
3163         MacOS X.
3164
3165 2011-04-27  Bruno Haible  <bruno@clisp.org>
3166
3167         mkstemp: More documentation.
3168         * doc/posix-functions/mkstemp.texi: Document header file problem on
3169         MacOS X.
3170
3171 2011-04-27  Bruno Haible  <bruno@clisp.org>
3172
3173         mkstemp: Tweak configure message when cross-compiling.
3174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
3175         result as a guess.
3176
3177 2011-04-27  Bruno Haible  <bruno@clisp.org>
3178
3179         clean-temp: Clarify what it does.
3180         * lib/clean-temp.h: Add more comments.
3181         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
3182         module.
3183         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
3184         * doc/glibc-functions/mkstemps.texi: Likewise.
3185         * doc/glibc-functions/mkostemps.texi: Likewise.
3186
3187 2011-04-27  Eric Blake  <eblake@redhat.com>
3188
3189         fchdir: avoid extra chdir and fix test
3190         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
3191         getcwd-lgpl.
3192         * lib/fchdir.c (get_name): Any absolute name will do; it does not
3193         have to be canonical.
3194         (canonicalize_file_name): Drop unused macro.
3195         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
3196
3197         filenamecat-lgpl: fix licence
3198         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
3199         when it was first created.
3200
3201         linkat, renameat: add missing dependency
3202         * modules/linkat (Depends-on): Require getcwd-lgpl.
3203         * modules/renameat (Depends-on): Likewise.
3204
3205         tests: reduce dependencies
3206         * tests/test-linkat.c (main): Use lighter-weight getcwd.
3207         * tests/test-renameat.c (main): Likewise.
3208         * modules/linkat-tests (Depends-on): Relax dependency.
3209         * modules/renameat-tests (Depends-on): Likewise.
3210         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
3211         dependency explicit.
3212
3213         save-cwd: reduce default dependency
3214         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
3215         * lib/save-cwd.c: Update comments.
3216         * NEWS: Document the semantic change.
3217
3218         getcwd: enhance tests
3219         * tests/test-getcwd-lgpl.c: New file, taken from...
3220         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
3221         repeat long path stress tests from m4 probe.
3222         * modules/getcwd-lgpl-tests: New module.
3223         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
3224         * m4/getcwd-abort-bug.m4: Update comment.
3225         * m4/getcwd-path-max.m4: Likewise.
3226
3227         getcwd-lgpl: new module
3228         * modules/getcwd-lgpl: New module.
3229         * lib/getcwd-lgpl.c: New file.
3230         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3231         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3232         * modules/getcwd (configure.ac): Set C witness.
3233         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
3234
3235         getcwd: tweak comments
3236         * m4/getcwd-abort-bug.m4: Fix comments.
3237         * m4/getcwd-path-max.m4: Likewise.
3238         * m4/getcwd.m4: Likewise.
3239
3240 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3241         and Eric Blake  <eblake@redhat.com>
3242
3243         mkstemp: replace if system version uses wrong permissions
3244         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
3245         read/write mode bits set in file created by mkstemp.
3246         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
3247
3248 2011-04-27  Eric Blake  <eblake@redhat.com>
3249
3250         passfd: avoid compiler warning
3251         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
3252         Reported by Laine Stump.
3253
3254 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
3255
3256         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
3257         required by the NetBSD (and perhaps other 4.4BSD derived) join.
3258
3259 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
3260         and Eric Blake  <eblake@redhat.com>
3261
3262         mkstemp: mention clean-temp module
3263         * lib/mkstemp.c: Add comment.
3264         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
3265
3266 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3267
3268         inttypes: also provide default values for 32-bit tests
3269         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
3270         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
3271
3272 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         strtoumax: remove dependency on strtoimax
3275         This is like the strtoull change of yesterday.
3276         * modules/strtoumax (Files): Add lib/strtoimax.c.
3277         (Depends-on): Remove strtoimax and add verify.
3278
3279         inttypes-incomplete: new module
3280         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
3281         all but the PRI* and SCN* parts of gl_INTTYPES_H.
3282         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
3283         of gl_INTTYPES_H.
3284         (gl_INTTYPES_H): Rewrite in terms of these new macros.
3285         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
3286         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
3287         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
3288         * modules/strtoumax, modules/xstrtol (Depends-on):
3289         Depend on inttypes-incomplete, not inttypes.
3290         * modules/inttypes-incomplete: New module, containing the contents
3291         of the old modules/inttypes module, except that the Files: section
3292         omits m4/inttypes-pri.m4, and the configure.ac section invokes
3293         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
3294         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
3295         (Depends-on): Depend only on inttypes-incomplete.
3296         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
3297
3298         inttypes: omit now-redundant strtoimax and strtoumax work
3299         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
3300         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
3301
3302         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
3303         This supports apps that need pointers to strtoimax and strtoumax,
3304         and ports to HP-UX 11.00 64.bit, which has macros that expand to
3305         nonexistent functions.  See
3306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
3307         et seq.
3308         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
3309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
3310         a macro.
3311         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
3312
3313 2011-04-25  Simon Josefsson  <simon@josefsson.org>
3314
3315         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
3316
3317 2011-04-25  Bruno Haible  <bruno@clisp.org>
3318
3319         strtol, strtoul: Mark modules as obsolete.
3320         * modules/strtol (Status, Notice): New sections.
3321         * modules/strtoul (Status, Notice): New sections.
3322
3323 2011-04-25  Bruno Haible  <bruno@clisp.org>
3324
3325         strtod: Remove check for strtod, unless supporting old platforms.
3326         * modules/strtod-obsolete: New file.
3327         * m4/strtod-obsolete.m4: New file.
3328         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
3329         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
3330         * modules/strtod (Depends-on): Add strtod-obsolete.
3331         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3332
3333 2011-04-25  Bruno Haible  <bruno@clisp.org>
3334
3335         strcase: Make module obsolete.
3336         * modules/strcase (Status, Notice): New sections.
3337
3338 2011-04-25  Bruno Haible  <bruno@clisp.org>
3339
3340         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3341         * modules/dup2-obsolete: New file.
3342         * m4/dup2-obsolete.m4: New file.
3343         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3344         gl_FUNC_DUP2_OBSOLETE is not also defined.
3345         * modules/dup2 (Depends-on): Add dup2-obsolete.
3346         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3347
3348 2011-04-25  Bruno Haible  <bruno@clisp.org>
3349
3350         strnlen: Avoid memchr related link error on old obsolete platforms.
3351         * modules/memchr-obsolete: New file.
3352         * m4/memchr-obsolete.m4: New file.
3353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3354         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3355         * modules/memchr (Depends-on): Add memchr-obsolete.
3356         * modules/strnlen (Depends-on): Likewise.
3357         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3358
3359 2011-04-25  Jim Meyering  <meyering@redhat.com>
3360
3361         maint.mk: makefile_at_at_check extend and clean up
3362         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3363         in addition to */Makefile.am.
3364         Exempt legitimate uses of @VAR@ notation, e.g.,
3365         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3366         Remove obsolete coreutils-specific comment.
3367         Prompted by discussion here:
3368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3369
3370 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3371
3372         strtoul: remove dependency on strtol
3373         This is so that 'configure' need not check for strtol merely because
3374         the application needs strtoul.
3375         * modules/strtoul (Files): Add lib/strtol.c.
3376         (Depends-on): Remove strtol.
3377
3378         strtoull: remove dependency on strtoul
3379         This is like the strtoll change.
3380         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3381         (Depends-on): Remove strtoul.
3382
3383         strtoll: remove dependency on strtol
3384         This is so that 'configure' need not check for strtol merely because
3385         the application needs strtoll.
3386         * modules/strtoll (Files): Add lib/strtol.c.
3387         (Depends-on): Remove strtol.
3388
3389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3390
3391         inttypes: Move some configure check to module 'imaxdiv'.
3392         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3393         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3395
3396 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3397
3398         inttypes: Move some configure check to module 'imaxabs'.
3399         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3400         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3401         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3402
3403 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         inttypes: Remove configure tests that are not needed since 2009-12-31.
3406         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3407         gl_cv_header_working_inttypes_h.
3408
3409 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3410
3411         * modules/strnlen (Depends-on): Remove memchr.
3412         The strnlen implementation doesn't need the memchr module's fixes; see
3413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3414
3415         strtol: remove dependency on wchar
3416         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3417         * modules/strtol (Depends-on): Remove wchar.
3418
3419 2011-04-21  Eric Blake  <eblake@redhat.com>
3420
3421         passfd: fix test regression on Linux
3422         * modules/passfd-tests (configure.ac): Correct socketpair check.
3423
3424         passfd: speed up configure and drop unused code
3425         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3426         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3427         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3428         Instead of probing at configure for unix_scm_rights_bsd44_way,
3429         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3430         check to a struct member probe.
3431         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3432         (sendfd, recvfd): Update preprocessor checks.
3433         * modules/passfd (Files): Reflect rename, and drop unused file.
3434         (Depends-on): Drop unused dependency.
3435
3436         passfd: allow compilation on mingw
3437         * modules/sys_socket (Depends-on): Add sys_uio.
3438         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3439         iovec and a minimal struct msghdr.
3440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3441         * tests/test-sys_socket.c (main): Enhance test.
3442         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3443         guaranteed to provide what we need.
3444         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3445         * modules/passfd-tests (Depends-on): Add sys_wait.
3446         * tests/test-passfd.c (main): Skip test on mingw, for now.
3447         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3448         partial 'struct msghdr' implementation.
3449
3450         sys_uio: new module
3451         * modules/sys_uio: New module.
3452         * modules/sys_uio-tests: Likewise.
3453         * lib/sys_uio.in.h: New file.
3454         * m4/sys_uio_h.m4: Likewise.
3455         * tests/test-sys_uio.c: Likewise.
3456         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3457         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3458
3459 2011-04-20  Jim Meyering  <meyering@redhat.com>
3460
3461         useless-if-before-free: avoid false-positive
3462         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3463         disjunct so that it too requires a terminating ";".  Without that,
3464         this script would identify as useless one statement from gcc that
3465         was not:
3466           if (aligned_ptr)
3467             free (((void **) aligned_ptr) [-1]);
3468
3469 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3470
3471         doc: update users.txt.
3472         * users.txt: Add barcode.
3473
3474 2011-04-19  Bruno Haible  <bruno@clisp.org>
3475
3476         ioctl: Remove link dependency on native Windows.
3477         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3478         (gl_close_fn, gl_ioctl_fn): New types.
3479         (struct fd_hook): Renamed from struct close_hook. Change type of
3480         private_close_fn field. Add private_ioctl_fn field.
3481         (close_hook_fn): Add parameter for primary close method.
3482         (execute_close_hooks, execute_all_close_hooks): Likewise.
3483         (ioctl_hook_fn): New type.
3484         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3485         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3486         argument.
3487         (unregister_fd_hook): Renamed from unregister_close_hook.
3488         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3489         Don't include <unistd.h>.
3490         (close): Remove undef.
3491         (anchor): Update.
3492         (execute_close_hooks): Add argument for primary close method.
3493         (execute_all_close_hooks): Likewise.
3494         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3495         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3496         argument. Allow each argument to be NULL.
3497         (unregister_fd_hook): Renamed from unregister_close_hook.
3498         * lib/close.c (rpl_close): Pass 'close' function pointer to
3499         execute_all_close_hooks.
3500         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3501         (primary_ioctl): New function.
3502         (ioctl): Don't call ioctlsocket here. Instead, call
3503         execute_all_ioctl_hooks.
3504         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3505         close method.
3506         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3507         (fd_sockets_hook): Renamed from close_sockets_hook.
3508         (gl_sockets_startup, gl_sockets_cleanup): Update.
3509         * modules/fd-hook: Renamed from modules/close-hook. Update.
3510         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3511         * modules/sockets (Depends-on): Likewise.
3512         * modules/ioctl (Depends-on): Add fd-hook.
3513         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3514         GNULIB_SOCKET.
3515
3516 2011-04-19  Bruno Haible  <bruno@clisp.org>
3517
3518         Move the support of O_NONBLOCK in open() to the 'open' module.
3519         * modules/nonblocking (Depends-on): Remove 'open'.
3520         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3521         gl_cv_have_open_O_NONBLOCK.
3522         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3523         O_NONBLOCK support.
3524         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3525
3526 2011-04-17  Bruno Haible  <bruno@clisp.org>
3527
3528         pipe2: Simplify code.
3529         * lib/pipe2.c (pipe2): Reduce code duplication.
3530
3531 2011-04-17  Bruno Haible  <bruno@clisp.org>
3532
3533         nonblocking: Add comment.
3534         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3535
3536 2011-04-17  Bruno Haible  <bruno@clisp.org>
3537
3538         nonblocking: Add tests for sockets.
3539         * tests/test-nonblocking-socket.sh: New file.
3540         * tests/test-nonblocking-socket-main.c: New file.
3541         * tests/test-nonblocking-socket-child.c: New file.
3542         * tests/test-nonblocking-socket.h: New file.
3543         * tests/socket-server.h: New file.
3544         * tests/socket-client.h: New file.
3545         * modules/nonblocking-socket-tests: New file.
3546         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3547
3548 2011-04-17  Bruno Haible  <bruno@clisp.org>
3549
3550         nonblocking: Add tests for pipes.
3551         * tests/test-nonblocking-pipe.sh: New file.
3552         * tests/test-nonblocking-pipe-main.c: New file.
3553         * tests/test-nonblocking-pipe-child.c: New file.
3554         * tests/test-nonblocking-pipe.h: New file.
3555         * tests/test-nonblocking-writer.h: New file.
3556         * tests/test-nonblocking-reader.h: New file.
3557         * tests/test-nonblocking-misc.h: New file.
3558         * modules/nonblocking-pipe-tests: New file.
3559         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3560
3561 2011-04-16  Bruno Haible  <bruno@clisp.org>
3562
3563         gettext: Clarify the needed programmer actions.
3564         * modules/gettext (Notice): New field.
3565         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3566
3567 2011-04-16  Bruno Haible  <bruno@clisp.org>
3568
3569         strchrnul: Tweak last commit.
3570         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3571         bug.
3572         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3573         as in _GL_FUNCDECL_SYS.
3574         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3575         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3576
3577 2011-04-15  Eric Blake  <eblake@redhat.com>
3578
3579         strchrnul: work around cygwin bug
3580         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3581         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3583         * modules/string (Makefile.am): Substitute it.
3584         * lib/string.in.h (strchrnul): Use it.
3585
3586 2011-04-15  Bruno Haible  <bruno@clisp.org>
3587
3588         Don't require lib/stdio-write.c when only module 'stdio' is used.
3589         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3590         invocation.
3591         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3592
3593 2011-04-14  Bruno Haible  <bruno@clisp.org>
3594
3595         Support non-blocking pipe I/O in read() on native Windows.
3596         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3597         (read): New declaration.
3598         * lib/read.c: New file.
3599         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3600         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3601         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3602         vscanf): New declarations.
3603         * lib/stdio-read.c: New file.
3604         * m4/read.m4: New file.
3605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3606         REPLACE_READ.
3607         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3608         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3609         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3610         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3611         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3612         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3613         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3614         * modules/read: New file.
3615         * modules/nonblocking (Files): Add lib/stdio-read.c.
3616         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3617         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3618         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3619         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3620         * modules/pread (Depends-on): Add read.
3621         * modules/safe-read (Depends-on): Likewise.
3622         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3623         gets, scanf, vfscanf, vscanf): Verify signatures.
3624         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3625         problem with non-blocking pipes.
3626         * doc/posix-functions/fgetc.texi: Likewise.
3627         * doc/posix-functions/fgets.texi: Likewise.
3628         * doc/posix-functions/fread.texi: Likewise.
3629         * doc/posix-functions/fscanf.texi: Likewise.
3630         * doc/posix-functions/getc.texi: Likewise.
3631         * doc/posix-functions/getchar.texi: Likewise.
3632         * doc/posix-functions/gets.texi: Likewise.
3633         * doc/posix-functions/scanf.texi: Likewise.
3634         * doc/posix-functions/vfscanf.texi: Likewise.
3635         * doc/posix-functions/vscanf.texi: Likewise.
3636
3637 2011-04-14  Bruno Haible  <bruno@clisp.org>
3638
3639         Support non-blocking pipe I/O in write() on native Windows.
3640         * lib/write.c (rpl_write): Split a write request that failed merely
3641         because the byte count was larger than the pipe buffer's size.
3642         * doc/posix-functions/write.texi: Mention the problem with large byte
3643         counts.
3644
3645 2011-04-14  Bruno Haible  <bruno@clisp.org>
3646
3647         wchar: Ensure that wchar_t gets defined on uClibc.
3648         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3649         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3650
3651 2011-04-13  Bruno Haible  <bruno@clisp.org>
3652
3653         safe-write, full-read: Avoid unnecessary compilation units.
3654         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3655         (Depends-on): Remove safe-read. Add ssize_t.
3656         * modules/full-read (Files): Add lib/full-write.c.
3657         (Depends-on): Add full-write.
3658
3659 2011-04-13  Bruno Haible  <bruno@clisp.org>
3660
3661         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3662         * modules/pwrite (Depends-on): Add 'write'.
3663
3664 2011-04-13  Bruno Haible  <bruno@clisp.org>
3665
3666         Support non-blocking pipe I/O in write() on native Windows.
3667         * lib/unistd.in.h (write): Enable replacement also if
3668         GNULIB_UNISTD_H_NONBLOCKING is 1.
3669         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3670         (rpl_write): When failing to write on a non-blocking pipe, change
3671         errno from ENOSPC to EAGAIN.
3672         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3673         putchar, puts, vfprintf, vprintf): Enable replacement also if
3674         GNULIB_STDIO_H_NONBLOCKING is 1.
3675         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3676         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3677         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3678         CALL_WITH_SIGPIPE_EMULATION.
3679         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3680         * m4/nonblocking.m4: New file.
3681         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3682         for non-blocking I/O support.
3683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3684         GNULIB_UNISTD_H_NONBLOCKING.
3685         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3686         required for non-blocking I/O support.
3687         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3688         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3689         lib/stdio-write.c, m4/asm-underscore.m4.
3690         (Depends-on): Add stdio, unistd.
3691         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3692         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3693         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3694         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3695         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3696         problem with non-blocking pipes.
3697         * doc/posix-functions/fputc.texi: Likewise.
3698         * doc/posix-functions/fputs.texi: Likewise.
3699         * doc/posix-functions/fwrite.texi: Likewise.
3700         * doc/posix-functions/printf.texi: Likewise.
3701         * doc/posix-functions/putc.texi: Likewise.
3702         * doc/posix-functions/putchar.texi: Likewise.
3703         * doc/posix-functions/puts.texi: Likewise.
3704         * doc/posix-functions/vfprintf.texi: Likewise.
3705         * doc/posix-functions/vprintf.texi: Likewise.
3706         * doc/posix-functions/write.texi: Likewise.
3707
3708 2011-04-10  Jim Meyering  <meyering@redhat.com>
3709
3710         maint.mk: prohibit doubled words
3711         Detect them also when they're separated by a newline.
3712         There are 3 ways to customize it:
3713           - disable the test on a per file basis, as usual with rules using
3714             $(VC_LIST_EXCEPT)
3715           - replace the default doubled-word-selecting regexp (affects all files)
3716           - ignore a particular file-vs-doubled-word match
3717         I nearly used that last one to ignore the "is is" match in
3718         coreutils' NEWS file, since the text was "ls -is is ..."
3719         To do that, I would have added this line to cfg.mk:
3720           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3721         but it would have ignored any "is is" match in NEWS.
3722         Low probability, but still...
3723         Instead, I changed the text, slightly:
3724           -  ls -is is now consistent with ls -lis in ignoring values returned
3725           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3726         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3727         (prohibit_doubled_word_): Define.
3728         (sc_prohibit_doubled_word): New rule.
3729         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3730
3731 2011-04-10  Jim Meyering  <meyering@redhat.com>
3732
3733         maint: fix doubled-word typo in comment
3734         * m4/gethostname.m4: s/is is/it is/
3735         * m4/getdomainname.m4: Likewise.
3736
3737 2011-04-10  Jim Meyering  <meyering@redhat.com>
3738
3739         maint: remove doubled word: s/it it/it/
3740         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3741
3742 2011-04-10  Jim Meyering  <meyering@redhat.com>
3743
3744         maint.mk: remove useless semicolon and backslash
3745         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3746         semicolon and backslash.
3747
3748 2011-04-10  Bruno Haible  <bruno@clisp.org>
3749
3750         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3751         * modules/stdint-tests (Depends-on): Add wchar.
3752
3753 2011-04-10  Jim Meyering  <meyering@redhat.com>
3754
3755         maint: remove doubled words in comments, e.g., s/a a/a/
3756         * lib/strptime.c (day_of_the_week): s/the the/the/
3757         * tests/test-chown.h (test_chown): s/a a/a/
3758
3759         test-chown.h: correct a cast
3760         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3761         when the destination is a stat.st_gid.
3762
3763 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3764
3765         getaddrinfo: Fix test for sa_len member.
3766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3767         include <sys/types.h> before <sys/socket.h>.
3768
3769 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3770
3771         maint: change "can not" to "cannot"
3772         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3773         boundaries.
3774
3775 2011-04-09  Jim Meyering  <meyering@redhat.com>
3776
3777         maint: change "a a" to "a"
3778         * tests/test-lchown.h (test_lchown): s/a a/a/
3779
3780         maint.mk: prohibit \<the the\>
3781         * top/maint.mk (sc_prohibit_the_the): New rule.
3782
3783         maint: fix "the the" in comment
3784         * lib/count-one-bits.h: s/the the/the/
3785
3786         maint: change "can not" to "cannot"
3787         But do not change the occurrences in maintain.texi or in
3788         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3789         * doc/gnulib-tool.texi: s/can not/cannot/
3790         * doc/posix-functions/accept.texi (accept): Likewise.
3791         * doc/posix-functions/socket.texi (socket): Likewise.
3792         * lib/mbrtowc.c: Likewise.
3793
3794         maint.mk: prohibit use of "can not"
3795         * top/maint.mk (sc_prohibit_can_not): New rule.
3796         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3797
3798 2011-04-09  Bruno Haible  <bruno@clisp.org>
3799
3800         careadlinkat: Guard against misuse of careadlinkatcwd.
3801         * lib/careadlinkat.c: Include <stdlib.h>.
3802         (careadlinkatcwd): Check that the fd argument is as expected.
3803
3804 2011-04-09  Bruno Haible  <bruno@clisp.org>
3805
3806         careadlinkat: Use common coding style.
3807         * lib/careadlinkat.c: Move gnulib includes after system includes.
3808
3809 2011-04-09  Bruno Haible  <bruno@clisp.org>
3810
3811         careadlinkat: Clarify specification.
3812         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3813         (careadlinkatcwd): Add comment.
3814         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3815
3816 2011-04-09  Bruno Haible  <bruno@clisp.org>
3817
3818         areadlinkat: Avoid link error on many platforms.
3819         * modules/areadlinkat (Depends-on): Add areadlink.
3820
3821 2011-04-09  Bruno Haible  <bruno@clisp.org>
3822
3823         allocator, careadlinkat: Fix double-inclusion guard.
3824         * lib/allocator.h: Fix double-inclusion guard.
3825         * lib/careadlinkat.h: Likewise.
3826
3827 2011-04-09  Bruno Haible  <bruno@clisp.org>
3828
3829         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3830         * lib/relocwrapper.c: Update dependencies hierarchy.
3831         * build-aux/install-reloc: Update list of files to be compiled.
3832         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3833         lib/allocator.[hc].
3834
3835 2011-04-08  Eric Blake  <eblake@redhat.com>
3836
3837         strftime: silence gnulib-tool warning
3838         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3839
3840 2011-04-08  Bruno Haible  <bruno@clisp.org>
3841
3842         verify: Fix syntax error with GCC 4.6 in C++ mode.
3843         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3844         (HAVE_STATIC_ASSERT): New macro.
3845         (verify_true, verify): Use 'static_assert' if it is supported and
3846         '_Static_assert' is not supported.
3847
3848 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3849
3850         allocator: New module.
3851         * modules/allocator, lib/allocator.c: New files.
3852         * lib/allocator.h (stdlib_allocator): New decl.
3853         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3854         Remove.  Do not include <stdlib.h>.
3855         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3856         * modules/careadlinkat (Files): Remove lib/allocator.h.
3857         (Depends-on): Add allocator.
3858
3859         stdlib: let modules use system malloc, realloc
3860         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3861         if !_GL_USE_STDLIB_ALLOC.
3862         (malloc, realloc): Limit this change to a smaller scope.
3863
3864         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3865         (malloc, realloc): Don't #undef; no longer needed.
3866         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3867         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3868         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3869         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3870         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3871         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3872         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3873         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3874
3875         careadlinkat: rename members to avoid problem
3876         * lib/allocator.h (struct allocator): Rename members from
3877         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3878         and realloc are #define'd.  Reported by Eric Blake in
3879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3880         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3881
3882 2011-04-08  Eric Blake  <eblake@redhat.com>
3883
3884         nonblocking: reduce dependency
3885         * tests/test-nonblocking.c: Only test sockets when in use.
3886         * modules/nonblocking-tests (Depends-on): Drop socket.
3887         (Makefile.am): Link even if sockets are not present.
3888         * modules/pipe2-tests (Makefile.am): Likewise.
3889         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3890
3891         pipe2: fix O_NONBLOCK support on mingw
3892         * modules/pipe2 (Depends-on): Add nonblocking.
3893         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3894         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3895         * tests/test-nonblocking.c (main): Likewise.
3896         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3897
3898         fcntl-h: fix O_ACCMODE on cygwin
3899         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3900         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3901
3902         pipe-filter: drop O_NONBLOCK workarounds
3903         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3904         * modules/pipe-filter-ii (Depends-on): Likewise.
3905         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3906
3907         nonblocking: provide O_NONBLOCK for mingw
3908         * modules/nonblocking (Depends-on): Add open.
3909         (configure.ac): Set new witness macro.
3910         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3911         * modules/fcntl-h (Makefile.am): Substitute it.
3912         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3913         nonblocking module is in use.
3914         * lib/nonblocking.c: Adjust portability test.
3915         * lib/open.c (open): Don't let native open see gnulib flag.
3916         * tests/test-fcntl-h.c (main): Enhance test.
3917         * tests/test-open.h (test_open): Likewise.
3918         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3919
3920         careadlinkat: fix compilation error on mingw
3921         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3922         within struct allocator.
3923
3924 2011-04-06  Eric Blake  <eblake@redhat.com>
3925
3926         binary-io: relicense under LGPLv2+
3927         * modules/binary-io (License): Relax to LGPLv2+.
3928         Requested for libvirt, and required by pipe2.
3929
3930 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         verify: use _Static_assert if available
3933         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3934         (verify_true, verify): Use it if available.  This generates better
3935         diagnostics with GCC 4.6.0 and later.
3936
3937 2011-04-05  Bruno Haible  <bruno@clisp.org>
3938
3939         Remove leftover generated .h files after config.status changed.
3940
3941         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3942         GL_GENERATE_ALLOCA_H.
3943         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3944         GL_GENERATE_ALLOCA_H evaluates to false.
3945
3946         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3947         GL_GENERATE_ARGZ_H.
3948         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3949         evaluates to false.
3950
3951         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3952         GL_GENERATE_BYTESWAP_H.
3953         * modules/byteswap (Makefile.am): Remove byteswap.h if
3954         GL_GENERATE_BYTESWAP_H evaluates to false.
3955
3956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3957         GL_GENERATE_ERRNO_H.
3958         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3959         evaluates to false.
3960
3961         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3962         GL_GENERATE_FLOAT_H.
3963         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3964         evaluates to false.
3965
3966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3967         GL_GENERATE_FNMATCH_H.
3968         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3969         GL_GENERATE_FNMATCH_H evaluates to false.
3970
3971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3972         GL_GENERATE_GLOB_H.
3973         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3974         evaluates to false.
3975
3976         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3977         automake conditional GL_GENERATE_ICONV_H.
3978         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3979         evaluates to false.
3980
3981         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3982         GL_GENERATE_NETINET_IN_H.
3983         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3984         GL_GENERATE_NETINET_IN_H evaluates to false.
3985
3986         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3987         conditional GL_GENERATE_PTHREAD_H.
3988         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3989         * modules/pthread (Makefile.am): Remove pthread.h if
3990         GL_GENERATE_PTHREAD_H evaluates to false.
3991
3992         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3993         GL_GENERATE_SCHED_H.
3994         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3995         evaluates to false.
3996
3997         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3998         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3999         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
4000         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
4001
4002         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
4003         GL_GENERATE_STDARG_H.
4004         * modules/stdarg (Makefile.am): Remove stdarg.h if
4005         GL_GENERATE_STDARG_H evaluates to false.
4006
4007         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
4008         GL_GENERATE_STDBOOL_H.
4009         * modules/stdbool (Makefile.am): Remove stdbool.h if
4010         GL_GENERATE_STDBOOL_H evaluates to false.
4011
4012         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
4013         conditional GL_GENERATE_STDDEF_H.
4014         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
4015         * modules/stddef (Makefile.am): Remove stddef.h if
4016         GL_GENERATE_STDDEF_H evaluates to false.
4017
4018         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
4019         GL_GENERATE_STDINT_H.
4020         * modules/stdint (Makefile.am): Remove stdint.h if
4021         GL_GENERATE_STDINT_H evaluates to false.
4022
4023         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
4024         GL_GENERATE_SYSEXITS_H.
4025         * modules/sysexits (Makefile.am): Remove sysexits.h if
4026         GL_GENERATE_SYSEXITS_H evaluates to false.
4027
4028         Reported by Karl Berry and Ralf Wildenhues.
4029
4030 2011-04-05  Bruno Haible  <bruno@clisp.org>
4031
4032         Ensure to rebuild generated .h files when config.status has changed.
4033         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
4034         config.status.
4035         * modules/ctype (Makefile.am): Likewise.
4036         * modules/dirent (Makefile.am): Likewise.
4037         * modules/errno (Makefile.am): Likewise.
4038         * modules/fcntl-h (Makefile.am): Likewise.
4039         * modules/float (Makefile.am): Likewise.
4040         * modules/getopt-posix (Makefile.am): Likewise.
4041         * modules/glob (Makefile.am): Likewise.
4042         * modules/iconv-h (Makefile.am): Likewise.
4043         * modules/inttypes (Makefile.am): Likewise.
4044         * modules/langinfo (Makefile.am): Likewise.
4045         * modules/locale (Makefile.am): Likewise.
4046         * modules/math (Makefile.am): Likewise.
4047         * modules/netdb (Makefile.am): Likewise.
4048         * modules/netinet_in (Makefile.am): Likewise.
4049         * modules/poll-h (Makefile.am): Likewise.
4050         * modules/pthread (Makefile.am): Likewise.
4051         * modules/pty (Makefile.am): Likewise.
4052         * modules/sched (Makefile.am): Likewise.
4053         * modules/search (Makefile.am): Likewise.
4054         * modules/selinux-h (Makefile.am): Likewise.
4055         * modules/signal (Makefile.am): Likewise.
4056         * modules/spawn (Makefile.am): Likewise.
4057         * modules/stdarg (Makefile.am): Likewise.
4058         * modules/stdbool (Makefile.am): Likewise.
4059         * modules/stddef (Makefile.am): Likewise.
4060         * modules/stdint (Makefile.am): Likewise.
4061         * modules/stdio (Makefile.am): Likewise.
4062         * modules/stdlib (Makefile.am): Likewise.
4063         * modules/string (Makefile.am): Likewise.
4064         * modules/strings (Makefile.am): Likewise.
4065         * modules/sys_file (Makefile.am): Likewise.
4066         * modules/sys_ioctl (Makefile.am): Likewise.
4067         * modules/sys_select (Makefile.am): Likewise.
4068         * modules/sys_socket (Makefile.am): Likewise.
4069         * modules/sys_stat (Makefile.am): Likewise.
4070         * modules/sys_time (Makefile.am): Likewise.
4071         * modules/sys_times (Makefile.am): Likewise.
4072         * modules/sys_utsname (Makefile.am): Likewise.
4073         * modules/sys_wait (Makefile.am): Likewise.
4074         * modules/sysexits (Makefile.am): Likewise.
4075         * modules/termios (Makefile.am): Likewise.
4076         * modules/time (Makefile.am): Likewise.
4077         * modules/unistd (Makefile.am): Likewise.
4078         * modules/wchar (Makefile.am): Likewise.
4079         * modules/wctype-h (Makefile.am): Likewise.
4080         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
4081
4082 2011-04-05  Bruno Haible  <bruno@clisp.org>
4083
4084         pipe2: Relicense under LGPLv2+.
4085         * modules/pipe2 (License): Change to LGPLv2+.
4086         Requested by Eric Blake, for libvirt.
4087
4088 2011-04-05  Bruce Korb  <bkorb@gnu.org>
4089
4090         bootstrap: compute gnulib_extra_files after updating build_aux
4091         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
4092         change build_aux or also supply gnulib_extra_files.  Handle correctly.
4093
4094 2011-04-05  Eric Blake  <eblake@redhat.com>
4095
4096         bootstrap: preserve git whitelist item sorting
4097         * build-aux/bootstrap (sort_patterns): New function.
4098         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
4099
4100 2011-04-05  Simon Josefsson  <simon@josefsson.org>
4101
4102         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
4103         sc_space_tab check.
4104
4105 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4106
4107         areadlink, areadlinkat: rewrite in terms of careadlinkat
4108         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
4109         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
4110         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
4111         (malloc, realloc): Remove #undefs.
4112         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
4113         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
4114         readlink, ssize_t, stdint, unistd.
4115         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
4116         areadlink, stdint.
4117
4118         careadlinkat: new module
4119         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
4120         * modules/careadlinkat: New files, written by me with
4121         a review and feedback from Ben Pfaff in
4122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
4123
4124 2011-04-01  Bruno Haible  <bruno@clisp.org>
4125
4126         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
4127         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
4128         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
4129         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4130         Reported by Bruce Korb <bruce.korb@gmail.com>.
4131
4132 2011-04-01  Bruno Haible  <bruno@clisp.org>
4133
4134         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
4135         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
4136         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
4137         * modules/wcpcpy (Depends-on): Add extensions.
4138         * modules/wcpncpy (Depends-on): Likewise.
4139         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
4140         systems.
4141         * doc/posix-functions/wcpncpy.texi: Likewise.
4142         * doc/posix-functions/wcwidth.texi: Likewise.
4143
4144 2011-03-31  Eric Blake  <eblake@redhat.com>
4145
4146         nonblocking: fix mingw test failures
4147         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
4148         non-blocking flag on regular file.
4149         (get_nonblocking_flag): Set errno on invalid fd.
4150         * tests/test-nonblocking.c (main): Avoid test failure on
4151         directories if fchdir is not active.
4152         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
4153
4154 2011-03-31  Bruno Haible  <bruno@clisp.org>
4155
4156         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
4157         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
4158         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
4159         Reported by Simon Josefsson <simon@josefsson.org>.
4160
4161 2011-03-31  Bruno Haible  <bruno@clisp.org>
4162         and Eric Blake  <eblake@redhat.com>
4163
4164         nonblocking: new module
4165         * modules/nonblocking: New module.
4166         * modules/nonblocking-tests: Likewise.
4167         * lib/nonblocking.h: New file.
4168         * lib/nonblocking.c: Likewise.
4169         * tests/test-nonblocking.c: New test.
4170         * lib/ioctl.c (ioctl) [mingw]: Update comment.
4171
4172 2011-03-30  Bruno Haible  <bruno@clisp.org>
4173
4174         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
4175         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
4176         instead of 'printf' format for GCC >= 4.4.
4177         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
4178         (fprintf, printf, vfprintf, vprintf): Declare with
4179         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
4180         the system's vfprintf() function.
4181         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
4182
4183 2011-03-30  Eric Blake  <eblake@redhat.com>
4184
4185         passfd: fix scoping bug
4186         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
4187         before sendmsg/recvmsg.
4188
4189         passfd: standardize coding conventions
4190         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
4191         can be learned at compile time.
4192         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
4193         ifdefs.
4194         (sendfd, recvfd): Follow gnulib code conventions.
4195
4196         passfd: fix incorrect sendmsg arguments
4197         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
4198         incorrect msg_controllen value.
4199         * modules/passfd-tests (Depends-on): Check for alarm.
4200         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
4201         Reported by Bastien ROUCARIES.
4202
4203 2011-03-30  Bruno Haible  <bruno@clisp.org>
4204
4205         c-strcasestr: Relicense under LGPLv2+.
4206         * modules/c-strcasestr (License): Change to LGPLv2+.
4207         Requested by Eric Blake, for libvirt.
4208
4209 2011-03-30  Simon Josefsson  <simon@josefsson.org>
4210
4211         * users.txt: Add libidn2.  Fix libtasn1 link.
4212
4213 2011-03-30  Jim Meyering  <meyering@redhat.com>
4214
4215         tests: readlink* ("",... fails with EINVAL on newer kernels
4216         readlink and readlinkat have typically failed with ENOENT for
4217         the invalid, empty file name,  "".  However, with the advent
4218         of linux-2.6.39, they fail with EINVAL.
4219         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
4220         when operating on the empty file name.
4221         * tests/test-readlink.h (test_readlink): Likewise.
4222
4223 2011-03-29  Bruno Haible  <bruno@clisp.org>
4224
4225         Relicense some modules under LGPLv2+, for libidn2.
4226         * modules/array-mergesort (License): Change to LGPLv2+.
4227         * modules/c-strcaseeq (License): Likewise.
4228         * modules/striconveh (License): Likewise.
4229         * modules/striconveha (License): Likewise.
4230         * modules/uniconv/base (License): Likewise.
4231         * modules/uniconv/u8-conv-from-enc (License): Likewise.
4232         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
4233         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
4234         * modules/unictype/base (License): Likewise.
4235         * modules/unictype/bidiclass-of (License): Likewise.
4236         * modules/unictype/category-M (License): Likewise.
4237         * modules/unictype/category-none (License): Likewise.
4238         * modules/unictype/category-of (License): Likewise.
4239         * modules/unictype/category-test (License): Likewise.
4240         * modules/unictype/category-test-withtable (License): Likewise.
4241         * modules/unictype/combining-class (License): Likewise.
4242         * modules/unictype/joiningtype-of (License): Likewise.
4243         * modules/unictype/scripts (License): Likewise.
4244         * modules/uninorm/base (License): Likewise.
4245         * modules/uninorm/canonical-decomposition (License): Likewise.
4246         * modules/uninorm/composition (License): Likewise.
4247         * modules/uninorm/decompose-internal (License): Likewise.
4248         * modules/uninorm/decomposition-table (License): Likewise.
4249         * modules/uninorm/nfc (License): Likewise.
4250         * modules/uninorm/nfd (License): Likewise.
4251         * modules/uninorm/u32-normalize (License): Likewise.
4252         * modules/unistr/base (License): Likewise.
4253         * modules/unistr/u32-cpy (License): Likewise.
4254         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
4255         * modules/unistr/u32-to-u8 (License): Likewise.
4256         * modules/unistr/u32-uctomb (License): Likewise.
4257         * modules/unistr/u8-check (License): Likewise.
4258         * modules/unistr/u8-mblen (License): Likewise.
4259         * modules/unistr/u8-mbtouc (License): Likewise.
4260         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
4261         * modules/unistr/u8-mbtoucr (License): Likewise.
4262         * modules/unistr/u8-prev (License): Likewise.
4263         * modules/unistr/u8-strlen (License): Likewise.
4264         * modules/unistr/u8-to-u32 (License): Likewise.
4265         * modules/unistr/u8-uctomb (License): Likewise.
4266         * modules/unitypes (License): Likewise.
4267         Requested by Simon Josefsson.
4268
4269 2011-03-29  Simon Josefsson  <simon@josefsson.org>
4270
4271         lib-symbol-visibility: Add a notice.
4272         * modules/lib-symbol-visibility (Notice): New field.
4273
4274 2011-03-29  Bruno Haible  <bruno@clisp.org>
4275
4276         getaddrinfo: Doc fix.
4277         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
4278         section "fixed in Gnulib".
4279
4280 2011-03-28  Simon Josefsson  <simon@josefsson.org>
4281
4282         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
4283         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
4284
4285 2011-03-26  Bruno Haible  <bruno@clisp.org>
4286
4287         unictype/property-byname: Reduce the number of load-time relocations.
4288         * lib/unictype/pr_byname.c: Include <stdlib.h>.
4289         (UC_PROPERTY_INDEX_*): New enumeration values.
4290         (uc_property_byname): Convert an index from the lookup table to an
4291         uc_property_t.
4292         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
4293         values.
4294
4295 2011-03-26  Bruno Haible  <bruno@clisp.org>
4296
4297         unictype/property-byname: Allow omitted word separators and aliases.
4298         * lib/unictype/pr_byname.gperf: Add property names without word
4299         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
4300         for 'space'.
4301
4302 2011-03-26  Bruno Haible  <bruno@clisp.org>
4303
4304         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
4305         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
4306         also hyphens to space.
4307         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
4308         without spaces.
4309         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
4310
4311 2011-03-26  Bruno Haible  <bruno@clisp.org>
4312
4313         unictype/joiningtype-byname: Recognize long names as well.
4314         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
4315         a long name.
4316         * lib/unictype/joiningtype_byname.c: Include <string.h>,
4317         unictype/joiningtype_byname.h.
4318         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
4319         * lib/unictype/joiningtype_byname.gperf: New file.
4320         * modules/unictype/joiningtype-byname (Files): Add
4321         lib/unictype/joiningtype_byname.gperf.
4322         (Depends-on): Add gperf.
4323         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
4324         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
4325         long names.
4326
4327         Tests for module 'unictype/joiningtype-longname'.
4328         * modules/unictype/joiningtype-longname-tests: New file.
4329         * tests/unictype/test-joiningtype_longname.c: New file.
4330
4331         New module 'unictype/joiningtype-longname'.
4332         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4333         * lib/unictype/joiningtype_longname.c: New file.
4334         * modules/unictype/joiningtype-longname: New file.
4335         * modules/unictype/joiningtype-all (Depends-on): Add
4336         unictype/joiningtype-longname.
4337
4338 2011-03-26  Bruno Haible  <bruno@clisp.org>
4339
4340         unictype/bidiclass-byname: Recognize long names as well.
4341         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4342         name.
4343         * lib/unictype/bidi_byname.c: Include <string.h>,
4344         unictype/bidi_byname.h.
4345         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4346         * lib/unictype/bidi_byname.gperf: New file.
4347         * modules/unictype/bidiclass-byname (Files): Add
4348         lib/unictype/bidi_byname.gperf.
4349         (Depends-on): Add gperf.
4350         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4351         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4352         long names.
4353
4354         Tests for module 'unictype/bidiclass-longname'.
4355         * modules/unictype/bidiclass-longname-tests: New file.
4356         * tests/unictype/test-bidi_longname.c: New file.
4357
4358         New module 'unictype/bidiclass-longname'.
4359         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4360         * lib/unictype/bidi_longname.c: New file.
4361         * modules/unictype/bidiclass-longname: New file.
4362         * modules/unictype/bidiclass-all (Depends-on): Add
4363         unictype/bidiclass-longname.
4364
4365 2011-03-26  Bruno Haible  <bruno@clisp.org>
4366
4367         unictype/bidi*: Rename modules.
4368         * modules/unictype/bidiclass-all: Renamed from
4369         modules/unictype/bidicategory-all.
4370         * modules/unictype/bidiclass-name: Renamed from
4371         modules/unictype/bidiclass-name.
4372         (Description): Update.
4373         * modules/unictype/bidiclass-name-tests: Renamed from
4374         modules/unictype/bidicategory-name-tests.
4375         * modules/unictype/bidiclass-byname: Renamed from
4376         modules/unictype/bidicategory-byname.
4377         (Description): Update.
4378         * modules/unictype/bidiclass-byname-tests: Renamed from
4379         modules/unictype/bidicategory-byname-tests.
4380         * modules/unictype/bidiclass-of: Renamed from
4381         modules/unictype/bidicategory-of.
4382         (Description): Update.
4383         * modules/unictype/bidiclass-of-tests: Renamed from
4384         modules/unictype/bidicategory-of-tests.
4385         * modules/unictype/bidiclass-test: Renamed from
4386         modules/unictype/bidicategory-test.
4387         (Description): Update.
4388         * modules/unictype/bidiclass-test-tests: Renamed from
4389         modules/unictype/bidicategory-test-tests.
4390         * modules/unictype/bidicategory-all: New file, a simple redirection.
4391         * modules/unictype/bidicategory-name: Likewise.
4392         * modules/unictype/bidicategory-byname: Likewise.
4393         * modules/unictype/bidicategory-of: Likewise.
4394         * modules/unictype/bidicategory-test: Likewise.
4395         * modules/unictype/property-bidi-* (Dependencies): Update.
4396         * lib/unictype/bidi_*.c: Update comment.
4397
4398 2011-03-26  Bruno Haible  <bruno@clisp.org>
4399
4400         unictype/bidi*: Rename functions, part 2.
4401         * modules/unictype/bidicategory-name (configure.ac): Update required
4402         libunistring version.
4403         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4404
4405 2011-03-25  Bruno Haible  <bruno@clisp.org>
4406
4407         New module 'unictype/combining-class-all'.
4408         * modules/unictype/combining-class-all: New file.
4409
4410         Tests for module 'unictype/combining-class-byname'.
4411         * modules/unictype/combining-class-byname-tests: New file.
4412         * tests/unictype/test-combiningclass_byname.c: New file.
4413
4414         New module 'unictype/combining-class-byname'.
4415         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4416         * lib/unictype/combiningclass_byname.c: New file.
4417         * lib/unictype/combiningclass_byname.gperf: New file.
4418         * modules/unictype/combining-class-byname: New file.
4419
4420         Tests for module 'unictype/combining-class-longname'.
4421         * modules/unictype/combining-class-longname-tests: New file.
4422         * tests/unictype/test-combiningclass_longname.c: New file.
4423
4424         New module 'unictype/combining-class-longname'.
4425         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4426         * lib/unictype/combiningclass_longname.c: New file.
4427         * modules/unictype/combining-class-longname: New file.
4428
4429         Tests for module 'unictype/combining-class-name'.
4430         * modules/unictype/combining-class-name-tests: New file.
4431         * tests/unictype/test-combiningclass_name.c: New file.
4432
4433         New module 'unictype/combining-class-name'.
4434         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4435         * lib/unictype/combiningclass_name.c: New file.
4436         * modules/unictype/combining-class-name: New file.
4437
4438 2011-03-25  Bruno Haible  <bruno@clisp.org>
4439
4440         unictype/combining-class: Rename source files.
4441         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4442         of unictype/combining.h.
4443         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4444         Update.
4445         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4446         * modules/unictype/combining-class (Description): Fix.
4447         (Files, Makefile.am): Update.
4448         * tests/unictype/test-combiningclass.c: Renamed from
4449         tests/unictype/test-combining.c.
4450         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4451
4452 2011-03-25  Bruno Haible  <bruno@clisp.org>
4453
4454         unictype: Update list of canonical combining classes.
4455         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4456
4457 2011-03-25  Bruno Haible  <bruno@clisp.org>
4458
4459         unictype/category-byname: Recognize long names as well.
4460         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4461         a long name.
4462         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4463         unictype/categ_byname.h.
4464         (UC_CATEGORY_INDEX_*): New enumeration values.
4465         (uc_general_category_byname): Use uc_general_category_lookup and
4466         convert from index to value.
4467         * lib/unictype/categ_byname.gperf: New file.
4468         * modules/unictype/category-byname (Files): Add
4469         lib/unictype/categ_byname.gperf.
4470         (Depends-on): Add gperf.
4471         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4472         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4473         long names.
4474
4475         Tests for module 'unictype/category-longname'.
4476         * modules/unictype/category-longname-tests: New file.
4477         * tests/unictype/test-categ_longname.c: New file.
4478
4479         New module 'unictype/category-longname'.
4480         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4481         * lib/unictype/categ_longname.c: New file.
4482         * modules/unictype/category-longname: New file.
4483         * modules/unictype/category-all (Depends-on): Add it.
4484
4485 2011-03-25  Bruno Haible  <bruno@clisp.org>
4486
4487         Tests for module 'unictype/category-LC'.
4488         * modules/unictype/category-LC-tests: New file.
4489         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4490
4491         New module 'unictype/category-LC'.
4492         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4493         (UC_CATEGORY_LC): New declaration.
4494         (UC_CASED_LETTER): New macro.
4495         * lib/gen-uni-tables.c (is_category_LC): New function.
4496         (output_categories): Also handle category LC.
4497         (UC_CATEGORY_MASK_LC): New enumeration value.
4498         (general_category_byname): Also handle category LC.
4499         * lib/unictype/categ_LC.c: New file.
4500         * lib/unictype/categ_LC.h: New file, automatically generated.
4501         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4502         category LC.
4503         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4504         * modules/unictype/category-LC: New file.
4505         * modules/unictype/category-byname (Depends-on): Add
4506         unictype/category-LC.
4507         * modules/unictype/category-all (Depends-on): Likewise.
4508
4509 2011-03-25  Eric Blake  <eblake@redhat.com>
4510
4511         xmalloc: revert yesterday's regression
4512         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4513         realloc's underlying behavior (allowing allocation of zero-size
4514         objects, especially if malloc-gnu is also in use).
4515
4516 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4517
4518         maint.mk: add missing version to VC-tag
4519         * top/maint.mk: git tag was missing actual tag name; add it.
4520
4521         valgrind: do leak checking, and exit with code 1 on error (not 0)
4522         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4523         to VALGRIND.
4524
4525 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4526
4527         posix-modules: say what it does.
4528         * posix-modules: Add a line to the --help output saying what it does.
4529
4530 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4531
4532         xmalloc: Do not leak if underlying realloc is C99 compatible.
4533         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4534         This avoids a leak on C99-based systems.  See
4535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4536
4537 2011-03-24  Eric Blake  <eblake@redhat.com>
4538
4539         realloc: document portability problem
4540         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4541         passing 0 size to realloc.
4542
4543 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4544
4545         doc: update users.txt
4546         * users.txt: Add cvsps, tmpwatch
4547
4548 2011-03-23  Matt Rice  <ratmice@gmail.com>
4549
4550         doc: update users.txt
4551         * users.txt: Add gdb.
4552
4553 2011-03-23  Jim Meyering  <meyering@redhat.com>
4554
4555         doc: update users.txt
4556         Looking through matches up to the following URL (there are still
4557         several more pages), I found several projects that use gnulib:
4558         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4559         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4560         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4561
4562 2011-03-22  Bruno Haible  <bruno@clisp.org>
4563
4564         unictype/bidi*: Rename functions.
4565         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4566         uc_bidi_class, uc_is_bidi_class): New declarations.
4567         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4568         uc_bidi_category_byname.
4569         (uc_bidi_category_byname): New function.
4570         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4571         u_bidi_category_name.
4572         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4573         (uc_bidi_category_name): New function.
4574         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4575         uc_bidi_category.
4576         (uc_bidi_category): New function.
4577         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4578         uc_is_bidi_category. Invoke uc_bidi_class.
4579         (uc_is_bidi_category): New function.
4580         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4581         instead of uc_bidi_category_byname.
4582         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4583         instead of uc_bidi_category_name.
4584         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4585         uc_bidi_category.
4586         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4587         instead of uc_is_bidi_category.
4588
4589 2011-03-21  Bruno Haible  <bruno@clisp.org>
4590
4591         New module 'unictype/joininggroup-all'.
4592         * modules/unictype/joininggroup-all: New file.
4593
4594         Tests for module 'unictype/joininggroup-of'.
4595         * modules/unictype/joininggroup-of-tests: New file.
4596         * tests/unictype/test-joininggroup_of.c: New file.
4597         * tests/unictype/test-joininggroup_of.h: New file, automatically
4598         generated by gen-uni-tables.
4599
4600         New module 'unictype/joininggroup-of'.
4601         * modules/unictype/joininggroup-of: New file.
4602         * lib/unictype/joininggroup_of.c: New file.
4603         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4604         gen-uni-tables.
4605
4606         Tests for module 'unictype/joininggroup-byname'.
4607         * modules/unictype/joininggroup-byname-tests: New file.
4608         * tests/unictype/test-joininggroup_byname.c: New file.
4609
4610         New module 'unictype/joininggroup-byname'.
4611         * modules/unictype/joininggroup-byname: New file.
4612         * lib/unictype/joininggroup_byname.c: New file.
4613         * lib/unictype/joininggroup_byname.gperf: New file.
4614
4615         Tests for module 'unictype/joininggroup-name'.
4616         * modules/unictype/joininggroup-name-tests: New file.
4617         * tests/unictype/test-joininggroup_name.c: New file.
4618
4619         New module 'unictype/joininggroup-name'.
4620         * modules/unictype/joininggroup-name: New file.
4621         * lib/unictype/joininggroup_name.c: New file.
4622         * lib/unictype/joininggroup_name.h: New file.
4623
4624         New module 'unictype/joiningtype-all'.
4625         * modules/unictype/joiningtype-all: New file.
4626
4627         Tests for module 'unictype/joiningtype-of'.
4628         * modules/unictype/joiningtype-of-tests: New file.
4629         * tests/unictype/test-joiningtype_of.c: New file.
4630         * tests/unictype/test-joiningtype_of.h: New file, automatically
4631         generated by gen-uni-tables.
4632
4633         New module 'unictype/joiningtype-of'.
4634         * modules/unictype/joiningtype-of: New file.
4635         * lib/unictype/joiningtype_of.c: New file.
4636         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4637         gen-uni-tables.
4638
4639         Tests for module 'unictype/joiningtype-byname'.
4640         * modules/unictype/joiningtype-byname-tests: New file.
4641         * tests/unictype/test-joiningtype_byname.c: New file.
4642
4643         New module 'unictype/joiningtype-byname'.
4644         * modules/unictype/joiningtype-byname: New file.
4645         * lib/unictype/joiningtype_byname.c: New file.
4646
4647         Tests for module 'unictype/joiningtype-name'.
4648         * modules/unictype/joiningtype-name-tests: New file.
4649         * tests/unictype/test-joiningtype_name.c: New file.
4650
4651         New module 'unictype/joiningtype-name'.
4652         * modules/unictype/joiningtype-name: New file.
4653         * lib/unictype/joiningtype_name.c: New file.
4654
4655         unictype: Add support for Arabic shaping properties.
4656         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4657         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4658         declarations.
4659         (UC_JOINING_GROUP_*): New enumeration values.
4660         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4661         declarations.
4662         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4663         (unicode_joining_type): New variable.
4664         (UC_JOINING_GROUP_*): New enumeration values.
4665         (unicode_joining_group): New variable.
4666         (fill_arabicshaping, joining_type_as_c_identifier,
4667         output_joining_type_test, output_joining_type,
4668         joining_group_as_c_identifier, output_joining_group_test,
4669         output_joining_group): New functions.
4670         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4671         fill_arabicshaping and output_joining_type_test, output_joining_type,
4672         output_joining_group_test, output_joining_group.
4673         Reported by Simon Josefsson.
4674
4675 2011-03-21  Jim Meyering  <meyering@redhat.com>
4676
4677         strftime: fix a bug in yesterday's change
4678         * lib/strftime.c (add): Accommodate width's initial value of -1.
4679         Otherwise, nstrftime would copy uninitialized data into
4680         the result buffer.
4681
4682 2011-03-21  Jim Meyering  <meyering@redhat.com>
4683
4684         tests: add strftime-tests module
4685         * tests/test-strftime.c: New file.
4686         * modules/strftime-tests: New module.
4687
4688 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4689
4690         strftime: don't assume a byte count fits in 'int'
4691         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4692         found this problem by static analysis, using gcc -Wstrict-overflow
4693         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4694         on an integer overflow having undefined behavior, but it turns out
4695         that the argument is a size, which might not fit in 'int' anyway,
4696
4697 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4698
4699         stdio: don't require ignore_value around fwrite
4700
4701         This patch works around libc bug 11959
4702         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4703         Without this patch, applications must often write
4704         ignore_value (fwrite (...)) even though the ignore_value is
4705         not helpful here.  It's common to write many objects, using
4706         fwrite/printf/etc., and then use ferror to detect output error.
4707
4708         I considered making this patch optional, but decided against it,
4709         because libc is obviously being inconsistent here: there is no
4710         reason libc should insist that user code must inspect fwrite
4711         return's value without also insisting that it inspect printf's,
4712         putchar's, etc.  If user code wants to have a strict style where
4713         all these functions' values are checked (so that ferror need not
4714         be checked), we could add support for that style in a new gnulib
4715         module, but in the meantime it's better to be consistent and to
4716         support common usage.
4717
4718         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4719         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4720         that we are compiling in checking mode, and if not C++, and
4721         if not already wrapping fwrite for some other reason.
4722         (fwrite): #define to rpl_fwrite if the latter is defined.
4723
4724 2011-03-20  Bruno Haible  <bruno@clisp.org>
4725
4726         verror: Fix compilation error introduced on 2011-02-13.
4727         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4728         instead of __attribute__.
4729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4730
4731 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4732             Bruno Haible  <bruno@clisp.org>
4733
4734         socklen: do not depend on sys_socket
4735         While trying to modify Emacs to use gnulib's socklen module,
4736         I discovered a circular dependency: socklen depends on sys_socket
4737         and vice versa.  Emacs can use socklen, but it does not need
4738         sys_socket because it has its own substitute for sys/socket.h.
4739         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4740         gl_TYPE_SOCKLEN_T.
4741         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4742         gl_PREREQ_SYS_H_SOCKET.
4743         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4744         gl_PREREQ_SYS_H_SOCKET.
4745         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4746         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4747         * modules/socklen (Depends-on): Do not depend on sys_socket.
4748         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4749
4750 2011-03-20  Jim Meyering  <meyering@redhat.com>
4751
4752         maint.mk: sort file names *after* new transformation
4753         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4754         prefix would have led to an unwarranted failure in GNU parted.
4755         Sort after that transformation.
4756
4757 2011-03-19  Jim Meyering  <meyering@redhat.com>
4758
4759         maint.mk: fix po-file syntax-check rule
4760         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4761         Patch by Bruno Haible.
4762
4763 2011-03-19  Bruno Haible  <bruno@clisp.org>
4764
4765         socklen: Update comment.
4766         * m4/socklen.m4: Update comment about platforms.
4767
4768 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4769             Bruno Haible  <bruno@clisp.org>
4770
4771         inet_ntop, inet_pton: Simplify.
4772         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4773         documented to provide socklen_t and we already depend on sys_socket.
4774         * modules/inet_pton (Depends-on): Likewise.
4775         * lib/arpa_inet.in.h: Adjust comment.
4776
4777 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4778             Bruno Haible  <bruno@clisp.org>
4779
4780         netdb: Simplify.
4781         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4782         documented to provide socklen_t and we already depend on sys_socket.
4783         * lib/netdb.in.h: Adjust comment.
4784
4785 2011-03-19  Bruno Haible  <bruno@clisp.org>
4786
4787         sys_socket, netdb: Document problem with socklen_t.
4788         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4789         platforms.
4790         * doc/posix-headers/netdb.texi: Likewise.
4791
4792 2011-03-18  Eric Blake  <eblake@redhat.com>
4793
4794         maint.mk: let po check work in VPATH build
4795         * top/maint.mk (po_file): Allow cfg.mk override.
4796         (sc_po_check): Allow VPATH use.
4797         Reported by Jiri Denemark.
4798
4799 2011-03-16  Jim Meyering  <meyering@redhat.com>
4800
4801         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4802         Before, you would have had to create one .x-sc_ file per rule in order
4803         to exempt offending files.  Now, you may instead use a Make variable --
4804         usually defined in cfg.mk -- whose name identifies the affected rule.
4805         * top/maint.mk (_sc_excl): Define.
4806         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4807         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4808
4809 2011-03-13  Bruno Haible  <bruno@clisp.org>
4810
4811         ignore-value tests: Avoid warnings.
4812         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4813         empty for gcc < 3.4.
4814
4815 2011-03-13  Bruno Haible  <bruno@clisp.org>
4816
4817         passfd: Fix link error on Solaris.
4818         * modules/passfd (Description): Correct.
4819         (Depends-on): Add socketlib.
4820         (Link): New section.
4821         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4822
4823 2011-03-13  Bruno Haible  <bruno@clisp.org>
4824
4825         passfd: Fix link error on AIX 5.2.
4826         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4827
4828 2011-03-13  Bruno Haible  <bruno@clisp.org>
4829
4830         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4831         * lib/sys_socket.in.h: Include <stddef.h>.
4832         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4833         CMSG_FIRSTHDR. Remove unused variable.
4834
4835 2011-03-13  Bruno Haible  <bruno@clisp.org>
4836
4837         passfd: Fix compilation error on OpenBSD.
4838         * lib/passfd.c: Include <sys/uio.h>.
4839
4840 2011-03-13  Bruno Haible  <bruno@clisp.org>
4841
4842         passfd test: Fix warnings.
4843         * tests/test-passfd.c: Include <sys/wait.h>.
4844         (main): Fix typo.
4845
4846 2011-03-13  Bruno Haible  <bruno@clisp.org>
4847
4848         passfd module, part 4, tweaks.
4849         * tests/test-passfd.c: Reorder includes.
4850         (main): Fix perror and printf calls.
4851
4852 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4853
4854         passfd module, part 4.
4855         * modules/passfd-tests: New file.
4856         * tests/test-passfd.c: New file.
4857
4858 2011-03-13  Jim Meyering  <meyering@redhat.com>
4859
4860         Makefile: rely on GNU make; derive syntax-check rule names
4861         Rather than requiring that each sc_ rule be listed as a dependent
4862         of "check", use features of GNU make to derive the list.
4863         * Makefile (syntax-check-rules): Define.
4864         (check): Depend on the new variable, not the hard-coded list.
4865
4866 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4867             Bruno Haible  <bruno@clisp.org>
4868
4869         passfd module, part 3.
4870         * lib/passfd.h (recvfd): Add a flags argument.
4871         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4872         (recvfd): Add a flags argument.
4873         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4874         exists.
4875         * modules/passfd (Depends-on): Add cloexec.
4876         Suggested by Eric Blake.
4877
4878 2011-03-13  Bruno Haible  <bruno@clisp.org>
4879
4880         passfd module, part 2, tweaks.
4881         * modules/passfd (Files): Reorder.
4882         (Depends-on): Remove errno.
4883         (Include): Remove <sys/socket.h>, <sys/un.h>.
4884         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4885         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4886         specification header. Include <sys/socket.h> always. Don't include
4887         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4888         (sendfd): Clarify that it sets errno when it fails.
4889         (recvfd): Fix specification.
4890
4891 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4892
4893         passfd module, part 2.
4894         * modules/passfd: New file.
4895         * lib/passfd.h: New file.
4896         * lib/passfd.c: New file.
4897
4898 2011-03-12  Bruno Haible  <bruno@clisp.org>
4899
4900         wcswidth, mbswidth: Avoid integer overflow.
4901         * lib/wcswidth.c: Include <limits.h>.
4902         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4903         * lib/mbswidth.c: Include <limits.h>.
4904         (mbsnwidth): Avoid 'int' overflow.
4905         Reported by Jim Meyering.
4906
4907 2011-03-12  Bruno Haible  <bruno@clisp.org>
4908
4909         futimens, utimensat: Avoid endless recursion on Solaris 10.
4910         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4911         Solaris.
4912         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4913         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4914
4915 2011-03-11  Jim Meyering  <meyering@redhat.com>
4916
4917         maint.mk: relax a regexp to accommodate other formatting styles
4918         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4919         between "ngettext" and the following "(".
4920
4921 2011-03-11  Pádraig Brady <P@draigBrady.com>
4922
4923         maint.mk: suppress a false positive warning
4924         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4925         diagnostics are marked with ngettext.
4926
4927 2011-03-10  Eric Blake  <eblake@redhat.com>
4928
4929         wchar: add explicit dependencies, for Tru64
4930         * modules/mbmemcasecoll (Depends-on): Add wchar.
4931         * modules/mbtowc (Depends-on): Likewise.
4932         * modules/vasnprintf (Depends-on): Likewise.
4933         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4934         * modules/wctomb (Depends-on): Likewise.
4935         Reported by Peter O'Gorman.
4936
4937 2011-03-08  Bruno Haible  <bruno@clisp.org>
4938
4939         passfd module, part 1, tweaks.
4940         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4941         Improve indentation. Improve AC_MSG_CHECKING messages.
4942         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4943         gl_SOCKET_FAMILIES.
4944
4945 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4946
4947         passfd module, part 1.
4948         * m4/afunix.m4: New file.
4949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4950         sockets.
4951
4952 2011-03-08  Bruno Haible  <bruno@clisp.org>
4953
4954         regex-quote: New API.
4955         * lib/regex-quote.h: Include <stdbool.h>.
4956         (struct regex_quote_spec): New type.
4957         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4958         New declarations.
4959         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4960         'const struct regex_quote_spec *' argument.
4961         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4962         (pcre_special): New constant.
4963         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4964         New functions.
4965         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4966         'const struct regex_quote_spec *' argument.
4967         * modules/regex-quote (Depends-on): Add stdbool.
4968         * tests/test-regex-quote.c (check): Update for new API. Add test for
4969         anchored results.
4970         * NEWS: Mention the API change.
4971         Reported by Reuben Thomas and Eric Blake.
4972
4973 2011-03-06  Bruno Haible  <bruno@clisp.org>
4974
4975         regex-quote: Fix creation of POSIX extended regular expressions.
4976         * lib/regex-quote.c (ere_special): Add grouping and alternation
4977         operators.
4978
4979 2011-03-05  Bruno Haible  <bruno@clisp.org>
4980
4981         doc: Improve doc regarding autopoint vs. gnulib.
4982         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4983         disable autopoint while running autoreconf.
4984         Suggested by Ralf Wildenhues.
4985
4986 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4987
4988         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4989         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4990
4991 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4992
4993         parse-duration: remove xalloc.h dependency
4994         * lib/parse-duration.c (parse_period): handle NULL return from
4995         strdup instead of calling xstrdup().
4996         * modules/parse-duration: remove "xalloc" dependency
4997
4998 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4999
5000         bootstrap: honor m4_base when running aclocal
5001         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
5002
5003 2011-03-02  Jim Meyering  <meyering@redhat.com>
5004
5005         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
5006         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
5007         on request from Matt Booth.
5008
5009 2011-03-01  Eric Blake  <eblake@redhat.com>
5010
5011         test-link: work on Hurd
5012         * tests/test-link.h (test_link): Hurd rejects linking directories
5013         with EISDIR instead of the POSIX-mandated EPERM.
5014
5015 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
5016
5017         stdio: simplify by moving files to printf-posix, sigpipe
5018         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
5019         since this symbol is needed only if printf is replaced.
5020         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
5021         Require gl_ASM_SYMBOL_PREFIX.
5022         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
5023         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
5024         (Depends-on): Add 'raise'.
5025         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
5026         * modules/stdio (Files): Remove lib/stdio-write.c,
5027         m4/asm-underscore.m4.
5028         (Depends-on): Remove 'raise'.
5029
5030         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
5031         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
5032         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
5033         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
5034
5035 2011-02-28  Bruno Haible  <bruno@clisp.org>
5036
5037         localcharset: Assume ANSI C behaviour of free().
5038         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
5039         calling free().
5040         Suggested by Simon Josefsson <simon@josefsson.org>.
5041
5042 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
5043             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
5044             Bruno Haible  <bruno@clisp.org>  (tiny change)
5045
5046         On Cygwin, use /proc file system instead of win32 API.
5047         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
5048         Win32 file names.
5049         (DllMain): Simplify by removing Cygwin specific code.
5050         (find_shared_library_fullname): Use Linux specific implementation also
5051         for Cygwin.
5052         (get_shared_library_fullname): Update accordingly.
5053         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
5054         Win32 file names.
5055         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
5056         Cygwin specific code.
5057
5058 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
5059             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
5060
5061         Fix OpenMP flag detection for various Fortran compilers.
5062         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
5063         OpenMP-conditional compilation construct, to force compile
5064         failure with missing OpenMP flag.
5065         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
5066
5067 2011-02-25  Eric Blake  <eblake@redhat.com>
5068
5069         strstr: expand test coverage
5070         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
5071         compilation.
5072         * tests/test-memmem.c (main): Duplicate tests.
5073         * tests/test-strcasestr.c (main): Likewise.
5074         * tests/test-c-strcasestr.c (main): Likewise.
5075
5076 2011-02-25  Jim Meyering  <meyering@redhat.com>
5077
5078         maint.mk: detect missing-NL-at-EOF, too
5079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
5080         it also detects when a file lacks a newline at EOF.
5081         (require_exactly_one_NL_at_EOF_): Renamed from
5082         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
5083         since people may well have .x-sc_... file names tied to the
5084         existing name.  Suggested by Eric Blake.
5085
5086 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         dirname: move m4/dos.m4 functionality into lib/dosname.h
5089
5090         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
5091         extracts symbols from it, puts them into config.h; but it's much
5092         easier to use the symbols directly.  filename.h already does this,
5093         but it disagrees with dos.m4 in some respects.  This patch
5094         introduces a different include file dosname.h that packages up
5095         dos.m4, and then later we can work on merging filename.h and
5096         dosname.h.  Applications that need only the easy-to-configure
5097         symbols should consider including dosname.h rather than dirname.h.
5098         * NEWS: Mention incompatible changes.
5099         * m4/dos.m4: Remove.
5100         * lib/dosname.h, modules/dosname: New files.
5101         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
5102         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
5103         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
5104         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
5105         Include dosname.h, not dirname.h.
5106         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
5107         Include dosname.h, for definitions of symbols like ISSLASH
5108         that used to be in config.h.
5109         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
5110         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5111         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5112         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5113         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
5114         * modules/rmdir (Files): Likewise.
5115         * modules/stat (Files): Likewise.
5116         * modules/unlink (Files): Likewise.
5117         * modules/dirname-lgpl (Depends-on): Add dosname.
5118         * modules/lstat (Depends-on): Likewise.
5119         * modules/openat (Depends-on): Likewise.
5120         * modules/rmdir (Depends-on): Likewise.
5121         * modules/savewd (Depends-on): Likewise.
5122         * modules/stat (Depends-on): Likewise.
5123         * modules/unlink (Depends-on): Likewise.
5124         * modules/openat (Depends-on): Remove dirname-lgpl.
5125         * modules/savewd (Depends-on): Likewise.
5126         * tests/test-dirname.c: Do not use removed symbols like
5127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
5128         the remaining symbols, e.g., ISSLASH ('\\').
5129
5130 2011-02-25  Eric Blake  <eblake@redhat.com>
5131
5132         strstr: revert patches that introduced bug and pessimization
5133         * lib/str-two-way.h: Add another reference.
5134         (two_way_short_needle, two_way_long_needle): Revert changes from
5135         2011-02-24; they pessimize search speed.
5136         (critical_factorization): Partially revert changes from
5137         2010-06-22; they violate the requirement that the left half of the
5138         needle be smaller than the period of the needle.
5139
5140 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5141
5142         filenamecat: remove unnecessary dependency on dirname-lgpl
5143         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
5144         is no direct dependency, just an indirect one via filenamecat-lgpl.
5145
5146         remove: remove unnecessary use of m4/dos.m4
5147         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
5148         * modules/remove (FILES): Remove m4/dos.m4.
5149
5150         * lib/openat-proc.c: Don't include dirname.h; not needed.
5151
5152         backupfile: remove unnecessary use of m4/dos.m4
5153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
5154         of its symbols are used by the backupfile code.  backupfile.c does
5155         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
5156         for the rare case of programs that want all their backup file
5157         names to live within 8+3 limits, and dos.m4 doesn't address that.
5158         * modules/backupfile (Files): Remove m4/dos.m4.
5159
5160 2011-02-24  Jim Meyering  <meyering@redhat.com>
5161
5162         strstr: fix a bug whereby strstr would mistakenly return NULL
5163         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
5164         in period calculation.
5165         (two_way_long_needle): Likewise.
5166         The original problem was reported by Mike Stump in
5167         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
5168         Ralf Wildenhues provided the short needle and haystack.
5169         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
5170         Add a more involved test to trigger the bug in two_way_long_needle.
5171
5172 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
5173
5174         gnulib-tool: remove use of bold display in help screen
5175         * gnulib-tool (func_usage): Do not use bold display anymore in the
5176         help screen.  That was just meant to be a temporary emphasis for a
5177         backward-incompatible change.
5178
5179 2011-02-23  Bruno Haible  <bruno@clisp.org>
5180
5181         Fix misindentation of preprocessor directives.
5182         * lib/argp-namefrob.h: Reindent preprocessor directives.
5183         * lib/getopt_int.h (struct _getopt_data): Likewise.
5184         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
5185         * lib/vasnprintf.c (decode_long_double): Likewise.
5186         * tests/test-argmatch.c: Insert blank lines, for clarity.
5187         * tests/test-exclude.c: Likewise.
5188
5189 2011-02-22  Bruno Haible  <bruno@clisp.org>
5190
5191         ioctl: Fix for MacOS X in 64-bit mode.
5192         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
5193         value.
5194         Suggested by Eric Blake.
5195         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
5196
5197 2011-02-22  Jim Meyering  <meyering@redhat.com>
5198
5199         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
5200         * Makefile (sc_cpp_indent_check): Don't limit the check to files
5201         in lib/.
5202
5203 2011-02-22  Eric Blake  <eblake@redhat.com>
5204
5205         maint: avoid any CDPATH issue
5206         * Makefile (sc_cpp_indent_check): Anchor cd argument.
5207
5208         maint: adjust cpp indentation for my modules, as well
5209         * Makefile (sc_cpp_indent_check): Add my name.
5210         * lib/fbufmode.c: Filter through cppi.
5211         * lib/fpurge.c: Likewise.
5212         * lib/freadable.c: Likewise.
5213         * lib/freading.c: Likewise.
5214         * lib/fwritable.c: Likewise.
5215         * lib/fwriting.c: Likewise.
5216         * lib/sigaction.c: Likewise.
5217
5218 2011-02-22  Jim Meyering  <meyering@redhat.com>
5219
5220         maint: adjust cpp indentation to reflect nesting depth
5221         I.e., in a block of code that begins with an unnested "#if",
5222         put one space between the "#" in column 1 and following token.
5223         For example,
5224         -#include <sys/vfs.h>
5225         +# include <sys/vfs.h>
5226         Do this only in .c files that are part of a module I maintain.
5227         * lib/linkat.c: Filter through cppi.
5228         * lib/nanosleep.c: Likewise.
5229         * lib/openat.c: Likewise.
5230         * lib/openat-die.c: Likewise.
5231         * lib/dup3.c: Likewise.
5232         * lib/fchownat.c: Likewise.
5233         * lib/flock.c: Likewise.
5234         * lib/fsync.c: Likewise.
5235         * lib/fts.c: Likewise.
5236         * lib/getpass.c: Likewise.
5237         * lib/gettimeofday.c: Likewise.
5238         * lib/userspec.c: Likewise.
5239         * Makefile (sc_cpp_indent_check): New rule, to check this.
5240
5241 2011-02-22  Bruno Haible  <bruno@clisp.org>
5242
5243         New module 'wctomb'.
5244         * lib/stdlib.in.h (wctomb): New declaration.
5245         * lib/wctomb.c: New file.
5246         * lib/wctomb-impl.h: New file.
5247         * m4/wctomb.m4: New file.
5248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
5249         REPLACE_WCTOMB.
5250         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
5251         REPLACE_WCTOMB.
5252         * modules/wctomb: New file.
5253         * tests/test-stdlib-c++.cc: Test signature of wctomb.
5254         * doc/posix-functions/wctomb.texi: Mention the new module.
5255         * modules/wctob (Depends-on): Add wctomb.
5256
5257 2011-02-22  Bruno Haible  <bruno@clisp.org>
5258
5259         New module 'mbtowc'.
5260         * lib/stdlib.in.h (mbtowc): New declaration.
5261         * lib/mbtowc.c: New file.
5262         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
5263         * m4/mbtowc.m4: New file.
5264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
5265         REPLACE_MBTOWC.
5266         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
5267         REPLACE_MBTOWC.
5268         * modules/mbtowc: New file.
5269         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
5270         * doc/posix-functions/mbtowc.texi: Mention the new module.
5271         * modules/btowc (Depends-on): Add mbtowc.
5272
5273 2011-02-22  Bruno Haible  <bruno@clisp.org>
5274
5275         wcrtomb: Add more tests for native Windows platforms.
5276         * tests/test-wcrtomb-w32-1.sh: New file.
5277         * tests/test-wcrtomb-w32-2.sh: New file.
5278         * tests/test-wcrtomb-w32-3.sh: New file.
5279         * tests/test-wcrtomb-w32-4.sh: New file.
5280         * tests/test-wcrtomb-w32-5.sh: New file.
5281         * tests/test-wcrtomb-w32.c: New file.
5282         * modules/wcrtomb-tests (Files): Add them.
5283         (Makefile.am): Arrange to run these tests.
5284         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
5285         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
5286
5287 2011-02-20  Bruno Haible  <bruno@clisp.org>
5288
5289         wcrtomb: Enhance test.
5290         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
5291
5292 2011-02-20  Bruno Haible  <bruno@clisp.org>
5293
5294         mbrtowc: Tiny optimization.
5295         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
5296
5297 2011-02-20  Jim Meyering  <meyering@redhat.com>
5298
5299         test-exclude.c: remove unmatched #endif
5300         * tests/test-exclude.c: Remove stray #endif, left over from
5301         the change of a week ago.
5302
5303 2011-02-19  Jim Meyering  <meyering@redhat.com>
5304
5305         git-version-gen: skip "-dirty" check when appropriate
5306         * build-aux/git-version-gen: Don't run any git commands when the
5307         version string comes from .tarball-version.  Prior to this, we
5308         would run git update-index --refresh even from a just-unpacked
5309         tarball directory, and that could affect a .git/ directory in a
5310         parent of the build directory.  Reported by Mike Frysinger.
5311
5312 2011-02-19  Bruno Haible  <bruno@clisp.org>
5313
5314         unictype/property-byname: Reduce the size of the 'data' segment.
5315         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
5316
5317 2011-02-19  Bruno Haible  <bruno@clisp.org>
5318
5319         unictype/scripts: Reduce the size of the 'data' segment.
5320         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
5321         '%pic'.
5322         * lib/unictype/scripts_byname.gperf: Regenerated.
5323
5324 2011-02-19  Bruno Haible  <bruno@clisp.org>
5325
5326         stdint: Update documentation.
5327         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
5328
5329 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
5330
5331         stdint: omit redundant check for wchar.h
5332         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5333         always tests whether wchar.h exists, so remove the now-redundant test.
5334
5335 2011-02-18  Bruno Haible  <bruno@clisp.org>
5336
5337         stdint: Cut dependency to module 'wchar'.
5338         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5339         include the necessary prerequisites.
5340         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5341         * modules/stdint (Depends-on): Remove wchar.
5342         (Makefile.am): Substitute HAVE_WCHAR_H.
5343         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5344
5345 2011-02-18  Eric Blake  <eblake@redhat.com>
5346
5347         longlong: skip, rather than fail, on cross-compilation
5348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5349         when cross-compiling; regression from 2011-02-16.
5350
5351 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5352
5353         * NEWS: Mention 2011-02-08 change to stdlib.
5354
5355 2011-02-17  Bruno Haible  <bruno@clisp.org>
5356
5357         getloadavg: Add comments about platforms.
5358         * m4/getloadavg.m4: Add comment.
5359         * lib/getloadavg.c: Likewise.
5360
5361 2011-02-17  Bruno Haible  <bruno@clisp.org>
5362
5363         getloadavg: Fix link error on Solaris 2.6.
5364         * modules/getloadavg (Link): New section.
5365         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5366         linking test-getloadavg.
5367         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5368         getloadavg.
5369
5370 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5371
5372         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5373         It was 'int', but this doesn't match the IRIX 6.5 manual.
5374         Suggested by Bruno Haible in
5375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5376
5377 2011-02-17  Bruno Haible  <bruno@clisp.org>
5378
5379         havelib: Fix comments.
5380         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5381         change.
5382
5383 2011-02-17  Bruno Haible  <bruno@clisp.org>
5384
5385         havelib: Update config.rpath.
5386         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5387
5388 2011-02-17  Bruno Haible  <bruno@clisp.org>
5389
5390         getloadavg test: Add some plausibility checks.
5391         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5392         is improbable.
5393
5394 2011-02-16  Eric Blake  <eblake@redhat.com>
5395
5396         maintainer-makefile: make syntax-check a no-op from tarballs
5397         * top/maint.mk (no-vc-detected): New rule.
5398         (local-checks-available): Use it to avoid hanging if someone tries
5399         'make syntax-check' from a tarball.  Also append to any non-syntax
5400         checks already defined in cfg.mk.
5401
5402 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         longlong: tune, particularly for common case of c99
5405
5406         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5407         or running anything if c99, or if unsigned long long int does not
5408         work.  In either case, we know the answer without further tests.
5409         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5410         it at most once, and use its results for both long long int and
5411         unsigned long long int.  This is more likely to be efficient in
5412         the common case where the program wants to check for both long
5413         long int and unsigned long long int.
5414         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5415         since the answer is already known.
5416
5417 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5418
5419         getloadavg: set errno
5420         * lib/getloadavg.c: Set errno when returning -1.  If no other
5421         error number looks appropriate, set it to ENOSYS if the getloadavg
5422         looks like it can't possibly ever work, ENOTSUP otherwise.
5423         Suggested by Bruno Haible in
5424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5425
5426         getloadavg: trim unused parts and speed up 'configure'
5427         * NEWS: Document this.
5428         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5429         always compiled if getloadavg is absent.
5430         Move test code to ...
5431         * tests/test-getloadavg.c: New file, containing previous
5432         contents of test from lib/getloadavg.c.  It also contains
5433         suggestions by Bruno Haible in
5434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5435         * modules/getloadavg-tests: New file.
5436         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5437         Do tests in the same order as they're needed for getloadavg.c.
5438         Omit setgid-related tests that generate symbols KMEM_GROUP,
5439         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5440         Do only the tests that are needed to see whether the system has
5441         getloadavg, moving the other tests into ...
5442         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5443         NLIST_NAME_UNION; nobody should be using it.  Do not define
5444         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5445         relevant, as the user of this module shouldn't care how getloadavg
5446         is implemented.
5447
5448         getloadavg: omit unused var
5449         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5450
5451 2011-02-15  Jim Meyering  <meyering@redhat.com>
5452
5453         doc: update users.txt
5454         * users.txt: Update iwhd's URL.
5455
5456 2011-02-13  Bruno Haible  <bruno@clisp.org>
5457
5458         Consistent macro naming for macros that use GCC __attribute__.
5459         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5460         _ATTRIBUTE_NONNULL_.
5461         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5462         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5463         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5464         ATTRIBUTE_DEPRECATED.
5465         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5466         ATTRIBUTE_NORETURN.
5467         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5468         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5469         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5470         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5471         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5472         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5473         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5474         ATTRIBUTE_SENTINEL.
5475         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5476         ATTRIBUTE_RETURN_CHECK.
5477         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5478         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5479         ATTRIBUTE_NORETURN.
5480         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5481         Reported by Paul Eggert.
5482
5483 2011-02-13  Bruno Haible  <bruno@clisp.org>
5484
5485         Don't interfere with a program's definition of __attribute__.
5486         * lib/argp.h (__attribute__): Remove definition.
5487         (_GL_ATTRIBUTE_FORMAT): New macro.
5488         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5489         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5490         (_GL_ATTRIBUTE_FORMAT): New macro.
5491         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5492         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5493         GCC 3 or newer.
5494         * lib/error.h (__attribute__): Remove definition.
5495         (_GL_ATTRIBUTE_FORMAT): New macro.
5496         (error, error_at_line): Use it.
5497         * lib/hash.h (__attribute__): Remove definition.
5498         (ATTRIBUTE_WUR): Update definition. Define always.
5499         * lib/openat.h (__attribute__): Remove definition.
5500         (ATTRIBUTE_NORETURN): Update definition. Define always.
5501         * lib/sigpipe-die.h (__attribute__): Remove definition.
5502         (ATTRIBUTE_NORETURN): Update definition. Define always.
5503         * lib/vasnprintf.h (__attribute__): Remove definition.
5504         (_GL_ATTRIBUTE_FORMAT): New macro.
5505         (asnprintf, vasnprintf): Use it.
5506         * lib/xalloc.h (__attribute__): Remove definition.
5507         (ATTRIBUTE_NORETURN): Update definition. Define always.
5508         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5509         * lib/xmemdup0.h (__attribute__): Remove definition.
5510         (ATTRIBUTE_NORETURN): Update definition. Define always.
5511         * lib/xprintf.h (__attribute__): Remove definition.
5512         (_GL_ATTRIBUTE_FORMAT): New macro.
5513         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5514         * lib/xstrtol.h (__attribute__): Remove definition.
5515         (ATTRIBUTE_NORETURN): Update definition. Define always.
5516         * lib/xvasprintf.h (__attribute__): Remove definition.
5517         (_GL_ATTRIBUTE_FORMAT): New macro.
5518         (xasprintf, xvasprintf): Use it.
5519         * tests/test-argmatch.c (__attribute__): Remove definition.
5520         (ATTRIBUTE_NORETURN): Update definition. Define always.
5521         * tests/test-exclude.c (__attribute__): Remove definition.
5522         (ATTRIBUTE_NORETURN): Update definition. Define always.
5523         Reported by Paul Eggert.
5524
5525 2011-02-13  Bruno Haible  <bruno@clisp.org>
5526
5527         mbrtowc: Add more tests for native Windows platforms.
5528         * tests/test-mbrtowc-w32-1.sh: New file.
5529         * tests/test-mbrtowc-w32-2.sh: New file.
5530         * tests/test-mbrtowc-w32-3.sh: New file.
5531         * tests/test-mbrtowc-w32-4.sh: New file.
5532         * tests/test-mbrtowc-w32-5.sh: New file.
5533         * tests/test-mbrtowc-w32.c: New file.
5534         * modules/mbrtowc-tests (Files): Add them.
5535         (Makefile.am): Arrange to run these tests.
5536         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5537         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5538
5539 2011-02-13  Bruno Haible  <bruno@clisp.org>
5540
5541         mbrtowc: Work around native Windows bug.
5542         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5543         guess when no suitable locale for testing was found.
5544         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5545
5546 2011-02-13  Bruno Haible  <bruno@clisp.org>
5547
5548         mbsinit: Work around mingw bug.
5549         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5550         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5551         Windows.
5552         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5553
5554 2011-02-13  Bruno Haible  <bruno@clisp.org>
5555
5556         mbsinit: Don't crash for a NULL argument.
5557         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5558         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5559
5560 2011-02-13  Bruno Haible  <bruno@clisp.org>
5561
5562         Don't interfere with a program's definition of __attribute__.
5563         * lib/stdio.in.h (__attribute__): Remove definition.
5564         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5565         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5566         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5567         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5568         * lib/string.in.h (__attribute__): Remove definition.
5569         Reported by Paul Eggert.
5570
5571 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         stdlib: don't get in the way of non-GCC __attribute__
5574         See thread starting at
5575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5576         Revert previous stdlib change, installing the following instead:
5577         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5578         to get in the way of a non-GCC compiler that supports __attribute__.
5579         (_GL_ATTRIBUTE_RETURN): New macro.
5580         (_Exit): Use it instead of __attribute__.
5581
5582 2011-02-12  Bruno Haible  <bruno@clisp.org>
5583
5584         quotearg test: Avoid test failure on mingw.
5585         * tests/test-quotearg.sh: Convert the locale identifier from native
5586         Windows syntax to Unix syntax.
5587
5588 2011-02-12  Bruno Haible  <bruno@clisp.org>
5589
5590         setlocale: Prefer gnulib's override over libintl's override.
5591         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5592         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5593         GNULIB_defined_setlocale is set.
5594
5595 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5596
5597         stdlib: support non-GCC __attribute__
5598
5599         Fix a serious and tricky problem encountered when attempting to
5600         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5601         5.5, but it crashed due to memory corruption on Solaris 10 with
5602         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5603         bits that are otherwise zero.  This tagging is optional inside
5604         Emacs but is preferred and is used when __attribute__ ((__aligned
5605         (8))) works, as it does with both recent-enough GCC and with Sun C
5606         5.11.  However, Sun C 5.11 is not GCC and does not #define
5607         __GNUC__ and __GNUC_MINOR__.
5608
5609         When I added the getloadavg module to Emacs, it brought in
5610         stdlib.in.h, which contained this fragment:
5611
5612            #ifndef __attribute__
5613            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5614            #  define __attribute__(Spec)   /* empty */
5615            # endif
5616            #endif
5617
5618         When files that include <stdlib.h> were compiled with Sun C 5.11,
5619         the above code disabled __attribute__ ((__aligned (8))), which
5620         caused variables to not be properly aligned, which eventually led
5621         to the pointer corruption mentioned above.  (This was a bit hard
5622         to diagnose, unfortunately.)
5623
5624         Several "#define __attribute__(X) /* empty */" code snippets need
5625         to be eradicated from Gnulib to work with non-GCC compilers that
5626         support __attribute__.  The Autoconf way to do this is to test for
5627         each kind of attribute that we want support for, and selectively
5628         enable that in source code.
5629
5630         Fix this problem just for stdlib.h, by adding a test for the
5631         __noreturn__ attribute, and change stdlib.in.h to use that test
5632         when needed.  This technique can be easily generalized to the
5633         other *.in.h files and attributes, and a similar technique can be
5634         used for *.h and *.c files.  This patch is enough to solve the
5635         problem for Emacs + getloadavg, and I thought I'd publish it for
5636         feedback before undertaking further, similar fixes in other
5637         modules.
5638
5639         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5640         because it's not needed for stdlib.h.  It merely substitutes the
5641         value directly into stdlib.h.  We may well need to #define it, or
5642         similar symbols, for other modules, but it's nice to also have an
5643         option to not #define it for applications like Emacs that do not
5644         need it.
5645
5646         * lib/stdlib.in.h (__attribute__): Do not #define.
5647         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5648         be defined only if the _Exit module is also used.
5649         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5651         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5652         platforms.
5653         * modules/_Exit (Files): Add m4/attribute.m4.
5654         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5655         * m4/attribute.m4: New file.
5656
5657 2011-02-12  Bruno Haible  <bruno@clisp.org>
5658
5659         wcsrtombs: Work around bug on native Windows.
5660         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5661         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5662         instead of len.
5663         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5664
5665 2011-02-12  Bruno Haible  <bruno@clisp.org>
5666
5667         mbsrtowcs: Work around bug on native Windows.
5668         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5669         against mingw bug.
5670         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5671
5672 2011-02-12  Bruno Haible  <bruno@clisp.org>
5673
5674         Avoid setlocale bugs in tests.
5675         * modules/btowc (Dependencies): Add setlocale.
5676         * modules/c-strcase (Dependencies): Likewise.
5677         * modules/mbmemcasecmp (Dependencies): Likewise.
5678         * modules/mbmemcasecoll (Dependencies): Likewise.
5679         * modules/mbrtowc (Dependencies): Likewise.
5680         * modules/mbscasecmp (Dependencies): Likewise.
5681         * modules/mbscasestr (Dependencies): Likewise.
5682         * modules/mbschr (Dependencies): Likewise.
5683         * modules/mbscspn (Dependencies): Likewise.
5684         * modules/mbsinit (Dependencies): Likewise.
5685         * modules/mbsncasecmp (Dependencies): Likewise.
5686         * modules/mbsnrtowcs (Dependencies): Likewise.
5687         * modules/mbspbrk (Dependencies): Likewise.
5688         * modules/mbspcasecmp (Dependencies): Likewise.
5689         * modules/mbsrchr (Dependencies): Likewise.
5690         * modules/mbsrtowcs (Dependencies): Likewise.
5691         * modules/mbsspn (Dependencies): Likewise.
5692         * modules/mbsstr (Dependencies): Likewise.
5693         * modules/nl_langinfo (Dependencies): Likewise.
5694         * modules/quotearg (Dependencies): Likewise.
5695         * modules/unicase/locale-language (Dependencies): Likewise.
5696         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5697         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5698         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5699         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5700         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5701         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5702         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5703         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5704         * modules/vasnprintf-posix (Dependencies): Likewise.
5705         * modules/wcrtomb (Dependencies): Likewise.
5706         * modules/wcsnrtombs (Dependencies): Likewise.
5707         * modules/wcsrtombs (Dependencies): Likewise.
5708
5709 2011-02-12  Bruno Haible  <bruno@clisp.org>
5710
5711         setlocale: Workaround native Windows bug.
5712         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5713         succeeds but sets LC_CTYPE to "C", report a failure.
5714         * tests/test-setlocale2.sh: New file.
5715         * tests/test-setlocale2.c: New file.
5716         * modules/setlocale-tests (Files): Add the new files.
5717         (Makefile.am): Enable test-setlocale2.sh test.
5718         * doc/posix-functions/setlocale.texi: Mention workaround.
5719
5720 2011-02-11  Bruno Haible  <bruno@clisp.org>
5721
5722         Tests for module 'setlocale'.
5723         * modules/setlocale-tests: New file.
5724         * tests/test-setlocale1.sh: New file.
5725         * tests/test-setlocale1.c: New file.
5726
5727         New module 'setlocale'.
5728         * lib/locale.in.h (setlocale): New declaration.
5729         * lib/setlocale.c: New file, based on
5730         gettext/gettext-runtime/intl/setlocale.c.
5731         * m4/setlocale.m4: New file.
5732         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5733         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5734         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5735         REPLACE_SETLOCALE.
5736         * modules/setlocale: New file.
5737         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5738         * doc/posix-functions/setlocale.texi: Mention the new module.
5739
5740 2011-02-11  Bruno Haible  <bruno@clisp.org>
5741
5742         Prepare for locale dependent tests on mingw.
5743         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5744         because it has the wrong locale encoding.
5745         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5746         French_France.1252 instead of "fr".
5747         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5748         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5749         because it has the wrong locale encoding.
5750         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5751         native Windows, try Turkish_Turkey.65001.
5752         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5753         Chinese_China.54936.
5754
5755         Prepare for locale dependent tests on mingw.
5756         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5757         differently.
5758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5759         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5760         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5762
5763 2011-02-11  Eric Blake  <eblake@redhat.com>
5764
5765         strptime: avoid compiler warnings
5766         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5767         compiler warnings about dead code.
5768         Reported by Daniel P. Berrange.
5769
5770 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5771
5772         doc: update users.txt
5773         * users.txt: Add rcs.
5774
5775 2011-02-10  John W. Eaton  <jwe@gnu.org>
5776
5777         doc: update users.txt
5778         * users.txt: Add octave.
5779
5780 2011-02-10  Jim Meyering  <meyering@redhat.com>
5781
5782         doc: update users.txt
5783         * users.txt: Add iwhd.
5784
5785 2011-02-09  Bruno Haible  <bruno@clisp.org>
5786
5787         gnulib-tool: Make copyright notice adjustment more robust.
5788         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5789         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5790         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5791         License".
5792         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5793
5794 2011-02-06  Bruno Haible  <bruno@clisp.org>
5795
5796         New module 'towctrans'.
5797         * modules/towctrans: New file.
5798         * lib/wctype.in.h (towctrans): New declaration.
5799         * lib/towctrans.c: New file.
5800         * lib/towctrans-impl.h: New file.
5801         * m4/towctrans.m4: New file.
5802         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5803         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5804         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5805         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5806         * doc/posix-functions/towctrans.texi: Mention the new module.
5807
5808 2011-02-06  Bruno Haible  <bruno@clisp.org>
5809
5810         New module 'wctrans'.
5811         * modules/wctrans: New file.
5812         * lib/wctype.in.h (wctrans): New declaration.
5813         * lib/wctrans.c: New file.
5814         * lib/wctrans-impl.h: New file.
5815         * m4/wctrans.m4: New file.
5816         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5817         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5818         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5819         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5820         * doc/posix-functions/wctrans.texi: Mention the new module.
5821
5822 2011-02-06  Bruno Haible  <bruno@clisp.org>
5823
5824         New module 'iswctype'.
5825         * modules/iswctype: New file.
5826         * lib/wctype.in.h (iswctype): New declaration.
5827         * lib/iswctype.c: New file.
5828         * lib/iswctype-impl.h: New file.
5829         * m4/iswctype.m4: New file.
5830         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5831         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5832         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5833         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5834         * doc/posix-functions/iswctype.texi: Mention the new module and the
5835         HP-UX 11.00 problem.
5836
5837 2011-02-06  Bruno Haible  <bruno@clisp.org>
5838
5839         New module 'wctype'.
5840         * modules/wctype: Change to represent the wctype() substitute.
5841         * lib/wctype.in.h (wctype): New declaration.
5842         * lib/wctype.c: New file.
5843         * lib/wctype-impl.h: New file.
5844         * m4/wctype.m4: New file.
5845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5847         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5848         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5849         * doc/posix-functions/wctype.texi: Mention the new module and the
5850         HP-UX 11.00 problem.
5851
5852 2011-02-06  Bruno Haible  <bruno@clisp.org>
5853
5854         wctype-h: Ensure wctype_t and wctrans_t are defined.
5855         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5856         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5857         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5858         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5859         HAVE_WCTRANS_T.
5860         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5861
5862 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5863
5864         flock: fix license typo
5865
5866         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5867         omitted.
5868
5869 2011-02-08  Bruno Haible  <bruno@clisp.org>
5870
5871         Split large sed scripts, for HP-UX sed.
5872         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5873         to avoid HP-UX limit of 99 commands, in the near future.
5874         * modules/stdlib (Makefile.am): Likewise.
5875         * modules/unistd (Makefile.am): Likewise.
5876         * modules/wchar (Makefile.am): Likewise.
5877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5878         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5880
5881 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5882             Bruno Haible  <bruno@clisp.org>
5883
5884         stdlib: improve random_r modularization
5885         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5886         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5887         you also need the random_r module to get this material right.
5888         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5889         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5890         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5891
5892 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         stdlib: don't depend on stdint
5895         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5896         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5897         be independent of whether stdint.h is needed.
5898         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5899         here, instead of ...
5900         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5901         struct random_data should be using the random_r module, not just
5902         the stdlib module (which wouldn't make sense: what package needs
5903         just struct random_data without also needing random_r?).
5904         * modules/stdlib (Depends-on): Remove stdint.
5905
5906         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5907         See the thread rooted at
5908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5909         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5910         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5911         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5912         __VMS)); previously it was always included (via fcntl--.h).
5913         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5914         hand; this is good enough for load averages.  Also, do not use
5915         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5916         flags directly if available and don't bother otherwise.  (Packages
5917         that need the extra reliability should use the modules that define
5918         these flags on older platforms that lack them.)
5919         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5920         fcntl-safer.
5921
5922 2011-02-08  Jim Meyering  <meyering@redhat.com>
5923
5924         di-set.h, ino-map.h: add multiple-inclusion guard
5925         Technically, the guard is required only for ino-map.h, due to its
5926         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5927         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5928         * lib/ino-map.h: Likewise.
5929
5930 2011-02-06  Bruno Haible  <bruno@clisp.org>
5931
5932         iswblank: Ensure declaration on glibc systems.
5933         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5934         * modules/iswblank (Dependencies): Add 'extensions'.
5935         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5936
5937 2011-02-06  Bruno Haible  <bruno@clisp.org>
5938
5939         New module 'iswblank'.
5940         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5941         * modules/iswblank: New file.
5942         * modules/wctype-h (Files): Remove lib/iswblank.c.
5943         (Makefile.am): Substitute GNULIB_ISWBLANK.
5944         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5945         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5946         (gl_WCTYPE_H_DEFAULTS): New macro.
5947         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5948         * modules/iswblank-tests: New file.
5949         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5950         * tests/test-wctype-h.c (main): Remove iswblank tests.
5951         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5952         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5953         of 'wctype-h'.
5954         * NEWS: Mention the change.
5955         * modules/mbchar (Depends-on): Add iswblank.
5956
5957 2011-02-08  Bruno Haible  <bruno@clisp.org>
5958
5959         di-set tests: Refactor.
5960         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5961         unnecessary includes.
5962         (ASSERT): Remove macro.
5963         (main): Make C90 compliant by avoiding variable declaration after
5964         statement.
5965         * modules/di-set-tests (Files): Add tests/macros.h.
5966
5967 2011-02-08  Bruno Haible  <bruno@clisp.org>
5968
5969         ino-map tests: Refactor.
5970         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5971         unnecessary includes.
5972         (ASSERT): Remove macro.
5973         (main): Make C90 compliant by avoiding variable declaration after
5974         statement.
5975         * modules/ino-map-tests (Files): Add tests/macros.h.
5976
5977 2011-02-08  Jim Meyering  <meyering@redhat.com>
5978
5979         di-set: add "const" to a cast
5980         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5981         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5982
5983 2011-02-06  Bruno Haible  <bruno@clisp.org>
5984
5985         Rename module 'wctype' to 'wctype-h'.
5986         * modules/wctype-h: Renamed from modules/wctype.
5987         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5988         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5989         (Files, Depends-on, Makefile.am): Update.
5990         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5991         (Files, Makefile.am): Update.
5992         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5993         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5994         * doc/posix-headers/wctype.texi: Update.
5995         * doc/posix-functions/iswalnum.texi: Update.
5996         * doc/posix-functions/iswalpha.texi: Update.
5997         * doc/posix-functions/iswblank.texi: Update.
5998         * doc/posix-functions/iswcntrl.texi: Update.
5999         * doc/posix-functions/iswdigit.texi: Update.
6000         * doc/posix-functions/iswgraph.texi: Update.
6001         * doc/posix-functions/iswlower.texi: Update.
6002         * doc/posix-functions/iswprint.texi: Update.
6003         * doc/posix-functions/iswpunct.texi: Update.
6004         * doc/posix-functions/iswspace.texi: Update.
6005         * doc/posix-functions/iswupper.texi: Update.
6006         * doc/posix-functions/iswxdigit.texi: Update.
6007         * doc/posix-functions/towlower.texi: Update.
6008         * doc/posix-functions/towupper.texi: Update.
6009         * NEWS: Mention the change.
6010         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
6011         * modules/mbchar (Dependencies): Likewise.
6012         * modules/mbswidth (Dependencies): Likewise.
6013         * modules/quotearg (Dependencies): Likewise.
6014         * modules/regex (Dependencies): Likewise.
6015         * modules/wcscasecmp (Dependencies): Likewise.
6016         * modules/wcsncasecmp (Dependencies): Likewise.
6017         * modules/wcwidth (Dependencies): Likewise.
6018
6019 2011-02-06  Bruno Haible  <bruno@clisp.org>
6020
6021         New module 'wcswidth'.
6022         * modules/wcswidth: New file.
6023         * lib/wchar.in.h (wcswidth): New declaration.
6024         * lib/wcswidth.c: New file.
6025         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
6026         * m4/wcswidth.m4: New file.
6027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
6028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
6029         REPLACE_WCSWIDTH.
6030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
6031         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
6032         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
6033         * doc/posix-functions/wcswidth.texi: Mention the new module.
6034
6035 2011-02-06  Bruno Haible  <bruno@clisp.org>
6036
6037         New module 'wcstok'.
6038         * modules/wcstok: New file.
6039         * lib/wchar.in.h (wcstok): New declaration.
6040         * lib/wcstok.c: New file.
6041         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
6042         * m4/wcstok.m4: New file.
6043         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
6044         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
6045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
6046         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
6047         * doc/posix-functions/wcstok.texi: Mention the new module.
6048
6049 2011-02-06  Bruno Haible  <bruno@clisp.org>
6050
6051         New module 'wcsstr'.
6052         * modules/wcsstr: New file.
6053         * lib/wchar.in.h (wcsstr): New declaration.
6054         * lib/wcsstr.c: New file.
6055         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
6056         * m4/wcsstr.m4: New file.
6057         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
6058         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
6059         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
6060         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
6061         * doc/posix-functions/wcsstr.texi: Mention the new module.
6062
6063 2011-02-06  Bruno Haible  <bruno@clisp.org>
6064
6065         New module 'wcspbrk'.
6066         * modules/wcspbrk: New file.
6067         * lib/wchar.in.h (wcspbrk): New declaration.
6068         * lib/wcspbrk.c: New file.
6069         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
6070         * m4/wcspbrk.m4: New file.
6071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
6072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
6073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
6074         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
6075         * doc/posix-functions/wcspbrk.texi: Mention the new module.
6076
6077 2011-02-06  Bruno Haible  <bruno@clisp.org>
6078
6079         New module 'wcsspn'.
6080         * modules/wcsspn: New file.
6081         * lib/wchar.in.h (wcsspn): New declaration.
6082         * lib/wcsspn.c: New file.
6083         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
6084         * m4/wcsspn.m4: New file.
6085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
6086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
6087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
6088         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
6089         * doc/posix-functions/wcsspn.texi: Mention the new module.
6090
6091 2011-02-06  Bruno Haible  <bruno@clisp.org>
6092
6093         New module 'wcscspn'.
6094         * modules/wcscspn: New file.
6095         * lib/wchar.in.h (wcscspn): New declaration.
6096         * lib/wcscspn.c: New file.
6097         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
6098         * m4/wcscspn.m4: New file.
6099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
6100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
6101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
6102         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
6103         * doc/posix-functions/wcscspn.texi: Mention the new module.
6104
6105 2011-02-06  Bruno Haible  <bruno@clisp.org>
6106
6107         New module 'wcsrchr'.
6108         * modules/wcsrchr: New file.
6109         * lib/wchar.in.h (wcsrchr): New declaration.
6110         * lib/wcsrchr.c: New file.
6111         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
6112         * m4/wcsrchr.m4: New file.
6113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
6114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
6115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
6116         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
6117         * doc/posix-functions/wcsrchr.texi: Mention the new module.
6118
6119 2011-02-06  Bruno Haible  <bruno@clisp.org>
6120
6121         New module 'wcschr'.
6122         * modules/wcschr: New file.
6123         * lib/wchar.in.h (wcschr): New declaration.
6124         * lib/wcschr.c: New file.
6125         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
6126         * m4/wcschr.m4: New file.
6127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
6128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
6129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
6130         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
6131         * doc/posix-functions/wcschr.texi: Mention the new module.
6132
6133 2011-02-06  Bruno Haible  <bruno@clisp.org>
6134
6135         New module 'wcsdup'.
6136         * modules/wcsdup: New file.
6137         * lib/wchar.in.h (wcsdup): New declaration.
6138         * lib/wcsdup.c: New file.
6139         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
6140         * m4/wcsdup.m4: New file.
6141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
6142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
6143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
6144         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
6145         * doc/posix-functions/wcsdup.texi: Mention the new module.
6146
6147 2011-02-06  Bruno Haible  <bruno@clisp.org>
6148
6149         New module 'wcsxfrm'.
6150         * modules/wcsxfrm: New file.
6151         * lib/wchar.in.h (wcsxfrm): New declaration.
6152         * lib/wcsxfrm.c: New file.
6153         * lib/wcsxfrm-impl.h: New file.
6154         * m4/wcsxfrm.m4: New file.
6155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
6156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
6157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
6158         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
6159         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
6160
6161 2011-02-06  Bruno Haible  <bruno@clisp.org>
6162
6163         New module 'wcscoll'.
6164         * modules/wcscoll: New file.
6165         * lib/wchar.in.h (wcscoll): New declaration.
6166         * lib/wcscoll.c: New file.
6167         * lib/wcscoll-impl.h: New file.
6168         * m4/wcscoll.m4: New file.
6169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
6170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
6171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
6172         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
6173         * doc/posix-functions/wcscoll.texi: Mention the new module.
6174
6175 2011-02-06  Bruno Haible  <bruno@clisp.org>
6176
6177         New module 'wcsncasecmp'.
6178         * modules/wcsncasecmp: New file.
6179         * lib/wchar.in.h (wcsncasecmp): New declaration.
6180         * lib/wcsncasecmp.c: New file.
6181         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
6182         * m4/wcsncasecmp.m4: New file.
6183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
6184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
6185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
6186         HAVE_WCSNCASECMP.
6187         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
6188         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
6189
6190 2011-02-06  Bruno Haible  <bruno@clisp.org>
6191
6192         New module 'wcscasecmp'.
6193         * modules/wcscasecmp: New file.
6194         * lib/wchar.in.h (wcscasecmp): New declaration.
6195         * lib/wcscasecmp.c: New file.
6196         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
6197         * m4/wcscasecmp.m4: New file.
6198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
6199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
6200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
6201         HAVE_WCSCASECMP.
6202         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
6203         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
6204
6205 2011-02-05  Bruno Haible  <bruno@clisp.org>
6206
6207         New module 'wcsncmp'.
6208         * modules/wcsncmp: New file.
6209         * lib/wchar.in.h (wcsncmp): New declaration.
6210         * lib/wcsncmp.c: New file.
6211         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
6212         * m4/wcsncmp.m4: New file.
6213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
6214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
6215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
6216         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
6217         * doc/posix-functions/wcsncmp.texi: Mention the new module.
6218
6219 2011-02-05  Bruno Haible  <bruno@clisp.org>
6220
6221         New module 'wcscmp'.
6222         * modules/wcscmp: New file.
6223         * lib/wchar.in.h (wcscmp): New declaration.
6224         * lib/wcscmp.c: New file.
6225         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
6226         * m4/wcscmp.m4: New file.
6227         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
6228         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
6229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
6230         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
6231         * doc/posix-functions/wcscmp.texi: Mention the new module.
6232
6233 2011-02-05  Bruno Haible  <bruno@clisp.org>
6234
6235         New module 'wcsncat'.
6236         * modules/wcsncat: New file.
6237         * lib/wchar.in.h (wcsncat): New declaration.
6238         * lib/wcsncat.c: New file.
6239         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
6240         * m4/wcsncat.m4: New file.
6241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
6242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
6243         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
6244         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
6245         * doc/posix-functions/wcsncat.texi: Mention the new module.
6246
6247 2011-02-05  Bruno Haible  <bruno@clisp.org>
6248
6249         New module 'wcscat'.
6250         * modules/wcscat: New file.
6251         * lib/wchar.in.h (wcscat): New declaration.
6252         * lib/wcscat.c: New file.
6253         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
6254         * m4/wcscat.m4: New file.
6255         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
6256         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
6257         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
6258         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
6259         * doc/posix-functions/wcscat.texi: Mention the new module.
6260
6261 2011-02-05  Bruno Haible  <bruno@clisp.org>
6262
6263         New module 'wcpncpy'.
6264         * modules/wcpncpy: New file.
6265         * lib/wchar.in.h (wcpncpy): New declaration.
6266         * lib/wcpncpy.c: New file.
6267         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
6268         * m4/wcpncpy.m4: New file.
6269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
6270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
6271         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
6272         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
6273         * doc/posix-functions/wcpncpy.texi: Mention the new module.
6274
6275 2011-02-05  Bruno Haible  <bruno@clisp.org>
6276
6277         New module 'wcsncpy'.
6278         * modules/wcsncpy: New file.
6279         * lib/wchar.in.h (wcsncpy): New declaration.
6280         * lib/wcsncpy.c: New file.
6281         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
6282         * m4/wcsncpy.m4: New file.
6283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
6284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
6285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
6286         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
6287         * doc/posix-functions/wcsncpy.texi: Mention the new module.
6288
6289 2011-02-05  Bruno Haible  <bruno@clisp.org>
6290
6291         New module 'wcpcpy'.
6292         * modules/wcpcpy: New file.
6293         * lib/wchar.in.h (wcpcpy): New declaration.
6294         * lib/wcpcpy.c: New file.
6295         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
6296         * m4/wcpcpy.m4: New file.
6297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
6298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
6299         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
6300         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
6301         * doc/posix-functions/wcpcpy.texi: Mention the new module.
6302
6303 2011-02-05  Bruno Haible  <bruno@clisp.org>
6304
6305         New module 'wcscpy'.
6306         * modules/wcscpy: New file.
6307         * lib/wchar.in.h (wcscpy): New declaration.
6308         * lib/wcscpy.c: New file.
6309         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
6310         * m4/wcscpy.m4: New file.
6311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
6312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
6313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
6314         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
6315         * doc/posix-functions/wcscpy.texi: Mention the new module.
6316
6317 2011-02-05  Bruno Haible  <bruno@clisp.org>
6318
6319         New module 'wcsnlen'.
6320         * modules/wcsnlen: New file.
6321         * lib/wchar.in.h (wcsnlen): New declaration.
6322         * lib/wcsnlen.c: New file.
6323         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
6324         * m4/wcsnlen.m4: New file.
6325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
6326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
6327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
6328         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
6329         * doc/posix-functions/wcsnlen.texi: Mention the new module.
6330
6331 2011-02-05  Bruno Haible  <bruno@clisp.org>
6332
6333         New module 'wcslen'.
6334         * modules/wcslen: New file.
6335         * lib/wchar.in.h (wcslen): New declaration.
6336         * lib/wcslen.c: New file.
6337         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6338         * m4/wcslen.m4: New file.
6339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6342         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6343         * doc/posix-functions/wcslen.texi: Mention the new module.
6344
6345 2011-02-05  Bruno Haible  <bruno@clisp.org>
6346
6347         New module 'wmemset'.
6348         * modules/wmemset: New file.
6349         * lib/wchar.in.h (wmemset): New declaration.
6350         * lib/wmemset.c: New file.
6351         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6352         * m4/wmemset.m4: New file.
6353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6355         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6356         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6357         * doc/posix-functions/wmemset.texi: Mention the new module.
6358
6359 2011-02-05  Bruno Haible  <bruno@clisp.org>
6360
6361         New module 'wmemmove'.
6362         * modules/wmemmove: New file.
6363         * lib/wchar.in.h (wmemmove): New declaration.
6364         * lib/wmemmove.c: New file.
6365         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6366         * m4/wmemmove.m4: New file.
6367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6369         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6370         HAVE_WMEMMOVE.
6371         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6372         * doc/posix-functions/wmemmove.texi: Mention the new module.
6373
6374 2011-02-05  Bruno Haible  <bruno@clisp.org>
6375
6376         New module 'wmemcpy'.
6377         * modules/wmemcpy: New file.
6378         * lib/wchar.in.h (wmemcpy): New declaration.
6379         * lib/wmemcpy.c: New file.
6380         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6381         * m4/wmemcpy.m4: New file.
6382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6385         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6386         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6387
6388 2011-02-05  Bruno Haible  <bruno@clisp.org>
6389
6390         New module 'wmemcmp'.
6391         * modules/wmemcmp: New file.
6392         * lib/wchar.in.h (wmemcmp): New declaration.
6393         * lib/wmemcmp.c: New file.
6394         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6395         * m4/wmemcmp.m4: New file.
6396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6398         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6399         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6400         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6401
6402 2011-02-07  Jim Meyering  <meyering@redhat.com>
6403
6404         di-set, ino-map: new modules, from coreutils
6405         * lib/di-set.c: New file.
6406         * lib/di-set.h: Likewise.
6407         * lib/ino-map.c: Likewise.
6408         * lib/ino-map.h: Likewise.
6409         * modules/di-set: Likewise.
6410         * modules/di-set-tests: Likewise.
6411         * modules/ino-map: Likewise.
6412         * modules/ino-map-tests: Likewise.
6413         * tests/test-di-set.c: Likewise.
6414         * tests/test-ino-map.c: Likewise.
6415
6416 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6417
6418         getloadavg: merge minor changes from Emacs
6419
6420         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6421         (getloadavg): Use memset, not bzero.
6422
6423         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6424         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6425         clash (bug#86).
6426
6427 2010-11-14  Bruno Haible  <bruno@clisp.org>
6428
6429         Allow multiple gnulib generated replacements to coexist.
6430         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6431         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6432         * lib/langinfo.in.h (nl_item): Likewise.
6433         * lib/math.in.h (_NaN, NAN): Likewise.
6434         * lib/netdb.in.h (struct addrinfo): Likewise.
6435         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6436         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6437         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6438         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6439         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6440         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6441         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6442         pthread_mutexattr_init, pthread_mutexattr_settype,
6443         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6444         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6445         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6446         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6447         * lib/sched.in.h (struct sched_param): Likewise.
6448         * lib/se-selinux.in.h (security_class_t, security_context_t,
6449         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6450         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6451         lsetfilecon, fsetfilecon, security_check_context,
6452         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6453         Likewise.
6454         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6455         Likewise.
6456         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6457         _gl_function_taking_int_returning_void_t, union sigval,
6458         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6459         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6460         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6461         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6462         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6463         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6464         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6465         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6466         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6467         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6468         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6469         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6470         socklen_t, rpl_fd_isset): Likewise.
6471         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6472         * lib/sys_time.in.h (struct timeval): Likewise.
6473         * lib/sys_times.in.h (struct tms): Likewise.
6474         * lib/sys_utsname.in.h (struct utsname):
6475         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6476         * lib/unistd.in.h (getpagesize): Likewise.
6477         * lib/wchar.in.h (mbstate_t): Likewise.
6478         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6479         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6480         towlower, towupper): Likewise.
6481         Reported by Sam Steingold <sds@gnu.org>.
6482
6483 2011-02-05  Eric Blake  <eblake@redhat.com>
6484
6485         unsetenv: work around Haiku issues
6486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6487         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6488
6489 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6490
6491         libposix: avoid calling error() within libposix
6492         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6493         is defined.
6494
6495 2011-02-05  Eric Blake  <eblake@redhat.com>
6496
6497         strerror_r-posix: port to cygwin
6498         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6499         implementation.
6500         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6501         * tests/test-strerror_r.c (main): Fix test.
6502         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6503         issue.
6504
6505 2011-02-05  Bruno Haible  <bruno@clisp.org>
6506
6507         New module 'wmemchr'.
6508         * modules/wmemchr: New file.
6509         * lib/wchar.in.h (wmemchr): New declaration.
6510         * lib/wmemchr.c: New file.
6511         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6512         * m4/wmemchr.m4: New file.
6513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6515         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6516         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6517         * doc/posix-functions/wmemchr.texi: Mention the new module.
6518
6519 2011-02-04  Eric Blake  <eblake@redhat.com>
6520
6521         fdopendir: detect FreeBSD bug
6522         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6523         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6524
6525 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6526
6527         stdbool: do not define HAVE_STDBOOL_H
6528         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6529         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6530         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6531         imported from the latest Autoconf git.  It was motivated by Emacs,
6532         which uses gnulib but does not need HAVE_STDBOOL_H.
6533
6534 2011-02-04  Bruno Haible  <bruno@clisp.org>
6535
6536         wcsnrtombs: Prepare for new module wwcsnrtombs.
6537         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6538         * lib/wcsnrtombs.c: Include it.
6539         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6540
6541         wcsrtombs: Prepare for new module wwcsrtombs.
6542         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6543         * lib/wcsrtombs.c: Include it.
6544         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6545
6546         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6547         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6548         * lib/mbsnrtowcs.c: Include it.
6549         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6550
6551         mbsrtowcs: Prepare for new module mbsrtowwcs.
6552         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6553         * lib/mbsrtowcs.c: Include it.
6554         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6555
6556 2011-02-04  Bruno Haible  <bruno@clisp.org>
6557
6558         vasnprintf: Reduce use of malloc for small format strings.
6559         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6560         (arguments): Add room for the first 7 arguments.
6561         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6562         (char_directives, u8_directives, u16_directives, u32_directives): Add
6563         room for the first 7 directives.
6564         * lib/printf-parse.c: Include <string.h>.
6565         (PRINTF_PARSE): Change memory handling code so that it uses the first
6566         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6567         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6568         Reported by Pádraig Brady <P@draigbrady.com>.
6569
6570 2011-01-31  Eric Blake  <eblake@redhat.com>
6571
6572         dup2: work around Haiku bug
6573         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6574         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6575         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6576         * tests/test-dup2.c (main): Enhance test.
6577
6578 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6579
6580         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6581         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6582         declared by eglibc 2.11.2.
6583         * lib/stdio.in.h: Likewise.
6584
6585 2011-01-31  Eric Blake  <eblake@redhat.com>
6586
6587         ignore-value: add missing test dependency
6588         * tests/test-ignore-value.c: Revert previous change; stdio.h
6589         provides off_t.
6590         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6591
6592 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6593
6594         mktime: clarify long_int width checking
6595         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6596         the top level, to make it clearer that the assumption about
6597         long_int width is being checked.  See
6598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6599
6600 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6601
6602         ignore-value: Fix self-test.
6603         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6604
6605 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6606
6607         TYPE_MAXIMUM: avoid theoretically undefined behavior
6608         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6609         negative number, which the C Standard says has undefined behavior.
6610         In practice this is not a problem, but might as well do it by the book.
6611         Reported by Rich Felker and Eric Blake; see
6612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6613         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6614         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6616         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6617         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6618         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6619
6620         mktime: #undef mktime before #defining it
6621         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6622
6623         mktime: systematically normalize tm_isdst comparisons
6624         * lib/mktime.c (isdst_differ): New function.
6625         (__mktime_internal): Use it systematically for all isdst comparisons.
6626         This completes the fix for libc BZ #6723, and removes the need for
6627         normalizing tm_isdst.  See
6628         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6629         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6630
6631         mktime: fix some integer overflow issues and sidestep the rest
6632
6633         This was prompted by a bug report by Benjamin Lindner for MinGW
6634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6635         His bug is due to signed integer overflow (0 - INT_MIN), and I
6636         I scanned through mktime.c looking for other integer overflow
6637         problems, fixing all the bugs I found.
6638
6639         Although the C Standard says the resulting code is still not safe
6640         in the presence of integer overflow, in practice it should be good
6641         enough for all real-world two's-complement implementations, except
6642         for debugging environments that deliberately trap on integer
6643         overflow (e.g., gcc -ftrapv).
6644
6645         * lib/mktime.c (WRAPV): New macro.
6646         (SHR): Also check that long_int and time_t shift right in the
6647         usual way, before using the fast-but-unportable method.
6648         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6649         used.  The code already assumed two's complement, so there's
6650         no need to test for alternatives.  All uses removed.
6651         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6652         the C standard.  Problem reported by Rich Felker in
6653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6654         (twos_complement_arithmetic): Also check long_int and time_t.
6655         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6656         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6657         (__mktime_internal): Avoid integer overflow with unary subtraction
6658         in two instances where -1 - X is an adequate replacement for -X,
6659         since the calculations are approximate.
6660
6661 2011-01-29  Eric Blake  <eblake@redhat.com>
6662
6663         mktime: avoid infinite loop
6664         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6665         type; behavior is still undefined but portable to all known targets.
6666         Reported by Rich Felker.
6667
6668 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6669
6670         rename, unlink, same-inode: Relicense.
6671         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6672         * modules/unlink (License): Likewise.
6673         * modules/same-inode (License): Likewise.
6674
6675 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6676
6677         mktime: avoid problems on NetBSD 5 / i386
6678         * lib/mktime.c (long_int): New type.  This works around a problem
6679         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6680         but time_t is 64 bits, and where I expect the existing code is
6681         wrong in some cases.
6682         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6683         (ydhms_diff): Bring back the compile-time check for wide-enough
6684         year and yday.
6685
6686         mktime: fix misspelling in comment
6687         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6688         This merges all recent glibc changes of importance.
6689
6690 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6691
6692         move-if-change: cope with concurrent mv of identical file.
6693         * build-aux/move-if-change (CMPPROG): Accept environment
6694         variable as an override for `cmp'.
6695         (usage): Document CMPPROG.
6696         Adjust comparison to drop stdout.  Cope with failure of mv if
6697         the target file exists and is identical to the source, for
6698         parallel builds.
6699         Report from H.J. Lu against binutils in PR binutils/12283.
6700
6701 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6702
6703         * users.txt: Mention sharutils.
6704
6705 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6706
6707         * users.txt: Mention OATH Toolkit.
6708
6709 2011-01-27  Bruno Haible  <bruno@clisp.org>
6710
6711         Prepare for supporting FreeBSD 10.
6712         * build-aux/config.libpath: Remove handling of freebsd1*.
6713
6714 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6715
6716         Prepare for supporting FreeBSD 10.
6717         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6718         match FreeBSD 10.0.
6719
6720 2011-01-27  Bruno Haible  <bruno@clisp.org>
6721
6722         vma-iter, get-rusage-as: Add OpenBSD support.
6723         * modules/vma-iter (configure.ac): Test for mquery.
6724         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6725         * lib/vma-iter.c: Include <sys/mman.h>.
6726         (vma_iterate): Add an implementation based on mquery().
6727         * lib/resource-ext.h (get_rusage_as): Update comments.
6728         * lib/get-rusage-as.c: Likewise.
6729         * lib/get-rusage-data.c: Likewise.
6730
6731 2011-01-26  Karl Berry  <karl@gnu.org>
6732
6733         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6734         variables to make it easier to override the makeinfo program used.
6735
6736 2011-01-26  Eric Blake  <eblake@redhat.com>
6737
6738         fcntl: work around Haiku F_DUPFD bugs
6739         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6740         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6741         cloexec bit on duplication.
6742         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6743
6744 2011-01-26  Bruno Haible  <bruno@clisp.org>
6745
6746         Enable memory leak tests on AIX.
6747         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6748         * tests/test-fprintf-posix3.c (main): Likewise.
6749
6750 2011-01-26  Bruno Haible  <bruno@clisp.org>
6751
6752         Tests for module 'get-rusage-data'.
6753         * modules/get-rusage-data-tests: New file.
6754         * tests/test-get-rusage-data.c: New file.
6755
6756         New module 'get-rusage-data'.
6757         * lib/resource-ext.h (get_rusage_data): New declaration.
6758         * lib/get-rusage-data.c: New file.
6759         * modules/get-rusage-data: New file.
6760
6761 2011-01-25  Bruno Haible  <bruno@clisp.org>
6762
6763         get-rusage-as: Allow for easier testing.
6764         * lib/resource-ext.h (get_rusage_as): Add comment.
6765         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6766         (main): New function for interactive testing.
6767
6768 2011-01-25  Bruno Haible  <bruno@clisp.org>
6769
6770         vma-iter: Treat Haiku like BeOS.
6771         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6772         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6773
6774 2011-01-25  Eric Blake  <eblake@redhat.com>
6775
6776         c-stack: fix regression on cygwin when libsigsegv is present
6777         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6778
6779 2011-01-24  Bruno Haible  <bruno@clisp.org>
6780
6781         vma-iter: Avoid empty intervals.
6782         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6783         on an empty interval.
6784
6785 2011-01-24  Jim Meyering  <meyering@redhat.com>
6786
6787         u64: remove unnecessary #include
6788         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6789
6790 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6791
6792         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6793         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6794
6795 2011-01-23  Bruno Haible  <bruno@clisp.org>
6796
6797         New module 'vma-iter'.
6798         * lib/vma-iter.h: New file.
6799         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6800         * modules/vma-iter: New file.
6801         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6802         for get_rusage_as_via_iterator.
6803         (vma_iterate_callback): New function.
6804         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6805         * modules/get-rusage-as (Depends-on): Add vma-iter.
6806
6807 2011-01-23  Bruno Haible  <bruno@clisp.org>
6808
6809         uninorm: Tweak includes.
6810         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6811         Reported by Jim Meyering.
6812
6813 2011-01-23  Bruno Haible  <bruno@clisp.org>
6814
6815         get-rusage-as: Improve on NetBSD.
6816         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6817         /proc, like on FreeBSD.
6818
6819 2011-01-23  Jim Meyering  <meyering@redhat.com>
6820
6821         xreadlink.h: remove unnecessary #include
6822         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6823
6824         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6825         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6826
6827 2011-01-23  Bruno Haible  <bruno@clisp.org>
6828
6829         get-rusage-as: Fix bug.
6830         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6831         original limit when aborting the first loop.
6832
6833 2011-01-23  Bruno Haible  <bruno@clisp.org>
6834
6835         wctype: Ensure valid C syntax.
6836         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6837         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6838
6839 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6840
6841         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6843         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6844         as they are needed only for configure's test case.
6845         This removes two unnecessary symbols from config.h.
6846
6847         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6848         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6849         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6850         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6851         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6854         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6855         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6856         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6857         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6858         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6859         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6860         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6861         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6862         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6863         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6864         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6865
6866 2011-01-21  Eric Blake  <eblake@redhat.com>
6867
6868         maintainer-makefile: work with older git for submodule check
6869         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6870         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6871         Reported by Matthias Bolte.
6872
6873         bootstrap: minor portability fixes
6874         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6875         (usage): Omit leading capital and trailing . on help phrases, per
6876         GNU Coding Standards.
6877         (check_versions, top level): Prefix messages with script name.
6878
6879 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6880
6881         bootstrap: support --no-git option
6882         * build-aux/bootstrap: Add --no-git option, to be used when
6883         --gnulib-srcdir points to the exact desired checkout.
6884
6885 2011-01-21  Eric Blake  <eblake@redhat.com>
6886
6887         strerror_r-posix: work with glibc 2.13
6888         * lib/strerror_r.c (strerror_r): Fix return type.
6889
6890 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6891             Bruno Haible  <bruno@clisp.org>
6892
6893         uN_strstr: New unit tests.
6894         * modules/unistr/u8-strstr-tests: New file.
6895         * modules/unistr/u16-strstr-tests: New file.
6896         * modules/unistr/u32-strstr-tests: New file.
6897         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6898         * tests/unistr/test-u8-strstr.c: New file.
6899         * tests/unistr/test-u16-strstr.c: New file.
6900         * tests/unistr/test-u32-strstr.c: New file.
6901
6902 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6903             Bruno Haible  <bruno@clisp.org>
6904
6905         Make uN_strstr functions O(n) worst-case.
6906         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6907         16-bit and 32-bit unit cases, use the unibyte algorithm from
6908         lib/mbsstr.c.
6909         * lib/unistr/u8-strstr.c: Include <string.h>.
6910         (UNIT_IS_UINT8_T): New macro.
6911         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6912         (U_STRLEN, U_STRNLEN): New macros.
6913         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6914         (U_STRLEN, U_STRNLEN): New macros.
6915         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6916         (configure.ac): Update required libunistring version.
6917         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6918         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6919         malloca.
6920         (configure.ac): Update required libunistring version.
6921         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6922         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6923         malloca.
6924         (configure.ac): Update required libunistring version.
6925
6926 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6927             Bruno Haible  <bruno@clisp.org>
6928
6929         Prepare for faster uN_strstr functions.
6930         * lib/str-kmp.h: Support definable UNITs.
6931         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6932         needle_len argument.
6933         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6934         * lib/mbscasestr.c (mbscasestr): Likewise.
6935
6936 2011-01-21  Pádraig Brady <P@draigBrady.com>
6937
6938         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6939         * tests/test-malloca.c (main): Unset the environment variable
6940         to greatly speed up the test.
6941         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6942         * modules/malloca-tests: Depend on unsetenv.
6943
6944 2011-01-21  Pádraig Brady <P@draigBrady.com>
6945
6946         ignore-value: remove stdint dependency
6947         * lib/ignore-value.h: Remove <stdint.h>
6948         * modules/ignore-value: Remove stdint dependency.
6949
6950 2011-01-21  Jim Meyering  <meyering@redhat.com>
6951
6952         maint.mk: adjust variable name to be consistent with other gl_ vars
6953         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6954         to be lower case.
6955
6956 2011-01-20  Jim Meyering  <meyering@redhat.com>
6957
6958         maint.mk: make "check" depend on public-submodule-commit by default
6959         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6960
6961 2011-01-20  Bruno Haible  <bruno@clisp.org>
6962
6963         mbfile, mbiter: Complete change from 2008-12-21.
6964         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6965         * m4/mbiter.m4 (gl_MBITER): Likewise.
6966
6967 2011-01-20  Jim Meyering  <meyering@redhat.com>
6968
6969         init.sh: insert space between each function name and "()"
6970         * tests/init.sh: Make it a little easier to see that a function's
6971         name is "warn_", and not "warn" when looking at the first part of
6972         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6973
6974 2011-01-20  Jim Meyering  <meyering@redhat.com>
6975
6976         mountlist: clean up code formatting
6977         * lib/mountlist.c (read_file_system_list): Split a long line,
6978         correct bracing style, use NULL in place of "(struct statfs *)0",
6979         don't parenthesize return value, add spaces around "=" and after
6980         ";-in-for-stmt".
6981
6982 2011-01-14  Markus Duft <mduft@gentoo.org>
6983
6984         mountlist: add support for Interix
6985         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6986         Apply statvfs to all entries of /dev/fs.
6987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6988         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6989
6990 2011-01-20  Jim Meyering  <meyering@redhat.com>
6991
6992         maint.mk: improve the public-submodule-commit rule
6993         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6994         to suppress printing of its commands... unless V=1.
6995         Add git submodule's --quiet option to suppress printing of e.g.,
6996         "Entering gnulib" output.
6997         "cd" into $(srcdir) before running git submodule.
6998
6999 2011-01-20  Bruno Haible  <bruno@clisp.org>
7000
7001         include_next: Fix bug introduced on 2011-01-18.
7002         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
7003         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
7004         ac_cv_header_... variable if the second argument is not 'check'.
7005         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
7006         gl_NEXT_HEADERS_INTERNAL.
7007
7008 2011-01-20  Bruno Haible  <bruno@clisp.org>
7009
7010         Allow the user to avoid the GNULIB_TEST_* macros.
7011         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
7012         Suggested by Paul Eggert.
7013
7014 2011-01-14  Jim Meyering  <meyering@redhat.com>
7015
7016         bootstrap: avoid failure when there is no .gitmodules file
7017         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
7018         has been assigned to, even when its value is the empty string.
7019         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
7020         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
7021         Reported by John W. Eaton <jwe@gnu.org>.
7022
7023 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
7024
7025         assume <ctype.h>, ..., <time.h> exist
7026         For years gnulib has been assuming the existence of the headers
7027         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
7028         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
7029         them, since they don't appear to be needed.
7030         * README (Portability guidelines): Document this.
7031         * lib/flock.c: Assume <fcntl.h> exists.
7032         * lib/regex_internal.h: Assume <locale.h> exists.
7033         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
7034         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
7035         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
7036         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
7037         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
7038         * m4/regex.m4 (gl_REGEX): Likewise.
7039         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
7040         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
7041         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
7042         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
7043         * tests/test-argp.c: Likewise.
7044         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
7045
7046         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
7047         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
7048         AA_APPLE_UNIVERSAL_BUILD.  See
7049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
7050         * NEWS: Document this.
7051
7052 2011-01-19  Eric Blake  <eblake@redhat.com>
7053
7054         c-stack: assume stack overflow if SA_SIGINFO unsupported
7055         * lib/c-stack.c (SIGACTION_WORKS): Rename...
7056         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
7057         sigaction will work.
7058         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
7059         behavior match Linux.
7060         * tests/test-c-stack.c (main): Prefer NULL for pointers.
7061
7062         stdbool-tests: accomodate Haiku
7063         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
7064
7065         binary-io: fix O_TEXT on Haiku
7066         * modules/binary-io (Depends-on): Add fcntl-h.
7067         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
7068         than blindly undefining O_TEXT.
7069         Reported by Scott McCreary.
7070
7071 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7072
7073         include_next: do not check for standard headers like stddef.h
7074
7075         I found this problem when modifying Emacs to use gnulib.
7076         I noticed that it added HAVE_STDDEF_H to config.h, even though
7077         gnulib always assumes <stddef.h> exists as per README and this
7078         symbol is unnecessary.
7079         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
7080         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
7081         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
7082         faster for headers like stddef.h that are known to exist.
7083         (gl_CHECK_NEXT_HEADERS): Use it.
7084         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
7085         rather than gl_CHECK_NEXT_HEADERS.
7086         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
7087         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
7088
7089 2011-01-18  Eric Blake  <eblake@redhat.com>
7090
7091         ansi-c++-opt: skip C++ dependency style if C++ is unused
7092         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
7093         tests when we know C++ compilation is not desired.
7094         Reported by Scott McCreary.
7095
7096 2011-01-18  Bruno Haible  <bruno@clisp.org>
7097
7098         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
7099         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
7100         (main): Perform test also when getrlimit and setrlimit don't exist or
7101         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
7102         limiting the address space size using setrlimit, compare the address
7103         space size before and after the the test.
7104         * tests/test-dprintf-posix2.c: Likewise.
7105         * tests/test-fprintf-posix3.sh: Update skip messages.
7106         * tests/test-dprintf-posix2.sh: Likewise.
7107         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
7108         * modules/dprintf-posix-tests (Depends-on): Likewise.
7109         Reported by Bruce Korb <bkorb@gnu.org> and
7110         Gary V. Vaughan <gary@gnu.org>.
7111
7112 2011-01-18  Bruno Haible  <bruno@clisp.org>
7113
7114         get-rusage-as: Improvement for Cygwin.
7115         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
7116         areas that are merely reserved.
7117
7118 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7119
7120         strftime: remove dependencies on multibyte modules
7121
7122         strftime depended on mbrlen, mbsinit, and wchar, but these modules
7123         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
7124         only if __osf__ is defined, and I suspect OSF doesn't need these
7125         other modules.  If my guess is wrong, we'll need to come up with a
7126         variant of strftime that doesn't need the multibyte modules.
7127
7128         I discovered this problem when attempting modify Emacs to use the
7129         strftime module.  With the previous gnulib, this caused Emacs to
7130         need 31 new files, ranging from lib/config.charset to
7131         m4/wint_t.m4.  This was overkill and I expect would be offputting
7132         to the Emacs maintainers.  After this change, only 6 new files are
7133         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
7134         stdbool.m4, and tm_gmtoff.m4.
7135
7136         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
7137         Suggested by Bruno Haible in
7138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
7139         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
7140         and do not check for wchar.h.
7141         * modules/strftime (Files): Remove m4/mbstate_t.m4.
7142         (Depends-on): Remove mbrlen, mbsinit, wchar.
7143
7144 2011-01-18  Bruno Haible  <bruno@clisp.org>
7145
7146         Tests for module 'get-rusage-as'.
7147         * modules/get-rusage-as-tests: New file.
7148         * tests/test-get-rusage-as.c: New file.
7149
7150         New module 'get-rusage-as'.
7151         * modules/get-rusage-as: New file.
7152         * lib/resource-ext.h: New file.
7153         * lib/get-rusage-as.c: New file.
7154
7155 2011-01-17  Eric Blake  <eblake@redhat.com>
7156
7157         sigaction: relax license from LGPLv3+ to LGPLv2+
7158         * modules/sigaction (License): Relax to LGPLv2+.
7159
7160 2011-01-14  Bruno Haible  <bruno@clisp.org>
7161
7162         filemode: Make function declarations usable in C++ mode.
7163         * lib/filemode.h: Enclose function declarations in extern "C" block.
7164         Reported by John W. Eaton <jwe@gnu.org>.
7165
7166 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
7167
7168         save-cwd: no longer include "xgetcwd.h"
7169         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
7170         This avoids a compilation failure in projects that use save-cwd
7171         without also using the xgetcwd module.
7172
7173 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
7176         This is so that a program like Emacs, which needs only dtoastr,
7177         does not have to bother with distributing and compiling ftoastr
7178         and ldtoastr.
7179         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
7180         * modules/dtoastr, modules/ldtoastr: New files.
7181         * modules/ftoastr: Now works just for 'float'.
7182         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
7183         (Makefile.am): Remove ftoastr.h (not needed and no effect),
7184         dtoastr.c, ldtoastr.c.
7185
7186 2011-01-11  Jim Meyering  <meyering@redhat.com>
7187
7188         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
7189         There is no need to work around the lack of the fchdir function,
7190         since gnulib can now provide a replacement when required.
7191         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
7192         * modules/save-cwd (Depends-on): Add fchdir.
7193
7194 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
7195
7196         openat, save-cwd: avoid xmalloc
7197
7198         This removes a direct (but undocumented) dependency of openat on
7199         xalloc, along with an indirect dependency via save-cwd.  It also
7200         removes a dependency of save-cwd on xgetcwd, and thereby
7201         indirectly on xalloc.  This change causes the openat substitute
7202         to fall back on save_cwd when memory is tight, and for save_cwd to
7203         fail instead of dying when memory is tight, but that's good enough.
7204         Problem and initial idea for fix reported by Bastien Roucaries in
7205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
7206
7207         * lib/openat-proc.c: Include stdlib.h (for malloc), not
7208         xalloc.h (for xmalloc).
7209         (openat_proc_name): Use malloc, not xmalloc.
7210         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
7211         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
7212
7213         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
7214         This avoids heap allocation for file names whose lengths are in
7215         the range 512..1023, with the upper bound increasing to at most
7216         4031 depending on the platform's PATH_MAX.  (We do not want
7217         pathmax.h here as it might supply a non-constant PATH_MAX.)
7218         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
7219         Perhaps they should be moved to malloca.h?
7220         (OPENAT_BUFFER_SIZE): Use them.
7221
7222 2011-01-10  Bruno Haible  <bruno@clisp.org>
7223
7224         doc: Update users.txt.
7225         * users.txt: Add recutils.
7226
7227 2011-01-09  Karl Berry  <karl@gnu.org>
7228
7229         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
7230
7231         * doc/configmake.texi: New file.
7232         * doc/gnulib.texi: Include it.
7233         * modules/configmake: Move documentation from here.
7234
7235 2011-01-09  Bruno Haible  <bruno@clisp.org>
7236
7237         Update to Unicode 6.0.0.
7238         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
7239         (get_lbp): Update for Unicode 6.0.0.
7240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
7241         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
7242         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
7243         U+11001, U+11038..U+11046. Remove U+06DE.
7244         (uc_width): Fix bounds of planes.
7245         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7246         lib/uniwidth/width.c.
7247         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
7248         trailing whitespace removed.
7249         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
7250         without comments, but with the original copyright notice.
7251         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
7252         * lib/unicase/ignorable.h: Likewise.
7253         * lib/unicase/tocasefold.h: Likewise.
7254         * lib/unicase/tolower.h: Likewise.
7255         * lib/unicase/totitle.h: Likewise.
7256         * lib/unicase/toupper.h: Likewise.
7257         * lib/unictype/bidi_of.h: Likewise.
7258         * lib/unictype/blocks.h: Likewise.
7259         * lib/unictype/categ_C.h: Likewise.
7260         * lib/unictype/categ_Cn.h: Likewise.
7261         * lib/unictype/categ_L.h: Likewise.
7262         * lib/unictype/categ_Ll.h: Likewise.
7263         * lib/unictype/categ_Lm.h: Likewise.
7264         * lib/unictype/categ_Lo.h: Likewise.
7265         * lib/unictype/categ_Lu.h: Likewise.
7266         * lib/unictype/categ_M.h: Likewise.
7267         * lib/unictype/categ_Mc.h: Likewise.
7268         * lib/unictype/categ_Me.h: Likewise.
7269         * lib/unictype/categ_Mn.h: Likewise.
7270         * lib/unictype/categ_N.h: Likewise.
7271         * lib/unictype/categ_Nd.h: Likewise.
7272         * lib/unictype/categ_No.h: Likewise.
7273         * lib/unictype/categ_P.h: Likewise.
7274         * lib/unictype/categ_Po.h: Likewise.
7275         * lib/unictype/categ_S.h: Likewise.
7276         * lib/unictype/categ_Sc.h: Likewise.
7277         * lib/unictype/categ_Sk.h: Likewise.
7278         * lib/unictype/categ_Sm.h: Likewise.
7279         * lib/unictype/categ_So.h: Likewise.
7280         * lib/unictype/categ_of.h: Likewise.
7281         * lib/unictype/combining.h: Likewise.
7282         * lib/unictype/ctype_alnum.h: Likewise.
7283         * lib/unictype/ctype_alpha.h: Likewise.
7284         * lib/unictype/ctype_graph.h: Likewise.
7285         * lib/unictype/ctype_lower.h: Likewise.
7286         * lib/unictype/ctype_print.h: Likewise.
7287         * lib/unictype/ctype_punct.h: Likewise.
7288         * lib/unictype/ctype_upper.h: Likewise.
7289         * lib/unictype/decdigit.h: Likewise.
7290         * lib/unictype/digit.h: Likewise.
7291         * lib/unictype/numeric.h: Likewise.
7292         * lib/unictype/pr_alphabetic.h: Likewise.
7293         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7294         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7295         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7296         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7297         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7298         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7299         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7300         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7301         * lib/unictype/pr_case_ignorable.h: Likewise.
7302         * lib/unictype/pr_cased.h: Likewise.
7303         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
7304         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
7305         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
7306         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
7307         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
7308         * lib/unictype/pr_combining.h: Likewise.
7309         * lib/unictype/pr_composite.h: Likewise.
7310         * lib/unictype/pr_currency_symbol.h: Likewise.
7311         * lib/unictype/pr_decimal_digit.h: Likewise.
7312         * lib/unictype/pr_deprecated.h: Likewise.
7313         * lib/unictype/pr_format_control.h: Likewise.
7314         * lib/unictype/pr_grapheme_base.h: Likewise.
7315         * lib/unictype/pr_grapheme_extend.h: Likewise.
7316         * lib/unictype/pr_grapheme_link.h: Likewise.
7317         * lib/unictype/pr_id_continue.h: Likewise.
7318         * lib/unictype/pr_id_start.h: Likewise.
7319         * lib/unictype/pr_ideographic.h: Likewise.
7320         * lib/unictype/pr_lowercase.h: Likewise.
7321         * lib/unictype/pr_math.h: Likewise.
7322         * lib/unictype/pr_numeric.h: Likewise.
7323         * lib/unictype/pr_other_alphabetic.h: Likewise.
7324         * lib/unictype/pr_other_id_continue.h: Likewise.
7325         * lib/unictype/pr_other_math.h: Likewise.
7326         * lib/unictype/pr_punctuation.h: Likewise.
7327         * lib/unictype/pr_sentence_terminal.h: Likewise.
7328         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7329         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7330         * lib/unictype/pr_unified_ideograph.h: Likewise.
7331         * lib/unictype/pr_uppercase.h: Likewise.
7332         * lib/unictype/pr_xid_continue.h: Likewise.
7333         * lib/unictype/pr_xid_start.h: Likewise.
7334         * lib/unictype/scripts.h: Likewise.
7335         * lib/unictype/scripts_byname.gperf: Likewise.
7336         * lib/unictype/sy_java_ident.h: Likewise.
7337         * lib/unigbrk/gbrkprop.h: Likewise.
7338         * lib/unilbrk/lbrkprop1.h: Likewise.
7339         * lib/unilbrk/lbrkprop2.h: Likewise.
7340         * lib/uninorm/decomposition-table2.h: Likewise.
7341         * lib/uniwbrk/wbrkprop.h: Likewise.
7342         * tests/unicase/test-cased.c: Likewise.
7343         * tests/unicase/test-ignorable.c: Likewise.
7344         * tests/unicase/test-uc_tolower.c: Likewise.
7345         * tests/unicase/test-uc_totitle.c: Likewise.
7346         * tests/unicase/test-uc_toupper.c: Likewise.
7347         * tests/unictype/test-categ_C.c: Likewise.
7348         * tests/unictype/test-categ_Cn.c: Likewise.
7349         * tests/unictype/test-categ_L.c: Likewise.
7350         * tests/unictype/test-categ_Ll.c: Likewise.
7351         * tests/unictype/test-categ_Lm.c: Likewise.
7352         * tests/unictype/test-categ_Lo.c: Likewise.
7353         * tests/unictype/test-categ_Lu.c: Likewise.
7354         * tests/unictype/test-categ_M.c: Likewise.
7355         * tests/unictype/test-categ_Mc.c: Likewise.
7356         * tests/unictype/test-categ_Me.c: Likewise.
7357         * tests/unictype/test-categ_Mn.c: Likewise.
7358         * tests/unictype/test-categ_N.c: Likewise.
7359         * tests/unictype/test-categ_Nd.c: Likewise.
7360         * tests/unictype/test-categ_No.c: Likewise.
7361         * tests/unictype/test-categ_P.c: Likewise.
7362         * tests/unictype/test-categ_Po.c: Likewise.
7363         * tests/unictype/test-categ_S.c: Likewise.
7364         * tests/unictype/test-categ_Sc.c: Likewise.
7365         * tests/unictype/test-categ_Sk.c: Likewise.
7366         * tests/unictype/test-categ_Sm.c: Likewise.
7367         * tests/unictype/test-categ_So.c: Likewise.
7368         * tests/unictype/test-ctype_alnum.c: Likewise.
7369         * tests/unictype/test-ctype_alpha.c: Likewise.
7370         * tests/unictype/test-ctype_graph.c: Likewise.
7371         * tests/unictype/test-ctype_lower.c: Likewise.
7372         * tests/unictype/test-ctype_print.c: Likewise.
7373         * tests/unictype/test-ctype_punct.c: Likewise.
7374         * tests/unictype/test-ctype_upper.c: Likewise.
7375         * tests/unictype/test-decdigit.h: Likewise.
7376         * tests/unictype/test-digit.h: Likewise.
7377         * tests/unictype/test-numeric.h: Likewise.
7378         * tests/unictype/test-pr_alphabetic.c: Likewise.
7379         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7380         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7381         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7382         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7383         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7384         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7385         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7386         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7387         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7388         * tests/unictype/test-pr_cased.c: Likewise.
7389         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7390         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7391         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7392         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7393         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7394         * tests/unictype/test-pr_combining.c: Likewise.
7395         * tests/unictype/test-pr_composite.c: Likewise.
7396         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7397         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7398         * tests/unictype/test-pr_deprecated.c: Likewise.
7399         * tests/unictype/test-pr_format_control.c: Likewise.
7400         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7401         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7402         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7403         * tests/unictype/test-pr_id_continue.c: Likewise.
7404         * tests/unictype/test-pr_id_start.c: Likewise.
7405         * tests/unictype/test-pr_ideographic.c: Likewise.
7406         * tests/unictype/test-pr_lowercase.c: Likewise.
7407         * tests/unictype/test-pr_math.c: Likewise.
7408         * tests/unictype/test-pr_numeric.c: Likewise.
7409         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7410         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7411         * tests/unictype/test-pr_other_math.c: Likewise.
7412         * tests/unictype/test-pr_punctuation.c: Likewise.
7413         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7414         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7415         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7416         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7417         * tests/unictype/test-pr_uppercase.c: Likewise.
7418         * tests/unictype/test-pr_xid_continue.c: Likewise.
7419         * tests/unictype/test-pr_xid_start.c: Likewise.
7420         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7421         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7422         changes.
7423         * lib/unictype/categ_Cc.h: Likewise.
7424         * lib/unictype/categ_Cf.h: Likewise.
7425         * lib/unictype/categ_Co.h: Likewise.
7426         * lib/unictype/categ_Cs.h: Likewise.
7427         * lib/unictype/categ_Lt.h: Likewise.
7428         * lib/unictype/categ_Nl.h: Likewise.
7429         * lib/unictype/categ_Pc.h: Likewise.
7430         * lib/unictype/categ_Pd.h: Likewise.
7431         * lib/unictype/categ_Pe.h: Likewise.
7432         * lib/unictype/categ_Pf.h: Likewise.
7433         * lib/unictype/categ_Pi.h: Likewise.
7434         * lib/unictype/categ_Ps.h: Likewise.
7435         * lib/unictype/categ_Z.h: Likewise.
7436         * lib/unictype/categ_Zl.h: Likewise.
7437         * lib/unictype/categ_Zp.h: Likewise.
7438         * lib/unictype/categ_Zs.h: Likewise.
7439         * lib/unictype/ctype_blank.h: Likewise.
7440         * lib/unictype/ctype_cntrl.h: Likewise.
7441         * lib/unictype/ctype_digit.h: Likewise.
7442         * lib/unictype/ctype_space.h: Likewise.
7443         * lib/unictype/ctype_xdigit.h: Likewise.
7444         * lib/unictype/mirror.h: Likewise.
7445         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7446         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7447         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7448         * lib/unictype/pr_bidi_control.h: Likewise.
7449         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7450         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7451         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7452         * lib/unictype/pr_bidi_pdf.h: Likewise.
7453         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7454         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7455         * lib/unictype/pr_dash.h: Likewise.
7456         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7457         * lib/unictype/pr_diacritic.h: Likewise.
7458         * lib/unictype/pr_extender.h: Likewise.
7459         * lib/unictype/pr_hex_digit.h: Likewise.
7460         * lib/unictype/pr_hyphen.h: Likewise.
7461         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7462         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7463         * lib/unictype/pr_ignorable_control.h: Likewise.
7464         * lib/unictype/pr_iso_control.h: Likewise.
7465         * lib/unictype/pr_join_control.h: Likewise.
7466         * lib/unictype/pr_left_of_pair.h: Likewise.
7467         * lib/unictype/pr_line_separator.h: Likewise.
7468         * lib/unictype/pr_logical_order_exception.h: Likewise.
7469         * lib/unictype/pr_non_break.h: Likewise.
7470         * lib/unictype/pr_not_a_character.h: Likewise.
7471         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7472         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7473         * lib/unictype/pr_other_id_start.h: Likewise.
7474         * lib/unictype/pr_other_lowercase.h: Likewise.
7475         * lib/unictype/pr_other_uppercase.h: Likewise.
7476         * lib/unictype/pr_paired_punctuation.h: Likewise.
7477         * lib/unictype/pr_paragraph_separator.h: Likewise.
7478         * lib/unictype/pr_pattern_syntax.h: Likewise.
7479         * lib/unictype/pr_pattern_white_space.h: Likewise.
7480         * lib/unictype/pr_private_use.h: Likewise.
7481         * lib/unictype/pr_quotation_mark.h: Likewise.
7482         * lib/unictype/pr_radical.h: Likewise.
7483         * lib/unictype/pr_soft_dotted.h: Likewise.
7484         * lib/unictype/pr_space.h: Likewise.
7485         * lib/unictype/pr_titlecase.h: Likewise.
7486         * lib/unictype/pr_variation_selector.h: Likewise.
7487         * lib/unictype/pr_white_space.h: Likewise.
7488         * lib/unictype/pr_zero_width.h: Likewise.
7489         * lib/unictype/sy_c_ident.h: Likewise.
7490         * lib/unictype/sy_c_whitespace.h: Likewise.
7491         * lib/unictype/sy_java_whitespace.h: Likewise.
7492         * lib/uninorm/composition-table.gperf: Likewise.
7493         * lib/uninorm/decomposition-table1.h: Likewise.
7494         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7495         LB8.
7496         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7497         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7498         * modules/unictype/*: Bump version number of expected libunistring
7499         version.
7500
7501 2011-01-09  Bruno Haible  <bruno@clisp.org>
7502
7503         Update to Unicode 5.2.0.
7504         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7505         trailing whitespace removed.
7506
7507 2011-01-09  Bruno Haible  <bruno@clisp.org>
7508
7509         New Unicode character properties, from Unicode 5.2.0.
7510         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7511         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7512         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7513         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7514         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7515         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7516         uc_is_property_cased, uc_is_property_case_ignorable,
7517         uc_is_property_changes_when_lowercased,
7518         uc_is_property_changes_when_uppercased,
7519         uc_is_property_changes_when_titlecased,
7520         uc_is_property_changes_when_casefolded,
7521         uc_is_property_changes_when_casemapped): New declarations.
7522         * lib/unictype/pr_byname.gperf: Add the new properties.
7523         * modules/unictype/property-byname (Depends-on): Depend on the new
7524         properties modules.
7525         * modules/unictype/property-all (Depends-on): Likewise.
7526         * MODULES.html.sh (Unicode string functions): Add
7527         unictype/property-case-ignorable, unictype/property-cased,
7528         unictype/property-changes-when-casefolded,
7529         unictype/property-changes-when-casemapped,
7530         unictype/property-changes-when-lowercased,
7531         unictype/property-changes-when-titlecased,
7532         unictype/property-changes-when-uppercased.
7533
7534         New module 'unictype/property-changes-when-casemapped'.
7535         * modules/unictype/property-changes-when-casemapped: New file.
7536         * lib/unictype/pr_changes_when_casemapped.c: New file.
7537         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7538         generated by gen-uni-tables.
7539         * modules/unictype/property-changes-when-casemapped-tests: New file.
7540         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7541         automatically generated by gen-uni-tables.
7542
7543         New module 'unictype/property-changes-when-casefolded'.
7544         * modules/unictype/property-changes-when-casefolded: New file.
7545         * lib/unictype/pr_changes_when_casefolded.c: New file.
7546         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7547         generated by gen-uni-tables.
7548         * modules/unictype/property-changes-when-casefolded-tests: New file.
7549         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7550         automatically generated by gen-uni-tables.
7551
7552         New module 'unictype/property-changes-when-titlecased'.
7553         * modules/unictype/property-changes-when-titlecased: New file.
7554         * lib/unictype/pr_changes_when_titlecased.c: New file.
7555         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7556         generated by gen-uni-tables.
7557         * modules/unictype/property-changes-when-titlecased-tests: New file.
7558         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7559         automatically generated by gen-uni-tables.
7560
7561         New module 'unictype/property-changes-when-uppercased'.
7562         * modules/unictype/property-changes-when-uppercased: New file.
7563         * lib/unictype/pr_changes_when_uppercased.c: New file.
7564         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7565         generated by gen-uni-tables.
7566         * modules/unictype/property-changes-when-uppercased-tests: New file.
7567         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7568         automatically generated by gen-uni-tables.
7569
7570         New module 'unictype/property-changes-when-lowercased'.
7571         * modules/unictype/property-changes-when-lowercased: New file.
7572         * lib/unictype/pr_changes_when_lowercased.c: New file.
7573         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7574         generated by gen-uni-tables.
7575         * modules/unictype/property-changes-when-lowercased-tests: New file.
7576         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7577         automatically generated by gen-uni-tables.
7578
7579         New module 'unictype/property-case-ignorable'.
7580         * modules/unictype/property-case-ignorable: New file.
7581         * lib/unictype/pr_case_ignorable.c: New file.
7582         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7583         by gen-uni-tables.
7584         * modules/unictype/property-case-ignorable-tests: New file.
7585         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7586         generated by gen-uni-tables.
7587
7588         New module 'unictype/property-cased'.
7589         * modules/unictype/property-cased: New file.
7590         * lib/unictype/pr_cased.c: New file.
7591         * lib/unictype/pr_cased.h: New file, automatically generated by
7592         gen-uni-tables.
7593         * modules/unictype/property-cased-tests: New file.
7594         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7595         gen-uni-tables.
7596
7597 2011-01-09  Bruno Haible  <bruno@clisp.org>
7598
7599         Update to Unicode 5.2.0.
7600         * lib/gen-uni-tables.c (output_predicate, output_category,
7601         output_combclass, output_bidi_category, output_decimal_digit_test,
7602         output_decimal_digit, output_digit_test, output_digit,
7603         output_numeric_test, output_numeric, output_mirror, output_scripts,
7604         output_scripts_byname, output_blocks, output_ident_category): Fix
7605         comment header.
7606         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7607         get_wbp.
7608         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7609         items.
7610         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7611         Changes_When_Lowercased, Changes_When_Uppercased,
7612         Changes_When_Titlecased, Changes_When_Casefolded,
7613         Changes_When_Casemapped.
7614         (is_property_alphabetic, is_property_default_ignorable_code_point):
7615         Update for Unicode 5.2.0.
7616         (is_property_cased, is_property_case_ignorable,
7617         is_property_changes_when_lowercased,
7618         is_property_changes_when_uppercased,
7619         is_property_changes_when_titlecased,
7620         is_property_changes_when_casefolded,
7621         is_property_changes_when_casemapped): New functions.
7622         (output_properties): Output also the properties cased, case_ignorable,
7623         changes_when_lowercased, changes_when_uppercased,
7624         changes_when_titlecased, changes_when_casefolded,
7625         changes_when_casemapped.
7626         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7627         Unicode TR#11 revision 17 -> 19.
7628         (LBP_CP): New enumeration value.
7629         (LBP_*): Adjust values accordingly.
7630         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7631         TR#14 revision 22 -> 24.
7632         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7633         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7634         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7635         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7636         is_WBP_MIDLETTER.
7637         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7638         the code1 and code2 of each composition rule.
7639         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7640         * lib/unicase/ignorable.h: Likewise.
7641         * lib/unicase/tocasefold.h: Likewise.
7642         * lib/unicase/tolower.h: Likewise.
7643         * lib/unicase/totitle.h: Likewise.
7644         * lib/unicase/toupper.h: Likewise.
7645         * lib/unictype/bidi_of.h: Likewise.
7646         * lib/unictype/blocks.h: Likewise.
7647         * lib/unictype/categ_C.h: Likewise.
7648         * lib/unictype/categ_Cf.h: Likewise.
7649         * lib/unictype/categ_Cn.h: Likewise.
7650         * lib/unictype/categ_L.h: Likewise.
7651         * lib/unictype/categ_Ll.h: Likewise.
7652         * lib/unictype/categ_Lm.h: Likewise.
7653         * lib/unictype/categ_Lo.h: Likewise.
7654         * lib/unictype/categ_Lu.h: Likewise.
7655         * lib/unictype/categ_M.h: Likewise.
7656         * lib/unictype/categ_Mc.h: Likewise.
7657         * lib/unictype/categ_Mn.h: Likewise.
7658         * lib/unictype/categ_N.h: Likewise.
7659         * lib/unictype/categ_Nd.h: Likewise.
7660         * lib/unictype/categ_Nl.h: Likewise.
7661         * lib/unictype/categ_No.h: Likewise.
7662         * lib/unictype/categ_P.h: Likewise.
7663         * lib/unictype/categ_Pd.h: Likewise.
7664         * lib/unictype/categ_Po.h: Likewise.
7665         * lib/unictype/categ_S.h: Likewise.
7666         * lib/unictype/categ_Sc.h: Likewise.
7667         * lib/unictype/categ_So.h: Likewise.
7668         * lib/unictype/categ_of.h: Likewise.
7669         * lib/unictype/combining.h: Likewise.
7670         * lib/unictype/ctype_alnum.h: Likewise.
7671         * lib/unictype/ctype_alpha.h: Likewise.
7672         * lib/unictype/ctype_graph.h: Likewise.
7673         * lib/unictype/ctype_lower.h: Likewise.
7674         * lib/unictype/ctype_print.h: Likewise.
7675         * lib/unictype/ctype_punct.h: Likewise.
7676         * lib/unictype/ctype_upper.h: Likewise.
7677         * lib/unictype/decdigit.h: Likewise.
7678         * lib/unictype/digit.h: Likewise.
7679         * lib/unictype/numeric.h: Likewise.
7680         * lib/unictype/pr_alphabetic.h: Likewise.
7681         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7682         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7683         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7688         * lib/unictype/pr_combining.h: Likewise.
7689         * lib/unictype/pr_composite.h: Likewise.
7690         * lib/unictype/pr_currency_symbol.h: Likewise.
7691         * lib/unictype/pr_dash.h: Likewise.
7692         * lib/unictype/pr_decimal_digit.h: Likewise.
7693         * lib/unictype/pr_deprecated.h: Likewise.
7694         * lib/unictype/pr_diacritic.h: Likewise.
7695         * lib/unictype/pr_extender.h: Likewise.
7696         * lib/unictype/pr_grapheme_base.h: Likewise.
7697         * lib/unictype/pr_grapheme_extend.h: Likewise.
7698         * lib/unictype/pr_grapheme_link.h: Likewise.
7699         * lib/unictype/pr_id_continue.h: Likewise.
7700         * lib/unictype/pr_id_start.h: Likewise.
7701         * lib/unictype/pr_ideographic.h: Likewise.
7702         * lib/unictype/pr_ignorable_control.h: Likewise.
7703         * lib/unictype/pr_logical_order_exception.h: Likewise.
7704         * lib/unictype/pr_lowercase.h: Likewise.
7705         * lib/unictype/pr_numeric.h: Likewise.
7706         * lib/unictype/pr_other_alphabetic.h: Likewise.
7707         * lib/unictype/pr_punctuation.h: Likewise.
7708         * lib/unictype/pr_sentence_terminal.h: Likewise.
7709         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7710         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7711         * lib/unictype/pr_unified_ideograph.h: Likewise.
7712         * lib/unictype/pr_uppercase.h: Likewise.
7713         * lib/unictype/pr_xid_continue.h: Likewise.
7714         * lib/unictype/pr_xid_start.h: Likewise.
7715         * lib/unictype/pr_zero_width.h: Likewise.
7716         * lib/unictype/scripts.h: Likewise.
7717         * lib/unictype/scripts_byname.gperf: Likewise.
7718         * lib/unictype/sy_java_ident.h: Likewise.
7719         * lib/unigbrk/gbrkprop.h: Likewise.
7720         * lib/unilbrk/lbrkprop1.h: Likewise.
7721         * lib/unilbrk/lbrkprop2.h: Likewise.
7722         * lib/unilbrk/lbrktables.h: Likewise.
7723         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7724         LBP_CP. Implement rule LB30.
7725         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7726         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7727         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7728         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7729         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7730         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7731         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7732         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7733         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7734         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7735         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7736         bits instead of 16 bits in the code1 and code2 of each composition
7737         rule.
7738         (uc_composition): Update for Unicode 5.2.0.
7739         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7740         * lib/uninorm/decomposition-table2.h: Likewise.
7741         * lib/uniwbrk/wbrkprop.h: Likewise.
7742         * tests/unicase/test-cased.c: Likewise.
7743         * tests/unicase/test-ignorable.c: Likewise.
7744         * tests/unicase/test-uc_tolower.c: Likewise.
7745         * tests/unicase/test-uc_totitle.c: Likewise.
7746         * tests/unicase/test-uc_toupper.c: Likewise.
7747         * tests/unictype/test-categ_C.c: Likewise.
7748         * tests/unictype/test-categ_Cf.c: Likewise.
7749         * tests/unictype/test-categ_Cn.c: Likewise.
7750         * tests/unictype/test-categ_L.c: Likewise.
7751         * tests/unictype/test-categ_Ll.c: Likewise.
7752         * tests/unictype/test-categ_Lm.c: Likewise.
7753         * tests/unictype/test-categ_Lo.c: Likewise.
7754         * tests/unictype/test-categ_Lu.c: Likewise.
7755         * tests/unictype/test-categ_M.c: Likewise.
7756         * tests/unictype/test-categ_Mc.c: Likewise.
7757         * tests/unictype/test-categ_Mn.c: Likewise.
7758         * tests/unictype/test-categ_N.c: Likewise.
7759         * tests/unictype/test-categ_Nd.c: Likewise.
7760         * tests/unictype/test-categ_Nl.c: Likewise.
7761         * tests/unictype/test-categ_No.c: Likewise.
7762         * tests/unictype/test-categ_P.c: Likewise.
7763         * tests/unictype/test-categ_Pd.c: Likewise.
7764         * tests/unictype/test-categ_Po.c: Likewise.
7765         * tests/unictype/test-categ_S.c: Likewise.
7766         * tests/unictype/test-categ_Sc.c: Likewise.
7767         * tests/unictype/test-categ_So.c: Likewise.
7768         * tests/unictype/test-ctype_alnum.c: Likewise.
7769         * tests/unictype/test-ctype_alpha.c: Likewise.
7770         * tests/unictype/test-ctype_graph.c: Likewise.
7771         * tests/unictype/test-ctype_lower.c: Likewise.
7772         * tests/unictype/test-ctype_print.c: Likewise.
7773         * tests/unictype/test-ctype_punct.c: Likewise.
7774         * tests/unictype/test-ctype_upper.c: Likewise.
7775         * tests/unictype/test-decdigit.h: Likewise.
7776         * tests/unictype/test-digit.h: Likewise.
7777         * tests/unictype/test-numeric.h: Likewise.
7778         * tests/unictype/test-pr_alphabetic.c: Likewise.
7779         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7780         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7781         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7782         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7783         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7784         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7785         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7786         * tests/unictype/test-pr_combining.c: Likewise.
7787         * tests/unictype/test-pr_composite.c: Likewise.
7788         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7789         * tests/unictype/test-pr_dash.c: Likewise.
7790         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7791         * tests/unictype/test-pr_deprecated.c: Likewise.
7792         * tests/unictype/test-pr_diacritic.c: Likewise.
7793         * tests/unictype/test-pr_extender.c: Likewise.
7794         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7795         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7796         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7797         * tests/unictype/test-pr_id_continue.c: Likewise.
7798         * tests/unictype/test-pr_id_start.c: Likewise.
7799         * tests/unictype/test-pr_ideographic.c: Likewise.
7800         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7801         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7802         * tests/unictype/test-pr_lowercase.c: Likewise.
7803         * tests/unictype/test-pr_numeric.c: Likewise.
7804         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7805         * tests/unictype/test-pr_punctuation.c: Likewise.
7806         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7807         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7808         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7809         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7810         * tests/unictype/test-pr_uppercase.c: Likewise.
7811         * tests/unictype/test-pr_xid_continue.c: Likewise.
7812         * tests/unictype/test-pr_xid_start.c: Likewise.
7813         * tests/unictype/test-pr_zero_width.c: Likewise.
7814         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7815         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7816         changed behaviour: line breaking is now disallowed between a letter
7817         or '=' and '('.
7818         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7819         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7820         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7821         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7822         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7823         lib/uniwidth/width.c.
7824         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7825         without comments, but with the original copyright notice.
7826         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7827         changes.
7828         * lib/unictype/categ_Cc.h: Likewise.
7829         * lib/unictype/categ_Co.h: Likewise.
7830         * lib/unictype/categ_Cs.h: Likewise.
7831         * lib/unictype/categ_Lt.h: Likewise.
7832         * lib/unictype/categ_Me.h: Likewise.
7833         * lib/unictype/categ_Pc.h: Likewise.
7834         * lib/unictype/categ_Pe.h: Likewise.
7835         * lib/unictype/categ_Pf.h: Likewise.
7836         * lib/unictype/categ_Pi.h: Likewise.
7837         * lib/unictype/categ_Ps.h: Likewise.
7838         * lib/unictype/categ_Sk.h: Likewise.
7839         * lib/unictype/categ_Sm.h: Likewise.
7840         * lib/unictype/categ_Z.h: Likewise.
7841         * lib/unictype/categ_Zl.h: Likewise.
7842         * lib/unictype/categ_Zp.h: Likewise.
7843         * lib/unictype/categ_Zs.h: Likewise.
7844         * lib/unictype/ctype_blank.h: Likewise.
7845         * lib/unictype/ctype_cntrl.h: Likewise.
7846         * lib/unictype/ctype_digit.h: Likewise.
7847         * lib/unictype/ctype_space.h: Likewise.
7848         * lib/unictype/ctype_xdigit.h: Likewise.
7849         * lib/unictype/mirror.h: Likewise.
7850         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7851         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7852         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7853         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7854         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7855         * lib/unictype/pr_bidi_control.h: Likewise.
7856         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7857         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7858         * lib/unictype/pr_bidi_pdf.h: Likewise.
7859         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7860         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7861         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7862         * lib/unictype/pr_format_control.h: Likewise.
7863         * lib/unictype/pr_hex_digit.h: Likewise.
7864         * lib/unictype/pr_hyphen.h: Likewise.
7865         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7866         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7867         * lib/unictype/pr_iso_control.h: Likewise.
7868         * lib/unictype/pr_join_control.h: Likewise.
7869         * lib/unictype/pr_left_of_pair.h: Likewise.
7870         * lib/unictype/pr_line_separator.h: Likewise.
7871         * lib/unictype/pr_math.h: Likewise.
7872         * lib/unictype/pr_non_break.h: Likewise.
7873         * lib/unictype/pr_not_a_character.h: Likewise.
7874         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7875         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7876         * lib/unictype/pr_other_id_continue.h: Likewise.
7877         * lib/unictype/pr_other_id_start.h: Likewise.
7878         * lib/unictype/pr_other_lowercase.h: Likewise.
7879         * lib/unictype/pr_other_math.h: Likewise.
7880         * lib/unictype/pr_other_uppercase.h: Likewise.
7881         * lib/unictype/pr_paired_punctuation.h: Likewise.
7882         * lib/unictype/pr_paragraph_separator.h: Likewise.
7883         * lib/unictype/pr_pattern_syntax.h: Likewise.
7884         * lib/unictype/pr_pattern_white_space.h: Likewise.
7885         * lib/unictype/pr_private_use.h: Likewise.
7886         * lib/unictype/pr_quotation_mark.h: Likewise.
7887         * lib/unictype/pr_radical.h: Likewise.
7888         * lib/unictype/pr_soft_dotted.h: Likewise.
7889         * lib/unictype/pr_space.h: Likewise.
7890         * lib/unictype/pr_titlecase.h: Likewise.
7891         * lib/unictype/pr_variation_selector.h: Likewise.
7892         * lib/unictype/pr_white_space.h: Likewise.
7893         * lib/unictype/sy_c_ident.h: Likewise.
7894         * lib/unictype/sy_c_whitespace.h: Likewise.
7895         * lib/unictype/sy_java_whitespace.h: Likewise.
7896         * modules/uni*/*: Bump version number of expected libunistring version.
7897         Reported by Simon Josefsson.
7898
7899 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7900
7901         useless-if-before-free: fix typo in --help and make the internal,
7902         automatic version date update process work once again.
7903         --help output contained a NUL character instead of the
7904         backslash-zero that was intended.  Also, the "must lie within
7905         the first 8 lines" line is on line 9, and hence not getting
7906         automatically updated.
7907         * build-aux/useless-if-before-free: Fix the former by adding a
7908         backslash, and the latter by condensing the three lines of what-it-does
7909         to a single line, leaving one line of slack for the future.
7910
7911 2011-01-09  Bruno Haible  <bruno@clisp.org>
7912
7913         uniwidth/width: Fix width of U+1D173..U+1D17A.
7914         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7915         symbolic_width, output_width_property_test): New functions.
7916         (main): Invoke output_nonspacing_property, output_width_property_test.
7917         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7918         U+1D173..U+1D17A.
7919         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7920         1.
7921         * modules/uniwidth/*: Bump version number of expected libunistring
7922         version.
7923         * modules/unilbrk/*: Likewise.
7924
7925 2011-01-08  Bruno Haible  <bruno@clisp.org>
7926
7927         uninorm tests: Preserve copyright of Unicode data file.
7928         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7929         Mention modifications.
7930
7931 2011-01-08  Bruno Haible  <bruno@clisp.org>
7932
7933         gen-uni-tables: Prepare for Unicode 5.2.0.
7934         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7935         (debug_output_lbp, output_lbp): Update.
7936
7937 2011-01-08  Bruno Haible  <bruno@clisp.org>
7938
7939         unilbrk: Clarify gen-uni-tables.c code.
7940         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7941         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7942         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7943
7944 2011-01-07  Bruno Haible  <bruno@clisp.org>
7945
7946         strtod: Restore errno when successfully parsing Infinity or NaN.
7947         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7948         restore the original errno.
7949
7950 2011-01-07  Bruno Haible  <bruno@clisp.org>
7951
7952         remove test: Avoid failure on HP-UX 11.
7953         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7954
7955 2011-01-07  Bruno Haible  <bruno@clisp.org>
7956
7957         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7958         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7959         error code.
7960
7961 2011-01-07  Pádraig Brady <P@draigBrady.com>
7962
7963         ignore-value: fixup comments, and add Eric Blake
7964         as an author since he rewrote the macros.
7965         * lib/ignore-value.h (ignore_value):  State that
7966         we now support aggregates.  Also specify exactly
7967         when the GCC warn_unused_result feature was added.
7968
7969 2011-01-06  Eric Blake  <eblake@redhat.com>
7970
7971         ignore-value: support aggregate types
7972         * lib/ignore-value.h (ignore_value): Provide separate gcc
7973         definition.
7974         * modules/ignore-value-tests: New test module.
7975         * tests/test-ignore-value.c: New test.
7976
7977         maint.mk: improve sc_prohibit_strcmp regex
7978         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7979         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7980         definition of STRNEQ.
7981
7982         signal: work around Haiku issue with SIGBUS
7983         * lib/siglist.h: Add comment.
7984         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7985         strsignal's favoring of SIGSEGV.
7986         * tests/test-signal.c (main): Avoid test failure.
7987         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7988         Reported by Scott McCreary.
7989
7990         maint.mk: add pre-release check to ensure submodule commits are public
7991         * top/maint.mk (public-submodule-commit): New rule.
7992         (submodule-checks): New variable.
7993         (alpha beta stable): Depend on the variable.
7994
7995 2011-01-05  Pádraig Brady <P@draigBrady.com>
7996         and Jim Meyering  <meyering@redhat.com>
7997
7998         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7999         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
8000         (ATTRIBUTE_DEPRECATED): Define.
8001         (_ignore_case): New function.
8002         (ignore_value): New macro, to replace the old function.
8003         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
8004         * modules/ignore-value (Depends-on): Add stdint.
8005
8006 2011-01-04  Eric Blake  <eblake@redhat.com>
8007
8008         doc: regenerate INSTALL
8009         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
8010         @firstparagraphindent support, now that autoconf dropped it.
8011         (INSTALL_PRELUDE): Reinstate old macro.
8012         * doc/install.texi: Resync from autoconf.
8013         * doc/INSTALL: Reflect recent autoconf update.
8014         * doc/INSTALL.ISO: Likewise.
8015         * doc/INSTALL.UTF-8: Likewise.
8016         Reported by Karl Berry.
8017
8018 2011-01-04  Bruce Korb  <address@hidden>
8019
8020         git-version-gen: avoid a sub-shell
8021         * build-aux/git-version-gen: Redirect stderr in `...` via
8022         "exec 2>...", rather than via an added sub-shell.
8023
8024 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
8025
8026         git-version-gen: use (...) rather than sh -c '...'
8027         * build-aux/git-version-gen: Rather than hard-coding a shell's name
8028         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
8029
8030 2011-01-03  Jim Meyering  <meyering@redhat.com>
8031
8032         git-version-gen: convert leading TABs to spaces
8033         * build-aux/git-version-gen: Expand leading TABs.
8034
8035         git-version-gen: handle failed "git rev-list"
8036         * build-aux/git-version-gen: Rather than leaking a "fatal" error
8037         from git and proceeding as if it had succeeded but printed no SHA1
8038         checksums, suppress the diagnostic and handle the failure.
8039         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
8040
8041         git-version-gen: include command name in one more diagnostic
8042         * build-aux/git-version-gen: When the required .tarball-version file
8043         was missing or unreadable, you might see the diagnostic from "cat",
8044         but no trace of the name of the invoking script.  Now, you still see
8045         the diagnostic from cat, but also get one from "git-version-gen: ".
8046         Inspired by a patch from Bruce Korb.
8047
8048         update-copyright: adjust test to match changed code
8049         * tests/test-update-copyright.sh: Change test's expected output
8050         to match new actual output.
8051
8052 2011-01-02  Bruno Haible  <bruno@clisp.org>
8053
8054         getlogin_r: Avoid test failure on HP-UX 11.
8055         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
8056         ERANGE when the second argument is zero.
8057         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
8058         portability problem.
8059
8060 2011-01-02  Bruce Korb  <bkorb@gnu.org>
8061
8062         * build-aux/update-copyright: doc Simon's changes
8063
8064 2011-01-02  Simon Josefsson  <simon@josefsson.org>
8065
8066         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
8067         environment variable.
8068
8069 2011-01-02  Bruno Haible  <bruno@clisp.org>
8070
8071         unigbrk: Avoid gcc warnings.
8072         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
8073         unused variable.
8074         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
8075         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
8076         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
8077         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
8078         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
8079         Change type of first argument to 'const char *'.
8080         (main): Remove unused variable.
8081         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
8082         type of first argument to 'const char *'.
8083         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
8084         Likewise.
8085         (main): Change type of variable 's'.
8086         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
8087         to 'int'.
8088
8089 2011-01-02  Bruno Haible  <bruno@clisp.org>
8090
8091         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
8092         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
8093         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
8094         bug.
8095         * lib/pwrite.c: Undo 2010-12-31 patch.
8096         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
8097
8098 2011-01-02  Bruno Haible  <bruno@clisp.org>
8099
8100         pread: Fix test whether it works.
8101         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
8102
8103 2011-01-02  Bruno Haible  <bruno@clisp.org>
8104
8105         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
8106         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
8107         ends in "6". Don't require a specific month name. Try also the locale
8108         names found on HP-UX 11 and Solaris 7.
8109
8110 2011-01-02  Bruno Haible  <bruno@clisp.org>
8111
8112         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
8113         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
8114         C linkage.
8115         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
8116
8117 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8118
8119         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
8120         for consistency, since the "cluster" term is not used elsewhere.
8121         * lib/unigbrk.in.h: Update name.
8122         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
8123         * lib/unigbrk/u16-grapheme-next.c: Update name.
8124         * lib/unigbrk/u16-grapheme-prev.c: Update name.
8125         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
8126         * lib/unigbrk/u32-grapheme-next.c: Update name.
8127         * lib/unigbrk/u32-grapheme-prev.c: Update name.
8128         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
8129         * lib/unigbrk/u8-grapheme-next.c: Update name.
8130         * lib/unigbrk/u8-grapheme-prev.c: Update name.
8131         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
8132         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
8133         Suggested by Bruno Haible.
8134
8135 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8136
8137         Remove module 'u8-grapheme-len' as too redundant with
8138         'u8-grapheme-next'.
8139         * modules/unigbrk/u8-grapheme-len: Delete file.
8140         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
8141         * lib/unigbrk.in.h: Remove prototype for deleted function.
8142         * lib/unigbrk/u8-grapheme-len.c: Delete file.
8143         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
8144
8145         Remove module 'u16-grapheme-len' as too redundant with
8146         'u16-grapheme-next'.
8147         * modules/unigbrk/u16-grapheme-len: Delete file.
8148         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
8149         * lib/unigbrk.in.h: Remove prototype for deleted function.
8150         * lib/unigbrk/u16-grapheme-len.c: Delete file.
8151         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
8152
8153         Remove module 'u32-grapheme-len' as too redundant with
8154         'u32-grapheme-next'.
8155         * modules/unigbrk/u32-grapheme-len: Delete file.
8156         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
8157         * lib/unigbrk.in.h: Remove prototype for deleted function.
8158         * lib/unigbrk/u32-grapheme-len.c: Delete file.
8159         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
8160
8161         Suggested by Bruno Haible.
8162
8163 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
8164
8165         * unigbrk.in.h: Fix typo: "ben" => "been".
8166         Reported by Bruno Haible.
8167
8168 2011-01-01  Jim Meyering  <meyering@redhat.com>
8169
8170         maint: update almost all copyright ranges to include 2011
8171         Run the new "make update-copyright" rule.
8172
8173 2011-01-01  Jim Meyering  <meyering@redhat.com>
8174
8175         maint: update-copyright: exempt doc/INSTALL*
8176         * Makefile (update-copyright): Also exclude doc/INSTALL*,
8177         since they are generated.  Suggested by Bruno Haible.
8178
8179 2011-01-01  Jim Meyering  <meyering@redhat.com>
8180
8181         maint: refine the update-copyright rule
8182         * Makefile (update-copyright): Also exclude any file that includes
8183         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
8184         code that merely generates the comment.
8185
8186 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8187
8188         New module 'u8-grapheme-len'.
8189         * modules/unigbrk/u8-grapheme-len: New file.
8190         * modules/unigbrk/u8-grapheme-len-tests: New file.
8191         * lib/unigbrk.in.h: Add prototype for new function.
8192         * lib/unigbrk/u8-grapheme-len.c: New file.
8193         * tests/unigbrk/test-u8-grapheme-len.c: New file.
8194
8195         New module 'u16-grapheme-len'.
8196         * modules/unigbrk/u16-grapheme-len: New file.
8197         * modules/unigbrk/u16-grapheme-len-tests: New file.
8198         * lib/unigbrk.in.h: Add prototype for new function.
8199         * lib/unigbrk/u16-grapheme-len.c: New file.
8200         * tests/unigbrk/test-u16-grapheme-len.c: New file.
8201
8202         New module 'u32-grapheme-len'.
8203         * modules/unigbrk/u32-grapheme-len: New file.
8204         * modules/unigbrk/u32-grapheme-len-tests: New file.
8205         * lib/unigbrk.in.h: Add prototype for new function.
8206         * lib/unigbrk/u32-grapheme-len.c: New file.
8207         * tests/unigbrk/test-u32-grapheme-len.c: New file.
8208
8209         New module 'u8-grapheme-next'.
8210         * modules/unigbrk/u8-grapheme-next: New file.
8211         * modules/unigbrk/u8-grapheme-next-tests: New file.
8212         * lib/unigbrk.in.h: Add prototype for new function.
8213         * lib/unigbrk/u8-grapheme-next.c: New file.
8214         * tests/unigbrk/test-u8-grapheme-next.c: New file.
8215
8216         New module 'u16-grapheme-next'.
8217         * modules/unigbrk/u16-grapheme-next: New file.
8218         * modules/unigbrk/u16-grapheme-next-tests: New file.
8219         * lib/unigbrk.in.h: Add prototype for new function.
8220         * lib/unigbrk/u16-grapheme-next.c: New file.
8221         * tests/unigbrk/test-u16-grapheme-next.c: New file.
8222
8223         New module 'u32-grapheme-next'.
8224         * modules/unigbrk/u32-grapheme-next: New file.
8225         * modules/unigbrk/u32-grapheme-next-tests: New file.
8226         * lib/unigbrk.in.h: Add prototype for new function.
8227         * lib/unigbrk/u32-grapheme-next.c: New file.
8228         * tests/unigbrk/test-u32-grapheme-next.c: New file.
8229
8230         New module 'u8-grapheme-prev'.
8231         * modules/unigbrk/u8-grapheme-prev: New file.
8232         * modules/unigbrk/u8-grapheme-prev-tests: New file.
8233         * lib/unigbrk.in.h: Add prototype for new function.
8234         * lib/unigbrk/u8-grapheme-prev.c: New file.
8235         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
8236
8237         New module 'u16-grapheme-prev'.
8238         * modules/unigbrk/u16-grapheme-prev: New file.
8239         * modules/unigbrk/u16-grapheme-prev-tests: New file.
8240         * lib/unigbrk.in.h: Add prototype for new function.
8241         * lib/unigbrk/u16-grapheme-prev.c: New file.
8242         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
8243
8244         New module 'u32-grapheme-prev'.
8245         * modules/unigbrk/u32-grapheme-prev: New file.
8246         * modules/unigbrk/u32-grapheme-prev-tests: New file.
8247         * lib/unigbrk.in.h: Add prototype for new function.
8248         * lib/unigbrk/u32-grapheme-prev.c: New file.
8249         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
8250
8251         New module 'u8-grapheme-breaks'.
8252         * modules/unigbrk/u8-grapheme-breaks: New file.
8253         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
8254         * lib/unigbrk.in.h: Add prototype for new function.
8255         * lib/unigbrk/u8-grapheme-breaks.c: New file.
8256         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
8257
8258         New module 'u16-grapheme-breaks'.
8259         * modules/unigbrk/u16-grapheme-breaks: New file.
8260         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
8261         * lib/unigbrk.in.h: Add prototype for new function.
8262         * lib/unigbrk/u16-grapheme-breaks.c: New file.
8263         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
8264
8265         New module 'u32-grapheme-breaks'.
8266         * modules/unigbrk/u32-grapheme-breaks: New file.
8267         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
8268         * lib/unigbrk.in.h: Add prototype for new function.
8269         * lib/unigbrk/u32-grapheme-breaks.c: New file.
8270         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
8271
8272         New module 'ulc-grapheme-breaks'.
8273         * modules/unigbrk/ulc-grapheme-breaks: New file.
8274         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
8275         * m4/locale-ar.m4: New file.
8276         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
8277         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
8278         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
8279
8280 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
8281
8282         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
8283         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
8284         modified how this file was generated before I initially submitted
8285         the module, but failed to regenerate it.  This meant that several
8286         of the level2 entries were wrong.
8287         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
8288         Remove the division-by-2 that is folded into the table now that
8289         gbrkprop.h has been regenerated properly.  Now -1 entries are
8290         handled correctly.
8291
8292         New module 'unigbrk/uc-gbrk-prop-tests'.
8293         * modules/unigbrk/uc-gbrk-prop-tests: New file.
8294         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
8295         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
8296         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
8297
8298 2011-01-01  Bruno Haible  <bruno@clisp.org>
8299
8300         Avoid use of hexadecimal escapes.
8301         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
8302         instead of hexadecimal escapes.
8303
8304 2011-01-01  Jim Meyering  <meyering@redhat.com>
8305
8306         maint: new rule to update copyright year ranges
8307         * Makefile (update-copyright): New rule.
8308
8309         maint: indent with TABs in Makefile
8310         * Makefile: Expand leading sequences of spaces to TABs
8311
8312         version-etc: update the copyright year it reports
8313         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
8314
8315 2010-12-31  Bruno Haible  <bruno@clisp.org>
8316
8317         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
8318         * lib/isfinite.c (zerof, zerod, zerol): New variables.
8319         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
8320         zero.
8321
8322 2010-12-31  Bruno Haible  <bruno@clisp.org>
8323
8324         pwrite: Work around HP-UX 11.11 bug.
8325         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
8326         works and set REPLACE_PWRITE if not.
8327         * lib/pwrite.c (pwrite): Add an implementation that uses the system
8328         function.
8329         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
8330
8331 2010-12-31  Bruno Haible  <bruno@clisp.org>
8332
8333         pread: Work around HP-UX 11 bugs.
8334         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8335         and set REPLACE_PREAD if not.
8336         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8337
8338 2010-12-31  Eric Blake  <eblake@redhat.com>
8339
8340         nl_langinfo: fix YESEXPR on Irix 6.5
8341         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8342         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8343         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8344         it.
8345
8346 2010-12-31  Bruno Haible  <bruno@clisp.org>
8347
8348         iconv: Document HP-UX 11 bug.
8349         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8350
8351 2010-12-31  Bruno Haible  <bruno@clisp.org>
8352
8353         ldexpl: Fix link error on HP-UX 11.
8354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8355         LDEXPL_LIBM, using $ISNANL_LIBM.
8356
8357 2010-12-31  Eric Blake  <eblake@redhat.com>
8358
8359         ftello: avoid compilation failure with SunStudio c89
8360         * lib/ftello.c (ftello): Use lseek, not llseek.
8361
8362         tests: avoid failing coreutils tests on cygwin
8363         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8364         (create_exe_shims_): Return 0 when skipping.
8365
8366 2010-12-31  Bruno Haible  <bruno@clisp.org>
8367
8368         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8369         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8370
8371 2010-12-31  Bruno Haible  <bruno@clisp.org>
8372
8373         waitpid: Fix link error in C++ mode.
8374         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8375
8376 2010-12-31  Bruno Haible  <bruno@clisp.org>
8377
8378         isnan: Use GCC built-ins when possible.
8379         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8380         __builtin_isnan.
8381         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8382         (isnan): Define using GCC built-ins for GCC >= 4.0.
8383
8384 2010-12-31  Bruno Haible  <bruno@clisp.org>
8385
8386         isnand: Fix mistake.
8387         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8388         __builtin_isnand.
8389
8390 2010-12-31  Bruno Haible  <bruno@clisp.org>
8391
8392         open: Avoid C++ error on HP-UX 11.
8393         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8394
8395 2010-12-31  Bruno Haible  <bruno@clisp.org>
8396
8397         time_r: Add missing declarations on HP-UX 11.
8398         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8399         instead of HAVE_LOCALTIME_R.
8400         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8401         HAVE_LOCALTIME_R always.
8402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8403         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8404         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8405         HAVE_LOCALTIME_R.
8406         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8407         * doc/posix-functions/localtime_r.texi: Likewise.
8408
8409 2010-12-29  Eric Blake  <eblake@redhat.com>
8410
8411         mountlist: tweak previous commit
8412         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8413         Reported by Paul Eggert.
8414
8415         mountlist: fix local drive detection on cygwin
8416         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8417         that works for cygwin.
8418
8419 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8420
8421         ftoastr, snprintf: ftoastr + snprintf module
8422         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8423         since the snprintf module now should be good enough here.
8424         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8425         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8426         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8427         GNULIB_SNPRINTF only for the test directory, and the latter
8428         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8429         seems to suffice by itself.
8430
8431 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8432
8433         alloca: one step towards thread-safety
8434         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8435         need for a static variable.  All callers changed.  This does not
8436         make the alloca replacement thread-safe, but it's one step.
8437
8438         tests: minor indenting change
8439         * tests/init.sh: Sync from coreutils housekeeping patch
8440         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8441         to keep lines within 80 columns.
8442
8443 2010-12-28  Jim Meyering  <meyering@redhat.com>
8444
8445         regex: don't infloop on persistent failing calloc
8446         * lib/regexec.c (build_trtable): Return failure indication upon
8447         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8448         In glibc, this was fixed for version 2.13:
8449         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8450
8451 2010-12-28  Bruno Haible  <bruno@clisp.org>
8452             Paul Eggert <eggert@cs.ucla.edu>
8453
8454         linkat: Make implementation robust against system behaviour variations.
8455         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8456         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8457         way, and to -2 if it needs a generic runtime test.
8458         * lib/linkat.c (solaris_optimized_link_immediate,
8459         solaris_optimized_link_follow): New functions.
8460         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8461         (check_same_link): Use it.
8462
8463 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8464
8465         New module 'unigbrk/base'.
8466         * modules/unigbrk/base: New file.
8467         * lib/unigbrk.in.h: New file.
8468
8469         New module 'unigbrk/uc-gbrk-prop'.
8470         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8471         * modules/unigbrk/uc-gbrk-prop: New file.
8472         * lib/unigbrk/gbrkprop.h: New file.
8473         * lib/unigbrk/uc-gbrk-prop.c: New file.
8474
8475         New module 'unigbrk/uc-is-grapheme-break'.
8476         * modules/unigbrk/uc-is-grapheme-break: New file.
8477         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8478         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8479         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8480         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8481         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8482
8483         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8484
8485 2010-12-27  Bruno Haible  <bruno@clisp.org>
8486
8487         linkat test: Avoid failure on Solaris 11 2010-11.
8488         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8489
8490 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8491
8492         utimens: work around glibc rounding bug on more platforms
8493         * lib/utimens.c (fdutimens): Work around rounding bug even if
8494         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8496
8497 2010-12-27  Bruno Haible  <bruno@clisp.org>
8498
8499         select tests: Improve comments.
8500         * tests/test-select.c (do_select): Add comments.
8501
8502 2010-12-27  Bruno Haible  <bruno@clisp.org>
8503
8504         select tests: Safer way of handling timeout.
8505         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8506         at every invocation.
8507
8508 2010-12-27  Bruno Haible  <bruno@clisp.org>
8509
8510         select tests: Use 'bool' where appropriate.
8511         * tests/test-select.c (connect_to_socket): Change argument type to
8512         'bool'.
8513
8514 2010-12-27  Bruno Haible  <bruno@clisp.org>
8515
8516         select tests: Use existing modules.
8517         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8518         (configure.ac): Don't test for unistd.h.
8519         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8520         declared in <unistd.h>.
8521
8522 2010-12-27  Bruno Haible  <bruno@clisp.org>
8523
8524         mbrtowc: Work around a Solaris 7 bug.
8525         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8526         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8527         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8528         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8529         MBRTOWC_NULL_ARG1_BUG.
8530         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8531         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8532         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8533         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8534
8535 2010-12-27  Jim Meyering  <meyering@redhat.com>
8536
8537         read-file.c: tweak syntax
8538         * lib/read-file.c (fread_file): Remove space after "*" in function
8539         definitions.
8540
8541 2010-12-27  Bruno Haible  <bruno@clisp.org>
8542
8543         times test: Avoid gcc warnings on OSF/1.
8544         * tests/test-times.c (main): Cast printf arguments from clock_t to
8545         'long int'.
8546
8547 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         utimens: work around glibc rounding bug on older Linux kernels
8550         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8551         on Linux with a glibc whose utimes might not work, then work
8552         around a longstanding glibc bug involving rounding rather than
8553         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8555
8556 2010-12-26  Bruno Haible  <bruno@clisp.org>
8557
8558         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8559         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8560         _GL_CXXALIAS_SYS.
8561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8562
8563 2010-12-26  Bruno Haible  <bruno@clisp.org>
8564
8565         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8566         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8567         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8568         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8569         looking for the declaration.
8570         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8571         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8572         problem.
8573         * doc/posix-functions/inet_pton.texi: Likewise.
8574
8575 2010-12-26  Bruno Haible  <bruno@clisp.org>
8576
8577         arpa_inet: Use the common idioms with C++ support.
8578         * lib/arpa_inet.in.h: Include c++defs.h.
8579         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8580         support.
8581         * modules/arpa_inet (Depends-on): Add c++defs.
8582         (Makefile.am): Substitute the contents of c++defs.h.
8583         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8584         * modules/arpa_inet-c++-tests: New file.
8585         * tests/test-arpa_inet-c++.cc: New file.
8586
8587 2010-12-25  Bruno Haible  <bruno@clisp.org>
8588
8589         Fix more C++ link errors on Solaris 8.
8590         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8591         $(LIB_EACCESS).
8592         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8593         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8594         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8595         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8596         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8597
8598 2010-12-25  Bruno Haible  <bruno@clisp.org>
8599
8600         printf-posix: Fix link error when a non-GCC compiler is used.
8601         * lib/stdio.in.h (printf): When not using GCC, override printf
8602         correctly.
8603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8604
8605 2010-12-25  Bruno Haible  <bruno@clisp.org>
8606
8607         strerror_r-posix: Update doc.
8608         * doc/posix-functions/strerror_r.texi: Update doc about the return
8609         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8610
8611 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8612
8613         utimens: simplify the logic of the previous change
8614         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8615         This should not affect whether the test succeeds or fails.
8616
8617         utimens: configure better on hosts with NFS clock skew
8618         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8619         uses the clock of the local host.  It might use the clock of the
8620         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8622
8623 2010-12-25  Bruno Haible  <bruno@clisp.org>
8624
8625         ptsname test: Avoid failure on Solaris.
8626         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8627         open a pseudo-terminal; don't use BSD-style ptys.
8628         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8629
8630 2010-12-25  Bruno Haible  <bruno@clisp.org>
8631
8632         ptsname: Avoid ERANGE failure on some systems.
8633         * lib/ptsname.c (buffer): Increase size.
8634
8635 2010-12-25  Bruno Haible  <bruno@clisp.org>
8636
8637         rename, renameat: Avoid test failures at NFS mounted locations.
8638         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8639         so that subsequent mkdir calls succeed.
8640
8641 2010-12-25  Bruno Haible  <bruno@clisp.org>
8642
8643         iswblank: Fix C++ link error on Solaris 8.
8644         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8645         _GL_FUNCDECL_SYS.
8646
8647 2010-12-25  Bruno Haible  <bruno@clisp.org>
8648
8649         unistd: Fix C++ link error on Solaris 8.
8650         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8651
8652 2010-12-25  Bruno Haible  <bruno@clisp.org>
8653
8654         readlink doc: Mention an old glibc bug.
8655         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8656
8657 2010-12-25  Bruno Haible  <bruno@clisp.org>
8658
8659         fcntl-h: Fix for use of C++ on glibc systems.
8660         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8661         also on glibc systems in C++ mode.
8662         Reported by Gary V. Vaughan <gary@gnu.org>.
8663
8664 2010-12-25  Bruno Haible  <bruno@clisp.org>
8665
8666         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8667         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8668
8669 2010-12-25  Bruno Haible  <bruno@clisp.org>
8670
8671         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8672         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8673         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8674         test whether truncl works according to ISO C 99 with IEC 60559.
8675         * m4/truncl-ieee.m4: New file.
8676         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8677         m4/signbit.m4.
8678         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8679
8680 2010-12-25  Bruno Haible  <bruno@clisp.org>
8681
8682         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8683         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8684         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8685         test whether ceill works according to ISO C 99 with IEC 60559.
8686         * m4/ceill-ieee.m4: New file.
8687         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8688         m4/signbit.m4.
8689         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8690
8691 2010-12-25  Bruno Haible  <bruno@clisp.org>
8692
8693         Ensure all prerequisites of <wchar.h> are included.
8694         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8695         before <wchar.h>.
8696         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8697         gl_MBRLEN_NUL_RETVAL): Likewise.
8698         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8699         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8700         AC_FUNC_MBRTOWC): Likewise.
8701         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8702         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8704         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8705         Likewise.
8706         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8707         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8708         (gl_WCHAR_H): Improve comments.
8709         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8710
8711 2010-12-25  Bruno Haible  <bruno@clisp.org>
8712
8713         strtok_r: Fix C syntax error in autoconf macro.
8714         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8715         characters in test program.
8716
8717 2010-12-24  Bruno Haible  <bruno@clisp.org>
8718
8719         ceil, trunc, round: Fix gcc warnings.
8720         * lib/ceil.c (MIN): Undefine before redefining.
8721         * lib/trunc.c (MIN): Likewise.
8722         * lib/round.c (MIN): Likewise.
8723         Include <math.h> first.
8724
8725 2010-12-24  Bruno Haible  <bruno@clisp.org>
8726
8727         select tests: Avoid failures on OSF/1 5.1.
8728         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8729         failure of closing the last socket; it may fail with ECONNRESET.
8730
8731 2010-12-24  Eric Blake  <eblake@redhat.com>
8732
8733         stdint: avoid HP-UX 10.20 preprocessor bug
8734         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8735         than #if.
8736         * tests/test-floor2.c (main): Likewise.
8737         Reported by Peter O'Gorman.
8738
8739         pipe: make obsoletion transition easier
8740         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8741         * modules/pipe (Files): Include revived file.
8742         (Include): Drop reference, to mirror getdate's behavior.
8743
8744 2010-12-24  Bruno Haible  <bruno@clisp.org>
8745
8746         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8747         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8748         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8749         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8750
8751 2010-12-24  Bruno Haible  <bruno@clisp.org>
8752
8753         gethostname: Ensure declaration on NonStop Kernel.
8754         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8755         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8756
8757 2010-12-24  Bruno Haible  <bruno@clisp.org>
8758
8759         sys_select: Ensure all necessary types on NonStop Kernel.
8760         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8761         include <sys/time.h>.
8762         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8763         NonStop Kernel.
8764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8765
8766 2010-12-24  Bruno Haible  <bruno@clisp.org>
8767
8768         sys_select: Remove unneeded include.
8769         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8770         have <sys/select.h>.
8771
8772 2010-12-24  Bruno Haible  <bruno@clisp.org>
8773
8774         gethostname: Provide a fallback for HOST_NAME_MAX.
8775         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8776         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8777         instead.
8778         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8779
8780 2010-12-24  Bruno Haible  <bruno@clisp.org>
8781
8782         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8783         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8784         (SA_RESTART): Likewise.
8785         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8786
8787 2010-12-24  Bruno Haible  <bruno@clisp.org>
8788
8789         signal: Define NSIG.
8790         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8791         * tests/test-signal.c (nsig): New variable.
8792         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8793
8794 2010-12-24  Bruno Haible  <bruno@clisp.org>
8795
8796         rename, renameat: Avoid test failures on OSF/1 5.1.
8797         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8798         alternative error codes.
8799         * tests/test-renameat.c (main): Likewise.
8800
8801 2010-12-24  Bruno Haible  <bruno@clisp.org>
8802
8803         *printf: Detect large precisions bug on Solaris 10/SPARC.
8804         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8805         by Paul Eggert.
8806         * tests/test-snprintf-posix.h (test_function): Add this test code here
8807         too.
8808         * tests/test-sprintf-posix.h (test_function): Likewise.
8809         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8810         * tests/test-vasprintf-posix.c (test_function): Likewise.
8811         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8812         around by gnulib.
8813         * doc/posix-functions/printf.texi: Likewise.
8814         * doc/posix-functions/snprintf.texi: Likewise.
8815         * doc/posix-functions/sprintf.texi: Likewise.
8816         * doc/posix-functions/vfprintf.texi: Likewise.
8817         * doc/posix-functions/vprintf.texi: Likewise.
8818         * doc/posix-functions/vsnprintf.texi: Likewise.
8819         * doc/posix-functions/vsprintf.texi: Likewise.
8820         * doc/posix-functions/dprintf.texi: Undo last commit.
8821         * doc/posix-functions/vdprintf.texi: Likewise.
8822
8823 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8824
8825         tests: port test-fdutimensat.c to Solaris 8
8826         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8827         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8828         On Solaris 8, it fails with errno == ENOSYS, because there is no
8829         futimens (so it can't use the fd), and there is no lutimens (so it
8830         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8831
8832         vsnprintf: make more consistent with snprintf; doc fixes
8833
8834         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8835         the byte count return problem was promoted from the snprintf-posix
8836         to the snprintf module.
8837         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8838         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8839         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8840         * tests/test-snprintf.c (main): Check the byte count returned.
8841         * tests/test-vsnprintf.c (main): Likewise.
8842
8843 2010-12-23  Eric Blake  <eblake@redhat.com>
8844
8845         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8846         * modules/sigpipe (License): Relax license.
8847
8848 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8849
8850         doc: document Solaris printf bug with large float precisions
8851         * doc/posix-functions/dprintf.texi (dprintf):
8852         * doc/posix-functions/fprintf.texi (fprintf):
8853         * doc/posix-functions/printf.texi (printf):
8854         * doc/posix-functions/snprintf.texi (snprintf):
8855         * doc/posix-functions/sprintf.texi (sprintf):
8856         * doc/posix-functions/vdprintf.texi (vdprintf):
8857         * doc/posix-functions/vfprintf.texi (vfprintf):
8858         * doc/posix-functions/vprintf.texi (vprintf):
8859         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8860         * doc/posix-functions/vsprintf.texi (vsprintf):
8861         Mention that these functions mishandle large floating point
8862         precisions on Solaris 10.  The same bug is also present in Solaris
8863         8, and I assume earlier.  This causes "cd gnulib-tests; make
8864         check" to fail on Solaris 8 (and I assume, later) when building
8865         the latest coreutils, in test-vasprintf-posix's call to
8866         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8867         the wide flavors (e.g., wprintf) so this patch just updates the
8868         documentation for the narrow ones.
8869
8870         test-posixtm.c: add two tests
8871         * tests/test-posixtm.c: Add two tests, to highlight the
8872         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8873         around this bug; this is merely to document it.
8874
8875 2010-12-22  Bruno Haible  <bruno@clisp.org>
8876
8877         getlogin_r: Work around portability problem on OSF/1.
8878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8879         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8880         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8881         test for a truncated result.
8882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8883         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8884         * modules/getlogin_r (Depends-on): Add memchr.
8885         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8886
8887 2010-12-22  Bruno Haible  <bruno@clisp.org>
8888
8889         ptsname: Avoid test failure on OSF/1 5.1.
8890         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8891         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8892         (same_slave): New function.
8893         (main): Use it to compare ptsname's result with the expected file name.
8894
8895 2010-12-22  Bruno Haible  <bruno@clisp.org>
8896
8897         Port extended stdio modules to HP NonStop Kernel.
8898         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8899         macros.
8900         * lib/fbufmode.c: Update comments.
8901         * lib/fflush.c: Likewise.
8902         * lib/fpurge.c: Likewise.
8903         * lib/freadable.c: Likewise.
8904         * lib/freadahead.c: Likewise.
8905         * lib/freading.c: Likewise.
8906         * lib/freadptr.c: Likewise.
8907         * lib/freadseek.c: Likewise.
8908         * lib/fseeko.c: Likewise.
8909         * lib/fseterr.c: Likewise.
8910         * lib/fwritable.c: Likewise.
8911         * lib/fwriting.c: Likewise.
8912         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8913
8914 2010-12-22  Bruno Haible  <bruno@clisp.org>
8915
8916         ttyname_r: Work around bug on OSF/1 5.1.
8917         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8919         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8920         present.
8921         * lib/ttyname_r.c (ttyname_r): Update comments.
8922
8923 2010-12-22  Bruno Haible  <bruno@clisp.org>
8924
8925         round: Implement result sign according to IEEE 754.
8926         * lib/round.c (MIN, MINUS_ZERO): New macros.
8927         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8928         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8929         * tests/test-round-ieee.c (main): Likewise.
8930         * tests/test-roundl-ieee.c (main): Likewise.
8931
8932         trunc: Implement result sign according to IEEE 754.
8933         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8934         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8935         * tests/test-trunc2.c: Include minus-zero.h.
8936         (MINUS_ZERO): New macro.
8937         (trunc_reference): Keep in sync with lib/trunc.c.
8938         * tests/test-truncf2.c: Include minus-zero.h.
8939         (MINUS_ZERO): New macro.
8940         (truncf_reference): Keep in sync with lib/trunc.c.
8941         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8942         * tests/test-trunc-ieee.c (main): Likewise.
8943         * tests/test-truncl-ieee.c (main): Likewise.
8944
8945         ceil: Implement result sign according to IEEE 754.
8946         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8947         (FUNC): Return -0.0 for -1 < x < 0.
8948         * tests/test-ceil2.c: Include minus-zero.h.
8949         (MINUS_ZERO): New macro.
8950         (ceil_reference): Keep in sync with lib/ceil.c.
8951         * tests/test-ceilf2.c: Include minus-zero.h.
8952         (MINUS_ZERO): New macro.
8953         (ceilf_reference): Keep in sync with lib/ceil.c.
8954         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8955         * tests/test-ceil-ieee.c (main): Likewise.
8956         * tests/test-ceill-ieee.c (main): Likewise.
8957
8958         floor: Implement result sign according to IEEE 754.
8959         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8960         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8961         * tests/test-floorf2.c (floorf_reference): Likewise.
8962         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8963         * tests/test-floor-ieee.c (main): Likewise.
8964         * tests/test-floorl-ieee.c (main): Likewise.
8965
8966 2010-12-22  Bruno Haible  <bruno@clisp.org>
8967
8968         getaddrinfo: Update doc.
8969         * doc/posix-functions/gai_strerror.texi: Return type is also different
8970         on AIX and HP-UX.
8971
8972 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8973
8974         getaddrinfo, inet_ntop: Update doc for Solaris.
8975         * doc/posix-functions/gai_strerror.texi: Return type is also an
8976         issue on Solaris 9 and earlier.
8977         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8978         on Solaris 10 and earlier.
8979
8980 2010-12-21  Bruno Haible  <bruno@clisp.org>
8981
8982         New module 'roundl-ieee'.
8983         * modules/roundl-ieee: New file.
8984         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8985         test whether roundl works according to ISO C 99 with IEC 60559.
8986         * m4/roundl-ieee.m4: New file.
8987         * modules/roundl-ieee-tests: New file.
8988         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8989         * tests/test-roundl.c (main): Remove signbit tests.
8990         * modules/roundl-tests (Depends-on): Remove signbit.
8991         * doc/posix-functions/roundl.texi: Mention the new module.
8992
8993 2010-12-21  Bruno Haible  <bruno@clisp.org>
8994
8995         New module 'truncl-ieee'.
8996         * modules/truncl-ieee: New file.
8997         * modules/truncl-ieee-tests: New file.
8998         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8999         * tests/test-truncl.c (main): Remove signbit tests.
9000         * modules/truncl-tests (Depends-on): Remove signbit.
9001         * doc/posix-functions/truncl.texi: Mention the new module.
9002
9003 2010-12-21  Bruno Haible  <bruno@clisp.org>
9004
9005         New module 'ceill-ieee'.
9006         * modules/ceill-ieee: New file.
9007         * modules/ceill-ieee-tests: New file.
9008         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
9009         * tests/test-ceill.c (main): Remove signbit tests.
9010         * modules/ceill-tests (Depends-on): Remove signbit.
9011         * doc/posix-functions/ceill.texi: Mention the new module.
9012
9013 2010-12-21  Bruno Haible  <bruno@clisp.org>
9014
9015         New module 'floorl-ieee'.
9016         * modules/floorl-ieee: New file.
9017         * modules/floorl-ieee-tests: New file.
9018         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
9019         * tests/test-floorl.c (main): Remove signbit tests.
9020         * modules/floorl-tests (Depends-on): Remove signbit.
9021         * doc/posix-functions/floorl.texi: Mention the new module.
9022
9023 2010-12-21  Bruno Haible  <bruno@clisp.org>
9024
9025         New module 'round-ieee'.
9026         * modules/round-ieee: New file.
9027         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
9028         whether round works according to ISO C 99 with IEC 60559.
9029         * m4/round-ieee.m4: New file.
9030         * modules/round-ieee-tests: New file.
9031         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
9032         * tests/test-round1.c (main): Remove signbit tests.
9033         * modules/round-tests (Depends-on): Remove 'signbit'.
9034         * doc/posix-functions/round.texi: Mention the new module.
9035
9036 2010-12-21  Bruno Haible  <bruno@clisp.org>
9037
9038         New module 'trunc-ieee'.
9039         * modules/trunc-ieee: New file.
9040         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
9041         whether trunc works according to ISO C 99 with IEC 60559.
9042         * m4/trunc-ieee.m4: New file.
9043         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
9044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
9045         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
9046         * modules/trunc-ieee-tests: New file.
9047         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
9048         * tests/test-trunc1.c (main): Remove signbit tests.
9049         * modules/trunc-tests (Depends-on): Remove 'signbit'.
9050         * doc/posix-functions/trunc.texi: Mention the new module.
9051
9052 2010-12-21  Bruno Haible  <bruno@clisp.org>
9053
9054         New module 'ceil-ieee'.
9055         * modules/ceil-ieee: New file.
9056         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
9057         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
9058         ISO C 99 with IEC 60559.
9059         * m4/ceil-ieee.m4: New file.
9060         * modules/ceil (Files): Add lib/ceil.c.
9061         (Depends-on): Add 'float'.
9062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9063         * lib/math.in.h (ceil): New declaration.
9064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
9065         REPLACE_CEIL.
9066         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
9067         * modules/ceil-ieee-tests: New file.
9068         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
9069         * tests/test-math-c++.cc: Check the signature of 'ceil'.
9070         * doc/posix-functions/ceil.texi: Mention the new module.
9071
9072 2010-12-21  Bruno Haible  <bruno@clisp.org>
9073
9074         New module 'floor-ieee'.
9075         * modules/floor-ieee: New file.
9076         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
9077         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
9078         ISO C 99 with IEC 60559.
9079         * m4/floor-ieee.m4: New file.
9080         * modules/floor (Files): Add lib/floor.c.
9081         (Depends-on): Add 'float'.
9082         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9083         * lib/math.in.h (floor): New declaration.
9084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
9085         REPLACE_FLOOR.
9086         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
9087         * modules/floor-ieee-tests: New file.
9088         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
9089         * tests/test-math-c++.cc: Check the signature of 'floor'.
9090         * doc/posix-functions/floor.texi: Mention the new module.
9091
9092 2010-12-21  Bruno Haible  <bruno@clisp.org>
9093
9094         New module 'roundf-ieee'.
9095         * modules/roundf-ieee: New file.
9096         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
9097         test whether roundf works according to ISO C 99 with IEC 60559.
9098         * m4/roundf-ieee.m4: New file.
9099         * modules/roundf-ieee-tests: New file.
9100         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
9101         * tests/test-roundf1.c (main): Remove signbit tests.
9102         * modules/roundf-tests (Depends-on): Remove 'signbit'.
9103         * doc/posix-functions/roundf.texi: Mention the new module.
9104
9105 2010-12-21  Bruno Haible  <bruno@clisp.org>
9106
9107         New module 'truncf-ieee'.
9108         * modules/truncf-ieee: New file.
9109         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
9110         test whether truncf works according to ISO C 99 with IEC 60559.
9111         * m4/truncf-ieee.m4: New file.
9112         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
9113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
9114         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
9115         * modules/truncf-ieee-tests: New file.
9116         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
9117         * tests/test-truncf1.c (main): Remove signbit tests.
9118         * modules/truncf-tests (Depends-on): Remove 'signbit'.
9119         * doc/posix-functions/truncf.texi: Mention the new module.
9120
9121 2010-12-21  Bruno Haible  <bruno@clisp.org>
9122
9123         New module 'ceilf-ieee'.
9124         * modules/ceilf-ieee: New file.
9125         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
9126         test whether ceilf works according to ISO C 99 with IEC 60559.
9127         * m4/ceilf-ieee.m4: New file.
9128         * modules/ceilf-ieee-tests: New file.
9129         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
9130         * tests/test-ceilf1.c (main): Remove signbit tests.
9131         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
9132         * doc/posix-functions/ceilf.texi: Mention the new module.
9133
9134 2010-12-21  Bruno Haible  <bruno@clisp.org>
9135
9136         New module 'floorf-ieee'.
9137         * modules/floorf-ieee: New file.
9138         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
9139         test whether floorf works according to ISO C 99 with IEC 60559.
9140         * m4/floorf-ieee.m4: New file.
9141         * modules/floorf-ieee-tests: New file.
9142         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
9143         * tests/test-floorf1.c (main): Remove signbit tests.
9144         * modules/floorf-tests (Depends-on): Remove 'signbit'.
9145         * doc/posix-functions/floorf.texi: Mention the new module.
9146
9147 2010-12-21  Bruno Haible  <bruno@clisp.org>
9148
9149         Support for minus zero in autoconf macros.
9150         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
9151         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
9152         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
9153         * tests/minus-zero.h: Update comments.
9154
9155 2010-12-21  Bruno Haible  <bruno@clisp.org>
9156
9157         Tests for module 'ceil'.
9158         * modules/ceil-tests: New file.
9159         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
9160         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
9161
9162 2010-12-21  Bruno Haible  <bruno@clisp.org>
9163
9164         Tests for module 'floor'.
9165         * modules/floor-tests: New file.
9166         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
9167         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
9168
9169 2010-12-21  Bruno Haible  <bruno@clisp.org>
9170
9171         math: Fix indentation.
9172         * lib/math.in.h (floorf): Fix indentation.
9173
9174 2010-12-21  Bruno Haible  <bruno@clisp.org>
9175
9176         Fix cross-compilation guesses on Solaris.
9177         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
9178         not match "solaris2.10".
9179         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9180         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
9181         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
9182
9183 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
9186         This fixes a problem observed with the latest coreutils snapshot
9187         that caused a test to fail on Solaris 8.  src/csplit.c's call
9188         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
9189         earlier, instead of returning the number of bytes that would have
9190         been generated; this causes csplit to incorrectly report memory
9191         exhaustion.
9192         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
9193         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
9194         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
9195         comments to match.
9196         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
9197         Fix typo in matching older versions of Solaris: "solaris2.10"
9198         is matched by the shell pattern "solaris2.[0-9]*".  This matters
9199         only for guessing while cross-compiling.
9200         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
9201
9202 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9203
9204         ftoastr: fix comment again
9205         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
9207         Also, simplify example a bit by using flags = 0.
9208
9209 2010-12-20  Bruno Haible  <bruno@clisp.org>
9210
9211         round*, trunc*: Update documentation regarding glibc.
9212         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
9213         * doc/posix-functions/round.texi: Likewise.
9214         * doc/posix-functions/roundl.texi: Likewise.
9215         * doc/posix-functions/truncf.texi: Likewise.
9216         * doc/posix-functions/trunc.texi: Likewise.
9217         * doc/posix-functions/truncl.texi: Likewise.
9218
9219 2010-12-20  Bruno Haible  <bruno@clisp.org>
9220
9221         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
9222         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
9223         * doc/posix-functions/round.texi: Likewise.
9224         * doc/posix-functions/roundl.texi: Likewise.
9225
9226 2010-12-20  Bruno Haible  <bruno@clisp.org>
9227
9228         ttyname_r: Add missing declaration on HP-UX 11.
9229         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
9230         HAVE_TTYNAME_R.
9231         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
9232         declared. Set HAVE_TTYNAME_R always.
9233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9234         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
9235         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
9236         HAVE_TTYNAME_R.
9237         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
9238
9239 2010-12-20  Bruno Haible  <bruno@clisp.org>
9240
9241         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
9242         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
9243         * doc/posix-functions/getlogin_r.texi: Likewise.
9244         * tests/test-getlogin.c: Include <errno.h>.
9245         (main): Avoid test failure on HP-UX 11.11.
9246         * tests/test-getlogin_r.c (main): Likewise.
9247
9248 2010-12-20  Bruno Haible  <bruno@clisp.org>
9249
9250         getlogin_r: Add missing declaration on HP-UX 11.
9251         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
9252         declared also when it exists as a function.
9253         * doc/posix-functions/getlogin_r.texi: Document this workaround.
9254
9255 2010-12-20  Bruno Haible  <bruno@clisp.org>
9256
9257         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
9258         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
9259         through wcrtomb.
9260
9261 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9262
9263         ftoastr: fix comment
9264         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
9265         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
9266
9267 2010-12-19  Bruno Haible  <bruno@clisp.org>
9268
9269         isnan: Ensure it is a macro.
9270         * lib/math.in.h (isnan): Define as a macro if not already a macro.
9271         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
9272         Solaris.
9273
9274 2010-12-19  Bruno Haible  <bruno@clisp.org>
9275
9276         ldexpl test: Fix link error on OSF/1 5.1.
9277         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
9278
9279 2010-12-19  Bruno Haible  <bruno@clisp.org>
9280
9281         wctype: Make it work in C++ mode on OSF/1 5.1.
9282         * lib/wctype.in.h (iswblank): Declare but not define here.
9283         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
9284         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
9285         * modules/wctype (Files): Add lib/iswblank.c.
9286
9287 2010-12-19  Bruno Haible  <bruno@clisp.org>
9288
9289         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
9290         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
9291         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
9292
9293 2010-12-19  Bruno Haible  <bruno@clisp.org>
9294
9295         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
9296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
9297         _POSIX_PII_SOCKET.
9298         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
9299         * doc/posix-functions/recvfrom.texi: Likewise.
9300         * doc/posix-functions/send.texi: Likewise.
9301         * doc/posix-functions/sendto.texi: Likewise.
9302
9303 2010-12-19  Bruno Haible  <bruno@clisp.org>
9304
9305         tcgetsid: Add missing declaration on OSF/1 5.1.
9306         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
9307         HAVE_TCGETSID.
9308         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
9309         Don't set HAVE_TCGETSID.
9310         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
9311         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
9312         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
9313         HAVE_TCGETSID.
9314         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
9315
9316 2010-12-19  Bruno Haible  <bruno@clisp.org>
9317
9318         stdio: Fix problem with popen() declaration on OSF/1 5.1.
9319         * lib/stdio.in.h: During the include_next statement, let recursive
9320         includes of this file include only the system header file.
9321
9322 2010-12-19  Bruno Haible  <bruno@clisp.org>
9323
9324         iconv_open: Fix regression from 2010-12-04.
9325         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
9326         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
9327
9328 2010-12-19  Bruno Haible  <bruno@clisp.org>
9329
9330         stdbool test: Avoid a gcc warning.
9331         * tests/test-stdbool.c (main): Fail if e1 is false.
9332         Reported by Jim Meyering.
9333
9334 2010-12-19  Jim Meyering  <meyering@redhat.com>
9335
9336         setenv: restore to working order
9337         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9338         mistakenly removed.
9339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9340         HAVE_SETENV.
9341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9342         HAVE_SETENV.
9343
9344 2010-12-19  Bruno Haible  <bruno@clisp.org>
9345
9346         Document some different function declarations on OSF/1 5.1.
9347         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9348         * doc/posix-functions/inet_ntop.texi: Likewise.
9349         * doc/posix-functions/gethostname.texi: Likewise.
9350         * lib/unistd.in.h (gethostname): Update comment.
9351
9352 2010-12-19  Bruno Haible  <bruno@clisp.org>
9353
9354         doc: Mention vasprintf-posix module.
9355         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9356         the 'vasprintf-posix' module.
9357         * doc/glibc-functions/vasprintf.texi: Likewise.
9358
9359 2010-12-19  Bruno Haible  <bruno@clisp.org>
9360
9361         unsetenv: Add missing declaration on OSF/1 5.1.
9362         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9364         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9366         not HAVE_UNSETENV.
9367         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9368         HAVE_UNSETENV.
9369         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9370
9371 2010-12-19  Bruno Haible  <bruno@clisp.org>
9372
9373         setenv: Add missing declaration on OSF/1 5.1.
9374         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9375         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9376         declared. Don't set HAVE_SETENV.
9377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9378         not HAVE_SETENV.
9379         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9380         HAVE_SETENV.
9381         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9382
9383 2010-12-19  Bruno Haible  <bruno@clisp.org>
9384
9385         nl_langinfo tests: Avoid gcc warning.
9386         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9387
9388 2010-12-19  Bruno Haible  <bruno@clisp.org>
9389
9390         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9391         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9392         _GL_CXXALIAS_SYS.
9393
9394 2010-12-19  Bruno Haible  <bruno@clisp.org>
9395
9396         stdbool: Relax test.
9397         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9398         address to 'bool' work in static initializer, for compilers other than
9399         GCC.
9400
9401 2010-12-19  Bruno Haible  <bruno@clisp.org>
9402
9403         ftello: Add missing declaration on OSF/1 5.1.
9404         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9405         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9407         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9408         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9409
9410 2010-12-19  Bruno Haible  <bruno@clisp.org>
9411
9412         fseeko: Add missing declaration on OSF/1 5.1.
9413         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9414         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9416         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9417         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9418
9419 2010-12-19  Bruno Haible  <bruno@clisp.org>
9420
9421         fchdir: Add missing declaration on OSF/1 5.1.
9422         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9425         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9426         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9427
9428 2010-12-19  Bruno Haible  <bruno@clisp.org>
9429
9430         relocatable-prog-wrapper: Separate from relocatable-prog.
9431         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9432         uninstall-relocwrapper rule here.
9433         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9434         Reported by Ian Beckwith <ianb@erislabs.net>.
9435
9436 2010-12-19  Bruno Haible  <bruno@clisp.org>
9437
9438         unistr/u8-mbsnlen: Add missing dependency.
9439         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9440         Reported by Ian Beckwith <ianb@erislabs.net>.
9441
9442 2010-12-19  Bruno Haible  <bruno@clisp.org>
9443
9444         iconv: Make it possible again to use this module without 'iconv-h'.
9445         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9446         if it is not defined.
9447         Reported by Ian Beckwith <ianb@erislabs.net>.
9448
9449 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9450
9451         acl: port to Solaris 8 when copying from tmpfs to ufs
9452         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9453         error number.  Problem observed on Solaris 8 with latest
9454         coreutils, with "mv A B", where A is on a tmpfs file system and B
9455         is on a ufs file system.  This caused coreutils' mv/part-symlink
9456         test to fail.
9457
9458         tests: set fail=0 at start
9459         * tests/init.sh (setup_): Move fail=0 initialization here ...
9460         (mktempd_): ... from here, so that tests can rely on fail being
9461         set to 0 initially.  This fixes a problem in coreutils; see:
9462         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9463
9464 2010-12-18  Bruno Haible  <bruno@clisp.org>
9465
9466         memmem-simple: Stylistic changes.
9467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9468         Fix preprocessor directive indentation.
9469
9470 2010-12-15  Pádraig Brady <P@draigBrady.com>
9471
9472         memmem, memmem-simple: reorganize and expand empty needle check
9473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9474         functional checks to memmem-simple so that one has a fully functional
9475         memmem by using just this module.
9476         Restrict the performance only check to the memmem module.
9477         Also expand the empty needle check to ensure the correct
9478         pointer is returned, not just a non NULL pointer.
9479         * doc/glibc-functions/memmem.texi: Rearrange the portability
9480         documentation to correlate with the rearranged checks.
9481         Clarify exactly how the memmem and memmem-simple modules
9482         relate to each other.
9483
9484 2010-12-15  Pádraig Brady <P@draigBrady.com>
9485             Bruno Haible  <bruno@clisp.org>
9486
9487         Improve cross-compilation guesses for uClibc.
9488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9489         that uClibc does not have the glibc bug.
9490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9491         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9492
9493 2010-12-14  Eric Blake  <eblake@redhat.com>
9494
9495         configmake: provide fallbacks for oldest supported autotools
9496         * m4/configmake.m4: New file.
9497         * modules/configmake (Files): Ship it.
9498         (configure.ac): Use it to guarantee fallbacks.
9499
9500 2010-12-13  Pádraig Brady <P@draigBrady.com>
9501
9502         read-file: Improve handling of large files
9503         * lib/read-file.c (fread_file): Minimize realloc()s
9504         for regular files, and better manage sizes around SIZE_MAX.
9505
9506 2010-12-13  Eric Blake  <eblake@redhat.com>
9507
9508         cloexec, fcntl: relax license
9509         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9510         consent from all contributors.
9511         * modules/fcntl (License): Likewise.
9512
9513 2010-12-10  Bruno Haible  <bruno@clisp.org>
9514
9515         Tests for module 'pipe-posix'.
9516         * modules/pipe-posix-tests: New file.
9517         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9518
9519 2010-12-10  Bruno Haible  <bruno@clisp.org>
9520
9521         pipe-posix: Make it work in C++ mode.
9522         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9523         (pipe): Use common idiom, not a macro definition.
9524         * lib/pipe.c: New file.
9525         * m4/pipe.m4: New file.
9526         * modules/pipe-posix (Description): Enhance.
9527         (Files): Add lib/pipe.c, m4/pipe.m4.
9528         (configure.ac): Invoke gl_FUNC_PIPE.
9529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9530         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9531         * tests/test-unistd-c++.cc: Check the signature of pipe.
9532
9533 2010-12-10  Bruno Haible  <bruno@clisp.org>
9534
9535         Rename module 'pipe' to 'spawn-pipe'.
9536         * modules/spawn-pipe: New file, renamed from modules/pipe.
9537         (Files, configure.ac, Makefile.am): Update.
9538         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9539         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9540         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9541         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9542         "spawn-pipe.h" instead of "pipe.h".
9543         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9544         to gl_SPAWN_PIPE.
9545         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9546         (Files, Makefile.am): Update.
9547         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9548         Update.
9549         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9550         Include "spawn-pipe.h" instead of "pipe.h".
9551         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9552         * lib/javacomp.c: Likewise.
9553         * lib/javaversion.c: Likewise.
9554         * lib/pipe-filter-gi.c: Likewise.
9555         * lib/pipe-filter-ii.c: Likewise.
9556         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9557         * modules/javacomp (Depends-on): Likewise.
9558         * modules/javaversion (Depends-on): Likewise.
9559         * modules/pipe-filter-gi (Depends-on): Likewise.
9560         * modules/pipe-filter-ii (Depends-on): Likewise.
9561         * MODULES.html.sh (Executing programs): Update.
9562         * NEWS: Mention the change.
9563
9564 2010-12-10  Eric Blake  <eblake@redhat.com>
9565
9566         pipe-posix: new module
9567         * modules/pipe-posix: New file.
9568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9569         (gl_UNISTD_H): Check for declaration.
9570         * modules/unistd (Makefile.am): Substitute it.
9571         * lib/unistd.in.h (pipe): Provide it for mingw.
9572         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9573         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9574
9575 2010-12-07  Bruno Haible  <bruno@clisp.org>
9576
9577         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9578         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9579         u8_strcmp_gnu.
9580         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9581
9582 2010-12-06  Bruno Haible  <bruno@clisp.org>
9583
9584         Update internal documentation.
9585         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9586
9587 2010-12-04  Bruno Haible  <bruno@clisp.org>
9588
9589         Put more information about failed tests into the test return codes.
9590         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9591         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9593         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9594         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9595         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9597         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9598         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9600         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9601         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9602         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9604         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9605         returns a bit mask.
9606         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9607         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9608         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9609         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9611         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9614         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9615         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9616         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9617         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9618         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9620         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9621         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9622         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9623         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9624         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9625         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9627         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9630         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9631         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9632         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9633         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9634         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9635         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9636         gl_PRINTF_PRECISION): Likewise.
9637         * m4/regex.m4 (gl_REGEX): Likewise.
9638         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9641         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9644         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9645         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9647         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9648         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9649         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9650         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9651         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9652         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9654         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9655         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9657         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9658         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9659         enumerated value.
9660         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9661
9662 2010-12-04  Bruno Haible  <bruno@clisp.org>
9663
9664         Update for Solaris 11 2010-11.
9665         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9666         Express, released in November 2010.
9667
9668 2010-12-04  Bruno Haible  <bruno@clisp.org>
9669
9670         nproc: Relax license.
9671         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9672         and Paul Eggert.
9673         Requested by Ludovic Courtès <ludo@gnu.org>.
9674
9675 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9676
9677         utimecmp: fine-grained src to nearby coarse-grained dest
9678
9679         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9680         and the source is on a file system with higher-resolution time
9681         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9682         not work, and the time stamps are close together, the algorithm to
9683         determine the exact resolution from the read-back mtime was buggy:
9684         it had a "!=" where it should have had an "==".  This bug has been
9685         in the code ever since it was introduced to gnulib.
9686         Problem reported by Dan Jacobson in
9687         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9688
9689 2010-11-30  Bruno Haible  <bruno@clisp.org>
9690
9691         strerror_r-posix: Fix autoconf test.
9692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9693
9694 2010-11-28  Bruno Haible  <bruno@clisp.org>
9695             Paul Eggert  <eggert@cs.ucla.edu>
9696
9697         Tests for module 'getdomainname'.
9698         * modules/getdomainname-tests: New file.
9699         * tests/test-getdomainname.c: New file, based on
9700         tests/test-gethostname.c.
9701
9702 2010-11-28  Bruno Haible  <bruno@clisp.org>
9703             Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         getdomainname: Use the system function when possible.
9706         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9707         (getdomainname): Replace if needed. Provide the declaration if it is
9708         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9709         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9710         (getdomainname): When the system has getdomainname, call the system
9711         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9712         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9713         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9714         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9715         the function if its second argument is of type 'int' or if it is found
9716         in libnsl.
9717         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9718         <sys/systeminfo.h> and sysinfo().
9719         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9721         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9722         HAVE_GETDOMAINNAME.
9723         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9724         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9725         * doc/glibc-functions/getdomainname.texi: Document the problems with
9726         the getdomainname declaration.
9727
9728 2010-11-28  Bruno Haible  <bruno@clisp.org>
9729
9730         sys_socket: Ensure ss_family field on AIX.
9731         * lib/sys_socket.in.h (ss_family): New macro definition.
9732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9733         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9734         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9735         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9736         * modules/sys_socket (Makefile.am): Substitute
9737         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9738         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9739
9740 2010-11-27  Bruno Haible  <bruno@clisp.org>
9741
9742         readline: Improve configure output.
9743         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9744         "checking for readline..." result understandable.
9745
9746 2010-11-27  Bruno Haible  <bruno@clisp.org>
9747
9748         *printf-posix: Detect a bug on Solaris 10/x86.
9749         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9750         for floating-point output.
9751         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9752         directive.
9753         * tests/test-snprintf-posix.h (test_function): Likewise.
9754         * tests/test-sprintf-posix.h (test_function): Likewise.
9755         * tests/test-vasprintf-posix.c (test_function): Likewise.
9756         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9757         * doc/posix-functions/printf.texi: Likewise.
9758         * doc/posix-functions/snprintf.texi: Likewise.
9759         * doc/posix-functions/sprintf.texi: Likewise.
9760         * doc/posix-functions/vfprintf.texi: Likewise.
9761         * doc/posix-functions/vprintf.texi: Likewise.
9762         * doc/posix-functions/vsnprintf.texi: Likewise.
9763         * doc/posix-functions/vsprintf.texi: Likewise.
9764         * doc/glibc-functions/obstack_printf.texi: Likewise.
9765         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9766
9767 2010-11-27  Bruno Haible  <bruno@clisp.org>
9768
9769         Fix link error when module libunistring-optional is in use.
9770         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9771         * modules/striconveha-tests (Makefile.am): Likewise.
9772
9773 2010-11-27  Bruno Haible  <bruno@clisp.org>
9774
9775         regex: Mention link dependencies.
9776         * modules/regex (Link): New section.
9777         * modules/rpmatch (Link): Likewise.
9778         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9779
9780 2010-11-27  Bruno Haible  <bruno@clisp.org>
9781
9782         ftoastr: Fix compilation error on Solaris.
9783         * lib/ftoastr.c: Include <config.h>.
9784
9785 2010-11-27  Bruno Haible  <bruno@clisp.org>
9786
9787         getloadavg: Update documentation.
9788         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9789
9790 2010-11-27  Bruno Haible  <bruno@clisp.org>
9791
9792         sys_socket: Fix test whether the functions are declared.
9793         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9794         not <sys/select.h>.
9795
9796 2010-11-27  Bruno Haible  <bruno@clisp.org>
9797
9798         getpass: Make sure to get system declaration on some platforms.
9799         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9800         gl_USE_SYSTEM_EXTENSIONS.
9801         * modules/getpass (Depends-on): Add extensions.
9802
9803 2010-11-26  Bruno Haible  <bruno@clisp.org>
9804
9805         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9806         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9807         'iconv' module is present.
9808         (ICONV_CONST): New macro.
9809         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9810         ICONV_CONST.
9811         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9812         set ICONV_CONST.
9813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9814         here.
9815         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9816         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9817         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9818         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9819         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9820         present.
9821
9822 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9823
9824         ftoastr: comment fix
9825         * lib/ftoastr.c: "little" -> "little or no" in comment
9826
9827 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9828
9829         stdint: port to GCC 4.3 + OSX + Octave
9830         On this platform, stdint.h is buggy and defines int64_t to long
9831         long int.  The replacement defined it to long int, causing
9832         problems with C++ style name mangling.  Instead, trust the system
9833         definition if INT64_MAX is defined, and likewise for the unsigned
9834         variant.   Problem reported by Jarno Rajahalme in
9835         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9836         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9837         and don't mess with int64_t and INT64_MAX in this case.
9838         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9839
9840 2010-11-24  Bruno Haible  <bruno@clisp.org>
9841
9842         doc: Corrections regarding MacOS X 10.4 and 10.5.
9843         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9844         MacOS X.
9845         Reported by Simon Josefsson.
9846
9847 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9848
9849         Uninstall ".bin" files installed by relocwrapper.
9850         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9851         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9852         unless it is already there.
9853
9854 2010-11-21  Bruno Haible  <bruno@clisp.org>
9855
9856         Update for NetBSD 5.0.
9857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9858         NetBSD; the test fails on NetBSD 5.0.
9859         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9860         about NetBSD.
9861
9862 2010-11-21  Bruno Haible  <bruno@clisp.org>
9863
9864         Update for HP-UX 11.23 and HP-UX 11.31.
9865         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9866         HP-UX.
9867
9868 2010-11-21  Bruno Haible  <bruno@clisp.org>
9869
9870         Update for MacOS X 10.5.
9871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9872         MacOS X; the test fails on MacOS X 10.5.8.
9873         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9874         about MacOS X.
9875
9876 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9877
9878         bootstrap: add bootstrap_sync option.
9879         See discussion at
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9882         * build-aux/bootstrap: Accept --bootstrap-sync to update
9883         bootstrap if it is not identical to the local gnulib's
9884         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9885         enable this by default.  Accept --no-bootstrap-sync to disable
9886         it.
9887
9888 2010-11-20  Bruno Haible  <bruno@clisp.org>
9889
9890         Ensure that <features.h> is included before __GLIBC__ is tested.
9891         * lib/printf-parse.h: Include <features.h>.
9892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9893         Reported by Mike Frysinger <vapier@gentoo.org>.
9894
9895         Ensure that <features.h> is included before __GLIBC__ is tested.
9896         * lib/wchar.in.h: Include <features.h>.
9897         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9898         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9899         Reported by Mike Frysinger <vapier@gentoo.org>.
9900
9901         Ensure that <features.h> is included before __GLIBC__ is tested.
9902         * lib/arpa_inet.in.h: Include <features.h>.
9903         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9904         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9905         Reported by Mike Frysinger <vapier@gentoo.org>.
9906
9907         Ensure that <features.h> is included before __GLIBC__ is tested.
9908         * build-aux/link-warning.h: Include <features.h>.
9909         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9910         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9911         Reported by Mike Frysinger <vapier@gentoo.org>.
9912
9913         Ensure that <features.h> is included before __GLIBC__ is tested.
9914         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9915         Reported by Mike Frysinger <vapier@gentoo.org>.
9916
9917 2010-11-20  Bruno Haible  <bruno@clisp.org>
9918
9919         memmem: Fix autoconf test.
9920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9921
9922 2010-11-20  Bruno Haible  <bruno@clisp.org>
9923
9924         Port to uClibc.
9925         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9926         * lib/fcntl.in.h: Likewise.
9927         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9928         * lib/mbrtowc.c (mbrtowc): Likewise.
9929         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9930         * lib/strerror_r.c: Likewise.
9931         * lib/unistr/u8-strnlen.c: Likewise.
9932         * lib/vasnprintf.c (decimal_point_char): Likewise.
9933         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9935         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9936         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9937         * tests/test-sigaction.c (handler, main): Likewise.
9938         * lib/freading.h: Treat uClibc like a non-glibc platform.
9939         * lib/freading.c: Likewise.
9940         * lib/gettext.h: Likewise.
9941         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9942         Likewise.
9943         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9944         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9945         * lib/propername.c (proper_name_utf8): Likewise.
9946         * lib/spawn.in.h: Likewise.
9947         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9948         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9949         mem_cd_iconveh_internal): Likewise.
9950         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9951         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9952         strstr, strcasestr): Likewise.
9953         * lib/unicodeio.c (unicode_to_mb): Likewise.
9954         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9955         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9956         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9957         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9958         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9959         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9960         * lib/unistr/u8-stpncpy.c: Likewise.
9961         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9962         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9964         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9965         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9967         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9970         Likewise.
9971         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9972         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9976         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9977         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9978         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9979         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9980         * tests/test-striconveha.c (main): Likewise.
9981         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9982         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9983         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9984         * doc/posix-functions/getline.texi: Likewise.
9985         Reported by Mike Frysinger <vapier@gentoo.org>.
9986
9987 2010-11-20  Bruno Haible  <bruno@clisp.org>
9988
9989         nproc: Fix condition.
9990         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9991         HAVE_PTHREAD_AFFINITY_NP.
9992
9993 2010-11-20  Bruno Haible  <bruno@clisp.org>
9994
9995         Fix a comment.
9996         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9997
9998 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9999
10000         ftoastr: don't assume snprintf
10001         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
10002         Implement a subset of snprintf here, by using sprintf safely.
10003         * modules/ftoastr (Depends-on): Remove snprintf.
10004
10005 2010-11-19  Jim Meyering  <meyering@redhat.com>
10006
10007         test-rename.h: fix compilation failure
10008         * tests/test-rename.h (test_rename): Add omitted "}".
10009
10010 2010-11-17  Jim Meyering  <meyering@redhat.com>
10011
10012         maint.mk: add a URL discussing the no-@acronym policy
10013         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
10014
10015 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10016
10017         ftoastr: depend on snprintf, improve comments
10018         * lib/ftoastr.c: Also mention Loitsch's draft.
10019         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
10020         needed in the current implementation, but it might simplify
10021         speeding up the code later.
10022         * modules/ftoastr: Depend on snprintf; this improves portability.
10023         Suggested by Bruno Haible in the same email.
10024
10025         ftoastr: port to hosts lacking strtof and strtold
10026         Problem reported by Bruno Haible in
10027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
10028         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
10029         environment and strtold (and presumably strtof) are not available.
10030         * modules/ftoastr (Files): Add m4/c-strtod.m4.
10031         (configure.ac): Require gl_C99_STRTOLD.
10032
10033 2010-11-18  Bruno Haible  <bruno@clisp.org>
10034
10035         c-strtold: Avoid link error on AIX 7.
10036         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
10037         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
10038         (gl_C_STRTOLD): Test whether strtold_l exists.
10039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10040
10041 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10042
10043         intprops: new macro INT_BITS_STRLEN_BOUND
10044         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
10045         ftoastr.h.  This exposes an internal of intprops.h that was formerly
10046         not exposed.  Also, it uses a slightly tighter bound than before;
10047         though this makes no practical difference, we might as well be as
10048         tight as we easily can.
10049
10050         ftoastr: new module, for lossless conversion of floats to short strings
10051         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
10052         * modules/ftoastr: New files.
10053
10054 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10055
10056         bootstrap: port to Solaris sed
10057         * build-aux/bootstrap (get_version): Port to Solaris sed.
10058         See Ralf Wildenhues's note in
10059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
10060
10061 2010-11-14  Jim Meyering  <meyering@redhat.com>
10062
10063         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
10064         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
10065         and move definition closer to sole use.
10066
10067 2010-11-13  Jim Meyering  <meyering@redhat.com>
10068
10069         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
10070         Now we require at least autoconf-2.59, which means the work-around
10071         is no longer needed.
10072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
10073         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10074         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
10075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
10076         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10077
10078 2010-11-13  Bruno Haible  <bruno@clisp.org>
10079
10080         rename, renameat: Avoid test failures at NFS mounted locations.
10081         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
10082         functions.
10083         (test_rename): Use assert_nonexistent.
10084         * tests/test-rename.c: Include <dirent.h>.
10085         * tests/test-renameat.c: Likewise.
10086         Reported by Gary V. Vaughan <gary@gnu.org>.
10087
10088         rename, renameat: Document Linux bug with NFS
10089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
10090         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
10091         * doc/posix-functions/renameat.texi: Likewise.
10092         Suggested by Eric Blake.
10093
10094 2010-11-13  Bruno Haible  <bruno@clisp.org>
10095
10096         rename test: Add comments.
10097         * tests/test-rename.h (test_rename): Add structure and comments.
10098
10099 2010-11-13  Eric Blake  <eblake@redhat.com>
10100
10101         maintainer-makefile: cover a few more files
10102         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
10103         scripts generated within C files, for libvirt.
10104
10105 2010-11-13  Bruno Haible  <bruno@clisp.org>
10106
10107         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
10108         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
10109         character, return the number of bytes that belong together, not always
10110         1.
10111         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10112         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10113         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10114         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
10115         number of bytes of an invalid character.
10116         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
10117         (main): Invoke it.
10118         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
10119         results.
10120         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
10121         malformed byte sequences.
10122         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
10123         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
10124         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
10125         Reported by Ben Pfaff and Paolo Bonzini.
10126
10127 2010-11-13  Bruno Haible  <bruno@clisp.org>
10128
10129         openat: Work around glibc bug with fchownat() and empty file names.
10130         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
10131         (gl_FUNC_FCHOWNAT): Invoke it.
10132         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
10133         * doc/posix-functions/fchownat.texi: Document the glibc bug.
10134         Reported by Gary V. Vaughan <gary@gnu.org>.
10135
10136 2010-11-13  Bruno Haible  <bruno@clisp.org>
10137
10138         openat: Ensure autoconf macro ordering.
10139         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
10140         gl_USE_SYSTEM_EXTENSIONS.
10141         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
10142
10143 2010-11-13  Bruno Haible  <bruno@clisp.org>
10144
10145         Update comments.
10146         * lib/unistr/u8-check.c: Update file name in comments.
10147         * lib/unistr/u8-mblen.c: Likewise.
10148         * lib/unistr/u8-prev.c: Likewise.
10149         * lib/unistr/u8-strmblen.c: Likewise.
10150         * lib/unistr/u8-strmbtouc.c: Likewise.
10151
10152 2010-11-13  Jim Meyering  <meyering@redhat.com>
10153
10154         tests: avoid test failure on Solaris 10 due to lack of PATH export
10155         * tests/test-update-copyright.sh: Don't forget to export PATH.
10156
10157         init.sh: ensure that IFS is defined, just in case...
10158         * tests/init.sh (setup_): Ensure that IFS is defined,
10159         so that saving and restoring it works as expected.  This
10160         appears to be useful at least for an old version of dash
10161         from a long time ago (RH 6).  See here for details:
10162         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
10163
10164         maint.mk: tighten "test a == b" check
10165         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
10166         test to files that contain something like #!/bin/sh.
10167         Without this, coreutils would get two false positives in
10168         the comments of C source files.
10169
10170 2010-11-12  Eric Blake  <eblake@redhat.com>
10171
10172         bootstrap: fix typo in previous attempt
10173         * build-aux/bootstrap (buildreq): Correct the grouping.
10174         Reported by Paul Eggert.
10175
10176         maintainer-makefile: prohibit test x == x
10177         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
10178         Based on a report by Matthias Bolte.
10179
10180         bootstrap: allow FreeBSD gzip
10181         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
10182         which has no '.' and goes to stderr.
10183         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
10184         Reported by Matthias Bolte.
10185
10186         maintainer-makefile: check for i18n setup
10187         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
10188         will likely work.
10189
10190 2010-11-12  Bruno Haible  <bruno@clisp.org>
10191
10192         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
10193         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
10194         * lib/nanosleep.c (nanosleep): Likewise.
10195
10196 2010-11-11  Bruno Haible  <bruno@clisp.org>
10197
10198         fcntl-h: Fix for use of C++ on glibc systems.
10199         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10200         also on glibc systems in C++ mode.
10201         Reported by Gary V. Vaughan <gary@gnu.org>.
10202
10203 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10204
10205         mknod: avoid false failure with dash
10206         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
10207
10208 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10209
10210         unlink: Fix "is it should" typo in diagnostic.
10211         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
10212         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
10213
10214 2010-11-11  Bruno Haible  <bruno@clisp.org>
10215
10216         Tests for module 'strerror_r-posix'.
10217         * modules/strerror_r-posix-tests: New file.
10218         * tests/test-strerror_r.c: New file.
10219         * tests/test-string-c++.cc: Check the signature of strerror_r.
10220
10221         New module 'strerror_r-posix'.
10222         * lib/string.in.h (strerror_r): New declaration.
10223         * lib/strerror_r.c: New file.
10224         * m4/strerror_r.m4: New file.
10225         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
10226         of strerror_r.
10227         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
10228         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10229         * modules/strerror_r-posix: New file.
10230         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
10231         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
10232         * doc/posix-functions/strerror_r.texi: Mention the new module and the
10233         portability problems.
10234
10235 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
10236
10237         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
10238         line is also considered for output. Quoted function name in shell
10239         command, so temporary files for functions like MyClass::operator()
10240         are removed correctly without errors.
10241
10242 2010-11-09  Bruno Haible  <bruno@clisp.org>
10243
10244         * doc/posix-functions/strerror.texi: List more failing platforms.
10245
10246         * doc/posix-functions/strerror.texi: Add a comment.
10247
10248 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
10249
10250         fdopendir: fix bug on MacOS X when low on file descriptors
10251
10252         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
10253         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
10254         All callers changed.
10255         (fdopendir): Invoke save_cwd at the top level, not after using
10256         multiple dup() calls to use up file descriptors.  Then retry
10257         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
10258         less than the maximum number of open file descriptors, because
10259         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
10260         on Mac OS X 10.6.4 for tar 1.24
10261         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
10262         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
10263         and for tar 1.25
10264         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
10265
10266 2010-11-07  Bruno Haible  <bruno@clisp.org>
10267
10268         vasnprintf: Support I flag on glibc systems.
10269         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
10270         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
10271         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
10272         snprintf function.
10273         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
10274         glibc systems.
10275         * tests/test-vasnprintf-posix3.c: New file.
10276         * modules/vasnprintf-posix-tests (Files): Add it.
10277         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
10278
10279 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10280
10281         [html] Fix copy/paste bug: Use unique name for compiler warnings.
10282         * MODULES.html.sh: For compiler warnings, use name
10283         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
10284
10285 2010-11-05  Eric Blake  <eblake@redhat.com>
10286
10287         ceil, floor: avoid spurious failure with icc
10288         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
10289         [denormals-as-zero] when optimizing without -mieee-fp option.
10290         * tests/test-floorf2.c (floorf_reference): Likewise.
10291         * tests/test-ceilf1.c (dummy): New function.
10292         (main): Use it to outsmart icc's optimization.
10293         * tests/test-floorf1.c (dummy, main): Likewise.
10294
10295         tests: require working signbit
10296         * modules/ceilf-tests (Depends-on): Add signbit.
10297         * modules/ceill-tests (Depends-on): Likewise.
10298         * modules/floorf-tests (Depends-on): Likewise.
10299         * modules/floorl-tests (Depends-on): Likewise.
10300         * modules/round-tests (Depends-on): Likewise.
10301         * modules/roundf-tests (Depends-on): Likewise.
10302         * modules/roundl-tests (Depends-on): Likewise.
10303         * modules/trunc-tests (Depends-on): Likewise.
10304         * modules/truncf-tests (Depends-on): Likewise.
10305         * modules/truncl-tests (Depends-on): Likewise.
10306
10307         strtod: work around icc bug
10308         * lib/strtod.c (minus_zero): Define to working value.
10309         (strtod): Use it to avoid icc bug.
10310
10311         copysign: enhance tests
10312         * modules/copysign-tests (Files): Add minus-zero.h.
10313         * tests/test-copysign.c (main): Also test zeros.
10314
10315 2010-11-04  Eric Blake  <eblake@redhat.com>
10316
10317         ceil, floor, round, trunc: enhance tests of -0
10318         * tests/test-ceilf1.c (main): Ensure correct sign of result.
10319         * tests/test-ceill.c (main): Likewise.
10320         * tests/test-floorf1.c (main): Likewise.
10321         * tests/test-floorl.c (main): Likewise.
10322         * tests/test-round1.c (main): Likewise.
10323         * tests/test-roundf1.c (main): Likewise.
10324         * tests/test-roundl.c (main): Likewise.
10325         * tests/test-trunc1.c (main): Likewise.
10326         * tests/test-truncf1.c (main): Likewise.
10327         * tests/test-truncl.c (main): Likewise.
10328
10329 2010-11-04  Eric Blake  <eblake@redhat.com>
10330
10331         frexp, tests: work around ICC bug with -zero
10332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10333         works with more compilers.
10334         * tests/minus-zero.h: New file.
10335         * modules/ceilf-tests (Files): Include it.
10336         * modules/ceill-tests (Files): Likewise.
10337         * modules/floorf-tests (Files): Likewise.
10338         * modules/floorl-tests (Files): Likewise.
10339         * modules/frexp-nolibm-tests (Files): Likewise.
10340         * modules/frexp-tests (Files): Likewise.
10341         * modules/frexpl-nolibm-tests (Files): Likewise.
10342         * modules/frexpl-tests (Files): Likewise.
10343         * modules/isnan-tests (Files): Likewise.
10344         * modules/isnand-nolibm-tests (Files): Likewise.
10345         * modules/isnand-tests (Files): Likewise.
10346         * modules/isnanf-nolibm-tests (Files): Likewise.
10347         * modules/isnanf-tests (Files): Likewise.
10348         * modules/isnanl-nolibm-tests (Files): Likewise.
10349         * modules/isnanl-tests (Files): Likewise.
10350         * modules/round-tests (Files): Likewise.
10351         * modules/roundf-tests (Files): Likewise.
10352         * modules/roundl-tests (Files): Likewise.
10353         * modules/ldexpl-tests (Files): Likewise.
10354         * modules/signbit-tests (Files): Likewise.
10355         * modules/snprintf-posix-tests (Files): Likewise.
10356         * modules/sprintf-posix-tests (Files): Likewise.
10357         * modules/strtod-tests (Files): Likewise.
10358         * modules/trunc-tests (Files): Likewise.
10359         * modules/truncf-tests (Files): Likewise.
10360         * modules/truncl-tests (Files): Likewise.
10361         * modules/vsnprintf-posix-tests (Files): Likewise.
10362         * modules/vsprintf-posix-tests (Files): Likewise.
10363         * modules/vasnprintf-posix-tests (Files): Likewise.
10364         * modules/vasprintf-posix-tests (Files): Likewise.
10365         * tests/test-ceilf1.c (main): Use it.
10366         * tests/test-ceill.c (main): Likewise.
10367         * tests/test-floorf1.c (main): Likewise.
10368         * tests/test-floorl.c (main): Likewise.
10369         * tests/test-frexp.c (main): Likewise.
10370         * tests/test-frexpl.c (main): Likewise.
10371         * tests/test-isnan.c (main): Likewise.
10372         * tests/test-isnand.h (main): Likewise.
10373         * tests/test-isnanf.h (main): Likewise.
10374         * tests/test-isnanl.h (main): Likewise.
10375         * tests/test-ldexpl.c (main): Likewise.
10376         * tests/test-round.c (main): Likewise.
10377         * tests/test-roundf.c (main): Likewise.
10378         * tests/test-roundl.c (main): Likewise.
10379         * tests/test-signbit.c (test_signbitf, test_signbitd)
10380         (test_signbitl): Likewise.
10381         * tests/test-snprintf-posix.h (test_function): Likewise.
10382         * tests/test-sprintf-posix.h (test_function): Likewise.
10383         * tests/test-strtod.c (main): Likewise.
10384         * tests/test-trunc1.c (main): Likewise.
10385         * tests/test-truncf1.c (main): Likewise.
10386         * tests/test-truncl.c (main): Likewise.
10387
10388         isnanl: work around icc bug
10389         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10390
10391 2010-11-03  Eric Blake  <eblake@redhat.com>
10392
10393         tests: fix compiler warnings
10394         * tests/test-getopt.h (test_getopt): Fix condition.
10395         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10396         * tests/test-pipe2.c (main): Likewise.
10397         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10398
10399         utimens: fix broken m4 test
10400         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10401
10402 2010-10-28  Bruno Haible  <bruno@clisp.org>
10403
10404         posix_spawn*, getdtablesize: Relax license.
10405         * modules/posix_spawn (License): Change to LGPLv2+.
10406         * modules/posix_spawnp (License): Likewise.
10407         * modules/posix_spawn-internal (License): Likewise.
10408         * modules/posix_spawnattr_init (License): Likewise.
10409         * modules/posix_spawnattr_getflags (License): Likewise.
10410         * modules/posix_spawnattr_setflags (License): Likewise.
10411         * modules/posix_spawnattr_getpgroup (License): Likewise.
10412         * modules/posix_spawnattr_setpgroup (License): Likewise.
10413         * modules/posix_spawnattr_getschedparam (License): Likewise.
10414         * modules/posix_spawnattr_setschedparam (License): Likewise.
10415         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10416         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10417         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10418         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10419         * modules/posix_spawnattr_getsigmask (License): Likewise.
10420         * modules/posix_spawnattr_setsigmask (License): Likewise.
10421         * modules/posix_spawnattr_destroy (License): Likewise.
10422         * modules/posix_spawn_file_actions_init (License): Likewise.
10423         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10424         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10425         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10426         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10427         * modules/getdtablesize (License): Likewise.
10428         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10429
10430 2010-10-26  Bruno Haible  <bruno@clisp.org>
10431
10432         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10433         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10434         Cygwin and mingw.
10435         Suggested by Eric Blake.
10436
10437 2010-10-26  Bruno Haible  <bruno@clisp.org>
10438
10439         stdio: Work around compilation error due to renameat() on Solaris 10.
10440         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10441         * lib/renameat.c: Don't include <unistd.h> here.
10442         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10443         Reported by Paul Eggert and Eric Blake.
10444
10445 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         renameat: port to Solaris 10, which declares renameat in unistd.h
10448
10449         * lib/renameat.c: Include unistd.h before stdio.h, because
10450         Solaris 10 declares renameat in unistd.h.  Problem encountered
10451         when building GNU tar 1.24 on Solaris 10.
10452
10453 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10454
10455         fdopendir: fix C89 compilation
10456         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10457         compilers.
10458
10459 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10460
10461         inttostr: simplify by removing unnecessary redundancy
10462         * lib/anytostr.c: Don't include verify.h.
10463         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10464         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10465         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10466         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10467         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10468         Likewise.
10469         * modules/inttostr (Depends-on): Remove 'verify'.
10470
10471 2010-10-23  Bruno Haible  <bruno@clisp.org>
10472
10473         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10474         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10475         Reported by Eric Blake.
10476
10477 2010-10-23  Bruno Haible  <bruno@clisp.org>
10478
10479         Tests: Fix LOCALE_JA on MirBSD 10.
10480         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10481         to an UTF-8 locale.
10482         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10484         Reported by Eric Blake.
10485
10486 2010-10-21  Bruno Haible  <bruno@clisp.org>
10487
10488         nl_langinfo test: Avoid test failure on NetBSD 5.
10489         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10490         Reported by Eric Blake.
10491
10492 2010-10-21  Eric Blake  <eblake@redhat.com>
10493
10494         c-stack: work around libsigsegv 2.8 bug
10495         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10496         overflow on at least PowerPC64.
10497
10498 2010-10-17  Bruno Haible  <bruno@clisp.org>
10499
10500         userspec: Drop redundant file.
10501         * modules/userspec (Files): Remove lib/inttostr.h.
10502
10503 2010-10-17  Bruno Haible  <bruno@clisp.org>
10504
10505         nl_langinfo tests: Silence some warnings.
10506         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10507         Reported by Jim Meyering.
10508
10509 2010-10-17  Bruno Haible  <bruno@clisp.org>
10510
10511         Make use of GCC's attribute __alloc_size__.
10512         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10513         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10514         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10515         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10516         __alloc_size__.
10517         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10518         Suggested by Jim Meyering.
10519
10520 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10521
10522         bootstrap: anchor .gitignore entries.
10523         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10524         with...
10525         (insert_vc_ignore): ... this new function, which prepends `/' to
10526         all .gitignore entries before passing them to
10527         insert_sorted_if_absent.
10528
10529 2010-10-16  Bruno Haible  <bruno@clisp.org>
10530
10531         nextafter: Fix configure check.
10532         * modules/nextafter (configure.ac): Correct expected prototype.
10533
10534 2010-10-16  Bruno Haible  <bruno@clisp.org>
10535
10536         termios: Update documentation.
10537         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10538
10539 2010-10-16  Bruno Haible  <bruno@clisp.org>
10540
10541         tests: Make them compile with TinyCC.
10542         * tests/test-strstr.c (main): Remove parentheses around array
10543         initializer.
10544
10545 2010-10-15  Eric Blake  <eblake@redhat.com>
10546
10547         ignore-value: make header idempotent
10548         * lib/ignore-value.h: Add double-inclusion guards.
10549         Reported by Stefan Berger.
10550
10551 2010-10-15  Jim Meyering  <meyering@redhat.com>
10552
10553         GNUmakefile: handle "stable" target, not "major"
10554         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10555         lists in maint.mk and announce-gen.  Without this, "make stable"
10556         would fail to ensure that $(VERSION) is up to date.
10557
10558 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10559
10560         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10561         & co.
10562
10563 2010-10-14  Bruno Haible  <bruno@clisp.org>
10564
10565         vasnprintf: Don't set errno to 0.
10566         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10567         block that sets it to 0.
10568         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10569
10570 2010-10-14  Bruno Haible  <bruno@clisp.org>
10571
10572         socketlib: Fix.
10573         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10574         gl_PREREQ_SYS_H_WINSOCK2.
10575         Reported by Ian Beckwith <ianb@erislabs.net>.
10576
10577 2010-10-13  Jim Meyering  <meyering@redhat.com>
10578
10579         test-select-stdin.c: avoid warn_unused_result warnings
10580         * tests/test-select-stdin.c: Include "macros.h".
10581         ASSERT that read and fflush succeed.
10582
10583 2010-10-13  Jim Meyering  <meyering@redhat.com>
10584
10585         git-version-gen: do require git-VC'd files in cwd
10586         * build-aux/git-version-gen: Reject a git version string
10587         if there are no commits associated with the current directory.
10588         This avoids an unlikely false-positive (unrelated dir whose parent
10589         repository also contains a tag matching v*), as pointed out
10590         by Giuseppe Scrivano in
10591         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10592
10593 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         argv-iter: omit nonconforming declaration
10596         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10597         enum arg_iter_err declaration, which doesn't conform to C99.
10598         Solaris 10 cc warns about this.
10599
10600 2010-10-13  Eric Blake  <eblake@redhat.com>
10601
10602         termios: fix compilation on mingw
10603         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10604         (gl_TERMIOS_H): Adjust it on mingw.
10605         * modules/termios (Makefile.am): Substitute new key.
10606         * lib/termios.in.h (includes): Make include_next conditional.
10607         * doc/posix-headers/termios.texi (termios.h): Update
10608         documentation.
10609         Reported by Daniel P. Berrange.
10610
10611 2010-10-13  Jim Meyering  <meyering@redhat.com>
10612
10613         git-version-gen: don't require that .git/ be in the current dir
10614         * build-aux/git-version-gen: Adjust this script so that it works
10615         when run from any working directory beneath the top-level .git/-
10616         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10618
10619         test-select: avoid warn_unused_result warnings
10620         * tests/test-select.c: Include "macros.h".
10621         ASSERT that each call to read, write, and pipe succeeds.
10622         While not technically required, also check each "close".
10623         * modules/select-tests (Files): Add tests/macros.h.
10624
10625         test-symlinkat: remove declaration of unused local
10626         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10627
10628         test-inttostr: avoid shadowing warnings
10629         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10630         and use malloc rather than the stack for the same reason as
10631         mentioned in the comment justifying the other allocation.
10632
10633 2010-10-11  Bruno Haible  <bruno@clisp.org>
10634
10635         stdlib: Allow multiple gnulib generated replacements to coexist.
10636         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10637         Reported by Sam Steingold <sds@gnu.org>.
10638
10639 2010-10-11  Jim Meyering  <meyering@redhat.com>
10640
10641         fix a documentation typo
10642         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10643
10644 2010-10-11  Eric Blake  <eblake@redhat.com>
10645
10646         futimens: work around Solaris 11 bug
10647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10648         * tests/test-futimens.h (test_futimens): Enhance, rather than
10649         weaken test.
10650         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10651
10652 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         Indentation.
10655         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10656         higher-level operators more to the left.
10657
10658 2010-10-11  Jim Meyering  <meyering@redhat.com>
10659
10660         test-futimens: avoid unwarranted test failure on Solaris 5.11
10661         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10662         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10663         because it tries to dereference the NULL name argument.
10664
10665 2010-10-11  Bruno Haible  <bruno@clisp.org>
10666
10667         Indentation.
10668         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10669         indentation.
10670
10671 2010-10-11  Jim Meyering  <meyering@redhat.com>
10672
10673         spawn.in.h: make indentation consistent with parentheses
10674         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10675         Make indentation consistent with parentheses.
10676
10677 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10678
10679         Fix mismatched parens in previous commit
10680         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10681         parens.
10682
10683 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10684
10685         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10686
10687         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10688         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10689         * lib/malloca.c: Include "verify.h".
10690         (verify1): Remove, replacing with a verify call.
10691         * lib/relocwrapper.c (verify1): Likewise.
10692         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10693         Likewise.
10694         * modules/malloca (Depends-on): Add 'verify'.
10695         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10696         * modules/vasnprintf (Depends-on): Add 'verify'.
10697         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10702         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10703         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10704
10705         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10706
10707         Formerly the style was sometimes 2*X - 1, because the C standard
10708         was wrongly thought to disallow ?: in integral constant expressions.
10709         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10710         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10712         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10713         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10714         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10715         verify that time_t cannot be floating.
10716
10717 2010-10-08  Eric Blake  <eblake@redhat.com>
10718
10719         time: enforce recent POSIX ruling that time_t is integral
10720         * lib/time.in.h (__time_t_must_be_integral): Detect any
10721         problematic systems, allowing the rest of gnulib to assume POSIX.
10722
10723 2010-10-08  Jim Meyering  <meyering@redhat.com>
10724
10725         fdopendir: fix a bug on systems lacking openat and /proc support
10726         OpenBSD 4.7 is one such system.  The most noticeable effect was
10727         failure of any application making nontrivial use of fts: rm, du,
10728         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10729           ./rm: traversal failed: `a': Bad file descriptor
10730         Debugging that, you see that even though FD 6 was closed just
10731         prior to the opendir call in fd_clone_opendir, its resulting
10732         dir->dd_fd was 8, rather than the expected value of 6:
10733
10734         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10735         93                close (fd);
10736         (gdb) n
10737         94                dir = fd_clone_opendir (dupfd);
10738         (gdb) n
10739         95                saved_errno = errno;
10740         (gdb) p dir->dd_fd
10741         $11 = 8
10742
10743         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10744         The problem is that on OpenBSD, fd_clone_opendir has to resort
10745         to using the old-style save/restore CWD mechanism, due to its
10746         lack of openat/proc support, and *that* would steal the FD (6)
10747         that opendir was supposed to use.
10748
10749         The fix is to squirrel away the desired FD so that save_cwd uses a
10750         different one, and then free the dest FD right before calling opendir.
10751         That guarantees opendir will use the required file descriptor.
10752
10753         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10754
10755 2010-10-08  Bruno Haible  <bruno@clisp.org>
10756
10757         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10758         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10759
10760 2010-10-08  Bruno Haible  <bruno@clisp.org>
10761
10762         nanosleep: Make replacement POSIX compliant.
10763         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10764         is out of range.
10765         Reported by Jim Meyering.
10766
10767 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10768
10769         bootstrap: add hook for altering gnulib.mk, for Bison
10770         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10771         the Bison bootstrapping process can rewrite file names and variables
10772         in this file before later parts of 'bootstrap' use the file.
10773         Bison wants to include lib/gnulib.mk from the top-level makefile,
10774         so it needs the file names in this file to be relative to the top
10775         level, not relative to lib; plus it needs variable names to be
10776         rewritten.
10777         (slurp): Use the new function.
10778
10779         bootstrap: reformat for readability
10780         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10781
10782 2010-10-08  Eric Blake  <eblake@redhat.com>
10783
10784         docs: update cygwin progress
10785         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10786         1.7.7.
10787         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10788         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10789         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10790         * doc/posix-functions/carg.texi (carg): Likewise.
10791         * doc/posix-functions/cargf.texi (cargf): Likewise.
10792         * doc/posix-functions/casin.texi (casin): Likewise.
10793         * doc/posix-functions/casinf.texi (casinf): Likewise.
10794         * doc/posix-functions/casinh.texi (casinh): Likewise.
10795         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10796         * doc/posix-functions/catan.texi (catan): Likewise.
10797         * doc/posix-functions/catanf.texi (catanf): Likewise.
10798         * doc/posix-functions/catanh.texi (catanh): Likewise.
10799         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10800         * doc/posix-functions/ccos.texi (ccos): Likewise.
10801         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10802         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10803         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10804         * doc/posix-functions/cexp.texi (cexp): Likewise.
10805         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10806         * doc/posix-functions/cimag.texi (cimag): Likewise.
10807         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10808         * doc/posix-functions/clog.texi (clog): Likewise.
10809         * doc/posix-functions/clogf.texi (clogf): Likewise.
10810         * doc/posix-functions/conj.texi (conj): Likewise.
10811         * doc/posix-functions/conjf.texi (conjf): Likewise.
10812         * doc/posix-functions/cpow.texi (cpow): Likewise.
10813         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10814         * doc/posix-functions/cproj.texi (cproj): Likewise.
10815         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10816         * doc/posix-functions/creal.texi (creal): Likewise.
10817         * doc/posix-functions/crealf.texi (crealf): Likewise.
10818         * doc/posix-functions/csin.texi (csin): Likewise.
10819         * doc/posix-functions/csinf.texi (csinf): Likewise.
10820         * doc/posix-functions/csinh.texi (csinh): Likewise.
10821         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10822         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10823         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10824         * doc/posix-functions/ctan.texi (ctan): Likewise.
10825         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10826         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10827         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10828         * doc/posix-headers/complex.texi (complex.h): Likewise.
10829
10830 2010-10-07  Jim Meyering  <meyering@redhat.com>
10831
10832         parse-datetime: avoid compilation failure on OpenBSD 4.7
10833         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10834         This works around a compilation failure on OpenBSD 4.7:
10835         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10836
10837 2010-10-07  Eric Blake  <eblake@redhat.com>
10838
10839         docs: update cygwin progress
10840         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10841         1.7.6.
10842         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10843         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10844         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10845         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10846         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10847         Likewise.
10848         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10849         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10850         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10851         Likewise.
10852         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10853         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10854         Likewise.
10855         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10856         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10857         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10858         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10859         Likewise.
10860         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10861         Likewise.
10862         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10863
10864         docs: update parse-datetime history
10865         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10866         documentation of this function's history and alternatives.
10867
10868         cygwin: use more robust version check
10869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10870         exclude an eventual cygwin 1.9.1.
10871         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10873         (gl_FUNC_STRCASESTR): Likewise.
10874         Reported by Bruno Haible.
10875
10876 2010-10-06  Bruno Haible  <bruno@clisp.org>
10877
10878         string, sys_select: Avoid #including large headers unless necessary.
10879         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10880         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10881         OSF/1, BeOS, Haiku.
10882         Reported by Jim Meyering.
10883
10884 2010-10-05  Eric Blake  <eblake@redhat.com>
10885
10886         memmem, strstr, strcasestr: fix bug with long periodic needle
10887         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10888         periodic needle having false positive.
10889         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10890         and cygwin 1.7.7.
10891         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10893         (gl_FUNC_STRCASESTR): Likewise.
10894         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10895         * tests/test-memmem.c (main): Expose the bug.
10896         * tests/test-strcasestr.c (main): Likewise.
10897         * tests/test-strstr.c (main): Likewise.
10898         * tests/test-c-strcasestr.c (main): Likewise.
10899         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10900         * doc/posix-functions/strstr.texi (strstr): Likewise.
10901         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10902         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10903
10904 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10905
10906         parse-datetime: do some more renaming
10907         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10908         parse_datetime, not get_date.  Mention the renaming.
10909         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10910         in comments.
10911         * m4/bison.m4: Likewise.
10912
10913 2010-10-05  Eric Blake  <eblake@redhat.com>
10914
10915         parse-datetime: better name than get_date
10916         * NEWS: Reword the deprecation notice.
10917         * modules/get_date: Rename to modules/parse-datetime.
10918         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10919         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10920         * lib/get_date.y: Rename to lib/parse-datetime.y.
10921         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10922         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10923         * doc/getdate.texi: Provide fallback wrapper.
10924         * lib/getdate.h: Move guts, and wrap...
10925         * lib/parse-datetime.h: ...new file.
10926         * lib/parse-datetime.y (get_date): Rename...
10927         (parse_datetime): ...to this.
10928         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10929         (gl_PARSE_DATETIME): ...to this.
10930         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10931         documentation.
10932         * modules/getdate (Files): Provide fallback docs and header.
10933         (Notice, Depends-on): Update references.
10934         * tests/test-parse-datetime.c: Likewise.
10935         * DEPENDENCIES: Likewise.
10936         * MODULES.html.sh (Date and time <time.h>): Likewise.
10937         * doc/parse-datetime.texi (Date input formats)
10938         (Authors of parse_datetime): Likewise.
10939         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10940         (Include): Likewise.
10941         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10942         * gnulib-tool: Likewise.
10943         * m4/bison.m4 (gl_BISON): Likewise.
10944         Suggested by Bruno Haible.
10945
10946 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10947
10948         more ports to Solaris tr, which needs [] around ranges
10949         * gnulib-tool: Solaris tr needs [] around ranges.
10950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10951         * tests/test-pipe-filter-gi1.c (main): Likewise.
10952         * tests/test-pipe-filter-ii1.c (main): Likewise.
10953
10954 2010-10-05  Eric Blake  <eblake@redhat.com>
10955
10956         bootstrap: fix Solaris regression
10957         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10958         around ranges.
10959         Reported by Pádraig Brady.
10960
10961         bootstrap: work with pkg-config
10962         * build-aux/bootstrap (check_versions): Also transliterate - in
10963         prerequisite name.
10964         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10965         prerequisites that were already found, to avoid confusion.
10966         Reported by Justin Clift.
10967
10968         faccessat: remove unused wrappers
10969         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10970         presence of these wrappers dragged in -lgen on Solaris.
10971         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10972
10973 2010-10-05  Jim Meyering  <meyering@redhat.com>
10974
10975         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10976         * Makefile (sc_pragma_columns): New syntax-check rule.
10977
10978 2010-10-04  Bruno Haible  <bruno@clisp.org>
10979
10980         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10981         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10982         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10983         Reported by Bruce Korb and Eric Blake.
10984
10985 2010-10-04  Bruno Haible  <bruno@clisp.org>
10986
10987         threadlib: Make option --with-libpth-prefix work.
10988         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10989         use $LIBPTH, not just -lpth.
10990
10991 2010-10-04  Bruno Haible  <bruno@clisp.org>
10992
10993         Avoid line length limitation from HP NonStop system header files.
10994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10995         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10996         * lib/ctype.in.h: Likewise.
10997         * lib/dirent.in.h: Likewise.
10998         * lib/errno.in.h: Likewise.
10999         * lib/fcntl.in.h: Likewise.
11000         * lib/float.in.h: Likewise.
11001         * lib/getopt.in.h: Likewise.
11002         * lib/iconv.in.h: Likewise.
11003         * lib/inttypes.in.h: Likewise.
11004         * lib/langinfo.in.h: Likewise.
11005         * lib/locale.in.h: Likewise.
11006         * lib/math.in.h: Likewise.
11007         * lib/netdb.in.h: Likewise.
11008         * lib/netinet_in.in.h: Likewise.
11009         * lib/poll.in.h: Likewise.
11010         * lib/pthread.in.h: Likewise.
11011         * lib/pty.in.h: Likewise.
11012         * lib/sched.in.h: Likewise.
11013         * lib/se-selinux.in.h: Likewise.
11014         * lib/search.in.h: Likewise.
11015         * lib/signal.in.h: Likewise.
11016         * lib/spawn.in.h: Likewise.
11017         * lib/stdarg.in.h: Likewise.
11018         * lib/stddef.in.h: Likewise.
11019         * lib/stdint.in.h: Likewise.
11020         * lib/stdio.in.h: Likewise.
11021         * lib/stdlib.in.h: Likewise.
11022         * lib/string.in.h: Likewise.
11023         * lib/strings.in.h: Likewise.
11024         * lib/sys_file.in.h: Likewise.
11025         * lib/sys_ioctl.in.h: Likewise.
11026         * lib/sys_select.in.h: Likewise.
11027         * lib/sys_socket.in.h: Likewise.
11028         * lib/sys_stat.in.h: Likewise.
11029         * lib/sys_time.in.h: Likewise.
11030         * lib/sys_times.in.h: Likewise.
11031         * lib/sys_utsname.in.h: Likewise.
11032         * lib/sys_wait.in.h: Likewise.
11033         * lib/sysexits.in.h: Likewise.
11034         * lib/termios.in.h: Likewise.
11035         * lib/time.in.h: Likewise.
11036         * lib/unistd.in.h: Likewise.
11037         * lib/wchar.in.h: Likewise.
11038         * lib/wctype.in.h: Likewise.
11039         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
11040         * modules/ctype (Makefile.am): Likewise.
11041         * modules/dirent (Makefile.am): Likewise.
11042         * modules/errno (Makefile.am): Likewise.
11043         * modules/fcntl-h (Makefile.am): Likewise.
11044         * modules/float (Makefile.am): Likewise.
11045         * modules/getopt-posix (Makefile.am): Likewise.
11046         * modules/iconv-h (Makefile.am): Likewise.
11047         * modules/inttypes (Makefile.am): Likewise.
11048         * modules/langinfo (Makefile.am): Likewise.
11049         * modules/locale (Makefile.am): Likewise.
11050         * modules/math (Makefile.am): Likewise.
11051         * modules/netdb (Makefile.am): Likewise.
11052         * modules/netinet_in (Makefile.am): Likewise.
11053         * modules/poll-h (Makefile.am): Likewise.
11054         * modules/pthread (Makefile.am): Likewise.
11055         * modules/pty (Makefile.am): Likewise.
11056         * modules/sched (Makefile.am): Likewise.
11057         * modules/search (Makefile.am): Likewise.
11058         * modules/selinux-h (Makefile.am): Likewise.
11059         * modules/signal (Makefile.am): Likewise.
11060         * modules/spawn (Makefile.am): Likewise.
11061         * modules/stdarg (Makefile.am): Likewise.
11062         * modules/stddef (Makefile.am): Likewise.
11063         * modules/stdint (Makefile.am): Likewise.
11064         * modules/stdio (Makefile.am): Likewise.
11065         * modules/stdlib (Makefile.am): Likewise.
11066         * modules/string (Makefile.am): Likewise.
11067         * modules/strings (Makefile.am): Likewise.
11068         * modules/sys_file (Makefile.am): Likewise.
11069         * modules/sys_ioctl (Makefile.am): Likewise.
11070         * modules/sys_select (Makefile.am): Likewise.
11071         * modules/sys_socket (Makefile.am): Likewise.
11072         * modules/sys_stat (Makefile.am): Likewise.
11073         * modules/sys_time (Makefile.am): Likewise.
11074         * modules/sys_times (Makefile.am): Likewise.
11075         * modules/sys_utsname (Makefile.am): Likewise.
11076         * modules/sys_wait (Makefile.am): Likewise.
11077         * modules/sysexits (Makefile.am): Likewise.
11078         * modules/termios (Makefile.am): Likewise.
11079         * modules/time (Makefile.am): Likewise.
11080         * modules/unistd (Makefile.am): Likewise.
11081         * modules/wchar (Makefile.am): Likewise.
11082         * modules/wctype (Makefile.am): Likewise.
11083
11084 2010-10-04  Bruno Haible  <bruno@clisp.org>
11085
11086         read-file tests: Avoid a test failure on NonStop Kernel.
11087         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
11088         a regular file.
11089         Reported by Joachim Schmitz <schmitz@hp.com>.
11090
11091 2010-10-03  Bruno Haible  <bruno@clisp.org>
11092
11093         gnulib-tool: Fixes for --create-testdir with --libtool.
11094         * gnulib-tool (func_get_automake_snippet): Don't augment
11095         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
11096         an executable.
11097         (func_create_testdir): Handle module 'alloca' like func_import.
11098         Reported by Bruce Korb <bruce.korb@gmail.com>.
11099
11100 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
11101
11102         Avoid some lines longer than 80 characters.
11103         * lib/stdint.in.h: Break long comment lines.
11104         * lib/math.in.h: Likewise.
11105         (_GL_NUM_UINT_WORDS): New macro, for readability.
11106         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
11107         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
11108         * lib/stdlib.in.h: Likewise.
11109         * lib/spawn.in.h: Likewise.
11110         * lib/sys_socket.in.h: Update an URL.
11111         * lib/sys_stat.in.h: Break long line.
11112
11113 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
11114
11115         Improve pmccabe2html.
11116         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
11117         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
11118         when the sources change. Remove the line in the HTML about "Used
11119         ranges" (which implied that there might be other unused ranges),
11120         rename "Resume" to "Summary" (easier to understand for more users).
11121         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
11122         styles, and some unnecessary blank lines.
11123
11124 2010-10-03  Bruno Haible  <bruno@clisp.org>
11125             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11126
11127         acl: Add support for ACLs on NonStop Kernel.
11128         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
11129         Check whether the function aclsort() exists.
11130         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
11131         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
11132         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11133         (acl_nontrivial [HAVE_ACLSORT]: New function.
11134         (file_has_acl): Implement for NonStop Kernel.
11135         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11136         (qset_acl): Implement for NonStop Kernel.
11137         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
11138         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
11139         (main): Implement for NonStop Kernel.
11140         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
11141         Kernel. Handle this flavor.
11142         * tests/test-set-mode-acl.sh: Likewise.
11143         * tests/test-copy-acl.sh: Likewise.
11144         * tests/test-copy-file.sh: Likewise.
11145
11146 2010-10-03  Bruno Haible  <bruno@clisp.org>
11147
11148         Info about ACLs on NonStop Kernel.
11149         * doc/acl-resources.txt: Add info about NonStop Kernel.
11150         References by Joachim Schmitz <schmitz@hp.com>.
11151
11152 2010-10-02  Bruno Haible  <bruno@clisp.org>
11153
11154         Define missing EDQUOT on NonStop Kernel.
11155         * lib/errno.in.h (EDQUOT): Assign a value if missing.
11156         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
11157         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
11158         missing.
11159         * doc/posix-headers/errno.texi: Mention the NSK bug.
11160         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
11161         Reported by Joachim Schmitz <schmitz@hp.com>.
11162
11163 2010-10-02  Bruno Haible  <bruno@clisp.org>
11164
11165         Update doc for POSIX:2008.
11166         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
11167         Update URL of POSIX specification.
11168
11169 2010-10-02  Bruno Haible  <bruno@clisp.org>
11170
11171         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
11172         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
11173         from gnulib, not from Automake.
11174
11175 2010-10-02  Bruno Haible  <bruno@clisp.org>
11176
11177         New module 'system-posix'.
11178         * modules/system-posix: New file.
11179         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
11180         module is present.
11181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
11182         GNULIB_SYSTEM_POSIX.
11183         * modules/stdlib (Depends-on): Remove sys_wait.
11184         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
11185         * doc/posix-functions/system.texi: Mention the new module.
11186         * doc/posix-headers/stdlib.texi: Likewise.
11187         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
11188         define test_sys_wait_macros to a no-op.
11189         Reported by Sam Steingold <sds@gnu.org>.
11190
11191 2010-09-30  Bruno Haible  <bruno@clisp.org>
11192
11193         More renaming from 'getdate' to 'get_date'.
11194         * doc/get_date.texi: Renamed from doc/getdate.texi.
11195         * modules/get_date (Files): Update.
11196         * MODULES.html.sh (Date and time <time.h>): Update.
11197         * DEPENDENCIES: Update.
11198         * gnulib-tool: Update comment.
11199         * m4/bison.m4 (gl_BISON): Likewise.
11200         * m4/get_date.m4 (gl_GET_DATE): Likewise.
11201
11202 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
11203
11204         bootstrap: support ACLOCAL_FLAGS during aclocal
11205         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
11206         can add additional -I dir for third-party .m4 files.
11207
11208 2010-09-30  Eric Blake  <eblake@redhat.com>
11209
11210         bootstrap: use glibtoolize on MacOS
11211         * build-aux/bootstrap (check_versions): Convert libtool into
11212         libtoolize.
11213         (tool search): Move libtool check earlier, and look for
11214         glibtoolize for MacOS.
11215         (gnulib_tool_options): Auto-add --libtool when appropriate.
11216         Reported by Justin Clift.
11217
11218         poll: fix typo that broke test on MacOS
11219         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
11220         Reported by Justin Clift.
11221
11222         getdate: rename to get_date
11223         Note: getdate.h is not renamed, to minimize client impact.
11224         * modules/getdate: Mark obsolete.  Move old contents...
11225         * modules/get_date: ...to new module name.
11226         * modules/getdate-tests: Move...
11227         * modules/get_date-tests: ...here.
11228         * m4/getdate.m4: Move...
11229         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
11230         * lib/getdate.y: Move...
11231         * lib/get_date.y: ...here.
11232         * tests/test-getdate.c: Move...
11233         * tests/test-get_date.c: ...here.
11234         * doc/posix-functions/getdate.texi (getdate): Update name.
11235         * NEWS: Mention the change.
11236
11237 2010-09-29  Bruno Haible  <bruno@clisp.org>
11238
11239         Separate the module 'waitpid' from the module 'sys_wait'.
11240         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
11241         present.
11242         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
11243         gl_MODULE_INDICATOR_FOR_TESTS.
11244         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
11245         * modules/sys_wait (Depends-on): Remove waitpid.
11246         (Makefile.am): Substitute GNULIB_WAITPID.
11247         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
11248         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
11249         signature only if the 'waitpid' module is present.
11250         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
11251         * NEWS: Mention the change.
11252         * modules/grantpt (Depends-on): Add waitpid.
11253         * modules/wait-process (Depends-on): Likewise.
11254
11255 2010-09-29  Bruno Haible  <bruno@clisp.org>
11256
11257         More tests for module 'sys_wait'.
11258         * modules/sys_wait-c++-tests: New file.
11259         * tests/test-sys_wait-c++.cc: New file.
11260         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
11261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11262
11263 2010-09-29  Bruno Haible  <bruno@clisp.org>
11264
11265         New module 'waitpid'.
11266         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
11267         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
11268         Don't include <process.h>.
11269         (waitpid): Declare only, using modern idiom.
11270         * m4/waitpid.m4: New file.
11271         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
11272         * modules/waitpid: New file.
11273         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
11274         (Makefile.am): Update.
11275         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11276
11277 2010-09-28  Bruno Haible  <bruno@clisp.org>
11278
11279         poll: Assume ANSI C.
11280         * lib/poll.c (poll): Use an ANSI C declaration.
11281
11282 2010-09-28  Bruno Haible  <bruno@clisp.org>
11283
11284         poll-h: Create poll.h on all platforms.
11285         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
11286         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
11287         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
11288         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
11289         (gl_REPLACE_POLL_H): Don't set POLL_H.
11290         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
11291         * modules/poll-h (Depends-on): Add include_next.
11292         (Makefile.am): Create poll.h unconditionally. Substitute also
11293         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
11294
11295 2010-09-28  Bruno Haible  <bruno@clisp.org>
11296
11297         Tests for module 'poll-h'.
11298         * modules/poll-h-c++-tests: New file.
11299         * tests/test-poll-h-c++.cc: New file.
11300
11301         Tests for module 'poll-h'.
11302         * modules/poll-h-tests: New file.
11303         * tests/test-poll-h.c: New file.
11304
11305 2010-09-28  Bruno Haible  <bruno@clisp.org>
11306
11307         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
11308         * modules/poll-h (Depends-on): Add 'extensions'.
11309
11310 2010-09-28  Bruno Haible  <bruno@clisp.org>
11311
11312         New module 'poll-h'.
11313         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
11314         (poll): Use modern idiom.
11315         * modules/poll-h: New file.
11316         * modules/poll (Files): Remove lib/poll.in.h.
11317         (Depends-on): Add poll-h.
11318         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
11319         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
11320         * m4/poll_h.m4: New file.
11321         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
11322         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
11323         and invoke gl_REPLACE_POLL_H.
11324         * lib/poll.c: Use common idiom.
11325         * tests/test-poll.c: Likewise.
11326         * doc/posix-headers/poll.texi: Mention the poll-h module.
11327         Suggested by Eric Blake.
11328
11329 2010-09-26  Bruno Haible  <bruno@clisp.org>
11330
11331         sys_wait: Implement WSTOPSIG.
11332         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11333         Reported by Simon Josefsson.
11334
11335 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11336
11337         stdlib, sys_wait: Avoid compilation error on mingw.
11338         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11339
11340 2010-09-26  Bruno Haible  <bruno@clisp.org>
11341
11342         stdlib tests: Avoid code duplication.
11343         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11344         * modules/sys_wait-tests (Files): Likewise.
11345         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11346         * tests/test-stdlib.c: Include test-sys_wait.h.
11347         (main): Invoke test_sys_wait_macros.
11348         * tests/test-sys_wait.c: Include test-sys_wait.h.
11349         (main): Invoke test_sys_wait_macros.
11350
11351 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11352
11353         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11354         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11355         sure Windows sockets are working before calling getaddrinfo.
11356         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11357         * doc/gnulib.texi (Windows sockets): Fix typo.
11358
11359 2010-09-25  Bruno Haible  <bruno@clisp.org>
11360
11361         Tests for module 'regex-quote'.
11362         * modules/regex-quote-tests: New file.
11363         * tests/test-regex-quote.c: New file.
11364
11365         New module 'regex-quote'.
11366         * lib/regex-quote.h: New file.
11367         * lib/regex-quote.c: New file.
11368         * modules/regex-quote: New file.
11369         Suggested by Reuben Thomas <rrt@sc3d.org>.
11370
11371 2010-09-24  Bruno Haible  <bruno@clisp.org>
11372
11373         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11374         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11375
11376 2010-09-23  Bruno Haible  <bruno@clisp.org>
11377
11378         setenv: Relax license.
11379         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11380         Blake.
11381         Requested by Eric Blake.
11382
11383 2010-09-22  Bruno Haible  <bruno@clisp.org>
11384
11385         termios: Relax license.
11386         * modules/termios (License): Change to LGPLv2+.
11387         Requested by Eric Blake.
11388
11389 2010-09-22  Bruno Haible  <bruno@clisp.org>
11390
11391         threadlib: Allow the package to change the default to 'no'.
11392         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11393         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11394         Reported by Paul Eggert.
11395
11396 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11397             Bruno Haible  <bruno@clisp.org>
11398
11399         Fix endless loop in mbmemcasecoll.
11400         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11401         byte.
11402         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11403
11404 2010-09-22  Bruno Haible  <bruno@clisp.org>
11405
11406         Tests for module 'memcoll'.
11407         * modules/memcoll-tests: New file.
11408         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11409
11410         memcoll, xmemcoll: Clarify size vs. length.
11411         * modules/memcoll.c (memcoll0): Clarify specification.
11412         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11413         passed to collate_error.
11414
11415 2010-09-22  Bruno Haible  <bruno@clisp.org>
11416
11417         Tests for module 'memcasecmp'.
11418         * modules/memcasecmp-tests: New file.
11419         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11420
11421 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         * lib/pthread.in.h: Add split double-inclusion guard, and include
11424         system <pthread.h> if there is one.  Use @@-style as in other
11425         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11426         pthread.h doesn't.
11427         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11428         (pthread_mutexattr_settype, pthread_mutex_trylock):
11429         New static inline functions, if there's no system <pthread.h>.
11430         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11431         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11432         Approximate with mutexes if the system lacks spinlocks, as in
11433         MacOS.
11434         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11435         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11436         @@-style.  Check for spinlocks separately.
11437         (gl_PTHREAD_DEFAULTS): New macro.
11438         * modules/pthread: Redo to use a more typical style for in.h files.
11439
11440 2010-09-21  Eric Blake  <eblake@redhat.com>
11441
11442         net_if: enhance tests
11443         * tests/test-net_if.c (main): Move signature checks earlier.
11444         Print failures to stderr.
11445         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11446         Document the bug that we do not yet fix.
11447
11448 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11449
11450         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11451         about gnulib, not GSS.
11452
11453 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11454
11455         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11456         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11457         for Emacs.
11458         * build-aux/pmccabe2html: Make Makefile.am example code more
11459         cut-and-paste friendly.
11460
11461 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11462
11463         * tests/test-net_if.c: New file.
11464         * modules/net_if-tests: New file.
11465
11466 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11467
11468         pthread: add pthread_spin_destroy
11469         * lib/pthread.in.h (pthread_spin_destroy): New function.
11470
11471 2010-09-19  Bruno Haible  <bruno@clisp.org>
11472
11473         gnulib-tool: Fix --help output.
11474         * gnulib-tool (func_usage): Fix help message.
11475         Reported by Reuben Thomas <rrt@sc3d.org>.
11476
11477 2010-09-18  Jim Meyering  <meyering@redhat.com>
11478
11479         maint.mk: avoid unexpanded \n in two diagnostics
11480         * top/maint.mk (sc_prohibit_always_true_header_tests):
11481         Don't use a literal \n in a halt=... assignment.  It would not be
11482         expanded, and the two \n bytes would appear in the diagnostic output
11483         rather than the desired newline.  Use halt=$$(printf ... instead.
11484         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11485
11486 2010-09-18  Bruno Haible  <bruno@clisp.org>
11487
11488         netinet_in: Doc tweak.
11489         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11490         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11491
11492 2010-09-18  Jim Meyering  <meyering@redhat.com>
11493
11494         init.sh: correct an outdated comment
11495         * tests/init.sh (create_exe_shims_):  s/function/alias/
11496
11497         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11498         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11499         a file named "*.exe" is removed between the glob expansion and the
11500         processing of that oddly named file.
11501
11502 2010-09-17  Eric Blake  <eblake@redhat.com>
11503
11504         mirbsd: add some more support
11505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11506         in BSD family.
11507         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11508         devices as OpenBSD.
11509         * m4/host-os.m4 (mirbsd): Add MirBSD.
11510
11511         tests: fix unportable assumption on sys/wait.h
11512         * tests/test-sys_wait.c (main): Relax test.
11513         * tests/test-stdlib.c (main): Likewise.
11514
11515         init.sh: accomodate directory with no .exes
11516         * tests/init.sh: Accomodate directory containing only scripts.
11517
11518         tests: avoid compiler warning
11519         * tests/test-stdlib.c (main): Use the variable.
11520
11521         fdutimens, fdutimensat: update signature, again
11522         * lib/utimens.h (gl_futimens): Delete, and move signature...
11523         (fdutimens): ...here.
11524         (fdutimensat): Rearrange signature.
11525         (lutimensat): Rename variable for clarity.
11526         * lib/fdutimensat.c (fdutimensat): Update signature.
11527         * lib/utimens.c (fdutimens): Likewise.
11528         (gl_futimens): Delete.
11529         (utimens, lutimens): Update callers.
11530         * lib/futimens.c (futimens): Likewise.
11531         * tests/test-fdutimensat.c: Likewise.
11532         * tests/test-utimens.c: Likewise.
11533         * tests/test-futimens.h: Update comment.
11534         * NEWS: Mention this.
11535         Suggested by Paul Eggert.
11536
11537 2010-09-17  Bruno Haible  <bruno@clisp.org>
11538
11539         Take over the maintenance of some older macros from Autoconf.
11540         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11541         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11542         GNU Autoconf.
11543         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11544         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11545
11546 2010-09-17  Eric Blake  <eblake@redhat.com>
11547
11548         fdutimensat: drop atflag validation
11549         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11550         with valid fd, to close a race scenario where futimens is
11551         unsupported and FILE was replaced by a symlink.
11552         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11553         accordingly.
11554         Suggested by Paul Eggert.
11555
11556 2010-09-16  Bruno Haible  <bruno@clisp.org>
11557
11558         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11559         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11560
11561 2010-09-16  Bruno Haible  <bruno@clisp.org>
11562
11563         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11564         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11565         login_tty exists.
11566         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11567
11568 2010-09-16  Bruno Haible  <bruno@clisp.org>
11569
11570         login_tty: Make the replacement code work on BSD systems.
11571         * lib/login_tty.c: Include <sys/ioctl.h>.
11572         (login_tty): Use ioctl TIOCSCTTY when available.
11573         * modules/login_tty (Depends-on): Add sys_ioctl.
11574         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11575
11576 2010-09-16  Bruno Haible  <bruno@clisp.org>
11577
11578         login_tty: Stricter unit test.
11579         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11580         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11581         and tcgetsid() after login_tty.
11582         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11583
11584 2010-09-16  Bruno Haible  <bruno@clisp.org>
11585
11586         New module 'tcgetsid'.
11587         * lib/tcgetsid.c: New file.
11588         * m4/tcgetsid.m4: New file.
11589         * modules/tcgetsid: New file.
11590         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11591         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11592         GNULIB_TCGETSID, HAVE_TCGETSID.
11593         * lib/termios.in.h: Include <sys/types.h>.
11594         (tcgetsid): New declaration.
11595         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11596         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11597         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11598         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11599
11600 2010-09-16  Bruno Haible  <bruno@clisp.org>
11601
11602         Tests for module 'termios'.
11603         * modules/termios-c++-tests: New file.
11604         * modules/termios-tests: New file.
11605         * tests/test-termios-c++.cc: New file.
11606         * tests/test-termios.c: New file.
11607
11608         New module 'termios'.
11609         * modules/termios: New file.
11610         * lib/termios.in.h: New file.
11611         * m4/termios_h.m4: New file.
11612         * doc/posix-headers/termios.texi: Mention the new module.
11613
11614 2010-09-16  Eric Blake  <eblake@redhat.com>
11615
11616         fdutimensat: add an atflag parameter
11617         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11618         * lib/utimens.h (fdutimensat): Update prototype.
11619         * tests/test-fdutimensat.c: Adjust test to match.
11620         * NEWS: Document the change.
11621         Suggested by Paul Eggert.
11622
11623 2010-09-16  Bruno Haible  <bruno@clisp.org>
11624
11625         Fix typos in comments.
11626         * lib/striconveh.h: Fix typo in comment.
11627         * lib/login_tty.c (login_tty): Likewise.
11628
11629 2010-09-15  Bruno Haible  <bruno@clisp.org>
11630
11631         stdlib: clarify MirBSD WEXITSTATUS bug
11632         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11633         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11634
11635 2010-09-15  Eric Blake  <eblake@redhat.com>
11636
11637         stdlib: work around MirBSD WEXITSTATUS bug
11638         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11639         * modules/stdlib (Depends-on): Add sys_wait.
11640         * tests/test-sys_wait.c (main): Enhance test.
11641         * tests/test-stdlib.c (main): Likewise.
11642         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11643
11644         docs: mention MacOS issue with WEXITSTATUS(constant)
11645         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11646         issue.
11647         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11648
11649         strnlen: add tests
11650         * modules/strnlen-tests: New file.
11651         * tests/test-strnlen.c: Likewise.
11652
11653 2010-09-14  Bruno Haible  <bruno@clisp.org>
11654
11655         unistr/base: Avoid link errors when module 'libunistring' is also used.
11656         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11657         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11658         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11659         Declare also when HAVE_LIBUNISTRING is set.
11660         Reported by Pádraig Brady <P@draigbrady.com>.
11661
11662 2010-09-14  Eric Blake  <eblake@redhat.com>
11663
11664         test-rawmemchr: make more robust
11665         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11666         (Depends-on, configure.ac): Add needed prerequisites to use it.
11667         * modules/memchr-tests (Files, Depends-on, configure.ac):
11668         Likewise, to avoid implicit reliance on memchr module prereqs.
11669         * tests/test-memchr.c (main): Ensure proper masking.
11670         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11671         reads.
11672
11673         memchr: detect glibc Alpha bug
11674         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11675         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11676         Alpha.
11677         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11678         * tests/test-memchr.c (main): Enhance test.
11679         Reported by Nelson H. F. Beebe.
11680
11681 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11682
11683         fts, getcwd, glob: audit for dirfd returning -1
11684         * lib/fts.c (opendir): Remove #define; no longer used.
11685         (opendirat): New arg PDIR_FD.  All callers changed.
11686         (fts_build, _opendir2): Use new opendirat to avoid the need for
11687         dirfd, or for checking whether dirfd returns a negative value.
11688         Don't use opendir; always use openat followed by fdopendir.
11689         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11690         it.
11691         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11692         returns -1 here.
11693         * modules/fts (Depends-on): Remove dirfd.
11694         * modules/getcwd (Depends-on): Likewise.
11695
11696 2010-09-13  Eric Blake  <eblake@redhat.com>
11697
11698         float: fix broken MirBSD header
11699         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11700         * doc/posix-headers/float.texi (float.h): Document it.
11701
11702 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11703
11704         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11705         * lib/fts.c (opendirat): New arg extra_flags.
11706         (__opendir2): Use it to avoid following symlinks when opening
11707         a directory, if symlinks are not supposed to be followed.  See
11708         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11709
11710         fdopendir: preserve argument fd before returning
11711         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11712         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11713         (fdopendir): Use them, arranging for FD to be open to the same
11714         directory that it was when it started.  (It might be temporarily
11715         closed while fdopendir is running, so this not thread- or
11716         signal-safe.)  Be careful to do the right thing even when file
11717         descriptors are scarce and dup fails with errno == EMFILE.  See
11718         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11719
11720 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11721
11722         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11723         * NEWS: Document change.
11724         * m4/regex.m4: Disable test for regoff_t size.
11725
11726 2010-09-13  Jim Meyering  <meyering@redhat.com>
11727
11728         fts: don't operate on an invalid file descriptor after failed dup
11729         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11730         negative file descriptor.
11731
11732 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11733
11734         savedir: add streamsavedir, deprecate fdsavedir
11735         * NEWS: Mention deprecation of fdsavedir.
11736         * lib/savedir.c (streamsavedir): New extern function, whose name
11737         ends in "savedir" to be consistent with the others.  This differs
11738         from savedirstream in that it doesn't close its argument.  The
11739         next version of GNU tar will use this instead of fdsavedir, to
11740         avoid some race conditions and conserve file descriptors.
11741         (savedirstream): Reimplement as a wrapper around streamsavedir.
11742         (fdsavedir): Add a comment deprecating this function.  As far as
11743         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11744         * lib/savedir.h (streamsavedir): New decl.
11745         (fdsavedir): Add a comment deprecating this.
11746
11747 2010-09-10  Bruno Haible  <bruno@clisp.org>
11748
11749         langinfo: Fix last commit.
11750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11751         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11753
11754 2010-09-10  Bruno Haible  <bruno@clisp.org>
11755
11756         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11757         * lib/progreloc.c (O_EXEC): Define fallback.
11758
11759 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11760
11761         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11762         * NEWS: Document recent changes to fcntl-h.
11763         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11764         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11765         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11766         Similarly for O_SEARCH; this last was already true, but not documented.
11767         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11768         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11769         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11770         Likewise.
11771         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11772         is zero, not whether it is defined.
11773         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11774         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11775         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11776
11777 2010-09-10  Bruno Haible  <bruno@clisp.org>
11778
11779         langinfo, nl_langinfo: Fix for IRIX 5.3.
11780         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11781         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11782         HAVE_LANGINFO_YESEXPR.
11783         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11784         HAVE_LANGINFO_YESEXPR.
11785         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11786         HAVE_LANGINFO_T_FMT_AMPM is 0.
11787         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11788         HAVE_LANGINFO_YESEXPR is 0.
11789         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11790         NOEXPR.
11791         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11792         * doc/posix-functions/nl_langinfo.texi: Likewise.
11793         Reported by Eric Blake.
11794
11795 2010-09-10  Bruno Haible  <bruno@clisp.org>
11796
11797         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11798         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11799         on FreeBSD 8.0 and OpenBSD 4.6.
11800         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11801         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11802         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11803         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11804         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11805         ac_includes_default.
11806         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11807
11808 2010-09-09  Eric Blake  <eblake@redhat.com>
11809
11810         strsignal: work around NetBSD bug
11811         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11812         * lib/string.in.h (includes): Likewise.
11813         * doc/posix-functions/strsignal.texi (strsignal): Document the
11814         bug.
11815         Reported by Nelson H. F. Beebe.
11816
11817         gnulib-tool: work with NetBSD /bin/sh
11818         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11819         (func_get_description, func_get_comment, func_get_status)
11820         (func_get_notice, func_get_applicability, func_get_filelist)
11821         (func_get_dependencies, func_get_autoconf_early_snippet)
11822         (func_get_autoconf_snippet, func_get_automake_snippet)
11823         (func_get_include_directive, func_get_link_directive)
11824         (func_get_license, func_get_maintainer, func_import): Avoid
11825         shell syntax errors from parsing syntax extensions.
11826
11827 2010-09-09  Bruno Haible  <bruno@clisp.org>
11828
11829         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11830         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11831         a reliable way to determine whether the 'alias' command works.
11832
11833 2010-09-08  Jim Meyering  <meyering@redhat.com>
11834
11835         init.sh: penalize a set-x-impaired shell; don't disqualify it
11836         * tests/init.sh: Too many shells corrupt application stderr when
11837         you set -x, so we can't afford to disqualify them, since at least
11838         on Irix-6.5, that would disqualify all bourne shells.
11839         Instead, use a two-pass approach.
11840         On the first pass, try to find a shell that meets the stricter
11841         condition that set -x does not corrupt stderr.
11842         If no shell meets the stricter condition, retest each candidate
11843         shell, but without that extra condition.  Finally, when
11844         VERBOSE=yes is requested and set -x might cause trouble, simply
11845         issue a warning and refrain from enabling debug output.
11846
11847 2010-09-08  Eric Blake  <eblake@redhat.com>
11848
11849         unsetenv: fix OpenBSD bug
11850         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11851         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11852         documentation.
11853         Reported by Jim Meyering.
11854
11855         strtod: work around IRIX 6.5 bug
11856         * lib/strtod.c (strtod): Reparse number on shorter string if
11857         exponent parse was invalid.
11858         * tests/test-strtod.c (main): Add check for "0x1p 2".
11859         Reported by Tom G. Christensen.
11860
11861         getopt: optimize previous patch
11862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11863         empty variable.  Speed up awk script.
11864         Reported by Paolo Bonzini.
11865
11866 2010-09-08  Jim Meyering  <meyering@redhat.com>
11867
11868         test.sh: disqualify shells for which set -x corrupts stderr
11869         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11870         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11871         appear in stderr output.  For example, this command:
11872             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11873         prints "P=1" on those two systems:
11874
11875 2010-09-08  Bruno Haible  <bruno@clisp.org>
11876
11877         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11878         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11879         commands, because some shells ignore redirections when there is an
11880         error in the command lookup.
11881         Reported by Eric Blake.
11882
11883 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11884
11885         * lib/regex.h: Fix a mention of `regex_compile' (should be
11886         `re_compile_pattern').
11887         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11888         (re_set_registers): Correct name of parameter in comment.
11889
11890         * doc/regex.texi: Add documentation for missing syntax flags.
11891         Remove commented-out documentation of defunct syntax option
11892         RE_NO_EMPTY_ALTS.
11893         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11894         Add documentation of re_set_registers.
11895         Document trick to re-use a pattern buffer by setting fastmap manually.
11896         Update documentation of struct re_pattern_buffer per public members.
11897         Uncomment documentation of equivalence class operators and
11898         collating symbol operators, since they are now implemented,
11899         Explain leftmost-longest matching in relation to alternatives.
11900         Tidy documentation of substring matching.
11901         Remove POSIX documentation, which is done better in
11902         glibc, and refer the reader there. Keep BSD API documentation, as
11903         that is not readily available elsewhere.
11904
11905 2010-09-07  Eric Blake  <eblake@redhat.com>
11906
11907         getopt: handle POSIXLY_CORRECT set but not exported
11908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11909         export state of POSIXLY_CORRECT, due to bash set -o posix.
11910         Reported by Dustin J. Mitchell.
11911
11912 2010-09-05  Bruno Haible  <bruno@clisp.org>
11913
11914         gnulib-tool: Highlight the changed options.
11915         * gnulib-tool (func_usage): Display the --import, --add-import,
11916         --remove-import explanations in bold font.
11917
11918 2010-09-06  Karl Berry  <karl@gnu.org>
11919
11920         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11921
11922 2010-09-05  Bruno Haible  <bruno@clisp.org>
11923
11924         uniwidth/width: Update comment.
11925         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11926         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11927
11928 2010-09-05  Bruno Haible  <bruno@clisp.org>
11929
11930         isinf, isnan: Relax license.
11931         * modules/isinf (License): Change from GPL to LGPL, with consent from
11932         Ben Pfaff.
11933         * modules/isnan (License): Likewise.
11934         Requested by Ludovic Courtès.
11935
11936 2010-09-04  Bruno Haible  <bruno@clisp.org>
11937
11938         gnulib-tool: Help migration from --import to --add-import or --update.
11939         * gnulib-tool: Emit a verbose error message when --import is used
11940         without any module name.
11941
11942 2010-09-04  Bruno Haible  <bruno@clisp.org>
11943
11944         Update doc about gnulib-tool.
11945         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11946         'gnulib-tool --update' in more detail.
11947         Reported by Eric Blake.
11948
11949 2010-09-04  Bruno Haible  <bruno@clisp.org>
11950
11951         gnulib-tool: Change --import. New options --add/remove-import.
11952         * gnulib-tool: New options --add-import, --remove-import.
11953         (func_usage): Document them.
11954         (have_associative): Define always.
11955         (func_import): In import mode, don't merge the specified settings with
11956         the cached settings. Implement remove-import mode.
11957         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11958         Explain when to use them versus --import.
11959         (Simple update): Use --add-import instead of --import.
11960         * NEWS: Mention the change.
11961
11962 2010-09-04  Bruno Haible  <bruno@clisp.org>
11963
11964         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11965         separate gnulib.mk.
11966
11967 2010-09-04  Bruno Haible  <bruno@clisp.org>
11968
11969         gnulib-tool: Don't talk about CVS any more.
11970         * gnulib-tool (func_usage, func_import): Write "version control"
11971         instead of CVS.
11972
11973 2010-09-04  Jim Meyering  <meyering@redhat.com>
11974
11975         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11976         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11977         false positives (whose names may be ill-chosen) when searching
11978         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11979         would cause a false-positive.
11980
11981         avoid coreutils "make distcheck" failure
11982         Coreutils tests with an absolute build directory name that contains
11983         a space.  Not quoting this directory name caused a failure.
11984         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11985         * tests/test-vc-list-files-cvs.sh: Likewise.
11986
11987 2010-09-04  Bruno Haible  <bruno@clisp.org>
11988
11989         gnulib-tool: Avoid error when run in a package without Makefile.am.
11990         * gnulib-tool: When collecting the m4dirs in a package that does not
11991         have a Makefile.am, eliminate those directories that contain no
11992         gnulib-cache.m4. Fix expression that counts these directories.
11993
11994 2010-09-04  Bruno Haible  <bruno@clisp.org>
11995
11996         update-copyright test: Improve output when perl is missing or too old.
11997         * tests/test-update-copyright.sh: Move test of Perl version down after
11998         the test whether Perl exists. Provide an explanation relating Perl's
11999         error message to Automake's SKIP: message.
12000
12001 2010-09-04  Bruno Haible  <bruno@clisp.org>
12002
12003         Don't augment PATH in TESTS_ENVIRONMENT.
12004         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
12005         set abs_aux_dir instead of augmenting PATH.
12006         * modules/vc-list-files-tests (Makefile.am): Likewise.
12007         * tests/test-update-copyright.sh: Augment PATH here.
12008         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
12009         path_prepend_.
12010         * tests/test-vc-list-files-git.sh: Likewise.
12011
12012 2010-09-04  Jim Meyering  <meyering@redhat.com>
12013
12014         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
12015         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
12016
12017 2010-09-04  Bruno Haible  <bruno@clisp.org>
12018
12019         strdup: Fix compilation error in C++ mode.
12020         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
12021         the macro.
12022
12023 2010-09-04  Bruno Haible  <bruno@clisp.org>
12024
12025         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
12026         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
12027         macro into a function.
12028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12029
12030 2010-09-04  Bruno Haible  <bruno@clisp.org>
12031
12032         Set PATH_SEPARATOR the same way autoconf does.
12033         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
12034         the value of PATH_SEPARATOR the same way autoconf-generated configure
12035         scripts do.
12036         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
12037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12038
12039 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12040
12041         Set PATH_SEPARATOR the same way autoconf does.
12042         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
12043         the same way autoconf-generated configure scripts do.
12044         * posix-modules: Likewise.
12045
12046 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         hash: fix safe_hasher const typo
12049         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
12050         const; otherwise, there is a type error later.
12051
12052 2010-09-02  Jim Meyering  <meyering@redhat.com>
12053
12054         test-update-copyright.sh: require perl 5.8.0
12055         * tests/test-update-copyright.sh: Require 5.8.0,
12056         which Tom G. Christensen has confirmed is adequate,
12057         while 5.6.1 is not.
12058
12059 2010-09-02  Eric Blake  <eblake@redhat.com>
12060
12061         tests: init.sh improvements for re-exec'ing with zsh
12062         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
12063         -vx through shell re-exec.
12064         Reported by Tom G. Christensen.
12065
12066         wctype: fix typo in previous commit
12067         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
12068         Reported by Ludovic Courtès.
12069
12070 2010-09-02  Jim Meyering  <meyering@redhat.com>
12071
12072         test-update-copyright.sh: skip test if Perl is too old
12073         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
12074         Reported by Tom G. Christensen.
12075
12076 2010-09-02  Bruno Haible  <bruno@clisp.org>
12077
12078         wctype: Avoid compilation error on IRIX 6.5.30.
12079         * lib/wctype.in.h (iswblank): Declare with a replacement if
12080         REPLACE_ISWBLANK is set.
12081         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
12082         declared. Set REPLACE_ISWBLANK.
12083         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
12084         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
12085         * doc/posix-headers/wctype.texi: Likewise.
12086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12087
12088 2010-09-01  Bruno Haible  <bruno@clisp.org>
12089
12090         New module 'socketlib'.
12091         * modules/socketlib: New file.
12092         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
12093         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
12094         * modules/sockets (Depends-on): Add socketlib.
12095         Suggested by Sam Steingold <sds@gnu.org>.
12096
12097 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12098
12099         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
12100
12101         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
12102         when one needs search access to a directory but not read access.
12103         On systems where it is available, it works in some cases where
12104         O_RDONLY does not, namely on directories that are searchable but
12105         not readable, and which need only to be searchable.  If O_SEARCH
12106         is not available, fall back to the traditional method of using
12107         O_RDONLY.
12108
12109         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
12110         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
12111         when opening a directory that needs only to be searchable.
12112         * lib/chdir-safer.c (chdir_no_follow): Likewise.
12113         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
12114         * lib/openat-proc.c (openat_proc_name): Likewise.
12115         * lib/openat.c (openat_needs_fchdir): Likewise.
12116         * lib/save-cwd.c (save_cwd): Likewise.
12117         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
12118
12119 2010-08-28  Bruno Haible  <bruno@clisp.org>
12120
12121         New module 'host-cpu-c-abi'.
12122         * modules/host-cpu-c-abi: New file.
12123         * m4/host-cpu-c-abi.m4: New file, based on part of
12124         clisp/src/m4/general.m4.
12125         Requested by Sam Steingold <sds@gnu.org>.
12126
12127 2010-08-31  Eric Blake  <eblake@redhat.com>
12128         and Jim Meyering  <meyering@redhat.com>
12129
12130         hash: factor, and guard against misbehaving hasher function
12131         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
12132         of table->hasher's return value.  Also protect against a hash value
12133         so large that adding it to table->bucket results in a NULL pointer.
12134         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
12135         Use it in place of open-coded check-and-abort.
12136
12137 2010-08-30  Bruno Haible  <bruno@clisp.org>
12138
12139         hash: silence spurious clang warning
12140         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
12141         Reported by Eric Blake.
12142
12143 2010-08-30  Eric Blake  <eblake@redhat.com>
12144
12145         strstr, memmem, strcasestr: avoid leaked shell message
12146         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
12147         FreeBSD.
12148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12150
12151         tests: silence clang warning
12152         * tests/test-malloca.c (do_allocation): Avoid dead store.
12153
12154 2010-08-29  Bruno Haible  <bruno@clisp.org>
12155
12156         gettext: Fix recent mistake.
12157         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
12158
12159 2010-08-29  Bruno Haible  <bruno@clisp.org>
12160
12161         selinux-h: Offer a --without-selinux option.
12162         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
12163         --without-selinux was specified, skip all tests and define
12164         HAVE_SELINUX_SELINUX_H to 0.
12165         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
12166         set LIB_SELINUX to empty.
12167         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
12168         gl_LIBSELINUX. If --without-selinux was specified, replace
12169         selinux/context.h.
12170         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
12171
12172 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12173             Bruno Haible  <bruno@clisp.org>
12174
12175         Make the module 'realloc-gnu' work again on AIX and OSF/1.
12176         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
12177         of HAVE_REALLOC.
12178         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
12179         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
12180         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
12181         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12182
12183 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12184             Bruno Haible  <bruno@clisp.org>
12185
12186         Make the module 'calloc-gnu' work again on AIX and OSF/1.
12187         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
12188         HAVE_CALLOC.
12189         * lib/xmalloc.c: Update accordingly.
12190         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
12191         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
12192         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
12193
12194 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12195             Bruno Haible  <bruno@clisp.org>
12196
12197         Make the module 'malloc-gnu' work again on AIX and OSF/1.
12198         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
12199         HAVE_MALLOC.
12200         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
12201         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
12202         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
12203
12204 2010-08-29  Bruno Haible  <bruno@clisp.org>
12205
12206         Update modules list.
12207         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12208         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
12209         (String handling <string.h>): Add astrxfrm.
12210         (File system functions): Add readlinkat.
12211
12212 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12213
12214         Tests for module 'realloc-gnu'.
12215         * modules/realloc-gnu-tests: New file.
12216         * tests/test-realloc-gnu.c: New file.
12217
12218         Tests for module 'calloc-gnu'.
12219         * modules/calloc-gnu-tests: New file.
12220         * tests/test-calloc-gnu.c: New file.
12221
12222         Tests for module 'malloc-gnu'.
12223         * modules/malloc-gnu-tests: New file.
12224         * tests/test-malloc-gnu.c: New file.
12225
12226 2010-08-28  Bruno Haible  <bruno@clisp.org>
12227
12228         Rename module 'realloc' -> 'realloc-gnu'.
12229         * modules/realloc-gnu: New file, copied from modules/realloc.
12230         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
12231         obsolete.
12232         * modules/mgetgroups (Depends-on): Update.
12233         * doc/posix-functions/realloc.texi: Update.
12234         * NEWS: Mention the change.
12235
12236         Rename module 'calloc' -> 'calloc-gnu'.
12237         * modules/calloc-gnu: New file, copied from modules/calloc.
12238         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
12239         obsolete.
12240         * doc/posix-functions/calloc.texi: Update.
12241         * NEWS: Mention the change.
12242
12243         Rename module 'malloc' -> 'malloc-gnu'.
12244         * modules/malloc-gnu: New file, copied from modules/malloc.
12245         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
12246         obsolete.
12247         * modules/argp (Depends-on): Update.
12248         * modules/regex (Depends-on): Update.
12249         * doc/posix-functions/malloc.texi: Update.
12250         * NEWS: Mention the change.
12251
12252 2010-08-28  Eric Blake  <eblake@redhat.com>
12253
12254         pread, pwrite: add missing dependency
12255         * modules/pread (Depends-on): Add extensions.
12256         * modules/pwrite (Depends-on): Likewise.
12257
12258 2010-08-28  Bruno Haible  <bruno@clisp.org>
12259
12260         unistr/u*-strchr: Fix tests dependencies.
12261         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
12262         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
12263         Reported by Ian Beckwith <ianb@erislabs.net>.
12264
12265 2010-08-28  Bruno Haible  <bruno@clisp.org>
12266
12267         read-file: Don't occupy too much unused memory.
12268         * lib/read-file.c (fread_file): Shrink the buffer at the end.
12269
12270 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
12271             Eric Blake  <eblake@redhat.com>
12272             Bruno Haible  <bruno@clisp.org>
12273
12274         read-file: Avoid memory reallocations with regular files.
12275         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
12276         (fread_file): With regular files, use the remaining length as the
12277         initial buffer size.  Check against overflow.
12278         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
12279         sys_stat.
12280
12281 2010-08-28  Bruno Haible  <bruno@clisp.org>
12282
12283         ftello: Relax license.
12284         * modules/ftello (License): Relax to LGPLv2+.
12285         Reported by Eric Blake.
12286
12287 2010-08-28  Bruno Haible  <bruno@clisp.org>
12288
12289         Avoid relocwrapper link errors due to gnulib replacement functions.
12290         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
12291         function.
12292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12293
12294 2010-08-28  Bruno Haible  <bruno@clisp.org>
12295
12296         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
12297         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
12298         defined.
12299         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
12300         Suggested by Eric Blake.
12301
12302 2010-08-28  Bruno Haible  <bruno@clisp.org>
12303
12304         sys_socket, netdb: Ensure socklen_t gets defined.
12305         * modules/sys_socket (Depends-on): Add socklen.
12306         * modules/netdb (Depends-on): Likewise.
12307         * modules/getaddrinfo (Depends-on): Remove socklen.
12308         * modules/getsockopt (Depends-on): Likewise.
12309         * modules/setsockopt (Depends-on): Likewise.
12310         * tests/test-sys_socket.c: Check that socklen_t is defined.
12311         * tests/test-netdb.c: Likewise.
12312         * m4/socklen.m4: Update comments.
12313         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12314
12315 2010-08-27  Eric Blake  <eblake@redhat.com>
12316
12317         login_tty: add missing dependency
12318         * modules/login_tty (Depends-on): Add pty.
12319
12320 2010-08-26  Eric Blake  <eblake@redhat.com>
12321
12322         lib-symbol-versions: fix m4 quoting
12323         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
12324         format for AC_LINK_IFELSE.
12325
12326         glob: fix compile test
12327         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
12328
12329         btowc: fix missing file
12330         * modules/btowc (Files): Also ship locale-fr.m4.
12331
12332         lseek: fix link test
12333         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12334         AC_LINK_IFELSE.
12335
12336         include_next: silence autoconf 2.68 warning
12337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12338         AC_COMPILE_IFELSE as special.
12339         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12340         autoconf < 2.68.
12341
12342         acl: fix compilation test
12343         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12344         AC_COMPILE_IFELSE.
12345
12346 2010-08-26  Bruno Haible  <bruno@clisp.org>
12347
12348         Modernize AC_TRY_RUN invocations.
12349         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12351         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12352         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12353         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12354         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12355         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12356         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12357         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12358         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12359         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12360         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12361         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12362         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12364         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12365         gl_MBRLEN_NUL_RETVAL): Likewise.
12366         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12367         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12368         Likewise.
12369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12370         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12371         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12372         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12373         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12374         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12375         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12376         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12377         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12378         Likewise.
12379         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12380         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12381         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12382         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12383         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12384         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12386         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12387         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12389
12390 2010-08-26  Bruno Haible  <bruno@clisp.org>
12391
12392         Modernize AC_TRY_LINK invocations.
12393         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12394         AC_TRY_LINK.
12395         * m4/argp.m4 (gl_ARGP): Likewise.
12396         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12397         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12398         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12400         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12401         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12402         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12403         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12404         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12405         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12407         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12408         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12409         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12410         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12411         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12412         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12413         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12414         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12415         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12416         Likewise.
12417         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12418         Likewise.
12419         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12420         Likewise.
12421         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12422         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12424         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12425         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12426         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12427         * m4/servent.m4 (gl_SERVENT): Likewise.
12428         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12429         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12430         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12431         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12432         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12433         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12434         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12436         * modules/tsearch-tests (configure.ac): Likewise.
12437
12438 2010-08-26  Bruno Haible  <bruno@clisp.org>
12439
12440         Modernize AC_TRY_COMPILE invocations.
12441         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12442         AC_TRY_COMPILE.
12443         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12444         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12445         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12446         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12447         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12448         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12449         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12450         * m4/lock.m4 (gl_LOCK): Likewise.
12451         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12452         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12453         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12455         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12456         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12457         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12460         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12461         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12462         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12463         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12464         extraneous semicolon.
12465
12466 2010-08-26  Jim Meyering  <meyering@redhat.com>
12467
12468         stat-time: relax license LGPL
12469         * modules/stat-time (License): Change from GPL to LGPL,
12470         with consent from all contributors, for use in libguile.
12471         Requested by Ludovic Courtès.
12472
12473 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12474
12475         poll: return immediately on POLLHUP.
12476         * lib/poll.c (poll): Always set timeout before wait_timeout is
12477         computed.
12478
12479 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12480
12481         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12482         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12483         rmdir ("dir/.//"), unlinkat.
12484
12485 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         stdbool: avoid spurious failure with modern xlc
12488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12489
12490 2010-08-24  Bruno Haible  <bruno@clisp.org>
12491
12492         getloadavg: simplify code
12493         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12494         gl_have_func. Update comments.
12495
12496 2010-08-24  Eric Blake  <eblake@redhat.com>
12497
12498         getloadavg: don't define SVR4 on cygwin
12499         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12500         only define SVR4 when -lkvm is required.
12501         Reported by Yaakov Selkowitz.
12502
12503 2010-08-24  Bruno Haible  <bruno@clisp.org>
12504
12505         priv-set: fix comment
12506         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12507
12508 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         priv-set: fix comments
12511         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12512         to match code, as suggested by David Bartley in:
12513         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12514
12515 2010-08-23  Eric Blake  <eblake@redhat.com>
12516
12517         stdbool: avoid rejecting clang
12518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12519         * tests/test-stdbool.c: Enable more tests if using the system
12520         <stdbool.h> instead of the gnulib replacement.
12521         (main): Move xlc bug test to a runtime test for all compilers.
12522         Reported by Anders Kaseorg.
12523
12524         argz: fix shell quoting issue
12525         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12526         Reported by Charles Wilson.
12527
12528 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12529             Erik Faye-Lund <kusmabite@gmail.com>
12530
12531         poll, select: handle ERROR_BROKEN_PIPE.
12532         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12533         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12534         * lib/select.c (win32_compute_revents): Do not mark a pipe
12535         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12536
12537 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12538
12539         fts: allow compilation with C++
12540         * lib/fts_.h: Specify extern "C" linkage with C++.
12541
12542 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12543
12544         Fix gnulib-tool sed script de-commentation for AIX sed.
12545         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12546         sed.
12547
12548 2010-08-17  Eric Blake  <eblake@redhat.com>
12549
12550         test-stddef: test for (some) offsetof bugs
12551         * tests/test-stddef.c: Enhance test to ensure correct type of
12552         offsetof.
12553         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12554         that we are not fixing at this time.
12555
12556 2010-08-15  Bruno Haible  <bruno@clisp.org>
12557
12558         stpncpy: Allow stpncpy to be defined as a macro.
12559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12560         if it's already correctly declared.
12561         * lib/string.in.h (stpncpy): Undefine before redefining.
12562         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12563
12564 2010-08-14  Bruno Haible  <bruno@clisp.org>
12565
12566         Rename module 'memxfrm' to 'amemxfrm'.
12567         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12568         (amemxfrm): Renamed from memxfrm.
12569         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12570         (amemxfrm): Renamed from memxfrm.
12571         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12572         * NEWS: Mention the change.
12573         * MODULES.html.sh (String handling <string.h>): Update.
12574         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12575         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12576         * lib/unicase/u16-casexfrm.c: Likewise.
12577         * lib/unicase/u32-casexfrm.c: Likewise.
12578         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12579         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12580         * lib/uninorm/u16-normxfrm.c: Likewise.
12581         * lib/uninorm/u32-normxfrm.c: Likewise.
12582         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12583         memxfrm.
12584         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12585         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12586         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12587         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12588         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12589         Suggested by Paul Eggert.
12590
12591 2010-08-14  Bruno Haible  <bruno@clisp.org>
12592
12593         Tests for module 'astrxfrm'.
12594         * modules/astrxfrm-tests: New file.
12595         * tests/test-astrxfrm.c: New file.
12596
12597         New module 'astrxfrm'.
12598         * lib/astrxfrm.h: New file.
12599         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12600         * modules/astrxfrm: New file.
12601
12602 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12603
12604         regex: Tweak doc.
12605         * doc/regex.texi (Overview): Don't mention regex.c.
12606         (GNU Regular Expression Compiling): Likewise.
12607         (Match-end-of-line Operator): Mention 'not_eol'.
12608
12609 2010-08-14  Brian Gough  <bjg@gnu.org>
12610             Bruno Haible  <bruno@clisp.org>
12611
12612         git-merge-changelog: add doc relating to use with bzr and hg.
12613         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12614
12615 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12616
12617         pthread: fix pthread.h creation for srcdir != builddir
12618         * modules/pthread (Makefile.am): Fix the rule to work also in a
12619         non-srcdir build.
12620
12621 2010-08-13  Karl Berry  <karl@gnu.org>
12622
12623         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12624         * doc/posix-*/*: force line break before @url of POSIX
12625         specifications.
12626         Suggested by Werner Lemberg.
12627
12628 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12629
12630         strtod: fix const diagnostic
12631         * lib/strtod.c (strtod): Don't assign const char * to char *,
12632         as this elicits a warning from GCC when warnings are enabled.
12633
12634 2010-08-10  Pádraig Brady <P@draigbrady.com>
12635         and Eric Blake  <eblake@redhat.com>
12636
12637         copy-acl: ignore ENOTSUP on HP-UX
12638         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12639         so that it is available for HP-UX.
12640         * lib/copy-acl.c (qcopy_acl): Use it.
12641         Reported by Patrick M. Callahan.
12642
12643 2010-08-10  Eric Blake  <eblake@redhat.com>
12644
12645         open, chown: relax license
12646         * modules/open (License): Change to LGPLv2+, with consent by all
12647         authors, for use in augeas.
12648         * modules/chown (License): Likewise.
12649         * modules/lchown (Likewise): Likewise.
12650         Requested by Adam Stokes.
12651
12652 2010-08-09  Karl Berry  <karl@gnu.org>
12653
12654         * build-aux/ar-lib: new file, import from Automake.
12655         * config/srclist.txt: autocheck for updates.
12656
12657 2010-08-09  Eric Blake  <eblake@redhat.com>
12658
12659         readlinkat: adjust client modules
12660         * modules/areadlinkat (Depends-on): Use readlinkat, not
12661         symlinkat.
12662         * modules/areadlinkat-with-size (Depends-on): Likewise.
12663
12664         mknod: be more vocal about danger of running tests as root
12665         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12666         root, since that is just asking for problems.
12667         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12668
12669         readlinkat: split into its own module
12670         * modules/symlinkat: Split readlinkat...
12671         * modules/readlinkat: ...into separate module.
12672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12673         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12674         * lib/symlinkat.c (readlinkat): Move...
12675         * lib/readlinkat.c: ...into new file.
12676         * modules/symlinkat-tests: Split readlinkat test...
12677         * modules/readlinkat-tests: ...into separate module.
12678         * tests/test-symlinkat.c: Split...
12679         * tests/test-readlinkat.c: ...into new file.
12680         * NEWS: Document the split.
12681         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12682         * lib/unistd.in.h (readlinkat): Likewise.
12683         Suggested by Bruno Haible.
12684
12685 2010-08-08  Bruno Haible  <bruno@clisp.org>
12686
12687         memxfrm: Speed up.
12688         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12689         that usually only one call to strxfrm is necessary for each string
12690         part.
12691         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12692
12693 2010-08-07  Karl Berry  <karl@gnu.org>
12694
12695         * doc/posix-headers/limits.texi,
12696         * doc/posix-functions/malloc.texi,
12697         * doc/posix-functions/strsignal.texi: missing @item.
12698         * doc/ld-version-script.texi: spurious leading i.
12699         * doc/regex.texi (Interval Operators): no commas inside @var.
12700
12701 2010-08-01  Bruno Haible  <bruno@clisp.org>
12702
12703         Integrate the regex documentation.
12704         * doc/gnulib.texi: Define 'cn' index.
12705         (Regular expressions): New a chapter that includes regex.texi and
12706         regexprops-generic.texi.
12707         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12708         syntax.
12709
12710         Whitespace cleanup.
12711         * doc/regex.texi: Remove trailing spaces.
12712
12713         Add regex documentation.
12714         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12715         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12716         Written by Kathy A. Hargreaves and Karl Berry.
12717
12718 2010-08-01  Bruno Haible  <bruno@clisp.org>
12719
12720         link: Update documentation.
12721         * doc/posix-functions/link.texi: Update regarding Solaris.
12722
12723 2010-07-31  Bruno Haible  <bruno@clisp.org>
12724
12725         Update modules list.
12726         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12727         (String handling <string.h>): Add memcmp2, memxfrm.
12728         (Container data structures): Add xlist, xsublist, xoset.
12729         (Core language properties): Add alignof, unused-parameter.
12730         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12731         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12732         (Unibyte characters <ctype.h>): New section.
12733         (String handling <string.h>): New section.
12734         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12735         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12736         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12737         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12738         tan, tanh, tanl, y0, y1, yn.
12739         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12740         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12741         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12742         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12743         unlockpt, vdprintf, vdprintf-posix.
12744         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12745         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12746         xconcat-filename.
12747         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12748         getdtablesize, pipe2, pipe2-safer.
12749         (Security): New section.
12750         (Networking functions): Add accept4.
12751         (Signal handling): Add sigpipe.
12752         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12753         mbmemcasecoll.
12754         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12755         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12756         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12757         pipe-filter-ii.
12758         (Misc): Add argp-version-etc, login_tty, parse-duration.
12759
12760 2010-07-31  Bruno Haible  <bruno@clisp.org>
12761
12762         Improve doc in MODULES.html.
12763         * modules/linkat (Description): Add the word "function".
12764         * modules/mkfifo (Description): Likewise.
12765         * modules/mknod (Description): Likewise.
12766         * modules/remove (Description): Likewise.
12767         * modules/renameat (Description): Likewise.
12768         * modules/stat (Description): Likewise.
12769         * modules/symlink (Description): Likewise.
12770         * modules/unlink (Description): Likewise.
12771
12772 2010-07-31  Bruno Haible  <bruno@clisp.org>
12773
12774         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12776         option --enable/disable-c++ instead of --enable/disable-cxx.
12777         * NEWS: Mention the change.
12778
12779 2010-07-31  Bruno Haible  <bruno@clisp.org>
12780
12781         readlink, areadlink: Relax test a bit.
12782         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12783         alternative to ENOTDIR.
12784         * tests/test-areadlink.h (test_areadlink): Likewise.
12785         Reported by Rainer Tammer.
12786
12787 2010-07-31  Bruno Haible  <bruno@clisp.org>
12788
12789         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12790         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12791         character, perform the search using U_STRCHR.
12792         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12793         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12794         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12795         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12796         Suggested by Paolo Bonzini.
12797
12798 2010-07-31  Bruno Haible  <bruno@clisp.org>
12799
12800         unistr/u*-strstr: Fix dependencies.
12801         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12802         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12803         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12804
12805 2010-07-31  Bruno Haible  <bruno@clisp.org>
12806
12807         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12808         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12809         the beginning of the loop.
12810         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12811         cases in 'switch' statement.
12812
12813         unistr/u8-strchr: Fix several bugs.
12814         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12815         the string. When not found, return NULL, not a pointer near the end.
12816
12817         More tests for unistr/u8-strchr.
12818         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12819         that the function does not read past the first occurrence of the byte
12820         being searched.
12821         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12822         * tests/unistr/test-u16-strchr.c (main): New function.
12823         * tests/unistr/test-u32-strchr.c (main): New function.
12824
12825 2010-07-31  Bruno Haible  <bruno@clisp.org>
12826
12827         posix-modules: Ignore backup files of documentation files.
12828         * posix-modules: grep only through files named *.texi.
12829
12830 2010-07-31  Bruno Haible  <bruno@clisp.org>
12831
12832         symlinkat: Fix documentation.
12833         * doc/posix-functions/readlinkat.texi: Fix module name.
12834
12835 2010-07-31  Bruno Haible  <bruno@clisp.org>
12836
12837         fchownat: Replace also when chown has the trailing slash bug.
12838         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12839         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12840         introduced on 2010-04-10.
12841         Reported by Rainer Tammer.
12842
12843 2010-07-31  Bruno Haible  <bruno@clisp.org>
12844
12845         linkat: Work around AIX 7.1 bug.
12846         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12847         whether linkat handles trailing slash correctly. If not, replace linkat
12848         and define LINKAT_TRAILING_SLASH_BUG.
12849         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12850         check whether (fd1,file1) points to a directory if file1 or file2 ends
12851         in a slash. Code taken from lib/link.c.
12852         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12853         Reported by Rainer Tammer.
12854
12855 2010-07-31  Bruno Haible  <bruno@clisp.org>
12856
12857         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12858         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12859         This disables an xlc optimization that was causing wrong test results.
12860         Reported by Rainer Tammer.
12861
12862 2010-07-31  Bruno Haible  <bruno@clisp.org>
12863
12864         iconv: Work around AIX 6.1..7.1 bug.
12865         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12866         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12867         cross-compiling, guess no on all versions of AIX.
12868         Reported by Rainer Tammer.
12869
12870 2010-07-31  Bruno Haible  <bruno@clisp.org>
12871
12872         readlink: Relax test a bit.
12873         * tests/test-readlink.h (test_readlink): Allow different errno value
12874         when readlink is called with a file name that ends in / and refers to
12875         a file.
12876         Suggested by Eric Blake.
12877         Reported by Rainer Tammer.
12878
12879 2010-07-31  Bruno Haible  <bruno@clisp.org>
12880
12881         copysign: Does not require -lm on glibc systems.
12882         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12883         gl_COMMON_DOUBLE_MATHFUNC.
12884         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12885
12886 2010-07-31  Bruno Haible  <bruno@clisp.org>
12887
12888         duplocale: Work around AIX 7.1 bug.
12889         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12890         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12891         * lib/duplocale.c (rpl_duplocale): Update comment.
12892         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12893         Reported by Rainer Tammer.
12894
12895 2010-07-30  Bruno Haible  <bruno@clisp.org>
12896
12897         dirfd: Avoid link error on AIX 7.1.
12898         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12899         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12900         exist, set REPLACE_DIRFD.
12901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12902         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12903         * doc/posix-functions/dirfd.texi: Update.
12904         Reported by Rainer Tammer.
12905
12906 2010-07-30  Eric Blake  <eblake@redhat.com>
12907
12908         strtod: next round of AIX fixes
12909         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12910         exponent.
12911         * tests/test-strtod.c (main): Enhance tests.
12912         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12913         Reported by Rainer Tammer.
12914
12915         futimens: fix configure check
12916         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12917         Reported by Bruno Haible.
12918
12919 2010-07-30  Bruno Haible  <bruno@clisp.org>
12920
12921         getline: Update regarding AIX.
12922         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12923         Reported by Rainer Tammer.
12924
12925 2010-07-30  Bruno Haible  <bruno@clisp.org>
12926
12927         wcwidth: Drop replacement on AIX 7.
12928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12929         AIX 7.
12930         Reported by Rainer Tammer.
12931
12932 2010-07-30  Bruno Haible  <bruno@clisp.org>
12933
12934         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12935         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12936         a 'char *'.
12937         Reported by Rainer Tammer.
12938
12939 2010-07-30  Bruno Haible  <bruno@clisp.org>
12940
12941         unlink: Update regarding AIX.
12942         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12943         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12944         Reported by Rainer Tammer.
12945
12946 2010-07-30  Bruno Haible  <bruno@clisp.org>
12947
12948         symlink: Update regarding AIX.
12949         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12950         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12951         Reported by Rainer Tammer.
12952
12953 2010-07-30  Bruno Haible  <bruno@clisp.org>
12954
12955         strndup: Update regarding AIX.
12956         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12957         AIX 7.
12958         Reported by Rainer Tammer.
12959
12960 2010-07-30  Bruno Haible  <bruno@clisp.org>
12961
12962         stat: Update regarding AIX.
12963         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12964         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12965         Reported by Rainer Tammer.
12966
12967 2010-07-30  Bruno Haible  <bruno@clisp.org>
12968
12969         truncl: Fix autoconf test.
12970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12971         whether truncl works.
12972         Reported by Rainer Tammer.
12973
12974 2010-07-30  Bruno Haible  <bruno@clisp.org>
12975
12976         round: Update regarding AIX.
12977         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12978         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12979         Reported by Rainer Tammer.
12980
12981 2010-07-30  Bruno Haible  <bruno@clisp.org>
12982
12983         rename: Update regarding AIX.
12984         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12985         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12986         Reported by Rainer Tammer.
12987
12988 2010-07-30  Bruno Haible  <bruno@clisp.org>
12989
12990         printf.m4: Update regarding AIX.
12991         * m4/printf.m4: Update comments regarding AIX.
12992         Reported by Rainer Tammer.
12993
12994 2010-07-30  Bruno Haible  <bruno@clisp.org>
12995
12996         iconv: Update regarding AIX.
12997         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12998         AIX 7.
12999         Reported by Rainer Tammer.
13000
13001 2010-07-30  Bruno Haible  <bruno@clisp.org>
13002
13003         getopt: Update regarding AIX.
13004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
13005         no on AIX.
13006         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
13007         Reported by Rainer Tammer.
13008
13009 2010-07-30  Bruno Haible  <bruno@clisp.org>
13010
13011         ldexpl; Update regarding AIX.
13012         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
13013         on AIX 7.
13014         Reported by Rainer Tammer.
13015
13016 2010-07-30  Bruno Haible  <bruno@clisp.org>
13017
13018         frexpl: Update regarding AIX.
13019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
13020         on AIX 7.
13021         Reported by Rainer Tammer.
13022
13023 2010-07-30  Bruno Haible  <bruno@clisp.org>
13024
13025         open, fopen: Update regarding AIX.
13026         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
13027         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13028         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
13029         * doc/posix-functions/fopen.texi: Likewise.
13030         Reported by Rainer Tammer.
13031
13032 2010-07-30  Bruno Haible  <bruno@clisp.org>
13033
13034         chown: Update doc regarding AIX.
13035         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
13036         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
13037         Reported by Rainer Tammer.
13038
13039 2010-07-30  Eric Blake  <eblake@redhat.com>
13040
13041         strtod: fix bug in replacement function on AIX
13042         * lib/strtod.c (strtod): Special case broken "0x" parse in
13043         underlying strtod.
13044         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
13045         * doc/posix-functions/strtod.texi (strtod): Likewise.
13046         Reported by Rainer Tammer.
13047
13048 2010-07-30  Bruno Haible  <bruno@clisp.org>
13049
13050         mbrlen: Fix cross-compilation guess for AIX.
13051         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
13052         guess. Leftover from 2008-12-22.
13053
13054 2010-07-30  Bruno Haible  <bruno@clisp.org>
13055
13056         mbrtowc: Fix cross-compilation guess for AIX.
13057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
13058         guess. Leftover from 2008-12-21.
13059
13060 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
13061
13062         init.sh: work around trap limitation of some shells
13063         * tests/init.sh (setup_): Move exit trap outside of shell function.
13064
13065 2010-07-29  Eric Blake  <eblake@redhat.com>
13066
13067         strtod: aid debugging
13068         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
13069         understanding why strtod is rejected.
13070
13071 2010-07-28  Bruno Haible  <bruno@clisp.org>
13072
13073         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
13074         * lib/unistr/u8-chr.c: Include <string.h>.
13075         * tests/unistr/test-u8-chr.c: Likewise.
13076         * tests/unistr/test-u16-chr.c: Likewise.
13077         * tests/unistr/test-u32-chr.c: Likewise.
13078         * tests/unistr/test-u8-strchr.c: Likewise.
13079         * tests/unistr/test-u16-strchr.c: Likewise.
13080         * tests/unistr/test-u32-strchr.c: Likewise.
13081         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
13082         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
13083         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
13084         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
13085
13086 2010-07-28  Bruno Haible  <bruno@clisp.org>
13087
13088         Use spaces for indentation, not tabs.
13089         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13090
13091 2010-07-27  Bruno Haible  <bruno@clisp.org>
13092
13093         mbspcasecmp: Fix function specification.
13094         * lib/string.in.h (mbspcasecmp): Fix specification comment.
13095         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
13096         Reported by Eric Blake <eblake@redhat.com>.
13097
13098 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
13099
13100         timespec: use cast and not conditional, as truncation isn't possible
13101         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
13102         instead of a conditional.  Comment about the situation in more detail.
13103         This undoes most of the 2009-10-29 patch.
13104
13105 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
13106
13107         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
13108         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
13109         * lib/unistr/u8-strchr.c: Likewise.
13110         * modules/unistr/u8-chr: Depend on memchr.
13111
13112         unistr/u*-strchr: add tests
13113         * modules/unistr/u8-strchr-tests: New file.
13114         * modules/unistr/u16-strchr-tests: New file.
13115         * modules/unistr/u32-strchr-tests: New file.
13116         * tests/unistr/test-strchr.h: New file.
13117         * tests/unistr/test-u8-strchr.c: New file.
13118         * tests/unistr/test-u16-strchr.c: New file.
13119         * tests/unistr/test-u32-strchr.c: New file.
13120
13121         unistr/u*-chr: test multibyte sequences more
13122         * tests/unistr/test-chr.h: Do complete testing of the characters in the
13123         test vector.
13124         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
13125         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
13126         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
13127
13128         unistr/u*-chr: test multibyte sequences
13129         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
13130
13131         unistr/u*-chr: prepare for multibyte tests
13132         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
13133         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
13134         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
13135         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
13136         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
13137         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
13138
13139 2010-07-18  Bruno Haible  <bruno@clisp.org>
13140
13141         unistr/u8-strchr: Optimize non-ASCII argument case.
13142         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
13143         because the first byte often matches anyway.
13144         Reported by Pádraig Brady <P@draigbrady.com>.
13145
13146 2010-07-15  Karl Berry  <karl@gnu.org>
13147
13148         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
13149
13150 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
13151
13152         getcwd: on Solaris, work better if ancestors are inaccessible
13153         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
13154         buffer and size, try again with a large buffer.  This works better
13155         on Solaris, since its getcwd succeeds even if the path to the root
13156         is inaccessible, and this is helpful in common cases such as .zfs
13157         hidden directories.  Problem reported by J Chapman Flack in
13158         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
13159         Use system getcwd if it's declared, not merely if it's partly
13160         working; use the partly-working test only to avoid needless effort
13161         if the system getcwd fails.
13162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
13163         comment that was already obsolete and is now even more obsolete.
13164         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
13165         now might call strdup.
13166
13167 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
13168
13169         pthread: Add enough so that coreutils/src/sort.c compiles.
13170         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
13171         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
13172         gnulib. Include <sched.h> and <time.h>, as per POSIX.
13173         Include <sys/types.h>, in case it defines pthread_t.
13174         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
13175         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
13176         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
13177         (pthread_rwlockattr_t, pthread_spinlock_t):
13178         New typedefs, if HAVE_PTHREAD_T is not defined.
13179         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
13180         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
13181         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
13182         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
13183         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
13184         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
13185         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
13186         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
13187         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
13188         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
13189         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
13190         New macros.
13191         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
13192         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
13193         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
13194         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
13195         (pthread_spin_unlock): New dummy functions.
13196         (pthread_create): Return EAGAIN; don't set errno.
13197         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
13198         require AC_C_INLINE.
13199         * modules/pthread (Depends-on): Add sched, time.
13200         (pthread.h): Use AM_V_GEN.
13201
13202 2010-07-13  Bruno Haible  <bruno@clisp.org>
13203
13204         striconveh: Don't malloc memory if the result buffer is sufficient.
13205         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
13206         buffer if its size is sufficient.
13207         Reported by Ludovic Courtès <ludo@gnu.org>.
13208
13209 2010-07-13  Bruno Haible  <bruno@clisp.org>
13210
13211         strtod: Add safety check.
13212         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
13213
13214 2010-07-12  Bruno Haible  <bruno@clisp.org>
13215
13216         Unify tests that set gl_cv_func_ldexpl_no_libm.
13217         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
13218         gl_FUNC_LDEXPL.
13219         (gl_FUNC_LDEXPL): Invoke it.
13220         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13221
13222 2010-07-12  Bruno Haible  <bruno@clisp.org>
13223
13224         Unify tests that set gl_cv_func_ldexp_no_libm.
13225         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
13226         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
13227         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
13228         (configure.ac): Simply invoke gl_FUNC_LDEXP.
13229         * modules/strtod (Files): Add m4/ldexp.m4.
13230
13231 2010-07-12  Bruno Haible  <bruno@clisp.org>
13232
13233         Unify tests that set gl_cv_func_frexpl_no_libm.
13234         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
13235         gl_FUNC_FREXPL_NO_LIBM.
13236         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
13237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13238
13239 2010-07-12  Bruno Haible  <bruno@clisp.org>
13240
13241         Unify tests that set gl_cv_func_frexp_no_libm.
13242         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
13243         gl_FUNC_FREXP_NO_LIBM.
13244         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
13245         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13246
13247 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13248
13249         memcoll: clarify sizes versus lengths, document better, and tweak perf
13250         * lib/memcoll.c (strcoll_loop, memcoll0):
13251         Improve quality of descriptive comments.  Name variables
13252         consistently as to whether they are lengths (which do not include
13253         terminating null) versus sizes (which do).
13254         * lib/xmemcoll.c (xmemcoll0): Likewise.
13255         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
13256         returned when s1size == 0; this is easier to compile and saves
13257         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
13258
13259 2010-07-12  Bruno Haible  <bruno@clisp.org>
13260
13261         Tests for module '_Exit'.
13262         * modules/_Exit-tests: New file.
13263         * tests/test-_Exit.sh: New file.
13264         * tests/test-_Exit.c: New file.
13265
13266         New module '_Exit'.
13267         * lib/stdlib.in.h (__attribute__): New macro.
13268         (_Exit): New declaration.
13269         * lib/_Exit.c: New file.
13270         * m4/_Exit.m4: New file.
13271         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
13272         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
13273         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
13274         * modules/_Exit: New file.
13275         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13276         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
13277
13278 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
13279
13280         strtod: make it more-accurate typically, and don't require libm
13281         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
13282         Include limits.h.  Don't include string.h.
13283         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
13284         (locale_isspace): New function, so that no casts are needed to
13285         check whether *s is a space.
13286         (ldexp): Provide an unused dummy if not available.
13287         (scale_radix_exp, parse_number, underlying_strtod): New functions.
13288         (strtod): Use them.  This implementation prefers to use the
13289         underlying strtod if available, falling back on our own code
13290         only to fix known bugs.  This is more likely to produce an
13291         accurate result.  Also, it avoids the use of libm functions.
13292         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
13293         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
13294         was absent, but it caused a test failure with coreutils.
13295         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
13296         with libm.
13297         * modules/strtod (Makefile.am, Link): libm is no longer needed.
13298         * modules/strtod-tests (Makefile.am): Likewise.
13299
13300 2010-07-11  Pádraig Brady  <P@draigBrady.com>
13301             Bruno Haible  <bruno@clisp.org>
13302
13303         unistr/u8-strchr: Optimize ASCII argument case.
13304         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
13305
13306 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13307
13308         (x)memcoll: minor tweaks
13309         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
13310         is after the type that it qualifies.
13311         (memcoll0): Likewise.
13312         * lib/memcoll.h (memcoll0): Likewise.
13313         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
13314         * lib/xmemcoll.h (xmemcoll0): Likewise.
13315         * lib/memcoll.c (memcoll0): Correct the comment.  This function
13316         differs from memcoll in that the NUL byte is part of the argument.
13317         Omit the abort-checks, as performance is a real issue here.  Plus,
13318         the checks were wrong anyway (an off-by-one error).  Omit local
13319         variable 'diff', as it's a bit clearer that way.
13320         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
13321         no longer needed.
13322
13323 2010-07-08  Chen Guo <chenguo4@yahoo.com>
13324
13325         (x)memcoll: speedup when input is known to be NUL delimited
13326         * lib/memcoll.c: Include stdlib.
13327         (memcoll0): New function.
13328         (strcoll_loop): New function, refactored for use in both memcoll
13329         and memcoll0.
13330         * lib/memcoll.h (memcoll0): Add prototype.
13331         * lib/xmemcoll.c (xmemcoll0): New function.
13332         (collate_error): New function, refactored for use in both xmemcoll
13333         and xmemcoll0.
13334         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13335         * m4/memcoll.m4: add inline invocation.
13336
13337 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13338
13339         * build-aux/bootstrap: Remove any local translations
13340         from the translation project synchronization directory,
13341         so that local only translations are not distributed.
13342
13343 2010-07-04  Bruno Haible  <bruno@clisp.org>
13344
13345         fsusage: Clarify which code applies to which platforms.
13346         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13347         platform.
13348         * lib/fsusage.c (get_fs_usage): Likewise.
13349
13350 2010-07-04  Bruno Haible  <bruno@clisp.org>
13351
13352         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13353         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13354         Reported by Martin Lambers <marlam@marlam.de>.
13355
13356 2010-07-04  Jim Meyering  <meyering@redhat.com>
13357
13358         hash: once again explicitly disallow insertion of NULL
13359         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13360         inserting a NULL pointer cannot work with these functions.
13361         Add a comment with details.
13362         This reverts part of the 2010-07-01 commit, 5bef1a35
13363         "hash: extend module to deal with non-pointer keys".
13364
13365 2010-07-01  Bruno Haible  <bruno@clisp.org>
13366
13367         stdbool: Update doc.
13368         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13369         Info from Christian Weisgerber <naddy@mips.inka.de>.
13370
13371 2010-07-01  Jim Meyering  <meyering@redhat.com>
13372
13373         hash: extend module to deal with non-pointer keys
13374         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13375         but that allows insertion of non-pointer entries.
13376         Do not disallow an ENTRY value of NULL.
13377         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13378         * lib/hash.h (hash_insert0): Declare.
13379
13380 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13381
13382         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13383         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13384         not present (i.e. with autoconf 2.59 and when using gettextize, not
13385         gnulib), require AC_GNU_SOURCE instead.
13386
13387 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13388
13389         idpriv-drop: Fix tests.
13390         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13391         not to the test-idpriv-droptemp program.
13392
13393 2010-06-29  Bruno Haible  <bruno@clisp.org>
13394
13395         string: Fix syntax error with g++ 2.96.
13396         * lib/string.in.h (__pure__): Remove definition.
13397         (_GL_ATTRIBUTE_PURE): New macro.
13398         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13399         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13400         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13401
13402 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13403
13404         unitypes: Fix bug introduced on 2010-05-18.
13405         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13406
13407 2010-06-22  Eric Blake  <eblake@redhat.com>
13408
13409         memmem: slight optimization
13410         * lib/str-two-way.h (critical_factorization): Update comments.
13411         Reduce work during factorization phase.
13412         Reported by Carlos Bueno <carlos@bueno.org>.
13413
13414 2010-06-21  Bruno Haible  <bruno@clisp.org>
13415
13416         Fix HAVE_CALLOC_POSIX misnomer.
13417         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13418         !HAVE_CALLOC_POSIX.
13419         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13420         HAVE_CALLOC_POSIX.
13421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13422         instead of HAVE_CALLOC_POSIX.
13423         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13424         HAVE_CALLOC_POSIX.
13425
13426         Use modern idiom for calloc() replacement.
13427         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13428         AC_FUNC_CALLOC.
13429         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13430         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13431         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13432         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13433         (gl_REPLACE_CALLOC): New macro.
13434
13435 2010-06-21  Bruno Haible  <bruno@clisp.org>
13436
13437         Fix HAVE_REALLOC_POSIX misnomer.
13438         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13439         !HAVE_REALLOC_POSIX.
13440         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13441         HAVE_REALLOC_POSIX.
13442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13443         instead of HAVE_REALLOC_POSIX.
13444         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13445         HAVE_REALLOC_POSIX.
13446
13447         Use modern idiom for realloc() replacement.
13448         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13449         AC_FUNC_REALLOC.
13450         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13451         Autoconf's AC_FUNC_REALLOC.
13452         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13453         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13454         (gl_REPLACE_REALLOC): New macro.
13455         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13456
13457 2010-06-21  Bruno Haible  <bruno@clisp.org>
13458
13459         Fix HAVE_MALLOC_POSIX misnomer.
13460         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13461         !HAVE_MALLOC_POSIX.
13462         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13463         HAVE_MALLOC_POSIX.
13464         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13465         instead of HAVE_MALLOC_POSIX.
13466         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13467         HAVE_MALLOC_POSIX.
13468
13469         Use modern idiom for malloc() replacement.
13470         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13471         AC_FUNC_MALLOC.
13472         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13473         Autoconf's AC_FUNC_MALLOC.
13474         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13475         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13476         (gl_REPLACE_MALLOC): New macro.
13477         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13478
13479 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13480
13481         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13482         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13483         This macro takes 3 arguments, not 4.
13484
13485 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13486
13487         ipv6: fix detection under mingw
13488         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13489         in6_addr.
13490
13491 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13492
13493         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13494         that strtod() works when cross-compiling to a glibc version known
13495         to work.
13496
13497 2010-06-15  Bruno Haible  <bruno@clisp.org>
13498
13499         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13500
13501 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13502
13503         select: Correct timeout.
13504         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13505
13506 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13507
13508         git-version-gen: init shell var to avoid env var influence
13509         * build-aux/git-version-gen (v): Init shell var to empty.
13510
13511 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         priv-set: Don't assume that priv.h exists merely because getppriv does.
13514         See Jan Andersen's bug report about AIX 5L in
13515         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13516         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13517         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13518         * lib/priv-set.h: Likewise.
13519         * tests/test-priv-set.c: Likewise.
13520
13521 2010-06-13  Bruno Haible  <bruno@clisp.org>
13522
13523         relocatable: Make it easier to test whether to install wrappers.
13524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13525         RELOCATABLE_VIA_WRAPPER.
13526
13527 2010-06-13  Bruno Haible  <bruno@clisp.org>
13528
13529         gnulib-tool: Display specified modules and dependencies differently.
13530         * gnulib-tool (func_show_module_list): New function.
13531         (func_import, func_create_testdir): Invoke it.
13532         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13533
13534 2010-06-13  Bruno Haible  <bruno@clisp.org>
13535
13536         gnulib-tool: Align code of func_import and func_create_testdir.
13537         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13538         specified_modules.
13539
13540 2010-06-12  Jim Meyering  <meyering@redhat.com>
13541
13542         test-inttostr: avoid spurious failure on Solaris 9
13543         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13544         to accept "%ju".  Reported by Bruno Haible.
13545
13546 2010-06-11  Jim Meyering  <meyering@redhat.com>
13547
13548         test-sys_socket: mark variables as used more readably
13549         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13550         as "used" explicitly via (void) statement casts.  This is more
13551         readable than using them in an artificial return expression.
13552         Suggestion from Bruno Haible.
13553
13554 2010-06-11  Bruno Haible  <bruno@clisp.org>
13555
13556         Avoid some more warnings from "gcc -Wwrite-strings".
13557         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13558         to 'const char *'.
13559         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13560         * tests/test-c-strcasestr.c (main): Likewise.
13561         * tests/test-mbscasestr1.c (main): Likewise.
13562         * tests/test-mbscasestr2.c (main): Likewise.
13563         * tests/test-memmem.c (main): Likewise.
13564         * tests/test-strstr.c (main): Likewise.
13565         * tests/test-strcasestr.c (main): Likewise.
13566
13567 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13568
13569         init.sh: change framework_failure_ to fail with status 99, not 1
13570         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13571         automake's parallel-tests rule that this is an unexpected failure,
13572         even if the test is listed in XFAIL_TESTS.
13573
13574 2010-06-11  Jim Meyering  <meyering@redhat.com>
13575
13576         test-inttostr: avoid warnings about 4-6KB literal strings
13577         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13578         Include "macros.h", for its definition of ASSERT.
13579         (CK): s/assert/ASSERT/
13580         * modules/inttostr-tests (Files): Add macros.h.
13581
13582         init.sh: don't use $ME_ or skip_ before they are defined
13583         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13584         their first uses.  Also hoist their companions: warn_, fail_,
13585         framework_failure_, $stderr_fileno.  Prompted by a patch from
13586         Stefano Lattarini.
13587
13588         test-sys_socket: avoid set-but-not-used warnings from gcc
13589         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13590         avoid warning about set-but-not-used variables.
13591
13592         test-xvasprintf: avoid 'const' discard warnings
13593         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13594         "const" when assigning from literal strings.
13595         (test_xasprintf): Add "void" in function argument list to placate
13596         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13597
13598         tests: avoid compilation warnings in argmatch and exclude tests...
13599         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13600         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13601         Since it always exits, declare with the "noreturn" attribute.
13602         * tests/test-argmatch.c: Likewise.
13603
13604         tests: avoid 'const' discard warnings in mbsstr tests
13605         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13606         * tests/test-mbsstr2.c (main): Likewise.
13607
13608         test-verify: avoid warning from gcc's -Wmissing-declarations
13609         * tests/test-verify.c (function): Declare to be static.
13610
13611         test-inttostr.c: include <string.h> for use of strcmp
13612         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13613
13614         test-linkat: avoid failed assertion on "other" architectures
13615         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13616         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13617         sparc: https://bugs.launchpad.net/bugs/591968
13618
13619 2010-06-11  Jim Meyering  <meyering@redhat.com>
13620
13621         printf.m4: avoid autoconf's "Expanded Before Required" warning
13622         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13623         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13624         autoconf warning.
13625
13626 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13627
13628         Replacement header templates are now named with ".in", not "_".
13629         * doc/gnulib-intro.texi: Correct.
13630
13631 2010-06-10  Jim Meyering  <meyering@redhat.com>
13632
13633         inttostr-tests: depend on snprintf, not snprintf-posix
13634         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13635         snprintf-posix, to avoid this aclocal failure:
13636           missing file gnulib-tests/vasnprintf.c
13637           configure.ac:45: error: expected source file, required through \
13638           AC_LIBSOURCES, not found
13639
13640 2010-06-10  Jim Meyering  <meyering@redhat.com>
13641
13642         inttostr: add a new function, inttostr, and tests
13643         The namesake function was not available.  The existence of the
13644         template file, inttostr.c makes its addition nontrivial.
13645         * lib/anytostr.c: Rename from inttostr.c.
13646         (anytostr): Rename from inttostr.
13647         * lib/inttostr.c: New file.
13648         * modules/inttostr (Files): Add anytostr.c.
13649         (Makefile.am): Set lib_SOURCES instead of ...
13650         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13651         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13652         * lib/offtostr.c: Likewise.
13653         * lib/uinttostr.c: Likewise.
13654         * lib/umaxtostr.c: Likewise.
13655         * modules/inttostr-tests: New file.
13656         * tests/test-inttostr.c: New file.  Test these functions.
13657
13658 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13659             Bruno Haible  <bruno@clisp.org>
13660
13661         Add "Extending Gnulib" chapter to manual.
13662         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13663         chapter.
13664         (Extending Gnulib): New chapter.
13665         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13666         chapter.
13667
13668 2010-06-09  Bruno Haible  <bruno@clisp.org>
13669
13670         Avoid relocwrapper link errors due to gnulib replacement functions.
13671         * lib/areadlink.c: Use the system's malloc, realloc functions.
13672         (areadlink): Set errno to ENOMEM explicitly.
13673         * modules/areadlink (Depends-on): Remove malloc-posix.
13674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13675
13676 2010-06-09  Bruno Haible  <bruno@clisp.org>
13677
13678         Avoid relocwrapper link errors due to gnulib replacement functions.
13679         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13680         * lib/malloca.c: Likewise.
13681         * lib/relocatable.c: Likewise.
13682         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13683         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13684         * lib/setenv.c: Use the system's malloc, realloc functions.
13685         * lib/strerror.c: Use the system's sprintf function.
13686         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13687
13688 2010-06-04  Bruno Haible  <bruno@clisp.org>
13689
13690         Prefer documented low-level autoconf macro names.
13691         * m4/lib-link.m4: Use m4_translit instead of translit.
13692         * m4/environ.m4: Likewise.
13693         * m4/mathfunc.m4: Likewise.
13694         * m4/onceonly.m4: Likewise.
13695         * m4/stdint.m4: Likewise.
13696         Suggested by Eric Blake.
13697
13698 2010-06-04  Martin Lambers  <marlam@marlam.de>
13699             Bruno Haible  <bruno@clisp.org>
13700
13701         havelib: Allow library names with '+' characters.
13702         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13703         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13704
13705 2010-06-09  Bruno Haible  <bruno@clisp.org>
13706
13707         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13708         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13709         realloc failed.
13710
13711 2010-06-08  Peter Simons  <simons@cryp.to>
13712
13713         maint.mk: make the news-check rule more configurable
13714         * top/maint.mk (news-check-lines-spec): New variable.
13715         (news-check): Use "sed -n 1,10p" in place of "head".
13716
13717 2010-06-07  Jim Meyering  <meyering@redhat.com>
13718
13719         do-release-commit-and-tag: fix typo in --help
13720         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13721
13722         regex: avoid new dead-code warning with gcc-4.6.0
13723         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13724         if-block containing a while-loop.  It's been unused for at least
13725         5 years.
13726
13727 2010-06-05  Bruno Haible  <bruno@clisp.org>
13728
13729         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13730         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13731
13732 2010-06-04  Bruno Haible  <bruno@clisp.org>
13733
13734         Update to GNU gettext 0.18.1.
13735         * modules/gettext (configure.ac): Require gettext infrastructure from
13736         version 0.18.1.
13737
13738 2010-06-03  Bruno Haible  <bruno@clisp.org>
13739
13740         Don't use AC_LIBOBJ with file names in subdirectories.
13741         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13742         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13743         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13744         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13745         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13746         gl_LIBUNISTRING_LIBSOURCE.
13747         (Makefile.am): Augment lib_SOURCES here, conditionally.
13748         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13749
13750 2010-06-03  Bruno Haible  <bruno@clisp.org>
13751
13752         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13753         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13754         expansion does not end with a newline.
13755         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13756         unnecessary newline.
13757
13758 2010-06-03  Bruno Haible  <bruno@clisp.org>
13759
13760         Reduce dependencies.
13761         * tests/test-quotearg.h: New file, extracted from
13762         tests/test-quotearg.c.
13763         * tests/test-quotearg-simple.c: New file, extracted from
13764         tests/test-quotearg.c.
13765         * tests/test-quotearg.c: Don't include <ctype.h>.
13766         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13767         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13768         use_quote_double_quotes, use_quotearg_colon): Moved to
13769         tests/test-quotearg.h.
13770         (results_g, flag_results, custom_quotes, custom_results): Moved
13771         to tests/test-quotearg-simple.c.
13772         (main): Moved the part that does not depend on gettext to
13773         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13774         performed.
13775         * modules/quotearg-simple: New file.
13776         * modules/quotearg-simple-tests: New file.
13777         * modules/quotearg (Depends-on): Add quotearg-simple.
13778         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13779         (Files): Add tests/test-quotearg.h.
13780         Reported by Paolo Bonzini.
13781
13782 2010-06-03  Bruno Haible  <bruno@clisp.org>
13783
13784         Reduce dependencies.
13785         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13786
13787 2010-06-03  Bruno Haible  <bruno@clisp.org>
13788
13789         time: Undefine more broken macros.
13790         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13791         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13792         Reported by Eric Blake.
13793
13794 2010-06-03  Bruno Haible  <bruno@clisp.org>
13795
13796         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13797         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13798         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13799         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13800         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13801         Reported by Ludovic Courtès <ludo@gnu.org>.
13802
13803 2010-06-02  Eric Blake  <eblake@redhat.com>
13804
13805         time: work with mingw + pthreads-win32 library
13806         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13807         if timespec is defined only in pthread.h.
13808         * modules/time (Makefile.am): Substitute it.
13809         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13810         <pthread.h>, when needed.
13811         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13812         from the library.
13813
13814 2010-05-31  Bruno Haible  <bruno@clisp.org>
13815
13816         Avoid expanding two macros in the wrong order.
13817         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13818         gl_LIBUNISTRING if it is defined.
13819         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13820         autoconf >= 2.64.
13821         Reported by Ludovic Courtès <ludo@gnu.org>.
13822
13823 2010-05-27  Jim Meyering  <meyering@redhat.com>
13824
13825         maint.mk: also prohibit "#undef" of always-defined symbols
13826         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13827         Allow more than one space before the symbol name.
13828         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13829         the regexp uses alternation.
13830
13831 2010-05-26  Eric Blake  <eblake@redhat.com>
13832
13833         maint.mk: avoid echo -e
13834         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13835         Convert all uses of echo -* to printf.
13836         Reported by Matthias Bolte.
13837
13838 2010-05-25  Bruno Haible  <bruno@clisp.org>
13839
13840         Update to GNU gettext 0.18, part 2.
13841         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13842         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13843
13844 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13845
13846         Add missing include in test-pwrite.c.
13847         * tests/test-pwrite.c: Include string.h, for strcmp.
13848
13849 2010-05-24  Bruno Haible  <bruno@clisp.org>
13850
13851         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13852
13853 2010-05-24  Bruno Haible  <bruno@clisp.org>
13854
13855         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13856         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13857         iconveh_error argument.
13858         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13859         U_STRCONV_TO_LOCALE.
13860         * lib/unistr/u16-strcoll.c: Likewise.
13861         * lib/unistr/u32-strcoll.c: Likewise.
13862         * modules/unistr/u8-strcoll (Depends-on): Add
13863         uniconv/u8-strconv-to-enc, localcharset. Remove
13864         uniconv/u8-strconv-to-locale.
13865         (configure.ac): Bump version number.
13866         * modules/unistr/u16-strcoll (Depends-on): Add
13867         uniconv/u16-strconv-to-enc, localcharset. Remove
13868         uniconv/u16-strconv-to-locale.
13869         (configure.ac): Bump version number.
13870         * modules/unistr/u32-strcoll (Depends-on): Add
13871         uniconv/u32-strconv-to-enc, localcharset. Remove
13872         uniconv/u32-strconv-to-locale.
13873         (configure.ac): Bump version number.
13874
13875 2010-05-24  Bruno Haible  <bruno@clisp.org>
13876
13877         Avoid a test failure on NetBSD 5.0.
13878         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13879         an iconv() bug.
13880
13881 2010-05-24  Bruno Haible  <bruno@clisp.org>
13882
13883         Adjust #include directive style.
13884         * modules/regex (Includes): Recommend to write <regex.h>.
13885
13886 2010-05-24  Bruno Haible  <bruno@clisp.org>
13887
13888         regex: Don't require alloca.
13889         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13890         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13891         only inside if (0).
13892
13893 2010-05-23  Jim Meyering  <meyering@redhat.com>
13894
13895         test-renameat.c: include <sys/stat.h>
13896         * tests/test-renameat.c: Include <sys/stat.h>; required for
13897         definition of S_IS* macros.
13898
13899 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13900
13901         Update maintainer documentation for 'relocatable-prog' module.
13902         * doc/relocatable-maint.texi: Update.
13903         Comments by Bruno Haible.
13904
13905 2010-05-23  Bruno Haible  <bruno@clisp.org>
13906
13907         git-merge-changelog: Enable --split-merged-entry by default.
13908         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13909         (usage): Don't mention this option any more.
13910         Reported by Ralf Wildenhues.
13911
13912 2010-05-23  Jim Meyering  <meyering@redhat.com>
13913
13914         test-pwrite: do not leave behind a test file named "out"
13915         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13916         The trivial-looking use of init.sh is really necessary.
13917         It ensures that the temporary file, "out", is created in
13918         a temporary directory, and removed upon termination.
13919         * tests/test-pwrite.sh: Re-add file.
13920         * modules/pwrite-tests: Reference it.
13921
13922 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13923
13924         Fix output redirection buglet in init.sh.
13925         * tests/init.sh: Fix redirection of stderr.
13926
13927 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13928
13929         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13930
13931 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13932
13933         * modules/valgrind-tests: New file.
13934         * m4/valgrind-tests.m4: New file.
13935         * doc/valgrind-tests.texi: New file.
13936         * doc/gnulib.texi (Running self-tests under valgrind): New
13937         section.
13938
13939 2010-05-19  Bruno Haible  <bruno@clisp.org>
13940
13941         Clean up dead code in recent commit.
13942         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13943         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13944         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13945         Suggested by Paolo Bonzini.
13946
13947 2010-05-19  Bruno Haible  <bruno@clisp.org>
13948
13949         Avoid valgrind error reports from libunistring.
13950         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13951         * modules/libunistring (Files): Add it.
13952         * modules/libunistring-optional (Files): Likewise.
13953
13954 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13955             Bruno Haible  <bruno@clisp.org>
13956
13957         New module 'libunistring-optional'.
13958         * modules/libunistring-optional: New file.
13959         * m4/libunistring-base.m4: New file.
13960         * m4/libunistring-optional.m4: New file.
13961         * lib/unicase.in.h: Renamed from lib/unicase.h.
13962         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13963         * lib/unictype.in.h: Renamed from lib/unictype.h.
13964         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13965         * lib/uniname.in.h: Renamed from lib/uniname.h.
13966         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13967         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13968         * lib/unistr.in.h: Renamed from lib/unistr.h.
13969         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13970         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13971         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13972         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13973         gl_LIBUNISTRING. If the library was found, determine the installed
13974         version and set LIBUNISTRING_VERSION.
13975         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13976         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13977         handle a configuration option --with-included-libunistring.
13978         * modules/libunistring (Files): Add m4/absolute-header.m4.
13979         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13980         Add m4/libunistring-base.m4.
13981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13982         (Makefile.am): Build unicase.h from unicase.in.h.
13983         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13984         Add m4/libunistring-base.m4.
13985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13986         (Makefile.am): Build uniconv.h from uniconv.in.h.
13987         * modules/unictype/base (Files): Use unictype.in.h instead of
13988         unictype.h. Add m4/libunistring-base.m4.
13989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13990         (Makefile.am): Build unictype.h from unictype.in.h.
13991         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13992         Add m4/libunistring-base.m4.
13993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13994         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13995         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13996         Add m4/libunistring-base.m4.
13997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13998         (Makefile.am): Build uniname.h from uniname.in.h.
13999         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
14000         Add m4/libunistring-base.m4.
14001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14002         (Makefile.am): Build uninorm.h from uninorm.in.h.
14003         * modules/unistdio/base (Files): Use unistdio.in.h instead of
14004         unistdio.h. Add m4/libunistring-base.m4.
14005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14006         (Makefile.am): Build unistdio.h from unistdio.in.h.
14007         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
14008         Add m4/libunistring-base.m4.
14009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14010         (Makefile.am): Build unistr.h from unistr.in.h.
14011         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
14012         Add m4/libunistring-base.m4.
14013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14014         (Makefile.am): Build unitypes.h from unitypes.in.h.
14015         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
14016         Add m4/libunistring-base.m4.
14017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14018         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
14019         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
14020         uniwidth.h. Add m4/libunistring-base.m4.
14021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14022         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
14023         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
14024         instead of augmenting lib_SOURCES.
14025         * modules/unicase/empty-suffix-context: Likewise.
14026         * modules/unicase/locale-language: Likewise.
14027         * modules/unicase/tolower: Likewise.
14028         * modules/unicase/totitle: Likewise.
14029         * modules/unicase/toupper: Likewise.
14030         * modules/unicase/u8-casecmp: Likewise.
14031         * modules/unicase/u8-casecoll: Likewise.
14032         * modules/unicase/u8-casefold: Likewise.
14033         * modules/unicase/u8-casexfrm: Likewise.
14034         * modules/unicase/u8-ct-casefold: Likewise.
14035         * modules/unicase/u8-ct-tolower: Likewise.
14036         * modules/unicase/u8-ct-totitle: Likewise.
14037         * modules/unicase/u8-ct-toupper: Likewise.
14038         * modules/unicase/u8-is-cased: Likewise.
14039         * modules/unicase/u8-is-casefolded: Likewise.
14040         * modules/unicase/u8-is-lowercase: Likewise.
14041         * modules/unicase/u8-is-titlecase: Likewise.
14042         * modules/unicase/u8-is-uppercase: Likewise.
14043         * modules/unicase/u8-prefix-context: Likewise.
14044         * modules/unicase/u8-suffix-context: Likewise.
14045         * modules/unicase/u8-tolower: Likewise.
14046         * modules/unicase/u8-totitle: Likewise.
14047         * modules/unicase/u8-toupper: Likewise.
14048         * modules/unicase/u16-casecmp: Likewise.
14049         * modules/unicase/u16-casecoll: Likewise.
14050         * modules/unicase/u16-casefold: Likewise.
14051         * modules/unicase/u16-casexfrm: Likewise.
14052         * modules/unicase/u16-ct-casefold: Likewise.
14053         * modules/unicase/u16-ct-tolower: Likewise.
14054         * modules/unicase/u16-ct-totitle: Likewise.
14055         * modules/unicase/u16-ct-toupper: Likewise.
14056         * modules/unicase/u16-is-cased: Likewise.
14057         * modules/unicase/u16-is-casefolded: Likewise.
14058         * modules/unicase/u16-is-lowercase: Likewise.
14059         * modules/unicase/u16-is-titlecase: Likewise.
14060         * modules/unicase/u16-is-uppercase: Likewise.
14061         * modules/unicase/u16-prefix-context: Likewise.
14062         * modules/unicase/u16-suffix-context: Likewise.
14063         * modules/unicase/u16-tolower: Likewise.
14064         * modules/unicase/u16-totitle: Likewise.
14065         * modules/unicase/u16-toupper: Likewise.
14066         * modules/unicase/u32-casecmp: Likewise.
14067         * modules/unicase/u32-casecoll: Likewise.
14068         * modules/unicase/u32-casefold: Likewise.
14069         * modules/unicase/u32-casexfrm: Likewise.
14070         * modules/unicase/u32-ct-casefold: Likewise.
14071         * modules/unicase/u32-ct-tolower: Likewise.
14072         * modules/unicase/u32-ct-totitle: Likewise.
14073         * modules/unicase/u32-ct-toupper: Likewise.
14074         * modules/unicase/u32-is-cased: Likewise.
14075         * modules/unicase/u32-is-casefolded: Likewise.
14076         * modules/unicase/u32-is-lowercase: Likewise.
14077         * modules/unicase/u32-is-titlecase: Likewise.
14078         * modules/unicase/u32-is-uppercase: Likewise.
14079         * modules/unicase/u32-prefix-context: Likewise.
14080         * modules/unicase/u32-suffix-context: Likewise.
14081         * modules/unicase/u32-tolower: Likewise.
14082         * modules/unicase/u32-totitle: Likewise.
14083         * modules/unicase/u32-toupper: Likewise.
14084         * modules/unicase/ulc-casecmp: Likewise.
14085         * modules/unicase/ulc-casecoll: Likewise.
14086         * modules/unicase/ulc-casexfrm: Likewise.
14087         * modules/uniconv/u8-conv-from-enc: Likewise.
14088         * modules/uniconv/u8-conv-to-enc: Likewise.
14089         * modules/uniconv/u8-strconv-from-enc: Likewise.
14090         * modules/uniconv/u8-strconv-from-locale: Likewise.
14091         * modules/uniconv/u8-strconv-to-enc: Likewise.
14092         * modules/uniconv/u8-strconv-to-locale: Likewise.
14093         * modules/uniconv/u16-conv-from-enc: Likewise.
14094         * modules/uniconv/u16-conv-to-enc: Likewise.
14095         * modules/uniconv/u16-strconv-from-enc: Likewise.
14096         * modules/uniconv/u16-strconv-from-locale: Likewise.
14097         * modules/uniconv/u16-strconv-to-enc: Likewise.
14098         * modules/uniconv/u16-strconv-to-locale: Likewise.
14099         * modules/uniconv/u32-conv-from-enc: Likewise.
14100         * modules/uniconv/u32-conv-to-enc: Likewise.
14101         * modules/uniconv/u32-strconv-from-enc: Likewise.
14102         * modules/uniconv/u32-strconv-from-locale: Likewise.
14103         * modules/uniconv/u32-strconv-to-enc: Likewise.
14104         * modules/uniconv/u32-strconv-to-locale: Likewise.
14105         * modules/unictype/bidicategory-byname: Likewise.
14106         * modules/unictype/bidicategory-name: Likewise.
14107         * modules/unictype/bidicategory-of: Likewise.
14108         * modules/unictype/bidicategory-test: Likewise.
14109         * modules/unictype/block-list: Likewise.
14110         * modules/unictype/block-test: Likewise.
14111         * modules/unictype/category-C: Likewise.
14112         * modules/unictype/category-Cc: Likewise.
14113         * modules/unictype/category-Cf: Likewise.
14114         * modules/unictype/category-Cn: Likewise.
14115         * modules/unictype/category-Co: Likewise.
14116         * modules/unictype/category-Cs: Likewise.
14117         * modules/unictype/category-L: Likewise.
14118         * modules/unictype/category-Ll: Likewise.
14119         * modules/unictype/category-Lm: Likewise.
14120         * modules/unictype/category-Lo: Likewise.
14121         * modules/unictype/category-Lt: Likewise.
14122         * modules/unictype/category-Lu: Likewise.
14123         * modules/unictype/category-M: Likewise.
14124         * modules/unictype/category-Mc: Likewise.
14125         * modules/unictype/category-Me: Likewise.
14126         * modules/unictype/category-Mn: Likewise.
14127         * modules/unictype/category-N: Likewise.
14128         * modules/unictype/category-Nd: Likewise.
14129         * modules/unictype/category-Nl: Likewise.
14130         * modules/unictype/category-No: Likewise.
14131         * modules/unictype/category-P: Likewise.
14132         * modules/unictype/category-Pc: Likewise.
14133         * modules/unictype/category-Pd: Likewise.
14134         * modules/unictype/category-Pe: Likewise.
14135         * modules/unictype/category-Pf: Likewise.
14136         * modules/unictype/category-Pi: Likewise.
14137         * modules/unictype/category-Po: Likewise.
14138         * modules/unictype/category-Ps: Likewise.
14139         * modules/unictype/category-S: Likewise.
14140         * modules/unictype/category-Sc: Likewise.
14141         * modules/unictype/category-Sk: Likewise.
14142         * modules/unictype/category-Sm: Likewise.
14143         * modules/unictype/category-So: Likewise.
14144         * modules/unictype/category-Z: Likewise.
14145         * modules/unictype/category-Zl: Likewise.
14146         * modules/unictype/category-Zp: Likewise.
14147         * modules/unictype/category-Zs: Likewise.
14148         * modules/unictype/category-and: Likewise.
14149         * modules/unictype/category-and-not: Likewise.
14150         * modules/unictype/category-byname: Likewise.
14151         * modules/unictype/category-name: Likewise.
14152         * modules/unictype/category-none: Likewise.
14153         * modules/unictype/category-of: Likewise.
14154         * modules/unictype/category-or: Likewise.
14155         * modules/unictype/category-test: Likewise.
14156         * modules/unictype/combining-class: Likewise.
14157         * modules/unictype/ctype-alnum: Likewise.
14158         * modules/unictype/ctype-alpha: Likewise.
14159         * modules/unictype/ctype-blank: Likewise.
14160         * modules/unictype/ctype-cntrl: Likewise.
14161         * modules/unictype/ctype-digit: Likewise.
14162         * modules/unictype/ctype-graph: Likewise.
14163         * modules/unictype/ctype-lower: Likewise.
14164         * modules/unictype/ctype-print: Likewise.
14165         * modules/unictype/ctype-punct: Likewise.
14166         * modules/unictype/ctype-space: Likewise.
14167         * modules/unictype/ctype-upper: Likewise.
14168         * modules/unictype/ctype-xdigit: Likewise.
14169         * modules/unictype/decimal-digit: Likewise.
14170         * modules/unictype/digit: Likewise.
14171         * modules/unictype/mirror: Likewise.
14172         * modules/unictype/numeric: Likewise.
14173         * modules/unictype/property-alphabetic: Likewise.
14174         * modules/unictype/property-ascii-hex-digit: Likewise.
14175         * modules/unictype/property-bidi-arabic-digit: Likewise.
14176         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
14177         * modules/unictype/property-bidi-block-separator: Likewise.
14178         * modules/unictype/property-bidi-boundary-neutral: Likewise.
14179         * modules/unictype/property-bidi-common-separator: Likewise.
14180         * modules/unictype/property-bidi-control: Likewise.
14181         * modules/unictype/property-bidi-embedding-or-override: Likewise.
14182         * modules/unictype/property-bidi-eur-num-separator: Likewise.
14183         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
14184         * modules/unictype/property-bidi-european-digit: Likewise.
14185         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
14186         * modules/unictype/property-bidi-left-to-right: Likewise.
14187         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
14188         * modules/unictype/property-bidi-other-neutral: Likewise.
14189         * modules/unictype/property-bidi-pdf: Likewise.
14190         * modules/unictype/property-bidi-segment-separator: Likewise.
14191         * modules/unictype/property-bidi-whitespace: Likewise.
14192         * modules/unictype/property-byname: Likewise.
14193         * modules/unictype/property-combining: Likewise.
14194         * modules/unictype/property-composite: Likewise.
14195         * modules/unictype/property-currency-symbol: Likewise.
14196         * modules/unictype/property-dash: Likewise.
14197         * modules/unictype/property-decimal-digit: Likewise.
14198         * modules/unictype/property-default-ignorable-code-point: Likewise.
14199         * modules/unictype/property-deprecated: Likewise.
14200         * modules/unictype/property-diacritic: Likewise.
14201         * modules/unictype/property-extender: Likewise.
14202         * modules/unictype/property-format-control: Likewise.
14203         * modules/unictype/property-grapheme-base: Likewise.
14204         * modules/unictype/property-grapheme-extend: Likewise.
14205         * modules/unictype/property-grapheme-link: Likewise.
14206         * modules/unictype/property-hex-digit: Likewise.
14207         * modules/unictype/property-hyphen: Likewise.
14208         * modules/unictype/property-id-continue: Likewise.
14209         * modules/unictype/property-id-start: Likewise.
14210         * modules/unictype/property-ideographic: Likewise.
14211         * modules/unictype/property-ids-binary-operator: Likewise.
14212         * modules/unictype/property-ids-trinary-operator: Likewise.
14213         * modules/unictype/property-ignorable-control: Likewise.
14214         * modules/unictype/property-iso-control: Likewise.
14215         * modules/unictype/property-join-control: Likewise.
14216         * modules/unictype/property-left-of-pair: Likewise.
14217         * modules/unictype/property-line-separator: Likewise.
14218         * modules/unictype/property-logical-order-exception: Likewise.
14219         * modules/unictype/property-lowercase: Likewise.
14220         * modules/unictype/property-math: Likewise.
14221         * modules/unictype/property-non-break: Likewise.
14222         * modules/unictype/property-not-a-character: Likewise.
14223         * modules/unictype/property-numeric: Likewise.
14224         * modules/unictype/property-other-alphabetic: Likewise.
14225         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
14226         * modules/unictype/property-other-grapheme-extend: Likewise.
14227         * modules/unictype/property-other-id-continue: Likewise.
14228         * modules/unictype/property-other-id-start: Likewise.
14229         * modules/unictype/property-other-lowercase: Likewise.
14230         * modules/unictype/property-other-math: Likewise.
14231         * modules/unictype/property-other-uppercase: Likewise.
14232         * modules/unictype/property-paired-punctuation: Likewise.
14233         * modules/unictype/property-paragraph-separator: Likewise.
14234         * modules/unictype/property-pattern-syntax: Likewise.
14235         * modules/unictype/property-pattern-white-space: Likewise.
14236         * modules/unictype/property-private-use: Likewise.
14237         * modules/unictype/property-punctuation: Likewise.
14238         * modules/unictype/property-quotation-mark: Likewise.
14239         * modules/unictype/property-radical: Likewise.
14240         * modules/unictype/property-sentence-terminal: Likewise.
14241         * modules/unictype/property-soft-dotted: Likewise.
14242         * modules/unictype/property-space: Likewise.
14243         * modules/unictype/property-terminal-punctuation: Likewise.
14244         * modules/unictype/property-test: Likewise.
14245         * modules/unictype/property-titlecase: Likewise.
14246         * modules/unictype/property-unassigned-code-value: Likewise.
14247         * modules/unictype/property-unified-ideograph: Likewise.
14248         * modules/unictype/property-uppercase: Likewise.
14249         * modules/unictype/property-variation-selector: Likewise.
14250         * modules/unictype/property-white-space: Likewise.
14251         * modules/unictype/property-xid-continue: Likewise.
14252         * modules/unictype/property-xid-start: Likewise.
14253         * modules/unictype/property-zero-width: Likewise.
14254         * modules/unictype/scripts: Likewise.
14255         * modules/unictype/syntax-c-ident: Likewise.
14256         * modules/unictype/syntax-c-whitespace: Likewise.
14257         * modules/unictype/syntax-java-ident: Likewise.
14258         * modules/unictype/syntax-java-whitespace: Likewise.
14259         * modules/unilbrk/u8-possible-linebreaks: Likewise.
14260         * modules/unilbrk/u8-width-linebreaks: Likewise.
14261         * modules/unilbrk/u16-possible-linebreaks: Likewise.
14262         * modules/unilbrk/u16-width-linebreaks: Likewise.
14263         * modules/unilbrk/u32-possible-linebreaks: Likewise.
14264         * modules/unilbrk/u32-width-linebreaks: Likewise.
14265         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
14266         * modules/unilbrk/ulc-width-linebreaks: Likewise.
14267         * modules/uniname/uniname: Likewise.
14268         * modules/uninorm/canonical-decomposition: Likewise.
14269         * modules/uninorm/composition: Likewise.
14270         * modules/uninorm/decomposing-form: Likewise.
14271         * modules/uninorm/decomposition: Likewise.
14272         * modules/uninorm/filter: Likewise.
14273         * modules/uninorm/nfc: Likewise.
14274         * modules/uninorm/nfd: Likewise.
14275         * modules/uninorm/nfkc: Likewise.
14276         * modules/uninorm/nfkd: Likewise.
14277         * modules/uninorm/u8-normalize: Likewise.
14278         * modules/uninorm/u8-normcmp: Likewise.
14279         * modules/uninorm/u8-normcoll: Likewise.
14280         * modules/uninorm/u8-normxfrm: Likewise.
14281         * modules/uninorm/u16-normalize: Likewise.
14282         * modules/uninorm/u16-normcmp: Likewise.
14283         * modules/uninorm/u16-normcoll: Likewise.
14284         * modules/uninorm/u16-normxfrm: Likewise.
14285         * modules/uninorm/u32-normalize: Likewise.
14286         * modules/uninorm/u32-normcmp: Likewise.
14287         * modules/uninorm/u32-normcoll: Likewise.
14288         * modules/uninorm/u32-normxfrm: Likewise.
14289         * modules/unistdio/u8-asnprintf: Likewise.
14290         * modules/unistdio/u8-asprintf: Likewise.
14291         * modules/unistdio/u8-snprintf: Likewise.
14292         * modules/unistdio/u8-sprintf: Likewise.
14293         * modules/unistdio/u8-u8-asnprintf: Likewise.
14294         * modules/unistdio/u8-u8-asprintf: Likewise.
14295         * modules/unistdio/u8-u8-snprintf: Likewise.
14296         * modules/unistdio/u8-u8-sprintf: Likewise.
14297         * modules/unistdio/u8-u8-vasnprintf: Likewise.
14298         * modules/unistdio/u8-u8-vasprintf: Likewise.
14299         * modules/unistdio/u8-u8-vsnprintf: Likewise.
14300         * modules/unistdio/u8-u8-vsprintf: Likewise.
14301         * modules/unistdio/u8-vasnprintf: Likewise.
14302         * modules/unistdio/u8-vasprintf: Likewise.
14303         * modules/unistdio/u8-vsnprintf: Likewise.
14304         * modules/unistdio/u8-vsprintf: Likewise.
14305         * modules/unistdio/u16-asnprintf: Likewise.
14306         * modules/unistdio/u16-asprintf: Likewise.
14307         * modules/unistdio/u16-snprintf: Likewise.
14308         * modules/unistdio/u16-sprintf: Likewise.
14309         * modules/unistdio/u16-u16-asnprintf: Likewise.
14310         * modules/unistdio/u16-u16-asprintf: Likewise.
14311         * modules/unistdio/u16-u16-snprintf: Likewise.
14312         * modules/unistdio/u16-u16-sprintf: Likewise.
14313         * modules/unistdio/u16-u16-vasnprintf: Likewise.
14314         * modules/unistdio/u16-u16-vasprintf: Likewise.
14315         * modules/unistdio/u16-u16-vsnprintf: Likewise.
14316         * modules/unistdio/u16-u16-vsprintf: Likewise.
14317         * modules/unistdio/u16-vasnprintf: Likewise.
14318         * modules/unistdio/u16-vasprintf: Likewise.
14319         * modules/unistdio/u16-vsnprintf: Likewise.
14320         * modules/unistdio/u16-vsprintf: Likewise.
14321         * modules/unistdio/u32-asnprintf: Likewise.
14322         * modules/unistdio/u32-asprintf: Likewise.
14323         * modules/unistdio/u32-snprintf: Likewise.
14324         * modules/unistdio/u32-sprintf: Likewise.
14325         * modules/unistdio/u32-u32-asnprintf: Likewise.
14326         * modules/unistdio/u32-u32-asprintf: Likewise.
14327         * modules/unistdio/u32-u32-snprintf: Likewise.
14328         * modules/unistdio/u32-u32-sprintf: Likewise.
14329         * modules/unistdio/u32-u32-vasnprintf: Likewise.
14330         * modules/unistdio/u32-u32-vasprintf: Likewise.
14331         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14332         * modules/unistdio/u32-u32-vsprintf: Likewise.
14333         * modules/unistdio/u32-vasnprintf: Likewise.
14334         * modules/unistdio/u32-vasprintf: Likewise.
14335         * modules/unistdio/u32-vsnprintf: Likewise.
14336         * modules/unistdio/u32-vsprintf: Likewise.
14337         * modules/unistdio/ulc-asnprintf: Likewise.
14338         * modules/unistdio/ulc-asprintf: Likewise.
14339         * modules/unistdio/ulc-fprintf: Likewise.
14340         * modules/unistdio/ulc-snprintf: Likewise.
14341         * modules/unistdio/ulc-sprintf: Likewise.
14342         * modules/unistdio/ulc-vasnprintf: Likewise.
14343         * modules/unistdio/ulc-vasprintf: Likewise.
14344         * modules/unistdio/ulc-vfprintf: Likewise.
14345         * modules/unistdio/ulc-vsnprintf: Likewise.
14346         * modules/unistdio/ulc-vsprintf: Likewise.
14347         * modules/unistr/u8-check: Likewise.
14348         * modules/unistr/u8-chr: Likewise.
14349         * modules/unistr/u8-cmp: Likewise.
14350         * modules/unistr/u8-cmp2: Likewise.
14351         * modules/unistr/u8-cpy: Likewise.
14352         * modules/unistr/u8-cpy-alloc: Likewise.
14353         * modules/unistr/u8-endswith: Likewise.
14354         * modules/unistr/u8-mblen: Likewise.
14355         * modules/unistr/u8-mbsnlen: Likewise.
14356         * modules/unistr/u8-mbtouc: Likewise.
14357         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14358         * modules/unistr/u8-mbtoucr: Likewise.
14359         * modules/unistr/u8-move: Likewise.
14360         * modules/unistr/u8-next: Likewise.
14361         * modules/unistr/u8-prev: Likewise.
14362         * modules/unistr/u8-set: Likewise.
14363         * modules/unistr/u8-startswith: Likewise.
14364         * modules/unistr/u8-stpcpy: Likewise.
14365         * modules/unistr/u8-stpncpy: Likewise.
14366         * modules/unistr/u8-strcat: Likewise.
14367         * modules/unistr/u8-strchr: Likewise.
14368         * modules/unistr/u8-strcmp: Likewise.
14369         * modules/unistr/u8-strcoll: Likewise.
14370         * modules/unistr/u8-strcpy: Likewise.
14371         * modules/unistr/u8-strcspn: Likewise.
14372         * modules/unistr/u8-strdup: Likewise.
14373         * modules/unistr/u8-strlen: Likewise.
14374         * modules/unistr/u8-strmblen: Likewise.
14375         * modules/unistr/u8-strmbtouc: Likewise.
14376         * modules/unistr/u8-strncat: Likewise.
14377         * modules/unistr/u8-strncmp: Likewise.
14378         * modules/unistr/u8-strncpy: Likewise.
14379         * modules/unistr/u8-strnlen: Likewise.
14380         * modules/unistr/u8-strpbrk: Likewise.
14381         * modules/unistr/u8-strrchr: Likewise.
14382         * modules/unistr/u8-strspn: Likewise.
14383         * modules/unistr/u8-strstr: Likewise.
14384         * modules/unistr/u8-strtok: Likewise.
14385         * modules/unistr/u8-to-u16: Likewise.
14386         * modules/unistr/u8-to-u32: Likewise.
14387         * modules/unistr/u8-uctomb: Likewise.
14388         * modules/unistr/u16-check: Likewise.
14389         * modules/unistr/u16-chr: Likewise.
14390         * modules/unistr/u16-cmp: Likewise.
14391         * modules/unistr/u16-cmp2: Likewise.
14392         * modules/unistr/u16-cpy: Likewise.
14393         * modules/unistr/u16-cpy-alloc: Likewise.
14394         * modules/unistr/u16-endswith: Likewise.
14395         * modules/unistr/u16-mblen: Likewise.
14396         * modules/unistr/u16-mbsnlen: Likewise.
14397         * modules/unistr/u16-mbtouc: Likewise.
14398         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14399         * modules/unistr/u16-mbtoucr: Likewise.
14400         * modules/unistr/u16-move: Likewise.
14401         * modules/unistr/u16-next: Likewise.
14402         * modules/unistr/u16-prev: Likewise.
14403         * modules/unistr/u16-set: Likewise.
14404         * modules/unistr/u16-startswith: Likewise.
14405         * modules/unistr/u16-stpcpy: Likewise.
14406         * modules/unistr/u16-stpncpy: Likewise.
14407         * modules/unistr/u16-strcat: Likewise.
14408         * modules/unistr/u16-strchr: Likewise.
14409         * modules/unistr/u16-strcmp: Likewise.
14410         * modules/unistr/u16-strcoll: Likewise.
14411         * modules/unistr/u16-strcpy: Likewise.
14412         * modules/unistr/u16-strcspn: Likewise.
14413         * modules/unistr/u16-strdup: Likewise.
14414         * modules/unistr/u16-strlen: Likewise.
14415         * modules/unistr/u16-strmblen: Likewise.
14416         * modules/unistr/u16-strmbtouc: Likewise.
14417         * modules/unistr/u16-strncat: Likewise.
14418         * modules/unistr/u16-strncmp: Likewise.
14419         * modules/unistr/u16-strncpy: Likewise.
14420         * modules/unistr/u16-strnlen: Likewise.
14421         * modules/unistr/u16-strpbrk: Likewise.
14422         * modules/unistr/u16-strrchr: Likewise.
14423         * modules/unistr/u16-strspn: Likewise.
14424         * modules/unistr/u16-strstr: Likewise.
14425         * modules/unistr/u16-strtok: Likewise.
14426         * modules/unistr/u16-to-u32: Likewise.
14427         * modules/unistr/u16-to-u8: Likewise.
14428         * modules/unistr/u16-uctomb: Likewise.
14429         * modules/unistr/u32-check: Likewise.
14430         * modules/unistr/u32-chr: Likewise.
14431         * modules/unistr/u32-cmp: Likewise.
14432         * modules/unistr/u32-cmp2: Likewise.
14433         * modules/unistr/u32-cpy: Likewise.
14434         * modules/unistr/u32-cpy-alloc: Likewise.
14435         * modules/unistr/u32-endswith: Likewise.
14436         * modules/unistr/u32-mblen: Likewise.
14437         * modules/unistr/u32-mbsnlen: Likewise.
14438         * modules/unistr/u32-mbtouc: Likewise.
14439         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14440         * modules/unistr/u32-mbtoucr: Likewise.
14441         * modules/unistr/u32-move: Likewise.
14442         * modules/unistr/u32-next: Likewise.
14443         * modules/unistr/u32-prev: Likewise.
14444         * modules/unistr/u32-set: Likewise.
14445         * modules/unistr/u32-startswith: Likewise.
14446         * modules/unistr/u32-stpcpy: Likewise.
14447         * modules/unistr/u32-stpncpy: Likewise.
14448         * modules/unistr/u32-strcat: Likewise.
14449         * modules/unistr/u32-strchr: Likewise.
14450         * modules/unistr/u32-strcmp: Likewise.
14451         * modules/unistr/u32-strcoll: Likewise.
14452         * modules/unistr/u32-strcpy: Likewise.
14453         * modules/unistr/u32-strcspn: Likewise.
14454         * modules/unistr/u32-strdup: Likewise.
14455         * modules/unistr/u32-strlen: Likewise.
14456         * modules/unistr/u32-strmblen: Likewise.
14457         * modules/unistr/u32-strmbtouc: Likewise.
14458         * modules/unistr/u32-strncat: Likewise.
14459         * modules/unistr/u32-strncmp: Likewise.
14460         * modules/unistr/u32-strncpy: Likewise.
14461         * modules/unistr/u32-strnlen: Likewise.
14462         * modules/unistr/u32-strpbrk: Likewise.
14463         * modules/unistr/u32-strrchr: Likewise.
14464         * modules/unistr/u32-strspn: Likewise.
14465         * modules/unistr/u32-strstr: Likewise.
14466         * modules/unistr/u32-strtok: Likewise.
14467         * modules/unistr/u32-to-u16: Likewise.
14468         * modules/unistr/u32-to-u8: Likewise.
14469         * modules/unistr/u32-uctomb: Likewise.
14470         * modules/uniwbrk/u8-wordbreaks: Likewise.
14471         * modules/uniwbrk/u16-wordbreaks: Likewise.
14472         * modules/uniwbrk/u32-wordbreaks: Likewise.
14473         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14474         * modules/uniwbrk/wordbreak-property: Likewise.
14475         * modules/uniwidth/u8-strwidth: Likewise.
14476         * modules/uniwidth/u8-width: Likewise.
14477         * modules/uniwidth/u16-strwidth: Likewise.
14478         * modules/uniwidth/u16-width: Likewise.
14479         * modules/uniwidth/u32-strwidth: Likewise.
14480         * modules/uniwidth/u32-width: Likewise.
14481         * modules/uniwidth/width: Likewise.
14482         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14483         with $(LIBUNISTRING).
14484         * modules/unicase/ignorable-tests: Likewise.
14485         * modules/unicase/locale-language-tests: Likewise.
14486         * modules/unicase/tolower-tests: Likewise.
14487         * modules/unicase/totitle-tests: Likewise.
14488         * modules/unicase/toupper-tests: Likewise.
14489         * modules/unicase/u8-casecmp-tests: Likewise.
14490         * modules/unicase/u8-casecoll-tests: Likewise.
14491         * modules/unicase/u8-casefold-tests: Likewise.
14492         * modules/unicase/u8-is-cased-tests: Likewise.
14493         * modules/unicase/u8-is-casefolded-tests: Likewise.
14494         * modules/unicase/u8-is-lowercase-tests: Likewise.
14495         * modules/unicase/u8-is-titlecase-tests: Likewise.
14496         * modules/unicase/u8-is-uppercase-tests: Likewise.
14497         * modules/unicase/u8-tolower-tests: Likewise.
14498         * modules/unicase/u8-totitle-tests: Likewise.
14499         * modules/unicase/u8-toupper-tests: Likewise.
14500         * modules/unicase/u16-casecmp-tests: Likewise.
14501         * modules/unicase/u16-casecoll-tests: Likewise.
14502         * modules/unicase/u16-casefold-tests: Likewise.
14503         * modules/unicase/u16-is-cased-tests: Likewise.
14504         * modules/unicase/u16-is-casefolded-tests: Likewise.
14505         * modules/unicase/u16-is-lowercase-tests: Likewise.
14506         * modules/unicase/u16-is-titlecase-tests: Likewise.
14507         * modules/unicase/u16-is-uppercase-tests: Likewise.
14508         * modules/unicase/u16-tolower-tests: Likewise.
14509         * modules/unicase/u16-totitle-tests: Likewise.
14510         * modules/unicase/u16-toupper-tests: Likewise.
14511         * modules/unicase/u32-casecmp-tests: Likewise.
14512         * modules/unicase/u32-casecoll-tests: Likewise.
14513         * modules/unicase/u32-casefold-tests: Likewise.
14514         * modules/unicase/u32-is-cased-tests: Likewise.
14515         * modules/unicase/u32-is-casefolded-tests: Likewise.
14516         * modules/unicase/u32-is-lowercase-tests: Likewise.
14517         * modules/unicase/u32-is-titlecase-tests: Likewise.
14518         * modules/unicase/u32-is-uppercase-tests: Likewise.
14519         * modules/unicase/u32-tolower-tests: Likewise.
14520         * modules/unicase/u32-totitle-tests: Likewise.
14521         * modules/unicase/u32-toupper-tests: Likewise.
14522         * modules/unicase/ulc-casecmp-tests: Likewise.
14523         * modules/unicase/ulc-casecoll-tests: Likewise.
14524         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14525         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14526         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14527         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14528         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14529         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14530         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14531         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14532         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14533         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14534         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14535         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14536         * modules/unictype/bidicategory-byname-tests: Likewise.
14537         * modules/unictype/bidicategory-name-tests: Likewise.
14538         * modules/unictype/bidicategory-of-tests: Likewise.
14539         * modules/unictype/bidicategory-test-tests: Likewise.
14540         * modules/unictype/block-list-tests: Likewise.
14541         * modules/unictype/block-of-tests: Likewise.
14542         * modules/unictype/block-test-tests: Likewise.
14543         * modules/unictype/category-C-tests: Likewise.
14544         * modules/unictype/category-Cc-tests: Likewise.
14545         * modules/unictype/category-Cf-tests: Likewise.
14546         * modules/unictype/category-Cn-tests: Likewise.
14547         * modules/unictype/category-Co-tests: Likewise.
14548         * modules/unictype/category-Cs-tests: Likewise.
14549         * modules/unictype/category-L-tests: Likewise.
14550         * modules/unictype/category-Ll-tests: Likewise.
14551         * modules/unictype/category-Lm-tests: Likewise.
14552         * modules/unictype/category-Lo-tests: Likewise.
14553         * modules/unictype/category-Lt-tests: Likewise.
14554         * modules/unictype/category-Lu-tests: Likewise.
14555         * modules/unictype/category-M-tests: Likewise.
14556         * modules/unictype/category-Mc-tests: Likewise.
14557         * modules/unictype/category-Me-tests: Likewise.
14558         * modules/unictype/category-Mn-tests: Likewise.
14559         * modules/unictype/category-N-tests: Likewise.
14560         * modules/unictype/category-Nd-tests: Likewise.
14561         * modules/unictype/category-Nl-tests: Likewise.
14562         * modules/unictype/category-No-tests: Likewise.
14563         * modules/unictype/category-P-tests: Likewise.
14564         * modules/unictype/category-Pc-tests: Likewise.
14565         * modules/unictype/category-Pd-tests: Likewise.
14566         * modules/unictype/category-Pe-tests: Likewise.
14567         * modules/unictype/category-Pf-tests: Likewise.
14568         * modules/unictype/category-Pi-tests: Likewise.
14569         * modules/unictype/category-Po-tests: Likewise.
14570         * modules/unictype/category-Ps-tests: Likewise.
14571         * modules/unictype/category-S-tests: Likewise.
14572         * modules/unictype/category-Sc-tests: Likewise.
14573         * modules/unictype/category-Sk-tests: Likewise.
14574         * modules/unictype/category-Sm-tests: Likewise.
14575         * modules/unictype/category-So-tests: Likewise.
14576         * modules/unictype/category-Z-tests: Likewise.
14577         * modules/unictype/category-Zl-tests: Likewise.
14578         * modules/unictype/category-Zp-tests: Likewise.
14579         * modules/unictype/category-Zs-tests: Likewise.
14580         * modules/unictype/category-and-not-tests: Likewise.
14581         * modules/unictype/category-and-tests: Likewise.
14582         * modules/unictype/category-byname-tests: Likewise.
14583         * modules/unictype/category-name-tests: Likewise.
14584         * modules/unictype/category-none-tests: Likewise.
14585         * modules/unictype/category-of-tests: Likewise.
14586         * modules/unictype/category-or-tests: Likewise.
14587         * modules/unictype/category-test-withtable-tests: Likewise.
14588         * modules/unictype/combining-class-tests: Likewise.
14589         * modules/unictype/ctype-alnum-tests: Likewise.
14590         * modules/unictype/ctype-alpha-tests: Likewise.
14591         * modules/unictype/ctype-blank-tests: Likewise.
14592         * modules/unictype/ctype-cntrl-tests: Likewise.
14593         * modules/unictype/ctype-digit-tests: Likewise.
14594         * modules/unictype/ctype-graph-tests: Likewise.
14595         * modules/unictype/ctype-lower-tests: Likewise.
14596         * modules/unictype/ctype-print-tests: Likewise.
14597         * modules/unictype/ctype-punct-tests: Likewise.
14598         * modules/unictype/ctype-space-tests: Likewise.
14599         * modules/unictype/ctype-upper-tests: Likewise.
14600         * modules/unictype/ctype-xdigit-tests: Likewise.
14601         * modules/unictype/decimal-digit-tests: Likewise.
14602         * modules/unictype/digit-tests: Likewise.
14603         * modules/unictype/mirror-tests: Likewise.
14604         * modules/unictype/numeric-tests: Likewise.
14605         * modules/unictype/property-alphabetic-tests: Likewise.
14606         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14607         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14608         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14609         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14610         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14611         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14612         * modules/unictype/property-bidi-control-tests: Likewise.
14613         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14614         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14615         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14616         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14617         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14618         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14619         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14620         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14621         * modules/unictype/property-bidi-pdf-tests: Likewise.
14622         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14623         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14624         * modules/unictype/property-byname-tests: Likewise.
14625         * modules/unictype/property-combining-tests: Likewise.
14626         * modules/unictype/property-composite-tests: Likewise.
14627         * modules/unictype/property-currency-symbol-tests: Likewise.
14628         * modules/unictype/property-dash-tests: Likewise.
14629         * modules/unictype/property-decimal-digit-tests: Likewise.
14630         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14631         * modules/unictype/property-deprecated-tests: Likewise.
14632         * modules/unictype/property-diacritic-tests: Likewise.
14633         * modules/unictype/property-extender-tests: Likewise.
14634         * modules/unictype/property-format-control-tests: Likewise.
14635         * modules/unictype/property-grapheme-base-tests: Likewise.
14636         * modules/unictype/property-grapheme-extend-tests: Likewise.
14637         * modules/unictype/property-grapheme-link-tests: Likewise.
14638         * modules/unictype/property-hex-digit-tests: Likewise.
14639         * modules/unictype/property-hyphen-tests: Likewise.
14640         * modules/unictype/property-id-continue-tests: Likewise.
14641         * modules/unictype/property-id-start-tests: Likewise.
14642         * modules/unictype/property-ideographic-tests: Likewise.
14643         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14644         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14645         * modules/unictype/property-ignorable-control-tests: Likewise.
14646         * modules/unictype/property-iso-control-tests: Likewise.
14647         * modules/unictype/property-join-control-tests: Likewise.
14648         * modules/unictype/property-left-of-pair-tests: Likewise.
14649         * modules/unictype/property-line-separator-tests: Likewise.
14650         * modules/unictype/property-logical-order-exception-tests: Likewise.
14651         * modules/unictype/property-lowercase-tests: Likewise.
14652         * modules/unictype/property-math-tests: Likewise.
14653         * modules/unictype/property-non-break-tests: Likewise.
14654         * modules/unictype/property-not-a-character-tests: Likewise.
14655         * modules/unictype/property-numeric-tests: Likewise.
14656         * modules/unictype/property-other-alphabetic-tests: Likewise.
14657         * modules/unictype/property-other-default-ignorable-code-point-tests:
14658         Likewise.
14659         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14660         * modules/unictype/property-other-id-continue-tests: Likewise.
14661         * modules/unictype/property-other-id-start-tests: Likewise.
14662         * modules/unictype/property-other-lowercase-tests: Likewise.
14663         * modules/unictype/property-other-math-tests: Likewise.
14664         * modules/unictype/property-other-uppercase-tests: Likewise.
14665         * modules/unictype/property-paired-punctuation-tests: Likewise.
14666         * modules/unictype/property-paragraph-separator-tests: Likewise.
14667         * modules/unictype/property-pattern-syntax-tests: Likewise.
14668         * modules/unictype/property-pattern-white-space-tests: Likewise.
14669         * modules/unictype/property-private-use-tests: Likewise.
14670         * modules/unictype/property-punctuation-tests: Likewise.
14671         * modules/unictype/property-quotation-mark-tests: Likewise.
14672         * modules/unictype/property-radical-tests: Likewise.
14673         * modules/unictype/property-sentence-terminal-tests: Likewise.
14674         * modules/unictype/property-soft-dotted-tests: Likewise.
14675         * modules/unictype/property-space-tests: Likewise.
14676         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14677         * modules/unictype/property-test-tests: Likewise.
14678         * modules/unictype/property-titlecase-tests: Likewise.
14679         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14680         * modules/unictype/property-unified-ideograph-tests: Likewise.
14681         * modules/unictype/property-uppercase-tests: Likewise.
14682         * modules/unictype/property-variation-selector-tests: Likewise.
14683         * modules/unictype/property-white-space-tests: Likewise.
14684         * modules/unictype/property-xid-continue-tests: Likewise.
14685         * modules/unictype/property-xid-start-tests: Likewise.
14686         * modules/unictype/property-zero-width-tests: Likewise.
14687         * modules/unictype/scripts-tests: Likewise.
14688         * modules/unictype/syntax-c-ident-tests: Likewise.
14689         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14690         * modules/unictype/syntax-java-ident-tests: Likewise.
14691         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14692         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14693         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14694         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14695         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14696         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14697         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14698         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14699         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14700         * modules/uniname/uniname-tests: Likewise.
14701         * modules/uninorm/canonical-decomposition-tests: Likewise.
14702         * modules/uninorm/compat-decomposition-tests: Likewise.
14703         * modules/uninorm/composition-tests: Likewise.
14704         * modules/uninorm/decomposing-form-tests: Likewise.
14705         * modules/uninorm/decomposition-tests: Likewise.
14706         * modules/uninorm/filter-tests: Likewise.
14707         * modules/uninorm/nfc-tests: Likewise.
14708         * modules/uninorm/nfd-tests: Likewise.
14709         * modules/uninorm/nfkc-tests: Likewise.
14710         * modules/uninorm/nfkd-tests: Likewise.
14711         * modules/uninorm/u8-normcmp-tests: Likewise.
14712         * modules/uninorm/u8-normcoll-tests: Likewise.
14713         * modules/uninorm/u16-normcmp-tests: Likewise.
14714         * modules/uninorm/u16-normcoll-tests: Likewise.
14715         * modules/uninorm/u32-normcmp-tests: Likewise.
14716         * modules/uninorm/u32-normcoll-tests: Likewise.
14717         * modules/unistdio/u8-asnprintf-tests: Likewise.
14718         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14719         * modules/unistdio/u8-vasprintf-tests: Likewise.
14720         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14721         * modules/unistdio/u8-vsprintf-tests: Likewise.
14722         * modules/unistdio/u16-asnprintf-tests: Likewise.
14723         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14724         * modules/unistdio/u16-vasprintf-tests: Likewise.
14725         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14726         * modules/unistdio/u16-vsprintf-tests: Likewise.
14727         * modules/unistdio/u32-asnprintf-tests: Likewise.
14728         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14729         * modules/unistdio/u32-vasprintf-tests: Likewise.
14730         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14731         * modules/unistdio/u32-vsprintf-tests: Likewise.
14732         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14733         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14734         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14735         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14736         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14737         * modules/unistr/u8-check-tests: Likewise.
14738         * modules/unistr/u8-chr-tests: Likewise.
14739         * modules/unistr/u8-cmp-tests: Likewise.
14740         * modules/unistr/u8-cmp2-tests: Likewise.
14741         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14742         * modules/unistr/u8-cpy-tests: Likewise.
14743         * modules/unistr/u8-mblen-tests: Likewise.
14744         * modules/unistr/u8-mbsnlen-tests: Likewise.
14745         * modules/unistr/u8-mbtouc-tests: Likewise.
14746         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14747         * modules/unistr/u8-mbtoucr-tests: Likewise.
14748         * modules/unistr/u8-move-tests: Likewise.
14749         * modules/unistr/u8-next-tests: Likewise.
14750         * modules/unistr/u8-prev-tests: Likewise.
14751         * modules/unistr/u8-set-tests: Likewise.
14752         * modules/unistr/u8-stpcpy-tests: Likewise.
14753         * modules/unistr/u8-stpncpy-tests: Likewise.
14754         * modules/unistr/u8-strcat-tests: Likewise.
14755         * modules/unistr/u8-strcmp-tests: Likewise.
14756         * modules/unistr/u8-strcoll-tests: Likewise.
14757         * modules/unistr/u8-strcpy-tests: Likewise.
14758         * modules/unistr/u8-strdup-tests: Likewise.
14759         * modules/unistr/u8-strlen-tests: Likewise.
14760         * modules/unistr/u8-strmblen-tests: Likewise.
14761         * modules/unistr/u8-strmbtouc-tests: Likewise.
14762         * modules/unistr/u8-strncat-tests: Likewise.
14763         * modules/unistr/u8-strncmp-tests: Likewise.
14764         * modules/unistr/u8-strncpy-tests: Likewise.
14765         * modules/unistr/u8-strnlen-tests: Likewise.
14766         * modules/unistr/u8-to-u16-tests: Likewise.
14767         * modules/unistr/u8-to-u32-tests: Likewise.
14768         * modules/unistr/u8-uctomb-tests: Likewise.
14769         * modules/unistr/u16-check-tests: Likewise.
14770         * modules/unistr/u16-chr-tests: Likewise.
14771         * modules/unistr/u16-cmp-tests: Likewise.
14772         * modules/unistr/u16-cmp2-tests: Likewise.
14773         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14774         * modules/unistr/u16-cpy-tests: Likewise.
14775         * modules/unistr/u16-mblen-tests: Likewise.
14776         * modules/unistr/u16-mbsnlen-tests: Likewise.
14777         * modules/unistr/u16-mbtouc-tests: Likewise.
14778         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14779         * modules/unistr/u16-mbtoucr-tests: Likewise.
14780         * modules/unistr/u16-move-tests: Likewise.
14781         * modules/unistr/u16-next-tests: Likewise.
14782         * modules/unistr/u16-prev-tests: Likewise.
14783         * modules/unistr/u16-set-tests: Likewise.
14784         * modules/unistr/u16-stpcpy-tests: Likewise.
14785         * modules/unistr/u16-stpncpy-tests: Likewise.
14786         * modules/unistr/u16-strcat-tests: Likewise.
14787         * modules/unistr/u16-strcmp-tests: Likewise.
14788         * modules/unistr/u16-strcoll-tests: Likewise.
14789         * modules/unistr/u16-strcpy-tests: Likewise.
14790         * modules/unistr/u16-strdup-tests: Likewise.
14791         * modules/unistr/u16-strlen-tests: Likewise.
14792         * modules/unistr/u16-strmblen-tests: Likewise.
14793         * modules/unistr/u16-strmbtouc-tests: Likewise.
14794         * modules/unistr/u16-strncat-tests: Likewise.
14795         * modules/unistr/u16-strncmp-tests: Likewise.
14796         * modules/unistr/u16-strncpy-tests: Likewise.
14797         * modules/unistr/u16-strnlen-tests: Likewise.
14798         * modules/unistr/u16-to-u32-tests: Likewise.
14799         * modules/unistr/u16-to-u8-tests: Likewise.
14800         * modules/unistr/u16-uctomb-tests: Likewise.
14801         * modules/unistr/u32-check-tests: Likewise.
14802         * modules/unistr/u32-chr-tests: Likewise.
14803         * modules/unistr/u32-cmp-tests: Likewise.
14804         * modules/unistr/u32-cmp2-tests: Likewise.
14805         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14806         * modules/unistr/u32-cpy-tests: Likewise.
14807         * modules/unistr/u32-mblen-tests: Likewise.
14808         * modules/unistr/u32-mbsnlen-tests: Likewise.
14809         * modules/unistr/u32-mbtouc-tests: Likewise.
14810         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14811         * modules/unistr/u32-mbtoucr-tests: Likewise.
14812         * modules/unistr/u32-move-tests: Likewise.
14813         * modules/unistr/u32-next-tests: Likewise.
14814         * modules/unistr/u32-prev-tests: Likewise.
14815         * modules/unistr/u32-set-tests: Likewise.
14816         * modules/unistr/u32-stpcpy-tests: Likewise.
14817         * modules/unistr/u32-stpncpy-tests: Likewise.
14818         * modules/unistr/u32-strcat-tests: Likewise.
14819         * modules/unistr/u32-strcmp-tests: Likewise.
14820         * modules/unistr/u32-strcoll-tests: Likewise.
14821         * modules/unistr/u32-strcpy-tests: Likewise.
14822         * modules/unistr/u32-strdup-tests: Likewise.
14823         * modules/unistr/u32-strlen-tests: Likewise.
14824         * modules/unistr/u32-strmblen-tests: Likewise.
14825         * modules/unistr/u32-strmbtouc-tests: Likewise.
14826         * modules/unistr/u32-strncat-tests: Likewise.
14827         * modules/unistr/u32-strncmp-tests: Likewise.
14828         * modules/unistr/u32-strncpy-tests: Likewise.
14829         * modules/unistr/u32-strnlen-tests: Likewise.
14830         * modules/unistr/u32-to-u16-tests: Likewise.
14831         * modules/unistr/u32-to-u8-tests: Likewise.
14832         * modules/unistr/u32-uctomb-tests: Likewise.
14833         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14834         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14835         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14836         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14837         * modules/uniwidth/u8-strwidth-tests: Likewise.
14838         * modules/uniwidth/u8-width-tests: Likewise.
14839         * modules/uniwidth/u16-strwidth-tests: Likewise.
14840         * modules/uniwidth/u16-width-tests: Likewise.
14841         * modules/uniwidth/u32-strwidth-tests: Likewise.
14842         * modules/uniwidth/u32-width-tests: Likewise.
14843         * modules/uniwidth/width-tests: Likewise.
14844
14845 2010-05-18  Richard Jones  <rjones@redhat.com>
14846
14847         doc: users.txt: list hivex
14848         * users.txt: Add hivex.
14849
14850 2010-05-18  Richard Jones  <rjones@redhat.com>
14851
14852         doc: users.txt: list febootstrap
14853         * users.txt: Add febootstrap.
14854
14855 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14856
14857         bootstrap: fix an error when gnulib is not used as a git submodule
14858         * build-aux/bootstrap (gnulib_path): If its length is zero then
14859         assign "gnulib" to it.
14860         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14861
14862 2010-05-16  Bruno Haible  <bruno@clisp.org>
14863
14864         Avoid autoconf warnings about AM_ICONV.
14865         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14866         2.64.
14867
14868 2010-05-16  Bruno Haible  <bruno@clisp.org>
14869
14870         absolute-header: Make the macro usable in more situations.
14871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14872         from gl_ABSOLUTE_HEADER.
14873         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14874
14875 2010-05-16  James Youngman  <jay@gnu.org>
14876
14877         doc: update users.txt
14878         * users.txt: Add CSSC.
14879
14880 2010-05-16  Jim Meyering  <meyering@redhat.com>
14881
14882         init.sh: fix an error in the previous change; add more comments
14883         * tests/init.sh: Compare exit code in loop against 9, not 2.
14884         Patch by Bruno Haible.
14885         Make the two tests more similar by adding an empty "then" clause.
14886         Add comments.
14887
14888         init.sh: avoid unnecessary shell re-exec
14889         * tests/init.sh: Improve the re-exec-required check to first test the
14890         current shell.  If it passes the test, do not search for a shell that
14891         does pass, and do not re-exec.  This test is particularly contorted to
14892         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14893         of $(...) evokes a syntax error and causes immediate shell exit with
14894         status 2.  Bruno Haible reported that the re-exec made it impossible
14895         to single-step through any init.sh-using script.
14896
14897 2010-05-16  Bruno Haible  <bruno@clisp.org>
14898
14899         Fix collision between gnulib's and libintl's printf replacements.
14900         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14901         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14902         (printf): When using GNU C, map the __printf__ function to rpl_printf
14903         via __asm__. When not using GNU C, define rpl_printf instead of
14904         __printf__.
14905         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14906         commit.
14907         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14908         commit.
14909         * m4/asm-underscore.m4: New file.
14910         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14911         * modules/stdio (Files): Add m4/asm-underscore.m4.
14912         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14913         Reported by Ben Pfaff.
14914
14915 2010-05-16  Bruno Haible  <bruno@clisp.org>
14916
14917         verify: Avoid skipping the test on openSUSE 11.0.
14918         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14919
14920 2010-05-13  Bruno Haible  <bruno@clisp.org>
14921
14922         Avoid useless warnings from G++.
14923         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14924         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14925         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14926
14927 2010-05-11  Jim Meyering  <meyering@redhat.com>
14928
14929         maint.mk: tweak preceding change
14930         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14931         regexps tighter by anchoring at EOL, and make the new group "shy"
14932         for slightly decreased overhead.
14933
14934 2010-05-11  Eric Blake  <eblake@redhat.com>
14935
14936         maint.mk: gnulib doesn't guarantee NSIG
14937         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14938
14939 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14940
14941         test-pwrite.c: Remove unused variable declaration.
14942         * tests/test-pwrite.c (main): Remove read_buf declaration.
14943
14944         Remove useless test-pwrite.sh file.
14945         * tests/test-pwrite.sh: Delete file.
14946         * modules/pwrite-tests: Remove references.
14947         Reported by Bruno Haible.
14948
14949 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14950
14951         init.sh: fix a typo
14952         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14953
14954 2010-05-10  Jim Meyering  <meyering@redhat.com>
14955
14956         maint.mk: avoid using a temporary file in the always-defined-macros check
14957         * top/maint.mk (.re-defmac): Remove rule.
14958         (gl_trap_): Remove definition.
14959         (sc_prohibit_always-defined_macros): Rewrite not to create and
14960         depend on a temporary file.  Instead, depend on GNU grep's ability
14961         to read a list of regular expressions from stdin when given "-f -".
14962
14963 2010-05-09  Bruno Haible  <bruno@clisp.org>
14964
14965         Update to GNU gettext 0.18, part 1.
14966         * m4/gettext.m4: Update to GNU gettext 0.18.
14967         * m4/intl.m4: Likewise.
14968         * m4/po.m4: Likewise.
14969         * modules/gettext (Files): Add m4/fcntl-o.m4.
14970         (configure.ac): Require gettext infrastructure from version 0.18.
14971
14972 2010-05-09  Jim Meyering  <meyering@redhat.com>
14973
14974         init.sh: enable MALLOC_PERTURB_
14975         * tests/init.sh: Enable glibc's malloc-perturbing option.
14976
14977         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14978         With my recent change in init.sh from the two-line form:
14979             -#   : ${srcdir=.}
14980             -#   . "$srcdir/init.sh"; path_prepend_ .
14981             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14982         I noticed that using the one-line form would cause this test
14983         to fail with a false-positive, or to stop working altogether,
14984         depending on whether help-version changed or all the tests did.
14985         * top/maint.mk (_hv_regex): Remove this definition.
14986         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14987         (_hv_regex_strong): Use a stronger regex to check for conformance.
14988         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14989         Give a separate diagnostic for lack of conforming use.
14990
14991         maint.mk: prohibit definition of symbols defined by gnulib
14992         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14993         definition of symbols defined by gnulib.
14994
14995 2010-05-09  Bruno Haible  <bruno@clisp.org>
14996
14997         acl: Avoid test failure on Cygwin-hosted mingw.
14998         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14999
15000 2010-05-09  Bruno Haible  <bruno@clisp.org>
15001
15002         error: Use system's fcntl function.
15003         * lib/error.c (fcntl): Undefine.
15004
15005 2010-05-09  Jim Meyering  <meyering@redhat.com>
15006
15007         verify: adjust formatting to be more consistent
15008         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
15009         argument-list '('s, and after one comma.
15010
15011 2010-05-09  Bruno Haible  <bruno@clisp.org>
15012
15013         error: More reliable output on mingw.
15014         * lib/error.c: Include <windows.h>.
15015         (is_open): New function.
15016         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
15017         defined.
15018
15019 2010-05-09  Bruno Haible  <bruno@clisp.org>
15020
15021         vasnprintf: Fix syntax errors in libintl build on mingw.
15022         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
15023         pad_ourselves and prec_ourselves after use.
15024
15025 2010-05-08  Bruno Haible  <bruno@clisp.org>
15026
15027         * lib/config.charset: Update comments for Cygwin 1.7.
15028         * lib/localcharset.c: Likewise.
15029
15030 2010-05-07  Jim Meyering  <meyering@redhat.com>
15031
15032         init.sh: improve comments
15033         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
15034         . "${srcdir=.}/init.sh"; path_prepend_ .
15035         Add a note about path_prepend_ and the alternative of using
15036         TESTS_ENVIRONMENT.
15037
15038 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
15039
15040         exclude: Unescape hashed patterns in wildcard mode.
15041         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
15042         to the hash list.
15043         * tests/test-exclude8.sh: New test case.
15044         * modules/exclude-tests: Add new test.
15045
15046 2010-05-05  Eric Blake  <eblake@redhat.com>
15047
15048         verify: automate tests
15049         * modules/verify-tests: New module.
15050         * tests/test-verify.sh: New file.
15051         * tests/test-verify.c: Guard each negative test with a unique id.
15052         Also avoid warning about unused left hand of comma expressions.
15053
15054 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15055
15056         Further improvements to verify.h, suggested by Eric Blake.
15057         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
15058         the GL_* versions, to avoid collision with OpenGL.
15059         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
15060         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
15061         than testing merely whether it's defined.
15062
15063         Modify verify.h to pacify gcc -Wredundant_decls.
15064         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
15065         These use the prefix "GL_" since they're likely to be useful elsewhere.
15066         We may need to break them out into a different .h file.
15067         (__COUNTER__): Define to 0 if the compiler doesn't support it.
15068         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
15069         of verify_function__.
15070
15071 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15072
15073         Tests for module pwrite.
15074         * modules/pwrite-tests: New file.
15075         * tests/test-pwrite.sh: New file.
15076         * tests/test-pwrite.c: New file.
15077
15078         New module pwrite.
15079         * lib/unistd.in.h (pwrite): New declaration.
15080         * lib/pwrite.c: New file, from glibc with modifications.
15081         * m4/pwrite.m4: New file.
15082         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
15083         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
15084         REPLACE_PWRITE.
15085         * modules/pwrite: New file.
15086         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
15087         REPLACE_PWRITE.
15088         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
15089         * doc/posix-functions/pwrite.texi: Mention the new module.
15090
15091 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
15092
15093         pread: Update documentation.
15094         * doc/posix-functions/pread.texi: Mention the 'pread' module.
15095
15096 2010-05-04  Eric Blake  <eblake@redhat.com>
15097
15098         docs: update cygwin progress
15099         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
15100         this bug.
15101         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
15102         Added in cygwin 1.7.2.
15103         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
15104         Likewise.
15105         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
15106         Likewise.
15107         * doc/glibc-functions/dup3.texi (dup3): Likewise.
15108         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15109         * doc/glibc-functions/accept4.texi (accept4): Likewise.
15110         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
15111         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
15112         Mention nproc module.
15113         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
15114         bug in cygwin 1.7.5 addition.
15115         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
15116         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
15117         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
15118         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
15119         1.7.5.
15120         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
15121         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
15122         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
15123         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
15124         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
15125         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
15126         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
15127         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
15128         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
15129         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
15130         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
15131         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
15132         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
15133         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
15134         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
15135         Likewise.
15136         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
15137         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
15138         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
15139         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
15140         Likewise.
15141         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
15142         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
15143         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
15144         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
15145         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
15146         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
15147         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
15148         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
15149         Likewise.
15150         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
15151         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
15152         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
15153         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
15154         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
15155         Likewise.
15156         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
15157         Likewise.
15158         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
15159         Likewise.
15160         * doc/glibc-functions/xdrrec_endofrecord.texi
15161         (xdrrec_endofrecord): Likewise.
15162         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
15163         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
15164         Likewise.
15165         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
15166         Likewise.
15167
15168 2010-05-04  Jim Meyering  <meyering@redhat.com>
15169
15170         gendocs.sh: make its "-s FILE" option more useful
15171         * build-aux/gendocs.sh: When honoring the -s FILE option, update
15172         $PACKAGE to reflect the probably-different basename of "FILE".
15173
15174 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
15175
15176         bootstrap: don't ignore download_po_files failure
15177         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
15178         failure.
15179
15180 2010-05-03  Jim Meyering  <meyering@redhat.com>
15181
15182         maint.mk: allow to pass options to gendocs.sh
15183         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
15184         (gendocs_options_): New overridable variable.
15185
15186         gnu-web-doc-update: don't ignore configure or build failure
15187         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
15188
15189         announce-gen: backslash-escape '@'s in --help output
15190         * build-aux/announce-gen: Fix syntax errors.
15191
15192         maint.mk, announce-gen: allow project-specific announcement mail headers
15193         * top/maint.mk (translation_project_): Define default.
15194         (announcement_Cc_, announcement_mail_headers_): Likewise.
15195         (announcement): Invoke announce-gen with new --mail-headers option.
15196         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
15197
15198         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
15199         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
15200         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
15201         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
15202         line in the "err2" output file when running "make check" in verbose
15203         mode (i.e., with set -x enabled).
15204
15205 2010-05-03  Bruno Haible  <bruno@clisp.org>
15206
15207         wctob: Fix for weird platforms.
15208         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
15209         argument value.
15210
15211 2010-05-03  Jim Meyering  <meyering@redhat.com>
15212
15213         maint.mk: prohibit unwarranted use of <strings.h>
15214         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
15215         strings.h in a file that does not also use strcasecmp, strncasecmp,
15216         ffs or ffsll.
15217
15218         maint.mk: remove obsolete comments
15219         * top/maint.mk: Remove stale, commented-out rules.
15220
15221 2010-05-02  Bruno Haible  <bruno@clisp.org>
15222
15223         wcwidth: Declare also when it's aliased.
15224         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
15225         macro.
15226
15227 2010-05-02  Bruno Haible  <bruno@clisp.org>
15228
15229         Fix regression from 2010-04-25.
15230         * gnulib-tool (func_modules_transitive_closure): Check the status of
15231         all modules, not only of the tests that are of the form foo-tests where
15232         foo is a module.
15233
15234 2010-05-02  Bruno Haible  <bruno@clisp.org>
15235
15236         wctob: Work around nasty Cygwin 1.7.2 bug.
15237         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
15238         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
15239
15240 2010-05-01  Bruno Haible  <bruno@clisp.org>
15241
15242         fpurge: Sharper test.
15243         * tests/test-fpurge.c (main): Add one more ftell check.
15244         * modules/fpurge-tests (Depends-on): Add ftell.
15245         Suggested by Eric Blake.
15246
15247 2010-05-01  Bruno Haible  <bruno@clisp.org>
15248
15249         ftello: Another test.
15250         * tests/test-ftello3.c: New file.
15251         * modules/ftello-tests (Files): Add it.
15252         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15253         MOSTLYCLEANFILES.
15254
15255         ftell: Another test.
15256         * tests/test-ftell3.c: New file.
15257         * modules/ftell-tests (Files): Add it.
15258         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
15259         MOSTLYCLEANFILES.
15260
15261 2010-05-01  Bruno Haible  <bruno@clisp.org>
15262
15263         ftell, ftello: Work around Solaris bug.
15264         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
15265         * lib/ftello.c: Include stdio-impl.h.
15266         (ftello): On Solaris, when _IOWRT is set, compute the result without
15267         looking at _IOREAD.
15268         * modules/ftello (Files): Add lib/stdio-impl.h.
15269         * doc/posix-functions/ftell.texi: Mention Solaris bug.
15270         * doc/posix-functions/ftello.texi: Likewise.
15271         Reported by Eric Blake.
15272
15273 2010-05-01  Bruno Haible  <bruno@clisp.org>
15274
15275         freading: Adapt to special meaning of _IOREAD flag on Solaris.
15276         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
15277         the _IOWRT flag is also set.
15278
15279 2010-05-01  Bruno Haible  <bruno@clisp.org>
15280
15281         Fix doc about a HP-UX stdio bug.
15282         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
15283         * doc/posix-functions/ftello.texi: Likewise.
15284
15285 2010-05-01  Bruno Haible  <bruno@clisp.org>
15286
15287         lseek test: Fix failure on Solaris.
15288         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
15289         output.
15290
15291 2010-04-30  Jim Meyering  <meyering@redhat.com>
15292
15293         bootstrap: don't ignore failure to generate po*/Makevars
15294         * build-aux/bootstrap (with_gettext): Don't ignore failure
15295         to create po/Makevars or runtime-po/Makevars.
15296
15297 2010-04-29  Eric Blake  <eblake@redhat.com>
15298
15299         headers: relax license to LGPLv2+
15300         * modules/fcntl-h (License): Relax license.
15301         * modules/getopt-posix (License): Likewise.
15302         * modules/locale (License): Likewise.
15303         * modules/math (License): Likewise.
15304         * modules/pty (License): Likewise.
15305         * modules/sched (License): Likewise.
15306         * modules/search (License): Likewise.
15307         * modules/spawn (License): Likewise.
15308         * modules/stdarg (License): Likewise.
15309         * modules/sysexits (License): Likewise.
15310
15311 2010-04-29  Jim Meyering  <meyering@redhat.com>
15312
15313         inttypes: relax license to LGPLv2+
15314         * modules/inttypes (License): Relax license.
15315
15316 2010-04-29  Simon Josefsson  <simon@josefsson.org>
15317
15318         * top/maint.mk (indent): Run twice to produce idempotent results.
15319
15320 2010-04-28  Bruno Haible  <bruno@clisp.org>
15321
15322         getdate: Generate getdate.c in the source directory.
15323         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
15324         MOSTLYCLEANFILES.
15325         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
15326
15327 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
15328
15329         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
15330         is not declared as a const *; avoid warnings in that case.
15331
15332 2010-04-28  Eric Blake  <eblake@redhat.com>
15333
15334         canonicalize-lgpl: avoid compiler warning
15335         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15336         declaration' / 'extraneous semicolon' warning with some compilers.
15337         Reported by Andreas Gruenbacher.
15338
15339 2010-04-28  Jim Meyering  <meyering@redhat.com>
15340
15341         init.sh: ensure a more reliable exit status when exiting via trap
15342         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15343         Inspired by patches from Dmitry V. Levin.
15344         Also trap on signal 3 (SIGQUIT).
15345
15346 2010-04-27  Bruno Haible  <bruno@clisp.org>
15347
15348         Update doc about utimes().
15349         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15350         'utimens' module.
15351         Reported by Andreas Gruenbacher <agruen@suse.de>.
15352
15353 2010-04-27  Eric Blake  <eblake@redhat.com>
15354
15355         full-read, full-write: relax license
15356         * modules/full-read (License): Drop to LGPLv2+.
15357         * modules/full-write (License): Likewise.
15358         * modules/safe-read (License): Likewise.
15359         * modules/safe-write (License): Likewise.
15360
15361         pthread: mention library for linking
15362         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15363
15364 2010-04-27  Jim Meyering  <meyering@redhat.com>
15365
15366         maint.mk: fix a bug introduced in last change
15367         * top/maint.mk (gl_assured_headers_): Now that all names are on
15368         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15369         is not anchored to end of word, it should be adequate.
15370
15371         maint.mk: avoid side-effect in latest syntax-check
15372         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15373         to run commands via $(shell...), and hence to incur cost only when
15374         the new rule is actually run.
15375
15376         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15377         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15378         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15379         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15380         (gl_assured_headers_, az_, AZ_): Define.
15381         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15382
15383 2010-04-26  Jim Meyering  <jim@meyering.net>
15384             Bruno Haible  <bruno@clisp.org>
15385
15386         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15387         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15388         Prompted by an exchange with Gilles Espinasse.
15389
15390 2010-04-26  Jim Meyering  <meyering@redhat.com>
15391
15392         git-version-gen: aesthetic tweak
15393         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15394         so that the command remains on a single line.
15395
15396 2010-04-26  Eric Blake  <eblake@redhat.com>
15397
15398         git-version-gen: allow use on EBCDIC hosts
15399         * build-aux/git-version-gen (dirty): Use literal rather than tying
15400         ourselves to ascii.
15401         Reported by Steve Goetze.
15402
15403 2010-04-25  Bruno Haible  <bruno@clisp.org>
15404
15405         netdb: Add support for GNULIB_POSIXCHECK.
15406         * lib/netdb.in.h: Include warn-on-use.h.
15407         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15408         functions are used when GNULIB_POSIXCHECK is defined and the
15409         getaddrinfo module is not in use.
15410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15411         freeaddrinfo, gai_strerror, getnameinfo are declared.
15412         * modules/netdb (Depends-on): Add warn-on-use.
15413         (Makefile.am): Include warn-on-use.h in netdb.h.
15414
15415 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15416
15417         build: avoid "make check" failure without .git/ directory
15418         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15419         there is no .git/ directory.
15420
15421 2010-04-25  Bruno Haible  <bruno@clisp.org>
15422
15423         ptsname: Fix misuse of ttyname_r.
15424         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15425         of errno.
15426
15427 2010-04-25  Bruno Haible  <bruno@clisp.org>
15428
15429         ttyname_r: Make it work on Solaris 10.
15430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15431         if the system function has the POSIX declaration. Test whether the
15432         function fails if the buffer is less than 128 bytes large.
15433         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15434         system's ttyname_r function. Provide a reasonably large buffer.
15435         * modules/ttyname_r (Depends-on): Add extensions.
15436         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15437
15438 2010-04-25  Bruno Haible  <bruno@clisp.org>
15439
15440         Use the 'extensions' module for some more functions on Solaris.
15441         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15442         module.
15443         * doc/posix-functions/ctime_r.texi: Likewise.
15444         * doc/posix-functions/getgrgid_r.texi: Likewise.
15445         * doc/posix-functions/getgrnam_r.texi: Likewise.
15446         * doc/posix-functions/getpwnam_r.texi: Likewise.
15447         * doc/posix-functions/getpwuid_r.texi: Likewise.
15448         * doc/posix-functions/readdir_r.texi: Likewise.
15449         * doc/posix-functions/sigwait.texi: Likewise.
15450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15451         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15452
15453 2010-04-25  Bruno Haible  <bruno@clisp.org>
15454
15455         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15456         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15457         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15458         * lib/ttyname_r.c: Include <limits.h>.
15459         (ttyname_r): Define using the system's ttyname_r function, if it exists
15460         and not on Solaris.
15461         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15462         set.
15463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15464         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15465         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15466         Reported by Simon Josefsson.
15467
15468 2010-04-25  Bruno Haible  <bruno@clisp.org>
15469
15470         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15471         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15472         * doc/posix-functions/ctime_r.texi: Likewise.
15473         * doc/posix-functions/getgrgid_r.texi: Likewise.
15474         * doc/posix-functions/getgrnam_r.texi: Likewise.
15475         * doc/posix-functions/getlogin_r.texi: Likewise.
15476         * doc/posix-functions/getpwnam_r.texi: Likewise.
15477         * doc/posix-functions/getpwuid_r.texi: Likewise.
15478         * doc/posix-functions/readdir_r.texi: Likewise.
15479         * doc/posix-functions/sigwait.texi: Likewise.
15480         * doc/posix-functions/ttyname_r.texi: Likewise.
15481         Reported by Simon Josefsson.
15482
15483 2010-04-25  Bruno Haible  <bruno@clisp.org>
15484
15485         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15486         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15487         also to --create-testdir.
15488         (func_acceptable): Don't consider the status of *-tests modules here.
15489         (func_modules_transitive_closure): Consider it here, before including a
15490         test module.
15491         (func_import, func_create_testdir): Set inc_all_direct_tests,
15492         inc_all_indirect_tests.
15493         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15494         --create-testdir and --create-megatestdir.
15495
15496 2010-04-25  Bruno Haible  <bruno@clisp.org>
15497
15498         gnulib-tool: Add --without-*-tests options.
15499         * gnulib-tool (func_usage): Document the --without-*-tests options.
15500         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15501         excl_unportable_tests): New variables.
15502         Fail if they are specified with --import or --update.
15503         (func_acceptable): Respect the excl_*_tests variables.
15504         (func_import): Set the excl_*_tests variables to empty.
15505
15506 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15507             Bruno Haible  <bruno@clisp.org>
15508
15509         Work around a MacOS X 10.4 bug with openpty.
15510         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15511         * tests/test-openpty.c (main): Close the master side explicitly.
15512
15513 2010-04-25  Bruno Haible  <bruno@clisp.org>
15514
15515         strnlen: Fix a C++ test error on MacOS X and Solaris.
15516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15517         the function is not declared.
15518         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15519         Simon Josefsson.
15520
15521 2010-04-24  Bruno Haible  <bruno@clisp.org>
15522
15523         Avoid a gcc warning.
15524         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15525         of correct type for %08lx directive.
15526         Reported by Eric Blake.
15527
15528 2010-04-24  Bruno Haible  <bruno@clisp.org>
15529
15530         vasnprintf: Correct errno value in case of out-of-memory.
15531         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15532         or sprintf. Use the errno value from SNPRINTF or sprintf.
15533         Reported by Ian Beckwith <ianb@erislabs.net>.
15534
15535 2010-04-24  Bruno Haible  <bruno@clisp.org>
15536
15537         ansi-c++-opt: Find correct compiler when cross-compiling.
15538         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15539         AC_CHECK_PROGS.
15540         Reported by Simon Josefsson.
15541
15542 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15543
15544         vc-list-files: Add support for subversion
15545         * build-aux/vc-list-files: Use "svn list" to generate the list of
15546         files controlled by subversion.
15547
15548 2010-04-23  Jim Meyering  <meyering@redhat.com>
15549
15550         vc-list-files tests: convert to use init.sh
15551         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15552         path_prepend_.
15553         Use Exit, not exit.
15554         Use skip_ rather than open coding it.
15555         Remove trap set-up and compare definitions.
15556         * tests/test-vc-list-files-git.sh: Likewise.
15557         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15558
15559 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15560
15561         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15562         backup files.
15563
15564 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15565
15566         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15567
15568 2010-04-20  Eric Blake  <eblake@redhat.com>
15569
15570         tests: be robust to ignored SIGPIPE
15571         * tests/test-select-in.sh: Consume all output.
15572         * tests/test-lseek.sh: Check correct exit status, while avoiding
15573         EPIPE.
15574
15575 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15576             Bruno Haible  <bruno@clisp.org>
15577
15578         visibility: Don't use -fvisibility if it leads to a warning.
15579         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15580         yes, don't pretend that visibility works if it leads to a warning.
15581         Reported by Mike Gran <spk121@yahoo.com>.
15582
15583 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15584
15585         * build-aux/bootstrap: Use "git -h" for testing for supported options
15586         instead of "git --help".  The short-form option only shows a summary,
15587         and doesn't layout the full man page.  Grep for the full option name
15588         in the summary, too.
15589
15590 2010-04-19  Bruno Haible  <bruno@clisp.org>
15591
15592         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15593         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15594         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15595         mention of RELOCATABLE_STRIP.
15596         Reported by Sylvain Beucler <beuc@beuc.net>.
15597
15598 2010-04-19  Bruno Haible  <bruno@clisp.org>
15599
15600         * lib/diffseq.h: Fix typo in comment.
15601         Reported by Eric Blake.
15602
15603 2010-04-19  Bruno Haible  <bruno@clisp.org>
15604
15605         ioctl: Move autoconf macro to a .m4 file.
15606         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15607         * modules/ioctl (Files): Add it.
15608         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15609         Reported by Ian Beckwith <ianb@erislabs.net>.
15610
15611 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15612             Bruno Haible  <bruno@clisp.org>
15613
15614         diffseq: Accommodate use-case with abstract arrays.
15615         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15616         is not defined.
15617         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15618         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15619
15620 2010-04-18  Bruno Haible  <bruno@clisp.org>
15621
15622         * doc/posix-headers/stdbool.texi: More precise wording.
15623
15624 2010-04-17  Jim Meyering  <meyering@redhat.com>
15625
15626         maint.mk: use gnu-style indentation in an embedded perl script
15627         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15628         Rename variable: s/two/last_two_bytes/
15629
15630 2010-04-16  Eric Blake  <eblake@redhat.com>
15631
15632         test-stdbool: skip test that fails with Solaris CC
15633         * tests/test-stdbool.c (f): Skip test that causes compilation
15634         error under buggy C++ compiler.
15635         * lib/stdbool.in.h: Document the limitation.
15636         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15637
15638         setenv: allow compilation with C++
15639         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15640         register keyword.
15641
15642         stdint: allow test to pass with C++
15643         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15644
15645         getopt: allow compilation with C++
15646         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15647         struct.
15648         * lib/getopt.c (_getopt_internal_r): Use correct type.
15649         Reported by Dagobert Michelson, via Joel E. Denny.
15650
15651 2010-04-16  Bruno Haible  <bruno@clisp.org>
15652
15653         Override netdb.h always.
15654         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15656         Reported by Ludovic Courtès <ludo@gnu.org>.
15657
15658 2010-04-15  Bruno Haible  <bruno@clisp.org>
15659
15660         openpty: Fix mistake from 2010-03-21.
15661         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15662         Reported by Simon Josefsson.
15663
15664 2010-04-15  Eric Blake  <eblake@redhat.com>
15665
15666         test-forkpty: fix expected signature
15667         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15668         Reported by Simon Josefsson.
15669
15670 2010-04-15  Jim Meyering  <meyering@redhat.com>
15671
15672         maint.mk: texinfo_suffix_re_: correct the default regexp
15673         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15674
15675         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15676         make it configurable via texinfo_suffix_re_.
15677
15678 2010-04-14  Eric Blake  <eblake@redhat.com>
15679
15680         strtok_r: relax license to LGPLv2+
15681         * modules/strtok_r (License): Relax license.
15682         Reported by Matthias Bolte.
15683
15684 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15685
15686         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15687         version 1.4.4 by default instead of requiring the libgcrypt
15688         version used during build.  This makes it possible to use the
15689         application with older but still binary compatible libgcrypt
15690         versions.
15691
15692 2010-04-13  Eric Blake  <eblake@redhat.com>
15693
15694         getopt-gnu: match recent glibc fixes and posix ruling
15695         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15696         '+' handling, when requesting extensions.
15697         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15698         'W;' handling.
15699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15700         * doc/posix-functions/getopt.texi (getopt): Document this.
15701         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15703         Likewise.
15704
15705         getopt: merge bug fixes from glibc
15706         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15707         diagnostics.  Honor '+:' correctly.  Reject ';'.
15708
15709         getopt-posix: detect MacOS bug
15710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15711         optind when missing a required argument.
15712         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15713         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15714         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15715         Likewise.
15716
15717         getopt-posix: avoid spurious failure on Solaris
15718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15719         an indicator that setting optind=1 is sufficient for reset.
15720
15721         getopt-posix: avoid spurious failure on FreeBSD
15722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15723         in POSIX mode, since the m4 test uses it.
15724
15725         gnulib-tool: silence warning on BSD sh
15726         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15727
15728 2010-04-13  Jim Meyering  <meyering@redhat.com>
15729
15730         doc: users.txt: GNU patch now uses gnulib
15731         * users.txt: Add patch.
15732
15733 2010-04-12  Jim Meyering  <meyering@redhat.com>
15734
15735         maint.mk: generate more concise timing data for syntax-check rules
15736         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15737         " done" from each line that reports a syntax-check test duration.
15738
15739 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15740
15741         git-version-gen: use "git update-index..." rather than "git status"
15742         * build-aux/git-version-gen: Use git update-index --refresh, not
15743         "git status".  With some versions of git, "git status" would fail
15744         to update the index and result in an unwarranted "-dirty" suffix.
15745
15746 2010-04-11  Jim Meyering  <meyering@redhat.com>
15747
15748         openat: correct formatting (no semantic change)
15749         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15750         Suggested by Bruno Haible.
15751
15752 2010-04-11  Bruno Haible  <bruno@clisp.org>
15753
15754         Stricter declaration checking in testdirs.
15755         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15756         If for_tests is true, augment AM_CPPFLAGS to define
15757         GNULIB_STRICT_CHECKING.
15758         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15759         GNULIB_STRICT_CHECKING is defined, verify that the function is
15760         declared.
15761
15762 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15763             Bruno Haible  <bruno@clisp.org>
15764
15765         libunistring: Improve configure output.
15766         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15767         Don't say "consider installing GNU libunistring" when checking again
15768         with libiconv.
15769
15770 2010-04-11  Bruno Haible  <bruno@clisp.org>
15771
15772         libunistring: Correct value of $LTLIBUNISTRING.
15773         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15774         correct the value of $LTLIBUNISTRING.
15775
15776 2010-04-11  Bruno Haible  <bruno@clisp.org>
15777
15778         havelib: Add static libraries to LIBS in the right order.
15779         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15780         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15781
15782 2010-04-11  Bruno Haible  <bruno@clisp.org>
15783
15784         libunistring: Detect libunistring also when it depends on libiconv.
15785         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15786         the second AC_LIB_HAVE_LINKFLAGS invocation.
15787
15788 2010-04-11  James Youngman  <jay@gnu.org>
15789
15790         close-stream: declare local scalars to be "const"
15791         * lib/close-stream.c (close_stream): Make boolean variables const
15792         to document the fact that we set but do not change them.
15793
15794 2010-04-11  Bruno Haible  <bruno@clisp.org>
15795
15796         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15797
15798 2010-04-11  Jim Meyering  <meyering@redhat.com>
15799
15800         maint.mk: don't include dist-check.mk
15801         * top/maint.mk: Remove bogus include directive.
15802
15803         maint.mk: improve empty-line-at-EOF check
15804         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15805         solution, rather than tail+Perl-based one.  The latter would read
15806         a few kilobytes from the end of each file, and did not handle empty
15807         files properly.
15808
15809         maint.mk: print the elapsed time for each syntax-check rule
15810         * top/maint.mk (sc_m_rules_): Save start time in a file.
15811         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15812         (local-check): Interpose the .z rules
15813
15814 2010-04-11  Jim Meyering  <meyering@redhat.com>
15815
15816         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15817         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15818         empty file with one that ends in an empty line.
15819
15820 2010-04-10  Bruno Haible  <bruno@clisp.org>
15821
15822         mkdir: Make it work on mingw64.
15823         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15824         * lib/mkdir.c: Update comment.
15825         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15826
15827 2010-04-10  Bruno Haible  <bruno@clisp.org>
15828
15829         Don't override improved macro from newer autoconf.
15830         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15831         autoconf >= 2.62.
15832         Reported by Joel E. Denny <jdenny@clemson.edu>.
15833
15834 2010-04-10  Jim Meyering  <meyering@redhat.com>
15835
15836         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15837         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15838
15839         maint.mk: correct a diagnostic
15840         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15841         in diagnostic; now use $prohibit.
15842
15843 2010-04-10  Bruno Haible  <address@hidden>
15844
15845         fchownat: Fix a C++ test error on Solaris 8.
15846         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15847         the function does not exist.
15848
15849 2010-04-10  Bruno Haible  <bruno@clisp.org>
15850
15851         vasnprintf: Add more tests.
15852         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15853         (test_function): Test converting an invalid wide string.
15854
15855         vasnprintf: Correct handling of unconvertible wide string arguments.
15856         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15857         VASNPRINTF.
15858         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15859         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15860         smaller than the expected maximum need for the directive. Set errno to
15861         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15862         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15864         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15865         * modules/vasnprintf (Files): Add m4/printf.m4.
15866         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15867
15868 2010-04-10  Bruno Haible  <bruno@clisp.org>
15869
15870         vasnprintf: Fix crash in %ls directive.
15871         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15872         string is passed as argument to %ls, with no precision and no width.
15873         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15874
15875 2010-04-10  Bruno Haible  <bruno@clisp.org>
15876
15877         vasnprintf: Fix multiple test failures on mingw.
15878         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15879         _snprintf, or snwprintf, not _snwprintf.
15880
15881 2010-04-10  Bruno Haible  <bruno@clisp.org>
15882
15883         write: Fix a C++ test error on mingw.
15884         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15885
15886 2010-04-10  Bruno Haible  <bruno@clisp.org>
15887
15888         vasnprintf test: Reduce code duplication.
15889         * tests/test-vasnprintf.c (test_function): New function, extracted from
15890         test_vasnprintf.
15891         (test_vasnprintf, test_asnprintf): Invoke it.
15892
15893 2010-04-10  Bruno Haible  <bruno@clisp.org>
15894
15895         strnlen: Fix warning in C++ mode on MacOS X.
15896         * lib/string.in.h (strnlen): Use the modern idiom.
15897         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15898         defining strnlen as a macro already in <config.h>.
15899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15900         REPLACE_STRNLEN.
15901         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15902         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15903
15904 2010-04-08  James Youngman  <jay@gnu.org>
15905
15906         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15907         the example.
15908
15909 2010-04-09  Jim Meyering  <meyering@redhat.com>
15910
15911         maint.mk: print better diagnostic when there is no $(_hv_file)
15912         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15913         announce that when $(_hv_file) (aka help-version) does not exist.
15914
15915         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15916         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15917         not try to interpret its random input bytes.  Jarno Rajahalme reported
15918         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15919         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15920         (mktempd_): Likewise, just in case.
15921
15922         ftruncate: add two years to projected module removal date: 2012
15923         * m4/ftruncate.m4: Adjust comments.
15924
15925         ftruncate: mark module as obsolete; even MinGW provides it, now
15926         * modules/ftruncate (Status): Obsolete.
15927         (Notice): Say that.
15928         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15930
15931 2010-04-08  Bruno Haible  <bruno@clisp.org>
15932
15933         Fix side effects from tests-related modules.
15934         * modules/dprintf-posix (Comment): New section.
15935         * modules/fprintf-posix (Comment): Likewise.
15936         * modules/obstack-printf-posix (Comment): Likewise.
15937         * modules/printf-posix (Comment): Likewise.
15938         * modules/snprintf-posix (Comment): Likewise.
15939         * modules/sprintf-posix (Comment): Likewise.
15940         * modules/vasnprintf-posix (Comment): Likewise.
15941         * modules/vasprintf-posix (Comment): Likewise.
15942         * modules/vdprintf-posix (Comment): Likewise.
15943         * modules/vfprintf-posix (Comment): Likewise.
15944         * modules/vprintf-posix (Comment): Likewise.
15945         * modules/vsnprintf-posix (Comment): Likewise.
15946         * modules/vsprintf-posix (Comment): Likewise.
15947         * modules/xprintf-posix (Comment): Likewise.
15948         * modules/xvasprintf-posix (Comment): Likewise.
15949         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15950         * modules/floorf-tests (Depends-on): Likewise.
15951         * modules/round-tests (Depends-on): Likewise.
15952         * modules/roundf-tests (Depends-on): Likewise.
15953         * modules/trunc-tests (Depends-on): Likewise.
15954         * modules/truncf-tests (Depends-on): Likewise.
15955         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15956         'fprintf-posix' module is not present.
15957         * tests/test-floorf2.c (check): Likewise.
15958         * tests/test-trunc2.c (check): Likewise.
15959         * tests/test-truncf2.c (check): Likewise.
15960         * tests/test-round2.c (equal): Likewise.
15961         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15962
15963 2010-04-07  Karl Berry  <karl@gnu.org>
15964
15965         * config/srclist.txt,
15966         * config/srclistvars.sh,
15967         * config/srclist-update: doc fixes.
15968
15969 2010-04-07  Jim Meyering  <meyering@redhat.com>
15970
15971         maint.mk: add a PATH crosschecking syntax-check rule
15972         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15973         Useful if you use a test like the one in help-version (coreutils,
15974         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15975         printed by prog --version.
15976
15977 2010-04-06  Bruno Haible  <bruno@clisp.org>
15978
15979         Fix link error on mingw.
15980         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15981         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15982
15983 2010-04-06  Bruno Haible  <bruno@clisp.org>
15984
15985         Assume rmdir exists.
15986         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15987
15988 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15989
15990         doc: update users.txt
15991         * users.txt: Add gcal.
15992
15993 2010-04-06  Jim Meyering  <meyering@redhat.com>
15994
15995         init.sh: simply unset TMPDIR rather than risking env -i
15996         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15997         although it probably works fine on all Unix-based systems, some
15998         systems (Cygwin?) cannot tolerate a totally cleared environment.
15999         Suggestion from Eric Blake.
16000
16001 2010-04-06  Jim Meyering  <meyering@redhat.com>
16002
16003         init.sh: portability fix: use env's POSIX-specified -i option not -u
16004         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
16005         than unportable env -u.  Solaris 5.11's env lacks support for -u.
16006
16007 2010-04-05  Bruno Haible  <bruno@clisp.org>
16008
16009         btowc: Work around Cygwin 1.7.2 bug.
16010         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
16011         does not map NUL to 0.
16012         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
16013
16014 2010-04-05  Bruno Haible  <bruno@clisp.org>
16015
16016         Make the multithread modules work on Cygwin 1.7.2.
16017         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
16018         imported symbols can be declared weak, so that it returns "no" on
16019         Cygwin 1.7.2.
16020
16021 2010-04-05  Bruno Haible  <bruno@clisp.org>
16022
16023         Use the module 'strncat'.
16024         * modules/unistr/u8-strncat (Depends-on): Add strncat.
16025
16026         Tests for module 'strncat'.
16027         * modules/strncat-tests: New file.
16028         * tests/test-strncat.c: New file.
16029
16030         New module 'strncat'.
16031         * lib/string.in.h (strncat): New declaration.
16032         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
16033         * m4/strncat.m4: New file, based on m4/memchr.m4.
16034         * modules/strncat: New file.
16035         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
16036         is declared.
16037         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
16038         REPLACE_STRNCAT.
16039         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
16040         REPLACE_STRNCAT.
16041         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
16042         module.
16043         * tests/test-string-c++.cc: Check signature of strncat.
16044
16045 2010-04-05  Jim Meyering  <meyering@redhat.com>
16046
16047         xstrtoumax-tests: convert to use init.sh
16048         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
16049         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16050         Use Exit, not exit.
16051         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16052
16053         xstrtoimax-tests: convert to use init.sh
16054         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
16055         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16056         Use Exit, not exit.
16057         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16058
16059 2010-04-05  Bruno Haible  <bruno@clisp.org>
16060
16061         sys_socket: Avoid #define replacements in C++ mode.
16062         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
16063         warning to the function if possible, rather than #defining the symbol
16064         to a dysfunctional alias.
16065
16066 2010-04-05  Bruno Haible  <bruno@clisp.org>
16067
16068         fseeko: Fix C++ test error on mingw.
16069         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
16070         gl_FUNC_FSEEKO.
16071         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
16072         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
16073         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
16074         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
16075
16076 2010-04-05  Bruno Haible  <bruno@clisp.org>
16077
16078         duplocale: Improve test output.
16079         * tests/test-duplocale.c (main): Print reason for skipped test.
16080
16081 2010-04-05  Bruno Haible  <bruno@clisp.org>
16082
16083         Assume rmdir exists.
16084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
16085         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
16086
16087 2010-04-05  Bruno Haible  <bruno@clisp.org>
16088
16089         Fix link error on Solaris 8 with cc.
16090         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
16091
16092 2010-04-05  Bruno Haible  <bruno@clisp.org>
16093
16094         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16095         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
16096
16097 2010-04-05  Bruno Haible  <bruno@clisp.org>
16098
16099         vasprintf: Update documentation.
16100         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
16101
16102 2010-04-05  Bruno Haible  <bruno@clisp.org>
16103
16104         ptsname: Improve test.
16105         * tests/test-ptsname.c (main): Also try the various master names of BSD
16106         systems.
16107
16108 2010-04-05  Bruno Haible  <bruno@clisp.org>
16109
16110         memchr: Avoid a possible C++ test error.
16111         * lib/string.in.h (memchr): Provide declaration if function is missing.
16112         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
16113         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
16114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
16115         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
16116
16117 2010-04-05  Bruno Haible  <bruno@clisp.org>
16118
16119         strtok_r: Improve idiom.
16120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
16121         AC_LIBOBJ is used.
16122
16123 2010-04-05  Bruno Haible  <bruno@clisp.org>
16124
16125         strdup: Improve idiom.
16126         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
16127         AC_LIBOBJ is used.
16128         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
16129         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
16130         when AC_LIBOBJ is used.
16131
16132 2010-04-05  Bruno Haible  <bruno@clisp.org>
16133
16134         mbsinit, mbrtowc, wcrtomb: Improve idioms.
16135         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
16136         don't set REPLACE_MBSINIT to 1.
16137         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
16138         don't set REPLACE_MBRTOWC to 1.
16139         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
16140         exist, don't set REPLACE_MBSRTOWCS to 1.
16141         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
16142         exist, don't set REPLACE_MBSNRTOWCS to 1.
16143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
16144         don't set REPLACE_WCRTOMB to 1.
16145         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
16146         exist, don't set REPLACE_WCSRTOMBS to 1.
16147         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
16148         exist, don't set REPLACE_WCSNRTOMBS to 1.
16149
16150 2010-04-05  Bruno Haible  <bruno@clisp.org>
16151
16152         ldexpl: Improve idiom.
16153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
16154         make sure to set HAVE_DECL_LDEXPL to 0.
16155
16156 2010-04-05  Jim Meyering  <meyering@redhat.com>
16157
16158         xstrtol-tests: convert to use init.sh
16159         * modules/xstrtol-tests (Files): Add tests/init.sh.
16160         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16161         Use Exit, not exit.
16162         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16163
16164         atexit-tests: convert to use init.sh
16165         * modules/atexit-tests (Files): Add tests/init.sh.
16166         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
16167         Use Exit, not exit.
16168         Remove uses of $EXEEXT and "./" to run a program in the current dir.
16169
16170         init.sh: fix typo
16171         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
16172
16173         init.sh: make it easier for a test script to write to the tty, ...
16174         when using automake's parallel-tests mode.
16175         * tests/init.sh (stderr_fileno_): Define overridable variable.
16176         (warn_): New function, to use it.
16177         (fail_, skip_, framework_failure_): Use warn_.
16178
16179 2010-04-04  Bruno Haible  <bruno@clisp.org>
16180
16181         btowc: Avoid warning.
16182         * lib/btowc.c: Include <stdlib.h>.
16183         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
16184
16185 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16186             Bruno Haible  <bruno@clisp.org>
16187
16188         wchar: Port to NetBSD 1.5.
16189         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
16190         * lib/wctype.in.h (WEOF): Likewise.
16191
16192 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
16193             Bruno Haible  <bruno@clisp.org>
16194
16195         Port extended stdio to NetBSD 1.5.
16196         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
16197         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
16198         older.
16199
16200 2010-04-04  Bruno Haible  <bruno@clisp.org>
16201
16202         string: Remove unused substitution.
16203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
16204         HAVE_DECL_STRERROR.
16205         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
16206
16207 2010-04-04  Bruno Haible  <bruno@clisp.org>
16208
16209         strtod: Avoid a possible C++ test error.
16210         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
16211         set REPLACE_STRTOD.
16212
16213 2010-04-04  Bruno Haible  <bruno@clisp.org>
16214
16215         strerror: Update documentation.
16216         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
16217
16218 2010-04-04  Bruno Haible  <bruno@clisp.org>
16219
16220         stdio: Fix some C++ test errors on Solaris 8 with GCC.
16221         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
16222         _GL_CXXALIAS_SYS_CAST.
16223
16224 2010-04-04  Bruno Haible  <bruno@clisp.org>
16225
16226         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
16227         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
16228         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
16229         REPLACE_FREXPL to 1.
16230         * doc/posix-functions/frexpl.texi: Update documentation.
16231
16232 2010-04-04  Bruno Haible  <bruno@clisp.org>
16233
16234         math: Fix some C++ test errors on Solaris 8 and Cygwin.
16235         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
16236
16237 2010-04-04  Bruno Haible  <bruno@clisp.org>
16238
16239         Implement nanosleep for native Windows.
16240         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
16241
16242 2010-04-04  Bruno Haible  <bruno@clisp.org>
16243
16244         math: Fix some C++ test errors on Solaris 8.
16245         * lib/math.in.h (truncf, trunc): Use simpler idiom.
16246
16247 2010-04-04  Bruno Haible  <bruno@clisp.org>
16248
16249         math: Fix some C++ test errors on Cygwin.
16250         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
16251         truncl): Provide declaration if the system does not have it.
16252         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
16253         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
16254         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
16255         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
16256         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
16257         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
16258         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
16259         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
16260         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
16261         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
16262         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
16263         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
16264         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
16265         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
16266         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
16267         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
16268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
16269         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16270         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16271         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
16272         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
16273         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
16274
16275 2010-04-04  Bruno Haible  <bruno@clisp.org>
16276
16277         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
16278         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16279         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16280         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
16281         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16282         * m4/isinf.m4 (gl_ISINF): Likewise.
16283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16284
16285 2010-04-04  Bruno Haible  <bruno@clisp.org>
16286
16287         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
16288         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16289
16290 2010-04-04  Bruno Haible  <bruno@clisp.org>
16291
16292         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
16293         * modules/tmpfile (configure.ac): Update.
16294
16295         tmpfile: Fix C++ test error on mingw.
16296         * lib/stdio.in.h (tmpfile): New declaration.
16297         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
16298         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
16299         * modules/tmpfile (Depends-on): Add stdio.
16300         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
16301         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
16302         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
16303         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
16304         REPLACE_TMPFILE.
16305         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
16306
16307 2010-04-04  Bruno Haible  <bruno@clisp.org>
16308
16309         ioctl: Fix C++ test error on mingw.
16310         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
16311         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
16312         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
16313
16314 2010-04-03  Bruno Haible  <bruno@clisp.org>
16315
16316         wcwidth: Fix C++ test error on mingw.
16317         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
16318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
16319         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
16320
16321 2010-04-03  Bruno Haible  <bruno@clisp.org>
16322
16323         nanosleep: Fix C++ test error on mingw.
16324         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
16325         * lib/time.in.h (nanosleep): Use modern idiom.
16326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
16327         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
16328         REPLACE_NANOSLEEP to 1.
16329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
16330         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16331
16332 2010-04-03  Bruno Haible  <bruno@clisp.org>
16333
16334         strptime: Fix C++ test error on mingw.
16335         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16336         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16337         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16338         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16339         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16340         not REPLACE_STRPTIME.
16341         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16342         REPLACE_STRPTIME.
16343
16344 2010-04-03  Bruno Haible  <bruno@clisp.org>
16345
16346         timegm: Fix C++ test error on mingw.
16347         * lib/time.in.h (timegm): Use modern idiom.
16348         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16349         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16351         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16352
16353 2010-04-03  Bruno Haible  <bruno@clisp.org>
16354
16355         timegm: Assume declaration if function exists.
16356         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16357         if it exists. Don't clobber ac_cv_func_timegm.
16358
16359 2010-04-03  Bruno Haible  <bruno@clisp.org>
16360
16361         time_r: Fix C++ test error on mingw.
16362         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16363         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16364         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16366         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16367
16368 2010-04-03  Bruno Haible  <bruno@clisp.org>
16369
16370         time_r: Minor updates.
16371         * modules/time_r (Description): Mention the provided functions.
16372         * lib/time_r.c: Don't include <string.h>.
16373         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16374         * doc/posix-functions/localtime_r.texi: Likewise.
16375
16376 2010-04-03  Bruno Haible  <bruno@clisp.org>
16377
16378         time: Fix regression introduced on 2010-03-08.
16379         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16380         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16381
16382 2010-04-03  Jim Meyering  <meyering@redhat.com>
16383
16384         maint.mk: don't silently disable project-specific syntax-check rules
16385         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16386         that they need to convert their project-specific syntax-check rules
16387         to use the new _sc_search_regexp.
16388
16389 2010-04-03  Bruno Haible  <bruno@clisp.org>
16390
16391         fchdir: Fix regression introduced on 2010-03-08.
16392         * lib/unistd.in.h (fchdir): Fix declaration.
16393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16395         REPLACE_FCHDIR.
16396         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16397         REPLACE_FCHDIR.
16398
16399 2010-04-03  Bruno Haible  <bruno@clisp.org>
16400
16401         getpagesize: Fix C++ test error on mingw.
16402         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16403         system does not declare the function.
16404         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16405         declared.
16406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16407         HAVE_DECL_GETPAGESIZE.
16408         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16409
16410 2010-04-03  Bruno Haible  <bruno@clisp.org>
16411
16412         stdio: Make C++ tests work on mingw.
16413         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16414         does not declare the function.
16415
16416 2010-04-03  Bruno Haible  <bruno@clisp.org>
16417
16418         ftello: Fix C++ test error on mingw.
16419         * lib/stdio.in.h (ftello): Use modern idiom.
16420         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16421         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16422         is missing and that it needs to be replaced.
16423         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16425         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16426
16427 2010-04-03  Bruno Haible  <bruno@clisp.org>
16428
16429         fseeko: Fix C++ test error on mingw.
16430         * lib/stdio.in.h (fseeko): Use modern idiom.
16431         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16433         is missing and that it needs to be replaced.
16434         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16436         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16437
16438 2010-04-03  Bruno Haible  <bruno@clisp.org>
16439
16440         mkstemp: Fix C++ test error on mingw.
16441         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16443         function is missing and that it needs to be replaced.
16444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16445         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16446
16447 2010-04-03  Bruno Haible  <bruno@clisp.org>
16448
16449         stpncpy: Fix C++ test error on mingw.
16450         * lib/string.in.h (stpncpy): Use modern idiom.
16451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16452         function is missing and that it needs to be replaced.
16453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16454         REPLACE_STPNCPY.
16455         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16456
16457 2010-04-03  Bruno Haible  <bruno@clisp.org>
16458
16459         sys_stat: Fix C++ test error on mingw.
16460         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16461         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16462
16463 2010-04-03  Bruno Haible  <bruno@clisp.org>
16464
16465         pty: Update doc.
16466         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16467
16468 2010-04-03  Bruno Haible  <bruno@clisp.org>
16469
16470         unistd: Fix C++ test error on mingw.
16471         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16472
16473 2010-04-03  Bruno Haible  <bruno@clisp.org>
16474
16475         Update doc regarding mingw.
16476         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16477         * doc/glibc-functions/login_tty.texi: Likewise.
16478         * doc/glibc-functions/forkpty.texi: Likewise.
16479
16480 2010-04-03  Bruno Haible  <bruno@clisp.org>
16481
16482         stdlib: Avoid compilation failure of c-strtold on mingw.
16483         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16484
16485 2010-04-03  Bruno Haible  <bruno@clisp.org>
16486
16487         locale: Make C++ tests work on Cygwin and mingw.
16488         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16489         cannot provide the function.
16490         Reported by Simon Josefsson.
16491
16492 2010-04-03  Bruno Haible  <bruno@clisp.org>
16493
16494         localename: Port to MacOS X 10.6.
16495         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16496         memory layout of the locales in MacOS X 10.6 as well.
16497         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16498
16499 2010-04-02  Bruno Haible  <bruno@clisp.org>
16500
16501         gnulib-tool: Ensure that long-running tests are executed last.
16502         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16503         running tests after the one for the other tests.
16504
16505 2010-04-02  Bruno Haible  <bruno@clisp.org>
16506
16507         gnulib-tool: Ensure the tests in the main directory are executed first.
16508         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16509         start with the current directory.
16510
16511 2010-04-02  Bruno Haible  <bruno@clisp.org>
16512
16513         Tests for module 'havelib', moved here from GNU gettext.
16514         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16515         modifications.
16516         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16517         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16518         with modifications.
16519         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16520         modifications.
16521         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16522         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16523         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16524         with modifications.
16525         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16526         with modifications.
16527         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16528         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16529         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16530         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16531         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16532         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16533         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16534         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16535         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16536         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16537         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16538         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16539         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16540         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16541         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16542         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16543         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16544         with modifications.
16545         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16546         with modifications.
16547         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16548         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16549         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16550         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16551         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16552         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16553         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16554         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16555         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16556         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16557         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16558         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16559         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16560         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16561         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16562         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16563         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16564         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16565         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16566         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16567         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16568         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16569         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16570         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16571         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16572         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16573         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16574         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16575         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16576         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16577         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16578         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16579         * tests/havelib/rpathx/rpathx.c: New file, from
16580         gettext/autoconf-lib-link.
16581         * tests/havelib/rpathx/Makefile.am: New file, from
16582         gettext/autoconf-lib-link.
16583         * tests/havelib/rpathx/configure.ac: New file, from
16584         gettext/autoconf-lib-link with modifications.
16585         * tests/havelib/rpathy/rpathy.c: New file, from
16586         gettext/autoconf-lib-link.
16587         * tests/havelib/rpathy/Makefile.am: New file, from
16588         gettext/autoconf-lib-link.
16589         * tests/havelib/rpathy/configure.ac: New file, from
16590         gettext/autoconf-lib-link with modifications.
16591         * tests/havelib/rpathz/rpathz.c: New file, from
16592         gettext/autoconf-lib-link.
16593         * tests/havelib/rpathz/Makefile.am: New file, from
16594         gettext/autoconf-lib-link.
16595         * tests/havelib/rpathz/configure.ac: New file, from
16596         gettext/autoconf-lib-link with modifications.
16597         * tests/havelib/rpathlx/usex.c: New file, from
16598         gettext/autoconf-lib-link.
16599         * tests/havelib/rpathlx/Makefile.am: New file, from
16600         gettext/autoconf-lib-link.
16601         * tests/havelib/rpathlx/configure.ac: New file, from
16602         gettext/autoconf-lib-link with modifications.
16603         * tests/havelib/rpathly/usey.c: New file, from
16604         gettext/autoconf-lib-link.
16605         * tests/havelib/rpathly/Makefile.am: New file, from
16606         gettext/autoconf-lib-link.
16607         * tests/havelib/rpathly/configure.ac: New file, from
16608         gettext/autoconf-lib-link with modifications.
16609         * tests/havelib/rpathlz/usez.c: New file, from
16610         gettext/autoconf-lib-link.
16611         * tests/havelib/rpathlz/Makefile.am: New file, from
16612         gettext/autoconf-lib-link.
16613         * tests/havelib/rpathlz/configure.ac: New file, from
16614         gettext/autoconf-lib-link with modifications.
16615         * tests/havelib/rpathlyx/usey.c: New file, from
16616         gettext/autoconf-lib-link.
16617         * tests/havelib/rpathlyx/Makefile.am: New file, from
16618         gettext/autoconf-lib-link.
16619         * tests/havelib/rpathlyx/configure.ac: New file, from
16620         gettext/autoconf-lib-link with modifications.
16621         * tests/havelib/rpathlzyx/usez.c: New file, from
16622         gettext/autoconf-lib-link.
16623         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16624         gettext/autoconf-lib-link.
16625         * tests/havelib/rpathlzyx/configure.ac: New file, from
16626         gettext/autoconf-lib-link with modifications.
16627         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16628         with modifications.
16629
16630 2010-04-02  Bruno Haible  <bruno@clisp.org>
16631
16632         gnulib-tool: Create distributed built sources also for the tests.
16633         * gnulib-tool (func_create_testdir): Also generate distributed built
16634         sources in the tests directory.
16635
16636 2010-04-02  Bruno Haible  <bruno@clisp.org>
16637
16638         gnulib-tool: Obey user's environment variables.
16639         * gnulib-tool (func_create_testdir): When creating built sources,
16640         respect the environment variables for autoconf, automake, etc. given by
16641         the user.
16642
16643 2010-04-02  Bruno Haible  <bruno@clisp.org>
16644
16645         gnulib-tool: Provide the value of --m4-base to modules.
16646         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16647         of gl_m4_base.
16648
16649 2010-04-02  Eric Blake  <eblake@redhat.com>
16650
16651         maint.mk: fix some fallout
16652         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16653         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16654
16655 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16656
16657         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16658         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16659         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16660         (sc_cast_of_x_alloc_return_value): Likewise.
16661         (sc_cast_of_alloca_return_value): Likewise.
16662         (sc_space_tab): Likewise.
16663         (sc_prohibit_atoi_atof): Likewise.
16664         (sc_prohibit_magic_number_exit): Likewise.
16665         (sc_error_exit_success): Likewise.
16666         (sc_file_system): Likewise.
16667         (sc_prohibit_have_config_h): Likewise.
16668         (sc_require_config_h): Likewise.
16669         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16670         (sc_obsolete_symbols): Likewise.
16671         (sc_changelog): Likewise.
16672         (sc_program_name): Likewise.
16673         (sc_the_the): Likewise.
16674         (sc_trailing_blank): Likewise.
16675         (sc_two_space_separator_in_usage): Likewise.
16676         (sc_useless_cpp_parens): Likewise.
16677         (sc_GPL_version): Likewise.
16678         (sc_GFDL_version): Likewise.
16679         (sc_texinfo_acronym): Likewise.
16680         (sc_prohibit_cvs_keyword): Likewise.
16681         (sc_prohibit_stat_st_blocks): Likewise.
16682         (sc_prohibit_S_IS_definition): Likewise.
16683         (sc_redundant_const): Likewise.
16684         (sc_makefile_TAB_only_indentation): Likewise.
16685         (sc_m4_quote_check): Likewise.
16686         (sc_makefile_path_separator_check): Likewise.
16687         (sc_copyright_check): Likewise.
16688         (sc_Wundef_boolean): Likewise.
16689         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16690
16691         maint.mk: match 0 or more whitespace-before-function-call '('
16692         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16693         that have zero or two-and-more spaces between the function name
16694         and the open parenthesis.
16695         (sc_error_message_warn_fatal): Likewise.
16696         (sc_error_message_uppercase): Likewise.
16697         (sc_error_message_period): Likewise.
16698
16699 2010-03-31  Eric Blake  <eblake@redhat.com>
16700
16701         maint.mk: check for [ as well as test
16702         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16703         Based on a libvirt report by Matthias Bolte.
16704
16705         gnumakefile: don't squelch _version output
16706         * top/GNUmakefile (_version): Create one-shot dependency rather
16707         than using $(shell) when version must be regenerated.
16708         (_autoreconf): Run verbosely, by default.
16709
16710         sys_time: avoid compiler warnings
16711         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16712         unconditional, fixing regression from 2010-03-29.
16713         Reported by Simon Josefsson.
16714
16715 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16716
16717         maint.mk: s/_header_without_use/_sc_header_without_use/
16718         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16719         (sc_prohibit_assert_without_use): Use the new name.
16720         (sc_prohibit_close_stream_without_use): Likewise.
16721         (sc_prohibit_getopt_without_use): Likewise.
16722         (sc_prohibit_quotearg_without_use): Likewise.
16723         (sc_prohibit_quote_without_use): Likewise.
16724         (sc_prohibit_long_options_without_use): Likewise.
16725         (sc_prohibit_inttostr_without_use): Likewise.
16726         (sc_prohibit_ignore_value_without_use): Likewise.
16727         (sc_prohibit_error_without_use): Likewise.
16728         (sc_prohibit_xalloc_without_use): Likewise.
16729         (sc_prohibit_hash_without_use): Likewise.
16730         (sc_prohibit_hash_pjw_without_use): Likewise.
16731         (sc_prohibit_safe_read_without_use): Likewise.
16732         (sc_prohibit_argmatch_without_use): Likewise.
16733         (sc_prohibit_canonicalize_without_use): Likewise.
16734         (sc_prohibit_root_dev_ino_without_use): Likewise.
16735         (sc_prohibit_openat_without_use): Likewise.
16736         (sc_prohibit_c_ctype_without_use): Likewise.
16737         (sc_prohibit_signal_without_use): Likewise.
16738         (sc_prohibit_intprops_without_use): Likewise.
16739
16740 2010-03-30  Eric Blake  <eblake@redhat.com>
16741
16742         maint: improve module indicators
16743         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16744         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16745         columns, and avoid extra macro expansion.
16746
16747         fdopendir: work around FreeBSD bug
16748         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16750         * modules/dirent (Makefile.am): Substitute it.
16751         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16752         declaration.
16753         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16754         fix.
16755         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16756
16757 2010-03-29  Bruno Haible  <bruno@clisp.org>
16758
16759         Emit #pragma system_header after the inclusion guard, not before.
16760         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16761         guard that spans the entire file, not before. This enables an
16762         optimization in GCC's preprocessor.
16763         * lib/ctype.in.h: Likewise.
16764         * lib/dirent.in.h: Likewise.
16765         * lib/errno.in.h: Likewise.
16766         * lib/float.in.h: Likewise.
16767         * lib/getopt.in.h: Likewise.
16768         * lib/iconv.in.h: Likewise.
16769         * lib/langinfo.in.h: Likewise.
16770         * lib/locale.in.h: Likewise.
16771         * lib/math.in.h: Likewise.
16772         * lib/netdb.in.h: Likewise.
16773         * lib/netinet_in.in.h: Likewise.
16774         * lib/pty.in.h: Likewise.
16775         * lib/sched.in.h: Likewise.
16776         * lib/se-selinux.in.h: Likewise.
16777         * lib/search.in.h: Likewise.
16778         * lib/spawn.in.h: Likewise.
16779         * lib/stdarg.in.h: Likewise.
16780         * lib/stdint.in.h: Likewise.
16781         * lib/string.in.h: Likewise.
16782         * lib/strings.in.h: Likewise.
16783         * lib/sys_file.in.h: Likewise.
16784         * lib/sys_ioctl.in.h: Likewise.
16785         * lib/sys_time.in.h: Likewise.
16786         * lib/sys_times.in.h: Likewise.
16787         * lib/sys_utsname.in.h: Likewise.
16788         * lib/sys_wait.in.h: Likewise.
16789         * lib/sysexits.in.h: Likewise.
16790         * lib/wctype.in.h: Likewise.
16791
16792 2010-03-28  James Youngman  <jay@gnu.org>
16793
16794         save-cwd: don't leak a file descriptor when the caller execs.
16795         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16796         saved file descriptor.
16797         * modules/save-cwd (Depends-on): Depend on cloexec.
16798
16799 2010-03-29  Bruno Haible  <bruno@clisp.org>
16800
16801         Remove vestiges of fts-lgpl module.
16802         * lib/fts_.h: Assume GNULIB_FTS is 1.
16803         * lib/fts.c: Likewise.
16804         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16805
16806 2010-03-28  Bruno Haible  <bruno@clisp.org>
16807
16808         Fix definition of tests witness macro.
16809         * gnulib-tool (func_import): Fix definition of witness macro.
16810
16811 2010-03-28  Bruno Haible  <bruno@clisp.org>
16812
16813         Fix ioctl's protoype on glibc systems.
16814         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16815         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16816         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16817         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16818         signature. If not, arrange to replace the ioctl function.
16819         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16820         REPLACE_IOCTL.
16821         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16822         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16823         Reported by Ludovic Courtès <ludo@gnu.org>.
16824
16825 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16826
16827         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16828         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16829         made it so grep -r --include=GLOB* ... did not work.
16830
16831 2010-03-26  Jim Meyering  <meyering@redhat.com>
16832             Eric Blake  <eblake@redhat.com>
16833
16834         maint.mk: prohibit use of test's -o and -a operators
16835         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16836
16837 2010-03-28  Bruno Haible  <bruno@clisp.org>
16838
16839         Remove unused GNULIB_XYZ macro definitions.
16840         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16841         invocation.
16842
16843 2010-03-28  Bruno Haible  <bruno@clisp.org>
16844
16845         Mark privileged tests modules.
16846         * modules/idpriv-drop-tests (Status): New section.
16847         * modules/idpriv-droptemp-tests (Status): New section.
16848
16849 2010-03-28  Bruno Haible  <bruno@clisp.org>
16850
16851         Split C++ tests into separate tests modules.
16852         * modules/dirent-c++-tests: New file, extracted from
16853         modules/dirent-tests.
16854         * modules/dirent-tests: Depend on it.
16855         * modules/fcntl-h-c++-tests: New file, extracted from
16856         modules/fcntl-h-tests.
16857         * modules/fcntl-h-tests: Depend on it.
16858         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16859         * modules/glob-tests: Depend on it.
16860         * modules/iconv-h-c++-tests: New file, extracted from
16861         modules/iconv-h-tests.
16862         * modules/iconv-h-tests: Depend on it.
16863         * modules/langinfo-c++-tests: New file, extracted from
16864         modules/langinfo-tests.
16865         * modules/langinfo-tests: Depend on it.
16866         * modules/locale-c++-tests: New file, extracted from
16867         modules/locale-tests.
16868         * modules/locale-tests: Depend on it.
16869         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16870         * modules/math-tests: Depend on it.
16871         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16872         * modules/pty-tests: Depend on it.
16873         * modules/search-c++-tests: New file, extracted from
16874         modules/search-tests.
16875         * modules/search-tests: Depend on it.
16876         * modules/signal-c++-tests: New file, extracted from
16877         modules/signal-tests.
16878         * modules/signal-tests: Depend on it.
16879         * modules/spawn-c++-tests: New file, extracted from
16880         modules/spawn-tests.
16881         * modules/spawn-tests: Depend on it.
16882         * modules/stdio-c++-tests: New file, extracted from
16883         modules/stdio-tests.
16884         * modules/stdio-tests: Depend on it.
16885         * modules/stdlib-c++-tests: New file, extracted from
16886         modules/stdlib-tests.
16887         * modules/stdlib-tests: Depend on it.
16888         * modules/string-c++-tests: New file, extracted from
16889         modules/string-tests.
16890         * modules/string-tests: Depend on it.
16891         * modules/sys_ioctl-c++-tests: New file, extracted from
16892         modules/sys_ioctl-tests.
16893         * modules/sys_ioctl-tests: Depend on it.
16894         * modules/sys_select-c++-tests: New file, extracted from
16895         modules/sys_select-tests.
16896         * modules/sys_select-tests: Depend on it.
16897         * modules/sys_socket-c++-tests: New file, extracted from
16898         modules/sys_socket-tests.
16899         * modules/sys_socket-tests: Depend on it.
16900         * modules/sys_stat-c++-tests: New file, extracted from
16901         modules/sys_stat-tests.
16902         * modules/sys_stat-tests: Depend on it.
16903         * modules/sys_time-c++-tests: New file, extracted from
16904         modules/sys_time-tests.
16905         * modules/sys_time-tests: Depend on it.
16906         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16907         * modules/time-tests: Depend on it.
16908         * modules/unistd-c++-tests: New file, extracted from
16909         modules/unistd-tests.
16910         * modules/unistd-tests: Depend on it.
16911         * modules/wchar-c++-tests: New file, extracted from
16912         modules/wchar-tests.
16913         * modules/wchar-tests: Depend on it.
16914         * modules/wctype-c++-tests: New file, extracted from
16915         modules/wctype-tests.
16916         * modules/wctype-tests: Depend on it.
16917         Reported by Simon Josefsson.
16918
16919 2010-03-28  Bruno Haible  <bruno@clisp.org>
16920
16921         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16922         * gnulib-tool (func_exists_module): New function, extracted from
16923         func_verify_module.
16924         (func_verify_module): Use it.
16925         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16926         'foo' only if 'foo' exists.
16927         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16928         module.
16929
16930 2010-03-28  Bruno Haible  <bruno@clisp.org>
16931
16932         gnulib-tool: Add support for special categories of tests.
16933         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16934         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16935         (func_usage): Document them.
16936         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16937         inc_unportable_tests, inc_all_tests): New variables.
16938         (func_acceptable): Consider these variables.
16939         (func_modules_transitive_closure): Make it work when the 'Status' field
16940         consists of multiple words.
16941         (func_import): Store and restore the values of inc_cxx_tests,
16942         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16943         inc_all_tests in gnulib-comp.m4.
16944         (func_create_testdir): Set inc_all_tests to true.
16945         * doc/gnulib.texi (Extra tests modules): New section.
16946         Suggested by Jim Meyering.
16947
16948 2010-03-28  Bruno Haible  <bruno@clisp.org>
16949
16950         ansi-c++-opt: Allow turning off the C++ build by default.
16951         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16952         gl_CXX_CHOICE_DEFAULT_NO is defined.
16953         Requested by Eric Blake.
16954
16955 2010-03-28  Bruno Haible  <bruno@clisp.org>
16956
16957         unistd: Avoid #define replacements in C++ mode.
16958         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16959         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16960         setsockopt, shutdown, select): In C++, attach a warning to the function
16961         if possible, rather than #defining the symbol to a dysfunctional alias.
16962         Reported by John W. Eaton <jwe@gnu.org>.
16963
16964 2010-03-28  Bruno Haible  <bruno@clisp.org>
16965
16966         Fix link errors on mingw.
16967         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16968         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16969         $(LIBSOCKET).
16970         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16971         $(LIBSOCKET).
16972
16973 2010-03-28  Bruno Haible  <bruno@clisp.org>
16974             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16975
16976         lib-ignore: Determine different options for different compilers.
16977         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16978         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16979         Add comments.
16980         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16981         * NEWS: Mention the change.
16982
16983 2010-03-27  Bruno Haible  <bruno@clisp.org>
16984
16985         Remove unused GNULIB_XYZ macro definitions.
16986         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16987         * modules/fseek (configure.ac): Likewise.
16988         * modules/ioctl (configure.ac): Likewise.
16989         * modules/open (configure.ac): Likewise.
16990         * modules/stdlib-safer (configure.ac): Likewise.
16991
16992 2010-03-27  Bruno Haible  <bruno@clisp.org>
16993
16994         Add a remark about certain modules.
16995         * modules/malloc (Comment): New section.
16996         * modules/realloc (Comment): Likewise.
16997         * modules/sigpipe (Comment): Likewise.
16998
16999 2010-03-27  Bruno Haible  <bruno@clisp.org>
17000
17001         Resolve conflict between the two kinds of module indicators.
17002         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
17003         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
17004         * modules/canonicalize (configure.ac): Invoke
17005         gl_MODULE_INDICATOR_FOR_TESTS.
17006         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
17007         GNULIB_XYZ.
17008         * tests/test-dirent-c++.cc: Likewise.
17009         * tests/test-dirent-safer.c: Likewise.
17010         * tests/test-dup2.c: Likewise.
17011         * tests/test-fchdir.c: Likewise.
17012         * tests/test-fcntl-h-c++.cc: Likewise.
17013         * tests/test-getopt.c: Likewise.
17014         * tests/test-getopt.h: Likewise.
17015         * tests/test-langinfo-c++.cc: Likewise.
17016         * tests/test-locale-c++.cc: Likewise.
17017         * tests/test-math-c++.cc: Likewise.
17018         * tests/test-pty-c++.cc: Likewise.
17019         * tests/test-search-c++.cc: Likewise.
17020         * tests/test-signal-c++.cc: Likewise.
17021         * tests/test-spawn-c++.cc: Likewise.
17022         * tests/test-stdio-c++.cc: Likewise.
17023         * tests/test-stdlib-c++.cc: Likewise.
17024         * tests/test-string-c++.cc: Likewise.
17025         * tests/test-sys_ioctl-c++.cc: Likewise.
17026         * tests/test-sys_select-c++.cc: Likewise.
17027         * tests/test-sys_socket-c++.cc: Likewise.
17028         * tests/test-sys_stat-c++.cc: Likewise.
17029         * tests/test-sys_time-c++.cc: Likewise.
17030         * tests/test-time-c++.cc: Likewise.
17031         * tests/test-unistd-c++.cc: Likewise.
17032         * tests/test-wchar-c++.cc: Likewise.
17033         * tests/uninorm/test-u8-nfc.c: Likewise.
17034         * tests/uninorm/test-u8-nfd.c: Likewise.
17035         * tests/uninorm/test-u8-nfkc.c: Likewise.
17036         * tests/uninorm/test-u8-nfkd.c: Likewise.
17037         * tests/uninorm/test-u16-nfc.c: Likewise.
17038         * tests/uninorm/test-u16-nfd.c: Likewise.
17039         * tests/uninorm/test-u16-nfkc.c: Likewise.
17040         * tests/uninorm/test-u16-nfkd.c: Likewise.
17041         * tests/uninorm/test-u32-nfc.c: Likewise.
17042         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17043         * tests/uninorm/test-u32-nfd.c: Likewise.
17044         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17045         * tests/uninorm/test-u32-nfkc.c: Likewise.
17046         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17047         * tests/uninorm/test-u32-nfkd.c: Likewise.
17048         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17049         * tests/uninorm/test-u32-normalize-big.c: Likewise.
17050
17051 2010-03-27  Bruno Haible  <bruno@clisp.org>
17052
17053         Distinguish two kinds of module indicators.
17054         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
17055         gl_MODULE_INDICATOR.
17056         (gl_MODULE_INDICATOR): New macro.
17057         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17058         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
17059         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17060         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17061         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17062         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17063         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17064         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17065         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17066         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17067         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17068         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17070         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17071         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17074         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17075         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17076         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17077         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17078         * modules/cloexec (configure.ac): Likewise.
17079         * modules/getopt-gnu (configure.ac): Likewise.
17080         * modules/uninorm/u8-normalize (configure.ac): Likewise.
17081         * modules/uninorm/u16-normalize (configure.ac): Likewise.
17082         * modules/uninorm/u32-normalize (configure.ac): Likewise.
17083         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
17084
17085 2010-03-27  Bruno Haible  <bruno@clisp.org>
17086
17087         New module description field 'Comment'.
17088         * gnulib-tool: New option --extract-comment.
17089         (func_usage): Document it.
17090         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
17091         (func_get_comment): New function.
17092         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
17093
17094 2010-03-27  Bruno Haible  <bruno@clisp.org>
17095
17096         Addendum to 2010-02-07 commit.
17097         * gnulib-tool (func_usage): Document --extract-applicability option.
17098
17099 2010-03-27  Bruno Haible  <bruno@clisp.org>
17100
17101         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
17102         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
17103         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
17104         rather than link errors.
17105
17106 2010-03-27  Bruno Haible  <bruno@clisp.org>
17107
17108         Avoid side effects from tests-related modules on the compilation of lib.
17109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
17110         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
17111         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
17112         parameter. Emit into AM_CPPFLAGS a definition of the designated C
17113         macro.
17114         (func_import): Define a witness macro. Assign it a value that depends
17115         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
17116         tests-related modules.
17117         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
17118         Reported by Jim Meyering.
17119
17120 2010-03-27  Bruno Haible  <bruno@clisp.org>
17121
17122         Factorize common .m4 code.
17123         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
17124         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
17125         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
17126         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
17127         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
17128         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
17129         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
17130         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
17131         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
17132         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
17133         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
17134         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
17135         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
17136         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
17137         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
17138         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
17139         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
17140         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
17141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
17142         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
17143         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
17144         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
17145         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
17146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
17147         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
17148         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
17149         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
17150         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
17151         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
17152         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
17153         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
17154         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
17155
17156 2010-03-27  Bruno Haible  <bruno@clisp.org>
17157
17158         Fix a compilation error on Cygwin with g++ >= 4.3.
17159         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
17160         if it is undefined or if we alias it to chmod.
17161         (lstat): Don't warn about the use of this function if it is undefined
17162         or if we alias it to stat.
17163         Reported by Simon Josefsson.
17164
17165 2010-03-27  Bruno Haible  <bruno@clisp.org>
17166
17167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
17168         * modules/getlogin (configure.ac): Update.
17169
17170         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
17171         * modules/getlogin_r (configure.ac): Update.
17172
17173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
17174         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
17175         * modules/inet_ntop (configure.ac): Update.
17176
17177         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
17178         * modules/inet_pton (configure.ac): Update.
17179
17180         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
17181         * modules/mbslen (configure.ac): Update.
17182
17183         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
17184         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
17185         * modules/forkpty (configure.ac): Update.
17186         * modules/openpty (configure.ac): Update.
17187
17188 2010-03-26  Simon Josefsson  <simon@josefsson.org>
17189
17190         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
17191         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
17192
17193 2010-03-25  Eric Blake  <eblake@redhat.com>
17194
17195         maint: use pragma consistently across replacement headers
17196         * lib/ctype.in.h (system_header): Hoist for consistent placement.
17197         * lib/dirent.in.h (system_header): Likewise.
17198         * lib/errno.in.h (system_header): Likewise.
17199         * lib/float.in.h (system_header): Likewise.
17200         * lib/getopt.in.h (system_header): Likewise.
17201         * lib/iconv.in.h (system_header): Likewise.
17202         * lib/inttypes.in.h (system_header): Likewise.
17203         * lib/langinfo.in.h (system_header): Likewise.
17204         * lib/locale.in.h (system_header): Likewise.
17205         * lib/math.in.h (system_header): Likewise.
17206         * lib/netdb.in.h (system_header): Likewise.
17207         * lib/netinet_in.in.h (system_header): Likewise.
17208         * lib/pty.in.h (system_header): Likewise.
17209         * lib/sched.in.h (system_header): Likewise.
17210         * lib/se-selinux.in.h (system_header): Likewise.
17211         * lib/search.in.h (system_header): Likewise.
17212         * lib/spawn.in.h (system_header): Likewise.
17213         * lib/stdarg.in.h (system_header): Likewise.
17214         * lib/stdint.in.h (system_header): Likewise.
17215         * lib/string.in.h (system_header): Likewise.
17216         * lib/strings.in.h (system_header): Likewise.
17217         * lib/sys_file.in.h (system_header): Likewise.
17218         * lib/sys_ioctl.in.h (system_header): Likewise.
17219         * lib/sys_socket.in.h (system_header): Likewise.
17220         * lib/sys_times.in.h (system_header): Likewise.
17221         * lib/sys_utsname.in.h (system_header): Likewise.
17222         * lib/sys_wait.in.h (system_header): Likewise.
17223         * lib/sysexits.in.h (system_header): Likewise.
17224         * lib/unistd.in.h (system_header): Likewise.
17225         * lib/wctype.in.h (system_header): Likewise.
17226
17227         arpa/inet: fix mingw compilation warning
17228         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
17229         Reported by Matthew Bolte.
17230
17231 2010-03-25  Bruno Haible  <bruno@clisp.org>
17232
17233         Avoid collision between gnulib wrapper and libintl wrapper.
17234         * lib/printf.c (printf): Don't define if a printf wrapper is already
17235         defined in intl/printf.c.
17236         Reported by Michel Boaventura <michel@michelboaventura.com>.
17237
17238 2010-03-25  Bruno Haible  <bruno@clisp.org>
17239
17240         Use ANSI C.
17241         * lib/readutmp.h (getutent): Provide ANSI C prototype.
17242
17243 2010-03-25  Bruno Haible  <bruno@clisp.org>
17244
17245         Minor formatting changes.
17246         * lib/acosl.c: Insert space before function argument list.
17247         * lib/argz.c: Likewise.
17248         * lib/asinl.c: Likewise.
17249         * lib/expl.c: Likewise.
17250         * lib/gen-uni-tables.c: Likewise.
17251         * lib/gettext.h: Likewise.
17252         * lib/glthread/lock.h: Likewise.
17253         * lib/tanl.c: Likewise.
17254         * lib/uniname/uniname.c: Likewise.
17255         * tests/test-idpriv-drop.c: Likewise.
17256         * tests/test-idpriv-droptemp.c: Likewise.
17257         * tests/test-lock.c: Likewise.
17258         * tests/test-tls.c: Likewise.
17259         * lib/argp-help.c: Insert space before function-like macro argument
17260         list.
17261         * lib/memcmp.c: Likewise.
17262         * tests/test-base64.c: Likewise.
17263         * lib/localename.c: Insert space before sizeof's argument list.
17264         * lib/safe-alloc.h: Likewise.
17265         * lib/file-set.h: Insert space before macro argument list.
17266         * tests/test-argp.c: Likewise.
17267         * lib/argp-namefrob.h: Insert space before function parameter list.
17268         * lib/getaddrinfo.c: Likewise.
17269         * lib/netdb.in.h: Likewise.
17270         * lib/parse-duration.h: Likewise.
17271         * lib/parse-duration.c: Likewise.
17272         * lib/poll.c: Likewise.
17273         * lib/select.c: Likewise.
17274         * lib/trim.h: Likewise.
17275         * tests/test-usleep.c: Likewise.
17276         * lib/ldexpl.c: Insert space before function parameter list and before
17277         function argument list.
17278         * lib/logl.c: Likewise.
17279         * lib/sqrtl.c: Likewise.
17280         * lib/trim.c: Likewise.
17281         * lib/cosl.c: Use GNU style indentation. Insert space before function
17282         argument list.
17283         * lib/sinl.c: Likewise.
17284         * lib/tsearch.c: Insert space after 'for'.
17285         Reported by Jim Meyering.
17286
17287 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
17288
17289         * maint.mk (sc_Wundef_boolean): Check for the presence of the
17290         config header before grepping, as it's not present before
17291         autoreconf/configure are run.  Reported by Simon Josefsson.
17292
17293 2010-03-23  Bruno Haible  <bruno@clisp.org>
17294
17295         pt_chown: Make it work with automake < 1.11.
17296         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
17297         Reported by Simon Josefsson.
17298
17299 2010-03-23  Bruno Haible  <bruno@clisp.org>
17300
17301         pt_chown: Don't depend on GPLed modules.
17302         * lib/pt_chown.c: Don't include idpriv.h.
17303         (main): Don't drop privileges.
17304         * modules/pt_chown (Depends-on): Remove idpriv-drop.
17305         Reported by Simon Josefsson.
17306
17307 2010-03-24  Simon Josefsson  <simon@josefsson.org>
17308
17309         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
17310         suggestions from karl@freefriends.org (Karl Berry).
17311
17312 2010-03-22  Eric Blake  <eblake@redhat.com>
17313
17314         gethostname: further tweaks
17315         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
17316         are overriding gethostname.
17317         Suggested by Bruno Haible.
17318
17319 2010-03-21  Bruno Haible  <bruno@clisp.org>
17320
17321         Fix comments.
17322         * lib/forkpty.c (rpl_forkpty): Fix comment.
17323         * lib/openpty.c (rpl_openpty): Likewise.
17324         Reported by Eric Blake.
17325
17326 2010-03-22  Eric Blake  <eblake@redhat.com>
17327
17328         gethostname: fix build on mingw
17329         * lib/unistd.in.h (includes): Work around fact that mingw
17330         <winsock2.h> re-includes <unistd.h>, by avoiding any
17331         redeclarations if we are being included by <winsock2.h>.
17332         Reported by Matthias Bolte.
17333
17334 2010-03-21  Bruno Haible  <bruno@clisp.org>
17335
17336         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17337         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17338         modifications.
17339         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17340         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17341         provide the replacement.
17342         * modules/forkpty (Depends-on): Add openpty, login_tty.
17343         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17344         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17345         * doc/glibc-functions/forkpty.texi: More supported platforms.
17346         * config/srclist.txt: Add forkpty.c (commented).
17347
17348 2010-03-21  Bruno Haible  <bruno@clisp.org>
17349
17350         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17351         (Makefile.am): Verify that PTY_LIB is defined.
17352
17353         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17354
17355 2010-03-21  Bruno Haible  <bruno@clisp.org>
17356
17357         Tests for module 'login_tty'.
17358         * modules/login_tty-tests: New file.
17359         * tests/test-login_tty.c: New file.
17360
17361         New module 'login_tty'.
17362         * lib/login_tty.c: New file.
17363         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17364         * modules/login_tty: New file.
17365         * doc/glibc-functions/login_tty.texi: Mention the new module.
17366
17367 2010-03-21  Bruno Haible  <bruno@clisp.org>
17368
17369         login_tty: Documentation.
17370         * doc/glibc-functions/login_tty.texi: New file.
17371         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17372
17373 2010-03-21  Bruno Haible  <bruno@clisp.org>
17374
17375         pty: Consistent macro naming.
17376         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17377         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17378         * modules/pty (configure.ac): Update.
17379
17380 2010-03-21  Bruno Haible  <bruno@clisp.org>
17381
17382         Tests for openpty: Make stricter.
17383         * tests/test-openpty.c (main): Add test of canonical processing and
17384         erase.
17385         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17386
17387         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17388         * lib/openpty.c (openpty): New replacement function.
17389         * lib/pty.in.h: Include <termios.h>.
17390         (openpty): Update declaration. Add comments.
17391         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17392         is not declared, arrange to provide the replacement. Check for _getpty
17393         and posix_openpt.
17394         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17395         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17396         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17397         * modules/pty-tests (test_pty_c___LDADD): New variable.
17398         * doc/glibc-functions/openpty.texi: More supported platforms.
17399
17400 2010-03-21  Bruno Haible  <bruno@clisp.org>
17401
17402         setenv: Tweaks.
17403         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17404         the test program.
17405         * doc/posix-functions/setenv.texi: Update platforms list.
17406
17407 2010-03-21  Bruno Haible  <bruno@clisp.org>
17408
17409         New module 'unlockpt'.
17410         * lib/unlockpt.c: New file, from glibc with modifications.
17411         * m4/unlockpt.m4: New file.
17412         * modules/unlockpt: New file.
17413         * lib/stdlib.in.h (unlockpt): New declaration.
17414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17415         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17416         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17417         HAVE_UNLOCKPT.
17418         * doc/posix-functions/unlockpt.texi: Mention the new module.
17419         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17420         * config/srclist.txt: Add unlockpt.c (commented).
17421
17422 2010-03-21  Jim Meyering  <meyering@redhat.com>
17423
17424         maint.mk: prohibit inclusion of "intprops.h" without use
17425         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17426
17427 2010-03-21  Bruno Haible  <bruno@clisp.org>
17428
17429         New module 'grantpt'.
17430         * lib/grantpt.c: New file, from glibc with modifications.
17431         * m4/grantpt.m4: New file.
17432         * modules/grantpt: New file.
17433         * lib/stdlib.in.h (grantpt): New declaration.
17434         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17435         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17436         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17437         HAVE_GRANTPT.
17438         * doc/posix-functions/grantpt.texi: Mention the new module.
17439         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17440         * config/srclist.txt: Add grantpt.c (commented).
17441
17442 2010-03-21  Bruno Haible  <bruno@clisp.org>
17443
17444         New module 'pt_chown'.
17445         * lib/pt_chown.c: New file, from glibc with modifications.
17446         * lib/pty-private.h: New file, from glibc with modifications.
17447         * modules/pt_chown: New file.
17448         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17449
17450 2010-03-21  Bruno Haible  <bruno@clisp.org>
17451
17452         Tests for module 'ptsname'.
17453         * modules/ptsname-tests: New file.
17454         * tests/test-ptsname.c: New file.
17455
17456         New module 'ptsname'.
17457         * lib/ptsname.c: New file, from glibc with modifications.
17458         * m4/ptsname.m4: New file.
17459         * modules/ptsname: New file.
17460         * lib/stdlib.in.h (ptsname): New declaration.
17461         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17462         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17463         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17464         HAVE_PTSNAME.
17465         * doc/posix-functions/ptsname.texi: Mention the new module.
17466         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17467         * config/srclist.txt: Add ptsname.c (commented).
17468
17469 2010-03-21  Bruno Haible  <bruno@clisp.org>
17470
17471         Tests for module 'ttyname_r'.
17472         * modules/ttyname_r-tests: New file.
17473         * tests/test-ttyname_r.c: New file.
17474
17475         New module 'ttyname_r'.
17476         * lib/ttyname_r.c: New file.
17477         * m4/ttyname_r.m4: New file.
17478         * modules/ttyname_r: New file.
17479         * lib/unistd.in.h (ttyname_r): New declaration.
17480         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17481         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17482         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17483         HAVE_TTYNAME_R.
17484         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17485         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17486
17487 2010-03-20  Bruno Haible  <bruno@clisp.org>
17488
17489         signal: Undefine macro definitions in C++ mode.
17490         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17491         sigfillset): Undefine macro definitions from the system header in C++
17492         mode.
17493         Reported by John W. Eaton <jwe@gnu.org>.
17494
17495 2010-03-20  Bruno Haible  <bruno@clisp.org>
17496
17497         Ensure no #include statements inside extern "C" { ... }.
17498         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17499         contain #include statements.
17500         * lib/time.in.h: Likewise.
17501
17502 2010-03-20  Bruno Haible  <bruno@clisp.org>
17503
17504         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17505         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17506         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17507         Reported by John W. Eaton <jwe@gnu.org>.
17508
17509 2010-03-20  Bruno Haible  <bruno@clisp.org>
17510
17511         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17512         Reported by Jim Meyering.
17513
17514 2010-03-20  Bruno Haible  <bruno@clisp.org>
17515
17516         pipe: Set errno upon failure.
17517         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17518         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17519         errno value in error message.
17520
17521 2010-03-20  Bruno Haible  <bruno@clisp.org>
17522             Jim Meyering  <meyering@redhat.com>
17523
17524         lchown: Avoid "unused variable" warning.
17525         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17526
17527 2010-03-20  Bruno Haible  <bruno@clisp.org>
17528
17529         Work around unlink() bug on MacOS X 10.5.6.
17530         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17531         attempting to unlink a parent directory.
17532         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17533         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17534         activate for the replacement function.
17535         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17536
17537 2010-03-20  Bruno Haible  <bruno@clisp.org>
17538
17539         Fix link errors on Solaris 8.
17540         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17541         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17542
17543 2010-03-19  Jim Meyering  <meyering@redhat.com>
17544
17545         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17546         The _LIBC implementation of build_range_exp correctly honors the
17547         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17548         However, the non-_LIBC implementation would ignore that syntax-bit
17549         flag and return REG_ERANGE unconditionally.
17550         This change makes it honor that flag.
17551         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17552         Make two pointer parameters "const".
17553         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17554         (parse_bracket_exp): Update caller.
17555
17556         regex.m4: correct the reversed range endpoint ([b-a]) test
17557         * m4/regex.m4: When requiring that [b-a] evoke failure,
17558         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17559         test pass once again for x86-based systems.
17560
17561 2010-03-19  Bruno Haible  <bruno@clisp.org>
17562
17563         scandir: Fix link error on Solaris 8.
17564         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17565         macros.
17566
17567 2010-03-19  Bruno Haible  <bruno@clisp.org>
17568
17569         getusershell: Fix documentation.
17570         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17571         module.
17572         * doc/glibc-functions/setusershell.texi: Likewise.
17573
17574         getusershell: Provide declaration, missing on Solaris 9.
17575         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17576         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17577         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17578         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17580         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17581         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17582         HAVE_GETUSERSHELL.
17583         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17584
17585 2010-03-19  Bruno Haible  <bruno@clisp.org>
17586
17587         wctype: Provide iswblank function.
17588         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17589         exists and is fine.
17590         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17591         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17592         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17593         * doc/posix-functions/iswblank.texi: Update.
17594
17595 2010-03-19  Bruno Haible  <bruno@clisp.org>
17596
17597         Tests of module 'pty' in C++ mode.
17598         * modules/pty-tests: New file.
17599         * tests/test-pty-c++.cc: New file.
17600         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17601
17602 2010-03-19  Eric Blake  <eblake@redhat.com>
17603
17604         logb: fix documentation
17605         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17606         1.5 declaration bug.
17607
17608         forkpty, openpty: prefer glibc's const-safe prototype
17609         * lib/forkpty.c (rpl_forkpty): New file.
17610         * lib/openpty.c (rpl_openpty): Likewise.
17611         * modules/forkpty (Files): Distribute it.
17612         * modules/openpty (Files): Likewise.
17613         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17614         check...
17615         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17616         replacement for for non-const BSD signature.
17617         * modules/pty (Makefile.am): Substitute witnesses.
17618         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17619         * tests/test-forkpty.c: Update signature check.
17620         * tests/test-openpty.c: Likewise.
17621         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17622         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17623
17624         forkpty, openpty: split functions into new modules
17625         * modules/pty (Makefile.am): Substitute new witnesses.
17626         (Libraries): Move library detection...
17627         * modules/forkpty: ...into new module.
17628         * modules/openpty: Another new module.
17629         * modules/pty-tests: Rename and split...
17630         * modules/forkpty-tests: ...to this...
17631         * modules/openpty-tests: ...and this.
17632         * tests/test-pty.c: Rename and split...
17633         * tests/test-forkpty.c: ...to this...
17634         * tests/test-openpty.c: ...and this.
17635         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17636         (gl_PTY): Split library searching...
17637         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17638         (gl_FORKPTY, gl_OPENPTY): New macros.
17639         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17640         * NEWS: Mention the split.
17641         * MODULES.html.sh (Misc): Document the modules.
17642         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17643         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17644
17645         pty: improve replacement header
17646         * lib/pty.in.h: New file.
17647         * modules/pty (Files): Ship it.
17648         (Makefile.am): Always build replacement.
17649         * m4/pty.m4: Rename...
17650         * m4/pty_h.m4: ...to this.
17651         (gl_PTY): Modernize setting of witness macros; update check of
17652         forkpty to take proper advantage of cache.
17653         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17654
17655         getopt: avoid compiler warning
17656         * lib/getopt.c (attribute_hidden): Remove unused macro.
17657
17658 2010-03-18  Bruno Haible  <bruno@clisp.org>
17659
17660         Fix link errors on Solaris 8.
17661         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17662         * modules/search-tests (test_search_c___LDADD): Likewise.
17663         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17664         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17665         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17666         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17667         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17668         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17669         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17670
17671 2010-03-18  Bruno Haible  <bruno@clisp.org>
17672
17673         Fix bug introduced on 2010-03-14.
17674         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17675         (gl_SPAWN_H): Require it.
17676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17677         Reported by Simon Josefsson.
17678
17679 2010-03-18  Bruno Haible  <bruno@clisp.org>
17680
17681         Fix typo introduced on 2009-12-31.
17682         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17683         posix_spawn_file_actions_adddup2.
17684
17685 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17686         and Eric Blake  <eblake@redhat.com>
17687
17688         test-vc-list-files-git: make more robust
17689         * tests/test-vc-list-files-git.sh: Unset problematic environment
17690         variables.  Chain commands together.
17691
17692 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17693
17694         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17695         `AC_CHECK_DECL' invocation.
17696
17697 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17698
17699         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17700         appears before executable statements. Suggested by Petr Sumbera
17701         <Petr.Sumbera@Sun.COM>.
17702
17703 2010-03-14  Bruno Haible  <bruno@clisp.org>
17704
17705         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17706         portability problems. Instead use a simpler test.
17707         (main): Check that invalid arguments are rejected only on Linux.
17708
17709 2010-03-14  Bruno Haible  <bruno@clisp.org>
17710
17711         Fix bug introduced on 2009-12-31.
17712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17713         gl_PREREQ_SYS_H_WINSOCK2 always.
17714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17715         SYS_SOCKET_H variable.
17716         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17717         Update comments.
17718         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17719         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17720         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17721         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17722         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17723
17724 2010-03-14  Bruno Haible  <bruno@clisp.org>
17725
17726         Fix values returned by sinl, cosl.
17727         * lib/trigl.h: Add specification comments.
17728         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17729         that combines the values from the precomputed table with the values of
17730         the Chebyshev polynomials.
17731
17732 2010-03-14  Bruno Haible  <bruno@clisp.org>
17733
17734         Fix compilation error when modules 'posix_spawn[p]' are not used.
17735         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17737
17738 2010-03-14  Bruno Haible  <bruno@clisp.org>
17739
17740         Fix compilation error on mingw when module 'time_r' is not used.
17741         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17742         is 1.
17743         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17744         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17745         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17746         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17747
17748 2010-03-14  Bruno Haible  <bruno@clisp.org>
17749
17750         Fix compilation error with Sun C.
17751         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17752         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17753         instead of GCC specific ULONG_LONG_MAX.
17754         * lib/xstrtoll.c: Likewise.
17755         * lib/xstrtoull.c: Likewise.
17756
17757 2010-03-13  Bruno Haible  <bruno@clisp.org>
17758
17759         Allow the user to disable C++ code and tests.
17760         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17761         (gl_PROG_ANSI_CXX): Require it.
17762
17763 2010-03-13  Bruno Haible  <bruno@clisp.org>
17764
17765         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17766         cases.
17767
17768 2010-03-13  Bruno Haible  <bruno@clisp.org>
17769
17770         Test that gnulib does not break the standard C++ headers.
17771         * tests/test-locale-c++2.cc: New file.
17772         * modules/locale-tests (Files): Add it.
17773         (Makefile.am): Compile it for test-locale-c++.
17774         * tests/test-math-c++2.cc: New file.
17775         * modules/math-tests (Files): Add it.
17776         (Makefile.am): Compile it for test-math-c++.
17777         * tests/test-signal-c++2.cc: New file.
17778         * modules/signal-tests (Files): Add it.
17779         (Makefile.am): Compile it for test-signal-c++.
17780         * tests/test-stdio-c++2.cc: New file.
17781         * modules/stdio-tests (Files): Add it.
17782         (Makefile.am): Compile it for test-stdio-c++.
17783         * tests/test-stdlib-c++2.cc: New file.
17784         * modules/stdlib-tests (Files): Add it.
17785         (Makefile.am): Compile it for test-stdlib-c++.
17786         * tests/test-string-c++2.cc: New file.
17787         * modules/string-tests (Files): Add it.
17788         (Makefile.am): Compile it for test-string-c++.
17789         * tests/test-time-c++2.cc: New file.
17790         * modules/time-tests (Files): Add it.
17791         (Makefile.am): Compile it for test-time-c++.
17792         Reported by John W. Eaton <jwe@gnu.org>.
17793
17794 2010-03-13  Bruno Haible  <bruno@clisp.org>
17795
17796         * gnulib-tool (func_usage): Clarify which options are available for
17797         --create-testdir and --create-megatestdir.
17798
17799 2010-03-13  Bruno Haible  <bruno@clisp.org>
17800
17801         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17802         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17803         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17804         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17805         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17806         when appropriate.
17807         Reported by Jim Meyering.
17808
17809 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17810
17811         * gnulib-tool (func_import): Explain origin of code.
17812
17813 2010-03-12  Bruno Haible  <bruno@clisp.org>
17814
17815         Fix problem with automake's definition of CXXLINK.
17816         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17817         Reported by Simon Josefsson and Ludovic Courtès.
17818
17819 2010-03-12  Bruno Haible  <bruno@clisp.org>
17820
17821         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17822         stable releases.
17823
17824 2010-03-11  Bruno Haible  <bruno@clisp.org>
17825
17826         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17827         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17828         whether the system provides one variant or multiple variants of the
17829         function.
17830         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17831         C++ compilers.
17832         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17833         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17834         Reported by Jim Meyering.
17835
17836 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17837
17838         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17839
17840 2010-03-08  Bruno Haible  <bruno@clisp.org>
17841
17842         gnulib-tool: Add support for --libtool in --create-testdir.
17843         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17844         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17845
17846 2010-03-08  Eric Blake  <eblake@redhat.com>
17847
17848         gnulib-tool.texi: mention possibility of git submodule
17849         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17850         submodules.
17851         * doc/.gitignore: Ignore another generated file.
17852
17853 2010-03-08  Karl Berry  <karl@gnu.org>
17854
17855         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17856         of committing gnulib files while skipping others.
17857
17858 2010-03-07  Bruno Haible  <bruno@clisp.org>
17859
17860         Tests of module 'wctype' in C++ mode.
17861         * tests/test-wctype-c++.cc: New file.
17862         * modules/wctype-tests (Files): Add it and tests/signature.h.
17863         (Depends-on): Add ansi-c++-opt.
17864         (Makefile.am): Arrange to compile and run test-wctype-c++.
17865
17866         Tests of module 'wchar' in C++ mode.
17867         * tests/test-wchar-c++.cc: New file.
17868         * modules/wchar-tests (Files): Add it and tests/signature.h.
17869         (Depends-on): Add ansi-c++-opt.
17870         (Makefile.am): Arrange to compile and run test-wchar-c++.
17871         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17872         gl_MODULE_INDICATOR.
17873
17874         Tests of module 'unistd' in C++ mode.
17875         * tests/test-unistd-c++.cc: New file.
17876         * modules/unistd-tests (Files): Add it and tests/signature.h.
17877         (Depends-on): Add ansi-c++-opt.
17878         (Makefile.am): Arrange to compile and run test-unistd-c++.
17879         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17880         gl_MODULE_INDICATOR.
17881
17882         Tests of module 'time' in C++ mode.
17883         * tests/test-time-c++.cc: New file.
17884         * modules/time-tests (Files): Add it and tests/signature.h.
17885         (Depends-on): Add ansi-c++-opt.
17886         (Makefile.am): Arrange to compile and run test-time-c++.
17887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17888
17889         Tests of module 'sys_time' in C++ mode.
17890         * tests/test-sys_time-c++.cc: New file.
17891         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17892         (Depends-on): Add ansi-c++-opt.
17893         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17894         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17895         gl_MODULE_INDICATOR.
17896
17897         Tests of module 'sys_stat' in C++ mode.
17898         * tests/test-sys_stat-c++.cc: New file.
17899         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17900         (Depends-on): Add ansi-c++-opt.
17901         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17902         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17903         gl_MODULE_INDICATOR.
17904
17905         Tests of module 'sys_socket' in C++ mode.
17906         * tests/test-sys_socket-c++.cc: New file.
17907         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17908         (Depends-on): Add ansi-c++-opt.
17909         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17910         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17911         gl_MODULE_INDICATOR.
17912
17913         Tests of module 'sys_select' in C++ mode.
17914         * tests/test-sys_select-c++.cc: New file.
17915         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17916         (Depends-on): Add ansi-c++-opt.
17917         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17918         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17919         gl_MODULE_INDICATOR.
17920
17921         Tests of module 'sys_ioctl' in C++ mode.
17922         * tests/test-sys_ioctl-c++.cc: New file.
17923         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17924         (Depends-on): Add ansi-c++-opt.
17925         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17927         gl_MODULE_INDICATOR.
17928
17929         Tests of module 'string' in C++ mode.
17930         * tests/test-string-c++.cc: New file.
17931         * modules/string-tests (Files): Add it and tests/signature.h.
17932         (Depends-on): Add ansi-c++-opt.
17933         (Makefile.am): Arrange to compile and run test-string-c++.
17934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17935         gl_MODULE_INDICATOR.
17936
17937         Tests of module 'stdlib' in C++ mode.
17938         * tests/test-stdlib-c++.cc: New file.
17939         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17940         (Depends-on): Add ansi-c++-opt.
17941         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17942         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17943         gl_MODULE_INDICATOR.
17944
17945         Tests of module 'stdio' in C++ mode.
17946         * tests/test-stdio-c++.cc: New file.
17947         * modules/stdio-tests (Files): Add it and tests/signature.h.
17948         (Depends-on): Add ansi-c++-opt.
17949         (Makefile.am): Arrange to compile and run test-stdio-c++.
17950         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17951         gl_MODULE_INDICATOR.
17952
17953         Tests of module 'spawn' in C++ mode.
17954         * tests/test-spawn-c++.cc: New file.
17955         * modules/spawn-tests (Files): Add it and tests/signature.h.
17956         (Depends-on): Add ansi-c++-opt.
17957         (Makefile.am): Arrange to compile and run test-spawn-c++.
17958         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17959         gl_MODULE_INDICATOR.
17960
17961         Tests of module 'signal' in C++ mode.
17962         * tests/test-signal-c++.cc: New file.
17963         * modules/signal-tests (Files): Add it and tests/signature.h.
17964         (Depends-on): Add ansi-c++-opt.
17965         (Makefile.am): Arrange to compile and run test-signal-c++.
17966         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17967         gl_MODULE_INDICATOR.
17968
17969         Tests of module 'search' in C++ mode.
17970         * tests/test-search-c++.cc: New file.
17971         * modules/search-tests (Files): Add it and tests/signature.h.
17972         (Depends-on): Add ansi-c++-opt.
17973         (Makefile.am): Arrange to compile and run test-search-c++.
17974         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17975         gl_MODULE_INDICATOR.
17976
17977         Tests of module 'math' in C++ mode.
17978         * tests/test-math-c++.cc: New file.
17979         * modules/math-tests (Files): Add it and tests/signature.h.
17980         (Depends-on): Add ansi-c++-opt.
17981         (Makefile.am): Arrange to compile and run test-math-c++.
17982         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17983
17984         Tests of module 'locale' in C++ mode.
17985         * tests/test-locale-c++.cc: New file.
17986         * modules/locale-tests (Files): Add it and tests/signature.h.
17987         (Depends-on): Add ansi-c++-opt.
17988         (Makefile.am): Arrange to compile and run test-locale-c++.
17989         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17990         gl_MODULE_INDICATOR.
17991
17992         Tests of module 'langinfo' in C++ mode.
17993         * tests/test-langinfo-c++.cc: New file.
17994         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17995         (Depends-on): Add ansi-c++-opt.
17996         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17997         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17998         gl_MODULE_INDICATOR.
17999
18000         Tests of module 'iconv-h' in C++ mode.
18001         * tests/test-iconv-h-c++.cc: New file.
18002         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
18003         (Depends-on): Add ansi-c++-opt.
18004         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
18005
18006         Tests of module 'glob' in C++ mode.
18007         * tests/test-glob-c++.cc: New file.
18008         * modules/glob-tests (Files): Add it.
18009         (Depends-on): Add ansi-c++-opt.
18010         (Makefile.am): Arrange to compile and run test-glob-c++.
18011
18012         Tests of module 'fcntl-h' in C++ mode.
18013         * tests/test-fcntl-h-c++.cc: New file.
18014         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
18015         (Depends-on): Add ansi-c++-opt.
18016         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
18017         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
18018         gl_MODULE_INDICATOR.
18019
18020         Tests of module 'dirent' in C++ mode.
18021         * tests/test-dirent-c++.cc: New file.
18022         * modules/dirent-tests (Files): Add it and tests/signature.h.
18023         (Depends-on): Add ansi-c++-opt.
18024         (Makefile.am): Arrange to compile and run test-dirent-c++.
18025         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18026         gl_MODULE_INDICATOR.
18027
18028         New module 'ansi-c++-opt'.
18029         * modules/ansi-c++-opt: New file.
18030         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
18031
18032         Document C++ namespace mode.
18033         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
18034
18035         wctype: Avoid #define replacements in C++ mode.
18036         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
18037         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
18038         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
18039         In C++, define a namespaced alias symbol.
18040         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
18041         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
18042         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
18043         rule.
18044
18045         wchar: Avoid #define replacements in C++ mode.
18046         * lib/wchar.in.h: Include c++defs.h.
18047         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
18048         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
18049         symbol.
18050         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
18051         * modules/wchar (Depends-on): Add c++defs.
18052         (Makefile.am): Update wchar.h rule.
18053
18054         unistd: Avoid #define replacements in C++ mode.
18055         * lib/unistd.in.h: Include c++defs.h.
18056         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
18057         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
18058         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
18059         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
18060         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
18061         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
18062         symbol.
18063         (environ): Update.
18064         * modules/unistd (Depends-on): Add c++defs.
18065         (Makefile.am): Update unistd.h rule.
18066
18067         time: Avoid #define replacements in C++ mode.
18068         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
18069         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
18070         define a namespaced alias symbol.
18071         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
18072         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
18073         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
18074         * modules/time (Depends-on): Add c++defs, warn-on-use.
18075         (Makefile.am): Update time.h rule.
18076         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18077         * modules/nanosleep (configure.ac): Likewise.
18078         * modules/strptime (configure.ac): Likewise.
18079         * modules/timegm (configure.ac): Likewise.
18080
18081         sys_time: Avoid #define replacements in C++ mode.
18082         * lib/sys_time.in.h: Include c++defs.h.
18083         (gettimeofday): In C++, define a namespaced alias symbol.
18084         * modules/sys_time (Depends-on): Add c++defs.
18085         (Makefile.am): Update sys/time.h rule.
18086
18087         sys_stat: Avoid #define replacements in C++ mode.
18088         * lib/sys_stat.in.h: Include c++defs.h.
18089         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
18090         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
18091         namespaced alias symbol.
18092         In C++, define a namespaced alias symbol.
18093         * modules/sys_stat (Depends-on): Add c++defs.
18094         (Makefile.am): Update sys/stat.h rule.
18095
18096         sys_socket: Avoid #define replacements in C++ mode.
18097         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
18098         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
18099         definitions also when the system has a <sys/socket.h>.
18100         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18101         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
18102         In C++, define a namespaced alias symbol.
18103         * modules/sys_socket (Depends-on): Add c++defs.
18104         (Makefile.am): Update sys/socket.h rule.
18105
18106         sys_select: Avoid #define replacements in C++ mode.
18107         * lib/sys_select.in.h: Include c++defs.h. Enable the function
18108         definitions also when the system has a <sys/select.h>.
18109         (select): In C++, define a namespaced alias symbol.
18110         * modules/sys_select (Depends-on): Add c++defs.
18111         (Makefile.am): Update sys/select.h rule.
18112
18113         sys_ioctl: Avoid #define replacements in C++ mode.
18114         * lib/sys_ioctl.in.h: Include c++defs.h.
18115         (ioctl): In C++, define a namespaced alias symbol.
18116         * modules/sys_ioctl (Depends-on): Add c++defs.
18117         (Makefile.am): Update sys/ioctl.h rule.
18118
18119         string: Avoid #define replacements in C++ mode.
18120         * lib/string.in.h: Include c++defs.h.
18121         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
18122         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
18123         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
18124         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
18125         strsignal, strverscmp): In C++, define a namespaced alias symbol.
18126         * modules/string (Depends-on): Add c++defs.
18127         (Makefile.am): Update string.h rule.
18128
18129         stdlib: Avoid #define replacements in C++ mode.
18130         * lib/stdlib.in.h: Include c++defs.h.
18131         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
18132         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
18133         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
18134         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
18135         symbol.
18136         * modules/stdlib (Depends-on): Add c++defs.
18137         (Makefile.am): Update stdlib.h rule.
18138
18139         stdio: Avoid #define replacements in C++ mode.
18140         * lib/stdio.in.h: Include c++defs.h.
18141         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
18142         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
18143         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
18144         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
18145         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
18146         namespaced alias symbol.
18147         * modules/stdio (Depends-on): Add c++defs.
18148         (Makefile.am): Update stdio.h rule.
18149
18150         spawn: Avoid #define replacements in C++ mode.
18151         * lib/spawn.in.h: Include c++defs.h.
18152         (posix_spawn, posix_spawnp, posix_spawnattr_init,
18153         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
18154         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
18155         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
18156         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
18157         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
18158         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
18159         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
18160         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
18161         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
18162         In C++, define a namespaced alias symbol.
18163         * modules/spawn (Depends-on): Add c++defs.
18164         (Makefile.am): Update spawn.h rule.
18165
18166         signal: Avoid #define replacements in C++ mode.
18167         * lib/signal.in.h: Include c++defs.h.
18168         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
18169         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
18170         namespaced alias symbol.
18171         * modules/signal (Depends-on): Add c++defs.
18172         (Makefile.am): Update signal.h rule.
18173
18174         search: Avoid #define replacements in C++ mode.
18175         * lib/search.in.h: Include c++defs.h.
18176         (_gl_search_compar_fn, _gl_search_action_fn): New types.
18177         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
18178         symbol.
18179         * modules/search (Depends-on): Add c++defs.
18180         (Makefile.am): Update search.h rule.
18181
18182         math: Avoid #define replacements in C++ mode.
18183         * lib/math.in.h: Include c++defs.h.
18184         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
18185         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
18186         trunc, truncl): In C++, define a namespaced alias symbol.
18187         * modules/math (Depends-on): Add c++defs.
18188         (Makefile.am): Update math.h rule.
18189
18190         locale: Avoid #define replacements in C++ mode.
18191         * lib/locale.in.h: Include c++defs.h.
18192         (duplocale): In C++, define a namespaced alias symbol.
18193         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
18194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
18195         * modules/locale (Depends-on): Add c++defs.
18196         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
18197
18198         langinfo: Avoid #define replacements in C++ mode.
18199         * lib/langinfo.in.h: Include c++defs.h.
18200         (nl_langinfo): In C++, define a namespaced alias symbol.
18201         * modules/langinfo (Depends-on): Add c++defs.
18202         (Makefile.am): Update langinfo.h rule.
18203
18204         iconv-h: Avoid #define replacements in C++ mode.
18205         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
18206         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
18207         symbol.
18208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18209         whenever iconv is present.
18210         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
18211         (Makefile.am): Update iconv.h rule.
18212
18213         glob: Avoid #define replacements in C++ mode.
18214         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
18215         (_gl_glob_errfunc_fn): New type.
18216         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
18217         symbol.
18218         * modules/glob (Depends-on): Add c++defs, warn-on-use.
18219         (Makefile.am): Update glob.h rule.
18220
18221         fcntl-h: Avoid #define replacements in C++ mode.
18222         * lib/fcntl.in.h: Include c++defs.h.
18223         (fcntl, open, openat): In C++, define a namespaced alias symbol.
18224         * modules/fcntl-h (Depends-on): Add c++defs.
18225         (Makefile.am): Update fcntl.h rule.
18226
18227         dirent: Avoid #define replacements in C++ mode.
18228         * lib/dirent.in.h: Include c++defs.h.
18229         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
18230         namespaced alias symbol.
18231         (dirfd): Update declaration.
18232         * modules/dirent (Depends-on): Add c++defs.
18233         (Makefile.am): Update dirent.h rule.
18234
18235         ctype: Make it usable in C++ code.
18236         * lib/ctype.in.h: Include c++defs.h.
18237         (isblank): Declare as extern "C".
18238         * modules/ctype (Depends-on): Add c++defs.
18239         (Makefile.am): Update ctype.h rule.
18240
18241         New module 'c++defs'.
18242         * modules/c++defs: New file.
18243         * build-aux/c++defs.h: New file.
18244         Reported by John W. Eaton <jwe@gnu.org>.
18245
18246 2010-03-07  Bruno Haible  <bruno@clisp.org>
18247
18248         logb: Provide missing declaration for Cygwin.
18249         * lib/math.in.h (logb): New declaration.
18250         * m4/logb.m4: New file.
18251         * modules/logb (Files): Add m4/logb.m4.
18252         (Depends-on): Add math.
18253         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
18254         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
18255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
18256         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
18257         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
18258
18259 2010-03-07  Bruno Haible  <bruno@clisp.org>
18260
18261         Fix test-cond link error.
18262         * tests/test-cond.c: Include <stdio.h>.
18263
18264 2010-03-07  Bruno Haible  <bruno@clisp.org>
18265
18266         Fix test-dirent-safer link error.
18267         * modules/dirent-safer-tests (Makefile.am): Define
18268         test_dirent_safer_LDADD.
18269
18270 2010-03-07  Bruno Haible  <bruno@clisp.org>
18271
18272         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
18273         among default module list.
18274
18275 2010-03-07  Bruno Haible  <bruno@clisp.org>
18276
18277         Fix link error on platforms with GNU libiconv.
18278         * modules/unistr/u8-strcoll-tests (Makefile): Define
18279         test_u8_strcoll_LDADD.
18280         * modules/unistr/u16-strcoll-tests (Makefile): Define
18281         test_u16_strcoll_LDADD.
18282         * modules/unistr/u32-strcoll-tests (Makefile): Define
18283         test_u32_strcoll_LDADD.
18284
18285 2010-03-07  Bruno Haible  <bruno@clisp.org>
18286
18287         Use POSIX declarations for socket functions.
18288         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
18289         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
18290         rpl_sendto): Change declaration to match POSIX.
18291         * lib/connect.c (rpl_connect): Likewise.
18292         * lib/accept.c (rpl_accept): Likewise.
18293         * lib/bind.c (rpl_bind): Likewise.
18294         * lib/getpeername.c (rpl_getpeername): Likewise.
18295         * lib/getsockname.c (rpl_getsockname): Likewise.
18296         * lib/recv.c (rpl_recv): Likewise.
18297         * lib/send.c (rpl_send): Likewise.
18298         * lib/recvfrom.c (rpl_recvfrom): Likewise.
18299         * lib/sendto.c (rpl_sendto): Likewise.
18300
18301 2010-03-06  Bruno Haible  <bruno@clisp.org>
18302
18303         Clarify access, euidaccess, faccessat.
18304         * doc/posix-functions/faccessat.texi: Mention security problem under
18305         "Other problems", not "Portability problems".
18306         * doc/posix-functions/access.texi: Likewise. Mention a related security
18307         problem.
18308         * doc/glibc-functions/euidaccess.texi: Mention security problems.
18309         * lib/euidaccess.c: Add comments about platforms.
18310         * lib/unistd.in.h (access, euidaccess): Add warnings.
18311
18312 2010-03-07  Bruno Haible  <bruno@clisp.org>
18313
18314         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
18315         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
18316         (POSIX_SPAWN_SETSCHEDULER): Likewise.
18317         (POSIX_SPAWN_USEVFORK): Define in a way that works when
18318         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18319         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
18320         declare when POSIX_SPAWN_SETSCHEDULER is zero.
18321         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
18322         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
18323         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
18324         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
18325         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
18326         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
18327         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
18328         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
18329         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
18330         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18331         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18332         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18333         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18334         Likewise.
18335         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18336         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18337         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18338         Likewise.
18339         * tests/test-spawn.c (main): Make it work when
18340         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18341
18342 2010-03-07  Bruno Haible  <bruno@clisp.org>
18343
18344         Fix incorrect Makefile.am generation in German locale.
18345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18346         Execute sed command with character range in C locale.
18347
18348 2010-03-06  Bruno Haible  <bruno@clisp.org>
18349
18350         Tests for module 'iconv-h'.
18351         * modules/iconv-h-tests: New file.
18352         * tests/test-iconv-h.c: New file.
18353
18354         New module 'iconv-h'.
18355         * modules/iconv-h: New file.
18356         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18357         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18358         (configure.ac): Remove gl_ICONV_H.
18359         (Makefile.am): Remove rule for iconv.h.
18360
18361 2010-03-06  Bruno Haible  <bruno@clisp.org>
18362
18363         More consistent naming of *.m4 files.
18364         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18365         * modules/wctype (Files): Update.
18366
18367         More consistent naming of *.m4 files.
18368         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18369         * modules/wchar (Files): Update.
18370
18371 2010-03-06  Jim Meyering  <meyering@redhat.com>
18372
18373         euidaccess: relax license to LGPLv2+
18374         * modules/euidaccess (License): Relax to LGPLv2+.
18375
18376 2010-03-06  Bruno Haible  <bruno@clisp.org>
18377
18378         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18379         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18380         (Makefile.am): Augment lib_SOURCES instead.
18381
18382 2010-03-04  Jim Meyering  <meyering@redhat.com>
18383
18384         utime: remove obsolete module
18385         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18386         unnecessary for years, and has been marked as obsolete for 10 months.
18387         * modules/utime: Remove file.
18388         * lib/utime.c: Remove file.
18389         * m4/utime.m4: Remove file.
18390         * m4/utimes-null.m4: Remove file.
18391         * doc/posix-functions/utime.texi (utime): Remove reference to
18392         the module.  Move the sole "fixed by gnulib" item into the
18393         "problems not fixed by Gnulib" list.
18394         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18395
18396 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18397
18398         * modules/exit (License): Relax license to LGPLv2+.
18399         (Status): Mark as obsolete.
18400         * NEWS: Mention deprecated 'exit' module.
18401         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18402         of now obsolete 'exit'.
18403
18404 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18405
18406         fts-lgpl: remove unused module
18407         * modules/fts-lgpl: Remove.
18408         * MODULES.html.sh (func_all_modules): Adjust.
18409         * check-module (find_included_lib_files): Adjust.
18410         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18411
18412 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18413
18414         copy-acl: enhance Solaris ACL error handling
18415         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18416         * lib/set-mode-acl.c (qset_acl): Likewise.
18417
18418 2010-03-02  Bruno Haible  <bruno@clisp.org>
18419
18420         spawn: Don't override the system defined values on FreeBSD 8.
18421         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18422         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18423         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18424         if HAVE_POSIX_SPAWN is 1.
18425         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18426
18427 2010-03-01  Bruno Haible  <bruno@clisp.org>
18428
18429         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18430         regarding Automake.
18431
18432 2010-02-25  Bruno Haible  <bruno@clisp.org>
18433
18434         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18435         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18436         setting, not afterwards.
18437         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18438
18439 2010-02-24  Eric Blake  <eblake@redhat.com>
18440
18441         bootstrap, git-version-gen: use timestamp
18442         * build-aux/git-version-gen (scriptversion): Force UTC.
18443         * build-aux/bootstrap (scriptversion): New variable.
18444
18445         bootstrap: allow older git
18446         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18447         older than 1.6.4.  Requested by the libvirt project.
18448
18449 2010-02-23  Eric Blake  <eblake@redhat.com>
18450
18451         warn-on-use: work with old autoconf
18452         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18453         AS_VAR semantics of autoconf 2.60.
18454         Reported by Bruno Haible.
18455
18456         bootstrap: improve some comments
18457         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18458         clarification comments.
18459
18460         gettimeofday: provide correct function
18461         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18462         when replacement is declared, otherwise provide gettimeofday.
18463         Reported by Michael Goffioul.
18464
18465 2010-02-23  Jim Meyering  <meyering@redhat.com>
18466
18467         lib-ignore: relax license to "unlimited", not LGPLv2+
18468         * modules/lib-ignore (License): Relax to "unlimited".
18469
18470 2010-02-23  Jim Meyering  <meyering@redhat.com>
18471
18472         lib-ignore: relax license to LGPLv2+
18473         * modules/lib-ignore (License): Relax to LGPLv2+.
18474
18475 2010-02-22  Eric Blake  <eblake@redhat.com>
18476
18477         lseek: avoid bash 3.2 broken pipe bug
18478         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18479         warning from bash 3.2.
18480         Reported by Ben Pfaff, with analysis from Bruno Haible.
18481
18482         bootstrap: support non-FSF copyright holder
18483         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18484         bootstrap.conf override of COPYRIGHT_HOLDER.
18485         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18486
18487         bootstrap: interoperate with gettext 0.14.1
18488         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18489
18490         bootstrap: allow for alternate submodule location
18491         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18492         hardcoding submodule location.
18493         (gnulib_mk): Allow direct use of Makefile.am.
18494
18495         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18496         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18497         rather than reconfiguring where the submodule points.
18498
18499         gettimeofday: restore support for platforms that lack function
18500         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18501         replacement if function is missing.
18502         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18503         * modules/sys_time (Makefile.am): Substitute it.
18504         * lib/sys_time.in.h (gettimeofday): Check it.
18505         Reported by Michael Goffioul.
18506
18507 2010-02-21  Bruno Haible  <bruno@clisp.org>
18508
18509         * lib/stdio.in.h (obstack_printf): Fix typo.
18510
18511 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18512
18513         vc-list-files: use bzr ls's -R option
18514         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18515         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18516
18517 2010-02-21  Jim Meyering  <meyering@redhat.com>
18518
18519         init.sh: fix EXEEXT shims to work also for names like test-prog
18520         * tests/init.sh: Re-exec a better shell, when needed.
18521         If the current shell lacks support for posix $(...), an init.sh-using
18522         test will now try to find a shell that supports that.  If EXEEXT is
18523         nonempty, we also require support for hyphen-in-alias-name and shell
18524         substitutions like ${var#glob}.  Failure to find such a shell results
18525         in a skipped test.
18526
18527 2010-02-21  Bruno Haible  <bruno@clisp.org>
18528
18529         Really work around around "broken pipe" error message from bash 3.2.
18530         * gnulib-tool (func_reset_sigpipe): Remove function.
18531         (echo): In bash 3.2, define to a function that uses printf.
18532         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18533
18534 2010-02-20  Bruno Haible  <bruno@clisp.org>
18535
18536         Restore support for automake 1.9.6 with autoconf 2.61.
18537         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18538         Reported by James Youngman <jay@gnu.org>.
18539
18540 2010-02-20  Bruno Haible  <bruno@clisp.org>
18541
18542         Improve *printf warning condition.
18543         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18544         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18545         and the function is overridden due to SIGPIPE emulation.
18546
18547 2010-02-20  Bruno Haible  <bruno@clisp.org>
18548
18549         * lib/stdio.in.h: Tweak comments.
18550
18551 2010-02-19  Bruno Haible  <bruno@clisp.org>
18552
18553         Make it easier to find modules. New gnulib-tool option '--find'.
18554         * gnulib-tool: New option --find.
18555         (func_usage): Document it.
18556         (func_sanitize_modulelist): New function, extracted from
18557         func_all_modules.
18558         (func_all_modules): Invoke it.
18559         * doc/gnulib-tool.texi (Which modules?): New node.
18560
18561 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18562
18563         * lib/sys_select.in.h: Provide select replacement even if
18564         sys/select.h exists on a system, for Interix.
18565
18566 2010-02-18  Jim Meyering  <meyering@redhat.com>
18567
18568         init.sh: don't use $(...) just yet
18569         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18570         to accommodate e.g., Solaris' /bin/sh.
18571
18572 2010-02-17  Bruno Haible  <bruno@clisp.org>
18573
18574         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18575         Reported by Ludovic Courtès <ludo@gnu.org>.
18576
18577 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18578
18579         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18580         linking with -lintl.
18581
18582 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18583
18584         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18585         if not provided by the system's netdb.h.  Reported by
18586         ludo@gnu.org (Ludovic Courtès).
18587
18588 2010-02-15  Jim Meyering  <meyering@redhat.com>
18589
18590         init.sh: improve portability and efficiency
18591         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18592         "dummy" in a for loop.
18593         Use '!', not '^' to select the complement of a character set used
18594         in a "case" statement.
18595         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18596         Suggestions from Eric Blake.
18597
18598         init.sh: automatically accommodate programs with the .exe suffix
18599         Automatically arrange for an invocation of "prog" to execute the
18600         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18601         may use the simpler "prog", yet still work when built on a system
18602         that requires specifying the added suffix.
18603         Do this by constructing a function named "prog" that invokes
18604         "prog.exe" for each .exe file in selected directories.
18605         * tests/init.sh (find_exe_basenames_): New function.
18606         (create_exe_shim_functions_): New function.
18607         (path_prepend_): Use it.
18608
18609         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18610         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18611         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18612
18613 2010-02-14  Jim Meyering  <meyering@redhat.com>
18614
18615         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18616         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18617         (sc_prohibit_hash_pjw_without_use): New rule.
18618
18619         maint.mk: allow the default upload destination dir to be overridden
18620         * top/maint.mk (upload_dest_dir_): Define with a default that
18621         preserves the status quo.
18622         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18623         Reported by Peter Simons.
18624
18625         maint.mk: prohibit inclusion of "hash.h" without_use
18626         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18627
18628 2010-02-10  Jim Meyering  <meyering@redhat.com>
18629
18630         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18631         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18632
18633 2010-02-09  Eric Blake  <ebb9@byu.net>
18634         and Bruno Haible  <bruno@clisp.org>
18635
18636         obstack-printf-posix: ensure declaration
18637         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18638         extracted from gl_FUNC_OBSTACK_PRINTF.
18639         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18640         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18641         Likewise.
18642         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18643         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18644         0.
18645
18646 2010-02-08  Bruno Haible  <bruno@clisp.org>
18647
18648         gnulib-tool: Fix typo in 2010-02-07 commit.
18649         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18650         Reported by Eric Blake.
18651
18652 2010-02-07  Bruno Haible  <bruno@clisp.org>
18653
18654         gnulib-tool: Fix up caching patches.
18655         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18656         option --no-cache. Use associative arrays when supported by the shell.
18657         (sed_comments): New variable.
18658         (modcache): Renamed from do_cache.
18659         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18660         abbreviate unnecessarily.
18661         (have_associative): New variable.
18662         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18663         way also for ksh and zsh.
18664         (func_init_sed_convert_to_cache_statements): New function, extracted
18665         from func_cache_lookup_module. Add support for associative arrays.
18666         Don't set the c_MODULE_cached variable here. Ignore all lines before
18667         the first field header. Remove only the final newline, not all trailing
18668         newlines. Support empty fields correctly. Limit the use of 'eval' to
18669         assignments.
18670         (func_get_description, func_get_status, func_get_notice,
18671         func_get_applicability, func_get_filelist, func_get_dependencies,
18672         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18673         func_get_automake_snippet, func_get_include_directive,
18674         func_get_link_directive, func_get_license, func_get_maintainer):
18675         Update documentation. List the unoptimized code first. Add support for
18676         associative arrays. Limit the use of 'eval' to assignments.
18677         (func_get_applicability): Undo stylistic pessimisations.
18678         (func_get_automake_snippet, func_get_include_directive): Reduce code
18679         duplication.
18680         (func_modules_transitive_closure, func_modules_add_dummy,
18681         func_modules_notice, func_modules_to_filelist, func_add_file,
18682         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18683         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18684         func_create_testdir, func_create_megatestdir): Update documentation.
18685
18686 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18687
18688         * gnulib-tool (func_cache_lookup_module): Store the module name
18689         belonging to the cache variable; error out if two different
18690         module names map to the same cache variable name.
18691
18692 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18693
18694         gnulib-tool: Make caching optional.
18695         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18696         Update matching short versions of --no-changelog.
18697         (func_usage): Update.
18698         (sed_extract_cache_prog): Renamed from ...
18699         (sed_extract_prog): ... this; revert to old extraction script.
18700         (func_get_description, func_get_status)
18701         (func_get_notice, func_get_applicability, func_get_filelist)
18702         (func_get_dependencies, func_get_autoconf_early_snippet)
18703         (func_get_autoconf_snippet, func_get_automake_snippet)
18704         (func_get_include_directive, func_get_link_directive)
18705         (func_get_license, func_get_maintainer): If $do_cache is false,
18706         use old, non-caching extraction scripts.
18707         Suggestion by Bruno Haible.
18708
18709 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18710
18711         gnulib-tool: cache module metainformation.
18712         * gnulib-tool (sed_extract_prog): Match newline before each
18713         header, and rewrite header to a shell variable suffix.
18714         (func_cache_var, func_cache_lookup_module): New functions,
18715         to turn a module name into a cache variable prefix, and to
18716         look up and cache module metainformation.
18717         (func_get_description, func_get_status)
18718         (func_get_notice, func_get_applicability, func_get_filelist)
18719         (func_get_dependencies, func_get_autoconf_early_snippet)
18720         (func_get_autoconf_snippet, func_get_automake_snippet)
18721         (func_get_include_directive, func_get_link_directive)
18722         (func_get_license, func_get_maintainer): Use
18723         func_cache_lookup_module.
18724
18725 2010-02-07  Bruno Haible  <bruno@clisp.org>
18726
18727         fnctl: Fix missing dependency.
18728         * modules/fcntl (Depends-on): Add getdtablesize.
18729         Reported by John W. Eaton <jwe@gnu.org>.
18730
18731 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18732
18733         Argp: fix recognition of short alias options.
18734
18735         * lib/argp-parse.c (convert_options): Fix improper use of
18736         `|' between character values.
18737         * tests/test-argp.c (group1_option): New alias option
18738         --read (-r).
18739         (group1_parser): Special handling for 'r'.
18740         (test15): New test case.
18741         (test_fun): Add test15.
18742         * tests/test-argp-2.sh: Update expected --help and --usage
18743         outputs.
18744
18745 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18746
18747         * tests/test-argp.c: Fix indentation.
18748
18749 2010-02-04  Eric Blake  <ebb9@byu.net>
18750
18751         gettimeofday: expose type of second argument
18752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18753         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18754         * tests/test-gettimeofday.c: Use it to silence warning.
18755         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18756         the issue.
18757
18758 2010-02-03  Jim Meyering  <meyering@redhat.com>
18759
18760         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18761         * lib/regcomp.c (TYPE_SIGNED): Define.
18762         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18763
18764         regcomp.c: avoid a new -Wshadow warning
18765         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18766
18767 2010-02-01  Jim Meyering  <meyering@redhat.com>
18768
18769         removing useless parentheses in cpp #define directives
18770         For motivation, see commit c0221df4, "define STREQ(a,b)
18771         consistently, removing useless parentheses"
18772         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18773         * lib/mountlist.c (MNT_IGNORE): Likewise.
18774         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18775
18776 2010-02-01  Eric Blake  <ebb9@byu.net>
18777
18778         sys_time: use link-warning
18779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18780         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18781         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18782         * modules/sys_time (Depends-on): Add warn-on-use.
18783         (Makefile.am): Always build replacement.
18784         (configure.ac): Update substitutions.
18785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18786         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18787         bother with SYS_TIME_H.
18788         * modules/gettimeofday (configure.ac): Declare indicator.
18789         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18790         in use.
18791
18792         closein-tests: silence compiler warning
18793         * tests/test-closein.c (main): Ignore fread result.
18794         * modules/closein-tests (Depends-on): Add ignore-value.
18795
18796         tests: silence warning about system return
18797         * tests/test-areadlink-with-size.c (main): Ignore system result.
18798         * tests/test-areadlink.c (main): Likewise.
18799         * tests/test-areadlinkat-with-size.c (main): Likewise.
18800         * tests/test-areadlinkat.c (main): Likewise.
18801         * tests/test-canonicalize-lgpl.c (main): Likewise.
18802         * tests/test-canonicalize.c (main): Likewise.
18803         * tests/test-chown.c (main): Likewise.
18804         * tests/test-fchownat.c (main): Likewise.
18805         * tests/test-fdutimensat.c (main): Likewise.
18806         * tests/test-fstatat.c (main): Likewise.
18807         * tests/test-futimens.c (main): Likewise.
18808         * tests/test-lchown.c (main): Likewise.
18809         * tests/test-link.c (main): Likewise.
18810         * tests/test-linkat.c (main): Likewise.
18811         * tests/test-lstat.c (main): Likewise.
18812         * tests/test-mkdir.c (main): Likewise.
18813         * tests/test-mkdirat.c (main): Likewise.
18814         * tests/test-mkfifo.c (main): Likewise.
18815         * tests/test-mkfifoat.c (main): Likewise.
18816         * tests/test-mknod.c (main): Likewise.
18817         * tests/test-readlink.c (main): Likewise.
18818         * tests/test-remove.c (main): Likewise.
18819         * tests/test-rename.c (main): Likewise.
18820         * tests/test-renameat.c (main): Likewise.
18821         * tests/test-rmdir.c (main): Likewise.
18822         * tests/test-symlink.c (main): Likewise.
18823         * tests/test-symlinkat.c (main): Likewise.
18824         * tests/test-unlink.c (main): Likewise.
18825         * tests/test-unlinkat.c (main): Likewise.
18826         * tests/test-utimens.c (main): Likewise.
18827         * tests/test-utimensat.c (main): Likewise.
18828         * modules/areadlink-tests (Depends-on): Add ignore-value.
18829         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18830         * modules/areadlinkat-tests (Depends-on): Likewise.
18831         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18832         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18833         * modules/canonicalize-tests (Depends-on): Likewise.
18834         * modules/chown-tests (Depends-on): Likewise.
18835         * modules/fdutimensat-tests (Depends-on): Likewise.
18836         * modules/futimens-tests (Depends-on): Likewise.
18837         * modules/lchown-tests (Depends-on): Likewise.
18838         * modules/link-tests (Depends-on): Likewise.
18839         * modules/linkat-tests (Depends-on): Likewise.
18840         * modules/lstat-tests (Depends-on): Likewise.
18841         * modules/mkdir-tests (Depends-on): Likewise.
18842         * modules/mkfifo-tests (Depends-on): Likewise.
18843         * modules/mkfifoat-tests (Depends-on): Likewise.
18844         * modules/mknod-tests (Depends-on): Likewise.
18845         * modules/openat-tests (Depends-on): Likewise.
18846         * modules/readlink-tests (Depends-on): Likewise.
18847         * modules/remove-tests (Depends-on): Likewise.
18848         * modules/rename-tests (Depends-on): Likewise.
18849         * modules/renameat-tests (Depends-on): Likewise.
18850         * modules/rmdir-tests (Depends-on): Likewise.
18851         * modules/symlink-tests (Depends-on): Likewise.
18852         * modules/symlinkat-tests (Depends-on): Likewise.
18853         * modules/unlink-tests (Depends-on): Likewise.
18854         * modules/utimens-tests (Depends-on): Likewise.
18855         * modules/utimensat-tests (Depends-on): Likewise.
18856
18857 2010-01-31  Bruno Haible  <bruno@clisp.org>
18858
18859         Perform the same test for many <math.h> functions.
18860         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18861         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18862         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18863         of gl_MATHFUNC.
18864         * modules/acos (configure.ac): Likewise.
18865         * modules/asin (configure.ac): Likewise.
18866         * modules/atan (configure.ac): Likewise.
18867         * modules/atan2 (configure.ac): Likewise.
18868         * modules/cbrt (configure.ac): Likewise.
18869         * modules/copysign (configure.ac): Likewise.
18870         * modules/cos (configure.ac): Likewise.
18871         * modules/cosh (configure.ac): Likewise.
18872         * modules/erf (configure.ac): Likewise.
18873         * modules/erfc (configure.ac): Likewise.
18874         * modules/exp (configure.ac): Likewise.
18875         * modules/fmod (configure.ac): Likewise.
18876         * modules/hypot (configure.ac): Likewise.
18877         * modules/j0 (configure.ac): Likewise.
18878         * modules/j1 (configure.ac): Likewise.
18879         * modules/jn (configure.ac): Likewise.
18880         * modules/lgamma (configure.ac): Likewise.
18881         * modules/log (configure.ac): Likewise.
18882         * modules/log10 (configure.ac): Likewise.
18883         * modules/log1p (configure.ac): Likewise.
18884         * modules/pow (configure.ac): Likewise.
18885         * modules/remainder (configure.ac): Likewise.
18886         * modules/sin (configure.ac): Likewise.
18887         * modules/sinh (configure.ac): Likewise.
18888         * modules/tan (configure.ac): Likewise.
18889         * modules/tanh (configure.ac): Likewise.
18890         * modules/y0 (configure.ac): Likewise.
18891         * modules/y1 (configure.ac): Likewise.
18892         * modules/yn (configure.ac): Likewise.
18893         Suggested by Paolo Bonzini.
18894
18895 2010-01-31  Bruno Haible  <bruno@clisp.org>
18896
18897         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18898
18899 2010-01-31  Bruno Haible  <bruno@clisp.org>
18900
18901         Work around getdelim() bug on FreeBSD 8.0.
18902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18903         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18904         not work.
18905         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18906         is 1.
18907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18908         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18909         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18910         a non-zero size.
18911         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18912
18913 2010-01-31  Bruno Haible  <bruno@clisp.org>
18914
18915         Work around getline() bug on FreeBSD 8.0.
18916         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18917         and a non-zero size.
18918         * tests/test-getline.c (main): Likewise.
18919         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18920         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18921
18922 2010-01-28  Eric Blake  <ebb9@byu.net>
18923
18924         regex: fix build failure
18925         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18926         platforms.
18927
18928 2010-01-28  Jim Meyering  <meyering@redhat.com>
18929
18930         regex: do not ignore memory allocation failure
18931         * lib/regex_internal.c (create_cd_newstate): Detect
18932         re_node_set_init_copy failure.   Extracted from glibc commit
18933         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18934
18935         regex: sync more white-space changes from libc
18936         * lib/regex_internal.c: White-space only changes.
18937         * lib/regexec.c: Likewise.
18938
18939         regex: add many uses of __attribute_warn_unused_result__
18940         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18941         * lib/regexec.c: Likewise.
18942         Extracted from a messy glibc commit.
18943
18944         regcomp.c: spelling and merge-artifact from glibc
18945         * lib/regcomp.c: Merge remainder of glibc's
18946         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18947
18948         regcomp.c: sync white-space changes from glibc
18949         * lib/regcomp.c: Merge to accommodate white space
18950         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18951
18952         regcomp.c: do not ignore internal return values
18953         * lib/regcomp.c: Do not ignore internal return values.
18954         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18955         but without its white-space changes and spelling fixes.
18956
18957         regex_internal.h: define __attribute_warn_unused_result__
18958         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18959
18960         maint: add a syntax-check rule to check for vulnerable Makefile.in
18961         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18962
18963 2010-01-27  Jim Meyering  <meyering@redhat.com>
18964
18965         ncftpput-ftp: clean up spaces
18966         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18967         Remove trailing blanks.
18968
18969 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18970
18971         * build-aux/git-version-gen: Fix copyright statement.
18972         * build-aux/gnupload: Likewise.
18973         * tests/test-arcfour.c: Likewise.
18974         * tests/test-arctwo.c: Likewise.
18975         * tests/test-count-one-bits.c: Likewise.
18976         * tests/test-crc.c: Likewise.
18977         * tests/test-des.c: Likewise.
18978         * tests/test-gc-arcfour.c: Likewise.
18979         * tests/test-gc-arctwo.c: Likewise.
18980         * tests/test-gc-des.c: Likewise.
18981         * tests/test-gc-hmac-md5.c: Likewise.
18982         * tests/test-gc-hmac-sha1.c: Likewise.
18983         * tests/test-gc-md2.c: Likewise.
18984         * tests/test-gc-md4.c: Likewise.
18985         * tests/test-gc-md5.c: Likewise.
18986         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18987         * tests/test-gc-rijndael.c: Likewise.
18988         * tests/test-gc-sha1.c: Likewise.
18989         * tests/test-gc.c: Likewise.
18990         * tests/test-gethostname.c: Likewise.
18991         * tests/test-gettimeofday.c: Likewise.
18992         * tests/test-hash.c: Likewise.
18993         * tests/test-hmac-md5.c: Likewise.
18994         * tests/test-hmac-sha1.c: Likewise.
18995         * tests/test-md2.c: Likewise.
18996         * tests/test-md4.c: Likewise.
18997         * tests/test-md5.c: Likewise.
18998         * tests/test-memchr.c: Likewise.
18999         * tests/test-memchr2.c: Likewise.
19000         * tests/test-memcmp.c: Likewise.
19001         * tests/test-memmem.c: Likewise.
19002         * tests/test-memrchr.c: Likewise.
19003         * tests/test-rawmemchr.c: Likewise.
19004         * tests/test-read-file.c: Likewise.
19005         * tests/test-rijndael.c: Likewise.
19006         * tests/test-sockets.c: Likewise.
19007         * tests/test-strchrnul.c: Likewise.
19008         * tests/test-strstr.c: Likewise.
19009         * tests/test-strtod.c: Likewise.
19010         * build-aux/ncftpput-ftp: Likewise.
19011
19012 2010-01-26  Eric Blake  <ebb9@byu.net>
19013
19014         ignore-value: update recommended header name
19015         * modules/ignore-value (Include): Only use <> for headers that
19016         exist in glibc.
19017
19018 2010-01-26  Jim Meyering  <meyering@redhat.com>
19019
19020         test-userspec.c: avoid compiler warnings
19021         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
19022         and "initialization discards qualifiers..." warnings.
19023         Put the first "uid" in its own scope, and make char* members "const".
19024
19025 2010-01-25  Bruno Haible  <bruno@clisp.org>
19026
19027         gnulib-tool: Make warning diagnostics consistent.
19028         * gnulib-tool (func_warning): New function.
19029         Use it everywhere where gnulib-tool produces output to stderr and it is
19030         not a fatal error.
19031
19032 2010-01-25  Bruno Haible  <bruno@clisp.org>
19033
19034         Fix test dependencies.
19035         * modules/xstrtol-tests (Depends-on): Add inttypes.
19036         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
19037
19038 2010-01-25 Pádraig Brady <P@draigBrady.com>
19039
19040         syntax-check: detect incorrect boolean macro values in config.h
19041         * modules/maintainer-makefile (configure.ac): Parameterize the location
19042         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
19043         The logic is from Eric Blake and the location indicated by Jim Meyering.
19044         Note the more natural CONFIG_HEADER name is prohibited by automake
19045         for backwards compatibility reasons.
19046         * top/maint.mk (sc_Wundef_boolean): New rule.
19047
19048 2010-01-25  Jim Meyering  <meyering@redhat.com>
19049
19050         bootstrap: detect MacOS 10.6's shasum, too
19051         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
19052         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
19053
19054 2010-01-23  Jim Meyering  <meyering@redhat.com>
19055
19056         xstrtoll: new module
19057         * modules/xstrtoll: New file.
19058         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
19059         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
19060         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
19061         ./configure fails if you use this module and lack "long long".
19062         * modules/xstrtoll-tests: New module.
19063         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
19064         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
19065         new init.sh-based test framework.
19066
19067 2010-01-24  Bruno Haible  <bruno@clisp.org>
19068
19069         Tests for module 'yn'.
19070         * modules/yn-tests: New file.
19071         * tests/test-yn.c: New file.
19072
19073         Tests for module 'y1'.
19074         * modules/y1-tests: New file.
19075         * tests/test-y1.c: New file.
19076
19077         Tests for module 'y0'.
19078         * modules/y0-tests: New file.
19079         * tests/test-y0.c: New file.
19080
19081         Tests for module 'tanh'.
19082         * modules/tanh-tests: New file.
19083         * tests/test-tanh.c: New file.
19084
19085         Tests for module 'tan'.
19086         * modules/tan-tests: New file.
19087         * tests/test-tan.c: New file.
19088
19089         Tests for module 'sqrt'.
19090         * modules/sqrt-tests: New file.
19091         * tests/test-sqrt.c: New file.
19092
19093         Tests for module 'sinh'.
19094         * modules/sinh-tests: New file.
19095         * tests/test-sinh.c: New file.
19096
19097         Tests for module 'sin'.
19098         * modules/sin-tests: New file.
19099         * tests/test-sin.c: New file.
19100
19101         Tests for module 'rint'.
19102         * modules/rint-tests: New file.
19103         * tests/test-rint.c: New file.
19104
19105         Tests for module 'remainder'.
19106         * modules/remainder-tests: New file.
19107         * tests/test-remainder.c: New file.
19108
19109         Tests for module 'pow'.
19110         * modules/pow-tests: New file.
19111         * tests/test-pow.c: New file.
19112
19113         Tests for module 'nextafter'.
19114         * modules/nextafter-tests: New file.
19115         * tests/test-nextafter.c: New file.
19116
19117         Tests for module 'modf'.
19118         * modules/modf-tests: New file.
19119         * tests/test-modf.c: New file.
19120
19121         Tests for module 'logb'.
19122         * modules/logb-tests: New file.
19123         * tests/test-logb.c: New file.
19124
19125         Tests for module 'log1p'.
19126         * modules/log1p-tests: New file.
19127         * tests/test-log1p.c: New file.
19128
19129         Tests for module 'log10'.
19130         * modules/log10-tests: New file.
19131         * tests/test-log10.c: New file.
19132
19133         Tests for module 'log'.
19134         * modules/log-tests: New file.
19135         * tests/test-log.c: New file.
19136
19137         Tests for module 'lgamma'.
19138         * modules/lgamma-tests: New file.
19139         * tests/test-lgamma.c: New file.
19140
19141         Tests for module 'ldexp'.
19142         * modules/ldexp-tests: New file.
19143         * tests/test-ldexp.c: New file.
19144
19145         Tests for module 'jn'.
19146         * modules/jn-tests: New file.
19147         * tests/test-jn.c: New file.
19148
19149         Tests for module 'j1'.
19150         * modules/j1-tests: New file.
19151         * tests/test-j1.c: New file.
19152
19153         Tests for module 'j0'.
19154         * modules/j0-tests: New file.
19155         * tests/test-j0.c: New file.
19156
19157         Tests for module 'hypot'.
19158         * modules/hypot-tests: New file.
19159         * tests/test-hypot.c: New file.
19160
19161         Tests for module 'fmod'.
19162         * modules/fmod-tests: New file.
19163         * tests/test-fmod.c: New file.
19164
19165         Tests for module 'fabs'.
19166         * modules/fabs-tests: New file.
19167         * tests/test-fabs.c: New file.
19168
19169         Tests for module 'exp'.
19170         * modules/exp-tests: New file.
19171         * tests/test-exp.c: New file.
19172
19173         Tests for module 'erfc'.
19174         * modules/erfc-tests: New file.
19175         * tests/test-erfc.c: New file.
19176
19177         Tests for module 'erf'.
19178         * modules/erf-tests: New file.
19179         * tests/test-erf.c: New file.
19180
19181         Tests for module 'cosh'.
19182         * modules/cosh-tests: New file.
19183         * tests/test-cosh.c: New file.
19184
19185         Tests for module 'cos'.
19186         * modules/cos-tests: New file.
19187         * tests/test-cos.c: New file.
19188
19189         Tests for module 'copysign'.
19190         * modules/copysign-tests: New file.
19191         * tests/test-copysign.c: New file.
19192
19193         Tests for module 'cbrt'.
19194         * modules/cbrt-tests: New file.
19195         * tests/test-cbrt.c: New file.
19196
19197         Tests for module 'atan2'.
19198         * modules/atan2-tests: New file.
19199         * tests/test-atan2.c: New file.
19200
19201         Tests for module 'atan'.
19202         * modules/atan-tests: New file.
19203         * tests/test-atan.c: New file.
19204
19205         Tests for module 'asin'.
19206         * modules/asin-tests: New file.
19207         * tests/test-asin.c: New file.
19208
19209         Tests for module 'acos'.
19210         * modules/acos-tests: New file.
19211         * tests/test-acos.c: New file.
19212
19213 2010-01-24  Bruno Haible  <bruno@clisp.org>
19214
19215         Fix tests for common <math.h> functions.
19216         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
19217         code snippet that references the function pointer, rather than merely
19218         calling the function. Substitute the FUNC_LIBM variable.
19219         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
19220         * modules/acos (configure.ac): Likewise.
19221         * modules/asin (configure.ac): Likewise.
19222         * modules/atan (configure.ac): Likewise.
19223         * modules/atan2 (configure.ac): Likewise.
19224         * modules/cbrt (configure.ac): Likewise.
19225         * modules/copysign (configure.ac): Likewise.
19226         * modules/cos (configure.ac): Likewise.
19227         * modules/cosh (configure.ac): Likewise.
19228         * modules/erf (configure.ac): Likewise.
19229         * modules/erfc (configure.ac): Likewise.
19230         * modules/exp (configure.ac): Likewise.
19231         * modules/fabs (configure.ac): Likewise.
19232         * modules/fmod (configure.ac): Likewise.
19233         * modules/hypot (configure.ac): Likewise.
19234         * modules/j0 (configure.ac): Likewise.
19235         * modules/j1 (configure.ac): Likewise.
19236         * modules/jn (configure.ac): Likewise.
19237         * modules/ldexp (configure.ac): Likewise.
19238         * modules/lgamma (configure.ac): Likewise.
19239         * modules/log (configure.ac): Likewise.
19240         * modules/log10 (configure.ac): Likewise.
19241         * modules/log1p (configure.ac): Likewise.
19242         * modules/logb (configure.ac): Likewise.
19243         * modules/modf (configure.ac): Likewise.
19244         * modules/nextafter (configure.ac): Likewise.
19245         * modules/pow (configure.ac): Likewise.
19246         * modules/remainder (configure.ac): Likewise.
19247         * modules/rint (configure.ac): Likewise.
19248         * modules/sin (configure.ac): Likewise.
19249         * modules/sinh (configure.ac): Likewise.
19250         * modules/tan (configure.ac): Likewise.
19251         * modules/tanh (configure.ac): Likewise.
19252         * modules/y0 (configure.ac): Likewise.
19253         * modules/y1 (configure.ac): Likewise.
19254         * modules/yn (configure.ac): Likewise.
19255
19256 2010-01-24  Bruno Haible  <bruno@clisp.org>
19257
19258         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
19259         * tests/test-acosl.c (x): New variable.
19260         (main): Store argument in x and fetch it from x.
19261         * tests/test-asinl.c (x): New variable.
19262         (main): Store argument in x and fetch it from x.
19263         * tests/test-atanl.c (x): New variable.
19264         (main): Store argument in x and fetch it from x.
19265         * tests/test-cosl.c (x): New variable.
19266         (main): Store argument in x and fetch it from x.
19267         * tests/test-expl.c (x): New variable.
19268         (main): Store argument in x and fetch it from x.
19269         * tests/test-logl.c (x): New variable.
19270         (main): Store argument in x and fetch it from x.
19271         * tests/test-sinl.c (x): New variable.
19272         (main): Store argument in x and fetch it from x.
19273         * tests/test-sqrtl.c (x): New variable.
19274         (main): Store argument in x and fetch it from x.
19275         * tests/test-tanl.c (x): New variable.
19276         (main): Store argument in x and fetch it from x.
19277
19278 2010-01-24  Bruno Haible  <bruno@clisp.org>
19279
19280         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
19281         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
19282         assignments to the initial TESTS_ENVIRONMENT.
19283         * doc/gnulib.texi (Unit test modules): Document it.
19284         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
19285         TESTS_ENVIRONMENT.
19286         * modules/btowc-tests (Makefile.am): Likewise.
19287         * modules/c-stack-tests (Makefile.am): Likewise.
19288         * modules/c-strcase-tests (Makefile.am): Likewise.
19289         * modules/copy-file-tests (Makefile.am): Likewise.
19290         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
19291         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
19292         * modules/mbrtowc-tests (Makefile.am): Likewise.
19293         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19294         * modules/mbscasestr-tests (Makefile.am): Likewise.
19295         * modules/mbschr-tests (Makefile.am): Likewise.
19296         * modules/mbscspn-tests (Makefile.am): Likewise.
19297         * modules/mbsinit-tests (Makefile.am): Likewise.
19298         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
19299         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
19300         * modules/mbspbrk-tests (Makefile.am): Likewise.
19301         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
19302         * modules/mbsrchr-tests (Makefile.am): Likewise.
19303         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
19304         * modules/mbsspn-tests (Makefile.am): Likewise.
19305         * modules/mbsstr-tests (Makefile.am): Likewise.
19306         * modules/nl_langinfo-tests (Makefile.am): Likewise.
19307         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
19308         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
19309         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
19310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
19311         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
19312         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
19313         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
19314         * modules/wcrtomb-tests (Makefile.am): Likewise.
19315         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
19316         * modules/wcsrtombs-tests (Makefile.am): Likewise.
19317         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
19318         assignments from TESTS_ENVIRONMENT.
19319         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
19320         augmentation.
19321         * modules/argp-version-etc-tests (Makefile.am): Likewise.
19322         * modules/atexit-tests (Makefile.am): Likewise.
19323         * modules/binary-io-tests (Makefile.am): Likewise.
19324         * modules/closein-tests (Makefile.am): Likewise.
19325         * modules/dprintf-posix-tests (Makefile.am): Likewise.
19326         * modules/exclude-tests (Makefile.am): Likewise.
19327         * modules/fflush-tests (Makefile.am): Likewise.
19328         * modules/fpending-tests (Makefile.am): Likewise.
19329         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19330         * modules/freadahead-tests (Makefile.am): Likewise.
19331         * modules/freadptr-tests (Makefile.am): Likewise.
19332         * modules/freadseek-tests (Makefile.am): Likewise.
19333         * modules/fseek-tests (Makefile.am): Likewise.
19334         * modules/fseeko-tests (Makefile.am): Likewise.
19335         * modules/ftell-tests (Makefile.am): Likewise.
19336         * modules/ftello-tests (Makefile.am): Likewise.
19337         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19338         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19339         * modules/lseek-tests (Makefile.am): Likewise.
19340         * modules/parse-duration-tests (Makefile.am): Likewise.
19341         * modules/perror-tests (Makefile.am): Likewise.
19342         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19343         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19344         * modules/pipe-tests (Makefile.am): Likewise.
19345         * modules/pread-tests (Makefile.am): Likewise.
19346         * modules/printf-posix-tests (Makefile.am): Likewise.
19347         * modules/select-tests (Makefile.am): Likewise.
19348         * modules/sigpipe-tests (Makefile.am): Likewise.
19349         * modules/tsearch-tests (Makefile.am): Likewise.
19350         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19351         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19352         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19353         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19354         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19355         * modules/version-etc-tests (Makefile.am): Likewise.
19356         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19357         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19358         * modules/xalloc-die-tests (Makefile.am): Likewise.
19359         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19360         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19361         * modules/xstrtol-tests (Makefile.am): Likewise.
19362         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19363         * modules/yesno-tests (Makefile.am): Likewise.
19364         Suggested by Jim Meyering.
19365
19366 2010-01-24  Bruno Haible  <bruno@clisp.org>
19367
19368         More documentation.
19369         * doc/gnulib.texi (Writing modules): New chapter.
19370         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19371         the new chapter.
19372
19373 2010-01-24  Jim Meyering  <meyering@redhat.com>
19374
19375         maint.mk: do not prepend "./" after filtering
19376         * top/maint.mk (_prepend_srcdir_prefix): New variable
19377         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19378         "./" when $(srcdir) is ".".
19379
19380         define STREQ(a,b) consistently, removing useless parentheses
19381         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19382         since the only risk is that "a" or "b" contains an unparenthesized
19383         comma, but if either did that, STREQ would have 3 or more arguments.
19384         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19385         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19386         * lib/hash-triple.c (STREQ): Likewise.
19387         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19388         * lib/getugroups.c (STREQ): Likewise.
19389
19390 2010-01-23  Jim Meyering  <meyering@redhat.com>
19391
19392         maint.mk: fix syntax-check in a non-srcdir build directory
19393         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19394         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19395
19396 2010-01-22  Jim Meyering  <meyering@redhat.com>
19397
19398         userspec: add unit tests
19399         * tests/test-userspec.c: New file.
19400         * modules/userspec-tests: Likewise.
19401
19402 2010-01-21  Jim Meyering  <meyering@redhat.com>
19403
19404         maint.mk: handle source file names containing "." robustly
19405         * top/maint.mk (_dot_escaped_srcdir): Define.
19406         (VC_LIST): Use it in LHS of sed substitution.
19407
19408 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19409
19410         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19411         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19412         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19413         from a non-srcdir build.
19414
19415 2010-01-20  Eric Blake  <ebb9@byu.net>
19416
19417         warn-on-use: use instead of link-warning
19418         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19419         * modules/unistd (Depends-on, Makefile.am): Likewise.
19420         * modules/arpa_inet (Depends-on): Replace link-warning with
19421         warn-on-use.
19422         (Makefile.am): Update rules accordingly.
19423         * modules/ctype (Depends-on, Makefile.am): Likewise.
19424         * modules/dirent (Depends-on, Makefile.am): Likewise.
19425         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19426         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19427         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19428         * modules/locale (Depends-on, Makefile.am): Likewise.
19429         * modules/math (Depends-on, Makefile.am): Likewise.
19430         * modules/search (Depends-on, Makefile.am): Likewise.
19431         * modules/signal (Depends-on, Makefile.am): Likewise.
19432         * modules/spawn (Depends-on, Makefile.am): Likewise.
19433         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19434         * modules/string (Depends-on, Makefile.am): Likewise.
19435         * modules/strings (Depends-on, Makefile.am): Likewise.
19436         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19437         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19438         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19439         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19440         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19441         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19442         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19443         * modules/wchar (Depends-on, Makefile.am): Likewise.
19444         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19445         should be poisoned.
19446         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19447         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19448         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19449         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19451         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19452         * m4/math_h.m4 (gl_MATH_H): Likewise.
19453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19454         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19455         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19456         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19457         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19458         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19459         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19460         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19465         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19466         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19469         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19470         GL_LINK_WARNING.
19471         * lib/ctype.in.h: Likewise.
19472         * lib/dirent.in.h: Likewise.
19473         * lib/fcntl.in.h: Likewise.
19474         * lib/inttypes.in.h: Likewise.
19475         * lib/langinfo.in.h: Likewise.
19476         * lib/locale.in.h: Likewise.
19477         * lib/math.in.h: Likewise.
19478         * lib/search.in.h: Likewise.
19479         * lib/signal.in.h: Likewise.
19480         * lib/spawn.in.h: Likewise.
19481         * lib/stdio.in.h: Likewise.
19482         * lib/stdlib.in.h: Likewise.
19483         * lib/string.in.h: Likewise.
19484         * lib/strings.in.h: Likewise.
19485         * lib/sys_file.in.h: Likewise.
19486         * lib/sys_ioctl.in.h: Likewise.
19487         * lib/sys_select.in.h: Likewise.
19488         * lib/sys_socket.in.h: Likewise.
19489         * lib/sys_stat.in.h: Likewise.
19490         * lib/sys_times.in.h: Likewise.
19491         * lib/sys_utsname.in.h: Likewise.
19492         * lib/unistd.in.h: Likewise.
19493         * lib/wchar.in.h: Likewise.
19494
19495 2010-01-20  Bruno Haible  <bruno@clisp.org>
19496
19497         Avoid duplicate -lm.
19498         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19499         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19501         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19502         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19503         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19504         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19505         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19506         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19507         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19508         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19509         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19510         Reported by Paolo Bonzini.
19511
19512 2010-01-19  Bruno Haible  <bruno@clisp.org>
19513
19514         langinfo, nl_langinfo: Relicense under LGPLv2+.
19515         * modules/langinfo (License): Change to LGPLv2+.
19516         * modules/nl_langinfo (License): Likewise.
19517         Patch by David Lutterkort <lutter@redhat.com>.
19518
19519 2010-01-19  Bruno Haible  <bruno@clisp.org>
19520
19521         Avoid compilation error with cc on OSF/1 5.1.
19522         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19523         statement, not before.
19524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19525
19526 2010-01-18  Bruno Haible  <bruno@clisp.org>
19527
19528         Avoid a link error due to the __printf__ symbol.
19529         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19530         and 2.6.x.
19531         (__format__, __printf__): Remove definitions.
19532         * lib/argp-fmtstream.h: Likewise.
19533         * lib/argp.h: Likewise.
19534         * lib/error.h: Likewise.
19535         * lib/vasnprintf.h: Likewise.
19536         * lib/xprintf.h: Likewise.
19537         * lib/xvasprintf.h: Likewise.
19538         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19539
19540 2010-01-18  Bruno Haible  <bruno@clisp.org>
19541
19542         Tests for module 'tanl'.
19543         * modules/tanl-tests: New file.
19544         * tests/test-tanl.c: New file.
19545
19546         Tests for module 'sqrtl'.
19547         * modules/sqrtl-tests: New file.
19548         * tests/test-sqrtl.c: New file.
19549
19550         Tests for module 'sinl'.
19551         * modules/sinl-tests: New file.
19552         * tests/test-sinl.c: New file.
19553
19554         Tests for module 'logl'.
19555         * modules/logl-tests: New file.
19556         * tests/test-logl.c: New file.
19557
19558         Tests for module 'expl'.
19559         * modules/expl-tests: New file.
19560         * tests/test-expl.c: New file.
19561
19562         Tests for module 'cosl'.
19563         * modules/cosl-tests: New file.
19564         * tests/test-cosl.c: New file.
19565
19566         Tests for module 'atanl'.
19567         * modules/atanl-tests: New file.
19568         * tests/test-atanl.c: New file.
19569
19570         Tests for module 'asinl'.
19571         * modules/asinl-tests: New file.
19572         * tests/test-asinl.c: New file.
19573
19574         Tests for module 'acosl'.
19575         * modules/acosl-tests: New file.
19576         * tests/test-acosl.c: New file.
19577
19578         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19579         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19580         tanl): Use the standard gnulib idiom.
19581         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19582         * lib/sinl.c: Likewise.
19583         * lib/tanl.c: Don't include trigl.c.
19584         (kernel_tanl): Make static.
19585         * lib/sincosl.c: Include trigl.h first.
19586         * lib/trigl.c: Likewise.
19587         * m4/acosl.m4: New file.
19588         * m4/asinl.m4: New file.
19589         * m4/atanl.m4: New file.
19590         * m4/cosl.m4: New file.
19591         * m4/expl.m4: New file.
19592         * m4/logl.m4: New file.
19593         * m4/sinl.m4: New file.
19594         * m4/sqrtl.m4: New file.
19595         * m4/tanl.m4: New file.
19596         * m4/mathl.m4: Remove file.
19597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19598         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19599         Don't initialize GNULIB_MATHL.
19600         * modules/acosl: New file.
19601         * modules/asinl: New file.
19602         * modules/atanl: New file.
19603         * modules/cosl: New file.
19604         * modules/expl: New file.
19605         * modules/logl: New file.
19606         * modules/sinl: New file.
19607         * modules/sqrtl: New file.
19608         * modules/tanl: New file.
19609         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19610         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19611         substitute GNULIB_MATHL.
19612         * modules/mathl: Rewritten.
19613         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19614         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19615         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19616         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19617         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19618         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19619         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19620         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19621         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19622
19623 2010-01-18  Bruno Haible  <bruno@clisp.org>
19624
19625         sqrt: Make gl_FUNC_SQRT requirable.
19626         * m4/sqrt.m4: New file.
19627         * modules/sqrt (Files): Add it.
19628         (configure.ac): Invoke gl_FUNC_SQRT.
19629
19630 2010-01-18  Bruno Haible  <bruno@clisp.org>
19631
19632         New modules for common <math.h> functions.
19633         * m4/mathfunc.m4: New file.
19634         * modules/acos: New file.
19635         * modules/asin: New file.
19636         * modules/atan: New file.
19637         * modules/atan2: New file.
19638         * modules/cbrt: New file.
19639         * modules/copysign: New file.
19640         * modules/cos: New file.
19641         * modules/cosh: New file.
19642         * modules/erf: New file.
19643         * modules/erfc: New file.
19644         * modules/exp: New file.
19645         * modules/fabs: New file.
19646         * modules/fmod: New file.
19647         * modules/hypot: New file.
19648         * modules/j0: New file.
19649         * modules/j1: New file.
19650         * modules/jn: New file.
19651         * modules/ldexp: New file.
19652         * modules/lgamma: New file.
19653         * modules/log: New file.
19654         * modules/log10: New file.
19655         * modules/log1p: New file.
19656         * modules/logb: New file.
19657         * modules/modf: New file.
19658         * modules/nextafter: New file.
19659         * modules/pow: New file.
19660         * modules/remainder: New file.
19661         * modules/rint: New file.
19662         * modules/sin: New file.
19663         * modules/sinh: New file.
19664         * modules/sqrt: New file.
19665         * modules/tan: New file.
19666         * modules/tanh: New file.
19667         * modules/y0: New file.
19668         * modules/y1: New file.
19669         * modules/yn: New file.
19670         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19671         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19672         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19673         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19674         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19675         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19676         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19677         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19678         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19679         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19680         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19681         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19682         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19683         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19684         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19685         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19686         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19687         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19688         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19689         * doc/posix-functions/log.texi: Mention the 'log' module.
19690         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19691         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19692         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19693         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19694         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19695         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19696         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19697         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19698         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19699         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19700         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19701         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19702         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19703         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19704         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19705         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19706
19707 2010-01-18  Jim Meyering  <meyering@redhat.com>
19708
19709         ignore-value: relax license to LGPLv2+
19710         * modules/ignore-value (License): Relax to LGPLv2+.
19711
19712         getdate: don't leak when TZ contains two or more '"'s
19713         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19714         double quote in TZ after the first one.
19715
19716         readtokens: do not leak internal token_lengths buffer
19717         * lib/readtokens.c (readtokens): Free the local, lengths,
19718         when the supplied "token_lengths" parameter is NULL.
19719
19720 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19721
19722         Fix a couple of missing LIBTHREAD link failures on AIX.
19723         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19724         $(LIBTHREAD).
19725         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19726
19727         Link test-poll against INET_PTON_LIB.
19728         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19729         for inet_pton on Solaris 10.
19730
19731 2010-01-17  Bruno Haible  <bruno@clisp.org>
19732
19733         unistdio/*-sprintf: Fix typo in module description.
19734         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19735         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19736         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19737         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19738         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19739         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19740         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19742
19743 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19744
19745         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19746         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19747         variables in shell case patterns, for AIX and HP-UX ksh.
19748
19749         Split large sed scripts, for HP-UX sed.
19750         * modules/stdio: Split sed scripts around 50 sed commands,
19751         to avoid HP-UX limit of 99 commands, in the near future.
19752         * modules/string: Likewise.
19753         * modules/unistd: Likewise.
19754
19755         gnulib-tool: avoid writing in the current directory.
19756         * gnulib-tool (func_emit_lib_Makefile_am)
19757         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19758         not in the current directory, so concurrent gnulib-tool
19759         instances do not interfere.
19760
19761 2010-01-16  Jim Meyering  <meyering@redhat.com>
19762
19763         doc: update users.txt
19764         * users.txt: Add grep.
19765         (diffutils, gzip): Update URLs.
19766
19767 2010-01-12  Bruno Haible  <bruno@clisp.org>
19768
19769         posix_spawn: Avoid test failure on Cygwin.
19770         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19771         characters.
19772         Reported by Simon Josefsson.
19773
19774 2010-01-12  Bruno Haible  <bruno@clisp.org>
19775
19776         * tests/test-cond.c (main): When skipping the test, show the reason.
19777
19778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19779
19780         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19781
19782 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19783
19784         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19785         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19786
19787 2010-01-12  Eric Blake  <ebb9@byu.net>
19788
19789         build: guarantee AS_VAR_IF
19790         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19791         (gl_AS_VAR_IF): Move...
19792         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19793         Reported by Simon Josefsson.
19794
19795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19796
19797         * lib/stdio.in.h: Fix typo.
19798
19799 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19800
19801         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19802         libgpg-error.
19803
19804 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19805
19806         * tests/test-xalloc-die.sh: Use $EXEEXT.
19807
19808 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19809             Bruno Haible  <bruno@clisp.org>
19810
19811         getlogin, getlogin_r: Avoid test failure.
19812         * tests/test-getlogin.c: Include <stdio.h>.
19813         (main): Skip the test when the function fails because stdin is not a
19814         tty.
19815         * tests/test-getlogin_r.c: Include <stdio.h>.
19816         (main): Skip the test when the function fails because stdin is not a
19817         tty.
19818
19819 2010-01-11  Eric Blake  <ebb9@byu.net>
19820
19821         tests: avoid more large file warnings
19822         * tests/test-fflush.c: Avoid warning about ftell use.
19823         * tests/test-fseek.c: Avoid warning about fseek use.
19824
19825 2010-01-10  Bruno Haible  <bruno@clisp.org>
19826
19827         nproc: Work better on Linux when /proc and /sys are not mounted.
19828         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19829         as lower bound when, on glibc/Linux systems,
19830         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19831         Suggested by Pádraig Brady <P@draigbrady.com>.
19832         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19833
19834         nproc: Refactor.
19835         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19836         extracted from num_processors.
19837         (num_processors): Call it.
19838
19839 2010-01-11  Jim Meyering  <meyering@redhat.com>
19840
19841         utimecmp: avoid new warning from upcoming gcc-4.5.0
19842         * lib/utimecmp.c (BILLION): Define using #define rather than an
19843         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19844
19845 2010-01-11  Eric Blake  <ebb9@byu.net>
19846
19847         math: add portability warnings for classification macros
19848         * modules/math (Depends-on): Add warn-on-use.
19849         (Makefile.am): Provide new substitutions.
19850         * m4/math_h.m4 (gl_MATH_H): Require inline.
19851         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19852         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19853         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19854         implement warnings.
19855
19856         unistd: warn on use of environ without module
19857         * modules/unistd (Depends-on): Add warn-on-use.
19858         (Makefile.am): Provide new substitutions.
19859         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19860         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19861
19862         stdio: warn on suspicious uses
19863         * modules/stdio (Depends-on): Add warn-on-use.
19864         (Makefile.am): Provide new substitutions.
19865         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19866         fseeko.
19867         * lib/stdio.in.h (gets): Always warn on use.
19868         (fseek, ftell): Adjust when warnings are issued, and honor
19869         _GL_NO_LARGE_FILES as a way to silence the warning.
19870         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19871         any warning about large file offsets.
19872         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19873         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19874         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19875         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19876         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19877         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19878         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19879         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19880
19881         warn-on-use: new module
19882         * modules/warn-on-use: New file.
19883         * build-aux/warn-on-use.h: Likewise.
19884         * m4/warn-on-use.m4: Likewise.
19885         * MODULES.html.sh (Support for building): Mention it.
19886
19887 2010-01-10  Bruno Haible  <bruno@clisp.org>
19888
19889         Tests for module 'unistr/u32-strdup'.
19890         * modules/unistr/u32-strdup-tests: New file.
19891         * tests/unistr/test-u32-strdup.c: New file.
19892
19893         Tests for module 'unistr/u16-strdup'.
19894         * modules/unistr/u16-strdup-tests: New file.
19895         * tests/unistr/test-u16-strdup.c: New file.
19896
19897         Tests for module 'unistr/u8-strdup'.
19898         * modules/unistr/u8-strdup-tests: New file.
19899         * tests/unistr/test-u8-strdup.c: New file.
19900         * tests/unistr/test-strdup.h: New file.
19901
19902         Tests for module 'unistr/u32-strncmp'.
19903         * modules/unistr/u32-strncmp-tests: New file.
19904         * tests/unistr/test-u32-strncmp.c: New file.
19905
19906         Tests for module 'unistr/u16-strncmp'.
19907         * modules/unistr/u16-strncmp-tests: New file.
19908         * tests/unistr/test-u16-strncmp.c: New file.
19909
19910         Tests for module 'unistr/u8-strncmp'.
19911         * modules/unistr/u8-strncmp-tests: New file.
19912         * tests/unistr/test-u8-strncmp.c: New file.
19913         * tests/unistr/test-strncmp.h: New file.
19914
19915         Tests for module 'unistr/u32-strcoll'.
19916         * modules/unistr/u32-strcoll-tests: New file.
19917         * tests/unistr/test-u32-strcoll.c: New file.
19918
19919         Tests for module 'unistr/u16-strcoll'.
19920         * modules/unistr/u16-strcoll-tests: New file.
19921         * tests/unistr/test-u16-strcoll.c: New file.
19922
19923         Tests for module 'unistr/u8-strcoll'.
19924         * modules/unistr/u8-strcoll-tests: New file.
19925         * tests/unistr/test-u8-strcoll.c: New file.
19926
19927         Tests for module 'unistr/u32-strcmp'.
19928         * modules/unistr/u32-strcmp-tests: New file.
19929         * tests/unistr/test-u32-strcmp.c: New file.
19930         * tests/unistr/test-u32-strcmp.h: New file.
19931
19932         Tests for module 'unistr/u16-strcmp'.
19933         * modules/unistr/u16-strcmp-tests: New file.
19934         * tests/unistr/test-u16-strcmp.c: New file.
19935         * tests/unistr/test-u16-strcmp.h: New file.
19936
19937         Tests for module 'unistr/u8-strcmp'.
19938         * modules/unistr/u8-strcmp-tests: New file.
19939         * tests/unistr/test-u8-strcmp.c: New file.
19940         * tests/unistr/test-u8-strcmp.h: New file.
19941         * tests/unistr/test-strcmp.h: New file.
19942
19943         Tests for module 'unistr/u32-strncat'.
19944         * modules/unistr/u32-strncat-tests: New file.
19945         * tests/unistr/test-u32-strncat.c: New file.
19946
19947         Tests for module 'unistr/u16-strncat'.
19948         * modules/unistr/u16-strncat-tests: New file.
19949         * tests/unistr/test-u16-strncat.c: New file.
19950
19951         Tests for module 'unistr/u8-strncat'.
19952         * modules/unistr/u8-strncat-tests: New file.
19953         * tests/unistr/test-u8-strncat.c: New file.
19954         * tests/unistr/test-strncat.h: New file.
19955
19956         Tests for module 'unistr/u32-strcat'.
19957         * modules/unistr/u32-strcat-tests: New file.
19958         * tests/unistr/test-u32-strcat.c: New file.
19959
19960         Tests for module 'unistr/u16-strcat'.
19961         * modules/unistr/u16-strcat-tests: New file.
19962         * tests/unistr/test-u16-strcat.c: New file.
19963
19964         Tests for module 'unistr/u8-strcat'.
19965         * modules/unistr/u8-strcat-tests: New file.
19966         * tests/unistr/test-u8-strcat.c: New file.
19967         * tests/unistr/test-strcat.h: New file.
19968
19969         Tests for module 'unistr/u32-stpncpy'.
19970         * modules/unistr/u32-stpncpy-tests: New file.
19971         * tests/unistr/test-u32-stpncpy.c: New file.
19972
19973         Tests for module 'unistr/u16-stpncpy'.
19974         * modules/unistr/u16-stpncpy-tests: New file.
19975         * tests/unistr/test-u16-stpncpy.c: New file.
19976
19977         Tests for module 'unistr/u8-stpncpy'.
19978         * modules/unistr/u8-stpncpy-tests: New file.
19979         * tests/unistr/test-u8-stpncpy.c: New file.
19980         * tests/unistr/test-stpncpy.h: New file.
19981
19982         Tests for module 'unistr/u32-strncpy'.
19983         * modules/unistr/u32-strncpy-tests: New file.
19984         * tests/unistr/test-u32-strncpy.c: New file.
19985
19986         Tests for module 'unistr/u16-strncpy'.
19987         * modules/unistr/u16-strncpy-tests: New file.
19988         * tests/unistr/test-u16-strncpy.c: New file.
19989
19990         Tests for module 'unistr/u8-strncpy'.
19991         * modules/unistr/u8-strncpy-tests: New file.
19992         * tests/unistr/test-u8-strncpy.c: New file.
19993         * tests/unistr/test-strncpy.h: New file.
19994
19995         Tests for module 'unistr/u32-stpcpy'.
19996         * modules/unistr/u32-stpcpy-tests: New file.
19997         * tests/unistr/test-u32-stpcpy.c: New file.
19998
19999         Tests for module 'unistr/u16-stpcpy'.
20000         * modules/unistr/u16-stpcpy-tests: New file.
20001         * tests/unistr/test-u16-stpcpy.c: New file.
20002
20003         Tests for module 'unistr/u8-stpcpy'.
20004         * modules/unistr/u8-stpcpy-tests: New file.
20005         * tests/unistr/test-u8-stpcpy.c: New file.
20006         * tests/unistr/test-stpcpy.h: New file.
20007
20008         Tests for module 'unistr/u32-strcpy'.
20009         * modules/unistr/u32-strcpy-tests: New file.
20010         * tests/unistr/test-u32-strcpy.c: New file.
20011
20012         Tests for module 'unistr/u16-strcpy'.
20013         * modules/unistr/u16-strcpy-tests: New file.
20014         * tests/unistr/test-u16-strcpy.c: New file.
20015
20016         Tests for module 'unistr/u8-strcpy'.
20017         * modules/unistr/u8-strcpy-tests: New file.
20018         * tests/unistr/test-u8-strcpy.c: New file.
20019         * tests/unistr/test-strcpy.h: New file.
20020
20021         Tests for module 'unistr/u32-strnlen'.
20022         * modules/unistr/u32-strnlen-tests: New file.
20023         * tests/unistr/test-u32-strnlen.c: New file.
20024
20025         Tests for module 'unistr/u16-strnlen'.
20026         * modules/unistr/u16-strnlen-tests: New file.
20027         * tests/unistr/test-u16-strnlen.c: New file.
20028
20029         Tests for module 'unistr/u8-strnlen'.
20030         * modules/unistr/u8-strnlen-tests: New file.
20031         * tests/unistr/test-u8-strnlen.c: New file.
20032         * tests/unistr/test-strnlen.h: New file.
20033
20034         Tests for module 'unistr/u32-strlen'.
20035         * modules/unistr/u32-strlen-tests: New file.
20036         * tests/unistr/test-u32-strlen.c: New file.
20037
20038         Tests for module 'unistr/u16-strlen'.
20039         * modules/unistr/u16-strlen-tests: New file.
20040         * tests/unistr/test-u16-strlen.c: New file.
20041
20042         Tests for module 'unistr/u8-strlen'.
20043         * modules/unistr/u8-strlen-tests: New file.
20044         * tests/unistr/test-u8-strlen.c: New file.
20045
20046         Tests for module 'unistr/u32-prev'.
20047         * modules/unistr/u32-prev-tests: New file.
20048         * tests/unistr/test-u32-prev.c: New file.
20049
20050         Tests for module 'unistr/u16-prev'.
20051         * modules/unistr/u16-prev-tests: New file.
20052         * tests/unistr/test-u16-prev.c: New file.
20053
20054         Tests for module 'unistr/u8-prev'.
20055         * modules/unistr/u8-prev-tests: New file.
20056         * tests/unistr/test-u8-prev.c: New file.
20057
20058         Tests for module 'unistr/u32-next'.
20059         * modules/unistr/u32-next-tests: New file.
20060         * tests/unistr/test-u32-next.c: New file.
20061
20062         Tests for module 'unistr/u16-next'.
20063         * modules/unistr/u16-next-tests: New file.
20064         * tests/unistr/test-u16-next.c: New file.
20065
20066         Tests for module 'unistr/u8-next'.
20067         * modules/unistr/u8-next-tests: New file.
20068         * tests/unistr/test-u8-next.c: New file.
20069
20070         Tests for module 'unistr/u32-strmbtouc'.
20071         * modules/unistr/u32-strmbtouc-tests: New file.
20072         * tests/unistr/test-u32-strmbtouc.c: New file.
20073
20074         Tests for module 'unistr/u16-strmbtouc'.
20075         * modules/unistr/u16-strmbtouc-tests: New file.
20076         * tests/unistr/test-u16-strmbtouc.c: New file.
20077
20078         Tests for module 'unistr/u8-strmbtouc'.
20079         * modules/unistr/u8-strmbtouc-tests: New file.
20080         * tests/unistr/test-u8-strmbtouc.c: New file.
20081
20082         Tests for module 'unistr/u32-strmblen'.
20083         * modules/unistr/u32-strmblen-tests: New file.
20084         * tests/unistr/test-u32-strmblen.c: New file.
20085
20086         Tests for module 'unistr/u16-strmblen'.
20087         * modules/unistr/u16-strmblen-tests: New file.
20088         * tests/unistr/test-u16-strmblen.c: New file.
20089
20090         Tests for module 'unistr/u8-strmblen'.
20091         * modules/unistr/u8-strmblen-tests: New file.
20092         * tests/unistr/test-u8-strmblen.c: New file.
20093
20094         Tests for module 'unistr/u32-cpy-alloc'.
20095         * modules/unistr/u32-cpy-alloc-tests: New file.
20096         * tests/unistr/test-u32-cpy-alloc.c: New file.
20097
20098         Tests for module 'unistr/u16-cpy-alloc'.
20099         * modules/unistr/u16-cpy-alloc-tests: New file.
20100         * tests/unistr/test-u16-cpy-alloc.c: New file.
20101
20102         Tests for module 'unistr/u8-cpy-alloc'.
20103         * modules/unistr/u8-cpy-alloc-tests: New file.
20104         * tests/unistr/test-u8-cpy-alloc.c: New file.
20105         * tests/unistr/test-cpy-alloc.h: New file.
20106
20107         Tests for module 'unistr/u32-mbsnlen'.
20108         * modules/unistr/u32-mbsnlen-tests: New file.
20109         * tests/unistr/test-u32-mbsnlen.c: New file.
20110
20111         Tests for module 'unistr/u16-mbsnlen'.
20112         * modules/unistr/u16-mbsnlen-tests: New file.
20113         * tests/unistr/test-u16-mbsnlen.c: New file.
20114
20115         Tests for module 'unistr/u8-mbsnlen'.
20116         * modules/unistr/u8-mbsnlen-tests: New file.
20117         * tests/unistr/test-u8-mbsnlen.c: New file.
20118
20119         Tests for module 'unistr/u32-chr'.
20120         * modules/unistr/u32-chr-tests: New file.
20121         * tests/unistr/test-u32-chr.c: New file.
20122
20123         Tests for module 'unistr/u16-chr'.
20124         * modules/unistr/u16-chr-tests: New file.
20125         * tests/unistr/test-u16-chr.c: New file.
20126
20127         Tests for module 'unistr/u8-chr'.
20128         * modules/unistr/u8-chr-tests: New file.
20129         * tests/unistr/test-u8-chr.c: New file.
20130         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
20131
20132         Tests for module 'unistr/u32-cmp2'.
20133         * modules/unistr/u32-cmp2-tests: New file.
20134         * tests/unistr/test-u32-cmp2.c: New file.
20135
20136         Tests for module 'unistr/u16-cmp2'.
20137         * modules/unistr/u16-cmp2-tests: New file.
20138         * tests/unistr/test-u16-cmp2.c: New file.
20139
20140         Tests for module 'unistr/u8-cmp2'.
20141         * modules/unistr/u8-cmp2-tests: New file.
20142         * tests/unistr/test-u8-cmp2.c: New file.
20143         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
20144
20145         Tests for module 'unistr/u32-cmp'.
20146         * modules/unistr/u32-cmp-tests: New file.
20147         * tests/unistr/test-u32-cmp.c: New file.
20148
20149         Tests for module 'unistr/u16-cmp'.
20150         * modules/unistr/u16-cmp-tests: New file.
20151         * tests/unistr/test-u16-cmp.c: New file.
20152
20153         Tests for module 'unistr/u8-cmp'.
20154         * modules/unistr/u8-cmp-tests: New file.
20155         * tests/unistr/test-u8-cmp.c: New file.
20156         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
20157
20158         Tests for module 'unistr/u32-set'.
20159         * modules/unistr/u32-set-tests: New file.
20160         * tests/unistr/test-u32-set.c: New file.
20161
20162         Tests for module 'unistr/u16-set'.
20163         * modules/unistr/u16-set-tests: New file.
20164         * tests/unistr/test-u16-set.c: New file.
20165
20166         Tests for module 'unistr/u8-set'.
20167         * modules/unistr/u8-set-tests: New file.
20168         * tests/unistr/test-u8-set.c: New file.
20169         * tests/unistr/test-set.h: New file.
20170
20171         Tests for module 'unistr/u32-move'.
20172         * modules/unistr/u32-move-tests: New file.
20173         * tests/unistr/test-u32-move.c: New file.
20174
20175         Tests for module 'unistr/u16-move'.
20176         * modules/unistr/u16-move-tests: New file.
20177         * tests/unistr/test-u16-move.c: New file.
20178
20179         Tests for module 'unistr/u8-move'.
20180         * modules/unistr/u8-move-tests: New file.
20181         * tests/unistr/test-u8-move.c: New file.
20182         * tests/unistr/test-move.h: New file.
20183
20184         Tests for module 'unistr/u32-cpy'.
20185         * modules/unistr/u32-cpy-tests: New file.
20186         * tests/unistr/test-u32-cpy.c: New file.
20187
20188         Tests for module 'unistr/u16-cpy'.
20189         * modules/unistr/u16-cpy-tests: New file.
20190         * tests/unistr/test-u16-cpy.c: New file.
20191
20192         Tests for module 'unistr/u8-cpy'.
20193         * modules/unistr/u8-cpy-tests: New file.
20194         * tests/unistr/test-u8-cpy.c: New file.
20195         * tests/unistr/test-cpy.h: New file.
20196
20197 2010-01-09  Bruno Haible  <bruno@clisp.org>
20198
20199         Tests for module 'unistr/u32-uctomb'.
20200         * modules/unistr/u32-uctomb-tests: New file.
20201         * tests/unistr/test-u32-uctomb.c: New file.
20202
20203         Tests for module 'unistr/u16-uctomb'.
20204         * modules/unistr/u16-uctomb-tests: New file.
20205         * tests/unistr/test-u16-uctomb.c: New file.
20206
20207         Tests for module 'unistr/u8-uctomb'.
20208         * modules/unistr/u8-uctomb-tests: New file.
20209         * tests/unistr/test-u8-uctomb.c: New file.
20210
20211         Tests for module 'unistr/u32-mbtoucr'.
20212         * modules/unistr/u32-mbtoucr-tests: New file.
20213         * tests/unistr/test-u32-mbtoucr.c: New file.
20214
20215         Tests for module 'unistr/u16-mbtoucr'.
20216         * modules/unistr/u16-mbtoucr-tests: New file.
20217         * tests/unistr/test-u16-mbtoucr.c: New file.
20218
20219         Tests for module 'unistr/u8-mbtoucr'.
20220         * modules/unistr/u8-mbtoucr-tests: New file.
20221         * tests/unistr/test-u8-mbtoucr.c: New file.
20222
20223         Tests for module 'unistr/u32-mbtouc'.
20224         * modules/unistr/u32-mbtouc-tests: New file.
20225         * tests/unistr/test-u32-mbtouc.c: New file.
20226
20227         Tests for module 'unistr/u16-mbtouc'.
20228         * modules/unistr/u16-mbtouc-tests: New file.
20229         * tests/unistr/test-u16-mbtouc.c: New file.
20230
20231         Tests for module 'unistr/u8-mbtouc'.
20232         * modules/unistr/u8-mbtouc-tests: New file.
20233         * tests/unistr/test-u8-mbtouc.c: New file.
20234
20235         Tests for module 'unistr/u32-mbtouc-unsafe'.
20236         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
20237         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
20238         * tests/unistr/test-u32-mbtouc.h: New file.
20239
20240         Tests for module 'unistr/u16-mbtouc-unsafe'.
20241         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
20242         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
20243         * tests/unistr/test-u16-mbtouc.h: New file.
20244
20245         Tests for module 'unistr/u8-mbtouc-unsafe'.
20246         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
20247         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
20248         * tests/unistr/test-u8-mbtouc.h: New file.
20249
20250         Tests for module 'unistr/u32-mblen'.
20251         * modules/unistr/u32-mblen-tests: New file.
20252         * tests/unistr/test-u32-mblen.c: New file.
20253
20254         Tests for module 'unistr/u16-mblen'.
20255         * modules/unistr/u16-mblen-tests: New file.
20256         * tests/unistr/test-u16-mblen.c: New file.
20257
20258         Tests for module 'unistr/u8-mblen'.
20259         * modules/unistr/u8-mblen-tests: New file.
20260         * tests/unistr/test-u8-mblen.c: New file.
20261
20262         Tests for module 'unistr/u32-to-u16'.
20263         * modules/unistr/u32-to-u16-tests: New file.
20264         * tests/unistr/test-u32-to-u16.c: New file.
20265
20266         Tests for module 'unistr/u32-to-u8'.
20267         * modules/unistr/u32-to-u8-tests: New file.
20268         * tests/unistr/test-u32-to-u8.c: New file.
20269
20270         Tests for module 'unistr/u16-to-u32'.
20271         * modules/unistr/u16-to-u32-tests: New file.
20272         * tests/unistr/test-u16-to-u32.c: New file.
20273
20274         Tests for module 'unistr/u16-to-u8'.
20275         * modules/unistr/u16-to-u8-tests: New file.
20276         * tests/unistr/test-u16-to-u8.c: New file.
20277
20278         Tests for module 'unistr/u8-to-u32'.
20279         * modules/unistr/u8-to-u32-tests: New file.
20280         * tests/unistr/test-u8-to-u32.c: New file.
20281
20282         Tests for module 'unistr/u8-to-u16'.
20283         * modules/unistr/u8-to-u16-tests: New file.
20284         * tests/unistr/test-u8-to-u16.c: New file.
20285
20286         Tests for module 'unistr/u32-check'.
20287         * modules/unistr/u32-check-tests: New file.
20288         * tests/unistr/test-u32-check.c: New file.
20289
20290         Tests for module 'unistr/u16-check'.
20291         * modules/unistr/u16-check-tests: New file.
20292         * tests/unistr/test-u16-check.c: New file.
20293
20294         Tests for module 'unistr/u8-check'.
20295         * modules/unistr/u8-check-tests: New file.
20296         * tests/unistr/test-u8-check.c: New file.
20297
20298         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
20299         (category_equals): New function.
20300         (main): Add more tests.
20301         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
20302
20303         * tests/unictype/test-bidi_byname.c (main): Add more tests.
20304
20305 2010-01-10  Bruno Haible  <bruno@clisp.org>
20306
20307         unistr/u*-strcoll: Try harder to distinguish different strings.
20308         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
20309         compare s1 and s2 to see if they are different.
20310
20311 2010-01-10  Bruno Haible  <bruno@clisp.org>
20312
20313         unistr/u*-stpncpy: Fix the return value.
20314         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
20315         description of the return value consistent with stpncpy in glibc.
20316         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
20317         written non-NUL unit.
20318
20319 2010-01-10  Bruno Haible  <bruno@clisp.org>
20320
20321         unistr/u*-next: Add missing dependencies.
20322         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
20323         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
20324         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
20325
20326 2010-01-10  Bruno Haible  <bruno@clisp.org>
20327
20328         unistr/u8-mbsnlen: Fix return value for incomplete character.
20329         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
20330         u8_mblen.
20331         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20332         Remove unistr/u8-mblen.
20333         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20334         u16_mblen.
20335         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20336         Remove unistr/u16-mblen.
20337
20338 2010-01-10  Bruno Haible  <bruno@clisp.org>
20339
20340         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20341         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20342         Reported by Brian Gough <bjg@gnu.org> and
20343         Chris Clayton <chris2553@googlemail.com> via
20344         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20345
20346 2010-01-09  Bruno Haible  <bruno@clisp.org>
20347
20348         unistr/u16-to-u32: Reject invalid input.
20349         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20350         u16_mbtouc.
20351         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20352         Remove unistr/u16-mbtouc.
20353
20354         unistr/u16-to-u8: Reject invalid input.
20355         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20356         u16_mbtouc.
20357         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20358         Remove unistr/u16-mbtouc.
20359
20360         unistr/u8-to-u32: Reject invalid input.
20361         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20362         u8_mbtouc.
20363         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20364         Remove unistr/u8-mbtouc.
20365
20366         unistr/u8-to-u16: Reject invalid input.
20367         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20368         u8_mbtouc.
20369         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20370         Remove unistr/u8-mbtouc.
20371
20372 2010-01-09  Bruno Haible  <bruno@clisp.org>
20373
20374         Tests for module 'getlogin'.
20375         * modules/getlogin-tests: New file.
20376         * tests/test-getlogin.c: New file.
20377
20378         New module 'getlogin'.
20379         * lib/unistd.in.h (getlogin): New declaration.
20380         * lib/getlogin.c: New file.
20381         * m4/getlogin.m4: New file.
20382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20383         HAVE_GETLOGIN.
20384         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20385         HAVE_GETLOGIN.
20386         * modules/getlogin: New file.
20387         * doc/posix-functions/getlogin.texi: Mention the new module.
20388         Reported by John W. Eaton <jwe@gnu.org>.
20389
20390 2010-01-09  Bruno Haible  <bruno@clisp.org>
20391
20392         getlogin_r: Support for native Windows.
20393         * lib/getlogin_r.c: Include <windows.h>
20394         (getlogin_r): Implement for native Windows.
20395         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20396         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20397         via John W. Eaton <jwe@gnu.org>.
20398
20399 2010-01-09  Bruno Haible  <bruno@clisp.org>
20400
20401         getlogin_r: Small fixes.
20402         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20403         succeeds.
20404         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20405         before testing whether getlogin_r is declared. No need to set
20406         HAVE_DECL_GETLOGIN_R to 1.
20407         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20408
20409 2010-01-09  Bruno Haible  <bruno@clisp.org>
20410
20411         * lib/unistd.in.h (getlogin_r): Add comment.
20412
20413 2010-01-09  Bruno Haible  <bruno@clisp.org>
20414
20415         Tests for module 'getlogin_r'.
20416         * modules/getlogin_r-tests: New file.
20417         * tests/test-getlogin_r.c: New file.
20418
20419 2010-01-09  Jim Meyering  <meyering@redhat.com>
20420
20421         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20422         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20423         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20424
20425 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20426
20427         * lib/dup2.c (rpl_dup2): Improve comment.
20428
20429 2010-01-08  Eric Blake  <ebb9@byu.net>
20430
20431         maint.mk: allow packages to add makefile @@ exceptions
20432         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20433         (sc_makefile_check): Rename...
20434         (sc_makefile_at_at_check): ...to this, and use hook.
20435
20436         dup2: work around mingw bug
20437         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20438         Reported by Simon Josefsson.
20439
20440 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20441
20442         glob: Fix C++ compilation.
20443         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20444         C++.
20445
20446 2010-01-07  Bruno Haible  <bruno@clisp.org>
20447
20448         Fix indentation of wctype.in.h, broken since 2007-01-06.
20449         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20450
20451 2010-01-07  Bruno Haible  <bruno@clisp.org>
20452
20453         mbslen: Avoid collision with system function.
20454         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20455         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20456         * m4/mbslen.m4: New file.
20457         * modules/mbslen (Files): Add it.
20458         (configure.ac): Invoke gl_MBSLEN.
20459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20460         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20461         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20462         via Ian Beckwith <ianb@erislabs.net>.
20463
20464 2010-01-07  Bruno Haible  <bruno@clisp.org>
20465
20466         dirent: Document the last fix.
20467         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20468
20469 2010-01-07  Bruno Haible  <bruno@clisp.org>
20470
20471         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20472         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20473         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20474         va_list are defined.
20475         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20476         Reported by Eric Blake.
20477
20478 2010-01-07  Bruno Haible  <bruno@clisp.org>
20479
20480         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20481         * modules/xlist (Depends-on): Add 'list',
20482         * modules/xoset (Depends-on): Add 'oset'.
20483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20484
20485 2010-01-07  Bruno Haible  <bruno@clisp.org>
20486
20487         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20488         * doc/posix-functions/strncasecmp.texi: Likewise.
20489
20490 2010-01-07  Bruno Haible  <bruno@clisp.org>
20491
20492         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20493
20494 2010-01-07  John W. Eaton  <jwe@octave.org>
20495
20496         wctype: allow C++ use
20497         * lib/wctype.in.h: Add extern "C" block for C++.
20498
20499 2010-01-06  Eric Blake  <ebb9@byu.net>
20500
20501         maint.mk: detect incorrect GFDL usage
20502         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20503
20504 2010-01-06  Jim Meyering  <meyering@redhat.com>
20505         and Eric Blake  <ebb9@byu.net>
20506
20507         maint.mk: ignore multi-line copyright in NEWS
20508         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20509
20510 2010-01-06  Eric Blake  <ebb9@byu.net>
20511
20512         select: add missing dependency
20513         * modules/select-tests (Depends-on): Move sockets dependency...
20514         * modules/select (Depends-on): ...here.
20515         Reported by Ian Beckwith.
20516
20517         doc: regenerate INSTALL
20518         * doc/INSTALL: Reflect recent autoconf update.
20519         * doc/INSTALL.ISO: Likewise.
20520         * doc/INSTALL.UTF-8: Likewise.
20521
20522         pread: fix compilation on glibc
20523         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20524         Reported by Ralf Wildenhues.
20525
20526         dirent: fix test failure
20527         * lib/dirent.in.h (includes): Guarantee ino_t.
20528         Reported by Ralf Wildenhues.
20529
20530 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20531
20532         linkat, renameat: avoid bad free
20533         * lib/at-func2.c (at_func2): Fix typo.
20534         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20535
20536 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20537
20538         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20539         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20540         to avoid failure of symlink test later.
20541
20542 2010-01-06  Eric Blake  <ebb9@byu.net>
20543
20544         stdio, unistd: guarantee ssize_t
20545         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20546         2008 are exposed when needed.
20547         * lib/stdio.in.h (includes): Likewise.
20548         Reported by Ralf Wildenhues.
20549
20550 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20551
20552         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20554         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20555
20556 2010-01-06  Jim Meyering  <meyering@redhat.com>
20557
20558         readtokens: this module *does* require xalloc.h
20559         It uses only functions that were omitted by the old syntax-check rule.
20560         * lib/readtokens.c: Include "xalloc.h" once again.
20561         * modules/readtokens (Depends-on): Add xalloc.
20562         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20563
20564 2010-01-05  Eric Blake  <ebb9@byu.net>
20565
20566         maint: support 'make announcement' from a VPATH build
20567         * top/maint.mk (announcement): Look for correct NEWS file.
20568
20569 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20570
20571         utimens (fdutimens): ignore a negative FD, per contract
20572         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20573         when we have a valid file descriptor.  Otherwise, using a brand
20574         new glibc (with just-patched futimens that now fails with EBADF)
20575         would cause this function to fail with ENOSYS.
20576         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20577         See also http://bugzilla.redhat.com/552320.
20578
20579 2010-01-05  Eric Blake  <ebb9@byu.net>
20580
20581         strcase: document what it provides
20582         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20583         gnulib module.
20584         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20585         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20586
20587 2010-01-05  Jim Meyering  <meyering@redhat.com>
20588
20589         maint: remove useless inclusions of "xalloc.h"
20590         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20591         * lib/readtokens.c: Likewise.
20592         * lib/same.c: Likewise.
20593         * modules/getloadavg (Depends-on): Remove xalloc.
20594         * modules/readtokens: Likewise.
20595         * modules/same: Likewise.
20596
20597         maint.mk: include 4 more function names in alloca.h-checking regexp
20598         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20599         regexp.  Before, we would give a false-positive (saying alloca.h
20600         is included unnecessarily) when the only uses involved omitted symbols.
20601
20602         xalloc.h: use consistent formatting
20603         * lib/xalloc.h: Move declarations to start in the first column.
20604
20605 2010-01-05  Eric Blake  <ebb9@byu.net>
20606
20607         mkdir: avoid xalloc
20608         * lib/mkdir.c (includes): Drop unused header.
20609         Reported by John W. Eaton.
20610
20611 2010-01-04  Jim Meyering  <meyering@redhat.com>
20612
20613         nl_langinfo: avoid configure-time syntax error
20614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20615         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20616         the empty string.  Don't let that provoke a shell syntax error.
20617
20618         regcomp, regexec, fnmatch: avoid array bounds read error
20619         * lib/regcomp.c (build_equiv_class): From glibc:
20620         Use only the low 24 bits of a findidx return value as an index
20621         into the weights array.  Patch by Ulrich Drepper:
20622         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20623         * lib/regexec.c (check_node_accept_bytes): Likewise.
20624         * lib/fnmatch_loop.c (FCT): Likewise.
20625
20626         regcomp: skip collseq lookup when there are no rules
20627         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20628         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20629
20630         regcomp: recognize ill-formed { } expressions
20631         * lib/regcomp.c (parse_dup_op): From glibc:
20632         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20633
20634         regcomp: fix typo in comment
20635         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20636         s/satisfy/satisfies/.
20637
20638         regcomp: sync from glibc: remove dead store
20639         * lib/regcomp.c (duplicate_node_closure): Remove useless
20640         search_duplicated_node call and dead store.
20641
20642         regcomp: sync from glibc; always use nl_langinfo
20643         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20644         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20645         * modules/regex (Depends-on): Add nl_langinfo.
20646
20647 2010-01-04  Eric Blake  <ebb9@byu.net>
20648
20649         fdopendir: fix configure test
20650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20651
20652 2010-01-01  Bruno Haible  <bruno@clisp.org>
20653
20654         wchar: Remove unused configure check.
20655         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20656
20657 2010-01-01  Eric Blake  <ebb9@byu.net>
20658
20659         headers: make check of system header explicit
20660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20661         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20662         ourselves.
20663         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20666         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20667         internals.
20668         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20669         missing.
20670         Suggested by Bruno Haible.
20671
20672 2010-01-01  Jim Meyering  <meyering@redhat.com>
20673
20674         ChangeLog: tweak to eliminate unnecessary copyright line
20675         * ChangeLog: Remove a copyright line that was mistakenly updated
20676         by today's update-copyright run.  Reported by Eric Blake.
20677
20678         test-update-copyright: don't let envvar setting cause test failure
20679         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20680
20681 2010-01-01  Bruno Haible  <bruno@clisp.org>
20682
20683         localename: Avoid gcc warning.
20684         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20685         function if it is not used.
20686
20687 2010-01-01  Jim Meyering  <meyering@redhat.com>
20688
20689         update nearly all FSF copyright year lists to include 2010
20690         Use the same procedure as for 2009, outlined in
20691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20692
20693         version-etc: set COPYRIGHT_YEAR to 2010
20694         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20695
20696 2009-12-31  Eric Blake  <ebb9@byu.net>
20697
20698         doc: correct availability of cygwin 1.5.x getopt
20699         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20700         variables.
20701         * doc/posix-functions/opterr.texi (opterr): Likewise.
20702         * doc/posix-functions/optind.texi (optind): Likewise.
20703         * doc/posix-functions/optopt.texi (optopt): Likewise.
20704         * doc/posix-functions/tzname.texi (tzname): Likewise.
20705
20706         openat: update maintainer
20707         * modules/openat (Maintainer): Add myself.
20708
20709         utimens: avoid shadowing warning
20710         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20711         buffers into one, to avoid shadowing, as well as avoiding a
20712         redundant stat.
20713         Reported by Jim Meyering.
20714
20715         test-dup2: avoid compiler warning
20716         * tests/test-dup2.c (is_inheritable): Only define if used.
20717
20718 2010-01-01  Bruno Haible  <bruno@clisp.org>
20719
20720         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20721         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20722         defined, use wctomb instead of wcrtomb.
20723
20724 2010-01-01  Bruno Haible  <bruno@clisp.org>
20725
20726         iconv: Reject native Solaris iconv.
20727         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20728         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20729
20730 2009-12-31  Bruno Haible  <bruno@clisp.org>
20731
20732         * tests/test-signal.c (main): Remove test of 'SIG'.
20733
20734 2009-12-31  Bruno Haible  <bruno@clisp.org>
20735
20736         spawn: Fix incomplete fix.
20737         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20738         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20739         warnings for GNULIB_POSIXCHECK again.
20740         Reported by Eric Blake.
20741
20742 2009-12-31  Bruno Haible  <bruno@clisp.org>
20743
20744         Avoid namespace pollution on glibc systems.
20745         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20746         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20747         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20748         glibc systems.
20749
20750 2009-12-31  Bruno Haible  <bruno@clisp.org>
20751
20752         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20753         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20755         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20756         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20757         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20758         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20759
20760 2009-12-31  Bruno Haible  <bruno@clisp.org>
20761
20762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20763         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20764         afterwards.
20765
20766 2009-12-31  Bruno Haible  <bruno@clisp.org>
20767
20768         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20769         SYS_UTSNAME_H.
20770
20771 2009-12-31  Bruno Haible  <bruno@clisp.org>
20772
20773         spawn: Fix misapplied patch.
20774         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20775         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20776         warnings for GNULIB_POSIXCHECK.
20777
20778 2009-12-31  Bruno Haible  <bruno@clisp.org>
20779
20780         times: Update after sys_times changed.
20781         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20782         * modules/times (Files): Add it.
20783         (configure.ac): Invoke gl_FUNC_TIMES.
20784
20785 2009-12-31  Bruno Haible  <bruno@clisp.org>
20786
20787         Use AC_C_INLINE where necessary.
20788         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20791         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20792         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20793         * m4/mbiter.m4 (gl_MBITER): Likewise.
20794         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20795         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20796         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20797         * modules/u64 (configure.ac): Likewise.
20798
20799 2009-12-31  Bruno Haible  <bruno@clisp.org>
20800
20801         Use AC_C_INLINE instead of module 'inline' where possible.
20802         * modules/inline (Description): Clarify purpose.
20803         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20804         * modules/count-one-bits (Depends-on): Remove inline.
20805         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20806         * modules/openat (Depends-on): Remove inline.
20807         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20808         instead of depending on module 'inline'.
20809         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20810         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20811         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20812         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20813         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20814         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20815         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20816         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20817         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20818         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20819         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20820         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20821         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20822         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20823         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20824         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20825         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20826         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20827         Likewise.
20828         * modules/unictype/property-ascii-hex-digit (Depends-on,
20829         configure.ac): Likewise.
20830         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20831         configure.ac): Likewise.
20832         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20833         configure.ac): Likewise.
20834         * modules/unictype/property-bidi-block-separator (Depends-on,
20835         configure.ac): Likewise.
20836         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20837         configure.ac): Likewise.
20838         * modules/unictype/property-bidi-common-separator (Depends-on,
20839         configure.ac): Likewise.
20840         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20841         Likewise.
20842         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20843         configure.ac): Likewise.
20844         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20845         configure.ac): Likewise.
20846         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20847         configure.ac): Likewise.
20848         * modules/unictype/property-bidi-european-digit (Depends-on,
20849         configure.ac): Likewise.
20850         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20851         configure.ac): Likewise.
20852         * modules/unictype/property-bidi-left-to-right (Depends-on,
20853         configure.ac): Likewise.
20854         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20855         configure.ac): Likewise.
20856         * modules/unictype/property-bidi-other-neutral (Depends-on,
20857         configure.ac): Likewise.
20858         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20859         Likewise.
20860         * modules/unictype/property-bidi-segment-separator (Depends-on,
20861         configure.ac): Likewise.
20862         * modules/unictype/property-bidi-whitespace (Depends-on,
20863         configure.ac): Likewise.
20864         * modules/unictype/property-combining (Depends-on, configure.ac):
20865         Likewise.
20866         * modules/unictype/property-composite (Depends-on, configure.ac):
20867         Likewise.
20868         * modules/unictype/property-currency-symbol (Depends-on,
20869         configure.ac): Likewise.
20870         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20871         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20872         Likewise.
20873         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20874         configure.ac): Likewise.
20875         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20876         Likewise.
20877         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20878         Likewise.
20879         * modules/unictype/property-extender (Depends-on, configure.ac):
20880         Likewise.
20881         * modules/unictype/property-format-control (Depends-on, configure.ac):
20882         Likewise.
20883         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20884         Likewise.
20885         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20886         Likewise.
20887         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20888         Likewise.
20889         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20890         Likewise.
20891         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20892         Likewise.
20893         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20894         Likewise.
20895         * modules/unictype/property-id-start (Depends-on, configure.ac):
20896         Likewise.
20897         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20898         Likewise.
20899         * modules/unictype/property-ids-binary-operator (Depends-on,
20900         configure.ac): Likewise.
20901         * modules/unictype/property-ids-trinary-operator (Depends-on,
20902         configure.ac): Likewise.
20903         * modules/unictype/property-ignorable-control (Depends-on,
20904         configure.ac): Likewise.
20905         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20906         Likewise.
20907         * modules/unictype/property-join-control (Depends-on, configure.ac):
20908         Likewise.
20909         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20910         Likewise.
20911         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20912         Likewise.
20913         * modules/unictype/property-logical-order-exception (Depends-on,
20914         configure.ac): Likewise.
20915         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20916         Likewise.
20917         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20918         * modules/unictype/property-non-break (Depends-on, configure.ac):
20919         Likewise.
20920         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20921         Likewise.
20922         * modules/unictype/property-numeric (Depends-on, configure.ac):
20923         Likewise.
20924         * modules/unictype/property-other-alphabetic (Depends-on,
20925         configure.ac): Likewise.
20926         * modules/unictype/property-other-default-ignorable-code-point
20927         (Depends-on, configure.ac): Likewise.
20928         * modules/unictype/property-other-grapheme-extend (Depends-on,
20929         configure.ac): Likewise.
20930         * modules/unictype/property-other-id-continue (Depends-on,
20931         configure.ac): Likewise.
20932         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20933         Likewise.
20934         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20935         Likewise.
20936         * modules/unictype/property-other-math (Depends-on, configure.ac):
20937         Likewise.
20938         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20939         Likewise.
20940         * modules/unictype/property-paired-punctuation (Depends-on,
20941         configure.ac): Likewise.
20942         * modules/unictype/property-paragraph-separator (Depends-on,
20943         configure.ac): Likewise.
20944         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20945         Likewise.
20946         * modules/unictype/property-pattern-white-space (Depends-on,
20947         configure.ac): Likewise.
20948         * modules/unictype/property-private-use (Depends-on, configure.ac):
20949         Likewise.
20950         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20951         Likewise.
20952         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20953         Likewise.
20954         * modules/unictype/property-radical (Depends-on, configure.ac):
20955         Likewise.
20956         * modules/unictype/property-sentence-terminal (Depends-on,
20957         configure.ac): Likewise.
20958         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20959         Likewise.
20960         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20961         * modules/unictype/property-terminal-punctuation (Depends-on,
20962         configure.ac): Likewise.
20963         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20964         Likewise.
20965         * modules/unictype/property-unassigned-code-value (Depends-on,
20966         configure.ac): Likewise.
20967         * modules/unictype/property-unified-ideograph (Depends-on,
20968         configure.ac): Likewise.
20969         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20970         Likewise.
20971         * modules/unictype/property-variation-selector (Depends-on,
20972         configure.ac): Likewise.
20973         * modules/unictype/property-white-space (Depends-on, configure.ac):
20974         Likewise.
20975         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20976         Likewise.
20977         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20978         Likewise.
20979         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20980         Likewise.
20981         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20982         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20983         Likewise.
20984
20985 2009-12-31  Bruno Haible  <bruno@clisp.org>
20986
20987         Remove unnecessary AC_C_INLINE invocation.
20988         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20989         since 2009-08-21.
20990
20991 2009-12-31  Jim Meyering  <meyering@redhat.com>
20992
20993         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20994         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20995         With this change, we can all remove the gpg_key_ID = ... definition
20996         from our respective cfg.mk files.
20997
20998         maint.mk: create announcement template in ~/, not in /tmp
20999         * top/maint.mk (emit_upload_commands): Adjust.
21000         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
21001         Remove temporary file, .ci-msg.
21002
21003 2009-12-31  Eric Blake  <ebb9@byu.net>
21004
21005         link-warning: always build headers with link warnings
21006         * modules/arpa_inet (Makefile.am): Always build replacement
21007         header.
21008         * modules/ctype (Makefile.am): Likewise.
21009         * modules/dirent (Makefile.am): Likewise.
21010         * modules/inttypes (Makefile.am): Likewise.
21011         * modules/langinfo (Makefile.am): Likewise.
21012         * modules/locale (Makefile.am): Likewise.
21013         * modules/spawn (Makefile.am): Likewise.
21014         * modules/sys_file (Makefile.am): Likewise.
21015         * modules/sys_ioctl (Makefile.am): Likewise.
21016         * modules/sys_select (Makefile.am): Likewise.
21017         * modules/sys_socket (Makefile.am): Likewise.
21018         * modules/sys_times (Makefile.am): Likewise.
21019         * modules/sys_utsname (Makefile.am): Likewise.
21020         * modules/sys_wait (Makefile.am): Likewise.
21021         * modules/wchar (Makefile.am): Likewise.
21022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
21023         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
21024         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
21025         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
21026         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
21027         Likewise.
21028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21030         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
21031         Likewise.
21032         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
21033         Likewise.
21034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
21036         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
21037         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21038         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21040         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21041         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
21042         (gl_WCHAR_H_DEFAULTS): Likewise.
21043
21044 2009-12-31  Eric Blake  <ebb9@byu.net>
21045
21046         signal, spawn: use link warnings
21047         * lib/signal.in.h (sigset_t): Make unconditional.
21048         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
21049         (sigpending, sigprocmask, sigaction): Add link warnings.
21050         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
21051         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
21052         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
21053         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
21054         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
21055         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
21056         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
21057         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
21058         (posix_spawn_file_actions_destroy)
21059         (posix_spawn_file_actions_addopen)
21060         (posix_spawn_file_actions_addclose)
21061         (posix_spawn_file_actions_adddup2): Likewise.
21062         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
21063         * tests/test-signal.c (main): Enhance test.
21064
21065         spawn: improve wrapper support
21066         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
21067         (gl_SPAWN_H_DEFAULTS): New defaults.
21068         * modules/spawn (Makefile.am): Substitute them.
21069         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
21070         Only declare if missing or broken.
21071
21072         sys_times, sys_utsname: use include_next
21073         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
21074         header.
21075         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
21076         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
21077         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
21078         * modules/sys_times (Depends-on): Add include_next.
21079         (Makefile.am): Substitute additional values.
21080         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21081         * lib/sys_times.in.h (includes): Include native header, if
21082         available.
21083         * lib/sys_utsname.in.h (includes): Likewise.
21084         * tests/test-sys_times.c (main): Enhance test.
21085
21086         fdutimensat: revert prior patch
21087         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
21088         utimens.h.
21089         Reported by Bruno Haible.
21090
21091 2009-12-30  Eric Blake  <ebb9@byu.net>
21092
21093         sys_wait: drop link-warning dependency
21094         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
21095         link-warning efforts.
21096         * lib/sys_wait.in.h: Likewise.
21097
21098         fdutimensat: remove bogus dependency
21099         * modules/fdutimensat (Depends-on): Drop inline.
21100
21101         unistd: fix typo
21102         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
21103
21104 2009-12-30  Bruno Haible  <bruno@clisp.org>
21105
21106         Fix compilation error with Solaris cc.
21107         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
21108         * lib/unicase/u16-is-invariant.c: Likewise.
21109         * lib/unicase/u32-is-invariant.c: Likewise.
21110         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21111
21112 2009-12-30  Bruno Haible  <bruno@clisp.org>
21113
21114         Fix test crash.
21115         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
21116         locales.
21117         Reported by Simon Josefsson <simon@josefsson.org>.
21118
21119 2009-12-30  Bruno Haible  <bruno@clisp.org>
21120
21121         Fix compilation error on most platforms.
21122         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
21123         Reported by Simon Josefsson <simon@josefsson.org>
21124         and Nelson H. F. Beebe <beebe@math.utah.edu>.
21125
21126 2009-12-30  Eric Blake  <ebb9@byu.net>
21127
21128         futimens, utimensat: work around ntfs-3g bug
21129         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
21130         a ctime bug is present, and expand workaround to cover ntfs-3g.
21131         * lib/utimens.c (fdutimens, lutimens): Likewise.
21132         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
21133         (validate_timespec): Adjust return value.
21134         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
21135         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21136         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
21137
21138 2009-12-29  Eric Blake  <ebb9@byu.net>
21139
21140         link-warning: make usage consistent
21141         * modules/ctype (Depends-on): Add link-warning.
21142         (Makefile.am): Update rules accordingly.
21143         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21144         * modules/locale (Depends-on, Makefile.am): Likewise.
21145         * modules/sys_file (Makefile.am): Likewise.
21146         * modules/getopt-posix (Makefile.am): Delete unused link warning
21147         efforts.
21148         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
21149         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
21150         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
21151         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
21152
21153         stdio: remove unused variables
21154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
21155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
21156         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21157
21158         tests: test more substitute headers
21159         * modules/ctype-tests: New file.
21160         * modules/dirent-tests: Likewise.
21161         * modules/spawn-tests: Likewise.
21162         * modules/sys_file-tests: Likewise.
21163         * modules/sys_ioctl-tests: Likewise.
21164         * modules/sys_wait-tests: Likewise.
21165         * tests/test-ctype.c: Likewise.
21166         * tests/test-dirent.c: Likewise.
21167         * tests/test-spawn.c: Likewise.
21168         * tests/test-sys_file.c: Likewise.
21169         * tests/test-sys_ioctl.c: Likewise.
21170         * tests/test-sys_wait.c: Likewise.
21171         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
21172         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
21173         whether or not flock is in use.
21174
21175         tests: remove License section from module
21176         * modules/arpa_inet-tests: Remove unneeded section.
21177         * modules/byteswap-tests: Likewise.
21178         * modules/ceilf-tests: Likewise.
21179         * modules/ceill-tests: Likewise.
21180         * modules/crypto/des-tests: Likewise.
21181         * modules/crypto/gc-arcfour-tests: Likewise.
21182         * modules/crypto/gc-arctwo-tests: Likewise.
21183         * modules/crypto/gc-des-tests: Likewise.
21184         * modules/crypto/gc-hmac-md5-tests: Likewise.
21185         * modules/crypto/gc-hmac-sha1-tests: Likewise.
21186         * modules/crypto/gc-md2-tests: Likewise.
21187         * modules/crypto/gc-md4-tests: Likewise.
21188         * modules/crypto/gc-md5-tests: Likewise.
21189         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
21190         * modules/crypto/gc-rijndael-tests: Likewise.
21191         * modules/crypto/gc-sha1-tests: Likewise.
21192         * modules/crypto/gc-tests: Likewise.
21193         * modules/crypto/md2-tests: Likewise.
21194         * modules/crypto/md4-tests: Likewise.
21195         * modules/fcntl-h-tests: Likewise.
21196         * modules/floorf-tests: Likewise.
21197         * modules/floorl-tests: Likewise.
21198         * modules/frexp-nolibm-tests: Likewise.
21199         * modules/frexp-tests: Likewise.
21200         * modules/frexpl-nolibm-tests: Likewise.
21201         * modules/frexpl-tests: Likewise.
21202         * modules/getaddrinfo-tests: Likewise.
21203         * modules/inttypes-tests: Likewise.
21204         * modules/isfinite-tests: Likewise.
21205         * modules/isinf-tests: Likewise.
21206         * modules/ldexpl-tests: Likewise.
21207         * modules/locale-tests: Likewise.
21208         * modules/math-tests: Likewise.
21209         * modules/netdb-tests: Likewise.
21210         * modules/netinet_in-tests: Likewise.
21211         * modules/printf-frexp-tests: Likewise.
21212         * modules/printf-frexpl-tests: Likewise.
21213         * modules/priv-set-tests: Likewise.
21214         * modules/random_r-tests: Likewise.
21215         * modules/round-tests: Likewise.
21216         * modules/roundf-tests: Likewise.
21217         * modules/roundl-tests: Likewise.
21218         * modules/search-tests: Likewise.
21219         * modules/select-tests: Likewise.
21220         * modules/signal-tests: Likewise.
21221         * modules/stdbool-tests: Likewise.
21222         * modules/stddef-tests: Likewise.
21223         * modules/stdint-tests: Likewise.
21224         * modules/stdio-tests: Likewise.
21225         * modules/stdlib-tests: Likewise.
21226         * modules/string-tests: Likewise.
21227         * modules/strings-tests: Likewise.
21228         * modules/sys_select-tests: Likewise.
21229         * modules/sys_socket-tests: Likewise.
21230         * modules/sys_stat-tests: Likewise.
21231         * modules/sys_time-tests: Likewise.
21232         * modules/sys_utsname-tests: Likewise.
21233         * modules/sysexits-tests: Likewise.
21234         * modules/time-tests: Likewise.
21235         * modules/trunc-tests: Likewise.
21236         * modules/truncf-tests: Likewise.
21237         * modules/truncl-tests: Likewise.
21238         * modules/tsearch-tests: Likewise.
21239         * modules/unistd-tests: Likewise.
21240         * modules/wchar-tests: Likewise.
21241         * modules/wctype-tests: Likewise.
21242
21243         tests: fix license on several tests
21244         * tests/test-des.c: Update to GPLv3+.
21245         * tests/test-flock.c: Likewise.
21246         * tests/test-fsync.c: Likewise.
21247         * tests/test-futimens.h: Likewise.
21248         * tests/test-gc-arcfour.c: Likewise.
21249         * tests/test-gc-arctwo.c: Likewise.
21250         * tests/test-gc-des.c: Likewise.
21251         * tests/test-gc-hmac-md5.c: Likewise.
21252         * tests/test-gc-hmac-sha1.c: Likewise.
21253         * tests/test-gc-md2.c: Likewise.
21254         * tests/test-gc-md4.c: Likewise.
21255         * tests/test-gc-md5.c: Likewise.
21256         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21257         * tests/test-gc-rijndael.c: Likewise.
21258         * tests/test-gc-sha1.c: Likewise.
21259         * tests/test-gc.c: Likewise.
21260         * tests/test-getcwd.c: Likewise.
21261         * tests/test-link.c: Likewise.
21262         * tests/test-link.h: Likewise.
21263         * tests/test-lutimens.h: Likewise.
21264         * tests/test-md2.c: Likewise.
21265         * tests/test-md4.c: Likewise.
21266         * tests/test-mkdir.h: Likewise.
21267         * tests/test-rename.c: Likewise.
21268         * tests/test-rename.h: Likewise.
21269         * tests/test-safe-alloc.c: Likewise.
21270         * tests/test-utimens-common.h: Likewise.
21271         * tests/test-utimens.h: Likewise.
21272
21273         maint: sync license texts
21274         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
21275         * doc/gpl-3.0.texi: Revert copyright year update.
21276         * doc/lgpl-3.0.texi: Likewise.
21277
21278 2009-12-29  Jim Meyering  <meyering@redhat.com>
21279
21280         update nearly all FSF copyright year lists to include 2009
21281         The files named by the following are exempted:
21282             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
21283               test -f "$dst" && { echo "$dst"; continue; }
21284               test -d "$dst" || continue
21285               echo "$dst"/$(basename "$src")
21286             done > exempt
21287             git ls-files tests/unictype >> exempt
21288         In the remaining files, convert to all-interval notation if
21289         - there is already at least one year interval like 2000-2003
21290         - the file is maintained by me
21291         - the file is in lib/uni*/, where that style already prevails
21292         Otherwise, use update-copyright's default.
21293
21294 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21295         and Eric Blake  <ebb9@byu.net>
21296
21297         tests: don't require debug system() to pass
21298         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
21299         * tests/test-rmdir.h (test_rmdir_func): Likewise.
21300         * tests/test-unlink.h (test_unlink_func): Likewise.
21301         * tests/test-fstatat.c (main): ...into callers.
21302         * tests/test-lstat.c (main): Likewise.
21303         * tests/test-rmdir.c (main): Likewise.
21304         * tests/test-unlink.c (main): Likewise.
21305         * tests/test-unlinkat.c (main): Likewise.
21306         * tests/test-areadlink-with-size.c (main): Don't require a
21307         debug-only system call to pass, aiding cross-testing to mingw.
21308         * tests/test-areadlink.c (main): Likewise.
21309         * tests/test-areadlinkat-with-size.c (main): Likewise.
21310         * tests/test-areadlinkat.c (main): Likewise.
21311         * tests/test-canonicalize-lgpl.c (main): Likewise.
21312         * tests/test-canonicalize.c (main): Likewise.
21313         * tests/test-chown.c (main): Likewise.
21314         * tests/test-fchownat.c (main): Likewise.
21315         * tests/test-lchown.c (main): Likewise.
21316         * tests/test-fdutimensat.c (main): Likewise.
21317         * tests/test-futimens.c (main): Likewise.
21318         * tests/test-link.c (main): Likewise.
21319         * tests/test-linkat.c (main): Likewise.
21320         * tests/test-mkdir.c (main): Likewise.
21321         * tests/test-mkdirat.c (main): Likewise.
21322         * tests/test-mkfifo.c (main): Likewise.
21323         * tests/test-mkfifoat.c (main): Likewise.
21324         * tests/test-mknod.c (main): Likewise.
21325         * tests/test-readlink.c (main): Likewise.
21326         * tests/test-remove.c (main): Likewise.
21327         * tests/test-rename.c (main): Likewise.
21328         * tests/test-renameat.c (main): Likewise.
21329         * tests/test-symlink.c (main): Likewise.
21330         * tests/test-symlinkat.c (main): Likewise.
21331         * tests/test-utimens.c (main): Likewise.
21332         * tests/test-utimensat.c (main): Likewise.
21333
21334 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21335
21336         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21337         on $(UNUSED_PARAMETER_H) to avoid build failure.
21338
21339 2009-12-28  Jim Meyering  <meyering@redhat.com>
21340
21341         update-copyright: you may specify a max. line length other than 72
21342         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21343
21344         maint: use consistent FSF copyright line syntax
21345         * lib/posixtm.c: Add missing comma in FSF copyright line.
21346         * lib/posixtm.h: Likewise.
21347         * lib/getugroups.c: Add missing ", Inc.".
21348
21349         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21350         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21351         FSF copyright line.  Remove trailing blanks.
21352
21353 2009-12-28  Eric Blake  <ebb9@byu.net>
21354
21355         test-dup2: reduce dependencies
21356         * modules/cloexec (Configure.ac): Set witness.
21357         * modules/dup2-tests (Depends-on): Drop cloexec.
21358         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21359         not present.
21360         Suggested by Bruno Haible.
21361
21362 2009-12-26  Bruno Haible  <bruno@clisp.org>
21363
21364         Remove an unneeded dependency.
21365         * modules/fseterr (Depends-on): Remove dup2.
21366
21367 2009-12-26  Eric Blake  <ebb9@byu.net>
21368
21369         tests: use macros.h in more places
21370         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21371         (ASSERT_STREAM): Provide default of stderr.
21372         * tests/test-dirent-safer.c: Include macros.h, using alternate
21373         stream for assertions.
21374         * tests/test-dup-safer.c: Likewise.
21375         * tests/test-freopen-safer.c: Likewise.
21376         * tests/test-getopt.c: Likewise.
21377         * tests/test-openat-safer.c: Likewise.
21378         * tests/test-pipe.c: Likewise.
21379         * tests/test-popen-safer.c: Likewise.
21380         * modules/dirent-safer-tests (Files): Include macros.h.
21381         * modules/unistd-safer-tests (Files): Likewise.
21382         * modules/freopen-safer-tests (Files): Likewise.
21383         * modules/getopt-posix-tests (Files): Likewise.
21384         * modules/openat-safer-tests (Files): Likewise.
21385         * modules/pipe-tests (Files): Likewise.
21386
21387 2009-12-26  Bruno Haible  <bruno@clisp.org>
21388
21389         javacomp: Portability fix.
21390         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21391         that it also works on Solaris.
21392
21393 2009-12-26  Bruno Haible  <bruno@clisp.org>
21394
21395         localename: Fix storage allocation of gl_locale_name_thread's result.
21396         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21397         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21398         all platforms that have 'uselocale'.
21399         (gl_locale_name_thread_unsafe): New function, extracted from
21400         gl_locale_name_thread.
21401         (gl_locale_name_thread): Call struniq on all platforms that have
21402         'uselocale'.
21403         * tests/test-localename.c (test_locale_name_thread): Check that the
21404         resulting strings are permanently allocated.
21405         * modules/localename-tests (Depends-on): Add strdup.
21406
21407 2009-12-26  Bruno Haible  <bruno@clisp.org>
21408
21409         * tests/test-localename.c (categories): Fill in the strings.
21410
21411 2009-12-26  Jim Meyering  <meyering@redhat.com>
21412
21413         isdir: complete the removal of m4/isdir.m4
21414         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21415
21416         isdir: clean up, since at least grep still uses it
21417         * lib/isdir.c: Include "isdir.h".
21418         (S_ISDIR): Remove now-unneeded definition.
21419         * modules/isdir (Files): Add lib/isdir.h.
21420         * lib/isdir.h: New file, with declaration.
21421         * m4/isdir.m4: Remove file -- unneeded.
21422
21423 2009-12-25  Bruno Haible  <bruno@clisp.org>
21424
21425         selinux-h: Make generated .h files standalone.
21426         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21427         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21428         * lib/se-selinux.in.h: Likewise.
21429         * modules/selinux-h (Depends-on): Add unused-parameter.
21430         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21431         selinux/selinux.h and selinux/context.h.
21432         Suggested by Eric Blake.
21433
21434 2009-12-25  Bruno Haible  <bruno@clisp.org>
21435
21436         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21437         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21438         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21439         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21440         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21441
21442 2009-12-24  Bruno Haible  <bruno@clisp.org>
21443
21444         openat: Fix warning.
21445         * lib/openat-proc.c: Include <unistd.h>.
21446
21447 2009-12-24  Bruno Haible  <bruno@clisp.org>
21448
21449         New module 'unused-parameter'.
21450         * build-aux/unused-parameter.h: New file, extracted from earlier
21451         gnulib-common.m4.
21452         * modules/unused-parameter: New file.
21453         * lib/unistr.h: Include unused-parameter.h.
21454         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21455         _GL_UNUSED.
21456         * modules/unistr/base (Depends-on): Add unused-parameter.
21457
21458 2009-12-24  Bruno Haible  <bruno@clisp.org>
21459
21460         Add missing dependencies to 'extensions' module.
21461         * m4/extensions.m4: Add comment.
21462         * modules/accept4 (Depends-on): Add extensions.
21463         * modules/dup3 (Depends-on): Likewise.
21464         * modules/fcntl (Depends-on): Likewise.
21465         * modules/futimens (Depends-on): Likewise.
21466         * modules/mknod (Depends-on): Likewise.
21467         * modules/pipe2 (Depends-on): Likewise.
21468         * modules/stat-time (Depends-on): Likewise.
21469         * modules/strcasestr-simple (Depends-on): Likewise.
21470         * modules/strsignal (Depends-on): Likewise.
21471         * modules/utimensat (Depends-on): Likewise.
21472         * modules/localcharset (Depends-on): Likewise. Needed because of
21473         gl_FCNTL_O_FLAGS.
21474         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21475         AC_TYPE_MBSTATE_T.
21476         * modules/wcsnrtombs (Depends-on): Likewise.
21477         * modules/wcsrtombs (Depends-on): Likewise.
21478
21479 2009-12-24  Bruno Haible  <bruno@clisp.org>
21480
21481         binary-io: Avoid gcc warning due to SET_BINARY.
21482         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21483         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21484
21485 2009-12-24  Bruno Haible  <bruno@clisp.org>
21486
21487         Avoid future namespace pollution on glibc systems.
21488         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21489         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21490         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21491         glibc systems.
21492
21493 2009-12-24  Bruno Haible  <bruno@clisp.org>
21494
21495         Refactor common macros used in tests.
21496         * tests/macros.h: New file.
21497         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21498         and/or <stdlib.h>, if appropriate.
21499         (ASSERT, SIZEOF): Remove macros.
21500         * tests/test-areadlink-with-size.c: Likewise.
21501         * tests/test-areadlinkat.c: Likewise.
21502         * tests/test-areadlinkat-with-size.c: Likewise.
21503         * tests/test-argmatch.c: Likewise.
21504         * tests/test-argv-iter.c: Likewise.
21505         * tests/test-array-mergesort.c: Likewise.
21506         * tests/test-array_list.c: Likewise.
21507         * tests/test-array_oset.c: Likewise.
21508         * tests/test-avltree_list.c: Likewise.
21509         * tests/test-avltree_oset.c: Likewise.
21510         * tests/test-avltreehash_list.c: Likewise.
21511         * tests/test-base64.c: Likewise.
21512         * tests/test-binary-io.c: Likewise.
21513         * tests/test-bitrotate.c: Likewise.
21514         * tests/test-btowc.c: Likewise.
21515         * tests/test-byteswap.c: Likewise.
21516         * tests/test-c-ctype.c: Likewise.
21517         * tests/test-c-stack.c: Likewise.
21518         * tests/test-c-strcasecmp.c: Likewise.
21519         * tests/test-c-strcasestr.c: Likewise.
21520         * tests/test-c-strncasecmp.c: Likewise.
21521         * tests/test-c-strstr.c: Likewise.
21522         * tests/test-canonicalize-lgpl.c: Likewise.
21523         * tests/test-canonicalize.c: Likewise.
21524         * tests/test-carray_list.c: Likewise.
21525         * tests/test-ceilf1.c: Likewise.
21526         * tests/test-ceilf2.c: Likewise.
21527         * tests/test-ceill.c: Likewise.
21528         * tests/test-chown.c: Likewise.
21529         * tests/test-cloexec.c: Likewise.
21530         * tests/test-copy-acl.c: Likewise.
21531         * tests/test-copy-file.c: Likewise.
21532         * tests/test-count-one-bits.c: Likewise.
21533         * tests/test-dprintf-posix.c: Likewise.
21534         * tests/test-dup2.c: Likewise.
21535         * tests/test-dup3.c: Likewise.
21536         * tests/test-duplocale.c: Likewise.
21537         * tests/test-fbufmode.c: Likewise.
21538         * tests/test-fchdir.c: Likewise.
21539         * tests/test-fchownat.c: Likewise.
21540         * tests/test-fcntl-safer.c: Likewise.
21541         * tests/test-fcntl.c: Likewise.
21542         * tests/test-fdopendir.c: Likewise.
21543         * tests/test-fdutimensat.c: Likewise.
21544         * tests/test-fflush2.c: Likewise.
21545         * tests/test-file-has-acl.c: Likewise.
21546         * tests/test-filevercmp.c: Likewise.
21547         * tests/test-flock.c: Likewise.
21548         * tests/test-floorf1.c: Likewise.
21549         * tests/test-floorf2.c: Likewise.
21550         * tests/test-floorl.c: Likewise.
21551         * tests/test-fnmatch.c: Likewise.
21552         * tests/test-fopen.h: Likewise.
21553         * tests/test-fpending.c: Likewise.
21554         * tests/test-fprintf-posix.c: Likewise.
21555         * tests/test-fpurge.c: Likewise.
21556         * tests/test-freadable.c: Likewise.
21557         * tests/test-freadahead.c: Likewise.
21558         * tests/test-freading.c: Likewise.
21559         * tests/test-freadptr.c: Likewise.
21560         * tests/test-freadptr2.c: Likewise.
21561         * tests/test-freadseek.c: Likewise.
21562         * tests/test-freopen.c: Likewise.
21563         * tests/test-frexp.c: Likewise.
21564         * tests/test-frexpl.c: Likewise.
21565         * tests/test-fseek.c: Likewise.
21566         * tests/test-fseeko.c: Likewise.
21567         * tests/test-fstatat.c: Likewise.
21568         * tests/test-fstrcmp.c: Likewise.
21569         * tests/test-fsync.c: Likewise.
21570         * tests/test-ftell.c: Likewise.
21571         * tests/test-ftello.c: Likewise.
21572         * tests/test-func.c: Likewise.
21573         * tests/test-futimens.c: Likewise.
21574         * tests/test-fwritable.c: Likewise.
21575         * tests/test-fwriting.c: Likewise.
21576         * tests/test-getcwd.c: Likewise.
21577         * tests/test-getdate.c: Likewise.
21578         * tests/test-getdelim.c: Likewise.
21579         * tests/test-getdtablesize.c: Likewise.
21580         * tests/test-getgroups.c: Likewise.
21581         * tests/test-getline.c: Likewise.
21582         * tests/test-getndelim2.c: Likewise.
21583         * tests/test-glob.c: Likewise.
21584         * tests/test-hash.c: Likewise.
21585         * tests/test-i-ring.c: Likewise.
21586         * tests/test-iconv-utf.c: Likewise.
21587         * tests/test-iconv.c: Likewise.
21588         * tests/test-idpriv-drop.c: Likewise.
21589         * tests/test-idpriv-droptemp.c: Likewise.
21590         * tests/test-inet_ntop.c: Likewise.
21591         * tests/test-inet_pton.c: Likewise.
21592         * tests/test-isblank.c: Likewise.
21593         * tests/test-isfinite.c: Likewise.
21594         * tests/test-isinf.c: Likewise.
21595         * tests/test-isnan.c: Likewise.
21596         * tests/test-isnand.h: Likewise.
21597         * tests/test-isnanf.h: Likewise.
21598         * tests/test-isnanl.h: Likewise.
21599         * tests/test-lchown.c: Likewise.
21600         * tests/test-ldexpl.c: Likewise.
21601         * tests/test-link.c: Likewise.
21602         * tests/test-linkat.c: Likewise.
21603         * tests/test-linked_list.c: Likewise.
21604         * tests/test-linkedhash_list.c: Likewise.
21605         * tests/test-localename.c: Likewise.
21606         * tests/test-lseek.c: Likewise.
21607         * tests/test-lstat.c: Likewise.
21608         * tests/test-mbmemcasecmp.c: Likewise.
21609         * tests/test-mbmemcasecoll.c: Likewise.
21610         * tests/test-mbrtowc.c: Likewise.
21611         * tests/test-mbscasecmp.c: Likewise.
21612         * tests/test-mbscasestr1.c: Likewise.
21613         * tests/test-mbscasestr2.c: Likewise.
21614         * tests/test-mbscasestr3.c: Likewise.
21615         * tests/test-mbscasestr4.c: Likewise.
21616         * tests/test-mbschr.c: Likewise.
21617         * tests/test-mbscspn.c: Likewise.
21618         * tests/test-mbsinit.c: Likewise.
21619         * tests/test-mbsncasecmp.c: Likewise.
21620         * tests/test-mbsnrtowcs.c: Likewise.
21621         * tests/test-mbspbrk.c: Likewise.
21622         * tests/test-mbspcasecmp.c: Likewise.
21623         * tests/test-mbsrchr.c: Likewise.
21624         * tests/test-mbsrtowcs.c: Likewise.
21625         * tests/test-mbsspn.c: Likewise.
21626         * tests/test-mbsstr1.c: Likewise.
21627         * tests/test-mbsstr2.c: Likewise.
21628         * tests/test-mbsstr3.c: Likewise.
21629         * tests/test-memchr.c: Likewise.
21630         * tests/test-memchr2.c: Likewise.
21631         * tests/test-memcmp.c: Likewise.
21632         * tests/test-memmem.c: Likewise.
21633         * tests/test-memrchr.c: Likewise.
21634         * tests/test-mkdir.c: Likewise.
21635         * tests/test-mkdirat.c: Likewise.
21636         * tests/test-mkfifo.c: Likewise.
21637         * tests/test-mkfifoat.c: Likewise.
21638         * tests/test-mknod.c: Likewise.
21639         * tests/test-nanosleep.c: Likewise.
21640         * tests/test-nl_langinfo.c: Likewise.
21641         * tests/test-obstack-printf.c: Likewise.
21642         * tests/test-open.c: Likewise.
21643         * tests/test-openat.c: Likewise.
21644         * tests/test-pipe-filter-gi1.c: Likewise.
21645         * tests/test-pipe-filter-gi2-main.c: Likewise.
21646         * tests/test-pipe-filter-ii1.c: Likewise.
21647         * tests/test-pipe-filter-ii2-main.c: Likewise.
21648         * tests/test-pipe2.c: Likewise.
21649         * tests/test-popen.h: Likewise.
21650         * tests/test-posixtm.c: Likewise.
21651         * tests/test-pread.c: Likewise.
21652         * tests/test-printf-frexp.c: Likewise.
21653         * tests/test-printf-frexpl.c: Likewise.
21654         * tests/test-printf-posix.c: Likewise.
21655         * tests/test-priv-set.c: Likewise.
21656         * tests/test-quotearg.c: Likewise.
21657         * tests/test-random_r.c: Likewise.
21658         * tests/test-rawmemchr.c: Likewise.
21659         * tests/test-rbtree_list.c: Likewise.
21660         * tests/test-rbtree_oset.c: Likewise.
21661         * tests/test-rbtreehash_list.c: Likewise.
21662         * tests/test-readlink.c: Likewise.
21663         * tests/test-remove.c: Likewise.
21664         * tests/test-rename.c: Likewise.
21665         * tests/test-renameat.c: Likewise.
21666         * tests/test-rmdir.c: Likewise.
21667         * tests/test-round1.c: Likewise.
21668         * tests/test-roundf1.c: Likewise.
21669         * tests/test-roundl.c: Likewise.
21670         * tests/test-safe-alloc.c: Likewise.
21671         * tests/test-sameacls.c: Likewise.
21672         * tests/test-set-mode-acl.c: Likewise.
21673         * tests/test-setenv.c: Likewise.
21674         * tests/test-sigaction.c: Likewise.
21675         * tests/test-signbit.c: Likewise.
21676         * tests/test-sleep.c: Likewise.
21677         * tests/test-snprintf-posix.c: Likewise.
21678         * tests/test-snprintf.c: Likewise.
21679         * tests/test-sprintf-posix.c: Likewise.
21680         * tests/test-stat-time.c: Likewise.
21681         * tests/test-stat.c: Likewise.
21682         * tests/test-strcasestr.c: Likewise.
21683         * tests/test-strchrnul.c: Likewise.
21684         * tests/test-strerror.c: Likewise.
21685         * tests/test-striconv.c: Likewise.
21686         * tests/test-striconveh.c: Likewise.
21687         * tests/test-striconveha.c: Likewise.
21688         * tests/test-strsignal.c: Likewise.
21689         * tests/test-strstr.c: Likewise.
21690         * tests/test-strtod.c: Likewise.
21691         * tests/test-strverscmp.c: Likewise.
21692         * tests/test-symlink.c: Likewise.
21693         * tests/test-symlinkat.c: Likewise.
21694         * tests/test-trunc1.c: Likewise.
21695         * tests/test-trunc2.c: Likewise.
21696         * tests/test-truncf1.c: Likewise.
21697         * tests/test-truncf2.c: Likewise.
21698         * tests/test-truncl.c: Likewise.
21699         * tests/test-uname.c: Likewise.
21700         * tests/test-unlink.c: Likewise.
21701         * tests/test-unlinkat.c: Likewise.
21702         * tests/test-unsetenv.c: Likewise.
21703         * tests/test-usleep.c: Likewise.
21704         * tests/test-utimens.c: Likewise.
21705         * tests/test-utimensat.c: Likewise.
21706         * tests/test-vasnprintf-posix.c: Likewise.
21707         * tests/test-vasnprintf-posix2.c: Likewise.
21708         * tests/test-vasnprintf.c: Likewise.
21709         * tests/test-vasprintf-posix.c: Likewise.
21710         * tests/test-vasprintf.c: Likewise.
21711         * tests/test-vdprintf-posix.c: Likewise.
21712         * tests/test-vfprintf-posix.c: Likewise.
21713         * tests/test-vprintf-posix.c: Likewise.
21714         * tests/test-vsnprintf-posix.c: Likewise.
21715         * tests/test-vsnprintf.c: Likewise.
21716         * tests/test-vsprintf-posix.c: Likewise.
21717         * tests/test-wcrtomb.c: Likewise.
21718         * tests/test-wcsnrtombs.c: Likewise.
21719         * tests/test-wcsrtombs.c: Likewise.
21720         * tests/test-wctype.c: Likewise.
21721         * tests/test-wcwidth.c: Likewise.
21722         * tests/test-xfprintf-posix.c: Likewise.
21723         * tests/test-xmemdup0.c: Likewise.
21724         * tests/test-xprintf-posix.c: Likewise.
21725         * tests/test-xvasprintf.c: Likewise.
21726         * tests/unicase/test-locale-language.c: Likewise.
21727         * tests/unicase/test-mapping-part1.h: Likewise.
21728         * tests/unicase/test-predicate-part1.h: Likewise.
21729         * tests/unicase/test-u8-casecmp.c: Likewise.
21730         * tests/unicase/test-u8-casecoll.c: Likewise.
21731         * tests/unicase/test-u8-casefold.c: Likewise.
21732         * tests/unicase/test-u8-is-cased.c: Likewise.
21733         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21734         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21735         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21736         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21737         * tests/unicase/test-u8-tolower.c: Likewise.
21738         * tests/unicase/test-u8-totitle.c: Likewise.
21739         * tests/unicase/test-u8-toupper.c: Likewise.
21740         * tests/unicase/test-u16-casecmp.c: Likewise.
21741         * tests/unicase/test-u16-casecoll.c: Likewise.
21742         * tests/unicase/test-u16-casefold.c: Likewise.
21743         * tests/unicase/test-u16-is-cased.c: Likewise.
21744         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21745         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21746         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21747         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21748         * tests/unicase/test-u16-tolower.c: Likewise.
21749         * tests/unicase/test-u16-totitle.c: Likewise.
21750         * tests/unicase/test-u16-toupper.c: Likewise.
21751         * tests/unicase/test-u32-casecmp.c: Likewise.
21752         * tests/unicase/test-u32-casecoll.c: Likewise.
21753         * tests/unicase/test-u32-casefold.c: Likewise.
21754         * tests/unicase/test-u32-is-cased.c: Likewise.
21755         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21756         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21757         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21758         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21759         * tests/unicase/test-u32-tolower.c: Likewise.
21760         * tests/unicase/test-u32-totitle.c: Likewise.
21761         * tests/unicase/test-u32-toupper.c: Likewise.
21762         * tests/unicase/test-ulc-casecmp.c: Likewise.
21763         * tests/unicase/test-ulc-casecoll.c: Likewise.
21764         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21765         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21766         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21767         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21768         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21769         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21770         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21771         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21772         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21773         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21774         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21775         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21776         * tests/unictype/test-bidi_byname.c: Likewise.
21777         * tests/unictype/test-bidi_name.c: Likewise.
21778         * tests/unictype/test-bidi_of.c: Likewise.
21779         * tests/unictype/test-bidi_test.c: Likewise.
21780         * tests/unictype/test-block_list.c: Likewise.
21781         * tests/unictype/test-block_of.c: Likewise.
21782         * tests/unictype/test-block_test.c: Likewise.
21783         * tests/unictype/test-categ_and.c: Likewise.
21784         * tests/unictype/test-categ_and_not.c: Likewise.
21785         * tests/unictype/test-categ_byname.c: Likewise.
21786         * tests/unictype/test-categ_name.c: Likewise.
21787         * tests/unictype/test-categ_none.c: Likewise.
21788         * tests/unictype/test-categ_of.c: Likewise.
21789         * tests/unictype/test-categ_or.c: Likewise.
21790         * tests/unictype/test-categ_test_withtable.c: Likewise.
21791         * tests/unictype/test-combining.c: Likewise.
21792         * tests/unictype/test-decdigit.c: Likewise.
21793         * tests/unictype/test-digit.c: Likewise.
21794         * tests/unictype/test-mirror.c: Likewise.
21795         * tests/unictype/test-numeric.c: Likewise.
21796         * tests/unictype/test-pr_byname.c: Likewise.
21797         * tests/unictype/test-pr_test.c: Likewise.
21798         * tests/unictype/test-predicate-part1.h: Likewise.
21799         * tests/unictype/test-scripts.c: Likewise.
21800         * tests/unictype/test-sy_c_ident.c: Likewise.
21801         * tests/unictype/test-sy_java_ident.c: Likewise.
21802         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21803         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21804         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21805         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21806         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21807         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21808         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21809         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21810         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21811         * tests/uninorm/test-compat-decomposition.c: Likewise.
21812         * tests/uninorm/test-composition.c: Likewise.
21813         * tests/uninorm/test-decomposing-form.c: Likewise.
21814         * tests/uninorm/test-decomposition.c: Likewise.
21815         * tests/uninorm/test-u8-nfc.c: Likewise.
21816         * tests/uninorm/test-u8-nfd.c: Likewise.
21817         * tests/uninorm/test-u8-nfkc.c: Likewise.
21818         * tests/uninorm/test-u8-nfkd.c: Likewise.
21819         * tests/uninorm/test-u8-normcmp.c: Likewise.
21820         * tests/uninorm/test-u8-normcoll.c: Likewise.
21821         * tests/uninorm/test-u16-nfc.c: Likewise.
21822         * tests/uninorm/test-u16-nfd.c: Likewise.
21823         * tests/uninorm/test-u16-nfkc.c: Likewise.
21824         * tests/uninorm/test-u16-nfkd.c: Likewise.
21825         * tests/uninorm/test-u16-normcmp.c: Likewise.
21826         * tests/uninorm/test-u16-normcoll.c: Likewise.
21827         * tests/uninorm/test-u32-nfc.c: Likewise.
21828         * tests/uninorm/test-u32-nfd.c: Likewise.
21829         * tests/uninorm/test-u32-nfkc.c: Likewise.
21830         * tests/uninorm/test-u32-nfkd.c: Likewise.
21831         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21832         * tests/uninorm/test-u32-normcmp.c: Likewise.
21833         * tests/uninorm/test-u32-normcoll.c: Likewise.
21834         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21835         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21836         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21837         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21838         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21839         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21840         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21841         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21842         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21843         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21844         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21845         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21846         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21847         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21848         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21849         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21850         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21851         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21852         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21853         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21854         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21855         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21856         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21857         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21858         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21859         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21860         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21861         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21862         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21863         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21864         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21865         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21866         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21867         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21868         * tests/uniwidth/test-u8-width.c: Likewise.
21869         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21870         * tests/uniwidth/test-u16-width.c: Likewise.
21871         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21872         * tests/uniwidth/test-u32-width.c: Likewise.
21873         * tests/uniwidth/test-uc_width.c: Likewise.
21874         * tests/uniwidth/test-uc_width2.c: Likewise.
21875         * modules/acl-tests (Files): Add tests/macros.h.
21876         * modules/areadlink-tests (Files): Likewise.
21877         * modules/areadlink-with-size-tests (Files): Likewise.
21878         * modules/areadlinkat-tests (Files): Likewise.
21879         * modules/areadlinkat-with-size-tests (Files): Likewise.
21880         * modules/argmatch-tests (Files): Likewise.
21881         * modules/argv-iter-tests (Files): Likewise.
21882         * modules/array-list-tests (Files): Likewise.
21883         * modules/array-mergesort-tests (Files): Likewise.
21884         * modules/array-oset-tests (Files): Likewise.
21885         * modules/avltree-list-tests (Files): Likewise.
21886         * modules/avltree-oset-tests (Files): Likewise.
21887         * modules/avltreehash-list-tests (Files): Likewise.
21888         * modules/base64-tests (Files): Likewise.
21889         * modules/binary-io-tests (Files): Likewise.
21890         * modules/bitrotate-tests (Files): Likewise.
21891         * modules/btowc-tests (Files): Likewise.
21892         * modules/byteswap-tests (Files): Likewise.
21893         * modules/c-ctype-tests (Files): Likewise.
21894         * modules/c-stack-tests (Files): Likewise.
21895         * modules/c-strcase-tests (Files): Likewise.
21896         * modules/c-strcasestr-tests (Files): Likewise.
21897         * modules/c-strstr-tests (Files): Likewise.
21898         * modules/canonicalize-lgpl-tests (Files): Likewise.
21899         * modules/canonicalize-tests (Files): Likewise.
21900         * modules/carray-list-tests (Files): Likewise.
21901         * modules/ceilf-tests (Files): Likewise.
21902         * modules/ceill-tests (Files): Likewise.
21903         * modules/chown-tests (Files): Likewise.
21904         * modules/cloexec-tests (Files): Likewise.
21905         * modules/copy-file-tests (Files): Likewise.
21906         * modules/count-one-bits-tests (Files): Likewise.
21907         * modules/dprintf-posix-tests (Files): Likewise.
21908         * modules/dup2-tests (Files): Likewise.
21909         * modules/dup3-tests (Files): Likewise.
21910         * modules/duplocale-tests (Files): Likewise.
21911         * modules/fbufmode-tests (Files): Likewise.
21912         * modules/fchdir-tests (Files): Likewise.
21913         * modules/fcntl-safer-tests (Files): Likewise.
21914         * modules/fcntl-tests (Files): Likewise.
21915         * modules/fdopendir-tests (Files): Likewise.
21916         * modules/fdutimensat-tests (Files): Likewise.
21917         * modules/fflush-tests (Files): Likewise.
21918         * modules/filevercmp-tests (Files): Likewise.
21919         * modules/flock-tests (Files): Likewise.
21920         * modules/floorf-tests (Files): Likewise.
21921         * modules/floorl-tests (Files): Likewise.
21922         * modules/fnmatch-tests (Files): Likewise.
21923         * modules/fopen-safer-tests (Files): Likewise.
21924         * modules/fopen-tests (Files): Likewise.
21925         * modules/fpending-tests (Files): Likewise.
21926         * modules/fprintf-posix-tests (Files): Likewise.
21927         * modules/fpurge-tests (Files): Likewise.
21928         * modules/freadable-tests (Files): Likewise.
21929         * modules/freadahead-tests (Files): Likewise.
21930         * modules/freading-tests (Files): Likewise.
21931         * modules/freadptr-tests (Files): Likewise.
21932         * modules/freadseek-tests (Files): Likewise.
21933         * modules/freopen-tests (Files): Likewise.
21934         * modules/frexp-nolibm-tests (Files): Likewise.
21935         * modules/frexp-tests (Files): Likewise.
21936         * modules/frexpl-nolibm-tests (Files): Likewise.
21937         * modules/frexpl-tests (Files): Likewise.
21938         * modules/fseek-tests (Files): Likewise.
21939         * modules/fseeko-tests (Files): Likewise.
21940         * modules/fstrcmp-tests (Files): Likewise.
21941         * modules/fsync-tests (Files): Likewise.
21942         * modules/ftell-tests (Files): Likewise.
21943         * modules/ftello-tests (Files): Likewise.
21944         * modules/func-tests (Files): Likewise.
21945         * modules/futimens-tests (Files): Likewise.
21946         * modules/fwritable-tests (Files): Likewise.
21947         * modules/fwriting-tests (Files): Likewise.
21948         * modules/getcwd-tests (Files): Likewise.
21949         * modules/getdate-tests (Files): Likewise.
21950         * modules/getdelim-tests (Files): Likewise.
21951         * modules/getdtablesize-tests (Files): Likewise.
21952         * modules/getgroups-tests (Files): Likewise.
21953         * modules/getline-tests (Files): Likewise.
21954         * modules/getndelim2-tests (Files): Likewise.
21955         * modules/glob-tests (Files): Likewise.
21956         * modules/hash-tests (Files): Likewise.
21957         * modules/i-ring-tests (Files): Likewise.
21958         * modules/iconv-tests (Files): Likewise.
21959         * modules/iconv_open-utf-tests (Files): Likewise.
21960         * modules/idpriv-drop-tests (Files): Likewise.
21961         * modules/idpriv-droptemp-tests (Files): Likewise.
21962         * modules/inet_ntop-tests (Files): Likewise.
21963         * modules/inet_pton-tests (Files): Likewise.
21964         * modules/isblank-tests (Files): Likewise.
21965         * modules/isfinite-tests (Files): Likewise.
21966         * modules/isinf-tests (Files): Likewise.
21967         * modules/isnan-tests (Files): Likewise.
21968         * modules/isnand-nolibm-tests (Files): Likewise.
21969         * modules/isnand-tests (Files): Likewise.
21970         * modules/isnanf-nolibm-tests (Files): Likewise.
21971         * modules/isnanf-tests (Files): Likewise.
21972         * modules/isnanl-nolibm-tests (Files): Likewise.
21973         * modules/isnanl-tests (Files): Likewise.
21974         * modules/lchown-tests (Files): Likewise.
21975         * modules/ldexpl-tests (Files): Likewise.
21976         * modules/link-tests (Files): Likewise.
21977         * modules/linkat-tests (Files): Likewise.
21978         * modules/linked-list-tests (Files): Likewise.
21979         * modules/linkedhash-list-tests (Files): Likewise.
21980         * modules/localename-tests (Files): Likewise.
21981         * modules/lseek-tests (Files): Likewise.
21982         * modules/lstat-tests (Files): Likewise.
21983         * modules/mbmemcasecmp-tests (Files): Likewise.
21984         * modules/mbmemcasecoll-tests (Files): Likewise.
21985         * modules/mbrtowc-tests (Files): Likewise.
21986         * modules/mbscasecmp-tests (Files): Likewise.
21987         * modules/mbscasestr-tests (Files): Likewise.
21988         * modules/mbschr-tests (Files): Likewise.
21989         * modules/mbscspn-tests (Files): Likewise.
21990         * modules/mbsinit-tests (Files): Likewise.
21991         * modules/mbsncasecmp-tests (Files): Likewise.
21992         * modules/mbsnrtowcs-tests (Files): Likewise.
21993         * modules/mbspbrk-tests (Files): Likewise.
21994         * modules/mbspcasecmp-tests (Files): Likewise.
21995         * modules/mbsrchr-tests (Files): Likewise.
21996         * modules/mbsrtowcs-tests (Files): Likewise.
21997         * modules/mbsspn-tests (Files): Likewise.
21998         * modules/mbsstr-tests (Files): Likewise.
21999         * modules/memchr-tests (Files): Likewise.
22000         * modules/memchr2-tests (Files): Likewise.
22001         * modules/memcmp-tests (Files): Likewise.
22002         * modules/memmem-tests (Files): Likewise.
22003         * modules/memrchr-tests (Files): Likewise.
22004         * modules/mkdir-tests (Files): Likewise.
22005         * modules/mkfifo-tests (Files): Likewise.
22006         * modules/mkfifoat-tests (Files): Likewise.
22007         * modules/mknod-tests (Files): Likewise.
22008         * modules/nanosleep-tests (Files): Likewise.
22009         * modules/nl_langinfo-tests (Files): Likewise.
22010         * modules/obstack-printf-tests (Files): Likewise.
22011         * modules/open-tests (Files): Likewise.
22012         * modules/openat-tests (Files): Likewise.
22013         * modules/pipe-filter-gi-tests (Files): Likewise.
22014         * modules/pipe-filter-ii-tests (Files): Likewise.
22015         * modules/pipe2-tests (Files): Likewise.
22016         * modules/popen-safer-tests (Files): Likewise.
22017         * modules/popen-tests (Files): Likewise.
22018         * modules/posixtm-tests (Files): Likewise.
22019         * modules/pread-tests (Files): Likewise.
22020         * modules/printf-frexp-tests (Files): Likewise.
22021         * modules/printf-frexpl-tests (Files): Likewise.
22022         * modules/printf-posix-tests (Files): Likewise.
22023         * modules/priv-set-tests (Files): Likewise.
22024         * modules/quotearg-tests (Files): Likewise.
22025         * modules/random_r-tests (Files): Likewise.
22026         * modules/rawmemchr-tests (Files): Likewise.
22027         * modules/rbtree-list-tests (Files): Likewise.
22028         * modules/rbtree-oset-tests (Files): Likewise.
22029         * modules/rbtreehash-list-tests (Files): Likewise.
22030         * modules/readlink-tests (Files): Likewise.
22031         * modules/remove-tests (Files): Likewise.
22032         * modules/rename-tests (Files): Likewise.
22033         * modules/renameat-tests (Files): Likewise.
22034         * modules/rmdir-tests (Files): Likewise.
22035         * modules/round-tests (Files): Likewise.
22036         * modules/roundf-tests (Files): Likewise.
22037         * modules/roundl-tests (Files): Likewise.
22038         * modules/safe-alloc-tests (Files): Likewise.
22039         * modules/setenv-tests (Files): Likewise.
22040         * modules/sigaction-tests (Files): Likewise.
22041         * modules/signbit-tests (Files): Likewise.
22042         * modules/sleep-tests (Files): Likewise.
22043         * modules/snprintf-posix-tests (Files): Likewise.
22044         * modules/snprintf-tests (Files): Likewise.
22045         * modules/sprintf-posix-tests (Files): Likewise.
22046         * modules/stat-tests (Files): Likewise.
22047         * modules/stat-time-tests (Files): Likewise.
22048         * modules/strcasestr-tests (Files): Likewise.
22049         * modules/strchrnul-tests (Files): Likewise.
22050         * modules/strerror-tests (Files): Likewise.
22051         * modules/striconv-tests (Files): Likewise.
22052         * modules/striconveh-tests (Files): Likewise.
22053         * modules/striconveha-tests (Files): Likewise.
22054         * modules/strsignal-tests (Files): Likewise.
22055         * modules/strstr-tests (Files): Likewise.
22056         * modules/strtod-tests (Files): Likewise.
22057         * modules/strverscmp-tests (Files): Likewise.
22058         * modules/symlink-tests (Files): Likewise.
22059         * modules/symlinkat-tests (Files): Likewise.
22060         * modules/trunc-tests (Files): Likewise.
22061         * modules/truncf-tests (Files): Likewise.
22062         * modules/truncl-tests (Files): Likewise.
22063         * modules/uname-tests (Files): Likewise.
22064         * modules/unicase/cased-tests (Files): Likewise.
22065         * modules/unicase/ignorable-tests (Files): Likewise.
22066         * modules/unicase/locale-language-tests (Files): Likewise.
22067         * modules/unicase/tolower-tests (Files): Likewise.
22068         * modules/unicase/totitle-tests (Files): Likewise.
22069         * modules/unicase/toupper-tests (Files): Likewise.
22070         * modules/unicase/u8-casecmp-tests (Files): Likewise.
22071         * modules/unicase/u8-casecoll-tests (Files): Likewise.
22072         * modules/unicase/u8-casefold-tests (Files): Likewise.
22073         * modules/unicase/u8-is-cased-tests (Files): Likewise.
22074         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
22075         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
22076         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
22077         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
22078         * modules/unicase/u8-tolower-tests (Files): Likewise.
22079         * modules/unicase/u8-totitle-tests (Files): Likewise.
22080         * modules/unicase/u8-toupper-tests (Files): Likewise.
22081         * modules/unicase/u16-casecmp-tests (Files): Likewise.
22082         * modules/unicase/u16-casecoll-tests (Files): Likewise.
22083         * modules/unicase/u16-casefold-tests (Files): Likewise.
22084         * modules/unicase/u16-is-cased-tests (Files): Likewise.
22085         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
22086         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
22087         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
22088         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
22089         * modules/unicase/u16-tolower-tests (Files): Likewise.
22090         * modules/unicase/u16-totitle-tests (Files): Likewise.
22091         * modules/unicase/u16-toupper-tests (Files): Likewise.
22092         * modules/unicase/u32-casecmp-tests (Files): Likewise.
22093         * modules/unicase/u32-casecoll-tests (Files): Likewise.
22094         * modules/unicase/u32-casefold-tests (Files): Likewise.
22095         * modules/unicase/u32-is-cased-tests (Files): Likewise.
22096         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
22097         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
22098         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
22099         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
22100         * modules/unicase/u32-tolower-tests (Files): Likewise.
22101         * modules/unicase/u32-totitle-tests (Files): Likewise.
22102         * modules/unicase/u32-toupper-tests (Files): Likewise.
22103         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
22104         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
22105         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
22106         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
22107         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
22108         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
22109         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
22110         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
22111         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
22112         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
22113         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
22114         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
22115         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
22116         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
22117         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
22118         * modules/unictype/bidicategory-name-tests (Files): Likewise.
22119         * modules/unictype/bidicategory-of-tests (Files): Likewise.
22120         * modules/unictype/bidicategory-test-tests (Files): Likewise.
22121         * modules/unictype/block-list-tests (Files): Likewise.
22122         * modules/unictype/block-of-tests (Files): Likewise.
22123         * modules/unictype/block-test-tests (Files): Likewise.
22124         * modules/unictype/category-C-tests (Files): Likewise.
22125         * modules/unictype/category-Cc-tests (Files): Likewise.
22126         * modules/unictype/category-Cf-tests (Files): Likewise.
22127         * modules/unictype/category-Cn-tests (Files): Likewise.
22128         * modules/unictype/category-Co-tests (Files): Likewise.
22129         * modules/unictype/category-Cs-tests (Files): Likewise.
22130         * modules/unictype/category-L-tests (Files): Likewise.
22131         * modules/unictype/category-Ll-tests (Files): Likewise.
22132         * modules/unictype/category-Lm-tests (Files): Likewise.
22133         * modules/unictype/category-Lo-tests (Files): Likewise.
22134         * modules/unictype/category-Lt-tests (Files): Likewise.
22135         * modules/unictype/category-Lu-tests (Files): Likewise.
22136         * modules/unictype/category-M-tests (Files): Likewise.
22137         * modules/unictype/category-Mc-tests (Files): Likewise.
22138         * modules/unictype/category-Me-tests (Files): Likewise.
22139         * modules/unictype/category-Mn-tests (Files): Likewise.
22140         * modules/unictype/category-N-tests (Files): Likewise.
22141         * modules/unictype/category-Nd-tests (Files): Likewise.
22142         * modules/unictype/category-Nl-tests (Files): Likewise.
22143         * modules/unictype/category-No-tests (Files): Likewise.
22144         * modules/unictype/category-P-tests (Files): Likewise.
22145         * modules/unictype/category-Pc-tests (Files): Likewise.
22146         * modules/unictype/category-Pd-tests (Files): Likewise.
22147         * modules/unictype/category-Pe-tests (Files): Likewise.
22148         * modules/unictype/category-Pf-tests (Files): Likewise.
22149         * modules/unictype/category-Pi-tests (Files): Likewise.
22150         * modules/unictype/category-Po-tests (Files): Likewise.
22151         * modules/unictype/category-Ps-tests (Files): Likewise.
22152         * modules/unictype/category-S-tests (Files): Likewise.
22153         * modules/unictype/category-Sc-tests (Files): Likewise.
22154         * modules/unictype/category-Sk-tests (Files): Likewise.
22155         * modules/unictype/category-Sm-tests (Files): Likewise.
22156         * modules/unictype/category-So-tests (Files): Likewise.
22157         * modules/unictype/category-Z-tests (Files): Likewise.
22158         * modules/unictype/category-Zl-tests (Files): Likewise.
22159         * modules/unictype/category-Zp-tests (Files): Likewise.
22160         * modules/unictype/category-Zs-tests (Files): Likewise.
22161         * modules/unictype/category-and-not-tests (Files): Likewise.
22162         * modules/unictype/category-and-tests (Files): Likewise.
22163         * modules/unictype/category-byname-tests (Files): Likewise.
22164         * modules/unictype/category-name-tests (Files): Likewise.
22165         * modules/unictype/category-none-tests (Files): Likewise.
22166         * modules/unictype/category-of-tests (Files): Likewise.
22167         * modules/unictype/category-or-tests (Files): Likewise.
22168         * modules/unictype/category-test-withtable-tests (Files): Likewise.
22169         * modules/unictype/combining-class-tests (Files): Likewise.
22170         * modules/unictype/ctype-alnum-tests (Files): Likewise.
22171         * modules/unictype/ctype-alpha-tests (Files): Likewise.
22172         * modules/unictype/ctype-blank-tests (Files): Likewise.
22173         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
22174         * modules/unictype/ctype-digit-tests (Files): Likewise.
22175         * modules/unictype/ctype-graph-tests (Files): Likewise.
22176         * modules/unictype/ctype-lower-tests (Files): Likewise.
22177         * modules/unictype/ctype-print-tests (Files): Likewise.
22178         * modules/unictype/ctype-punct-tests (Files): Likewise.
22179         * modules/unictype/ctype-space-tests (Files): Likewise.
22180         * modules/unictype/ctype-upper-tests (Files): Likewise.
22181         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
22182         * modules/unictype/decimal-digit-tests (Files): Likewise.
22183         * modules/unictype/digit-tests (Files): Likewise.
22184         * modules/unictype/mirror-tests (Files): Likewise.
22185         * modules/unictype/numeric-tests (Files): Likewise.
22186         * modules/unictype/property-alphabetic-tests (Files): Likewise.
22187         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
22188         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
22189         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
22190         Likewise.
22191         * modules/unictype/property-bidi-block-separator-tests (Files):
22192         Likewise.
22193         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
22194         Likewise.
22195         * modules/unictype/property-bidi-common-separator-tests (Files):
22196         Likewise.
22197         * modules/unictype/property-bidi-control-tests (Files): Likewise.
22198         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
22199         Likewise.
22200         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
22201         Likewise.
22202         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
22203         Likewise.
22204         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
22205         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
22206         Likewise.
22207         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
22208         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
22209         Likewise.
22210         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
22211         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
22212         * modules/unictype/property-bidi-segment-separator-tests (Files):
22213         Likewise.
22214         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
22215         * modules/unictype/property-byname-tests (Files): Likewise.
22216         * modules/unictype/property-combining-tests (Files): Likewise.
22217         * modules/unictype/property-composite-tests (Files): Likewise.
22218         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
22219         * modules/unictype/property-dash-tests (Files): Likewise.
22220         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
22221         * modules/unictype/property-default-ignorable-code-point-tests (Files):
22222         Likewise.
22223         * modules/unictype/property-deprecated-tests (Files): Likewise.
22224         * modules/unictype/property-diacritic-tests (Files): Likewise.
22225         * modules/unictype/property-extender-tests (Files): Likewise.
22226         * modules/unictype/property-format-control-tests (Files): Likewise.
22227         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
22228         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
22229         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
22230         * modules/unictype/property-hex-digit-tests (Files): Likewise.
22231         * modules/unictype/property-hyphen-tests (Files): Likewise.
22232         * modules/unictype/property-id-continue-tests (Files): Likewise.
22233         * modules/unictype/property-id-start-tests (Files): Likewise.
22234         * modules/unictype/property-ideographic-tests (Files): Likewise.
22235         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
22236         * modules/unictype/property-ids-trinary-operator-tests (Files):
22237         Likewise.
22238         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
22239         * modules/unictype/property-iso-control-tests (Files): Likewise.
22240         * modules/unictype/property-join-control-tests (Files): Likewise.
22241         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
22242         * modules/unictype/property-line-separator-tests (Files): Likewise.
22243         * modules/unictype/property-logical-order-exception-tests (Files):
22244         Likewise.
22245         * modules/unictype/property-lowercase-tests (Files): Likewise.
22246         * modules/unictype/property-math-tests (Files): Likewise.
22247         * modules/unictype/property-non-break-tests (Files): Likewise.
22248         * modules/unictype/property-not-a-character-tests (Files): Likewise.
22249         * modules/unictype/property-numeric-tests (Files): Likewise.
22250         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
22251         * modules/unictype/property-other-default-ignorable-code-point-tests
22252         (Files): Likewise.
22253         * modules/unictype/property-other-grapheme-extend-tests (Files):
22254         Likewise.
22255         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
22256         * modules/unictype/property-other-id-start-tests (Files): Likewise.
22257         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
22258         * modules/unictype/property-other-math-tests (Files): Likewise.
22259         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
22260         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
22261         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
22262         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
22263         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
22264         * modules/unictype/property-private-use-tests (Files): Likewise.
22265         * modules/unictype/property-punctuation-tests (Files): Likewise.
22266         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
22267         * modules/unictype/property-radical-tests (Files): Likewise.
22268         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
22269         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
22270         * modules/unictype/property-space-tests (Files): Likewise.
22271         * modules/unictype/property-terminal-punctuation-tests (Files):
22272         Likewise.
22273         * modules/unictype/property-test-tests (Files): Likewise.
22274         * modules/unictype/property-titlecase-tests (Files): Likewise.
22275         * modules/unictype/property-unassigned-code-value-tests (Files):
22276         Likewise.
22277         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
22278         * modules/unictype/property-uppercase-tests (Files): Likewise.
22279         * modules/unictype/property-variation-selector-tests (Files): Likewise.
22280         * modules/unictype/property-white-space-tests (Files): Likewise.
22281         * modules/unictype/property-xid-continue-tests (Files): Likewise.
22282         * modules/unictype/property-xid-start-tests (Files): Likewise.
22283         * modules/unictype/property-zero-width-tests (Files): Likewise.
22284         * modules/unictype/scripts-tests (Files): Likewise.
22285         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
22286         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
22287         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
22288         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
22289         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
22290         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
22291         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
22292         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
22293         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
22294         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
22295         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
22296         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
22297         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
22298         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
22299         * modules/uninorm/composition-tests (Files): Likewise.
22300         * modules/uninorm/decomposing-form-tests (Files): Likewise.
22301         * modules/uninorm/decomposition-tests (Files): Likewise.
22302         * modules/uninorm/filter-tests (Files): Likewise.
22303         * modules/uninorm/nfc-tests (Files): Likewise.
22304         * modules/uninorm/nfd-tests (Files): Likewise.
22305         * modules/uninorm/nfkc-tests (Files): Likewise.
22306         * modules/uninorm/nfkd-tests (Files): Likewise.
22307         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
22308         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
22309         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
22310         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
22311         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
22312         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
22313         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
22314         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22315         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
22316         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
22317         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
22318         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
22319         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22320         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
22321         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
22322         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
22323         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
22324         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22325         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
22326         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
22327         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
22328         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
22329         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22330         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22331         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22332         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22333         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22334         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22335         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22336         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22337         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22338         * modules/uniwidth/u8-width-tests (Files): Likewise.
22339         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22340         * modules/uniwidth/u16-width-tests (Files): Likewise.
22341         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22342         * modules/uniwidth/u32-width-tests (Files): Likewise.
22343         * modules/uniwidth/width-tests (Files): Likewise.
22344         * modules/unlink-tests (Files): Likewise.
22345         * modules/unsetenv-tests (Files): Likewise.
22346         * modules/usleep-tests (Files): Likewise.
22347         * modules/utimens-tests (Files): Likewise.
22348         * modules/utimensat-tests (Files): Likewise.
22349         * modules/vasnprintf-posix-tests (Files): Likewise.
22350         * modules/vasnprintf-tests (Files): Likewise.
22351         * modules/vasprintf-posix-tests (Files): Likewise.
22352         * modules/vasprintf-tests (Files): Likewise.
22353         * modules/vdprintf-posix-tests (Files): Likewise.
22354         * modules/vfprintf-posix-tests (Files): Likewise.
22355         * modules/vprintf-posix-tests (Files): Likewise.
22356         * modules/vsnprintf-posix-tests (Files): Likewise.
22357         * modules/vsnprintf-tests (Files): Likewise.
22358         * modules/vsprintf-posix-tests (Files): Likewise.
22359         * modules/wcrtomb-tests (Files): Likewise.
22360         * modules/wcsnrtombs-tests (Files): Likewise.
22361         * modules/wcsrtombs-tests (Files): Likewise.
22362         * modules/wctype-tests (Files): Likewise.
22363         * modules/wcwidth-tests (Files): Likewise.
22364         * modules/xmemdup0-tests (Files): Likewise.
22365         * modules/xprintf-posix-tests (Files): Likewise.
22366         * modules/xvasprintf-tests (Files): Likewise.
22367
22368 2009-12-24  Eric Blake  <ebb9@byu.net>
22369
22370         test-nanosleep: fix typo
22371         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22372         patch.
22373         Reported by Bruno Haible.
22374
22375 2009-12-24  Bruno Haible  <bruno@clisp.org>
22376
22377         Reduce namespace pollution on glibc systems.
22378         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22379         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22380         systems.
22381         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22382         <getopt.h> on glibc systems.
22383         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22384         systems.
22385         * lib/fcntl.c: Include <unistd.h> here instead.
22386
22387 2009-12-24  Bruno Haible  <bruno@clisp.org>
22388
22389         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22390
22391 2009-12-24  Eric Blake  <ebb9@byu.net>
22392
22393         tests: add signature checks
22394         * tests/signature.h (SIGNATURE_CHECK): New file.
22395         * modules/atexit-tests (Files): Use it.
22396         * modules/btowc-tests (Files): Likewise.
22397         * modules/canonicalize-lgpl-tests (Files): Likewise.
22398         * modules/ceilf-tests (Files): Likewise.
22399         * modules/ceill-tests (Files): Likewise.
22400         * modules/chown-tests (Files): Likewise.
22401         * modules/dprintf-posix-tests (Files): Likewise.
22402         * modules/dup2-tests (Files): Likewise.
22403         * modules/dup3-tests (Files): Likewise.
22404         * modules/duplocale-tests (Files): Likewise.
22405         * modules/fchdir-tests (Files): Likewise.
22406         * modules/fcntl-tests (Files): Likewise.
22407         * modules/fdopendir-tests (Files): Likewise.
22408         * modules/fflush-tests (Files): Likewise.
22409         * modules/flock-tests (Files): Likewise.
22410         * modules/floorf-tests (Files): Likewise.
22411         * modules/floorl-tests (Files): Likewise.
22412         * modules/fnmatch-tests (Files): Likewise.
22413         * modules/fopen-tests (Files): Likewise.
22414         * modules/fprintf-posix-tests (Files): Likewise.
22415         * modules/freopen-tests (Files): Likewise.
22416         * modules/frexp-nolibm-tests (Files): Likewise.
22417         * modules/frexp-tests (Files): Likewise.
22418         * modules/frexpl-nolibm-tests (Files): Likewise.
22419         * modules/frexpl-tests (Files): Likewise.
22420         * modules/fseek-tests (Files): Likewise.
22421         * modules/fseeko-tests (Files): Likewise.
22422         * modules/fsync-tests (Files): Likewise.
22423         * modules/ftell-tests (Files): Likewise.
22424         * modules/ftello-tests (Files): Likewise.
22425         * modules/futimens-tests (Files): Likewise.
22426         * modules/getaddrinfo-tests (Files): Likewise.
22427         * modules/getcwd-tests (Files): Likewise.
22428         * modules/getdelim-tests (Files): Likewise.
22429         * modules/getdtablesize-tests (Files): Likewise.
22430         * modules/getgroups-tests (Files): Likewise.
22431         * modules/gethostname-tests (Files): Likewise.
22432         * modules/getline-tests (Files): Likewise.
22433         * modules/getopt-posix-tests (Files): Likewise.
22434         * modules/gettimeofday-tests (Files): Likewise.
22435         * modules/glob-tests (Files): Likewise.
22436         * modules/iconv-tests (Files): Likewise.
22437         * modules/inet_ntop-tests (Files): Likewise.
22438         * modules/inet_pton-tests (Files): Likewise.
22439         * modules/isblank-tests (Files): Likewise.
22440         * modules/lchown-tests (Files): Likewise.
22441         * modules/ldexpl-tests (Files): Likewise.
22442         * modules/link-tests (Files): Likewise.
22443         * modules/linkat-tests (Files): Likewise.
22444         * modules/lseek-tests (Files): Likewise.
22445         * modules/lstat-tests (Files): Likewise.
22446         * modules/mbrtowc-tests (Files): Likewise.
22447         * modules/mbsinit-tests (Files): Likewise.
22448         * modules/mbsnrtowcs-tests (Files): Likewise.
22449         * modules/mbsrtowcs-tests (Files): Likewise.
22450         * modules/memchr-tests (Files): Likewise.
22451         * modules/memcmp-tests (Files): Likewise.
22452         * modules/memmem-tests (Files): Likewise.
22453         * modules/memrchr-tests (Files): Likewise.
22454         * modules/mkdir-tests (Files): Likewise.
22455         * modules/mkfifo-tests (Files): Likewise.
22456         * modules/mkfifoat-tests (Files): Likewise.
22457         * modules/mknod-tests (Files): Likewise.
22458         * modules/nanosleep-tests (Files): Likewise.
22459         * modules/nl_langinfo-tests (Files): Likewise.
22460         * modules/obstack-printf-tests (Files): Likewise.
22461         * modules/open-tests (Files): Likewise.
22462         * modules/openat-tests (Files): Likewise.
22463         * modules/perror-tests (Files): Likewise.
22464         * modules/pipe2-tests (Files): Likewise.
22465         * modules/poll-tests (Files): Likewise.
22466         * modules/popen-tests (Files): Likewise.
22467         * modules/posix_spawn-tests (Files): Likewise.
22468         * modules/posix_spawnp-tests (Files): Likewise.
22469         * modules/pread-tests (Files): Likewise.
22470         * modules/printf-posix-tests (Files): Likewise.
22471         * modules/pty-tests (Files): Likewise.
22472         * modules/random_r-tests (Files): Likewise.
22473         * modules/rawmemchr-tests (Files): Likewise.
22474         * modules/readlink-tests (Files): Likewise.
22475         * modules/remove-tests (Files): Likewise.
22476         * modules/rename-tests (Files): Likewise.
22477         * modules/renameat-tests (Files): Likewise.
22478         * modules/rmdir-tests (Files): Likewise.
22479         * modules/round-tests (Files): Likewise.
22480         * modules/roundf-tests (Files): Likewise.
22481         * modules/roundl-tests (Files): Likewise.
22482         * modules/select-tests (Files): Likewise.
22483         * modules/setenv-tests (Files): Likewise.
22484         * modules/sigaction-tests (Files): Likewise.
22485         * modules/sleep-tests (Files): Likewise.
22486         * modules/snprintf-posix-tests (Files): Likewise.
22487         * modules/snprintf-tests (Files): Likewise.
22488         * modules/sprintf-posix-tests (Files): Likewise.
22489         * modules/stat-tests (Files): Likewise.
22490         * modules/strcasestr-tests (Files): Likewise.
22491         * modules/strchrnul-tests (Files): Likewise.
22492         * modules/strerror-tests (Files): Likewise.
22493         * modules/strsignal-tests (Files): Likewise.
22494         * modules/strstr-tests (Files): Likewise.
22495         * modules/strtod-tests (Files): Likewise.
22496         * modules/strverscmp-tests (Files): Likewise.
22497         * modules/symlink-tests (Files): Likewise.
22498         * modules/symlinkat-tests (Files): Likewise.
22499         * modules/times-tests (Files): Likewise.
22500         * modules/trunc-tests (Files): Likewise.
22501         * modules/truncf-tests (Files): Likewise.
22502         * modules/truncl-tests (Files): Likewise.
22503         * modules/tsearch-tests (Files): Likewise.
22504         * modules/uname-tests (Files): Likewise.
22505         * modules/unlink-tests (Files): Likewise.
22506         * modules/unsetenv-tests (Files): Likewise.
22507         * modules/usleep-tests (Files): Likewise.
22508         * modules/utimensat-tests (Files): Likewise.
22509         * modules/vasprintf-tests (Files): Likewise.
22510         * modules/vdprintf-posix-tests (Files): Likewise.
22511         * modules/vfprintf-posix-tests (Files): Likewise.
22512         * modules/vprintf-posix-tests (Files): Likewise.
22513         * modules/vsnprintf-posix-tests (Files): Likewise.
22514         * modules/vsnprintf-tests (Files): Likewise.
22515         * modules/vsprintf-posix-tests (Files): Likewise.
22516         * modules/wcrtomb-tests (Files): Likewise.
22517         * modules/wcsnrtombs-tests (Files): Likewise.
22518         * modules/wcsrtombs-tests (Files): Likewise.
22519         * modules/wcwidth-tests (Files): Likewise.
22520         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22521         * tests/test-isinf.c (isinf): Likewise.
22522         * tests/test-isnan.c (isnan): Likewise.
22523         * tests/test-signbit.c (signbit): Likewise.
22524         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22525         declaration, either as macro or with correct signature.
22526         (select): Ensure function under test is declared with correct
22527         signature in correct header.
22528         * tests/test-atexit.c (atexit): Likewise.
22529         * tests/test-btowc.c (btowc): Likewise.
22530         * tests/test-canonicalize-lgpl.c (realpath)
22531         (canonicalize_file_name): Likewise.
22532         * tests/test-ceilf1.c (ceilf): Likewise.
22533         * tests/test-ceill.c (ceill): Likewise.
22534         * tests/test-chown.c (chown): Likewise.
22535         * tests/test-dprintf-posix.c (dprintf): Likewise.
22536         * tests/test-dup2.c (dup2): Likewise.
22537         * tests/test-dup3.c (dup3): Likewise.
22538         * tests/test-duplocale.c (duplocale): Likewise.
22539         * tests/test-fchdir.c (fchdir): Likewise.
22540         * tests/test-fchownat.c (fchownat): Likewise.
22541         * tests/test-fcntl.c (fcntl): Likewise.
22542         * tests/test-fdopendir.c (fdopendir): Likewise.
22543         * tests/test-fflush.c (fflush): Likewise.
22544         * tests/test-flock.c (flock): Likewise.
22545         * tests/test-floorf1.c (floorf): Likewise.
22546         * tests/test-floorl.c (floorl): Likewise.
22547         * tests/test-fnmatch.c (fnmatch): Likewise.
22548         * tests/test-fopen.c (fopen): Likewise.
22549         * tests/test-fprintf-posix.c (fprintf): Likewise.
22550         * tests/test-freopen.c (freopen): Likewise.
22551         * tests/test-frexp.c (frexp): Likewise.
22552         * tests/test-frexpl.c (frexpl): Likewise.
22553         * tests/test-fseek.c (fseek): Likewise.
22554         * tests/test-fseeko.c (fseeko): Likewise.
22555         * tests/test-fstatat.c (fstatat): Likewise.
22556         * tests/test-fsync.c (fsync): Likewise.
22557         * tests/test-ftell.c (ftell): Likewise.
22558         * tests/test-ftello.c (ftello): Likewise.
22559         * tests/test-futimens.c (futimens): Likewise.
22560         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22561         (gai_strerror): Likewise.
22562         * tests/test-getcwd.c (getcwd): Likewise.
22563         * tests/test-getdelim.c (getdelim): Likewise.
22564         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22565         * tests/test-getgroups.c (getgroups): Likewise.
22566         * tests/test-gethostname.c (gethostname): Likewise.
22567         * tests/test-getline.c (getline): Likewise.
22568         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22569         Likewise.
22570         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22571         * tests/test-glob.c (glob, globfree): Likewise.
22572         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22573         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22574         * tests/test-inet_pton.c (inet_pton): Likewise.
22575         * tests/test-isblank.c (isblank): Likewise.
22576         * tests/test-lchown.c (lchown): Likewise.
22577         * tests/test-ldexpl.c (ldexpl): Likewise.
22578         * tests/test-link.c (link): Likewise.
22579         * tests/test-linkat.c (linkat): Likewise.
22580         * tests/test-lseek.c (lseek): Likewise.
22581         * tests/test-lstat.c (lstat): Likewise.
22582         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22583         * tests/test-mbsinit.c (mbsinit): Likewise.
22584         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22585         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22586         * tests/test-memchr.c (memchr): Likewise.
22587         * tests/test-memcmp.c (memcmp): Likewise.
22588         * tests/test-memmem.c (memmem): Likewise.
22589         * tests/test-memrchr.c (memrchr): Likewise.
22590         * tests/test-mkdir.c (mkdir): Likewise.
22591         * tests/test-mkdirat.c (mkdirat): Likewise.
22592         * tests/test-mkfifo.c (mkfifo): Likewise.
22593         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22594         * tests/test-mknod.c (mknod): Likewise.
22595         * tests/test-nanosleep.c (nanosleep): Likewise.
22596         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22597         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22598         Likewise.
22599         * tests/test-open.c (open): Likewise.
22600         * tests/test-openat.c (openat): Likewise.
22601         * tests/test-perror.c (perror): Likewise.
22602         * tests/test-pipe2.c (pipe2): Likewise.
22603         * tests/test-poll.c (poll): Likewise.
22604         * tests/test-popen.c (popen, pclose): Likewise.
22605         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22606         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22607         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22608         (posix_spawn_file_actions_destroy)
22609         (posix_spawn_file_actions_addclose)
22610         (posix_spawn_file_actions_addopen)
22611         (posix_spawn_file_actions_adddup2): Likewise.
22612         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22613         * tests/test-pread.c (pread): Likewise.
22614         * tests/test-printf-posix.c (printf): Likewise.
22615         * tests/test-pty.c (openpty, forkpty): Likewise.
22616         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22617         (random_r): Likewise.
22618         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22619         * tests/test-readlink.c (readlink): Likewise.
22620         * tests/test-remove.c (remove): Likewise.
22621         * tests/test-rename.c (rename): Likewise.
22622         * tests/test-renameat.c (renameat): Likewise.
22623         * tests/test-rmdir.c (rmdir): Likewise.
22624         * tests/test-round1.c (round): Likewise.
22625         * tests/test-roundf1.c (roundf): Likewise.
22626         * tests/test-roundl.c (roundl): Likewise.
22627         * tests/test-setenv.c (setenv): Likewise.
22628         * tests/test-sigaction.c (sigaction): Likewise.
22629         * tests/test-sleep.c (sleep): Likewise.
22630         * tests/test-snprintf.c (snprintf): Likewise.
22631         * tests/test-sprintf-posix.c (sprintf): Likewise.
22632         * tests/test-stat.c (stat): Likewise.
22633         * tests/test-stpncpy.c (stpncpy): Likewise.
22634         * tests/test-strcasestr.c (strcasestr): Likewise.
22635         * tests/test-strchrnul.c (strchrnul): Likewise.
22636         * tests/test-strerror.c (strerror): Likewise.
22637         * tests/test-strsignal.c (strsignal): Likewise.
22638         * tests/test-strstr.c (strstr): Likewise.
22639         * tests/test-strtod.c (strtod): Likewise.
22640         * tests/test-strverscmp.c (strverscmp): Likewise.
22641         * tests/test-symlink.c (symlink): Likewise.
22642         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22643         * tests/test-times.c (times): Likewise.
22644         * tests/test-trunc1.c (trunc): Likewise.
22645         * tests/test-truncf1.c (truncf): Likewise.
22646         * tests/test-truncl.c (truncl): Likewise.
22647         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22648         Likewise.
22649         * tests/test-uname.c (uname): Likewise.
22650         * tests/test-unlink.c (unlink): Likewise.
22651         * tests/test-unlinkat.c (unlinkat): Likewise.
22652         * tests/test-unsetenv.c (unsetenv): Likewise.
22653         * tests/test-usleep.c (usleep): Likewise.
22654         * tests/test-utimensat.c (utimensat): Likewise.
22655         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22656         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22657         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22658         * tests/test-vprintf-posix.c (vprintf): Likewise.
22659         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22660         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22661         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22662         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22663         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22664         * tests/test-wcwidth.c (wcwidth): Likewise.
22665
22666         build: pull in conditional headers during GNULIB_POSIXCHECK
22667         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22668         definitions from any conditionally-included headers.
22669         * lib/stdlib.in.h (includes): Likewise.
22670         * lib/unistd.in.h (includes): Likewise.
22671
22672 2009-12-24  Bruno Haible  <bruno@clisp.org>
22673
22674         * tests/test-argv-iter.c: Include header file being tested immediately
22675         after config.h.
22676         * tests/test-base64.c: Likewise.
22677         * tests/test-flock.c: Likewise.
22678         * tests/test-fsync.c: Likewise.
22679         * tests/test-getdate.c: Likewise.
22680         * tests/test-getndelim2.c: Likewise.
22681         * tests/test-isfinite.c: Likewise.
22682         * tests/test-isinf.c: Likewise.
22683         * tests/test-strerror.c: Likewise.
22684         * tests/test-strsignal.c: Likewise.
22685
22686 2009-12-23  Eric Blake  <ebb9@byu.net>
22687
22688         unistd: work around cygwin bug
22689         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22690         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22691         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22692
22693 2009-12-23  Bruno Haible  <bruno@clisp.org>
22694
22695         localename: More tests.
22696         * tests/test-localename.c (SIZEOF): New macro.
22697         (categories): New variable.
22698         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22699         test_locale_name_default): Add test w.r.t. thread locale.
22700         (test_locale_name_thread): New function.
22701         (main): Invoke it.
22702
22703         localename: Make aware of thread locale.
22704         * lib/localename.h (gl_locale_name_thread): New declaration.
22705         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22706         behaviour with respect to thread locale.
22707         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22708         <langinfo.h>, glthread/lock.h.
22709         (SIZE_BITS): New macro.
22710         (string_hash): New function.
22711         (struct hash_node): New type.
22712         (HASH_TABLE_SIZE): New macro.
22713         (struniq_hash_table, struniq_lock): New variables.
22714         (struniq): New function.
22715         (gl_locale_name_thread): New function.
22716         (gl_locale_name): Invoke it.
22717         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22718         * modules/localename (Depends-on): Add lock.
22719         Reported by Mike Gran <spk121@yahoo.com>.
22720
22721 2009-12-23  Eric Blake  <ebb9@byu.net>
22722
22723         va-args: new module
22724         * modules/va-args: New file.
22725         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22726         * MODULES.html.sh (Core language properties): Mention it.
22727
22728         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22729         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22730         named alias for __attribute__((__unused__)).
22731         * lib/chown.c: Update client.
22732         * lib/fchmodat.c: Likewise.
22733         * lib/fts.c: Likewise.
22734         * lib/getdate.y: Likewise.
22735         * lib/getgroups.c: Likewise.
22736         * lib/getopt.c: Likewise.
22737         * lib/getugroups.c: Likewise.
22738         * lib/mkdir.c: Likewise.
22739         * lib/mkfifo.c: Likewise.
22740         * lib/mkfifoat.c: Likewise.
22741         * lib/mknod.c: Likewise.
22742         * lib/mknodat.c: Likewise.
22743         * lib/readlink.c: Likewise.
22744         * lib/se-context.in.h: Likewise.
22745         * lib/se-selinux.in.h: Likewise.
22746         * lib/sockets.c: Likewise.
22747         * lib/symlink.c: Likewise.
22748         * lib/symlinkat.c: Likewise.
22749         * lib/unicodeio.c: Likewise.
22750         * lib/unistr.h: Likewise.
22751         * tests/test-areadlink.c: Likewise.
22752         * tests/test-areadlinkat.c: Likewise.
22753         * tests/test-filenamecat.c: Likewise.
22754         * tests/test-fseeko.c: Likewise.
22755         * tests/test-ftello.c: Likewise.
22756         * tests/test-getdate.c: Likewise.
22757         * tests/test-getgroups.c: Likewise.
22758         * tests/test-gethostname.c: Likewise.
22759         * tests/test-quotearg.c: Likewise.
22760         * tests/test-version-etc.c: Likewise.
22761         * tests/test-xalloc-die.c: Likewise.
22762         * tests/test-xfprintf-posix.c: Likewise.
22763         * tests/test-xprintf-posix.c: Likewise.
22764         * tests/test-xvasprintf.c: Likewise.
22765
22766         tests: avoid compiler warnings
22767         * tests/test-fcntl.c (main): Delete unused parameters.
22768         * tests/test-freopen-safer.c (main): Likewise.
22769         * tests/test-xalloc-die.c (main): Mark unused parameters.
22770         * tests/test-fseeko.c (main): Likewise.
22771         * tests/test-ftello.c (main): Likewise.
22772         * tests/test-nanosleep.c (main): Avoid declaration warning.
22773         * tests/test-sleep.c (main): Likewise.
22774         * tests/test-unsetenv.c (main): Silence warning about string
22775         literal.
22776         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22777
22778 2009-12-23  Bruno Haible  <bruno@clisp.org>
22779
22780         * tests/test-localename.c (test_locale_name): New function, extracted
22781         from main. Also test mixed situations.
22782         (test_locale_name_posix, test_locale_name_environ,
22783         test_locale_name_default): New functions.
22784         (main): Invoke them all.
22785         * modules/localename-tests (configure.ac): Test for newlocale.
22786
22787 2009-12-23  Bruno Haible  <bruno@clisp.org>
22788
22789         unistd: Ensure getcwd gets declared before being overridden.
22790         * lib/unistd.in.h: Conditionally include <io.h>.
22791
22792 2009-12-22  Bruno Haible  <bruno@clisp.org>
22793
22794         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22795         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22796         (gl_WCHAR_H): Invoke it.
22797         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22798         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22799         Reported by Karl Berry <karl@freefriends.org>.
22800
22801 2009-12-22  Eric Blake  <ebb9@byu.net>
22802
22803         math, unistd: avoid redundant includes
22804         * lib/math.in.h (isnan): No need to re-include <math.h>.
22805         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22806
22807         getsubopt: work around cygwin bug
22808         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22809         avoid conflicting with system getsubopt.
22810         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22811         bug.
22812
22813         getopt: synchronize from glibc
22814         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22815         parameter order.  Adjust all callers.
22816         (_getopt_internal_r, main): Adjust quoting in error messages.
22817         Drop considerations for outdated POSIX 1003.2 error message.
22818         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22819         callers.
22820         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22821
22822         test-getopt: test stderr behavior
22823         * modules/getopt-posix-tests (Depends-on): Add dup2.
22824         * tests/test-getopt.c (ASSERT): Avoid stderr.
22825         (main): Move stderr to a temporary file.
22826         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22827         Instead, add parameter to inform caller if output occurred.
22828         (test_getopt): Adjust all existing tests to expect silence, and
22829         add new tests of leading ":".
22830         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22831         glibc shortcomings with leading "-:" or "+:" in optstring.
22832         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22833         Likewise.
22834         * doc/posix-functions/getopt.texi (getopt): Likewise.
22835
22836         test-getopt: enhance test
22837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22838         supports optind=0.
22839         * tests/test-getopt.c (OPTIND_MIN): Move...
22840         * tests/test-getopt.h (OPTIND_MIN): ...here.
22841         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22842         Require that optind=0 works, since modern BSD supports it in
22843         addition to optreset, and since coreutils expects it.
22844         (test_getopt_long_only): New test.
22845         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22846         glibc shortcomings with 'W;', and enforcement of optind=0.
22847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22848         Likewise.
22849
22850 2009-12-21  Bruno Haible  <bruno@clisp.org>
22851
22852         localename: Improvements for MacOS X and Cygwin.
22853         * lib/localename.h (gl_locale_name_environ): New declaration.
22854         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22855         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22856         (gl_locale_name_posix): Invoke it.
22857         (gl_locale_name_default): Add comments. Use Windows native API also on
22858         Cygwin.
22859
22860 2009-12-21  Bruno Haible  <bruno@clisp.org>
22861
22862         Update list of Win32 locale ids.
22863         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22864         (LANG_SAMI): Renamed from LANG_SAAMI.
22865         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22866         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22867         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22868         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22869         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22870         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22871         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22872         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22873         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22874         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22875         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22876         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22877         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22878         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22879         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22880         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22881         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22882         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22883         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22884         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22885         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22886         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22887         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22888         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22889         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22890         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22891         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22892         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22893         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22894         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22895         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22896         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22897         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22898         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22899         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22900         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22901         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22902         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22903         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22904         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22905         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22906         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22907         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22908         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22909         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22910         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22911         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22912         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22913         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22914         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22915         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22916         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22917         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22918         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22919         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22920         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22921         Add more languages and countries for Sami, Sorbian. Add more countries
22922         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22923         for Pashto. Change country for Syriac, Tswana.
22924
22925 2009-12-21  Eric Blake  <ebb9@byu.net>
22926
22927         test-utimens: avoid spurious failure
22928         * tests/test-chown.h (nap): Factor...
22929         * tests/nap.h: ...into new file.
22930         * tests/test-lchown.h (nap): Avoid duplication.
22931         * tests/test-utimens-common.h (nap): Use shared implementation,
22932         necessary on file systems with 1-second resolution.
22933         * modules/chown-tests (Files): Include new file.
22934         * modules/fdutimensat-tests (Files): Likewise.
22935         * modules/futimens-tests (Files): Likewise.
22936         * modules/lchown-tests (Files): Likewise.
22937         * modules/openat-tests (Files): Likewise.
22938         * modules/utimens-tests (Files): Likewise.
22939         * modules/utimensat-tests (Files): Likewise.
22940
22941 2009-12-19  Eric Blake  <ebb9@byu.net>
22942
22943         futimens, utimensat: work around Linux bug
22944         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22945         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22946         * lib/utimensat.c (rpl_utimensat): Work around it.
22947         * lib/futimens.c (rpl_futimens): Adjust comment.
22948
22949         utimens: work around Linux ctime bug
22950         * lib/utimens.c (detect_ctime_bug): New helper function.
22951         (update_timespec): Differentiate between workaround needed for
22952         this bug vs. what is needed for systems that lack utimensat.
22953         (fdutimens, lutimens): Work around bug.
22954
22955         utimens: check for ctime update
22956         * tests/test-utimens-common.h (check_ctime): Define.
22957         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22958         * tests/test-futimens.h (test_futimens): Likewise.
22959         * tests/test-lutimens.h (test_lutimens): Likewise.
22960         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22961         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22962
22963 2009-12-19  Bruno Haible  <bruno@clisp.org>
22964
22965         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22966         * tests/test-dprintf-posix2.sh: New file.
22967         * tests/test-dprintf-posix2.c: New file.
22968         * modules/dprintf-posix-tests (Files): Add them.
22969         (configure.ac): Check for getrlimit and setrlimit.
22970         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22971
22972 2009-12-19  Bruno Haible  <bruno@clisp.org>
22973
22974         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22975         * tests/test-fprintf-posix3.sh: New file.
22976         * tests/test-fprintf-posix3.c: New file.
22977         * modules/fprintf-posix-tests (Files): Add them.
22978         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22979
22980 2009-12-19  Eric Blake  <ebb9@byu.net>
22981
22982         dirfd: fix prototype
22983         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22984         * lib/dirfd.c (dirfd): Likewise.
22985
22986         canonicalize: reduce memory usage
22987         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22988         allocation to size.
22989         Reported by Solar Designer <solar@openwall.com>.
22990
22991 2009-12-19  Bruno Haible  <bruno@clisp.org>
22992
22993         New module attribute 'Applicability'.
22994         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22995         * gnulib-tool: New option --extract-applicability.
22996         (func_usage): Document it.
22997         (sed_extract_prog): Recognize it.
22998         (func_get_applicability): New function.
22999         (func_import): Generalize handling of 'link-warning' module.
23000         * modules/link-warning (Applicability): New section.
23001         * modules/arg-nonnull (Applicability): New section.
23002         Repoted by Simon Josefsson <simon@josefsson.org>.
23003
23004 2009-12-19  Bruno Haible  <bruno@clisp.org>
23005
23006         fflush: tweak
23007         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
23008         * lib/fseeko.c (rpl_fseeko): Likewise.
23009
23010 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
23011
23012         * lib/gl_list.h: Fix typo in comment.
23013
23014 2009-12-16  Eric Blake  <ebb9@byu.net>
23015
23016         fcntl: use to simplify other modules
23017         * modules/cloexec (Depends-on): Add fcntl.
23018         * modules/fchdir (Depends-on): Likewise.
23019         * modules/fd-safer-flag (Depends-on): Likewise.
23020         * modules/unistd-safer (Depends-on): Likewise.
23021         * modules/dup3 (configure.ac): Set module indicator.
23022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
23023         missing.
23024         * lib/fchdir.c (_gl_register_dup): Fix comment.
23025         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
23026         * lib/dup-safer.c (dup_safer): Likewise.
23027         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
23028         * lib/dup3.c (dup3): Likewise.
23029         * tests/test-fchdir.c (main): Enhance test.
23030         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
23031
23032         fcntl: port portions of fcntl to mingw
23033         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
23034         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
23035         replacement for mingw.
23036         * modules/fcntl (Description): Update.
23037         (Depends-on): Add dup2.
23038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
23039         * modules/fcntl-h (Makefile.am): Substitute it.
23040         * lib/fcntl.in.h (fcntl): Update declaration.
23041         (F_DUPFD, F_GETFD): New macros, when needed.
23042         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
23043         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
23044         * tests/test-fcntl.c (check_flags, main): Enhance test for items
23045         we now guarantee.
23046
23047         fcntl: work around cygwin bug in F_DUPFD
23048         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
23049         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
23050         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
23051         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
23052         * doc/posix-functions/fcntl.texi (fcntl): Document it.
23053
23054         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
23055         * modules/fcntl (Files): List new files.
23056         (configure.ac): Run a test.
23057         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
23058         * lib/fcntl.c (rpl_fcntl): Likewise.
23059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
23060         (gl_FCNTL_H): Always replace fcntl.h.
23061         * modules/fcntl-h (Makefile.am): Substitute witnesses.
23062         * lib/fcntl.in.h (fcntl): Declare replacement.
23063         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
23064         needed, plus a witness.
23065         * doc/posix-functions/fcntl.texi (fcntl): Document this.
23066         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
23067         * tests/test-fcntl.c: New file.
23068         * modules/fcntl-tests: Likewise.
23069
23070         binary-io: avoid potential compilation warning
23071         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
23072         directives.
23073
23074         fflush: avoid compilation error on NetBSD
23075         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
23076         between off_t and fpos_t, since the latter is sometimes a struct.
23077         * lib/fseeko.c (rpl_fseeko): Likewise.
23078         Reported by Alexander Nasonov <alnsn@yandex.ru>.
23079
23080 2009-12-15  Eric Blake  <ebb9@byu.net>
23081
23082         fcntl-h, stdio, sys_ioctl: fix declarations
23083         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
23084         function must not take arguments.
23085         * lib/sys_ioctl.in.h (ioctl): Likewise.
23086         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
23087         (open): Add a link warning.
23088
23089 2009-12-15  Jim Meyering  <meyering@redhat.com>
23090
23091         areadlink, areadlink-with-size: relax license to LGPLv2+
23092         * modules/areadlink (License): Relax to LGPLv2+.
23093         * modules/areadlink-with-size (License): Likewise.
23094
23095 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
23096             Bruno Haible  <bruno@clisp.org>
23097
23098         *printf: Fix memory leak.
23099         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
23100         * lib/vfprintf.c (vfprintf): Likewise.
23101         * lib/dprintf.c (dprintf): Likewise.
23102         * lib/vdprintf.c (vdprintf): Likewise.
23103
23104 2009-12-14  Eric Blake  <ebb9@byu.net>
23105
23106         accept4: adjust module dependencies
23107         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
23108
23109         utimens: one more try at avoiding compiler warning
23110         * lib/utimens.c (lutimens): Lower scope of result.
23111
23112 2009-12-13  Bruno Haible  <bruno@clisp.org>
23113
23114         Move the malloc checking from module 'list' to new module 'xlist'.
23115         * modules/xlist: New file.
23116         * lib/gl_xlist.h: New file.
23117         * lib/gl_xlist.c: New file.
23118         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
23119         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
23120         gl_list_add_last, gl_list_add_before, gl_list_add_after,
23121         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
23122         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
23123         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
23124         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
23125         gl_sortedlist_nx_add): New declarations.
23126         (struct gl_list_implementation): Rename and change methods accordingly.
23127         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
23128         (gl_list_nx_create): Renamed from gl_list_create.
23129         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23130         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23131         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23132         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23133         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23134         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23135         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23136         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23137         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
23138         gl_list_create_empty.
23139         (gl_list_nx_create): Renamed from gl_list_create.
23140         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
23141         (gl_list_nx_set_at): Renamed from gl_list_set_at.
23142         (gl_list_nx_add_first): Renamed from gl_list_add_first.
23143         (gl_list_nx_add_last): Renamed from gl_list_add_last.
23144         (gl_list_nx_add_before): Renamed from gl_list_add_before.
23145         (gl_list_nx_add_after): Renamed from gl_list_add_after.
23146         (gl_list_nx_add_at): Renamed from gl_list_add_at.
23147         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
23148         * lib/gl_array_list.c: Don't include xalloc.h.
23149         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
23150         NULL upon out-of-memory.
23151         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
23152         out-of-memory.
23153         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
23154         Change return type to 'int'.
23155         (gl_array_nx_set_at): Renamed from gl_array_set_at.
23156         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23157         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
23158         upon out-of-memory.
23159         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
23160         upon out-of-memory.
23161         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
23162         upon out-of-memory.
23163         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
23164         upon out-of-memory.
23165         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
23166         out-of-memory.
23167         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
23168         Update.
23169         (gl_array_list_implementation): Update.
23170         * lib/gl_carray_list.c: Don't include xalloc.h.
23171         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
23172         Return NULL upon out-of-memory.
23173         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
23174         out-of-memory.
23175         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
23176         Change return type to 'int'.
23177         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
23178         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
23179         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
23180         upon out-of-memory.
23181         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
23182         upon out-of-memory.
23183         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
23184         out-of-memory.
23185         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
23186         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
23187         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
23188         Update.
23189         (gl_carray_list_implementation): Update.
23190         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
23191         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
23192         gl_linked_create_empty. Return NULL upon out-of-memory.
23193         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
23194         out-of-memory.
23195         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
23196         Change return type to 'int'. Return -1 upon out-of-memory.
23197         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
23198         out-of-memory.
23199         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
23200         upon out-of-memory.
23201         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
23202         upon out-of-memory.
23203         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
23204         NULL upon out-of-memory.
23205         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
23206         upon out-of-memory.
23207         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
23208         out-of-memory.
23209         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
23210         Update.
23211         * lib/gl_linked_list.c: Don't include xalloc.h.
23212         (gl_linked_list_implementation): Update.
23213         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
23214         (add_to_bucket): Change return type to 'int'.
23215         (gl_linkedhash_list_implementation): Update.
23216         * lib/gl_anytree_list1.h (free_subtree): New function.
23217         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
23218         gl_tree_create_empty. Return NULL upon out-of-memory.
23219         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
23220         Change return type to 'int'. Return -1 upon out-of-memory.
23221         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
23222         out-of-memory.
23223         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
23224         (gl_tree_remove_node): New function, moved here from
23225         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
23226         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
23227         Update.
23228         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
23229         malloc, not xmalloc. Return NULL upon out-of-memory.
23230         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23231         out-of-memory.
23232         (gl_tree_remove_node_from_tree): New function, extracted from
23233         gl_tree_remove_node.
23234         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23235         upon out-of-memory.
23236         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23237         out-of-memory.
23238         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23239         upon out-of-memory.
23240         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23241         upon out-of-memory.
23242         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23243         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
23244         not xmalloc. Return NULL upon out-of-memory.
23245         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
23246         out-of-memory.
23247         (gl_tree_remove_node_from_tree): New function, extracted from
23248         gl_tree_remove_node.
23249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
23250         upon out-of-memory.
23251         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
23252         out-of-memory.
23253         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
23254         upon out-of-memory.
23255         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
23256         upon out-of-memory.
23257         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
23258         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
23259         gl_anytree_list1.h before gl_anyavltree_list2.h.
23260         (gl_avltree_list_implementation): Update.
23261         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
23262         gl_anytree_list1.h before gl_anyavltree_list2.h.
23263         (gl_rbtree_list_implementation): Update.
23264         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
23265         Change return type to 'int'. Return -1 upon out-of-memory. Use
23266         __builtin_expect.
23267         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
23268         (gl_avltreehash_list_implementation): Update.
23269         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
23270         (gl_rbtreehash_list_implementation): Update.
23271         * modules/array-list (Depends-on): Remove xalloc.
23272         * modules/carray-list (Depends-on): Likewise.
23273         * modules/linked-list (Depends-on): Likewise.
23274         * modules/linkedhash-list (Depends-on): Likewise.
23275         * modules/avltree-list (Depends-on): Likewise.
23276         * modules/rbtree-list (Depends-on): Likewise.
23277         * modules/avltreehash-list (Depends-on): Likewise.
23278         * modules/rbtreehash-list (Depends-on): Likewise.
23279
23280         * modules/xsublist: New file.
23281         * lib/gl_xsublist.h: New file.
23282         * lib/gl_xsublist.c: New file.
23283         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
23284         (gl_sublist_nx_create): New declaration.
23285         * lib/gl_sublist.c: Don't include xalloc.h.
23286         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
23287         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
23288         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
23289         Change return type to 'int'. Return -1 upon out-of-memory.
23290         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
23291         upon out-of-memory.
23292         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
23293         NULL upon out-of-memory.
23294         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
23295         upon out-of-memory.
23296         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
23297         NULL upon out-of-memory.
23298         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
23299         NULL upon out-of-memory.
23300         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
23301         upon out-of-memory.
23302         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
23303         (gl_sublist_list_implementation): Update.
23304         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
23305         upon out-of-memory.
23306         * modules/sublist (Depends-on): Remove xalloc.
23307
23308         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
23309         * tests/test-carray_list.c: Likewise.
23310         * tests/test-linked_list.c: Likewise.
23311         * tests/test-linkedhash_list.c: Likewise.
23312         * tests/test-avltree_list.c: Likewise.
23313         * tests/test-rbtree_list.c: Likewise.
23314         * tests/test-avltreehash_list.c: Likewise.
23315         * tests/test-rbtreehash_list.c: Likewise.
23316         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
23317         * modules/carray-list-tests (Makefile.am): Likewise.
23318         * modules/linked-list-tests (Makefile.am): Likewise.
23319         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23320         * modules/avltree-list-tests (Makefile.am): Likewise.
23321         * modules/rbtree-list-tests (Makefile.am): Likewise.
23322         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23323         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23324
23325         * NEWS: Mention the changes.
23326
23327         * lib/clean-temp.c: Include gl_xlist.h.
23328         * modules/clean-temp (Depends-on): Add xlist.
23329
23330         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23331         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23332
23333         * tests/test-array_oset.c: Include gl_xlist.h.
23334         * modules/array-oset-tests (Depends-on): Add xlist.
23335
23336         Reported by José E. Marchesi <jemarch@gnu.org>.
23337
23338 2009-12-13  Bruno Haible  <bruno@clisp.org>
23339
23340         Move the malloc checking from module 'oset' to new module 'xoset'.
23341         * modules/xoset: New file.
23342         * lib/gl_xoset.h: New file.
23343         * lib/gl_xoset.c: New file.
23344         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23345         declarations.
23346         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23347         (struct gl_oset_implementation): Rename and change methods accordingly.
23348         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23349         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23350         'int'. Mark as __warn_unused_result__.
23351         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23352         gl_oset_create_empty.
23353         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23354         'int'.
23355         * lib/gl_array_oset.c: Don't include xalloc.h.
23356         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23357         malloc, not xmalloc.
23358         (grow): Change return type to 'int'. Don't call xalloc_die.
23359         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23360         to 'int'.
23361         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23362         'int'.
23363         (gl_array_oset_implementation): Update.
23364         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23365         gl_tree_create_empty.
23366         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23367         'int'.
23368         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23369         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23370         xmalloc.
23371         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23372         not xmalloc.
23373         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23374         xmalloc.
23375         (gl_avltree_oset_implementation): Update.
23376         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23377         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23378         xmalloc.
23379         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23380         not xmalloc.
23381         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23382         xmalloc.
23383         (gl_rbtree_oset_implementation): Update.
23384         * modules/array-oset (Depends-on): Remove xalloc.
23385         * modules/avltree-oset (Depends-on): Likewise.
23386         * modules/rbtree-oset (Depends-on): Likewise.
23387         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23388         * tests/test-avltree_oset.c: Likewise.
23389         * tests/test-rbtree_oset.c: Likewise.
23390         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23391         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23392         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23393         * NEWS: Mention the change.
23394
23395 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23396
23397         maint.mk: allow a project to override release-prep commands
23398         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23399         commands into a new rule.
23400         (release-prep): New rule.
23401         (release-prep-hook): New overridable variable.
23402
23403 2009-12-13  Bruno Haible  <bruno@clisp.org>
23404
23405         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23406
23407 2009-12-13  Jim Meyering  <meyering@redhat.com>
23408
23409         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23410         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23411
23412 2009-12-12  Bruno Haible  <bruno@clisp.org>
23413
23414         duplocale: Tweak.
23415         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23416
23417 2009-12-12  Karl Berry  <karl@gnu.org>
23418
23419         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23420
23421 2009-12-12  Bruno Haible  <bruno@clisp.org>
23422
23423         * m4/po.m4: Undo incorrect untabification.
23424
23425 2009-12-12  Bruno Haible  <bruno@clisp.org>
23426
23427         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23428         * modules/c-strtod (Depends-on): Add locale.
23429         * modules/c-strtold (Depends-on): Likewise.
23430
23431 2009-12-12  Bruno Haible  <bruno@clisp.org>
23432
23433         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23434
23435 2009-12-11  Eric Blake  <ebb9@byu.net>
23436
23437         setenv: relax requirement in light of POSIX ruling
23438         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23439         not NULL.
23440         * tests/test-setenv.c (main): Relax test.
23441         * tests/test-unsetenv.c (main): Likewise.
23442         * doc/posix-functions/setenv.texi (setenv): Document this.
23443         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23444
23445 2009-12-11  Bruno Haible  <bruno@clisp.org>
23446
23447         New module 'fd-safer-flag'.
23448         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23449         * lib/dup-safer.c (dup_safer_flag): Remove function.
23450         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23451         * lib/fd-safer.c (fd_safer_flag): Remove function.
23452         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23453         * modules/cloexec (configure.ac): Drop indicator macro.
23454         * modules/fd-safer-flag: New file.
23455         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23456         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23457         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23458
23459 2009-12-11  Bruno Haible  <bruno@clisp.org>
23460
23461         Tests for module 'nl_langinfo'.
23462         * modules/nl_langinfo-tests: New file.
23463         * tests/test-nl_langinfo.sh: New file.
23464         * tests/test-nl_langinfo.c: New file.
23465
23466         New module 'nl_langinfo'.
23467         * lib/nl_langinfo.c: New file.
23468         * m4/nl_langinfo.m4: New file.
23469         * modules/nl_langinfo: New file.
23470         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23471
23472 2009-12-11  Bruno Haible  <bruno@clisp.org>
23473
23474         Tests for module 'langinfo'.
23475         * modules/langinfo-tests: New file.
23476         * tests/test-langinfo.c: New file.
23477
23478         New module 'langinfo'.
23479         * lib/langinfo.in.h: New file.
23480         * m4/langinfo_h.m4: New file.
23481         * modules/langinfo: New file.
23482         * doc/posix-headers/langinfo.texi: Mention the new module.
23483
23484 2009-12-11  Bruno Haible  <bruno@clisp.org>
23485
23486         * lib/config.charset: Untabify.
23487
23488 2009-12-11  Bruno Haible  <bruno@clisp.org>
23489
23490         * modules/unistd-safer (configure.ac): Drop indicator macro.
23491
23492 2009-12-11  Bruno Haible  <bruno@clisp.org>
23493
23494         Move pipe2-safer code to its own file.
23495         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23496         * lib/pipe-safer.c (pipe2_safer): Remove function.
23497         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23498         (Makefile.am): Add it to lib_SOURCES.
23499
23500 2009-12-10  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23503
23504 2009-12-10  Bruno Haible  <bruno@clisp.org>
23505
23506         Declare which arguments expect non-NULL values, for GCC and clang.
23507         * build-aux/arg-nonnull.h: New file.
23508         * modules/arg-nonnull: New file.
23509         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23510         (inet_ntop, inet_pton): Use it.
23511         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23512         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23513         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23514         (open, openat): Use it.
23515         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23516         (fnmatch): Use it.
23517         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23518         (getopt, getopt_long, getopt_long_only): Use it.
23519         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23520         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23521         Use it.
23522         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23523         (iconv_open): Use it.
23524         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23525         (strtoimax, strtoumax): Use it.
23526         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23527         (duplocale): Use it.
23528         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23529         (frexp, frexpl): Use it.
23530         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23531         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23532         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23533         (tsearch, tfind, tdelete, twalk): Use it.
23534         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23535         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23536         sigpending): Use it.
23537         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23538         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23539         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23540         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23541         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23542         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23543         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23544         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23545         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23546         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23547         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23548         Use it.
23549         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23550         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23551         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23552         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23553         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23554         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23555         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23556         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23557         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23558         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23559         strtoull, unsetenv): Use it.
23560         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23561         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23562         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23563         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23564         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23565         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23566         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23567         (strcasecmp, strncasecmp): Use it.
23568         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23569         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23570         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23571         rpl_setsockopt): Use it.
23572         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23573         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23574         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23575         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23576         (gettimeofday): Use it.
23577         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23578         (times): Use it.
23579         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23580         (uname): Use it.
23581         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23582         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23583         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23584         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23585         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23586         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23587         unlinkat, write): Use it.
23588         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23589         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23590         * lib/argv-iter.h: Include arg-nonnull.h.
23591         (_ATTRIBUTE_NONNULL_): Remove macro.
23592         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23593         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23594         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23595         optimization.
23596         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23597         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23598         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23599         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23600         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23601         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23602         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23603         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23604         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23605         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23606         * modules/dirent (Depends-on): Add arg-nonnull.
23607         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23608         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23609         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23610         * modules/fnmatch (Depends-on): Add arg-nonnull.
23611         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23612         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23613         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23614         * modules/glob (Depends-on): Add arg-nonnull.
23615         (Makefile.am): Insert arg-nonnull.h into glob.h.
23616         * modules/iconv_open (Depends-on): Add arg-nonnull.
23617         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23618         * modules/inttypes (Depends-on): Add arg-nonnull.
23619         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23620         * modules/locale (Depends-on): Add arg-nonnull.
23621         (Makefile.am): Insert arg-nonnull.h into locale.h.
23622         * modules/math (Depends-on): Add arg-nonnull.
23623         (Makefile.am): Insert arg-nonnull.h into math.h.
23624         * modules/netdb (Depends-on): Add arg-nonnull.
23625         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23626         * modules/search (Depends-on): Add arg-nonnull.
23627         (Makefile.am): Insert arg-nonnull.h into search.h.
23628         * modules/signal (Depends-on): Add arg-nonnull.
23629         (Makefile.am): Insert arg-nonnull.h into signal.h.
23630         * modules/spawn (Depends-on): Add arg-nonnull.
23631         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23632         * modules/stdio (Depends-on): Add arg-nonnull.
23633         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23634         * modules/stdlib (Depends-on): Add arg-nonnull.
23635         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23636         * modules/string (Depends-on): Add arg-nonnull.
23637         (Makefile.am): Insert arg-nonnull.h into string.h.
23638         * modules/strings (Depends-on): Add arg-nonnull.
23639         (Makefile.am): Insert arg-nonnull.h into strings.h.
23640         * modules/sys_socket (Depends-on): Add arg-nonnull.
23641         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23642         * modules/sys_stat (Depends-on): Add arg-nonnull.
23643         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23644         * modules/sys_time (Depends-on): Add arg-nonnull.
23645         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23646         * modules/sys_times (Depends-on): Add arg-nonnull.
23647         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23648         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23649         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23650         * modules/time (Depends-on): Add arg-nonnull.
23651         (Makefile.am): Insert arg-nonnull.h into time.h.
23652         * modules/unistd (Depends-on): Add arg-nonnull.
23653         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23654         * modules/wchar (Depends-on): Add arg-nonnull.
23655         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23656         * modules/argv-iter (Depends-on): Add arg-nonnull.
23657         * tests/test-canonicalize.c (null_ptr): New function.
23658         (main): Use it.
23659         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23660         (main): Use it.
23661         * tests/test-memmem.c (null_ptr): New function.
23662         (main): Use it.
23663         Reported by Jim Meyering.
23664
23665 2009-12-10  Bruno Haible  <bruno@clisp.org>
23666
23667         Use spaces for indentation, not tabs.
23668         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23669         * m4/*.m4: Untabify.
23670         * build-aux/*.h: Untabify.
23671         * tests/**/*.[hc]: Untabify.
23672         * README: New section "Indent with spaces, not TABs", based on
23673         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23674         * NEWS: Mention the change.
23675
23676 2009-12-10  Bruno Haible  <bruno@clisp.org>
23677
23678         pty test: Fix link error.
23679         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23680         test_pty_LDADD.
23681
23682 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23683
23684         * modules/pty: New file.
23685         * modules/pty-tests: New file.
23686         * m4/pty.m4: New file.
23687         * tests/test-pty.c: New file.
23688         * doc/glibc-headers/pty.texi: Modified.
23689         * doc/glibc-functions/forkpty.texi: Modified.
23690         * doc/glibc-functions/openpty.texi: Modified.
23691
23692 2009-12-10  Bruno Haible  <bruno@clisp.org>
23693
23694         Avoid syntax error in C++ mode.
23695         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23696
23697 2009-12-10  Bruno Haible  <bruno@clisp.org>
23698
23699         Use sed with option -e.
23700         * gnulib-tool (func_version, func_emit_copyright_notice,
23701         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23702         option -e to sed.
23703         * modules/link-warning (Makefile.am): Likewise.
23704
23705 2009-12-10  Jim Meyering  <meyering@redhat.com>
23706
23707         mgetgroups: do not write bytes beyond end of malloc'd buffer
23708         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23709         username, we call getgroups with a one-element-shorter buffer,
23710         but still told it the length was original, max_n_groups.
23711
23712 2009-12-09  Eric Blake  <ebb9@byu.net>
23713
23714         cloexec: relax license
23715         * modules/cloexec (Maintainer): Add myself.
23716         (License): Use LGPL, not GPL.
23717
23718         link-warning: optimize generation
23719         * modules/link-warning (Makefile.am): Reduce process usage.
23720
23721 2009-12-09  Bruno Haible  <bruno@clisp.org>
23722
23723         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23724         workaround was added on 2009-11-17.
23725
23726 2009-12-09  Jim Meyering  <meyering@redhat.com>
23727             Bruno Haible  <bruno@clisp.org>
23728
23729         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23730         * modules/link-warning (Makefile.am): Make the comment-removing sed
23731         command more robust in the face of bootstrap-prepended comment lines.
23732
23733 2009-12-09  Bruno Haible  <bruno@clisp.org>
23734
23735         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23736         most one group.
23737
23738 2009-12-09  Simon Josefsson <simon@josefsson.org>
23739             Bruno Haible  <bruno@clisp.org>
23740
23741         * build-aux/link-warning.h: Add copyright notice.
23742         * modules/link-warning (Makefile.am): Generate link-warning.h from
23743         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23744         * NEWS: Mention change in link-warning module.
23745         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23746         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23747         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23748         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23749         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23750         * modules/math (Makefile.am): Add dependency to math.h.
23751         * modules/search (Makefile.am): Add dependency to search.h.
23752         * modules/signal (Makefile.am): Add dependency to signal.h.
23753         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23754         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23755         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23756         * modules/string (Makefile.am): Add dependency to string.h.
23757         * modules/strings (Makefile.am): Add dependency to strings.h.
23758         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23759         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23760         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23761         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23762         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23763         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23764         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23765         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23766         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23767
23768 2009-12-09  Bruno Haible  <bruno@clisp.org>
23769
23770         fchdir: Optimize away rpl_fstat when possible.
23771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23772         REPLACE_OPEN_DIRECTORY.
23773         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23774
23775 2009-12-09  Bruno Haible  <bruno@clisp.org>
23776
23777         * lib/fchdir.c: Update comment.
23778
23779 2009-12-09  Bruno Haible  <bruno@clisp.org>
23780
23781         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23782
23783 2009-12-08  Eric Blake  <ebb9@byu.net>
23784
23785         fchdir: avoid memory leak on re-registration.
23786         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23787
23788 2009-12-08  Jim Meyering  <meyering@redhat.com>
23789
23790         init.sh: avoid Solaris 10 /bin/sh portability problem
23791         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23792         sourced script:
23793           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23794           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23795           bar
23796         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23797         and two tests used that idiom.
23798         * tests/init.sh: Update suggested usage comments.
23799         (path_prepend_): New function, to be used in place
23800         of the --src-path=DIR option.
23801         (setup_): Move PATH-prepending code into path_prepend_.
23802         * tests/test-pread.sh: Adapt to new usage.
23803         * tests/test-xalloc-die.sh: Likewise.
23804
23805 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23806
23807         * doc/gnulib.texi (Glibc pty.h): Add.
23808         * doc/glibc-functions/forkpty.texi: Add.
23809         * doc/glibc-functions/openpty.texi: Add.
23810         Suggested by Bruno Haible.
23811
23812 2009-12-08  Eric Blake  <ebb9@byu.net>
23813
23814         fchdir: fix logic bugs
23815         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23816         * tests/test-fchdir.c (main): Enhance test.
23817         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23818         is in use.
23819
23820         dup2: fix logic bugs
23821         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23822         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23823         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23824         exists.
23825         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23826
23827 2009-12-07  Eric Blake  <ebb9@byu.net>
23828
23829         unlink: fix m4 detection
23830         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23831
23832         unistd-safer: add unit test
23833         * modules/unistd-safer-tests: New file.
23834         * tests/test-dup-safer.c: Likewise.
23835         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23836         * tests/test-dup2.c (setmode): Likewise.
23837         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23838
23839         cloexec: preserve text vs. binary across dup_cloexec
23840         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23841         mode.
23842         * modules/dup2-tests (Depends-on): Add binary-io.
23843         * modules/cloexec-tests (Depends-on): Likewise.
23844         * tests/test-dup2.c (setmode, is_mode): New helpers.
23845         (main): Add tests that translation mode is preserved.
23846         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23847         Reported by Bruno Haible.
23848
23849         mgetgroups: reduce duplicate listings
23850         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23851         resulting array.
23852         * tests/test-chown.h (test_chown): Simplify client.
23853         * tests/test-lchown.h (test_lchown): Likewise.
23854
23855 2009-12-06  Bruno Haible  <bruno@clisp.org>
23856
23857         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23858         value.
23859
23860 2009-12-06  Bruno Haible  <bruno@clisp.org>
23861
23862         * lib/progname.c: Include stdio.h, stdlib.h.
23863         (set_program_name): Reject a NULL argument.
23864
23865 2009-12-05  Eric Blake  <ebb9@byu.net>
23866
23867         pipe2-safer: new module
23868         * modules/pipe2-safer: New file.
23869         * lib/unistd-safer.h (pipe2_safer): New prototype.
23870         * lib/unistd--.h (pipe2): New wrapper.
23871         * lib/pipe-safer.c (pipe2_safer): New function.
23872         * modules/pipe (Depends-on): Add pipe2-safer.
23873         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23874
23875         stdlib-safer: preserve cloexec flag for mkostemp[s]
23876         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23877         fd_safer_flag.
23878
23879         unistd-safer: allow preservation of cloexec status via flag
23880         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23881         prototypes.
23882         * lib/dup-safer.c (dup_safer_flag): New function.
23883         * lib/fd-safer.c (fd_safer_flag): Likewise.
23884         * modules/cloexec (configure.ac): Set witness.
23885
23886         test-dup2: enhance test
23887         * modules/dup2-tests (Depends-on): Add cloexec.
23888         * tests/test-dup2.c (main): Enhance test.
23889
23890         cloexec: add dup_cloexec
23891         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23892         header and comments.
23893         * lib/cloexec.c (set_cloexec_flag): Add comments.
23894         (dup_cloexec): New function, with mingw implementation borrowed
23895         from...
23896         * lib/w32spawn.h (dup_noinherit): ...here.
23897         * modules/execute (Depends-on): Add cloexec.
23898         * modules/pipe (Depends-on): Likewise.
23899         * modules/cloexec (Depends-on): Add dup2.
23900         * modules/cloexec-tests (Files): New file.
23901         * tests/test-cloexec.c: Likewise.
23902
23903         test-xalloc-die: fix test for mingw
23904         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23905         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23906         directory and .exe suffix off argv[0] output.
23907
23908         test-fseeko: fix test for mingw
23909         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23910         than undefining fseek, so test will pass on mingw.
23911
23912 2009-12-05  Bruno Haible  <bruno@clisp.org>
23913
23914         * lib/progname.h (set_program_name): Clarify specification.
23915         * lib/progname.c (set_program_name): Likewise.
23916         Reported by Jim Meyering.
23917
23918 2009-12-05  Jim Meyering  <meyering@redhat.com>
23919
23920         maint.mk: backslash-escape parens in default regexp
23921         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23922         backslash-escape the literal parentheses.
23923
23924         maint.mk: news-date-check: use grep -E
23925         * top/maint.mk (today): Define a Make variable, not a...
23926         (news-date-check): ...shell variable.
23927         (news-date-regexp): Use the Make variable.
23928         Use grep's -E option.  Change the failing diagnostic to mention
23929         the variable, $(news-date-regexp).
23930
23931 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23932
23933         maintainer-makefile: allow customization of NEWS entry format
23934         * top/maint.mk (news-date-regexp): New overridable variable.
23935         (news-date-check): Use it.
23936
23937 2009-12-04  Eric Blake  <ebb9@byu.net>
23938
23939         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23940         * lib/mgetgroups.h (xgetgroups): New prototype.
23941         * lib/mgetgroups.c (xgetgroups): New wrapper.
23942         (mgetgroups): Handle ENOSYS.
23943         * modules/mgetgroups (Depends-on): Add realloc.
23944         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23945
23946         mgetgroups: avoid argument promotion issues with -1
23947         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23948         for invalid gid_t.
23949         * tests/test-chown.h (getegid, test_chown): Likewise.
23950         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23951
23952 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23953
23954         exclude: Fix header file problems.
23955         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23956
23957 2009-12-01  Jim Meyering  <meyering@redhat.com>
23958
23959         fts: fts_open: do not let an empty string cause immediate failure
23960         This is required in support of GNU rm, for which the command
23961         "rm A '' B" must process and remove both A and B, in spite of
23962         the empty string argument.
23963         * lib/fts.c (fts_open): Do not let the presence of an empty string
23964         cause fts_open to fail immediately.  Most fts-using tools must be
23965         able to process all arguments, in order, and can be expected to
23966         diagnose such arguments themselves.
23967
23968 2009-11-30  Eric Blake  <ebb9@byu.net>
23969
23970         utimens: fix compilation error
23971         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23972         Declare variable at right scope.
23973
23974 2009-11-29  Jim Meyering  <meyering@redhat.com>
23975
23976         bootstrap: handle perl-5.11's changed --version output
23977         * build-aux/bootstrap (get_version): Handle perl separately,
23978         since perl-5.11's --version output is different.
23979
23980 2009-11-28  Jim Meyering  <meyering@redhat.com>
23981
23982         userspec: depend on the inttostr module, too
23983         * modules/userspec (Depends-on): Add inttostr.
23984
23985         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23986         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23987         number of MAXUID when it evaluates to (uid_t) -1.
23988         Likewise for group ID.  Reported by Matt McCutchen in
23989         <http://savannah.gnu.org/bugs/?28113>
23990
23991         userspec: reformat to use spaces, not TABs
23992         * lib/userspec.c: Expand TABs to spaces.
23993         Add Emacs' "indent-tabs-mode: nil" hint.
23994
23995 2009-11-27  Eric Blake  <ebb9@byu.net>
23996
23997         getopt-gnu: flush out another BSD bug
23998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23999         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
24000         flush out BSD bug.
24001         * tests/test-getopt.h (test_getopt): End lists with NULL.
24002         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24003         (test_getopt_long_posix): Enhance test.
24004         * modules/getopt-posix-tests (Depends-on): Add stdbool.
24005         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
24006         getopt-gnu.
24007         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24008         Likewise.
24009
24010 2009-11-27  Simon Josefsson  <simon@josefsson.org>
24011
24012         * modules/idpriv-droptemp-tests (Notice): Fix text.
24013
24014 2009-11-27  Jim Meyering  <meyering@redhat.com>
24015
24016         test-xalloc-die: avoid spurious failure due to libtool argv difference
24017         In a libtool-enabled project, this test would fail due to a difference
24018         in the emitted program name, e.g.,
24019         -test-xalloc-die: memory exhausted
24020         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
24021         Use program to avoid that.
24022         * modules/xalloc-die-tests (Depends-on): Add progname.
24023         * tests/test-xalloc-die.c: Include progname.h".
24024         (program_name): Remove decl.
24025         (main): Call set_program_name.
24026         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
24027
24028 2009-11-26  Richard Jones  <rjones@redhat.com>
24029
24030         w32sock: leave win32 error in place.
24031         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
24032
24033 2009-11-26  Eric Blake  <ebb9@byu.net>
24034
24035         init.sh: suggest to use skip_ and fail_ functions in comments
24036         * tests/init.sh: Add a sentence.
24037
24038 2009-11-25  Bruno Haible  <bruno@clisp.org>
24039
24040         init.sh: add documentation in comments
24041         * tests/init.sh: Add some developer and user documentation.
24042
24043 2009-11-26  Jim Meyering  <meyering@redhat.com>
24044
24045         init.sh: accommodate even those who specify bogus srcdir manually
24046         * tests/init.sh: Normally, srcdir is guaranteed by automake and
24047         configure-time tests to be sanitized, so that there is no need to
24048         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
24049         (with no double quotes) suffices.  However, since tests may be
24050         invoked manually, and since you may explicitly set srcdir to the
24051         name of a directory containing spaces, do quote its uses here.
24052         * tests/test-pread.sh: Likewise.
24053         Suggested by Bruno Haible.
24054
24055         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
24056         * tests/test-pread.sh: Write no data into the pipe, because
24057         test-pread actually reads none.  This avoids a diagnostic,
24058         "bash: echo: write error: Broken pipe", that arises in the unusual
24059         event something is ignoring SIGPIPE, and might be interpreted
24060         as some sort of failure.  Reported by Bruno Haible.
24061
24062 2009-11-25  Jim Meyering  <meyering@redhat.com>
24063
24064         test-pread: cover failure with ESPIPE and EINVAL
24065         * tests/test-pread.c (main): Test for failure, too.
24066         * tests/test-pread.sh: Invoke with stdin on a pipe.
24067         Suggested by Eric Blake.
24068
24069         pread: improvement and fix
24070         * modules/pread (Depends-on): Depend on lseek, for portability to
24071         e.g., mingw.  Suggested by Eric Blake.
24072         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
24073
24074         unistd.in.h: correct declaration of pread
24075         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
24076         Reported by Richard W.M. Jones.
24077
24078         test-pread.sh: distribute the test script
24079         * modules/pread-tests (Files): Include test-pread.sh.
24080
24081         test-pread.sh: clean up
24082         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
24083         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
24084         That is unnecessary, since it's always ".".
24085         Suggestion from Eric Blake.
24086
24087         test-pread.sh: make executable
24088         * tests/test-pread.sh: Set executable bit.
24089         Reported by Eric Blake.
24090
24091         correct typo in test-pread.sh
24092         * tests/test-pread.sh: Add #! line.
24093
24094         test pread
24095         * tests/test-pread.c: New file.
24096         * tests/test-pread.sh: Likewise.
24097         * modules/pread-tests: Likewise.
24098
24099         pread: new module
24100         * modules/pread: New file.
24101         * lib/unistd.in.h (pread): Define/declare.
24102         * lib/pread.c (pread): New file.
24103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
24104         * modules/unistd (Makefile.am): Substitute witnesses.
24105         * doc/posix-functions/pread.texi (pread): Update.
24106         * MODULES.html.sh: Add pread.
24107
24108 2009-11-25  Jim Meyering  <meyering@redhat.com>
24109
24110         tests/init.sh: new file to be used via most *.sh tests
24111         * tests/init.sh: New file.
24112
24113 2009-11-25  Eric Blake  <ebb9@byu.net>
24114
24115         utimens: work around older Linux failure with symlinks
24116         * lib/utimens.c (lutimensat_works_really): New variable.
24117         (fdutimens, lutimens): Use it to manage kernels that support
24118         nanosecond times on files, but not on symlinks.
24119         Reported by OndÅ™ej Vašík.
24120
24121         utimes: fix configure grammar
24122         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
24123
24124 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
24125
24126         regex: Fix fastmap for multibyte character ranges.
24127         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
24128         characters when a multibyte character range is included.
24129
24130 2009-11-22  Andy Wingo  <wingo@pobox.com>
24131
24132         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
24133         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
24134
24135 2009-11-24  Bruno Haible  <bruno@clisp.org>
24136
24137         doc: Most *_l functions exist in MacOS X 10.5.
24138         * doc/posix-functions/duplocale.texi: Update platforms list.
24139         * doc/posix-functions/freelocale.texi: Likewise.
24140         * doc/posix-functions/newlocale.texi: Likewise.
24141         * doc/posix-functions/uselocale.texi: Likewise.
24142         * doc/posix-functions/isalnum_l.texi: Likewise.
24143         * doc/posix-functions/isalpha_l.texi: Likewise.
24144         * doc/posix-functions/isblank_l.texi: Likewise.
24145         * doc/posix-functions/iscntrl_l.texi: Likewise.
24146         * doc/posix-functions/isdigit_l.texi: Likewise.
24147         * doc/posix-functions/isgraph_l.texi: Likewise.
24148         * doc/posix-functions/islower_l.texi: Likewise.
24149         * doc/posix-functions/isprint_l.texi: Likewise.
24150         * doc/posix-functions/ispunct_l.texi: Likewise.
24151         * doc/posix-functions/isspace_l.texi: Likewise.
24152         * doc/posix-functions/isupper_l.texi: Likewise.
24153         * doc/posix-functions/iswalnum_l.texi: Likewise.
24154         * doc/posix-functions/iswalpha_l.texi: Likewise.
24155         * doc/posix-functions/iswblank_l.texi: Likewise.
24156         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24157         * doc/posix-functions/iswctype_l.texi: Likewise.
24158         * doc/posix-functions/iswdigit_l.texi: Likewise.
24159         * doc/posix-functions/iswgraph_l.texi: Likewise.
24160         * doc/posix-functions/iswlower_l.texi: Likewise.
24161         * doc/posix-functions/iswprint_l.texi: Likewise.
24162         * doc/posix-functions/iswpunct_l.texi: Likewise.
24163         * doc/posix-functions/iswspace_l.texi: Likewise.
24164         * doc/posix-functions/iswupper_l.texi: Likewise.
24165         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24166         * doc/posix-functions/isxdigit_l.texi: Likewise.
24167         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
24168         * doc/posix-functions/strcasecmp_l.texi: Likewise.
24169         * doc/posix-functions/strcoll_l.texi: Likewise.
24170         * doc/posix-functions/strfmon_l.texi: Likewise.
24171         * doc/posix-functions/strftime_l.texi: Likewise.
24172         * doc/posix-functions/strncasecmp_l.texi: Likewise.
24173         * doc/posix-functions/strxfrm_l.texi: Likewise.
24174         * doc/posix-functions/tolower_l.texi: Likewise.
24175         * doc/posix-functions/toupper_l.texi: Likewise.
24176         * doc/posix-functions/towctrans_l.texi: Likewise.
24177         * doc/posix-functions/towlower_l.texi: Likewise.
24178         * doc/posix-functions/towupper_l.texi: Likewise.
24179         * doc/posix-functions/wcscoll_l.texi: Likewise.
24180         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24181         * doc/posix-functions/wctrans_l.texi: Likewise.
24182         * doc/posix-functions/wctype_l.texi: Likewise.
24183         * doc/glibc-functions/strptime_l.texi: Likewise.
24184         * doc/glibc-functions/strtod_l.texi: Likewise.
24185         * doc/glibc-functions/strtof_l.texi: Likewise.
24186         * doc/glibc-functions/strtol_l.texi: Likewise.
24187         * doc/glibc-functions/strtold_l.texi: Likewise.
24188         * doc/glibc-functions/strtoll_l.texi: Likewise.
24189         * doc/glibc-functions/strtoul_l.texi: Likewise.
24190         * doc/glibc-functions/strtoull_l.texi: Likewise.
24191         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24192         * doc/glibc-functions/wcstod_l.texi: Likewise.
24193         * doc/glibc-functions/wcstof_l.texi: Likewise.
24194         * doc/glibc-functions/wcstol_l.texi: Likewise.
24195         * doc/glibc-functions/wcstold_l.texi: Likewise.
24196         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24197         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24198         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24199
24200 2009-11-24  Bruno Haible  <bruno@clisp.org>
24201
24202         duplocale: Fix logic bug.
24203         * lib/duplocale.c: Don't include <langinfo.h>.
24204         (_NL_LOCALE_NAME): Remove macro.
24205         (rpl_duplocale): Use setlocale instead of nl_langinfo.
24206         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
24207
24208 2009-11-23  Jim Meyering  <meyering@redhat.com>
24209
24210         test-update-copyright: don't hard-code /usr/bin/perl
24211         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
24212         perl to print the current year.  Gilles Espinasse reported that
24213         the replaced use of perl was hard-coded as /usr/bin/perl.
24214
24215 2009-11-23  Bruno Haible  <bruno@clisp.org>
24216
24217         duplocale: Add support for glibc 2.3.x.
24218         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
24219
24220 2009-11-22  Bruno Haible  <bruno@clisp.org>
24221
24222         vasnprintf: Tiny optimization.
24223         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
24224         MacOS X.
24225
24226 2009-11-22  Bruno Haible  <bruno@clisp.org>
24227
24228         Tests for module 'duplocale'.
24229         * modules/duplocale-tests: New file.
24230         * tests/test-duplocale.c: New file.
24231
24232         New module 'duplocale'.
24233         * m4/duplocale.m4: New file.
24234         * lib/locale.in.h (duplocale): New declaration.
24235         * lib/duplocale.c: New file.
24236         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
24237         gl_LOCALE_H_DEFAULTS): New macros.
24238         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
24239         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
24240         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
24241         REPLACE_DUPLOCALE.
24242         * modules/duplocale: New file.
24243         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
24244
24245 2009-11-22  Bruno Haible  <bruno@clisp.org>
24246
24247         * modules/locale-tests (configure.ac): Test for newlocale function.
24248         * tests/test-locale.c: When the system has extended locale functions,
24249         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
24250
24251         locale: Make locale_t available when possible.
24252         * lib/locale.in.h: Include <xlocale.h> when it exists.
24253         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
24254         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
24255         * modules/locale (Depends-on): Add extensions.
24256         (Makefile.am): Also substitute HAVE_XLOCALE_H.
24257         * doc/posix-headers/locale.texi: Document the problem with locale_t.
24258
24259 2009-11-22  Bruno Haible  <bruno@clisp.org>
24260
24261         Add comments.
24262         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
24263         invocation.
24264         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24265         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24266         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24267
24268 2009-11-22  Bruno Haible  <bruno@clisp.org>
24269
24270         error: account for the possibility of freopen (stdout).
24271         * lib/error.c: Include <unistd.h>.
24272         (flush_stdout): New function, extracted from error and error_at_line.
24273         Determine stdout's fd dynamically.
24274         (error, error_at_line): Invoke flush_stdout.
24275         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
24276         * modules/error (Depends-on): Add unistd.
24277
24278 2009-11-22  Bruno Haible  <bruno@clisp.org>
24279
24280         diffseq: Add comment.
24281         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
24282
24283 2009-11-22  Jim Meyering  <meyering@redhat.com>
24284
24285         c-stack: avoid defining an unused static function
24286         * lib/c-stack.c (find_stack_direction): Do not define this function
24287         when it will not be used.
24288
24289         diffseq: avoid spurious gcc warnings
24290         * lib/diffseq.h (IF_LINT2): Define.
24291         (compareseq): Use it to initialize two members of "part".
24292         This avoids two used-uninitialized warnings.
24293
24294 2009-11-21  Jim Meyering  <meyering@redhat.com>
24295
24296         c-stack: avoid "ignoring return value of `write'" warning
24297         * lib/c-stack.c: Include "ignore-value.h".
24298         (die): Explicitly ignore each write return value.
24299         * modules/c-stack (Depends-on): Add ignore-value.
24300
24301 2009-11-21  Bruno Haible  <bruno@clisp.org>
24302
24303         diffseq: reduce scope of variable 'best'.
24304         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
24305         variable, earlier used for two different purposes.
24306
24307 2009-11-21  Jim Meyering  <meyering@redhat.com>
24308
24309         diffseq: remove useless assignment to "best"
24310         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
24311         assignment.  At that point "best" is already guaranteed to be zero.
24312
24313 2009-11-20  Eric Blake  <ebb9@byu.net>
24314
24315         build: mention ftp redirector in release announcements
24316         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
24317         values that used to come from cfg.mk; mention FTP redirect URL.
24318         * build-aux/announce-gen: Mention the mirror list.
24319         Suggested by Karl Berry.
24320
24321         nanosleep: improve port to mingw
24322         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
24323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
24324         LIB_NANOSLEEP, but only when needed.
24325         * modules/select (Link): Document LIBSOCKET.
24326         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
24327         enough.
24328
24329         nanosleep: work around cygwin bug
24330         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24331         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24332         bug.
24333         (getnow): Delete, not needed.
24334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24335         LIB_CLOCK_GETTIME.
24336         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24337         clock-time, gettime.
24338         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24339         bug.
24340         * modules/nanosleep-tests: New test.
24341         * tests/test-nanosleep.c: New file.
24342
24343         sleep: work around cygwin bug
24344         * lib/sleep.c (rpl_sleep): Work around the bug.
24345         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24346         (gl_PREREQ_SLEEP): Delete unused macro.
24347         * modules/sleep (Depends-on): Add verify.
24348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24349         * modules/unistd (Makefile.am): Substitute witness.
24350         * lib/unistd.in.h (sleep): Update prototype.
24351         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24352         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24353         * modules/sleep-tests (Depends-on): Check for alarm.
24354
24355 2009-11-20  Jim Meyering  <meyering@redhat.com>
24356
24357         maint.mk: improve sc_prohibit_magic_number_exit
24358         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24359         so it does not match uses like System.exit(1).
24360         Add comments showing how to correct all offenders.
24361
24362 2009-11-19  Eric Blake  <ebb9@byu.net>
24363
24364         xalloc-die-tests: add missing library
24365         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24366
24367         test-xvasprintf: silence compiler warnings
24368         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24369         empty string from gcc.
24370
24371 2009-11-19  Jim Meyering  <meyering@redhat.com>
24372
24373         xfreopen: new module, from coreutils
24374         * modules/xfreopen: New module.
24375         * lib/xfreopen.c: New file.
24376         * lib/xfreopen.h: New file.
24377         * MODULES.html.sh (File stream based Input/Output"): Add it.
24378
24379 2009-11-19  Eric Blake  <ebb9@byu.net>
24380
24381         manywarnings: depend on warnings
24382         * modules/manywarnings (Depends-on): Add warnings.
24383
24384         build: avoid compiler warnings
24385         * lib/select.c (rpl_select): Delete unused variable.
24386         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24387
24388 2009-11-18  Eric Blake  <ebb9@byu.net>
24389
24390         tests: avoid false negative with --with-packager
24391         * tests/test-version-etc.sh: Discard packager information.
24392         * tests/test-argp-version-etc-1.sh: Likewise.
24393         Reported by Mike Frysinger.
24394
24395         utimens: fix regression on Solaris
24396         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24397         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24398         can only change fd timestamps via futimesat.  Instead, use an
24399         additional witness macro to avoid BSD bug.
24400         Reported by Jim Meyering.
24401
24402 2009-11-17  Eric Blake  <ebb9@byu.net>
24403
24404         usleep: use it to simplify tests
24405         * modules/stat-time-tests (Depends-on): Add usleep.
24406         (configure.ac): Drop usleep check.
24407         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24408         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24409         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24410         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24411         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24412         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24413         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24414         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24415         Likewise.
24416         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24417         * tests/test-lchown.h (nap): Likewise.
24418         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24419         * tests/test-stat-time.c (nap): Likewise.
24420         * tests/test-utimens-common.h (nap): Update comments.
24421
24422         usleep: new module
24423         * modules/usleep: New file.
24424         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24425         * lib/usleep.c (usleep): Likewise.
24426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24427         * modules/unistd (Makefile.am): Substitute witnesses.
24428         * lib/unistd.in.h (usleep): Add declaration.
24429         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24430         * MODULES.html.sh (Date and time): Likewise.
24431         * modules/usleep-tests (Depends-on): New test.
24432         * tests/test-usleep.c: New file.
24433
24434         chown: work around OpenBSD bug
24435         * lib/chown.c (rpl_chown): Work around the bug.
24436         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24437         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24439         * modules/chown (Depends-on): Add stdbool.
24440         * modules/lchown (Depends-on): Likewise.
24441         * doc/posix-functions/chown.texi (chown): Document the bug.
24442         * doc/posix-functions/lchown.texi (lchown): Likewise.
24443         * tests/test-lchown.h (test_chown): Relax test.
24444
24445         mkstemp: avoid conflict with C++ keyword template
24446         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24447         * lib/mkostemp.c (mkostemp): Likewise.
24448         * lib/mkostemps.c (mkostemps): Likewise.
24449         * lib/mkstemp.c (mkstemp): Likewise.
24450         * lib/mkstemps.c (mkstemps): Likewise.
24451
24452         xalloc-die-tests: optimize
24453         * tests/test-xalloc-die.sh: Reduce number of processes.
24454
24455 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24456
24457         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24458         patch from ludo@gnu.org (Ludovic Courtès).
24459
24460 2009-11-17  Jim Meyering  <meyering@redhat.com>
24461
24462         version-etc: use proper license string
24463         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24464         * modules/version-etc-fsf: Likewise.
24465
24466 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24467
24468         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24469         printed to stdout.  Deal with EOL differences.
24470
24471 2009-11-17  Eric Blake  <ebb9@byu.net>
24472
24473         unsetenv: work around Solaris bug
24474         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24475         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24476         Reported by Jim Meyering.
24477
24478         vasnprintf: avoid compiler warnings
24479         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24480         variables.
24481         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24482
24483 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24484
24485         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24486         settings since xalloc-die is no longer the self test,
24487         xalloc-die.sh is.
24488
24489 2009-11-17  Jim Meyering  <meyering@redhat.com>
24490
24491         test-xalloc-die.sh: make the code agree with the commit log
24492         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24493         at the end, just in case you happen to have a test-xalloc-die
24494         program in some other PATH directory.
24495
24496         test-xalloc-die.sh: fix a portability bug
24497         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24498         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24499         Otherwise, argv[0] (as often seen in diagnostics) would be too
24500         system-dependent, sometimes with, and sometimes without the leading "./".
24501
24502         version-etc-fsf: relax license to LGPLv3+
24503         * modules/version-etc-fsf (License): Relax license.
24504
24505 2009-11-16  Eric Blake  <ebb9@byu.net>
24506
24507         xalloc-die-tests: avoid printing null pointer
24508         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24509         shell script.
24510         * tests/test-xalloc-die.c (program_name): Declare.
24511         * tests/test-xalloc-die.sh (tmpfiles): New file.
24512
24513         setenv, unsetenv: work around various bugs
24514         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24515         (setenv) [HAVE_SETENV]: Work around bugs.
24516         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24517         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24518         for bugs.
24519         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24520         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24522         * modules/stdlib (Makefile.am): Update substitutions.
24523         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24524         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24525         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24526         * modules/setenv-tests: New test.
24527         * modules/unsetenv-tests: Likewise.
24528         * tests/test-setenv.c: New file.
24529         * tests/test-unsetenv.c: Likewise.
24530
24531 2009-11-16  Jim Meyering  <meyering@redhat.com>
24532
24533         version-etc: relax license to LGPLv3+
24534         * modules/version-etc (License): Relax license.
24535
24536         better AC_REQUIRE expanded-before-required-warning avoidance
24537         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24538         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24539         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24540         which is no longer needed.
24541
24542 2009-11-16  Eric Blake  <ebb9@byu.net>
24543
24544         test-freading: clean up temporary file
24545         * tests/test-freading.c (main): Remove file on success, and use
24546         ASSERT more liberally.
24547         Reported by Jim Meyering.
24548
24549 2009-11-16  Jim Meyering  <meyering@redhat.com>
24550
24551         avoid new AC_REQUIRE expanded-before-required warnings
24552         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24553         merely using it.
24554         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24555         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24556
24557 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24558
24559         * tests/test-xalloc-die.c: New file.
24560         * modules/xalloc-die-tests: New file.
24561         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24562         XFAIL_TESTS so it can be appended by modules.
24563
24564 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24565
24566         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24567         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24568
24569 2009-11-14  Eric Blake  <ebb9@byu.net>
24570
24571         fnmatch: avoid compiler warning
24572         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24573         to silence compiler warning about mismatch signedness in ?:.
24574         Reported by Robert Millan.
24575
24576         intprops: add double-inclusion guard
24577         * lib/intprops.h: Allow idempotent includes.
24578         Suggested by Bruce Korb.
24579
24580         openat: detect Solaris fchownat bug
24581         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24582         penalizing glibc chownat when only lchownat is broken.
24583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24584         trailing slash bugs.
24585         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24586         * modules/openat-tests (Files): Include more files.
24587         (Depends-on): Add mgetgroups, sleep, stat-time.
24588         (configure.ac): Add additional checks.
24589         (Makefile.am): Build new test.
24590         * tests/test-fchownat.c: New file.
24591
24592         lchown: detect Solaris and FreeBSD bug
24593         * lib/lchown.c (rpl_lchown): Work around bug.
24594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24596         * modules/unistd (Makefile.am): Populate it.
24597         * lib/unistd.in.h (lchown): Update declaration.
24598         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24599         * modules/lchown-tests: New file.
24600         * tests/test-lchown.h (test_lchown): Likewise.
24601         * tests/test-lchown.c (main): Likewise.
24602
24603         chown: detect Solaris and FreeBSD bug
24604         * lib/chown.c (rpl_chown): Work around bug.
24605         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24606         (gl_PREREQ_CHOWN): Delete.
24607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24608         * modules/unistd (Makefile.am): Populate it.
24609         * lib/unistd.in.h (chown): Update declaration.
24610         * lib/lchown.c (chown): Update client.
24611         * modules/lchown (Depends-on): Add lstat.
24612         * doc/posix-functions/chown.texi (chown): Document the bug.
24613         * doc/posix-functions/getgroups.texi (getgroups): Document
24614         getgroups pitfall.
24615         * modules/chown-tests: New file.
24616         * tests/test-chown.h (test_chown): Likewise.
24617         * tests/test-chown.c (main): Likewise.
24618
24619 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24620
24621         gnulib-tool: correctly detect absence of m4 directories
24622         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24623
24624 2009-11-14  Jim Meyering  <meyering@redhat.com>
24625
24626         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24627         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24628
24629 2009-11-14  John W. Eaton  <jwe@gnu.org>
24630
24631         strftime.h: wrap funtion declaration in extern "C" block
24632         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24633
24634 2009-11-13  Eric Blake  <ebb9@byu.net>
24635
24636         getgroups: avoid compiler warning
24637         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24638
24639         getgroups: work around FreeBSD bug
24640         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24641         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24642         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24643         * tests/test-getgroups.c (main): Fix buffer overrun.
24644
24645         getgroups: avoid compilation failure
24646         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24647         * modules/getgroups (Depends-on): Add stdint.
24648
24649 2009-11-13  Jim Meyering  <meyering@redhat.com>
24650
24651         test-getgroups: avoid compilation failure
24652         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24653
24654 2009-11-13  Eric Blake  <ebb9@byu.net>
24655
24656         mgetgroups: new module, taken from coreutils
24657         * modules/mgetgroups: New file.
24658         * lib/mgetgroups.h: Likewise.
24659         * lib/mgetgroups.c (mgetgroups): Likewise.
24660         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24661         * MODULES.html.sh (Users and groups): Mention it.
24662
24663         getgroups: don't expose GETGROUPS_T to user
24664         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24665         an element at a time if GETGROUPS_T is wrong size.
24666         * lib/getugroups.h (getugroups): Change signature.
24667         * lib/unistd.in.h (getgroups): Likewise.
24668         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24669         signature needs fixing.
24670         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24671         AC_TYPE_GETGROUPS.
24672         * modules/group-member (Depends-on): Add getgroups.
24673         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24674         (group_member): Rely on getgroups replacement.
24675         * lib/getugroups.c (getugroups): Use gid_t.
24676         * tests/test-getgroups.c (main): Likewise.
24677         * NEWS: Mention the signature change.
24678         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24679         problem with signature.
24680         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24681         GETGROUPS_T is still useful for setgroups.
24682
24683         getgroups, getugroups: provide stubs for mingw
24684         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24685         * lib/getugroups.c (getugroups): Likewise.
24686         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24687         function.  Modernize replacement scheme.
24688         (gl_PREREQ_GETGROUPS): Delete.
24689         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24690         * modules/getgroups (configure.ac): Declare witness.
24691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24692         * modules/unistd (Depends-on): Substitute witness.
24693         * lib/unistd.in.h (getgroups): Declare replacement.
24694
24695         getgroups: avoid calling exit
24696         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24697         drop xalloc.
24698         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24699         dependencies.
24700         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24701         exiting, in the rare case of malloc failure.
24702
24703         getgroups: fix logic error
24704         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24705         has more than 20 groups.
24706         * modules/getgroups-tests: New test.
24707         * tests/test-getgroups.c: New file.
24708
24709 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24710
24711         * tests/test-base64.c: Improve.
24712
24713 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24714
24715         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24716         Blake <ebb9@byu.net>.
24717
24718 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24719
24720         * tests/test-xvasprintf.c: Add %s%s related checks.
24721
24722 2009-11-12  Eric Blake  <ebb9@byu.net>
24723
24724         version-etc: match standards.texi style
24725         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24726         and use <> only for URLs.
24727
24728 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24729
24730         fts: do not fail on a submount during traversal
24731         * lib/fts.c (fts_build): Read the stat info again after opening
24732         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24733         Original report at http://bugzilla.redhat.com/501848.
24734
24735 2009-11-12  Jim Meyering  <meyering@redhat.com>
24736
24737         bootstrap: sync from coreutils
24738         * build-aux/bootstrap (bootstrap_epilogue): New function.
24739         Use git_modules_config in one more place.  This make bootstrap's
24740         --gnulib-srcdir option more useful for testing.
24741
24742         bootstrap: generalize autoheader check
24743         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24744         AC_CONFIG_HEADERS.
24745
24746 2009-11-11  Eric Blake  <ebb9@byu.net>
24747
24748         mkfifoat: use new modules for Solaris and BSD bugs
24749         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24750         * lib/mkfifoat.c (mknodat): Split...
24751         * lib/mknodat.c (mknodat): ...into new file.
24752         * modules/mkfifoat (Files): Ship new file.
24753         (Depends-on): Add mkfifo, mknod.
24754         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24755         (Depends-on): Add symlink.
24756         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24757         redundant with test_mkfifo.h.
24758         (do_mkfifoat, do_mknodat): New helpers.
24759
24760         mknod: new module
24761         * modules/mknod: New file.
24762         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24763         * lib/mknod.c (mknod): Likewise.
24764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24765         defaults.
24766         * modules/sys_stat (Makefile.am): Substitute them.
24767         * lib/sys_stat.in.h (mknod): Declare replacement.
24768         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24769         Document it.
24770         * doc/posix-functions/mknod.texi (mknod): Likewise.
24771         * modules/mknod-tests: New test.
24772         * tests/test-mknod.c: Likewise.
24773
24774         mkfifo: new module
24775         * modules/mkfifo: New file.
24776         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24777         * lib/mkfifo.c (mkfifo): Likewise.
24778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24779         defaults.
24780         * modules/sys_stat (Makefile.am): Substitute them.
24781         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24782         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24783         Document it.
24784         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24785         * modules/mkfifo-tests: New test.
24786         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24787         from test-mkfifoat.c.
24788         * tests/test-mkfifo.c: New file.
24789
24790         readlink: detect FreeBSD bug
24791         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24792         slash on symlink.
24793         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24794         * tests/test-readlink.h (test_readlink): Enhance test.
24795
24796         symlink: detect FreeBSD bug
24797         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24798         slash on symlink.
24799         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24800         * tests/test-symlink.h (test_symlink): Enhance test.
24801
24802 2009-11-10  Eric Blake  <ebb9@byu.net>
24803
24804         link: detect FreeBSD bug
24805         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24806         symlink.
24807         * doc/posix-functions/link.texi (link): Document the bug.
24808         * tests/test-link.h (test_link): Enhance test.
24809         * tests/test-linkat.c (main): Update caller.
24810
24811         unlink, remove: detect FreeBSD bug
24812         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24813         slash on symlink.
24814         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24815         * doc/posix-functions/remove.texi (remove): Likewise.
24816         * tests/test-unlink.h (test_unlink): Enhance test.
24817         * tests/test-remove.c (main): Likewise.
24818
24819 2009-11-09  Eric Blake  <ebb9@byu.net>
24820
24821         rename: detect FreeBSD bug
24822         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24823         slash on symlink.
24824         * modules/renameat-tests (Depends-on): Add filenamecat.
24825         * tests/test-rename.h (test_rename): Allow one more errno.
24826         * tests/test-renameat.c (main): Likewise.
24827         * doc/posix-functions/rename.texi (rename): Document the bug.
24828
24829         open: detect FreeBSD bug
24830         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24831         symlink.
24832         * doc/posix-functions/open.texi (open): Document the bug.
24833         * doc/posix-functions/utimes.texi (utimes): Likewise.
24834         * tests/test-open.h (test_open): Add parameters, and test symlink
24835         handling.
24836         * tests/test-open.c (main): Adjust caller.
24837         * tests/test-fcntl-safer.c (main): Likewise.
24838         * modules/open-tests (Depends-on): Add stdbool, symlink.
24839         * modules/fcntl-safer-tests (Depends-on): Likewise.
24840         * tests/test-openat.c (main): Add test-open tests.
24841
24842         stat: detect FreeBSD bug
24843         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24844         symlink.
24845         * doc/posix-functions/stat.texi (stat): Document the bug.
24846         * tests/test-stat.h (test_stat_func): Add argument.
24847         * tests/test-stat.c (main): Adjust caller.
24848         * tests/test-fstatat.c (main): Likewise.
24849         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24850         Reported by Jim Meyering.
24851
24852 2009-11-09  James Youngman  <jay@gnu.org>
24853
24854         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24855         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24856
24857 2009-11-08  Jim Meyering  <meyering@redhat.com>
24858
24859         utimens: remove invalid futimesat call
24860         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24861         It used the file descriptor of the target file as the DIR_FD
24862         parameter and NULL as the file name.  That caused failure with
24863         errno == EFAULT on FreeBSD-8.0-rc2
24864
24865 2009-11-07  Eric Blake  <ebb9@byu.net>
24866
24867         fflush, freadseek: use fseeko, not fseek
24868         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24869         (clear_ungetc_buffer): Avoid potential problems on large files.
24870         * lib/freadseek.c (freadseek): Likewise.
24871         * modules/freadseek (Depends-on): Add fseeko.
24872         * modules/fseek (configure.ac): Set a witness.
24873         * tests/test-fflush.c (main): Use fseeko.
24874         * tests/test-fpurge.c (fseek): Disable link warning.
24875         * tests/test-freadable.c (fseek): Likewise.
24876         * tests/test-freading.c (fseek): Likewise.
24877         * tests/test-fseeko.c (fseek): Likewise.
24878         * tests/test-ftell.c (fseek): Likewise.
24879         * tests/test-ftello.c (fseek): Likewise.
24880         * tests/test-fwritable.c (fseek): Likewise.
24881         * tests/test-fwriting.c (fseek): Likewise.
24882
24883 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24884
24885         * modules/memchr (Depends-on): Drop getpagesize dependency.
24886
24887 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24888
24889         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24890         Reported by Ludovic Courtès.
24891         * build-aux/pmccabe2html: Improve example usage.
24892         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24893
24894 2009-11-06  Jim Meyering  <meyering@redhat.com>
24895
24896         do-release-commit-and-tag: New module.
24897         Automate the release-commit and tag process.
24898         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24899         * modules/do-release-commit-and-tag: New file.
24900         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24901
24902 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24903
24904         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24905         because test-select.c uses inet_pton.
24906
24907 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24908
24909         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24910         GETADDRINFO_LIB.  Bump serial number.
24911         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24912         Suggested by Eric Blake <ebb9@byu.net>.
24913
24914 2009-11-05  Eric Blake  <ebb9@byu.net>
24915
24916         strtod: detect darwin bug
24917         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24918         Reported by Leo Davis.
24919
24920         freopen-safer: new module
24921         * modules/freopen-safer: New module.
24922         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24923         * lib/freopen-safer.c (freopen_safer): New file.
24924         * lib/stdio-safer.h (freopen_safer): New declaration.
24925         * lib/stdio--.h (freopen): New override.
24926         * MODULES.html.sh (File stream based Input/Output): Mention it.
24927         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24928         freopen-safer module.
24929         * doc/posix-functions/stderr.texi (stderr): Likewise.
24930         * doc/posix-functions/stdin.texi (stdin): Likewise.
24931         * doc/posix-functions/stdout.texi (stdout): Likewise.
24932         * modules/freopen-safer-tests: New test.
24933         * tests/test-reopen-safer.c: New file.
24934
24935 2009-11-05  Jim Meyering  <meyering@redhat.com>
24936
24937         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24938         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24939
24940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24941
24942         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24943
24944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24945
24946         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24947
24948 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24949
24950         Fix link error.
24951         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24953
24954 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24955
24956         * tests/test-func.c: Also test value of __func__.
24957
24958 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24959
24960         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24961         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24962
24963 2009-11-05  Bruno Haible  <bruno@clisp.org>
24964
24965         Fix link error.
24966         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24967         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24968         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24969
24970 2009-11-05  Bruno Haible  <bruno@clisp.org>
24971
24972         Tests for module 'inet_pton'.
24973         * modules/inet_pton-tests: New file.
24974         * tests/test-inet_pton.c: New file.
24975
24976 2009-11-05  Bruno Haible  <bruno@clisp.org>
24977
24978         Tests for module 'inet_ntop'.
24979         * modules/inet_ntop-tests: New file.
24980         * tests/test-inet_ntop.c: New file.
24981
24982 2009-11-04  Eric Blake  <ebb9@byu.net>
24983
24984         stdlib-safer: wrap all mkstemp variants
24985         * modules/mkostemp (configure.ac): Set witness.
24986         * modules/mkostemps (configure.ac): Likewise.
24987         * modules/mkstemps (configure.ac): Likewise.
24988         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24989         (mkstemps_safer): Wrap more functions.
24990         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24991         wrapping.
24992         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24993         (mkstemps_safer): Implement the wrappers.
24994
24995         mkstemps, mkostemps: new modules
24996         * modules/mkostemps: New module.
24997         * modules/mkstemps: Likewise.
24998         * lib/mkostemps.c (mkostemps): New file.
24999         * lib/mkstemps.c (mkstemps): Likewise.
25000         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
25001         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
25002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
25003         * modules/stdlib (Makefile.am): Substitute them.
25004         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
25005         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
25006         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25007         * doc/gnulib.texi (Glibc stdlib.h): Include them.
25008         * MODULES.html.sh (File system functions): Mention them.
25009
25010         tempname: resync from glibc
25011         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
25012         same values for __GT_FILE as glibc.  Abort even when assertions
25013         are disabled.
25014         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
25015         match its value otherwise.  Allow idempotent inclusion.
25016         * lib/mkdtemp.c (mkdtemp): Adjust caller.
25017         * lib/mkostemp.c (mkostemp): Likewise.
25018         * lib/mkstemp.c (mkstemp): Likewise.
25019         * lib/tmpfile.c (tmpfile): Likewise.
25020         * NEWS: Document this.
25021
25022         utimens: fix use of futimens on older Linux
25023         * lib/utimens.c (fdutimens): Use updated, rather than original,
25024         timespec to avoid bug in older Linux kernel.
25025         Reported by Simon Josefsson.
25026
25027 2009-11-04  Bruno Haible  <bruno@clisp.org>
25028
25029         Make num_processors more flexible and consistent.
25030         * lib/nproc.h (enum nproc_query): New type.
25031         (num_processors): Add a 'query' argument.
25032         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
25033         (num_processors): Add a 'query' argument. Test the value of the
25034         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
25035         mingw, count the number of CPUs available for the current process.
25036         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
25037         Check for sched_getaffinity and sched_getaffinity_np.
25038         * modules/nproc (Depends-on): Add c-ctype, extensions.
25039         * NEWS: Mention the change.
25040
25041 2009-11-03  Bruno Haible  <bruno@clisp.org>
25042
25043         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
25044
25045 2009-11-03  Jim Meyering  <meyering@redhat.com>
25046
25047         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
25048         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
25049         if it is defined.
25050
25051 2009-11-02  Eric Blake  <ebb9@byu.net>
25052
25053         mktime, timegm: share common declaration
25054         * lib/mktime-internal.h: New file.
25055         * lib/mktime.c: Use it rather than open-coding a declaration.
25056         * lib/timegm.c: Likewise.
25057         * modules/mktime (Files): Ship it.
25058         * modules/timegm (Files): Likewise.
25059         Suggested by Bruno Haible.
25060
25061         test-update-copyright: update test to match script changes
25062         * tests/test-update-copyright.sh: Avoid hard-coding perl
25063         location.  Don't update *.bak created by earlier runs.
25064
25065 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
25066             Simon Josefsson  <simon@josefsson.org>
25067             Bruno Haible  <bruno@clisp.org>
25068
25069         Fix link error on Solaris 8.
25070         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
25071         also in libnsl. Define also INET_PTON_LIB.
25072         * modules/inet_pton (Link): New section.
25073
25074 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25075             Bruno Haible  <bruno@clisp.org>
25076
25077         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
25078         * modules/inet_ntop (Link): New section.
25079         Reported by Boyan Kasarov <bkasarov@gmail.com>.
25080
25081 2009-11-02  Eric Blake  <ebb9@byu.net>
25082
25083         maint: avoid compiler warnings in m4 macros
25084         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
25085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
25086
25087 2009-11-02  Simon Josefsson  <simon@josefsson.org>
25088
25089         * m4/pmccabe2html.m4: Remove file.
25090         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
25091         function.  Change maintainer.
25092         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
25093         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
25094         Courtès).
25095
25096 2009-10-31  Eric Blake  <ebb9@byu.net>
25097
25098         fseeko: fix m4 regression
25099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
25100         regression from 2009-10-27.
25101         Reported by Ralf Wildenhues.
25102
25103 2009-10-31  Jim Meyering  <meyering@redhat.com>
25104
25105         inttostr: aesthetics and improved (compile-time) safety
25106         Define inttype_is_signed rather than inttype_is_unsigned,
25107         since the sole use is via "#if inttype_is_signed".
25108         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
25109         inttype_is_unsigned.
25110         * lib/offtostr.c (inttype_is_signed): Likewise.
25111         * lib/uinttostr.c (inttype_is_signed): Likewise.
25112         * lib/umaxtostr.c (inttype_is_signed): Likewise.
25113         * lib/inttostr.c (inttostr): Use verify to cross-check the
25114         inttype_is_signed value and the signedness of the actual type.
25115         * modules/inttostr (Depends-on): Add verify.
25116
25117 2009-10-30  Eric Blake  <ebb9@byu.net>
25118
25119         build: avoid compiler warnings
25120         * lib/fchmodat.c (lchmod): Mark unused variables.
25121         * lib/getopt.c (_getopt_initialize): Likewise.
25122         * lib/mktime.c (__mktime_internal): Provide prototype.
25123         * lib/inttostr.c (inttostr): Avoid compiler warning even with
25124         older gcc that do not understand #pragma GCC diagnostic.
25125         * lib/uinttostr.c (inttype_is_unsigned): Define.
25126         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
25127
25128 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
25129
25130         stat: fix compilation on AIX
25131         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
25132         only see struct stat64.
25133
25134 2009-10-30  Eric Blake  <ebb9@byu.net>
25135
25136         exclude: make more robust
25137         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
25138         rather than masking a coding bug.
25139         Suggested by Bruno Haible.
25140
25141 2009-10-30  Jim Meyering  <meyering@redhat.com>
25142
25143         perl scripts: remove #!/usr/bin/perl in favor of more portable...
25144         Rather than putting #!/usr/bin/perl on the first line,
25145         start with a variant of what's recommended by "man perlrun" that
25146         invokes the first "perl" program from your shell's search path.
25147         * build-aux/gitlog-to-changelog: Replace #!... as above.
25148         Add a "Local Variables" perl mode setting.
25149         Prompted by a patch from Ludovic Courtès.
25150         Improved by Eric Blake.
25151         * build-aux/useless-if-before-free: Likewise.
25152         * build-aux/announce-gen: Likewise.
25153         * build-aux/update-copyright: Likewise.
25154
25155 2009-10-29  Eric Blake  <ebb9@byu.net>
25156
25157         filenamecat-lgpl: adjust clients
25158         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
25159         filenamecat.
25160         * modules/renameat (Depends-on): Likewise.
25161
25162         filenamecat: split into filenamecat-lgpl
25163         * modules/filenamecat-lgpl: New module.
25164         * modules/filenamecat (Files): Move library-safe files into
25165         filenamecat-lgpl.
25166         (Depends-on): Add filenamecat-lgpl.
25167         (configure.ac): Declare witness.
25168         * lib/filenamecat.h (file_name_concat): Only declare when using
25169         GPL module.
25170         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
25171         Move...
25172         * lib/filenamecat-lgpl.c: ...into new file.
25173         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
25174         (gl_FILE_NAME_CONCAT): Use it.
25175         * MODULES.html.sh (File system functions): Mention new module.
25176
25177         argp: avoid memory leak
25178         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
25179         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
25180         base_name, since the latter malloc()s and can call exit().
25181         Leak introduced 2006-07-03.
25182
25183         dirname-lgpl: adjust clients that don't need full dirname
25184         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
25185         * modules/filenamecat (Depends-on): Likewise.
25186         * modules/linkat (Depends-on): Likewise.
25187         * modules/mkancesdirs (Depends-on): Likewise.
25188         * modules/mkdir (Depends-on): Likewise.
25189         * modules/openat (Depends-on): Likewise.
25190         * modules/savewd (Depends-on): Likewise.
25191         * modules/rename (Depends-on): Likewise.
25192         (License): Relax license.
25193         * modules/mkdir-tests (Depends-on): Drop progname.
25194         (Makefile.am): Delete unneeded LDADD.
25195         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
25196
25197         dirname: split into dirname-lgpl
25198         * modules/dirname-lgpl: New module.
25199         * modules/dirname (Files): Move library-safe files into
25200         dirname-lgpl.
25201         (Depends-on): Add dirname-lgpl.
25202         (configure.ac): Declare witness.
25203         * modules/double-slash-root (License): Relax license.
25204         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
25205         module.
25206         * lib/dirname.c (dir_len, mdir_name): Move...
25207         * lib/dirname-lgpl.c: ...into new file.
25208         * lib/basename.c (last_component, base_len): Move...
25209         * lib/basename-lgpl.c: ...into new file.
25210         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
25211         (gl_DIRNAME): Use it.
25212         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
25213         Mention new module.
25214         * modules/dirname-tests (Depends-on): Add progname.
25215         * tests/test-dirname.c (program_name): Delete.
25216
25217         mkdir: make safe for libraries
25218         * modules/mkdir (Depends-on): Drop xalloc.
25219         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
25220         exit.
25221
25222         tests: avoid some compiler warnings
25223         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
25224         literals.
25225         * tests/test-memchr.c (main): Avoid type mismatch.
25226         * tests/test-arpa_inet.c (main): Avoid unused parameters.
25227         * tests/test-base64.c (main): Likewise.
25228         * tests/test-getdelim.c (main): Likewise.
25229         * tests/test-gethostname.c (main): Likewise.
25230         * tests/test-getline.c (main): Likewise.
25231         * tests/test-netinet_in.c (main): Likewise.
25232         * tests/test-select.c (open_server_socket, main): Likewise.
25233         * tests/test-select-stdin.c (main): Likewise.
25234         * tests/test-sockets.c (main): Likewise.
25235         * tests/test-strsignal.c (main): Likewise.
25236         * tests/test-sys_select.c (main): Likewise.
25237         * tests/test-sys_socket.c (main): Likewise.
25238         * tests/test-u64.c (main): Likewise.
25239         * tests/test-xfprintf-posix.c (main): Likewise.
25240         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
25241
25242         sockets: avoid compiler warning
25243         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
25244
25245         maint: detect usage(1) and other suspicious exits
25246         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
25247
25248 2009-10-29  Jim Meyering  <meyering@redhat.com>
25249
25250         timespec: long-to-int truncation could make timespec_cmp malfunction
25251         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
25252         a multiple of 2^32 nanoseconds as no difference.
25253
25254 2009-10-28  Jim Meyering  <meyering@redhat.com>
25255
25256         fprintftime: wrap macro code argument in "do {...} while(0)"
25257         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
25258         cpy macro must be a statement that can be followed by a semicolon.
25259         Now that the else clause contains a comment and is hence longer
25260         than one line, I require curly braces.  That in turn requires
25261         that we wrap this code block in the standard do...while(0).
25262
25263         fprintftime: remove stray semicolon from previous change
25264         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
25265
25266         fprintftime: avoid a warning about ignored fwrite return value
25267         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
25268         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
25269         that is unsafe.
25270         * modules/fprintftime (Depends-on): Add ignore-value.
25271
25272         exclude: avoid an unwarranted warning
25273         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
25274
25275 2009-10-27  Eric Blake  <ebb9@byu.net>
25276
25277         fseek: avoid compilation failure when fflush is replaced
25278         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
25279         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
25280         module is in use.
25281         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
25282         module is not in use; since REPLACE_FSEEK worked otherwise.
25283         (GNULIB_FTELLO): Likewise for ftell.
25284         Reported by Ian Beckwith and others.
25285
25286 2009-10-27  Bruno Haible  <bruno@clisp.org>
25287
25288         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
25289         Reported by Jim Meyering.
25290
25291 2009-10-27  Jim Meyering  <jim@meyering.net>
25292             Bruno Haible  <bruno@clisp.org>
25293
25294         Avoid warning despite dropping the return value of fwrite.
25295         * lib/unicodeio.c: Include ignore-value.h.
25296         (fwrite_success_callback): Explicitly ignore fwrite's return value.
25297         * modules/unicodeio (Depends-on): Add ignore-value.
25298
25299 2009-10-26  Eric Blake  <ebb9@byu.net>
25300
25301         areadlinkat: fix fallback path
25302         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
25303         pointer and zero.
25304
25305 2009-10-22  Pádraig Brady  <P@draigBrady.com>
25306
25307         Use a better IO block size for modern systems
25308         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
25309         * lib/md2.c: Likewise.
25310         * lib/md4.c: Likewise.
25311         * lib/md5.c: Likewise.
25312         * lib/sha1.c: Likewise.
25313         * lib/sha256.c: Likewise.
25314         * lib/sha512.c: Likewise.
25315
25316 2009-10-22  Eric Blake  <ebb9@byu.net>
25317
25318         tests: avoid several compiler warnings
25319         * tests/test-getcwd.c (main): Avoid buffer underflow.
25320         * tests/test-getdate.c (main): String literals are not safe with
25321         putenv, so use setenv.  Declare unused argument.
25322         * modules/getdate-tests (Depends-on): Add setenv.
25323         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
25324         problems with string literals in char *.
25325         * tests/test-hash.c (main): Avoid shadowing declaration.
25326         (insert_new): Treat string literals as char const *.
25327         * tests/test-getopt.h (test_getopt): Likewise.
25328         (getopt_loop): Alter types to minimize casting elsewhere.
25329         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
25330         (test_getopt_long_posix): Likewise.
25331         (do_getopt_long): Add wrapper to minimize casting.
25332         * tests/test-atexit.c (clear_temp_file): Use void.
25333         * tests/test-areadlink-with-size.c (main): Declare unused
25334         arguments.
25335         * tests/test-areadlink.c (main): Likewise.
25336         * tests/test-areadlinkat-with-size.c (main): Likewise.
25337         * tests/test-areadlinkat.c (main): Likewise.
25338         * tests/test-canonicalize-lgpl.c (main): Likewise.
25339         * tests/test-canonicalize.c (main): Likewise.
25340         * tests/test-dirent-safer.c (main): Likewise.
25341         * tests/test-dirname.c (main): Likewise.
25342         * tests/test-dup2.c (main): Likewise.
25343         * tests/test-fchdir.c (main): Likewise.
25344         * tests/test-fcntl-h.c (main): Likewise.
25345         * tests/test-fcntl-safer.c (main): Likewise.
25346         * tests/test-fdopendir.c (main): Likewise.
25347         * tests/test-fdutimensat.c (main): Likewise.
25348         * tests/test-fflush.c (main): Likewise.
25349         * tests/test-filenamecat.c (main): Likewise.
25350         * tests/test-filevercmp.c (main): Likewise.
25351         * tests/test-fopen-safer.c (main): Likewise.
25352         * tests/test-fopen.c (main): Likewise.
25353         * tests/test-fpending.c (main): Likewise.
25354         * tests/test-fpurge.c (main): Likewise.
25355         * tests/test-freading.c (main): Likewise.
25356         * tests/test-fstatat.c (main): Likewise.
25357         * tests/test-fsync.c (main): Likewise.
25358         * tests/test-futimens.c (main): Likewise.
25359         * tests/test-getndelim2.c (main): Likewise.
25360         * tests/test-gettimeofday.c (main): Likewise.
25361         * tests/test-getopt.c (main): Likewise.
25362         * tests/test-i-ring.c (main): Likewise.
25363         * tests/test-inttypes.c (main): Likewise.
25364         * tests/test-link.c (main): Likewise.
25365         * tests/test-lstat.c (main): Likewise.
25366         * tests/test-math.c (main): Likewise.
25367         * tests/test-md5.c (main): Likewise.
25368         * tests/test-memchr2.c (main): Likewise.
25369         * tests/test-memrchr.c (main): Likewise.
25370         * tests/test-mkdir.c (main): Likewise.
25371         * tests/test-mkdirat.c (main): Likewise.
25372         * tests/test-mkfifoat.c (main): Likewise.
25373         * tests/test-open.c (main): Likewise.
25374         * tests/test-openat-safer.c (main): Likewise.
25375         * tests/test-openat.c (main): Likewise.
25376         * tests/test-quotearg.c (main): Likewise.
25377         * tests/test-rawmemchr.c (main): Likewise.
25378         * tests/test-readlink.c (main): Likewise.
25379         * tests/test-remove.c (main): Likewise.
25380         * tests/test-rename.c (main): Likewise.
25381         * tests/test-renameat.c (main): Likewise.
25382         * tests/test-rmdir.c (main): Likewise.
25383         * tests/test-sha1.c (main): Likewise.
25384         * tests/test-signal.c (main): Likewise.
25385         * tests/test-sigaction.c (main): Likewise.
25386         * tests/test-stat.c (main): Likewise.
25387         * tests/test-stat-time.c (main): Likewise.
25388         * tests/test-stddef.c (main): Likewise.
25389         * tests/test-stdint.c (main): Likewise.
25390         * tests/test-stdio.c (main): Likewise.
25391         * tests/test-stdlib.c (main): Likewise.
25392         * tests/test-strchrnul.c (main): Likewise.
25393         * tests/test-strerror.c (main): Likewise.
25394         * tests/test-string.c (main): Likewise.
25395         * tests/test-strtod.c (main): Likewise.
25396         * tests/test-strverscmp.c (main): Likewise.
25397         * tests/test-symlink.c (main): Likewise.
25398         * tests/test-symlinkat.c (main): Likewise.
25399         * tests/test-sys_stat.c (main): Likewise.
25400         * tests/test-sys_time.c (main): Likewise.
25401         * tests/test-time.c (main): Likewise.
25402         * tests/test-unistd.c (main): Likewise.
25403         * tests/test-unlink.c (main): Likewise.
25404         * tests/test-unlinkat.c (main): Likewise.
25405         * tests/test-utimens.c (main): Likewise.
25406         * tests/test-utimensat.c (main): Likewise.
25407         * tests/test-version-etc.c (main): Likewise.
25408         * tests/test-wchar.c (main): Likewise.
25409         * tests/test-wctype.c (main): Likewise.
25410         * tests/test-xprintf-posix.c (main): Likewise.
25411         * tests/test-posixtm.c (main): Likewise.
25412         (STREQ): Delete unused macro.
25413         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25414         shadowed variables.
25415         * tests/test-memchr.c (main): Likewise.
25416
25417 2009-10-21  Eric Blake  <ebb9@byu.net>
25418
25419         areadlinkat: avoid failure on older glibc
25420         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25421         rather than mis-comparing 0 against FUNC_RESULT of char*.
25422
25423 2009-10-21  Bruno Haible  <bruno@clisp.org>
25424
25425         * modules/stpncpy (License): Relicense under LGPLv2+.
25426         Reported by David Lutterkort <lutter@redhat.com>.
25427
25428 2009-10-20  Eric Blake  <ebb9@byu.net>
25429
25430         utimensat: work around Solaris 9 bug
25431         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25432         has trailing slash bugs.
25433         * tests/test-lutimens.h (test_lutimens): Enhance test.
25434         * tests/test-utimens.h (test_utimens): Likewise.
25435         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25436         * doc/posix-functions/utimes.texi (utimes): Likewise.
25437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25438         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25439         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25440         * doc/posix-functions/futimens.texi (futimens): Likewise.
25441
25442         fdutimensat: new module
25443         * modules/fdutimensat: New file.
25444         * lib/fdutimensat.c (fdutimensat): Likewise.
25445         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25446         * MODULES.html.sh (File system functions): Mention module.
25447         * modules/fdutimensat-tests: New test.
25448         * tests/test-fdutimensat.c: Likewise.
25449
25450         doc: regenerate INSTALL
25451         * doc/INSTALL: Reflect recent autoconf update.
25452         * doc/INSTALL.ISO: Likewise.
25453         * doc/INSTALL.UTF-8: Likewise.
25454
25455 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25456
25457         acl: warn if ACL support is not detected
25458         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25459
25460 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25461
25462         * lib/nproc.h: Add extern "C" block for C++.
25463
25464 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25465             Bruno Haible  <bruno@clisp.org>
25466
25467         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25468         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25469         * doc/posix-functions/isalpha.texi: Likewise.
25470         * doc/posix-functions/isblank.texi: Likewise.
25471         * doc/posix-functions/iscntrl.texi: Likewise.
25472         * doc/posix-functions/isdigit.texi: Likewise.
25473         * doc/posix-functions/isgraph.texi: Likewise.
25474         * doc/posix-functions/islower.texi: Likewise.
25475         * doc/posix-functions/isprint.texi: Likewise.
25476         * doc/posix-functions/ispunct.texi: Likewise.
25477         * doc/posix-functions/isspace.texi: Likewise.
25478         * doc/posix-functions/isupper.texi: Likewise.
25479         * doc/posix-functions/isxdigit.texi: Likewise.
25480
25481 2009-10-18  Bruno Haible  <bruno@clisp.org>
25482
25483         Tests for module 'isblank'.
25484         * modules/isblank-tests: New file.
25485         * tests/test-isblank.c: New file.
25486
25487         New module 'isblank'.
25488         * lib/isblank.c: New file.
25489         * m4/isblank.m4: New file.
25490         * modules/isblank: New file.
25491         * doc/posix-functions/isblank.texi: Mention the new module.
25492
25493 2009-10-18  Bruno Haible  <bruno@clisp.org>
25494
25495         New module 'ctype'.
25496         * lib/ctype.in.h: New file.
25497         * m4/ctype.m4: New file.
25498         * modules/ctype: New file.
25499         * doc/posix-headers/ctype.texi: Mention the new module.
25500
25501 2009-10-18  Jim Meyering  <meyering@redhat.com>
25502
25503         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25504         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25505         right after its initialization, rather than farther down.
25506         Keeping these in close proximity makes it easier to ensure
25507         that each such variable is initialized.  E.g.,
25508
25509             LIB_CLOCK_GETTIME=
25510             AC_SUBST([LIB_CLOCK_GETTIME])
25511
25512         This change also increments these serial numbers.
25513         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25514         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25516
25517 2009-10-18  Bruno Haible  <bruno@clisp.org>
25518
25519         Don't let environment variables perturb build.
25520         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25521         (gl_PREREQ_GETHRXTIME): ... not here.
25522
25523 2009-10-18  Bruno Haible  <bruno@clisp.org>
25524
25525         Avoid symlink attack in localcharset module.
25526         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25527         (O_NOFOLLOW): Define fallback.
25528         (get_charset_aliases): Don't open the file if it is a symbolic link.
25529         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25530         gl_FCNTL_H.
25531         (gl_FCNTL_H): Require it.
25532         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25533         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25534         Reported by Fergal Glynn <fglynn@veracode.com>.
25535
25536 2009-10-18  Bruno Haible  <bruno@clisp.org>
25537
25538         Implement nproc for mingw.
25539         * lib/nproc.c: Include <windows.h>
25540         (num_processors): On native Windows platforms, try GetSystemInfo.
25541
25542 2009-10-18  Bruno Haible  <bruno@clisp.org>
25543
25544         Implement nproc for IRIX.
25545         * lib/nproc.c: Include <sys/sysmp.h>.
25546         (num_processors): On IRIX systems, try sysmp.
25547         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25548
25549 2009-10-18  Bruno Haible  <bruno@clisp.org>
25550
25551         Implement nproc for HP-UX.
25552         * lib/nproc.c: Include <sys/pstat.h>
25553         (num_processors): On HP-UX systems, try pstat_getdynamic.
25554         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25555         pstat_getdynamic.
25556
25557 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25558             Bruno Haible  <bruno@clisp.org>
25559
25560         Implement nproc for NetBSD, OpenBSD.
25561         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25562         (ARRAY_SIZE): New macro.
25563         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25564         * m4/nproc.m4: New file.
25565         * modules/nproc (Files): Add m4/nproc.m4.
25566         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25567         (Makefile.am): Instead, augment lib_SOURCES.
25568
25569 2009-10-18  Bruno Haible  <bruno@clisp.org>
25570
25571         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25572         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25573         sys/param.h.
25574
25575 2009-10-16  Eric Blake  <ebb9@byu.net>
25576
25577         utimensat: new module
25578         * modules/utimensat: New file.
25579         * lib/utimensat.c (utimensat): Likewise.
25580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25581         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25582         so we can work around Linux bugs.
25583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25584         * modules/sys_stat (Makefile.am): Substitute them.
25585         * lib/sys_stat.in.h (utimensat): Declare it.
25586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25587         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25588         * modules/utimensat-tests: New test.
25589         * tests/test-utimensat.c: Likewise.
25590
25591         utimens: let lutimens work on non-symlinks
25592         * lib/utimens.c (lutimens): Fall back to utimens rather than
25593         failing with ENOSYS, when file is not a symlink.
25594         (utimens): Reduce redirection.
25595         * tests/test-lutimens.h (test_lutimens): Update test to cover
25596         non-symlinks.
25597         * tests/test-utimens.h (test_utimens): Update test to cover
25598         symlinks.
25599         * tests/test-utimens.c (main): Update caller.
25600
25601         utimens: cache whether utimensat syscall works
25602         * lib/utimens.c (utimensat_works_really): New cache variable.
25603         (fdutimens, lutimens): Use it to avoid failing syscall.
25604
25605         test-stat-time, test-utimens: improve portability
25606         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25607         ext4 on alpha, and for cygwin.
25608         * tests/test-utimens-common.h: New file.
25609         (nap): Factor delays into single function.
25610         * tests/test-lutimens.h (test_lutimens): Use new header.
25611         * tests/test-futimens.h (test_futimens): Likewise.
25612         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25613         timestamps to occur from same machine, as was done previously for
25614         test_utimens.
25615         * modules/utimens-tests (Files): Ship new file.
25616         * modules/futimens-tests (Files): Likewise.
25617         Reported in part by Jim Meyering.
25618
25619         sys_stat: sort replacement declarations
25620         * lib/sys_stat.in.h: Sort declarations.
25621         * lib/futimens.c (futimens): Fix typo.
25622
25623 2009-10-15  Jim Meyering  <meyering@redhat.com>
25624
25625         don't let environment settings perturb build
25626         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25627         could cause a configure-time and/or build-time malfunction.
25628         Typically, a configure-time function-in-library test is performed
25629         via code like this:
25630
25631           LIB_VAR=
25632           AC_SUBST([LIB_VAR])
25633           prefix_saved_LIBS=$LIBS
25634             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25635                        [test "$ac_cv_search_FUNC" = "none required" ||
25636                         LIB_VAR=$ac_cv_search_FUNC])
25637           LIBS=$prefix_saved_LIBS
25638
25639         However, in each of the files affected by this change, the LIB_VAR=
25640         initialization was omitted.  Thus, when set in the environment, its
25641         value would propagate into generated Makefiles when FUNC is not found
25642         in LIB_NAME.
25643         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25644         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25646
25647 2009-10-14  Eric Blake  <ebb9@byu.net>
25648
25649         fchdir: avoid infinite recursion in mingw
25650         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25651         recursing.
25652
25653         test-stat-time: port to mingw
25654         * tests/test-stat-time.c (force_unlink): Return a value.
25655         (test_ctime) [W32]: Fix compilation error.
25656         (nap): Don't call usleep with too large an argument.  Use
25657         force_unlink.
25658         * doc/pastposix-functions/usleep.texi (usleep): Document the
25659         portability issue.
25660
25661 2009-10-13  Jim Meyering  <meyering@redhat.com>
25662
25663         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25664         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25665         * modules/pipe-filter-ii: Likewise.
25666         * modules/sys_socket-tests: Likewise.
25667         * modules/tsearch-tests: Likewise.
25668         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25669         (check): Depend on it.
25670
25671 2009-10-12  Eric Blake  <ebb9@byu.net>
25672
25673         utimens-tests: port to NFS file systems
25674         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25675         comparisons to avoid spurious failures from timestamp drift
25676         between NFS machines.
25677
25678 2009-10-12  Eric Blake  <ebb9@byu.net>
25679
25680         stat-time-tests: minor cleanups
25681         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25682         * tests/test-stat-time.c (nap): Separate assignment from call.
25683         Suggested by Paolo Bonzini and Bruno Haible.
25684
25685         sys_stat: guarantee struct timespec
25686         * lib/sys_stat.in.h (includes): Always include <time.h>
25687         * modules/sys_stat (Depends-on): Add time.
25688         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25689         mode_t permission values.
25690         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25691         get at subsecond timestamps.
25692
25693 2009-10-10  Eric Blake  <ebb9@byu.net>
25694
25695         futimens: new module
25696         * modules/futimens: New file.
25697         * lib/futimens.c (futimens): Likewise.
25698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25699         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25700         we can work around Linux bugs.
25701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25702         * modules/sys_stat (Makefile.am): Substitute them.
25703         * lib/sys_stat.in.h (futimens): Declare it.
25704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25705         * doc/posix-functions/futimens.texi (futimens): Likewise.
25706         * modules/futimens-tests: New test.
25707         * tests/test-futimens.c: Likewise.
25708
25709         utimens: introduce fdutimens
25710         * lib/utimens.h (fdutimens): New prototype.
25711         * lib/utimens.c (gl_futimens): Move guts...
25712         (fdutimens): ...to new interface.
25713         * tests/test-utimens.c (do_fdutimens): Use it.
25714
25715         utimens: add UTIME_NOW and UTIME_OMIT support
25716         * lib/utimens.c (validate_timespec, update_timespec): New helper
25717         functions.
25718         (gl_futimens, lutimens): Use them.
25719         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25720         stdbool, sys_stat.
25721         (Link): Mention resulting library dependency.
25722         * modules/utimecmp (Link): Likewise.
25723         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25724         (Makefile.am): Pick up library dependency.
25725         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25726         definition.
25727         * tests/test-sys_stat.c: Test the definitions.
25728         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25729         * NEWS: Document library dependency.
25730
25731         utimecmp: support symlink timestamps
25732         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25733         hashing when possible.  Use pathconf when available.
25734         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25735         * modules/utimecmp (Depends-on): Add lstat.
25736
25737         utimens: add lutimens interface
25738         * lib/utimens.c (lutimens): New function.
25739         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25740         * lib/utimens.h (lutimens): Declare new interface.
25741         * tests/test-utimens.c (main): Enhance test.
25742         * tests/test-lutimens.h (test_lutimens): New file.
25743         * modules/utimens-tests (Files): Distribute it.
25744         (Depends-on): Add symlink.
25745         (configure.ac): Check for usleep.
25746
25747         utimens: validate futimens usage
25748         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25749         fewer syscalls on failure later on.  Avoid compiler warning on
25750         mingw.
25751         * modules/utimens (Depends-on): Add dup2.
25752
25753         utimens: add test
25754         * modules/utimens-tests: New test.
25755         * tests/test-utimens.h: New file.
25756         * tests/test-futimens.h: Likewise.
25757         * tests/test-utimens.c: Likewise.
25758
25759         doc: mention timestamp portability issues
25760         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25761         instead.
25762         * doc/posix-functions/utime.texi (utime): Likewise.
25763         * doc/posix-functions/utimes.texi (utimes): Likewise.
25764         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25765         instead.
25766         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25767         module.
25768         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25769         Mention weakness with symlink timestamps.
25770         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25771         to utimensat/futimens instead.
25772         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25773
25774         test-dup2: enhance test
25775         * tests/test-dup2.c (main): Also check AT_FDCWD.
25776
25777         test-stat-time: avoid more spurious failures
25778         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25779         xfs; and avoid race if the two timestamps cross quantization edge.
25780
25781         relocatable: prefer 'file system' over 'filesystem'
25782         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25783         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25784         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25785         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25786         * lib/relocatable.c (compute_curr_prefix): Likewise.
25787
25788 2009-10-10  Jim Meyering  <meyering@redhat.com>
25789
25790         stat-time-tests: check for the usleep function
25791         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25792
25793 2009-10-10  Bruno Haible  <bruno@clisp.org>
25794
25795         * modules/xnanosleep: Put the Link section after the Include section.
25796
25797 2009-10-09  Eric Blake  <ebb9@byu.net>
25798
25799         dup2: work around FreeBSD 6.1 bug
25800         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25801         * doc/posix-functions/dup2.texi (dup2): Document it.
25802         Reported by Nelson H. F. Beebe and Jim Meyering.
25803
25804         test-stat-time: port to buggy NFS clients
25805         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25806         (test_ctime): Also skip test if mtime and ctime are skewed.
25807
25808         maint: prefer 'file system' over 'filesystem'
25809         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25810         * doc/posix-functions/lstat.texi (lstat): Likewise.
25811         * lib/file-has-acl.c (file_has_acl): Likewise.
25812         * lib/fwriteerror.c [TEST]: Likewise.
25813         * tests/test-areadlink.h (test_areadlink): Likewise.
25814         * tests/test-areadlinkat-with-size.c (main): Likewise.
25815         * tests/test-areadlinkat.c (main): Likewise.
25816         * tests/test-canonicalize-lgpl.c (main): Likewise.
25817         * tests/test-canonicalize.c (main): Likewise.
25818         * tests/test-fstatat.c (main): Likewise.
25819         * tests/test-linkat.c (main): Likewise.
25820         * tests/test-lstat.h (test_lstat_func): Likewise.
25821         * tests/test-mkdir.h (test_mkdir): Likewise.
25822         * tests/test-readlink.h (test_readlink): Likewise.
25823         * tests/test-remove.c (main): Likewise.
25824         * tests/test-rename.h (test_rename): Likewise.
25825         * tests/test-renameat.c (main): Likewise.
25826         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25827         * tests/test-symlink.h (test_symlink): Likewise.
25828         * tests/test-symlinkat.c (main): Likewise.
25829         * tests/test-unlink.h (test_unlink_func): Likewise.
25830         * tests/test-unlinkat.c (main): Likewise.
25831
25832         maint: make realtime library usage explicit
25833         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25834         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25835         * modules/settime (Link): Likewise.
25836         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25837
25838         test-stat-time: speed up execution
25839         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25840         warning on mingw.
25841         (nap): New helper function.
25842         (prepare_test): Use it to reduce sleep time.
25843         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25844         execution.
25845         * modules/stat-time-tests (configure.ac): Check for usleep.
25846
25847 2009-10-09  Jim Meyering  <meyering@redhat.com>
25848
25849         selinux-h: always use getfilecon wrappers
25850         * lib/getfilecon.c: New file.
25851         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25852         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25853         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25854         (fgetfilecon): Provide a stub.
25855         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25856         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25857         file unconditionally.
25858         When <selinux/selinux.h> is found, arrange to use wrappers.
25859         * modules/selinux-h (Files): Add getfilecon.c.
25860         (Makefile.am): Substitute include-next-related bits
25861         into the now-always-generated selinux/selinux.h file.
25862         * doc/glibc-functions/lgetfilecon.texi: New file.
25863         * doc/glibc-functions/fgetfilecon.texi: New file.
25864         * doc/glibc-functions/getfilecon.texi: New file.
25865         * doc/glibc-functions/getfilecon-desc.texi: New file.
25866         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25867         which to pull in the new files.
25868         * MODULES.html.sh (Misc): Add selinux-h.
25869
25870 2009-10-08  Jim Meyering  <meyering@redhat.com>
25871
25872         unistd: fix comment typo
25873         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25874
25875 2009-10-08  Eric Blake  <ebb9@byu.net>
25876
25877         areadlink: use SIZE_MAX consistently
25878         * modules/areadlink (Depends-on): Add stdint.
25879         * modules/areadlink-with-size (Depends-on): Likewise.
25880         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25881         gives NULL; drop sys/types, since unistd gives size_t; and add
25882         stdint for SIZE_MAX.
25883         (SIZE_MAX): Rely on headers.
25884         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25885         and add stdint.
25886         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25887         (SIZE_MAX): Likewise.
25888         (INITIAL_BUF_SIZE): Turn into enum.
25889         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25890
25891 2009-10-08  Jim Meyering  <meyering@redhat.com>
25892
25893         areadlinkat: avoid compilation failure
25894         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25895         Fix typo in comment.
25896
25897 2009-10-07  Eric Blake  <ebb9@byu.net>
25898
25899         areadlinkat-with-size: new module
25900         * modules/areadlinkat-with-size: New module.
25901         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25902         * lib/areadlink.h (areadlinkat): Declare it.
25903         * MODULES.html.sh (File system functions): Mention it.
25904         * modules/areadlinkat-with-size-tests: New test.
25905         * tests/test-areadlinkat-with-size.c: New file.
25906
25907         xreadlinkat: new module
25908         * modules/xreadlinkat: New module.
25909         * lib/xreadlinkat.c (xreadlinkat): New file.
25910         * lib/xreadlink.h (xreadlinkat): Declare it.
25911         * MODULES.html.sh (File system functions): Mention it.
25912
25913         areadlinkat: new module
25914         * lib/at-func.c (FUNC_FAIL): New define.
25915         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25916         * modules/areadlinkat: New module.
25917         * lib/linkat.c (areadlinkat): Move...
25918         * lib/areadlinkat.c (areadlinkat): ...to new file.
25919         * lib/areadlink.h (areadlinkat): Declare it.
25920         * modules/linkat (Depends-on): Add areadlinkat.
25921         * MODULES.html.sh (File system functions): Mention it.
25922         * modules/areadlinkat-tests: New test.
25923         * tests/test-areadlinkat.c: New file.
25924
25925         areadlink, areadlink-with-size: add tests
25926         * modules/areadlink-tests: New test.
25927         * modules/areadlink-with-size-tests: Likewise.
25928         * tests/test-areadlink.h: New file.
25929         * tests/test-areadlink.c: Likewise.
25930         * tests/test-areadlink-with-size.c: Likewise.
25931
25932         maint: minor cleanups
25933         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25934         _UNUSED_PARAMETER_ instead.
25935         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25936         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25937         * modules/linkat-tests (Files): Distribute test-link.h.
25938
25939         openat, utimens: whitespace cleanup
25940         * lib/openat.c: Prefer space throughout, rather than mix of 8
25941         spaces vs. tabs.
25942         * lib/at-func.c: Likewise.
25943         * lib/utimens.c: Likewise.
25944
25945         openat: avoid using wrong fd
25946         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25947         working directory chooses same fd.
25948         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25949
25950         mkdir, mkdirat: fix cygwin 1.5.x bug
25951         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25953         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25954         bug.
25955         (gl_PREREQ_MKDIR): Delete unused macro.
25956         * modules/mkdir (Files): Track file rename.
25957         (configure.ac): Update macro name.
25958         * modules/openat (Depends-on): Add mkdir.
25959         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25960
25961         mkdir, mkdirat: add tests
25962         * modules/mkdir-tests: New test.
25963         * tests/test-mkdir.h: New file.
25964         * tests/test-mkdir.c: Likewise.
25965         * tests/test-mkdirat.c: Likewise.
25966         * modules/openat-tests (Files): Add new files.
25967         (Makefile.am): Run new test.
25968
25969 2009-10-06  Eric Blake  <ebb9@byu.net>
25970
25971         doc: tweak *at function documentation
25972         * doc/posix-functions/faccessat.texi (faccessat): Mention
25973         known issue with replacement.
25974         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25975         * doc/posix-functions/linkat.texi (linkat): Likewise.
25976         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25977         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25978         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25979         * doc/posix-functions/renameat.texi (renameat): Likewise.
25980         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25981
25982         openat: fix GNU/Hurd bug in unlinkat
25983         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25984         broken.
25985         * doc/posix-functions/unlink.texi (unlink): Document this.
25986         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25987
25988         fdopendir: fix GNU/Hurd bug
25989         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25990         allowing non-directory fds.
25991         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25992         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25993         * modules/dirent (Makefile.am): Substitute it.
25994         * lib/dirent.in.h (fdopendir): Declare replacement.
25995         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25996         * tests/test-fdopendir.c (main): Test something other than
25997         /dev/null, since on Hurd that behaves like a directory.
25998
25999         test-symlink: port to GNU/Hurd
26000         * tests/test-symlink.h (test_symlink): Relax expected errno.
26001
26002         doc: tweak more cygwin information
26003         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
26004         now compatible with glibc.
26005         * doc/posix-functions/getopt.texi (getopt): Likewise.
26006
26007         getopt-gnu: add another test
26008         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
26009         guarantee behavior relied on by m4.
26010         * tests/test-getopt.c (main): Use it.
26011         * modules/getopt-posix-tests (Depends-on): Add setenv.
26012         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
26013
26014         getopt: fix compilation on darwin
26015         * lib/getopt.in.h (includes): Leave breadcrumbs during system
26016         include.
26017         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
26018         Reported by Ludovic Courtès.
26019
26020 2009-10-06  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/size_max (Description): Discourage its use.
26023         Reported by Simon Josefsson.
26024
26025 2009-10-06  Jim Meyering  <meyering@redhat.com>
26026
26027         linkat: avoid compilation failure
26028         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
26029
26030 2009-10-05  Eric Blake  <ebb9@byu.net>
26031
26032         linkat: support Linux 2.6.17
26033         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
26034         linkat on Linux, but allow cache variable override.
26035         * lib/linkat.c (rpl_linkat): Define override.
26036         * modules/linkat (Depends-on): Add symlinkat.
26037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
26038         * modules/unistd (Makefile.am): Substitute it.
26039         * lib/unistd.in.h (linkat): Declare replacement.
26040         Reported by Pádraig Brady.
26041
26042         quotearg: port test to systems with C.UTF-8 locale
26043         * tests/test-quotearg.c (struct result_strings): Add another
26044         member, differentiating between C.ASCII and C.UTF-8 handling.
26045         (compare_strings): Add parameter.
26046         (main): Adjust all callers.
26047
26048         getopt: avoid clash with FreeBSD _getopt_internal
26049         * lib/getopt.in.h (_getopt_internal): Override the name.
26050         * lib/getopt_int.h (includes): Pick up any overrides.
26051         Reported by Reuben Thomas.
26052
26053         hash: allow C89 compilation
26054         * lib/hash.c (check_tuning): Move declaration before statement.
26055         Reported by Reuben Thomas.
26056
26057 2009-10-05  Karl Berry  <karl@gnu.org>
26058
26059         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
26060
26061 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
26062             Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/uname.c (uname): Use a table-driven algorithm to compute
26065         Windows NT versions.
26066
26067 2009-10-04  Bruno Haible  <bruno@clisp.org>
26068
26069         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
26070         program_invocation_short_name.
26071         * modules/progname (configure.ac): Test for presence of
26072         program_invocation_short_name.
26073         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
26074
26075 2009-10-04  Bruno Haible  <bruno@clisp.org>
26076
26077         * lib/progname.c (set_program_name): Fix comment.
26078         Reported by Jim Meyering.
26079
26080 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26081             Bruno Haible  <bruno@clisp.org>
26082
26083         * lib/uname.c: Include <string.h>.
26084         (uname): Do only one call to GetVersionEx in the common case.
26085
26086 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
26087             Bruno Haible  <bruno@clisp.org>
26088
26089         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
26090         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
26091         (uname): Add support for Windows CE and various non-x86 CPU types.
26092
26093 2009-10-03  Bruno Haible  <bruno@clisp.org>
26094
26095         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
26096         invocation to tests/configure.ac.
26097         Reported by Ian Beckwith <ianb@erislabs.net>.
26098
26099 2009-10-02  Eric Blake  <ebb9@byu.net>
26100
26101         fchdir: avoid compiler warning
26102         * lib/fchdir.c (canonicalize_file_name)
26103         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
26104
26105         test-open: support mingw errno values
26106         * tests/test-open.h (test_open): Relax test.
26107         * tests/test-fopen.h (test_fopen): Likewise.
26108         * tests/test-openat-safer.c (main): Likewise.
26109
26110         open: fix opening directory on mingw
26111         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
26112
26113         test-open: on GNU/Hurd, /dev/null is a directory
26114         * tests/test-fopen.h (main): Rename...
26115         (test_fopen): ...to this.  Use a guaranteed non-directory when
26116         confirming open behavior on trailing slash.
26117         * tests/test-openat-safer.c (main): Likewise.
26118         * tests/test-open.h (main): Likewise....
26119         (test_open): ...to this.
26120         * tests/test-fopen.c (main): Adjust caller.
26121         * tests/test-fopen-safer.c (main): Likewise.
26122         * tests/test-open.c (main): Likewise.
26123         * tests/test-fcntl-safer.c (main): Likewise.
26124         Reported by Samuel Thibault.
26125
26126         rename, fchdir: don't ignore chdir failure
26127         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
26128         * lib/rename.c (rpl_rename) [W32]: Likewise.
26129         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
26130         an empty destination directory if source cannot be renamed,
26131         although there is still possibility for failure.
26132         * doc/posix-functions/rename.texi (rename): Document the race.
26133         Reported by Jim Meyering.
26134
26135         maint: cleanup whitespace in recent commits
26136         * lib/rename.c (rpl_rename): Remove tabs.
26137         * tests/test-link.h (test_link): Likewise.
26138         * lib/fchdir.c (get_name): Likewise.
26139         Reported by Jim Meyering.
26140
26141 2009-10-02  Ben Pfaff  <blp@gnu.org>
26142
26143         relocatable-prog-wrapper: Add missing dependency on
26144         double-slash-root.
26145         * modules/relocatable-prog-wrapper: Add dependency.
26146         Reported by Ian Beckwith <ianb@erislabs.net>.
26147
26148 2009-10-02  Eric Blake  <ebb9@byu.net>
26149
26150         renameat: fix Solaris bugs
26151         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
26152         needed fixing.
26153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
26154         * modules/stdio (Makefile.am): Substitute it.
26155         * lib/stdio.in.h (renameat): Declare replacement.
26156         * lib/renameat.c (rpl_renameat): Implement fix.
26157
26158         renameat: new module
26159         * modules/renameat: New file.
26160         * lib/renameat.c (renameat): Likewise.
26161         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
26162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26163         * modules/stdio (Makefile.am): Substitute them.
26164         * lib/stdio.in.h (renameat): Declare it.
26165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26166         * doc/posix-functions/renameat.texi (renameat): Likewise.
26167         * modules/renameat-tests: New test.
26168         * tests/test-renameat.c: Likewise.
26169
26170         rename: fix mingw bugs
26171         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
26172         directory overwrite bugs.
26173
26174         rename: fix another cygwin 1.5 bug
26175         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
26176         checks.
26177         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
26178         unnecessary cygwin workarounds.  Also work around bug with moving
26179         full directory onto an empty one.
26180         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
26181
26182         rename-dest-slash: merge into rename module
26183         * modules/rename-dest-slash (Status): Mark obsolete.
26184         (Depends-on): Add rename.
26185         (Files): Let rename do it all.
26186         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
26187         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
26188         * m4/rename-dest-slash.m4: ...so this file can be deleted.
26189         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
26190         * lib/rename.c (rpl_rename): Update comments.
26191
26192         rename: fix cygwin 1.5.x bugs
26193         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
26194         * lib/rename.c (rpl_rename): Work around them.
26195         * modules/rename (Depends-on): Add same-inode.
26196
26197         rename: fix Solaris 10 bug
26198         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26199         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
26200         was the only bug.
26201
26202         rename: fix Solaris 9 bug
26203         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
26204         on non-directory.  Avoid calling exit.
26205         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
26206         strdup.
26207         * modules/rename-tests (Depends-on): Drop lstat.
26208         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
26209         (gl_PREREQ_RENAME): Delete unused macro.
26210
26211         rename-dest-slash: fix NetBSD bug
26212         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
26213         links.
26214         * modules/rename-dest-slash (Depends-on): Add same-inode.
26215
26216         rename-tests: new test, exposes several platform bugs
26217         * modules/rename-tests: New file.
26218         * tests/test-rename.h: Likewise.
26219         * tests/test-rename.c: Likewise.
26220         * doc/posix-functions/rename.texi (rename): Improve documentation,
26221         including bugs that will eventually be fixed in gnulib.
26222
26223 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
26224
26225         * lib/uname.c: Include <stdlib.h>
26226         (uname): Assume version info is available.
26227
26228 2009-10-02  Jim Meyering  <meyering@redhat.com>
26229
26230         gnu-web-doc-update: correct --help output
26231         * build-aux/gnu-web-doc-update: Make --help output relevant.
26232
26233         gnu-web-doc-update: add standard options
26234         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
26235
26236         gnu-web-doc-update: New module.
26237         Use this script to automatically update the on-line web documentation
26238         for your GNU project at http://www.gnu.org/software/$pkg/manual/
26239         * modules/gnu-web-doc-update: New file, from coreutils.
26240         * build-aux/gnu-web-doc-update: New script.
26241
26242 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
26243
26244         link: LoadLibrary is not needed.
26245         * lib/link.c: Use GetModuleHandle.
26246
26247 2009-10-01  Eric Blake  <ebb9@byu.net>
26248
26249         getopt: bump serial number
26250         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
26251         change.
26252
26253         tests: tighten link, rmdir, and remove tests
26254         * tests/test-link.h (includes): No need to use <config.h> here.
26255         Clean up if directory hard link was created, otherwise test for
26256         trailing '.'.
26257         * tests/test-linkat.c (main): Simplify.
26258         * tests/test-remove.c (main): Enhance test for trailing '.'.
26259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26260
26261 2009-10-01  Jim Meyering  <meyering@redhat.com>
26262
26263         maint.mk: requiring "make major" was annoying, for a "minor" release.
26264         What is intended is "stable", to contrast with alpha and beta,
26265         so require "make stable", not "make major".
26266         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
26267         (get_tool_versions): Likewise.
26268         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
26269
26270 2009-09-30  Ben Pfaff  <blp@gnu.org>
26271
26272         Fix broken build of replacement for Windows tmpfile().
26273         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
26274         flags argument added along with the 'mkostemp' module.
26275
26276 2009-09-28  Bruno Haible  <bruno@clisp.org>
26277
26278         Avoid identifier clash with POSIX function 'remove' defined as a macro.
26279         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
26280         to 'remove_elt'.
26281         (gl_list_remove): Update.
26282         * lib/gl_list.c (gl_list_remove): Update.
26283         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
26284         to 'remove_elt'.
26285         (gl_oset_remove): Update.
26286         * lib/gl_list.c (gl_oset_remove): Update.
26287         Reported by Eric Blake.
26288
26289 2009-09-28  Eric Blake  <ebb9@byu.net>
26290
26291         doc: mention yet more cygwin 1.7 status
26292         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
26293         cygwin.
26294         * doc/glibc-functions/execvpe.texi (execvpe): New file.
26295         * doc/gnulib.texi (Glibc unistd.h): Mention it.
26296
26297         argp: fix test failure
26298         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
26299         that are not upper-case.  Pass correct range to tolower.
26300
26301 2009-09-27  Jim Meyering  <meyering@redhat.com>
26302
26303         test-yesno: work around sparc-dash here-document infelicity
26304         Without this change, the literal \177 byte in a here document
26305         would make dash 0.5.5.1-3 access uninitialized memory.
26306         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
26307         Instead, use a marker, "@", and filter through tr to create the desired
26308         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
26309
26310 2009-09-27  Bruno Haible  <bruno@clisp.org>
26311
26312         Disable untested support for new flavours of ACLs on AIX.
26313         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
26314         progress.
26315         * lib/set-mode-acl.c (qset_acl): Likewise.
26316
26317 2008-12-07  Bruno Haible  <bruno@clisp.org>
26318
26319         Add support for new flavours of ACLs on AIX. (Untested.)
26320         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
26321         (file_has_acl): Add support for newer AIX.
26322         * lib/set-mode-acl.c (qset_acl): Likewise.
26323         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
26324         Rainer Tammer <tammer@tammer.net>.
26325
26326 2009-09-26  Eric Blake  <ebb9@byu.net>
26327
26328         argp: fix compilation of getopt
26329         * lib/getopt.in.h (includes): Use different guard than glibc.
26330         Reported by Sergey Poznyakoff.
26331
26332         doc: mention more cygwin 1.7 status
26333         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26334         bug.
26335         * doc/posix-functions/execl.texi (execl): Likewise.
26336         * doc/posix-functions/execle.texi (execle): Likewise.
26337         * doc/posix-functions/execlp.texi (execlp): Likewise.
26338         * doc/posix-functions/execv.texi (execv): Likewise.
26339         * doc/posix-functions/execve.texi (execve): Likewise.
26340         * doc/posix-functions/execvp.texi (execvp): Likewise.
26341         * doc/glibc-functions/canonicalize_file_name.texi
26342         (canonicalize_file_name): Cygwin 1.7 now provides this.
26343         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26344         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26345         on AT_SYMLINK_NOFOLLOW.
26346
26347 2009-09-24  Eric Blake  <ebb9@byu.net>
26348
26349         test-linkat: make test more robust
26350         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26351
26352         getopt: fix inclusion guards for cygwin
26353         * modules/getopt-posix (Depends-on): Add include-next.
26354         (Makefile.am): Substitute more items in replacement header.
26355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26356         <getopt.h>.
26357         * lib/getopt.in.h (includes): Use split inclusion guard, and
26358         prefer <getopt.h> over include <unistd.h> when one is present.
26359         (option): Also override name of 'struct option'.
26360
26361         same-inode: revert prior change; it is not yet ready
26362         * NEWS: Undo mention of this change.
26363         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26364         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26365         * lib/cycle-check.c (cycle_check): Likewise.
26366         * lib/same.c (same_name): Likewise.
26367         * lib/at-func2.c (at_func2): Likewise.
26368
26369 2009-09-23  Eric Blake  <ebb9@byu.net>
26370
26371         linkat: new module
26372         * modules/linkat: New file.
26373         * lib/at-func2.c (at_func2): Likewise.
26374         * lib/linkat.c (linkat): Likewise.
26375         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26376         * lib/openat-priv.h (at_func2): Add declaration.
26377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26378         * modules/unistd (Makefile.am): Substitute them.
26379         * lib/unistd.in.h (linkat): Declare it.
26380         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26381         * doc/posix-functions/linkat.texi (linkat): Likewise.
26382         * doc/posix-functions/link.texi (link): Tweak wording.
26383         * tests/test-link.c (main): Move guts...
26384         * tests/test-link.h (test_link): ...into new file.
26385         * modules/linkat-tests: New test.
26386         * tests/test-linkat.c: Likewise.
26387         * modules/link-tests (Files): Ship new file.
26388         (Depends-on): Add stdbool.
26389
26390         dirname: add library-safe mdir_name
26391         * lib/dirname.h (mdir_name): New prototype.
26392         * lib/dirname.c (dir_name): Move guts...
26393         (mdir_name): ...to new function that avoids xalloc_die.
26394
26395         fchdir: another mingw fix
26396         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26397         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26398         on mingw (where it has not yet been ported), and make it optional
26399         elsewhere.
26400         (_gl_register_fd): Use it.
26401
26402         same-inode: make SAME_INODE tri-state, to port to mingw
26403         * NEWS: Mention this change.
26404         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26405         st_ino always being 0.
26406         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26407         * lib/cycle-check.c (cycle_check): Likewise.
26408         * lib/same.c (same_name): Likewise.
26409
26410         lstat: avoid mingw compilation error
26411         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26413         lstat ourselves.
26414         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26415         was adequate.
26416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26417         the checks for lstat.
26418         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26419
26420         link: fix test failure on Solaris 9
26421         * lib/link.c (rpl_link): Don't assume link will catch bogus
26422         trailing slash on source.
26423
26424         test-symlinkat: enhance test
26425         * tests/test-readlink.c (main): Move guts...
26426         * tests/test-readlink.h (test_readlink): ...into new file.
26427         * tests/test-symlink.c (main): Move guts...
26428         * tests/test-symlink.h (test_symlink): ...into new file.
26429         * tests/test-symlinkat.c (main): Use new files for further
26430         coverage.
26431         (do_symlink, do_readlink): New helper functions.
26432         * modules/symlink-tests (Files): Ship new file.
26433         (Depends-on): Add stdbool.
26434         * modules/readlink-tests (Files): Ship new file.
26435         (Depends-on): Add stdbool.
26436         * modules/symlinkat-tests (Files): Use new files.
26437
26438 2009-09-23  Eric Blake  <ebb9@byu.net>
26439
26440         readlink: document portability issue with symlink length
26441         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26442         systems have bogus st_size on symlinks, and mention the
26443         areadlink-with-size module.
26444         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26445         * doc/posix-functions/readlink.texi (readlink): Mention the
26446         areadlink module, and ERANGE failure.
26447         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26448         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26449
26450         readlink: fix Solaris 9 bug with trailing slash
26451         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26452         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26453         * doc/posix-functions/readlink.texi (readlink): Document this.
26454         * modules/readlink-tests: New test.
26455         * tests/test-readlink.c: Likewise.
26456
26457         readlink: fix cygwin 1.5.x bug with return type
26458         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26459         * lib/unistd.in.h (readlink): Use ssize_t.
26460         * lib/readlink.c (readlink): Likewise.
26461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26462         * modules/unistd (Makefile.am): Substitute it.
26463         * lib/unistd.in.h (readlink): Declare replacement.
26464         * doc/posix-functions/readlink.texi (readlink): Document this.
26465
26466         symlink: use throughout gnulib
26467         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26468         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26469         symlink is not used.
26470         * modules/symlinkat (Depends-on): Add symlink.
26471         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26472         * modules/canonicalize-tests (Depends-on): Likewise.
26473         * modules/lstat-tests (Depends-on): Likewise.
26474         * modules/openat-tests (Depends-on): Likewise.
26475         * modules/remove-tests (Depends-on): Likewise.
26476         * modules/rmdir-tests (Depends-on): Likewise.
26477         * modules/unlink-tests (Depends-on): Likewise.
26478         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26479         * tests/test-canonicalize.c (symlink): Likewise.
26480         * tests/test-fstatat.c (symlink): Likewise.
26481         * tests/test-lstat.c (symlink): Likewise.
26482         * tests/test-remove.c (symlink): Likewise.
26483         * tests/test-rmdir.c (symlink): Likewise.
26484         * tests/test-unlink.c (symlink): Likewise.
26485         * tests/test-unlinkat.c (symlink): Likewise.
26486
26487         symlink: new module, for Solaris 9 bug
26488         * modules/symlink: New file.
26489         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26490         * lib/symlink.c: Likewise.
26491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26492         * modules/unistd (Makefile.am): Substitute them.
26493         * lib/unistd.in.h (symlink): Declare replacement.
26494         * MODULES.html.sh (File system functions): Mention it.
26495         * doc/posix-functions/symlink.texi (symlink): Likewise.
26496         * modules/symlink-tests: New test.
26497         * tests/test-symlink.c: Likewise.
26498
26499 2009-09-23  Bruno Haible  <bruno@clisp.org>
26500
26501         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26502         when needed.
26503         Test case: gnulib-tool --import --with-tests atexit inttypes.
26504         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26505
26506 2009-09-23  Bruno Haible  <bruno@clisp.org>
26507
26508         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26509         subcommand, not in a subshell.
26510
26511 2009-09-22  Eric Blake  <ebb9@byu.net>
26512
26513         unistd: sort replacement declarations
26514         * lib/unistd.in.h: Sort declarations.
26515
26516         open, openat: minor optimization
26517         * lib/open.c (open): If open succeeded, len is non-zero.
26518         * lib/openat.c (rpl_openat): Likewise.
26519
26520         link-follow: ensure correct result
26521         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26522         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26523         distinguish between possible failures.
26524
26525 2009-09-21  Eric Blake  <ebb9@byu.net>
26526
26527         fts: avoid compiler warning
26528         * lib/fts.c (dirent_inode_sort_may_be_useful)
26529         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26530
26531 2009-09-19  Bruno Haible  <bruno@clisp.org>
26532
26533         * lib/progreloc.c (canonicalize_file_name): New declaration.
26534
26535 2009-09-19  Eric Blake  <ebb9@byu.net>
26536
26537         link: fix quoting
26538         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26539
26540         openat: fix openat bugs on Solaris 9
26541         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26542         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26543         * modules/openat (Depends-on): Add open.
26544         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26545         * modules/fcntl-h (Makefile.am): Substitute it.
26546         * lib/fcntl.in.h (openat): Declare replacement.
26547         * doc/posix-functions/openat.texi (openat): Document this.
26548
26549         openat: move fstatat and unlinkat into correct files
26550         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26551         compiled.
26552         * lib/openat.c (fstatat, unlinkat): Move...
26553         * lib/fstatat.c (fstatat): ...into correct files.
26554         * lib/unlinkat.c (unlinkat): Likewise.
26555
26556         openat: fix unlinkat bugs on Solaris 9
26557         * lib/unlinkat.c (unlinkat): New file.
26558         * modules/openat (Depends-on): Add unlink.
26559         (Files): Distribute it.
26560         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26561         trailing slash behavior is broken.
26562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26563         * modules/unistd (Makefile.am): Substitute it.
26564         * lib/unistd.in.h (unlinkat): Declare replacement.
26565         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26566
26567         openat: fix fstatat bugs on Solaris 9
26568         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26569         stat.
26570         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26571
26572         test-unlinkat: enhance test, to expose Solaris 9 bug
26573         * tests/test-unlink.c (main): Factor guts...
26574         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26575         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26576         * tests/test-rmdir.c (main): Adjust caller.
26577         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26578         (unlinker): New helper function.
26579         (rmdirat): Enhance check.
26580         * modules/rmdir-tests (Depends-on): Add stdbool.
26581         * modules/unlink-tests (Depends-on): Likewise.
26582         (Files): Add test-unlink.h.
26583         * modules/openat-tests (Files): Likewise.
26584         (Depends-on): Add unlinkdir.
26585
26586         test-fstatat: new test, to expose Solaris 9 bugs
26587         * tests/test-stat.c (main): Factor guts...
26588         * tests/test-stat.h (test_stat_func): ...into new file.
26589         * tests/test-lstat.c (main): Factor guts...
26590         * tests/test-lstat.h (test_lstat_func): ...into new file.
26591         * tests/test-fstatat.c: New file.
26592         * modules/stat-tests (Files): Add test-stat.h.
26593         * modules/lstat-tests (Files): Add test-lstat.h.
26594         (Depends-on): Add stdbool.
26595         * modules/openat-tests (Depends-on): Add pathmax.
26596         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26597         (Makefile.am): Run new test.
26598
26599         remove: new module, for mingw and Solaris 9 bugs
26600         * modules/remove: New file.
26601         * lib/remove.c: Likewise.
26602         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26604         * modules/stdio (Makefile.am): Use them.
26605         * lib/stdio.in.h (remove): Declare replacement.
26606         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26607         * doc/posix-functions/remove.texi (remove): Likewise.
26608         * modules/remove-tests: New test.
26609         * tests/test-remove.c: Likewise.
26610
26611         unlink: new module, for Solaris 9 bug
26612         * modules/unlink: New file.
26613         * lib/unlink.c: Likewise.
26614         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26616         * modules/unistd (Makefile.am): Use them.
26617         * lib/unistd.in.h (stat): Declare replacement.
26618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26619         * doc/posix-functions/unlink.texi (unlink): Likewise.
26620         * modules/unlink-tests: New test.
26621         * tests/test-unlink.c: Likewise.
26622
26623         lstat: fix Solaris 9 bug
26624         * lib/lstat.c (lstat): Also check for trailing slash on
26625         non-symlink, non-directories.  Use stat module to simplify logic.
26626         * doc/posix-functions/lstat.texi (lstat): Document it.
26627         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26628         (configure.ac): Check for symlink.
26629         * tests/test-lstat.c (main): Add more tests.
26630
26631         stat: add as dependency to other modules
26632         * modules/chown (Depends-on): Add stat.
26633         * modules/euidaccess (Depends-on): Likewise.
26634         * modules/fchdir (Depends-on): Likewise.
26635         * modules/isdir (Depends-on): Likewise.
26636         * modules/link (Depends-on): Likewise.
26637         * modules/lstat (Depends-on): Likewise.
26638         * modules/mkdir-p (Depends-on): Likewise.
26639         * modules/modechange (Depends-on): Likewise.
26640         * modules/open (Depends-on): Likewise.
26641         * modules/readlink (Depends-on): Likewise.
26642         * modules/same (Depends-on): Likewise.
26643
26644         stat: fix Solaris 9 bug
26645         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26646         slash.
26647         * lib/stat.c (rpl_stat): Work around it.
26648         * doc/posix-functions/stat.texi (stat): Update documentation.
26649
26650         stat: new module, for mingw bug
26651         * modules/stat: New file.
26652         * lib/stat.c: Likewise.
26653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26654         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26655         * modules/sys_stat (Makefile.am): Use them.
26656         * lib/sys_stat.in.h (stat): Declare replacement.
26657         * lib/openat.c (fstatat): Deal with lstat and stat being function
26658         macros.
26659         * modules/openat (Depends-on): Add inline.
26660         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26661         * doc/posix-functions/stat.texi (stat): Likewise.
26662         * modules/stat-tests: New test.
26663         * tests/test-stat.c: Likewise.
26664
26665 2009-09-19  Jim Meyering  <meyering@redhat.com>
26666
26667         syntax-check: detect unnecessary inclusion of canonicalize.h
26668         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26669
26670 2009-09-19  Eric Blake  <ebb9@byu.net>
26671
26672         canonicalize-lgpl: adjust clients to use correct header
26673         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26674         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26675         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26676         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26677         * lib/progreloc.c (includes): Likewise.
26678
26679 2009-09-19  Jim Meyering  <meyering@redhat.com>
26680
26681         test-posixtm.c: correct a comment
26682         * tests/test-posixtm.c: Correct first-line comment.
26683         Spotted by Eric Blake.
26684
26685 2009-09-16  Jim Meyering  <meyering@redhat.com>
26686
26687         posixtm-tests: make T const-correct; add a test case
26688         * tests/test-posixtm.c (T): Declare const.
26689         Add a test for -(2^31+1).
26690         Remove useless can-succeed-only-in-2002 test.
26691
26692         posixtm-tests: adjust the sole failing test
26693         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26694         expected output matches what mktime now produces.  Cross-checked via
26695         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26696
26697         posixtm: move #ifdef'd tests into a new module
26698         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26699         * tests/test-posixtm.c: ... this new file.
26700         * modules/posixtm-tests: New module.
26701
26702 2009-09-19  Eric Blake  <ebb9@byu.net>
26703
26704         openat: simplify use of at-func.c
26705         * lib/at-func.c (includes): Include prerequisites here, to
26706         simplify requirements on client files.
26707         * lib/openat-priv.h: Add double-inclusion guard.
26708         * lib/faccessat.c (includes): Simplify.
26709         * lib/fchmodat.c (includes): Likewise.
26710         * lib/fchownat.c (includes): Likewise.
26711         * lib/mkdirat.c (includes): Likewise.
26712         * lib/mkfifoat.c (includes): Likewise.
26713         * lib/symlinkat.c (includes): Likewise.
26714
26715         openat: allow return of fd 0
26716         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26717         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26718         unistd-safer.
26719         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26720         <fcntl.h>; this module does not leak fds.
26721         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26722         must be allowed to return 0, leaving openat_safer to add the
26723         safety.
26724         (openat_permissive): Avoid writing to just-opened fd 2 if
26725         restoring the current directory fails.
26726         * lib/openat-die.c (openat_restore_fail): Add comment.
26727         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26728         (save_cwd): Guarantee safe fd, but without use of open_safer.
26729         * tests/test-openat.c: New test.
26730         * modules/openat-tests (Files, Makefile.am): Distribute and build
26731         new file.
26732
26733         relocatable-prog-wrapper: fix build
26734         * modules/relocatable-prog-wrapper (Files): Update name of
26735         canonicalize m4 file, broken on 2009-09-17.
26736         Reported by emad hajjar <aleppos@hotmail.com>.
26737
26738 2009-09-19  Bruno Haible  <bruno@clisp.org>
26739
26740         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26741         * lib/safe-alloc.c: Likewise.
26742         Reported by Ian Beckwith <ianb@erislabs.net>.
26743
26744 2009-09-18  Bruno Haible  <bruno@clisp.org>
26745
26746         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26747         Reported by <erobles@sensacd.com.mx>.
26748
26749 2009-09-17  Eric Blake  <ebb9@byu.net>
26750
26751         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26752         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26753         slashes when checking if last component is missing.
26754         * tests/test-canonicalize.c (main): Test this.
26755
26756         canonicalize, canonicalize-lgpl: honor // if distinct from /
26757         * modules/canonicalize (Files): Add double-slash-root.m4.
26758         * modules/canonicalize-lgpl (Files): Likewise.
26759         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26760         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26761         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26762         fallback definition.
26763         (canonicalize_filename_mode): Use it to protect //.
26764         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26765         (__realpath): Likewise.
26766         * tests/test-canonicalize.c (main): Test this.
26767         * tests/test-canonicalize-lgpl.c (main): Likewise.
26768         * modules/canonicalize-tests (Depends-on): Add same-inode.
26769         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26770
26771         canonicalize-lgpl: fix glibc bug with trailing slash
26772         * m4/canonicalize-lgpl.m4: Move contents...
26773         * m4/canonicalize.m4: ...here.
26774         (gl_CANONICALIZE_LGPL): Factor realpath check...
26775         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26776         glibc 2.3.5 bug, fixed 2005-04-27.
26777         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26778         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26779         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26780         * modules/canonicalize-lgpl (Files): Manage file rename.
26781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26782         * modules/stdlib (Makefile.am): Substitute witness.
26783         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26784         is needed.
26785         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26786         replacement is required.
26787         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26788         * doc/glibc-functions/canonicalize_file_name.texi
26789         (canonicalize_file_name): Document this.
26790         * doc/posix-functions/realpath.texi (realpath): Likewise.
26791
26792         canonicalize-lgpl: reject non-directory with trailing slash
26793         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26794         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26795         catches failures in glibc 2.3.5.
26796         * tests/test-canonicalize.c (main): Likewise.
26797
26798         canonicalize-lgpl: use native realpath if it works
26799         * lib/canonicalize-lgpl.c (realpath): Guard with
26800         FUNC_REALPATH_WORKS.
26801         * lib/stdlib.in.h (realpath): Make declaration optional based on
26802         HAVE_REALPATH.
26803         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26804         native realpath works.
26805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26806         * modules/stdlib (Makefile.am): Substitute witness.
26807
26808         canonicalize, canonicalize-lgpl: use <stdlib.h>
26809         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26810         (Include): Mention <stdlib.h>.
26811         (configure.ac): Mention functions we provide.
26812         * modules/canonicalize (configure.ac): Likewise.
26813         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26814         realpath if canonicalize_file_name is missing.
26815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26816         * modules/stdlib (Makefile.am): Substitute witnesses.
26817         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26818         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26819         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26820         * NEWS: Document this.
26821         * doc/glibc-functions/canonicalize_file_name.texi
26822         (canonicalize_file_name): Likewise.
26823         * doc/posix-functions/realpath.texi (realpath): Likewise.
26824         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26825
26826         test-canonicalize: consolidate into single C program
26827         * tests/test-canonicalize.sh: Delete; move setup into...
26828         * tests/test-canonicalize.c (main): ...the program, making it
26829         easier to run in debugger.  Add some tests.
26830         * modules/canonicalize-tests (Files): Remove unused file.
26831         (Depends-on): Add progname.
26832         (configure.ac, Makefile.am): Simplify.
26833
26834         test-canonicalize-lgpl: consolidate into single C program
26835         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26836         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26837         easier to run in debugger.  Add some tests.
26838         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26839         (configure.ac, Makefile.am): Simplify.
26840
26841         canonicalize: avoid resolvepath
26842         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26843         unnecessary checks.
26844         * lib/canonicalize.c (includes): Simplify.
26845         (canonicalize_file_name): Drop resolvepath implementation.
26846         * modules/canonicalize (Depends-on): Drop filenamecat.
26847
26848         canonicalize: don't lose errno
26849         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26850         over calls to free.
26851
26852         canonicalize: simplify errno handling
26853         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26854         assignment.
26855
26856         canonicalize, canonicalize-lgpl: update module dependencies
26857         * modules/canonicalize (Depends-on): Add extensions, lstat,
26858         pathmax, stdlib.
26859         (Files): Drop pathmax.h.
26860         (configure.ac): Adjust macro name.
26861         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26862         lstat, stdlib, sys_stat.
26863         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26864         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26865         extensions.
26866         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26867         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26868         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26869         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26870         declaration, if available.
26871         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26872         we can rely on the readlink module.
26873         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26874         (includes): Use <unistd.h> unconditionally.
26875
26876 2009-09-17  Eric Blake  <ebb9@byu.net>
26877
26878         maint: make Include sections of modules consistent
26879         * modules/alloca: Use only header name; no need to list #include.
26880         * modules/alloca-opt: Likewise.
26881         * modules/arpa_inet: Likewise.
26882         * modules/canon-host: Likewise.
26883         * modules/configmake: Likewise.
26884         * modules/dirent: Likewise.
26885         * modules/eealloc: Likewise.
26886         * modules/environ: Likewise.
26887         * modules/fchdir: Likewise.
26888         * modules/fcntl: Likewise.
26889         * modules/fcntl-h: Likewise.
26890         * modules/gethrxtime: Likewise.
26891         * modules/gettime: Likewise.
26892         * modules/ignore-value: Likewise.
26893         * modules/inet_ntop: Likewise.
26894         * modules/inet_pton: Likewise.
26895         * modules/inttypes: Likewise.
26896         * modules/isnand-nolibm: Likewise.
26897         * modules/isnanf-nolibm: Likewise.
26898         * modules/mbchar: Likewise.
26899         * modules/mbfile: Likewise.
26900         * modules/mbiter: Likewise.
26901         * modules/mbuiter: Likewise.
26902         * modules/netdb: Likewise.
26903         * modules/netinet_in: Likewise.
26904         * modules/nproc: Likewise.
26905         * modules/pagealign_alloc: Likewise.
26906         * modules/poll: Likewise.
26907         * modules/printf-frexp: Likewise.
26908         * modules/pthread: Likewise.
26909         * modules/putenv: Likewise.
26910         * modules/random_r: Likewise.
26911         * modules/relocatable-prog: Likewise.
26912         * modules/search: Likewise.
26913         * modules/select: Likewise.
26914         * modules/selinux-h: Likewise.
26915         * modules/settime: Likewise.
26916         * modules/signal: Likewise.
26917         * modules/size_max: Likewise.
26918         * modules/socklen: Likewise.
26919         * modules/ssize_t: Likewise.
26920         * modules/stdarg: Likewise.
26921         * modules/stdbool: Likewise.
26922         * modules/stddef: Likewise.
26923         * modules/stdint: Likewise.
26924         * modules/stdio: Likewise.
26925         * modules/stdlib: Likewise.
26926         * modules/string: Likewise.
26927         * modules/strings: Likewise.
26928         * modules/sys_file: Likewise.
26929         * modules/sys_ioctl: Likewise.
26930         * modules/sys_select: Likewise.
26931         * modules/sys_socket: Likewise.
26932         * modules/sys_stat: Likewise.
26933         * modules/sys_time: Likewise.
26934         * modules/sys_times: Likewise.
26935         * modules/sys_utsname: Likewise.
26936         * modules/sys_wait: Likewise.
26937         * modules/sysexits: Likewise.
26938         * modules/time: Likewise.
26939         * modules/times: Likewise.
26940         * modules/tmpfile: Likewise.
26941         * modules/trim: Likewise.
26942         * modules/unistd: Likewise.
26943         * modules/wchar: Likewise.
26944         * modules/wctype: Likewise.
26945
26946 2009-09-17  Bruno Haible  <bruno@clisp.org>
26947
26948         Make getdate.y compile on QNX and NetBSD 5 / i386.
26949         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26950         TIME_T_FITS_IN_LONG_INT.
26951         * lib/getdate.y (long_time_t): New type.
26952         (relative_time): Change type of 'seconds' field to long_time_t.
26953         (get_date): Update types of local variables. Check against overflow
26954         during conversion from long_time_t to time_t.
26955         Reported by Matt Kraai <kraai@ftbfs.org>
26956         and Hasso Tepper <hasso@netbsd.org>.
26957
26958 2009-09-17  Bruno Haible  <bruno@clisp.org>
26959
26960         * modules/COPYING: Update copyright years.
26961         * modules/README: Likeiwse.
26962         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26963         Reported by Ian Beckwith <ianb@erislabs.net>.
26964
26965 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26966
26967         * users.txt: Update references for gnuit package.
26968
26969 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26970
26971         * m4/getdelim.m4: Fix typo in copyright line.
26972
26973 2009-09-17  Bruno Haible  <bruno@clisp.org>
26974
26975         * lib/atoll.c: Use the standard header with GPL copyright.
26976         * lib/argz.in.h: Likewise.
26977         * lib/glob.c: Likewise.
26978         * lib/glob-libc.h: Likewise.
26979         * lib/random_r.c: Likewise.
26980         * lib/siglist.h: Likewise.
26981         * lib/strsignal.c: Likewise.
26982         Reported by Ian Beckwith <ianb@erislabs.net>.
26983
26984 2009-09-17  Eric Blake  <ebb9@byu.net>
26985
26986         rmdir: ensure correct dependency order
26987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26988
26989 2009-09-17  Bruno Haible  <bruno@clisp.org>
26990
26991         Disable assertion that fails on NetBSD 5 / i386.
26992         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26993         Reported by Sam Steingold <sds@gnu.org>
26994         and Hasso Tepper <hasso@netbsd.org>.
26995
26996 2009-09-16  Eric Blake  <ebb9@byu.net>
26997
26998         unlinkdir: port to mingw
26999         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
27000         on which no one can unlink a directory.
27001
27002         stdlib: sort witness names
27003         * modules/stdlib (Makefile.am): Sort replacements.
27004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27005         * lib/stdlib.in.h: Likewise.
27006
27007         parse-duration-tests: avoid link failure
27008         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
27009         LIBINTL.
27010         Reported by Tom G. Christensen.
27011
27012         openat-tests: ensure unlinkat behaves like rmdir
27013         * tests/test-rmdir.c (main): Factor guts...
27014         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
27015         * modules/rmdir-tests (Files): Ship new file.
27016         * modules/openat-tests: New test.
27017         * tests/test-unlinkat.c: Likewise.
27018
27019         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
27020         * modules/rmdir-errno (Status, Notice): Now obsolete.
27021
27022         rmdir: work around cygwin 1.5.x and mingw bugs
27023         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
27024         * lib/rmdir.c (rmdir): Work around it.
27025         * modules/rmdir (Status, Notice): No longer obsolete.
27026         (Files): Add dos.m4.
27027         (Depends-on): Add unistd.
27028         (configure.ac): Set witnesses.
27029         (License): Relax to LGPLv2+.
27030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
27031         * modules/unistd (Makefile.am): Substitute witnesses.
27032         * lib/unistd.in.h (rmdir): Declare replacement.
27033         * doc/posix-functions/rmdir.texi (rmdir): Document this.
27034         * modules/rmdir-tests: New tests.
27035         * tests/test-rmdir.c: Likewise.
27036
27037 2009-09-15  Eric Blake  <ebb9@byu.net>
27038
27039         fchdir: improve use of replacement functions
27040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
27041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
27042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
27043         REPLACE_CLOSEDIR.
27044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
27045         * modules/sys_stat (Makefile.am): Substitute correct witness.
27046         * modules/dirent (Makefile.am): Likewise.
27047         * modules/unistd (Makefile.am): Likewise.
27048         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
27049         * lib/unistd.in.h (dup): Likewise.
27050         * lib/sys_stat.in.h (fstat): Likewise.
27051
27052         maint: ignore gnulib-tool temp files
27053         * .gitignore: Ignore files created during gnulib-tool --test.
27054
27055 2009-09-13  Jim Meyering  <meyering@redhat.com>
27056
27057         posixtm: don't reject a time that specify "60" as the number of seconds
27058         * lib/posixtm.c (posixtime): The code to reject invalid dates
27059         would also reject a time specified with the .60 suffix.
27060         But POSIX allows that, in order to accommodate leap seconds.
27061         So don't reject it.
27062         (main): Adjust tests accordingly.
27063         * modules/posixtm (Depends-on): Add stpcpy.
27064
27065 2009-09-11  Jim Meyering  <meyering@redhat.com>
27066
27067         announce-gen: include [$release_type] in emitted Subject:
27068         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
27069         e.g., [stable] in the emitted Subject: line.
27070
27071 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27072
27073         Remove obsolete macros from several modules.
27074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
27075         obsolete Autoconf macros with their modern counterparts.
27076         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
27077         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
27078         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27079         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
27080         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
27081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27084         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27085         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
27086         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27087         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27088         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
27089         * m4/sockets.m4 (gl_SOCKETS): Likewise.
27090         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
27091         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
27092         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27093         * m4/time_r.m4 (gl_TIME_R): Likewise.
27094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27095         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
27096         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27097
27098         Fix copyright header in build-aux scripts.
27099         * build-aux/git-version-gen: Fix copyright header to match GPLv3
27100         recommendation.
27101         * build-aux/ncftpput-ftp: Likewise.
27102         * build-aux/update-copyright: Likewise.
27103
27104 2009-09-09  Eric Blake  <ebb9@byu.net>
27105
27106         test-link: allow Linux choice of errno
27107         * tests/test-link.c (main): Relax test for alternate error.
27108
27109         strndup: fix improper m4 caching
27110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
27111         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
27112         (gl_PREREQ_STRNDUP): Delete.
27113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
27114         * modules/string (Makefile.am): Substitute it.
27115         * lib/string.in.h (strndup): Modernize prototype.
27116
27117         getcwd: port to mingw
27118         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
27119         different from the POSIX assumptions made throughout the getcwd
27120         module; fortunately, the mingw getcwd does not need replacement.
27121         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
27122         * modules/getcwd-tests: New test.
27123         * tests/test-getcwd.c: Likewise.
27124
27125         link: fix platform bugs
27126         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
27127         * lib/link.c (link): Work around them.  Fix related mingw bug.
27128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
27129         * modules/unistd (Makefile.am): Substitute it.
27130         * lib/unistd.in.h (link): Declare replacement.
27131         * doc/posix-functions/link.texi (link): Document this.
27132         * modules/link (Depends-on): Add strdup-posix, sys_stat.
27133
27134         test-link: consolidate into single C program, test more cases
27135         * tests/test-link.sh: Delete.
27136         * tests/test-link.c: Test more error conditions.  Exposes bugs on
27137         at least Cygwin and Solaris.
27138         * modules/link-tests (Files): Remove unused file.
27139         (Depends-on): Add errno, sys_stat.
27140         (Makefile.am): Simplify.
27141
27142 2009-09-08  Bruno Haible  <bruno@clisp.org>
27143
27144         Work around towlower, towupper bug on mingw.
27145         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
27146         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
27147         * doc/posix-functions/towlower.texi: Mention the mingw bug.
27148         * doc/posix-functions/towupper.texi: Likewise.
27149         Reported by Eric Blake.
27150
27151 2009-09-08  Jim Meyering  <meyering@redhat.com>
27152
27153         build: don't try to run autoheader if we don't use it
27154         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
27155         is not used in configure.ac.
27156
27157 2009-09-08  Eric Blake  <ebb9@byu.net>
27158
27159         euidaccess: fix compilation error
27160         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
27161
27162         rawmemchr: relax license
27163         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
27164         okay.
27165         Reported by Jim Meyering.
27166
27167         mkfifoat: new module
27168         * modules/mkfifoat: New file.
27169         * lib/mkfifoat.c: Likewise.
27170         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
27171         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27172         * modules/sys_stat (Makefile.am): Use them.
27173         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
27174         * MODULES.html.sh (File system functions): Mention module.
27175         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27176         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27177         * modules/mkfifoat-tests: New test.
27178         * tests/test-mkfifoat.c: Likewise.
27179
27180         strchrnul: relax license
27181         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
27182         okay.
27183         Reported by Jim Meyering.
27184
27185 2009-09-08  Eric Blake  <ebb9@byu.net>
27186
27187         fstatat: fix compilation on Solaris
27188         * lib/fstatat.c (includes): Add fcntl.h.
27189         Reported by Pádraig Brady.
27190
27191 2009-09-07  Eric Blake  <ebb9@byu.net>
27192
27193         rename: modernize replacement
27194         * modules/rename (Depends-on): Add stdio.
27195         (configure.ac): Declare witness.
27196         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
27197         stdio take care of replacement.
27198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27199         * modules/stdio (Makefile.am): Substitute them.
27200         * lib/stdio.in.h (rename): Declare replacement.
27201         * lib/rename.c (includes): Allow cross-compilation to non-windows
27202         machines.
27203         * doc/posix-functions/rename.texi (rename): Improve
27204         documentation.
27205
27206         stdio: sort witness names
27207         * modules/stdio (Makefile.am): Sort replacements.
27208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27209         * lib/stdio.in.h: Likewise.
27210
27211         getcwd: minor cleanups
27212         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
27213         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
27214
27215         openat: provide more convenience names
27216         * modules/faccessat (configure.ac): Add C witness.
27217         * lib/unistd.in.h (readlinkat): Fix typo.
27218         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
27219         convenience wrappers.
27220         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
27221         wrappers in syntax checks.
27222
27223 2009-09-06  Eric Blake  <ebb9@byu.net>
27224
27225         doc: fix comments in recent patches
27226         * lib/faccessat.c: Mention correct function.
27227         * lib/fchmodat.c: Likewise.
27228         * lib/fchownat.c: Likewise.
27229         * lib/symlinkat.c: Likewise.
27230         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
27231         constants.
27232
27233         faccessat, symlinkat: continue cleanup of previous patch
27234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
27235         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27236         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
27237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
27238         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
27239         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
27240         set.
27241
27242 2009-09-06  Bruno Haible  <bruno@clisp.org>
27243
27244         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
27245         (fstatat): Declare if GNULIB_FSTATAT is set.
27246         (mkdirat): Declare if GNULIB_MKDIRAT is set.
27247         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
27248         (unlinkat): Declare if GNULIB_UNLINKAT is set.
27249         * modules/fcntl-h (Files): Remove m4/openat.m4.
27250         * modules/sys_stat (Files): Remove m4/openat.m4.
27251         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
27252         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
27253         * modules/unistd (Files): Remove m4/openat.m4.
27254         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
27255         GNULIB_OPENAT.
27256         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
27257         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
27258         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
27259         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
27260         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
27261         gl_OPENAT_DEFAULTS.
27262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
27263         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
27264         Don't require gl_OPENAT_DEFAULTS.
27265         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
27266         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
27267         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
27268         (gl_OPENAT_DEFAULTS): Remove macro.
27269
27270 2009-09-06  Bruno Haible  <bruno@clisp.org>
27271
27272         * modules/openat (configure.ac): Remove unneeded witness.
27273
27274 2009-09-06  Bruno Haible  <bruno@clisp.org>
27275
27276         Set errno to ENOSYS when a function is entirely unsupported.
27277         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
27278         EOPNOTSUPP.
27279         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27280         * modules/chown (Depends-on): Remove errno.
27281
27282 2009-09-06  Bruno Haible  <bruno@clisp.org>
27283
27284         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
27285
27286 2009-09-06  Bruno Haible  <bruno@clisp.org>
27287
27288         * lib/sys_stat.in.h: Fix preprocessor command indentation.
27289
27290 2009-09-06  Ben Pfaff  <blp@gnu.org>
27291             Bruno Haible  <bruno@clisp.org>
27292
27293         Work around a glibc bug in strtok_r.
27294         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
27295         Undefine if UNDEFINE_STRTOK_R is set.
27296         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
27297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27298         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
27299         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
27300         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
27301         UNDEFINE_STRTOK_R.
27302         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
27303
27304 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27305
27306         exclude: minor fix
27307         * lib/exclude.c: Include wctype.h
27308
27309 2009-09-06  Akim Demaille  <demaille@gostai.com>
27310
27311         bootstrap: improve error message
27312         * build-aux/bootstrap (find_tool): Upon failure, report the list
27313         of candidates.
27314         Honor the initial value of the envvar.
27315
27316 2009-09-05  Eric Blake  <ebb9@byu.net>
27317
27318         symlinkat: new module
27319         * modules/symlinkat: New file.
27320         * lib/symlinkat.c: Likewise.
27321         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
27322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27323         * modules/unistd (Makefile.am): Use them.
27324         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
27325         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
27326         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
27327         * MODULES.html.sh (File system functions): Mention module.
27328         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27329         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27330         * modules/symlinkat-tests: New test.
27331         * tests/test-symlinkat.c: Likewise.
27332
27333         test-openat-safer: add more checks
27334         * tests/test-openat-safer.c (main): Check more code paths.
27335
27336 2009-09-05  Jim Meyering  <meyering@redhat.com>
27337
27338         syntax-check: detect unnecessary inclusion of openat.h
27339         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27340
27341 2009-09-05  Bruno Haible  <bruno@clisp.org>
27342
27343         Support towlower, towupper.
27344         * doc/posix-functions/towlower.texi: Mention module wctype.
27345         * doc/posix-functions/towupper.texi: Likewise.
27346         * lib/wctype.in.h (towlower, towupper): New functions.
27347         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27348         (ASSERT): New macro.
27349         (e): New variable.
27350         (main): Test also towlower, towupper. Test WEOF argument.
27351         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27352
27353 2009-09-05  Bruno Haible  <bruno@clisp.org>
27354
27355         Fix conversion behaviour when the input is invalid.
27356         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27357         mark occurring in first pass of indirect conversion.
27358         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27359         input.
27360         Found by clang's static analyzer.
27361
27362 2009-09-05  Bruno Haible  <bruno@clisp.org>
27363
27364         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27365         where direct conversion is possible.
27366
27367 2009-09-04  Eric Blake  <ebb9@byu.net>
27368
27369         openat: fail with ENOENT on empty name
27370         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27371         buffer.
27372
27373         link-follow: fix logic bug in prior patch
27374         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27375         reversed sense of yes and no in prior patch.  Avoid confusing
27376         compilation failure with desired semantics.
27377
27378         link-follow: accomodate mingw and cross-compilation
27379         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27380         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27381         cross-compilation results to -1, to make linkat easier to
27382         implement when cross-compiling.  Trivially support mingw.
27383         * modules/link-follow (configure.ac): Call new name.
27384         * NEWS: Mention this.
27385
27386 2009-09-03  Eric Blake  <ebb9@byu.net>
27387
27388         faccessat: compile replacement
27389         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27390         needed.
27391
27392         fts: fix compilation error
27393         * lib/fts.c (includes): Re-add "openat.h", for
27394         openat_needs_fchdir.
27395
27396         faccessat: new module
27397         * modules/faccessat: New file.
27398         * lib/faccessat.c: Likewise.
27399         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27401         * modules/unistd (Makefile.am): Use it.
27402         * lib/unistd.in.h (faccessat): Declare it.
27403         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27404         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27405         * MODULES.html.sh (File system functions): Mention it.
27406         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27407         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27408
27409         euidaccess: prefer POSIX over non-standard implementation
27410         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27411         * lib/euidaccess.c (euidaccess): Use it if available.
27412
27413         openat: make template easier to use
27414         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27415         AT_FUNC_F2 to be undefined.
27416         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27417         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27418         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27419         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27420         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27421         Likewise.
27422         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27423         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27424         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27425         Likewise.
27426
27427         openat: declare in POSIX headers
27428         * NEWS: Mention this.
27429         * modules/openat (configure.ac): Declare witnesses.
27430         (Depends-on): Add fcntl-h, sys_stat, unistd.
27431         (Include): Mention correct headers.
27432         * modules/fcntl-h (Depends-on): Add link-warning.
27433         (Files): Add openat.m4.
27434         (Makefile.am): Substitute witnesses.
27435         * modules/sys_stat (Files, Makefile.am): Likewise.
27436         * modules/unistd (Files, Makefile.am): Likewise.
27437         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27438         (gl_OPENAT_DEFAULTS): New macro.
27439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27442         (SYS_STAT_H): Remove unused variable.
27443         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27444         * lib/fcntl--.h (includes): Remove unneeded header.
27445         * lib/openat-safer.c (includes): Likewise.
27446         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27447         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27448         appropriate headers.
27449         (__OPENAT_PREFIX): Delete.
27450         * lib/fcntl.in.h (openat): Provide declaration.
27451         (AT_FDCWD): Fix Solaris bug.
27452         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27453         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27454         * lib/fchmodat.c (includes):  Adjust to find declaration.
27455         * lib/fchownat.c (includes): Likewise.
27456         * lib/mkdirat.c (includes): Likewise.
27457         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27458         still visible.
27459
27460 2009-09-02  Eric Blake  <ebb9@byu.net>
27461
27462         errno: use consistently
27463         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27464         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27465         * lib/canonicalize.c (ELOOP): Likewise.
27466         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27467         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27468         * lib/lchown.c (EOPNOTSUPP): Likewise.
27469         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27470         * lib/savewd.c (ESTALE): Likewise.
27471         * lib/settime.c (ENOSYS): Likewise.
27472         * lib/utimens.c (ENOSYS): Likewise.
27473         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27474         * lib/chdir-safer.c (ELOOP): Likewise.
27475         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27476         * modules/c-stack (Depends-on): Add errno.
27477         * modules/canonicalize (Depends-on): Likewise.
27478         * modules/chdir-safer (Depends-on): Likewise.
27479         * modules/fdopendir (Depends-on): Likewise.
27480         * modules/inet_ntop (Depends-on): Likewise.
27481         * modules/inet_pton (Depends-on): Likewise.
27482         * modules/lchown (Depends-on): Likewise.
27483         * modules/openat (Depends-on): Likewise.
27484         * modules/savewd (Depends-on): Likewise.
27485         * modules/settime (Depends-on): Likewise.
27486         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27487
27488         fts: avoid leaking fds
27489         * modules/fts (Depends-on): Add cloexec.
27490         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27491         flag.
27492
27493         fts: make directory fds more robust
27494         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27495         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27496
27497         backupfile, chdir-long, fts, savedir: make safer
27498         * lib/backupfile.c (includes): Use "dirent--.h", since
27499         numbered_backup can write to stderr during readdir.
27500         * lib/savedir.c (includes): Likewise.
27501         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27502         emulation can write to stderr on failure.
27503         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27504         * lib/getcwd.c: Document why opendir_safer is unused.
27505         * lib/glob.c: Likewise.
27506         * lib/scandir.c: Likewise.
27507         * lib/openat-proc.c: Likewise, for open_safer.
27508         * modules/backupfile (Depends-on): Add dirent-safer.
27509         * modules/savedir (Depends-on): Likewise.
27510         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27511         * modules/chdir-long (Depends-on): Add openat-safer.
27512
27513         openat-safer: new module
27514         * modules/openat-safer: New file.
27515         * lib/openat-safer.c: Likewise.
27516         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27517         * lib/fcntl-safer.h (openat_safer): Declare.
27518         * lib/fcntl--.h (openat): Override.
27519         * MODULES.html.sh (File descriptor based I/O): Mention it.
27520         * lib/openat.h: Add double-inclusion guards.
27521         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27522         "fcntl--.h", so we can implement openat.
27523         * modules/openat-safer-tests: New test.
27524         * tests/test-openat-safer.c: New file.
27525
27526         dirent-safer: new module
27527         * modules/dirent-safer: New file.
27528         * lib/dirent--.h: Likewise.
27529         * lib/dirent-safer.h: Likewise.
27530         * lib/opendir-safer.c: Likewise.
27531         * m4/dirent-safer.m4: Likewise.
27532         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27533         * modules/dirent-safer-tests: New test.
27534         * tests/test-dirent-safer.c: New file.
27535         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27536
27537         fdopendir: optimize on mingw
27538         * lib/unistd.in.h (_gl_directory_name): New prototype.
27539         * lib/fchdir.c (_gl_directory_name): Implement it.
27540         (fchdir): Use it to simplify implementation.
27541         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27542         fchdir, when available, to avoid calling [f]chdir().
27543
27544         fdopendir: split into its own module
27545         * lib/openat.c (fdopendir): Move...
27546         * lib/fdopendir.c: ...into new file.
27547         * modules/fdopendir: New module.
27548         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27549         * modules/openat (Depends-on): Add fdopendir.
27550         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27551         fdopendir here.
27552         * modules/savedir (Depends-on): Only need fdopendir, not full
27553         openat.
27554         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27555         * lib/openat.h (fdopendir): Drop prototype.
27556         * lib/dirent.in.h (fdopendir): Provide prototype.
27557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27558         * modules/dirent (Makefile.am): Substitute them.
27559         * MODULES.html.sh (File system functions): Mention it.
27560         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27561         * modules/fdopendir-tests: New file.
27562         * tests/test-fdopendir.c: Likewise.
27563
27564         fchdir: use more consistent macro convention
27565         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27566         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27567         REPLACE_FCHDIR, rather than relying on config.h macros.
27568         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27569         inside a single make-time REPLACE_FCHDIR block, rather than using
27570         the config.h FCHDIR_REPLACEMENT.
27571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27572         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27573         Manage fstat replacement.
27574         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27575         REPLACE_FCHDIR.
27576         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27577         (Makefile.am): Substitute REPLACE_FCHDIR.
27578         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27579         FCHDIR_REPLACEMENT.
27580         * lib/dup-safer.c (dup_safer): Likewise.
27581         * lib/dup2.c (rpl_dup2): Likewise.
27582         * lib/dup3.c (rpl_dup3): Likewise.
27583         * lib/open.c (rpl_open): Likewise.
27584
27585         fchdir: simplify error handling, and support dup3
27586         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27587         stdbool, malloc-posix, realloc-posix.
27588         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27589         (ensure_dirs_slot): Return false on allocation failure.
27590         (rpl_dup2): Delete.
27591         (_gl_register_dup): New function.
27592         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27593         (_gl_register_fd): Close fd on allocation failure.
27594         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27595         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27596         prototype.
27597         (rpl_dup2_fchdir): Delete prototype.
27598         * lib/open.c (open): Update caller.
27599         * lib/dup2.c (dup2): Track fchdir metadata.
27600         * lib/dup3.c (dup3): Likewise.
27601         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27603
27604 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27605
27606         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27607         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27608         don't pass arguments to AC_OUTPUT.
27609
27610 2009-09-02  Bruno Haible  <bruno@clisp.org>
27611
27612         * modules/mkdtemp (License): Relicense under LGPLv2+.
27613         Reported by Paolo Bonzini.
27614
27615 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27616
27617         Replace uses of obsolete autoconf macros in Jim's modules.
27618         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27619         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27620         can evoke a warning from autoconf when run with -Wobsolete
27621         enabled.  They were declared obsolete for good reasons (see
27622         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27623         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27624         should not continue using the deprecated macros.
27625         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27626         obsolete Autoconf macros with modern counterparts.
27627         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27628         * m4/dos.m4 (gl_AC_DOS): Likewise.
27629         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27630         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27631         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27632         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27633         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27635         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27636         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27637         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27638         Likewise.
27639         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27640         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27641         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27642         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27643         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27644         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27645
27646 2009-09-01  Eric Blake  <ebb9@byu.net>
27647
27648         fchdir: fix off-by-one bug in previous patch
27649         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27650         (_gl_unregister_fd): Delete useless if.
27651
27652 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27653
27654         maint.mk: sort the list of syntax-check rules
27655         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27656         easier to get a sense of progress when the rules are run sequentially
27657         and take a long time.
27658
27659 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27660
27661         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27662         * modules/netinet_in: Likewise.
27663         * modules/sys_file: Likewise.
27664         * modules/sys_ioctl: Likewise.
27665         * modules/sys_select: Likewise.
27666         * modules/sys_socket: Likewise.
27667         * modules/sys_stat: Likewise.
27668         * modules/sys_time: Likewise.
27669         * modules/sys_times: Likewise.
27670         * modules/sys_utsname: Likewise.
27671         * modules/sys_wait: Likewise.
27672
27673 2009-09-01  Jim Meyering  <meyering@redhat.com>
27674
27675         fts: help ensure that return values are not ignored
27676         * lib/fts_.h (__GNUC_PREREQ): Define.
27677         (__attribute_warn_unused_result__): Define.
27678         (fts_children, fts_close, fts_open, fts_read): Declare with
27679         __attribute_warn_unused_result__.
27680
27681         fts: fts_close now fails also when closing a dir file descriptor fails
27682         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27683         and propagate to caller, along with errno.
27684
27685         announce-gen: correct formatting in --help output
27686         * build-aux/announce-gen (usage): Move the one-line description in
27687         --help output "up", to where it belongs, just after Usage:.
27688
27689 2009-08-31  Eric Blake  <ebb9@byu.net>
27690
27691         fchdir: port to mingw
27692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27693         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27694         opened, then use a substitute.
27695         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27696         replacement.
27697         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27698         (_gl_register_fd): No need to check stat if open already filters
27699         all directories.
27700         (fchdir): Fix error condition to match POSIX.
27701         * modules/fchdir (Depends-on): Add sys_stat.
27702         * doc/posix-functions/open.texi (open): Document the limitation.
27703         * modules/fchdir-tests: New file.
27704         * tests/test-fchdir.c: Likewise.
27705
27706         canonicalize: allow cross-testing from cygwin to mingw
27707         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27708         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27709         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27710         Likewise.
27711         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27712         target does not support symlinks.
27713         * tests/test-canonicalize-lgpl.sh: Likewise.
27714
27715         chown: avoid compilation warning on mingw
27716         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27717         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27718         mingw.
27719         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27720         * modules/chown (Depends-on): Add errno.
27721
27722 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27723
27724         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27725         command.
27726
27727 2009-08-31  Jim Meyering  <meyering@redhat.com>
27728
27729         canonicalize: remove useless initialization
27730         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27731         initialization of local, "end".
27732
27733 2009-08-30  Bruno Haible  <bruno@clisp.org>
27734
27735         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27736         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27737         ENOSYS.
27738
27739 2009-08-30  Bruno Haible  <bruno@clisp.org>
27740
27741         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27742         /usr/xpg4/bin/tr when it exists.
27743         * tests/test-pipe-filter-gi1.sh: Likewise.
27744
27745 2009-08-30  Bruno Haible  <bruno@clisp.org>
27746
27747         Work around deficient /usr/bin/id program on Solaris.
27748         * tests/test-file-has-acl.sh (ID): New variable.
27749         * tests/test-set-mode-acl.sh (ID): Likewise.
27750         * tests/test-copy-acl.sh (ID): Likewise.
27751         * tests/test-copy-file.sh (ID): Likewise.
27752
27753 2009-08-30  Bruno Haible  <bruno@clisp.org>
27754
27755         New module 'xstriconveh'.
27756         * lib/xstriconveh.h: New file.
27757         * lib/xstriconveh.c: New file.
27758         * modules/xstriconveh: New file.
27759
27760 2009-08-30  Bruno Haible  <bruno@clisp.org>
27761
27762         Make it easier to use mem_cd_iconveh.
27763         * lib/striconveh.h (iconveh_t): New type.
27764         (iconveh_open, iconveh_close): New declarations.
27765         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27766         with a single 'const iconveh_t *' argument.
27767         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27768         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27769         with a single 'const iconveh_t *' argument.
27770         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27771         * tests/test-striconveh.c (main): Update.
27772         * NEWS: Mention the change.
27773
27774 2009-08-30  Bruno Haible  <bruno@clisp.org>
27775
27776         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27777         problem.
27778
27779 2009-08-30  Bruno Haible  <bruno@clisp.org>
27780
27781         Work around iconv_open problem on Solaris.
27782         * lib/iconv_open-solaris.gperf: New file.
27783         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27785         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27786         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27787         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27788         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27789
27790 2009-08-29  Jim Meyering  <meyering@redhat.com>
27791
27792         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27793         * top/maint.mk (cvs-check): Remove target; it was just an alias
27794         to the better-named vc-diff-check.
27795         (maintainer-distcheck): Remove rule.  It was used only from
27796         the (alpha/beta/major) target, and all of its commands but one
27797         were coreutils-specific.
27798         (vc-dist): Remove rule.
27799         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27800         Run vc-diff-check, not vc-dist.
27801         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27802
27803 2009-08-27  Bruno Haible  <bruno@clisp.org>
27804
27805         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27806         of 0.
27807
27808 2009-08-27  Bruno Haible  <bruno@clisp.org>
27809
27810         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27811         compilers.
27812         * doc/func.texi: Document the SunPRO C bug.
27813
27814 2009-08-27  Bruno Haible  <bruno@clisp.org>
27815
27816         Fix link error on Solaris.
27817         * tests/test-parse-duration.c (xstrdup): Remove function.
27818
27819 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27820
27821         ignore-value: handle pointer types, too
27822         * lib/ignore-value.h (__attribute__): Remove definition.
27823         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27824         of a more concise and more-often effective "(void) i" statement.
27825         (ignore_ptr): New function to suppress warnings from functions that
27826         return pointers, and to make it explicit that one function doesn't
27827         handle all cases.
27828
27829 2009-08-25  Bruno Haible  <bruno@clisp.org>
27830
27831         dup2: work around a Linux bug.
27832         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27833         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27834         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27835         Reported by Simon Josefsson.
27836
27837 2009-08-25  Jim Meyering  <meyering@redhat.com>
27838
27839         libguestfs uses gnulib
27840         * users.txt: Add libguestfs.
27841
27842 2009-08-24  Eric Blake  <ebb9@byu.net>
27843
27844         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27845         * lib/pipe2.c (includes): Add binary-io.h.
27846         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27847
27848 2009-08-24  Bruno Haible  <bruno@clisp.org>
27849
27850         Tolerate declared but missing accept4 syscall.
27851         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27852         available.
27853         * lib/sys_socket.in.h (accept4): If the function is already present,
27854         override it.
27855         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27856         * modules/accept4 (Makefile.am): Compile accept4.c always.
27857         Reported by Paolo Bonzini and Eric Blake.
27858
27859 2009-08-23  Bruno Haible  <bruno@clisp.org>
27860
27861         New module 'accept4'.
27862         * lib/sys_socket.in.h (accept4): New declaration.
27863         * lib/accept4.c: New file.
27864         * m4/accept4.m4: New file.
27865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27866         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27867         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27868         HAVE_ACCEPT4.
27869         * modules/accept4: New file.
27870         * doc/glibc-functions/accept4.texi: Mention the new module.
27871
27872 2009-08-24  Jim Meyering  <meyering@redhat.com>
27873
27874         progname: also set global program_invocation_name, when possible
27875         Before this change, a libtool-enabled program that calls glibc's
27876         error function would report the program name as
27877         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27878         * modules/progname (configure.ac): Check for a declaration of
27879         program_invocation_name.
27880         * lib/progname.c:  Include <errno.h>.
27881         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27882         Set program_invocation_name.
27883
27884 2009-08-23  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/dup3.c: Include <string.h>.
27887
27888 2009-08-23  Bruno Haible  <bruno@clisp.org>
27889
27890         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27891         * lib/pipe2.c (pipe2): Likewise.
27892         Suggested by Eric Blake.
27893
27894 2009-08-23  Bruno Haible  <bruno@clisp.org>
27895
27896         Tolerate declared but missing dup3 syscall.
27897         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27898         * lib/unistd.in.h (dup3): If the function is already present,
27899         override it.
27900         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27901         * modules/dup3 (Makefile.am): Compile dup3.c always.
27902         Reported by Paolo Bonzini.
27903
27904 2009-08-23  Bruno Haible  <bruno@clisp.org>
27905
27906         Tolerate declared but missing pipe2 syscall.
27907         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27908         available.
27909         * lib/unistd.in.h (pipe2): If the function is already present,
27910         override it.
27911         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27912         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27913         Reported by Paolo Bonzini.
27914
27915 2009-08-23  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/pipe2.c (pipe2): Move #ifs inside function.
27918
27919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27920
27921         quotearg: document limitations of quote_these_too
27922         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27923         those limitations are created.
27924         * lib/quotearg.h (set_char_quoting): Document that digits and
27925         letters that are special after backslash are not permitted.
27926         (quotearg_char): Cross-reference set_char_quoting documentation.
27927
27928 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27929
27930         quotearg: implement custom_quoting_style
27931         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27932         right_quote fields.
27933         (set_custom_quoting): New public function.
27934         (quotearg_buffer_restyled): Add left_quote and right_quote
27935         arguments, handle them very much like locale quoting, and update
27936         all uses.
27937         (quotearg_n_custom): New public function.
27938         (quotearg_n_custom_mem): New public function.
27939         (quotearg_custom): New public function.
27940         (quotearg_custom_mem): New public function.
27941         * lib/quotearg.h: Prototype and document new public functions.
27942         (enum quoting_style): For escape_quoting_style and
27943         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27944         ignored even though they're otherwise like c_quoting_style.
27945         Add custom_quoting_style member and document with comparison to
27946         clocale_quoting_style.
27947         * tests/test-quotearg.c (custom_quotes): New array.
27948         (custom_results): New array.
27949         (main): Extend to test custom quoting.
27950
27951 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27952
27953         quotearg: fix right quote escaping when it's in quote_these_too
27954         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27955         quote, be sure to prepend only one backslash.
27956         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27957         (main): Test it.
27958
27959 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27960
27961         quotearg-tests: test escaping of embedded locale quotes
27962         * tests/test-quotearg.c (struct result_strings): Add member for
27963         new input.
27964         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27965         (inputs): Add new input.
27966         (results_g): Add expected results.
27967         (flag_results): Likewise.
27968         (locale_results): Likewise.
27969         (compare_strings): Check those.
27970
27971 2009-08-23  Bruno Haible  <bruno@clisp.org>
27972
27973         Tests for module 'dup3'.
27974         * modules/dup3-tests: New file.
27975         * tests/test-dup3.c: New file.
27976
27977         New module 'dup3'.
27978         * lib/unistd.in.h (dup3): New declaration.
27979         * lib/dup3.c: New file.
27980         * m4/dup3.m4: New file.
27981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27982         HAVE_DUP3.
27983         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27984         * modules/dup3: New file.
27985         * doc/glibc-functions/dup3.texi: Mention the new module.
27986
27987 2009-08-23  Bruno Haible  <bruno@clisp.org>
27988
27989         Tweak the dup2 test.
27990         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27991         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27992         the test file is still empty. Fix argument order of lseek.
27993
27994 2009-08-23  Bruno Haible  <bruno@clisp.org>
27995
27996         Avoid test link errors when the modules getopt-gnu, gettext are used.
27997         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27999
28000 2009-08-23  Bruno Haible  <bruno@clisp.org>
28001
28002         Fix getdtablesize() on mingw.
28003         * lib/getdtablesize.c (getdtablesize): Implement differently.
28004         * lib/unistd.in.h (getdtablesize): Improve comment.
28005
28006 2009-08-23  Bruno Haible  <bruno@clisp.org>
28007
28008         New module 'mkostemp'.
28009         Based on Ulrich Drepper's 2007-08-10 change in glibc.
28010         * lib/stdlib.in.h (mksotemp): New declaration.
28011         * lib/mkostemp.c: New file, from glibc with modifications.
28012         * lib/tempname.h (GT_FILE): Remove outdated comment.
28013         (gen_tempname): Add flags argument.
28014         * lib/tempname.c (__GT_BIGFILE): Remove macro.
28015         (__GT_FILE): Map to 1.
28016         (small_open, large_open): Remove macros.
28017         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
28018         * lib/mkstemp.c (mkstemp): Update.
28019         * lib/mkdtemp.c (mkdtemp): Likewise.
28020         * m4/mkostemp.m4: New file.
28021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
28022         HAVE_MKOSTEMP.
28023         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
28024         HAVE_MKOSTEMP.
28025         * modules/mkostemp: New file, based on modules/mkstemp.
28026         * doc/glibc-functions/mkostemp.texi: Mention the new module.
28027         * NEWS: Mention the change.
28028
28029 2009-08-23  Bruno Haible  <bruno@clisp.org>
28030
28031         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
28032         Reported by Eric Blake.
28033
28034 2009-08-23  Bruno Haible  <bruno@clisp.org>
28035
28036         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
28037         Reported by Eric Blake.
28038
28039 2009-08-23  Bruno Haible  <bruno@clisp.org>
28040
28041         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
28042         * modules/pipe2 (Depends-on): Likewise.
28043
28044 2009-08-23  Eric Blake  <ebb9@byu.net>
28045
28046         fcntl-h: add O_TTY_INIT support
28047         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
28048         * tests/test-fcntl-h.c (o): Test it.
28049         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28050
28051         fcntl-h: rename from fcntl, in preparation for fcntl(2)
28052         * modules/fcntl: Move <fcntl.h> header replacement...
28053         * modules/fcntl-h: ...to new name, so as not to collide with
28054         like-named function.
28055         * tests/test-fcntl.c: Rename...
28056         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
28057         * modules/fcntl-tests: Rename...
28058         * modules/fcntl-h-tests: ...to this.  Update test file name.
28059         * modules/chdir-long (Depends-on): Update clients.
28060         * modules/chdir-safer (Depends-on): Likewise.
28061         * modules/fcntl-safer (Depends-on): Likewise.
28062         * modules/fts (Depends-on): Likewise.
28063         * modules/mkancesdirs (Depends-on): Likewise.
28064         * modules/mkdir-p (Depends-on): Likewise.
28065         * modules/open (Depends-on): Likewise.
28066         * modules/savewd (Depends-on): Likewise.
28067         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
28068         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28069
28070 2009-08-22  Bruno Haible  <bruno@clisp.org>
28071
28072         * modules/binary-io (License): Relicense under LGPL.
28073         * modules/pipe2 (License): Likewise.
28074
28075 2009-08-22  Bruno Haible  <bruno@clisp.org>
28076
28077         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
28078         return value.
28079         * lib/pipe-filter-gi.c (filter_init): Likewise.
28080         Reported by Eric Blake.
28081
28082 2009-08-22  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
28085         * modules/pipe (Depends-on): Add pipe2.
28086
28087 2009-08-22  Bruno Haible  <bruno@clisp.org>
28088
28089         Tests for module 'pipe2'.
28090         * modules/pipe2-tests: New file.
28091         * tests/test-pipe2.c: New file.
28092
28093         New module 'pipe2'.
28094         * lib/unistd.in.h (pipe2): New declaration.
28095         * lib/pipe2.c: New file.
28096         * m4/pipe2.m4: New file.
28097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
28098         HAVE_PIPE2.
28099         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
28100         * modules/pipe2: New file.
28101         * doc/glibc-functions/pipe2.texi: Mention the new module.
28102
28103 2009-08-22  Bruno Haible  <bruno@clisp.org>
28104
28105         Reference some new glibc functions.
28106         * doc/glibc-functions/accept4.texi: New file.
28107         * doc/glibc-functions/dup3.texi: New file.
28108         * doc/glibc-functions/mkostemp.texi: New file.
28109         * doc/glibc-functions/pipe2.texi: New file.
28110         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
28111         (Glibc sys/socket.h): Refer to accept4.
28112         (Glibc unistd.h): Refer to dup3, pipe2.
28113         Reported by Eric Blake.
28114
28115 2009-08-22  Jim Meyering  <meyering@redhat.com>
28116             Bruno Haible  <bruno@clisp.org>
28117
28118         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
28119         This makes it so packages using automake-1.11's silent-rules option
28120         can print e.g., a single "GEN    configmake.h" line, rather than
28121         the 30+ statements that perform the job.  If you want to see the
28122         actual commands, you can still run "make V=1".
28123         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
28124         so that make output is abbreviated when those variables are defined
28125         appropriately.
28126         * modules/argz: Likewise.
28127         * modules/arpa_inet: Likewise.
28128         * modules/byteswap: Likewise.
28129         * modules/configmake: Likewise.
28130         * modules/dirent: Likewise.
28131         * modules/errno: Likewise.
28132         * modules/fcntl: Likewise.
28133         * modules/float: Likewise.
28134         * modules/fnmatch: Likewise.
28135         * modules/getopt-posix: Likewise.
28136         * modules/glob: Likewise.
28137         * modules/iconv_open: Likewise.
28138         * modules/inttypes: Likewise.
28139         * modules/localcharset: Likewise.
28140         * modules/locale: Likewise.
28141         * modules/math: Likewise.
28142         * modules/netdb: Likewise.
28143         * modules/netinet_in: Likewise.
28144         * modules/poll: Likewise.
28145         * modules/posix_spawnp-tests: Likewise.
28146         * modules/sched: Likewise.
28147         * modules/search: Likewise.
28148         * modules/selinux-h: Likewise.
28149         * modules/signal: Likewise.
28150         * modules/spawn: Likewise.
28151         * modules/stdarg: Likewise.
28152         * modules/stdbool: Likewise.
28153         * modules/stddef: Likewise.
28154         * modules/stdint: Likewise.
28155         * modules/stdio: Likewise.
28156         * modules/stdlib: Likewise.
28157         * modules/string: Likewise.
28158         * modules/strings: Likewise.
28159         * modules/sys_file: Likewise.
28160         * modules/sys_ioctl: Likewise.
28161         * modules/sys_select: Likewise.
28162         * modules/sys_socket: Likewise.
28163         * modules/sys_stat: Likewise.
28164         * modules/sys_time: Likewise.
28165         * modules/sys_times: Likewise.
28166         * modules/sys_utsname: Likewise.
28167         * modules/sys_wait: Likewise.
28168         * modules/sysexits: Likewise.
28169         * modules/time: Likewise.
28170         * modules/unistd: Likewise.
28171         * modules/wchar: Likewise.
28172         * modules/wctype: Likewise.
28173
28174 2009-08-22  Jim Meyering  <meyering@redhat.com>
28175
28176         announce-gen: detect write failure
28177         * build-aux/announce-gen: Add Coda at end.
28178         Remove equivalent-but-more-verbose block at top.
28179
28180 2009-08-19  Akim Demaille  <demaille@gostai.com>
28181
28182         bootstrap: --help to stdout.
28183         * bootstrap (usage): Don't send --help to stderr.
28184         Use a here doc instead of a long string.
28185
28186 2009-08-21  Eric Blake  <ebb9@byu.net>
28187
28188         test-popen-safer: split from test-popen
28189         * tests/test-popen.c (main): Move...
28190         * tests/test-popen.h: ...into new file.
28191         * tests/test-popen-safer2.c: New file.
28192         * modules/popen-tests (Files): Add test-popen.h.
28193         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
28194         Suggested by Bruno Haible.
28195
28196         test-fcntl-safer: split from test-open
28197         * tests/test-open.c (main): Move...
28198         * tests/test-open.h: ...into new file.
28199         * tests/test-fcntl-safer.c: New file.
28200         * modules/open-tests (Files): Add test-open.h.
28201         * modules/fcntl-safer-tests: New file.
28202         Suggested by Bruno Haible.
28203
28204         test-fopen-safer: split from test-fopen
28205         * tests/test-fopen.c (main): Move...
28206         * tests/test-fopen.h: ...into new file.
28207         * tests/test-fopen-safer.c: New file.
28208         * modules/fopen-tests (Files): Add test-fopen.h.
28209         * modules/fopen-safer-tests: New file.
28210         Suggested by Bruno Haible.
28211
28212 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28213
28214         popen-safer: test O_CLOEXEC at run-time.
28215         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
28216
28217 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
28218
28219         fcntl: move more flags to the header
28220         * lib/cloexec.c: Do not define FD_CLOEXEC here.
28221         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
28222         * lib/fcntl.in.h: Do both things here.
28223
28224 2009-08-21  Jim Meyering  <meyering@redhat.com>
28225
28226         consistently remove $@-t before redirecting to it
28227         * modules/argz: Remove $@-t and $@ before redirecting to the former.
28228         * modules/alloca-opt: Likewise.
28229         * modules/byteswap: Likewise.
28230         * modules/fnmatch: Likewise.
28231         * modules/getopt-posix: Likewise.
28232         * modules/glob: Likewise.
28233         * modules/poll: Likewise.
28234         * modules/posix_spawnp-tests: Likewise.
28235         * modules/sys_socket: Likewise.
28236         * modules/sysexits: Likewise.
28237
28238 2009-08-21  Eric Blake  <ebb9@byu.net>
28239
28240         popen: simplify access to original popen
28241         * lib/popen.c (rpl_popen): No need to worry about popen being a
28242         macro.
28243         Reported by Bruno Haible.
28244
28245 2009-08-20  Eric Blake  <ebb9@byu.net>
28246
28247         build: avoid some compiler warnings
28248         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
28249         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
28250         type.
28251         (new_exclude_segment, excluded_file_pattern_p)
28252         (excluded_file_name_p): Reduce scope.
28253         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
28254         old-style declaration.
28255
28256 2009-08-20  Simon Josefsson  <simon@josefsson.org>
28257
28258         * tests/test-exclude1.sh: Handle Windows EOL.
28259         * tests/test-exclude2.sh: Likewise.
28260         * tests/test-exclude3.sh: Likewise.
28261         * tests/test-exclude4.sh: Likewise.
28262         * tests/test-exclude5.sh: Likewise.
28263         * tests/test-exclude6.sh: Likewise.
28264         * tests/test-exclude7.sh: Likewise.
28265
28266 2009-08-19  Akim Demaille  <demaille@gostai.com>
28267
28268         bootstrap: find sha1sum when named gsha1sum.
28269         * bootstrap (find_tool): New.
28270         ($SHA1SUM): New.
28271         Use it.
28272
28273 2009-08-20  Jim Meyering  <meyering@redhat.com>
28274
28275         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
28276         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
28277         expression that converts "." in a file name to "\." in the resulting
28278         regexp.  Start with a dummy statement, so that prior shell variable
28279         definitions are expanded portably.  Reported by Simon Josefsson.
28280
28281 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
28282
28283         Fix polling for writeability of a screen buffer.
28284         * lib/poll.c: Distinguish input and screen buffers for the
28285         Win32 implementation.
28286         * lib/select.c: Likewise.
28287
28288 2009-08-19  Eric Blake  <ebb9@byu.net>
28289
28290         popen-safer: prevent popen from clobbering std descriptors
28291         * modules/popen-safer: New file.
28292         * lib/popen-safer.c: Likewise.
28293         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
28294         * lib/stdio--.h (popen): Provide override.
28295         * lib/stdio-safer.h (popen_safer): Provide declaration.
28296         * tests/test-popen.c (includes): Partially test this.
28297         * modules/popen-safer-tests: New file, for more tests.
28298         * tests/test-popen-safer.c: Likewise.
28299         * MODULES.html.sh (file stream based Input/Output): Mention it.
28300
28301         tests: test some of the *-safer modules
28302         * modules/fopen-safer (Depends-on): Add fopen.
28303         * modules/fcntl-safer (Depends-on): Add fcntl.
28304         * modules/stdlib-safer (Depends-on): Add stdlib.
28305         (configure.ac): Set indicator.
28306         * modules/unistd-safer (configure.ac): Likewise.
28307         * modules/tmpfile-safer (configure.ac): Likewise.
28308         (Depends-on): Add tmpfile.
28309         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
28310         active.
28311         * tests/test-fopen.c (includes): Test safer versions when they are
28312         in use.
28313         * tests/test-open.c (includes): Likewise.
28314
28315         popen: fix cygwin 1.5 bug when stdin closed
28316         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
28317         * modules/popen: New file.
28318         * modules/popen-tests: Likewise.
28319         * tests/test-popen.c: Likewise.
28320         * m4/popen.m4: Likewise.
28321         * lib/popen.c: Likewise.
28322         * lib/stdio.in.h (popen): New declaration.
28323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
28324         * modules/stdio (Makefile.am): Likewise.
28325         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
28326
28327 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
28328
28329         maint.mk: give full control over update-copyright exclusions
28330         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28331         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28332         (update-copyright): Don't force inclusion of top-level
28333         ChangeLog.  Don't force exclusion of all COPYING files, but make
28334         them the default exclusion instead.
28335
28336 2009-08-16  Bruno Haible  <bruno@clisp.org>
28337
28338         Fix test failures on Solaris 10.
28339         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28340         tests when Solaris iconv() is used.
28341         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28342         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28343         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28344         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28345         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28346
28347 2009-08-16  Bruno Haible  <bruno@clisp.org>
28348
28349         Fix test failures on Solaris 10.
28350         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28351         'tr' program and pass it as first argument.
28352         * tests/test-pipe-filter-gi1.sh: Likewise.
28353         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28354         program as first argument.
28355         * tests/test-pipe-filter-gi1.c (main): Likewise.
28356
28357 2009-08-16  Eric Blake  <ebb9@byu.net>
28358
28359         fpurge: fix previous commits
28360         * modules/fpurge (Makefile.am): Make replacement conditional,
28361         partially reverting 2007-04-29 change; missed in previous
28362         attempt.
28363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28364         is missing.
28365
28366 2009-08-16  Bruno Haible  <bruno@clisp.org>
28367
28368         Clarify fpurge's effect on the file position.
28369         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28370         * tests/test-fpurge.c (main): Make a second pass for checking the file
28371         position.
28372
28373 2009-08-16  Bruno Haible  <bruno@clisp.org>
28374
28375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28376         declaration of fpurge is missing.
28377         * tests/test-fpurge.c (main): Check that the file has not more contents
28378         than expected. Close the file before removing it.
28379
28380 2009-08-15  Eric Blake  <ebb9@byu.net>
28381
28382         fpurge: don't wrap working cygwin implementation
28383         * lib/fpurge.c (fpurge): Fix comment typo.
28384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28385         1.7 to avoid replacement.
28386         * tests/test-fpurge.c (main): Enhance test.
28387
28388 2009-08-15  Eric Blake  <ebb9@byu.net>
28389         and Jim Meyering  <meyering@redhat.com>
28390
28391         test-update-copyright: skip if perl is insufficient
28392         * tests/test-update-copyright.sh: Failure to run maintainer tool
28393         should not cause testsuite failure on cygwin 1.5.
28394
28395 2009-08-14  Eric Blake  <ebb9@byu.net>
28396
28397         doc: mention more functions added in cygwin 1.7.0
28398         * doc/posix-headers/limits.texi (limits.h): Update for recent
28399         cygwin additions.
28400         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28401         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28402         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28403         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28404         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28405
28406 2009-08-14  Eric Blake  <ebb9@byu.net>
28407
28408         maint.mk: simplify update-copyright rule
28409         * top/maint.mk (update-copyright-local): Delete, and document how
28410         to do it in cfg.mk instead.
28411         (update-copyright-exclude-regexp): Delete, and document how to do
28412         it in .x-update-copyright instead.
28413         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28414         exclude ChangeLog.
28415
28416 2009-08-14  Bruno Haible  <bruno@clisp.org>
28417
28418         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28419
28420 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28421
28422         maint.mk: support update-copyright-env
28423         * top/maint.mk (update-copyright-env): Define place-holder.
28424         (update-copyright): Expand $(update-copyright-env) before
28425         invoking update-copyright.
28426
28427 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28428
28429         update-copyright: implement forced reformatting
28430         * build-aux/update-copyright: Implement and document
28431         UPDATE_COPYRIGHT_FORCE.
28432         * tests/test-update-copyright.sh: Test it.
28433
28434 2009-08-14  Eric Blake  <ebb9@byu.net>
28435         and Bruno Haible  <bruno@clisp.org>
28436
28437         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28438         * tests/test-locale.c: Revert previous patch related to NULL.
28439         * tests/test-stdio.c: Likewise.
28440         * tests/test-stdlib.c: Likewise.
28441         * tests/test-string.c: Likewise.
28442         * tests/test-unistd.c: Likewise.
28443         * modules/time-tests (Depends-on): Add verify.
28444         * modules/wchar-tests (Depends-on): Likewise.
28445         * tests/test-time.c: Test for NULL compliance.
28446         * tests/test-wchar.c: Likewise.
28447         * modules/locale (Depends-on): Add stddef.
28448         * modules/stdio (Depends-on): Likewise.
28449         * modules/stdlib (Depends-on): Likewise.
28450         * modules/string (Depends-on): Likewise.
28451         * modules/time (Depends-on): Likewise.
28452         * modules/unistd (Depends-on): Likewise.
28453         * modules/wchar (Depends-on): Likewise.
28454         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28455         * lib/stdlib.in.h (includes): Likewise.
28456         * lib/string.in.h (includes): Likewise.
28457         * lib/time.in.h (includes): Likewise.
28458         * lib/unistd.in.h (includes): Likewise.
28459         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28460         replaced.
28461         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28462         * m4/stddef_h.m4: New file.
28463         * modules/stddef: Likewise.
28464         * lib/stddef.in.h: Likewise.
28465         * modules/stddef-tests: Likewise.
28466         * tests/test-stddef.c: Likewise.
28467         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28468         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28469         * doc/posix-headers/locale.texi (locale.h): Likewise.
28470         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28471         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28472         * doc/posix-headers/string.texi (string.h): Likewise.
28473         * doc/posix-headers/time.texi (time.h): Likewise.
28474         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28475         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28476
28477 2009-08-14  Eric Blake  <ebb9@byu.net>
28478
28479         doc: improve git diff of texinfo files
28480         * .gitattributes: Add rule for *.texi files, with hint on how to
28481         use it.
28482         Copied from m4, and based on a report by Bruno Haible.
28483
28484 2009-08-14  Bruno Haible  <bruno@clisp.org>
28485
28486         Disable multithread support by default on Cygwin 1.5.x for real.
28487         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28488
28489 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28490
28491         update-copyright: much ado about intervals
28492         * build-aux/update-copyright: Implement and document
28493         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28494         of copyright year intervals.
28495         Also, document UPDATE_COPYRIGHT_YEAR.
28496         * tests/test-update-copyright.sh: Test it.
28497
28498         update-copyright: convert 2-digit to 4-digit years
28499         * build-aux/update-copyright: Implement and document.
28500         * tests/test-update-copyright.sh: Update.
28501
28502 2009-08-14  Jim Meyering  <meyering@redhat.com>
28503
28504         test-exclude: avoid coreutils "make check" failure
28505         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28506         just as in test-argmatch.c.
28507
28508 2009-08-13  Eric Blake  <ebb9@byu.net>
28509
28510         test-dup2: fix bad assumption
28511         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28512         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28513
28514         test-version-etc: fix CRLF portability issue
28515         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28516         recognize \r.
28517         * tests/test-argp-version-etc-1.sh: Likewise.
28518
28519         getopt: update client modules
28520         * modules/argp (Depends-on): Use getopt-gnu.
28521         * modules/git-merge-changelog (Depends-on): Likewise.
28522         * modules/long-options (Depends-on): Likewise.
28523         * modules/xstrtol (Depends-on): Likewise.
28524
28525 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28526
28527         * tests/test-version-etc.sh: Don't fail on different
28528         project/version.  Don't fail on CRLF differences.  Rewrite to use
28529         multiple -e instead of multiple sed forks, suggested by Eric Blake
28530         <ebb9@byu.net>.
28531         * tests/test-argp-version-etc-1.sh: Likewise.
28532
28533 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28534
28535         * tests/test-version-etc.sh: Don't fail on different
28536         project/version.
28537
28538 2009-08-12  Bruno Haible  <bruno@clisp.org>
28539
28540         Tests for modules 'getopt-posix', 'getopt-gnu'.
28541         * modules/getopt-posix-tests: New file.
28542         * tests/test-getopt.c: New file.
28543         * tests/test-getopt.h: New file.
28544         * tests/test-getopt_long.h: New file.
28545
28546         New modules 'getopt-posix', 'getopt-gnu'.
28547         * modules/getopt-gnu: New file, renamed from modules/getopt.
28548         * modules/getopt-posix: New file.
28549         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28550         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28551         (gl_GETOPT): Remove macro.
28552         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28553         Disable the test against BSD systems that declare optreset. Test
28554         against mingw bug. Test against lack of support of optional arguments
28555         on many platforms.
28556         * doc/glibc-headers/getopt.texi: Update module name and list of
28557         relevant platforms.
28558         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28559         'getopt-gnu' and more portability problems.
28560         * NEWS: Mention the changes.
28561
28562 2009-08-12  Bruno Haible  <bruno@clisp.org>
28563
28564         Ensure that optarg etc. get declared by <unistd.h>.
28565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28566         AC_USE_SYSTEM_EXTENSIONS.
28567         * modules/getopt (Depends-on): Add 'extensions'.
28568
28569 2009-08-12  Bruno Haible  <bruno@clisp.org>
28570
28571         Avoid test link errors.
28572         * modules/pipe-filter-ii-tests (Makefile.am): Define
28573         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28574         * modules/pipe-filter-gi-tests (Makefile.am): Define
28575         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28577
28578 2009-08-12  Bruno Haible  <bruno@clisp.org>
28579
28580         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28581         gl_GETOPT_SUBSTITUTE before.
28582         (gl_GETOPT): Use it.
28583         * m4/argp.m4 (gl_ARGP): Update.
28584         Reported by Sergey Poznyakoff.
28585
28586         * m4/getopt.m4: Reorder macros.
28587         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28588         (gl_GETOPT_SUBSTITUTE): Remove macro.
28589
28590 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28591
28592         Minor improvement in gitlog-to-changelog
28593
28594         * build-aux/gitlog-to-changelog: New option `--format' makes
28595         output format string configurable.
28596
28597 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28598
28599         Optimize exclude: use hash tables for non-wildcard patterns.
28600
28601         * lib/exclude.c: Include hash.h and mbuiter.h
28602         (struct exclude_pattern, exclude_segment): New data types.
28603         (struct exclude): Rewrite.
28604         (fnmatch_pattern_has_wildcards): New function.
28605         (new_exclude_segment, free_exclude_segment): New functions.
28606         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28607         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28608         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28609         * modules/exclude: Depend on hash and mbuiter.
28610
28611         * modules/exclude-tests: New file.
28612         * tests/test-exclude.c: New file.
28613         * tests/test-exclude1.sh: New file.
28614         * tests/test-exclude2.sh: New file.
28615         * tests/test-exclude3.sh: New file.
28616         * tests/test-exclude4.sh: New file.
28617         * tests/test-exclude5.sh: New file.
28618         * tests/test-exclude6.sh: New file.
28619         * tests/test-exclude7.sh: New file.
28620
28621 2009-08-12  Bruno Haible  <bruno@clisp.org>
28622
28623         Ensure that getopt() gets declared by <unistd.h>.
28624         * lib/unistd.in.h: Conditionally include getopt.h.
28625         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28626         Set GNULIB_UNISTD_H_GETOPT.
28627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28628         GNULIB_UNISTD_H_GETOPT.
28629         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28630
28631 2009-08-12  Bruno Haible  <bruno@clisp.org>
28632
28633         Clarify logic.
28634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28635         gl_replace_getopt instead of GETOPT_H.
28636
28637 2009-08-12  Bruno Haible  <bruno@clisp.org>
28638
28639         * m4/getopt.m4: Add comments.
28640
28641 2009-08-12  Bruno Haible  <bruno@clisp.org>
28642
28643         Disable multithread support by default on Cygwin 1.5.x.
28644         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28645         set gl_use_threads=no if not specified otherwise.
28646
28647 2009-08-11  Bruno Haible  <bruno@clisp.org>
28648
28649         Avoid compilation error on NetBSD 5.0.
28650         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28651         * tests/test-stdio.c: Likewise.
28652         * tests/test-stdlib.c: Likewise.
28653         * tests/test-string.c: Likewise.
28654         * tests/test-unistd.c: Likewise.
28655         Reported by Greg Troxel <gdt@ir.bbn.com>
28656         at <https://savannah.gnu.org/support/?106973>.
28657
28658 2009-08-11  Bruno Haible  <bruno@clisp.org>
28659
28660         * modules/dup2-tests (Depends-on): Remove close.
28661
28662         Undo 2009-07-19 commit.
28663         * modules/acl-tests (Depends-on): Remove close.
28664         * modules/binary-io-tests (Depends-on): Likewise.
28665         * modules/closein-tests (Depends-on): Likewise.
28666         * modules/flock-tests (Depends-on): Likewise.
28667         * modules/fsync-tests (Depends-on): Likewise.
28668         * modules/lseek-tests (Depends-on): Likewise.
28669         * modules/pipe-tests (Depends-on): Likewise.
28670         * modules/posix_spawn-tests (Depends-on): Likewise.
28671         * modules/posix_spawnp-tests (Depends-on): Likewise.
28672         * modules/stat-time-tests (Depends-on): Likewise.
28673         * modules/yesno-tests (Depends-on): Likewise.
28674
28675 2009-08-10  Bruno Haible  <bruno@clisp.org>
28676
28677         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28678
28679 2009-08-10  Bruno Haible  <bruno@clisp.org>
28680
28681         Fix a gcc warning.
28682         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28683
28684 2009-08-10  Bruno Haible  <bruno@clisp.org>
28685
28686         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28687         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28688         not only the first time.
28689         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28690         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28691         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28692         is 1, not only the the first time.
28693
28694 2009-08-10  Bruno Haible  <bruno@clisp.org>
28695
28696         Make it possible to use module 'gethostname' without module 'close'.
28697         * lib/unistd.in.h (close): Evoke a link error only if
28698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28700         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28701         * modules/unistd (Makefile.am): Substitute
28702         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28703         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28705         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28706         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28707         * modules/sys_ioctl (Makefile.am): Substitute
28708         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28709         * modules/socket (configure.ac): On native Windows, set
28710         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28711         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28712         Reported by Sam Steingold <sds@gnu.org>.
28713
28714 2009-08-10  Bruno Haible  <bruno@clisp.org>
28715
28716         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28717         * modules/ioctl (configure.ac): Likewise.
28718
28719 2009-08-10  Bruno Haible  <bruno@clisp.org>
28720
28721         Avoid collision between gnulib wrapper and libintl wrapper.
28722         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28723         already defined in intl/printf.c.
28724         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28725         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28726
28727 2009-08-09  Bruno Haible  <bruno@clisp.org>
28728
28729         Make <sys/select.h> really self-contained, also on Solaris 10.
28730         * lib/sys_select.in.h: Include <string.h>.
28731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28732         Solaris 10 problem.
28733         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28734         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28735         Reported by Jim Meyering.
28736
28737 2009-08-09  Bruno Haible  <bruno@clisp.org>
28738
28739         Avoid warnings from 'aclocal' that are due to a use of macro name
28740         AM_XGETTEXT_OPTION that is not defined in automake.
28741         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28742         automake.
28743         * modules/error (configure.ac): Likewise.
28744         * modules/propername (configure.ac): Likewise.
28745         * modules/vasprintf (configure.ac): Likewise.
28746         * modules/verror (configure.ac): Likewise.
28747         * modules/xprintf (configure.ac): Likewise.
28748         * modules/xvasprintf (configure.ac): Likewise.
28749
28750 2009-08-08  Bruno Haible  <bruno@clisp.org>
28751
28752         Avoid compilation error in C++ mode.
28753         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28754         Reported by Sam Steingold <sds@gnu.org>.
28755
28756 2009-08-08  Bruno Haible  <bruno@clisp.org>
28757
28758         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28759         for the various Unix platforms.
28760         * doc/posix-headers/limits.texi: Update platforms list regarding
28761         HOST_NAME_MAX.
28762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28763
28764 2009-08-07  Jim Meyering  <meyering@redhat.com>
28765
28766         selinux-at: fix typo in a comment
28767         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28768         Spotted by Paolo Bonzini.
28769
28770         selinux-at: remove redundant m4 code, add documentation
28771         * modules/selinux-at (configure.ac): Remove redundant code.
28772         LIB_SELINUX is already set via the dependent module, selinux-h.
28773         (Include): Add quotes around selinux-at.h.
28774         * lib/selinux-at.h: Add documentation.
28775         Reported by Bruno Haible in
28776         http://marc.info/?l=gnulib-bug&m=124958988300749
28777
28778 2009-08-07  Bruno Haible  <bruno@clisp.org>
28779
28780         Avoid link error on MacOS X 10.3 and 10.4.
28781         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28782         on non-ELF systems.
28783         * lib/argp-pv.c (argp_program_version): Likewise.
28784         Reported by Simon Josefsson.
28785
28786 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28787
28788         * tests/test-version-etc.sh: Use $EXEEXT.
28789
28790 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28791
28792         update-copyright: update documentation to point to maint.mk
28793         * build-aux/update-copyright: Here.
28794
28795 2009-08-06  Jim Meyering  <meyering@redhat.com>
28796
28797         maint.mk: support update-copyright-local
28798         * top/maint.mk (update-copyright-local): Define place-holder.
28799         (update-copyright): Depend on $(update-copyright-local).
28800
28801 2009-08-06  Jim Meyering  <meyering@redhat.com>
28802
28803         selinux-at: new module
28804         Initially written for coreutils, this module will soon be
28805         used by findutils, too.
28806         * MODULES.html.sh [Misc]: Add selinux-at.
28807         * lib/selinux-at.h: New file, from coreutils.
28808         * lib/selinux-at.c: Likewise.
28809         * modules/selinux-at: Likewise.
28810         (License): Change from LGPL to GPL, since it depends
28811         on the GPL'd openat module.
28812
28813         doc: update README
28814         * README: Remove references to cogito.
28815         Remove cvs-repo-updating instructions from 2007.
28816         Don't imply that CVS is better if you have limited disk space.
28817
28818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28819
28820         update-copyright: support C-style comments
28821         * build-aux/update-copyright: Implement and document.
28822         * tests/test-update-copyright.sh: Test.
28823
28824 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28825
28826         update-copyright: support omitted "(C)"
28827         * build-aux/update-copyright: Implement and document.  Also,
28828         allow variable whitespace before "(C)".
28829         * tests/test-update-copyright.sh: Test.
28830
28831 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28832
28833         update-copyright: don't trip on non-FSF copyright statements
28834         * build-aux/update-copyright: Fix so that the first correctly
28835         formatted FSF copyright statement is recognized no matter what
28836         appears before it.  Update documentation.
28837         * tests/test-update-copyright.sh: Test that.
28838
28839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28840
28841         update-copyright: clean up code a little
28842         * build-aux/update-copyright: Append "_re" to the name of any
28843         variable holding a regular expression.
28844         Replace "old" and "new" with "stmt" in variable names.
28845         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28846         handled correctly.
28847         Format code more consistently.
28848
28849 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28850
28851         update-copyright-tests: improve portability
28852         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28853         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28854
28855 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28856
28857         update-copyright: support @copyright{} and &copy;
28858         * build-aux/update-copyright: Implement and document.
28859         * tests/test-update-copyright.sh: Test.
28860
28861 2009-08-04  Jim Meyering  <meyering@redhat.com>
28862
28863         update-copyright-tests: correctly test EOL=\r\n handling
28864         * tests/test-update-copyright.sh: Put \r at the end of some lines
28865         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28866
28867         maint.mk: make update-copyright exclusion list more configurable
28868         * top/maint.mk (update-copyright): Default to excluding COPYING,
28869         but allow an override, in case someone does want to update that file.
28870
28871         maint.mk: don't update copyright date in COPYING
28872         * top/maint.mk (update-copyright): Exclude COPYING.
28873
28874         maint.mk: add a copyright-updating rule
28875         * top/maint.mk (update-copyright): New rule.
28876         Derived from coreutils/Makefile.am.
28877
28878         update-copyright: rename some variables
28879         * build-aux/update-copyright: Rename a few variables for clarity.
28880         Tweak syntax.  List Joel E. Denny as coauthor.
28881
28882 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28883
28884         update-copyright: fix bug for 2-digit last year and add tests
28885         * build-aux/update-copyright: Fix bug.
28886         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28887         specified.
28888         * modules/update-copyright-tests: New
28889         * tests/test-update-copyright.sh: New.
28890
28891 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28892
28893         update-copyright: handle leading tabs in line prefix
28894         * build-aux/update-copyright: Count leading tabs as 8 spaces
28895         when computing margin.  This helps with the formatting of
28896         ChangeLogs, for example.
28897         Fix documentation a little.
28898
28899 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28900
28901         update-copyright: support EOL=\r\n
28902         * build-aux/update-copyright: Implement that.
28903
28904 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28905
28906         update-copyright: automatically format copyright statements
28907         * build-aux/update-copyright: Implement that.
28908         Also, be a little more predictable and safer by always failing
28909         when the full copyright format is not perfectly recognized as an
28910         unbroken whole.  Discussed at
28911         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28912         Rewrite documentation.
28913
28914 2009-08-03  Bruno Haible  <bruno@clisp.org>
28915
28916         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28917
28918 2009-08-02  Bruno Haible  <bruno@clisp.org>
28919
28920         Tests for module 'uname'.
28921         * modules/uname-tests: New file.
28922         * tests/test-uname.c: New file.
28923
28924         New module 'uname'.
28925         * lib/uname.c: New file.
28926         * m4/uname.m4: New file.
28927         * modules/uname: New file.
28928         * doc/posix-functions/uname.texi: Mention the new module.
28929
28930 2009-08-02  Bruno Haible  <bruno@clisp.org>
28931
28932         Tests for module 'sys_utsname'.
28933         * modules/sys_utsname-tests: New file.
28934         * tests/test-sys_utsname.c: New file.
28935
28936         New module 'sys_utsname'.
28937         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28938         * m4/sys_utsname_h.m4: New file.
28939         * modules/sys_utsname: New file.
28940         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28941
28942 2009-08-02  Bruno Haible  <bruno@clisp.org>
28943
28944         Implicitly initialize the sockets library.
28945         * lib/gethostname.c: Include sockets.h.
28946         (rpl_gethostname): Invoke gl_sockets_startup.
28947         * lib/socket.c: Include sockets.h.
28948         (rpl_socket): Invoke gl_sockets_startup.
28949         * modules/gethostname (Depends-on): Add sockets.
28950         * modules/socket (Depends-on): Likewise.
28951         * tests/test-poll.c: Don't include sockets.h.
28952         (main): Don't invoke gl_sockets_startup.
28953         * tests/test-select.c: Don't include sockets.h.
28954         (main): Don't invoke gl_sockets_startup.
28955
28956 2009-08-02  Bruno Haible  <bruno@clisp.org>
28957
28958         Allow multiple calls to gl_sockets_startup.
28959         * lib/sockets.c (initialized_sockets_version): New variable.
28960         (gl_sockets_startup): Do nothing if already called for this or a higher
28961         version.
28962         (gl_sockets_cleanup): Reset initialized_sockets_version.
28963
28964 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28965
28966         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28967         different project/version.
28968
28969 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28970             Bruno Haible  <bruno@clisp.org>
28971
28972         Tests for module 'pipe-filter-gi'.
28973         * modules/pipe-filter-gi-tests: New file.
28974         * tests/test-pipe-filter-gi1.sh: New file.
28975         * tests/test-pipe-filter-gi1.c: New file.
28976         * tests/test-pipe-filter-gi2.sh: New file.
28977         * tests/test-pipe-filter-gi2-main.c: New file.
28978         * tests/test-pipe-filter-gi2-child.c: New file.
28979
28980         New module 'pipe-filter-gi'.
28981         * lib/pipe-filter-gi.c: New file.
28982         * modules/pipe-filter-gi: New file.
28983
28984 2009-08-02  Bruno Haible  <bruno@clisp.org>
28985             Paolo Bonzini  <bonzini@gnu.org>
28986
28987         Tests for module 'pipe-filter-ii'.
28988         * modules/pipe-filter-ii-tests: New file.
28989         * tests/test-pipe-filter-ii1.sh: New file.
28990         * tests/test-pipe-filter-ii1.c: New file.
28991         * tests/test-pipe-filter-ii2.sh: New file.
28992         * tests/test-pipe-filter-ii2-main.c: New file.
28993         * tests/test-pipe-filter-ii2-child.c: New file.
28994
28995         New module 'pipe-filter-ii'.
28996         * lib/pipe-filter.h: New file.
28997         * lib/pipe-filter-ii.c: New file.
28998         * lib/pipe-filter-aux.h: New file.
28999         * modules/pipe-filter-ii: New file.
29000
29001 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29002
29003         * lib/gc-libgcrypt.c: Change copyright to FSF.
29004         * lib/gc-gnulib.c: Likewise.
29005
29006 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
29007
29008         * lib/gethostname.c: Include limits.h.
29009
29010 2009-08-02  Simon Josefsson  <simon@josefsson.org>
29011             Bruno Haible  <bruno@clisp.org>
29012
29013         Ensure HOST_NAME_MAX as part of the gethostname module.
29014         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
29015         define also HOST_NAME_MAX.
29016         * tests/test-gethostname.c: Include <limits.h>.
29017         (main): Check also HOST_NAME_MAX.
29018         * doc/posix-headers/limits.texi: Document the mingw problem.
29019
29020 2009-08-02  Bruno Haible  <bruno@clisp.org>
29021
29022         * lib/gethostname.c (gethostname): Fix handling of large len argument.
29023         Add comments.
29024
29025 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29026
29027         * lib/gethostname.c: Add Windows wrapper.
29028         * m4/gethostname.m4: Look for gethostname in -lws2_32.
29029         * modules/gethostname: Depend on sys_socket & errno, for also
29030         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
29031         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
29032
29033 2009-07-31  Jim Meyering  <meyering@redhat.com>
29034
29035         getloadavg: fix symbol name in comment
29036         * lib/getloadavg.c: Correct a typo I introduced when adding
29037         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
29038         Matt Kraai spotted the problem.
29039
29040 2009-07-29  Matt Kraai  <mkraai@beckman.com>
29041
29042         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
29043         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
29044         code also if ! defined N_NAME_POINTER.
29045         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
29046         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
29047         but the n_name member is a 12-byte array.
29048
29049 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
29050
29051         update-copyright: generalize comment handling
29052         * build-aux/update-copyright: Handle copyright statements
29053         within more comment styles.
29054         Document usage.
29055         Report any file with an external copyright holder or parse failure.
29056
29057 2009-07-29  Jim Meyering  <meyering@redhat.com>
29058
29059         mktime: correct setting of REPLACE_MKTIME
29060         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
29061
29062         update-copyright: new module
29063         * modules/update-copyright: New file.
29064         * build-aux/update-copyright: New file.
29065         * MODULES.html.sh (maint+release support): Add update-copyright.
29066
29067 2009-07-27  Bruno Haible  <bruno@clisp.org>
29068
29069         Fix compilation error when <ctime> is used and mktime is replaced.
29070         * lib/time.in.h (mktime): New declaration.
29071         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
29072         REPLACE_MKTIME instead of defining mktime in config.h.
29073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
29074         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
29075         Reported by Ross McFarland <rwmcfa1@neces.com>.
29076
29077 2009-07-27  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
29080         Reported by Matt Kraai <mkraai@beckman.com>.
29081
29082 2009-07-25  Jim Meyering  <meyering@redhat.com>
29083
29084         maint.mk: avoid warnings about missing files
29085         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
29086         diagnostic when .prev-version does not exist.
29087         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
29088         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
29089         nonexistent cfg.mk.
29090         Suggestions from Simon Josefsson.
29091
29092 2009-07-25  Bruno Haible  <bruno@clisp.org>
29093
29094         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
29095         defined as macros. Needed on QNX 6.4.1.
29096         Reported by Matt Kraai <mkraai@beckman.com>.
29097
29098 2009-07-23  Jim Meyering  <meyering@redhat.com>
29099
29100         maint.mk: invoke "make dist" with a working value of XZ_OPT
29101         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
29102
29103 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
29104
29105         Make fseeko.c compile on QNX.
29106         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
29107
29108 2009-07-22  Peter Simons  <simons@cryp.to>
29109
29110         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
29111         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
29112         * lib/md4.h: Likewise.
29113         * lib/md5.h: Likewise.
29114         * lib/sha1.h: Likewise.
29115         * lib/sha256.h: Likewise.
29116         * lib/sha512.h: Likewise.
29117
29118         tests-sha1: don't assign literal string to 'char *' variable
29119         * tests/test-sha1.c (main): Declare locals with "const" to match
29120         attributes of the right hand side.
29121
29122 2009-07-21  Eric Blake  <ebb9@byu.net>
29123
29124         dup2: fix more mingw problems
29125         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
29126         fd to itself.
29127         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29128         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
29129         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
29130         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
29131         care of mingw bugs.
29132
29133 2009-07-21  Jim Meyering  <meyering@redhat.com>
29134
29135         vc-list-files: avoid failure when /bin/sh is dash
29136         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
29137         On some Debian based systems, /bin/sh is a symlink to dash, and running
29138         this command would omit the "/" following each 'tests' prefix:
29139           dash -x build-aux/vc-list-files -C . tests
29140         That is because bash and dash work differently:
29141           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
29142           bash ok
29143           dash odd
29144
29145 2009-07-21  Eric Blake  <ebb9@byu.net>
29146
29147         dup2-tests: test previous patch
29148         * modules/dup2-tests: New file.
29149         * tests/test-dup2.c: Likewise.
29150         * tests/test-open.c (main): Avoid unspecified behavior.
29151         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
29152         test.
29153
29154         dup2: work around mingw and cygwin 1.5 bug
29155         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
29156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29157         * modules/unistd (Makefile.am): Substitute it.
29158         * lib/unistd.in.h (dup2): Declare the replacement.
29159         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
29160         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
29161         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
29162         * modules/execute (Depends-on): Add dup2.
29163         * modules/fseterr (Depends-on): Likewise.
29164         * modules/pipe (Depends-on): Likewise.
29165         * modules/posix_spawn-internal (Depends-on): Likewise.
29166
29167 2009-07-21  Bruno Haible  <bruno@clisp.org>
29168
29169         * modules/.gitattributes: New file.
29170
29171 2009-07-20  Bruno Haible  <bruno@clisp.org>
29172
29173         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
29174         (main): Use it.
29175
29176 2009-07-20  Eric Blake  <ebb9@byu.net>
29177
29178         test-pipe: make a bit more robust.
29179         * tests/test-pipe.c (myerr): Allow error messages regardless of
29180         what we do to stderr.
29181         (test_pipe): Rearrange to avoid deadlock.
29182         (child_main): Try a larger read, to ensure we avoided deadlock.
29183         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
29184         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
29185         if misused.
29186
29187 2009-07-19  Jim Meyering  <meyering@redhat.com>
29188
29189         fts: avoid false-positive cycle-detection
29190         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
29191         for each new command line argument.
29192
29193 2009-07-19  Bruno Haible  <bruno@clisp.org>
29194
29195         Fix build error on mingw with the modules sys_select and unistd.
29196         * modules/acl-tests (Depends-on): Add close.
29197         * modules/binary-io-tests (Depends-on): Likewise.
29198         * modules/closein-tests (Depends-on): Likewise.
29199         * modules/flock-tests (Depends-on): Likewise.
29200         * modules/fsync-tests (Depends-on): Likewise.
29201         * modules/lseek-tests (Depends-on): Likewise.
29202         * modules/pipe-tests (Depends-on): Likewise.
29203         * modules/posix_spawn-tests (Depends-on): Likewise.
29204         * modules/posix_spawnp-tests (Depends-on): Likewise.
29205         * modules/stat-time-tests (Depends-on): Likewise.
29206         * modules/yesno-tests (Depends-on): Likewise.
29207
29208 2009-07-19  Bruno Haible  <bruno@clisp.org>
29209
29210         Unify conditionals.
29211         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
29212         macros, not at the compiler macros.
29213         * lib/pipe.c: Likewise.
29214         * lib/execute.c: Likewise.
29215         * lib/spawni.c: Likewise.
29216
29217 2009-07-19  Bruno Haible  <bruno@clisp.org>
29218
29219         Fix handling of closed stdin/stdout/stderr on mingw.
29220         * lib/w32spawn.h: Include unistd.h.
29221         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
29222         file descriptor with O_NOINHERIT flag.
29223         (fd_safer_noinherit): New function, based on fd-safer.c.
29224         (dup_safer_noinherit): New function, based on dup-safer.c.
29225         (undup_safer_noinherit): New function.
29226         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
29227         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
29228         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
29229         instead of fd_safer.
29230         * tests/test-pipe.c: Include <windows.h>.
29231         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
29232         result.
29233
29234         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
29235         from main.
29236         (test_pipe): Pass an extra argument for disambiguation.
29237         (main): Invoke parent_main or child_main.
29238
29239         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
29240         consistently.
29241
29242 2009-07-18  Eric Blake  <ebb9@byu.net>
29243
29244         test-pipe: fix mingw build
29245         * tests/test-pipe.c (main): Avoid fcntl on mingw.
29246
29247 2009-07-18  Bruno Haible  <bruno@clisp.org>
29248
29249         * modules/pipe-tests (Makefile.am): Fix typo.
29250
29251 2009-07-18  Eric Blake  <ebb9@byu.net>
29252
29253         error: fix mingw build
29254         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
29255         Reported by Bruno Haible.
29256
29257         error: avoid undefined use of stdout
29258         * lib/error.c (error, error_at_line): Check that fd 1 is open
29259         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
29260         is handling faults and the close_stdout module wants to report the
29261         detection of closed stdout as an error.
29262
29263 2009-07-17  Eric Blake  <ebb9@byu.net>
29264
29265         pipe: be robust in face of closed fds
29266         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
29267         should cause child to misbehave.
29268         * modules/pipe-tests: New module.
29269         * tests/test-pipe.c: New file.
29270         * tests/test-pipe.sh: New file.
29271         Reported by Akim Demaille.
29272
29273 2009-07-14  Bruno Haible  <bruno@clisp.org>
29274
29275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
29276         Reported by anonymous kc.
29277
29278 2009-07-07  Jim Meyering  <meyering@redhat.com>
29279
29280         maint.mk: don't look for translatable strings in *.m4 or *.mk
29281         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
29282         when searching for translatable strings.
29283
29284 2009-07-05  Jim Meyering  <meyering@redhat.com>
29285
29286         remove superfluous parentheses in STREQ definition
29287         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
29288         * lib/getugroups.c (STREQ): Likewise.
29289         * lib/fnmatch.c (STREQ): Likewise.
29290         Spotted by Bruno Haible.
29291
29292 2009-07-04  Jim Meyering  <meyering@redhat.com>
29293
29294         argv-iter: new module
29295         * MODULES.html.sh: Add argv-iter.
29296         * lib/argv-iter.c, lib/argv-iter.h: New files.
29297         * modules/argv-iter: New file.
29298         * modules/argv-iter-tests: New file.
29299         * tests/test-argv-iter.c: Test it.
29300
29301 2009-07-04  Bruno Haible  <bruno@clisp.org>
29302
29303         Fix assertion.
29304         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
29305         contains more exact copies of a given entry than file2, leave the extra
29306         copies unpaired rather than aborting.
29307         Reported by Eric Blake.
29308
29309 2009-07-02  Bruno Haible  <bruno@clisp.org>
29310
29311         Speedup git-merge-changelog for git cherry-pick.
29312         * lib/git-merge-changelog.c (struct entries_mapping): New type.
29313         (entries_mapping_get): New function, extracted from compute_mapping.
29314         (entries_mapping_reverse_get): New function.
29315         (compute_mapping): Add a 'full' argument. Return the result in a
29316         'struct entries_mapping'.
29317         (main): Update. Access the mappings through entries_mapping_get.
29318         Reported by Eric Blake.
29319
29320 2009-07-02  Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
29323         best_i.
29324
29325 2009-07-02  Bruno Haible  <bruno@clisp.org>
29326
29327         Speed up approximate search for matching ChangeLog entries.
29328         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
29329         argument. Call fstrcmp_bounded instead of fstrcmp.
29330         (compute_mapping, try_split_merged_entry, main): Update callers.
29331
29332 2009-07-02  Bruno Haible  <bruno@clisp.org>
29333
29334         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29335
29336 2009-06-30  Bruno Haible  <bruno@clisp.org>
29337
29338         Reduce the number of uc_is_cased calls.
29339         * lib/unicase.h (casing_suffix_context_t): Add
29340         'first_char_except_ignorable' field.
29341         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29342         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29343         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29344         Update initializer.
29345         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29346         case-ignorable characters.
29347         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29348         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29349         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29350         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29351         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29352
29353 2009-06-30  Bruno Haible  <bruno@clisp.org>
29354
29355         Tests for module 'unicase/ignorable'.
29356         * modules/unicase/ignorable-tests: New file.
29357         * tests/unicase/test-ignorable.c: New file, generated by
29358         gen-uni-tables.
29359
29360         Tests for module 'unicase/cased'.
29361         * modules/unicase/cased-tests: New file.
29362         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29363         * tests/unicase/test-predicate-part1.h: New file, derived from
29364         tests/unictype/test-predicate-part1.h.
29365         * tests/unicase/test-predicate-part2.h: New file, same as
29366         tests/unictype/test-predicate-part2.h.
29367
29368         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29369         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29370         (output_casing_properties): New function.
29371         (main): Call it.
29372         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29373         * lib/unicase/cased.c: Include unictype/bitmap.h.
29374         (uc_is_cased): Define through a bitmap lookup.
29375         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29376         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29377         (uc_is_case_ignorable): Define through a bitmap lookup.
29378         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29379         lib/unictype/bitmap.h.
29380         (Depends-on): Add inline. Clean up.
29381         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29382         lib/unictype/bitmap.h.
29383         (Depends-on): Add inline. Clean up.
29384         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29385         recognition.
29386         * tests/unicase/test-u16-tolower.c (main): Likewise.
29387         * tests/unicase/test-u32-tolower.c (main): Likewise.
29388
29389 2009-06-30  Bruno Haible  <bruno@clisp.org>
29390
29391         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29392         * lib/unicase/u16-casemap.c: Likewise.
29393         * lib/unicase/u32-casemap.c: Likewise.
29394
29395 2009-06-29  Bruno Haible  <bruno@clisp.org>
29396
29397         Define u32_casefold as a wrapper around u32_ct_casefold.
29398         * lib/unicase/u32-casefold.c: Update.
29399         * modules/unicase/u32-casefold (Depends-on): Add
29400         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29401         unicase/empty-suffix-context. Clean up.
29402
29403         Define u16_casefold as a wrapper around u16_ct_casefold.
29404         * lib/unicase/u16-casefold.c: Update.
29405         * modules/unicase/u16-casefold (Depends-on): Add
29406         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29407         unicase/empty-suffix-context. Clean up.
29408
29409         Define u8_casefold as a wrapper around u8_ct_casefold.
29410         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29411         * lib/unicase/u8-casefold.c: Update.
29412         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29413         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29414
29415         Define u32_totitle as a wrapper around u32_ct_totitle.
29416         * lib/unicase/u32-totitle.c: Update.
29417         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29418         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29419
29420         Define u16_totitle as a wrapper around u16_ct_totitle.
29421         * lib/unicase/u16-totitle.c: Update.
29422         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29423         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29424
29425         Define u8_totitle as a wrapper around u8_ct_totitle.
29426         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29427         functions.
29428         (FUNC): Delegate to U_CT_TOTITLE.
29429         * lib/unicase/u8-totitle.c: Update.
29430         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29431         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29432
29433         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29434         invocation.
29435         * modules/unicase/u32-tolower (Depends-on): Add
29436         unicase/empty-prefix-context, unicase/empty-suffix-context.
29437
29438         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29439         invocation.
29440         * modules/unicase/u16-tolower (Depends-on): Add
29441         unicase/empty-prefix-context, unicase/empty-suffix-context.
29442
29443         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29444         * modules/unicase/u8-tolower (Depends-on): Add
29445         unicase/empty-prefix-context, unicase/empty-suffix-context.
29446
29447         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29448         invocation.
29449         * modules/unicase/u32-toupper (Depends-on): Add
29450         unicase/empty-prefix-context, unicase/empty-suffix-context.
29451
29452         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29453         invocation.
29454         * modules/unicase/u16-toupper (Depends-on): Add
29455         unicase/empty-prefix-context, unicase/empty-suffix-context.
29456
29457         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29458         * modules/unicase/u8-toupper (Depends-on): Add
29459         unicase/empty-prefix-context, unicase/empty-suffix-context.
29460
29461         New module 'unicase/u32-ct-casefold'.
29462         * lib/unicase/u32-ct-casefold.c: New file.
29463         * modules/unicase/u32-ct-casefold: New file.
29464
29465         New module 'unicase/u16-ct-casefold'.
29466         * lib/unicase/u16-ct-casefold.c: New file.
29467         * modules/unicase/u16-ct-casefold: New file.
29468
29469         New module 'unicase/u8-ct-casefold'.
29470         * lib/unicase/u8-ct-casefold.c: New file.
29471         * lib/unicase/u-ct-casefold.h: New file, derived from
29472         lib/unicase/u-casefold.h.
29473         * modules/unicase/u8-ct-casefold: New file.
29474
29475         New module 'unicase/u32-ct-totitle'.
29476         * lib/unicase/u32-ct-totitle.c: New file.
29477         * modules/unicase/u32-ct-totitle: New file.
29478
29479         New module 'unicase/u16-ct-totitle'.
29480         * lib/unicase/u16-ct-totitle.c: New file.
29481         * modules/unicase/u16-ct-totitle: New file.
29482
29483         New module 'unicase/u8-ct-totitle'.
29484         * lib/unicase/u8-ct-totitle.c: New file.
29485         * lib/unicase/u-ct-totitle.h: New file, derived from
29486         lib/unicase/u-totitle.h.
29487         * modules/unicase/u8-ct-totitle: New file.
29488
29489         New module 'unicase/u32-ct-tolower'.
29490         * lib/unicase/u32-ct-tolower.c: New file.
29491         * modules/unicase/u32-ct-tolower: New file.
29492
29493         New module 'unicase/u16-ct-tolower'.
29494         * lib/unicase/u16-ct-tolower.c: New file.
29495         * modules/unicase/u16-ct-tolower: New file.
29496
29497         New module 'unicase/u8-ct-tolower'.
29498         * lib/unicase/u8-ct-tolower.c: New file.
29499         * modules/unicase/u8-ct-tolower: New file.
29500
29501         New module 'unicase/u32-ct-toupper'.
29502         * lib/unicase/u32-ct-toupper.c: New file.
29503         * modules/unicase/u32-ct-toupper: New file.
29504
29505         New module 'unicase/u16-ct-toupper'.
29506         * lib/unicase/u16-ct-toupper.c: New file.
29507         * modules/unicase/u16-ct-toupper: New file.
29508
29509         New module 'unicase/u8-ct-toupper'.
29510         * lib/unicase/u8-ct-toupper.c: New file.
29511         * modules/unicase/u8-ct-toupper: New file.
29512
29513         Add context arguments to u*_casemap functions.
29514         * lib/unicase/unicasemap.h: Include unicase.h.
29515         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29516         suffix_context arguments.
29517         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29518         functions.
29519         (FUNC): Add prefix_context and suffix_context arguments. Use
29520         uc_is_cased and uc_is_case_ignorable.
29521         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29522         * lib/unicase/u16-casemap.c: Likewise.
29523         * lib/unicase/u32-casemap.c: Likewise.
29524         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29525         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29526         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29527         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29528         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29529         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29530
29531         New module 'unicase/u32-suffix-context'.
29532         * lib/unicase/u32-suffix-context.c: New file.
29533         * modules/unicase/u32-suffix-context: New file.
29534
29535         New module 'unicase/u16-suffix-context'.
29536         * lib/unicase/u16-suffix-context.c: New file.
29537         * modules/unicase/u16-suffix-context: New file.
29538
29539         New module 'unicase/u8-suffix-context'.
29540         * lib/unicase/u8-suffix-context.c: New file.
29541         * lib/unicase/u-suffix-context.h: New file.
29542         * modules/unicase/u8-suffix-context: New file.
29543
29544         New module 'unicase/empty-suffix-context'.
29545         * lib/unicase/empty-suffix-context.c: New file.
29546         * modules/unicase/empty-suffix-context: New file.
29547
29548         New module 'unicase/u32-prefix-context'.
29549         * lib/unicase/u32-prefix-context.c: New file.
29550         * modules/unicase/u32-prefix-context: New file.
29551
29552         New module 'unicase/u16-prefix-context'.
29553         * lib/unicase/u16-prefix-context.c: New file.
29554         * modules/unicase/u16-prefix-context: New file.
29555
29556         New module 'unicase/u8-prefix-context'.
29557         * lib/unicase/u8-prefix-context.c: New file.
29558         * lib/unicase/u-prefix-context.h: New file.
29559         * lib/unicase/context.h: New file.
29560         * modules/unicase/u8-prefix-context: New file.
29561
29562         New module 'unicase/empty-prefix-context'.
29563         * lib/unicase/empty-prefix-context.c: New file.
29564         * modules/unicase/empty-prefix-context: New file.
29565
29566         New module 'unicase/ignorable'.
29567         * lib/unicase/ignorable.c: New file.
29568         * modules/unicase/ignorable: New file.
29569
29570         New module 'unicase/cased'.
29571         * lib/unicase/caseprop.h: New file.
29572         * lib/unicase/cased.c: New file.
29573         * modules/unicase/cased: New file.
29574
29575         New functions for case mapping of substrings.
29576         * lib/unicase.h (casing_prefix_context_t): New type.
29577         (unicase_empty_prefix_context): New variable.
29578         (u8_casing_prefix_context, u16_casing_prefix_context,
29579         u32_casing_prefix_context, u8_casing_prefixes_context,
29580         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29581         declarations.
29582         (casing_suffix_context_t): New type.
29583         (unicase_empty_suffix_context): New variable.
29584         (u8_casing_suffix_context, u16_casing_suffix_context,
29585         u32_casing_suffix_context, u8_casing_suffixes_context,
29586         u16_casing_suffixes_context, u32_casing_suffixes_context,
29587         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29588         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29589         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29590         declarations.
29591
29592 2009-06-28  Jim Meyering  <meyering@redhat.com>
29593
29594         boostrap: indent only with spaces
29595         * build-aux/bootstrap: Indent only with spaces, never TABs.
29596
29597         bootstrap: split long lines
29598         * build-aux/bootstrap: Keep line length < 80.
29599
29600         bootstrap: sync from coreutils
29601         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29602         just as autoreconf does.  Verify a list of prerequisite
29603         package-name,version-number pairs if defined in bootstrap.conf.
29604         Refer to README-prereq, if prerequisites are not satisfied.
29605
29606 2009-06-27  Eric Blake  <ebb9@byu.net>
29607
29608         tests: add test for bogus NULL definition
29609         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29610         * tests/test-stdlib.c: Likewise.
29611         * tests/test-string.c: Likewise.
29612         * tests/test-locale.c: Likewise.
29613         * tests/test-unistd.c: Likewise.
29614         * modules/stdio-tests (Depends-on): Add verify.
29615         * modules/stdlib-tests (Depends-on): Likewise.
29616         * modules/string-tests (Depends-on): Likewise.
29617         * modules/locale-tests (Depends-on): Likewise.
29618         * modules/unistd-tests (Depends-on): Likewise.
29619
29620 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29621
29622         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29623         self-explaining comment.
29624         * m4/selinux-selinux-h: Update serial.
29625         (gl_LIBSELINUX): New macro, adding a warning for missing development
29626         packages to code extracted from...
29627         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29628         Add warning for missing development packages here, too.
29629
29630 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29631
29632         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29633
29634 2009-06-25  Eric Blake  <ebb9@byu.net>
29635
29636         version-etc: fix regression
29637         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29638         gcc.
29639         (version_etc): Use it, to catch bugs with trailing NULL.
29640         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29641         (version_etc_va): Fix logic bug.
29642         * modules/version-etc-tests: Add test.
29643         * tests/test-version-etc.c: New file.
29644         * tests/test-version-etc.sh: Likewise.
29645
29646 2009-06-25  Sam Steingold  <sds@gnu.org>
29647
29648         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29649         mbtowc declaration.
29650
29651 2009-06-25  Eric Blake  <ebb9@byu.net>
29652
29653         fpurge: migrate into <stdio.h>
29654         * lib/fpurge.h: Delete...
29655         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29656         * lib/fpurge.c (fpurge): Change declaring header.
29657         * modules/fpurge (Files): Drop deleted file.
29658         (Depends-on): Add stdio.
29659         (configure.ac): Set witness.
29660         * modules/stdio (Makefile.am): Support fpurge macros.
29661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29662         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29663         * lib/fflush.c: Update client.
29664         * tests/test-fpurge.c: Likewise.
29665         * NEWS: Mention the change.
29666
29667 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29668
29669         * lib/argp-version-etc.c (program_authors): Add const
29670         qualifier.
29671         * lib/version-etc.c: Fix typos in the comments.
29672         * modules/argp-version-etc: Depends on version-etc.
29673
29674 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29675
29676         argp-version-etc: new module.
29677
29678         * lib/argp-version-etc.c: New file.
29679         * lib/argp-version-etc.h: New file.
29680         * modules/argp-version-etc: New file.
29681         * modules/argp-version-etc-tests: New file.
29682         * tests/test-argp-version-etc.c: New test.
29683         * tests/test-argp-version-etc-1.sh: New test.
29684
29685 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29686
29687         Provide additional interfaces and documentation for version-etc
29688         module.
29689
29690         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29691         interfaces.
29692         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29693         prototypes.
29694
29695 2009-06-24  Bruno Haible  <bruno@clisp.org>
29696
29697         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29698         HAVE_LIB${NAME} macro.
29699         Reported by Sam Steingold <sds@gnu.org>.
29700
29701 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29702
29703         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29704         needed.
29705
29706 2009-06-21  Bruno Haible  <bruno@clisp.org>
29707
29708         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29709         work.
29710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29711         together with LIB${NAME}, LTLIB${NAME}.
29712         Reported by Sam Steingold <sds@gnu.org>.
29713
29714 2009-06-20  Jim Meyering  <meyering@redhat.com>
29715
29716         tests: make sc_require_test_exit_idiom more generic
29717         * top/maint.mk (Exit_witness_file): New overridable variable.
29718         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29719         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29720
29721 2009-06-19  Jim Meyering  <meyering@redhat.com>
29722
29723         hash: reverse order of src/dst parameters in an internal interface
29724         * lib/hash.c (transfer_entries): Reverse order of parameters to
29725         put DST before SRC.  Adjust callers.
29726
29727         tests: test-hash: avoid wholesale duplication
29728         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29729         Instead, use a loop and add a single conditional.
29730
29731         tests: test-hash: allow seed selection via a command line argument
29732         * tests/test-hash.c (get_seed): New function.
29733         (main): Use it.
29734
29735 2009-06-19  Eric Blake  <ebb9@byu.net>
29736
29737         hash: avoid memory leak on allocation failure
29738         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29739         failure.  Factor repeated algorithm...
29740         (transfer_entries): ...into new helper routine.
29741         (hash_delete): React to hash_rehash return value.
29742
29743         hash: reduce memory pressure in hash_rehash no-op case
29744         * lib/hash.c (next_prime): Avoid overflow.
29745         (hash_initialize): Factor bucket size computation...
29746         (compute_bucket_size): ...into new helper function.
29747         (hash_rehash): Use new function and open coding to reduce memory
29748         pressure, and avoid a memory leak in USE_OBSTACK code.
29749         Reported by Jim Meyering.
29750
29751 2009-06-18  Eric Blake  <ebb9@byu.net>
29752
29753         hash: make rotation more obvious
29754         * modules/hash (Depends-on): Add bitrotate and stdint.
29755         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29756         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29757         (SIZE_MAX): Rely on headers for definition.
29758         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29759         (raw_hasher): Use rotr_sz.
29760         Suggested by Jim Meyering.
29761
29762         hash: fix memory leak in last patch
29763         * lib/hash.c (hash_rehash): Avoid memory leak.
29764
29765         hash: avoid no-op rehashing
29766         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29767
29768         hash: provide default callback functions
29769         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29770         (hash_initialize): Use them as defaults.
29771         * tests/test-hash.c (main): Test this.
29772
29773         hash: minor optimization
29774         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29775         when possible.
29776         (hash_initialize): Document this promise.
29777         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29778         * tests/test-hash.c (hash_compare_strings): Test this.
29779
29780 2009-06-18  Bruno Haible  <bruno@clisp.org>
29781
29782         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29783         going to be replaced anyway.
29784
29785 2009-06-18  Bruno Haible  <bruno@clisp.org>
29786
29787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29788         in one place.
29789         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29790         be replaced anyway.
29791
29792 2009-06-18  Eric Blake  <ebb9@byu.net>
29793
29794         hash: check for resize before insertion
29795         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29796         threshold before insertion, so that a pathological hash_rehash
29797         that fills every bucket can still trigger another rehash.
29798
29799 2009-06-18  Jim Meyering  <meyering@redhat.com>
29800
29801         hash-tests: add a loop around the small tests
29802         * tests/test-hash.c (main): Repeat small tests with selected
29803         small initial table sizes.
29804
29805 2009-06-17  Eric Blake  <ebb9@byu.net>
29806
29807         hash: minor cleanups
29808         * lib/hash.h (hash_entry): Make opaque, by moving...
29809         * lib/hash.c (hash_entry): ...here.
29810         (hash_insert): Clarify restrictions on what can be inserted.
29811         (hash_get_next): Clarify when it is safe to remove an element
29812         during traversal.
29813         (check_tuning): Skip verification when tuning is known safe.
29814         (hash_initialize): Clarify restrictions on tuning.
29815
29816 2009-06-17  Jim Meyering  <jim@meyering.net>
29817         and Eric Blake  <ebb9@byu.net>
29818
29819         hash-tests: new module
29820         * modules/hash-tests: New file.
29821         * tests/test-hash.c: New file.
29822
29823 2009-06-17  Eric Blake  <ebb9@byu.net>
29824
29825         strstr-simple: document new module
29826         * MODULES.html.sh: Document new module.
29827
29828         strstr, strcasestr: replace on platforms with broken memchr
29829         * modules/strstr: Split into...
29830         * modules/strstr-simple: ...new module that does not care about
29831         performance, but does care about glibc bug.
29832         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29833         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29834         if platform memchr is broken, per Debian bug 521737.
29835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29836         memchr.
29837         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29838         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29839         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29840         * modules/mountlist (Depends-on): Add strstr-simple.
29841         * modules/gen-uni-tables (Depends-on): Likewise.
29842         * modules/argz (Depends-on): Add strstr.
29843
29844 2009-06-17  Bruno Haible  <bruno@clisp.org>
29845
29846         * modules/posix_spawn-internal (Depends-on): Add errno.
29847
29848 2009-06-17  Bruno Haible  <bruno@clisp.org>
29849
29850         Define missing ESTALE on Interix 3.5.
29851         * lib/errno.in.h (ESTALE): Assign a value if missing.
29852         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29854         missing.
29855         * doc/posix-headers/errno.texi: Mention the Interix bug.
29856         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29857
29858 2009-06-15  Eric Blake  <ebb9@byu.net>
29859
29860         memchr, memchr2: add valgrind exception
29861         * lib/memchr.valgrind: New file.
29862         * lib/memchr2.valgrind: New file.
29863         * modules/memchr (Files): Distribute valgrind file.
29864         * modules/memchr2 (Files): Likewise.
29865
29866         docs: memchr is no longer obsolete
29867         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29868         * lib/string.in.h (memchr): Simplify logic.
29869
29870 2009-06-14  Jim Meyering  <meyering@redhat.com>
29871
29872         link-follow: fix the "checking..." message to not mention trailing slash
29873         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29874         never considered trailing slashes.
29875
29876 2009-06-14  Bruno Haible  <bruno@clisp.org>
29877
29878         * m4/memchr.m4: Mention also the bug on IA-64.
29879         * doc/posix-functions/memchr.texi: Likewise.
29880
29881 2009-06-12  Eric Blake  <ebb9@byu.net>
29882
29883         memchr: detect broken x86_64 and alpha implementations
29884         * modules/memchr-tests (Depends-on): Move mmap detection...
29885         * modules/memchr (Depends-on): ...here.
29886         (configure.ac): Set indicator.
29887         * lib/string.in.h (memchr): Declare replacement.
29888         * modules/string (Makefile.am): Trigger replacement.
29889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29890         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29891         bugs.
29892         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29893         * modules/getpagesize (License): Relax license.
29894
29895 2009-06-11  Bruno Haible  <bruno@clisp.org>
29896
29897         * lib/idpriv.h: Add more references.
29898
29899 2009-06-08  Bruno Haible  <bruno@clisp.org>
29900
29901         Tests for module 'idpriv-droptemp'.
29902         * modules/idpriv-droptemp-tests: New file.
29903         * tests/test-idpriv-droptemp.sh: New file.
29904         * tests/test-idpriv-droptemp.su.sh: New file.
29905         * tests/test-idpriv-droptemp.c: New file.
29906
29907         New module 'idpriv-droptemp'.
29908         * lib/idpriv-droptemp.c: New file.
29909         * modules/idpriv-droptemp: New file.
29910
29911 2009-06-08  Bruno Haible  <bruno@clisp.org>
29912
29913         Tests for module 'idpriv-drop'.
29914         * modules/idpriv-drop-tests: New file.
29915         * tests/test-idpriv-drop.sh: New file.
29916         * tests/test-idpriv-drop.su.sh: New file.
29917         * tests/test-idpriv-drop.c: New file.
29918
29919         New module 'idpriv-drop'.
29920         * lib/idpriv.h: New file.
29921         * lib-idpriv-drop.c: New file.
29922         * m4/idpriv.m4: New file.
29923         * modules/idpriv-drop: New file.
29924
29925 2009-06-08  Bruno Haible  <bruno@clisp.org>
29926
29927         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29928         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29930         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29931         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29932         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29933         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29934
29935 2009-06-08  Eric Blake  <ebb9@byu.net>
29936
29937         test-strstr: use memory fence, when possible
29938         * tests/test-strstr.c (main): Use memory fence, in order to be
29939         more likely to trigger Debian bug 521737.
29940         * modules/strstr-tests (Files): Pull in additional files.
29941
29942         memchr: no longer obsolete, for wider field testing
29943         * modules/memchr (Status, Notice): Delete, this module is no
29944         longer obsolete.
29945         * modules/vasnprintf (Depends-on): Add memchr.
29946
29947 2009-06-07  Jim Meyering  <meyering@redhat.com>
29948
29949         hash: declare some functions with the warn_unused_result attribute
29950         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29951
29952 2009-06-07  Bruno Haible  <bruno@clisp.org>
29953
29954         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29955         Reported by Eric Blake.
29956
29957 2009-06-06  Eric Blake  <ebb9@byu.net>
29958
29959         test-alignof: fix typo with long double
29960         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29961         compiler error.
29962
29963 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29964
29965         Escape non-texinfo { and }s.
29966         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29967         markup error.
29968
29969 2009-06-04  Jim Meyering  <meyering@redhat.com>
29970
29971         gitlog-to-changelog: don't infloop on an empty commit log
29972         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29973         Reported by Boris Petersen <transacid@centerim.org>.
29974
29975 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29976
29977         version-etc: extend for packagers
29978         Add three new configure options, intended for packagers:
29979           --with-packager="packager name"
29980           --with-packager-version="packager-specific version"
29981           --with-packager-bug-reports="packager bug reporting"
29982         An example with coreutils:
29983           $ ./configure \
29984             --with-packager=Gentoo \
29985             --with-packager-bug-report=http://bugs.gentoo.org/ \
29986             --with-packager-version="patchset 1.6"
29987           $ ./src/ls --version | head -n2
29988           ls (GNU coreutils) 7.1-dirty
29989           Packaged by Gentoo (patchset 1.6)
29990         Note that the bug reporting info via --help doesn't show up because
29991         coreutils uses its own custom emit_bug_reporting_address() implementation
29992         in src/system.h.  If it didn't, it'd look like:
29993           $ ./src/ls --help | tail -n4
29994           Report bugs to <bug-coreutils@gnu.org>.
29995           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29996           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29997           General help using GNU software: <http://www.gnu.org/gethelp/>.
29998         * lib/version-etc.c: Print new information, if provided.
29999         * m4/version-etc.m4: New file.
30000         * modules/version-etc (Files): Add m4/version-etc.m4.
30001         (configure.ac): Add gl_VERSION_ETC.
30002
30003 2009-05-31  Bruno Haible  <bruno@clisp.org>
30004
30005         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
30006         and 'int64_t'.
30007         * modules/alignof-tests (Dependencies): Add stdint.
30008         Reported by Eric Blake.
30009
30010 2009-05-31  Bruno Haible  <bruno@clisp.org>
30011
30012         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
30013         restriction due to compiler bugs.
30014         Reported by Eric Blake.
30015
30016 2009-05-31  Simon Josefsson  <simon@josefsson.org>
30017             Bruno Haible  <bruno@clisp.org>
30018
30019         Fix test-alignof failure.
30020         * lib/alignof.h (alignof_slot): New macro.
30021         (alignof_type): New macro, with the same semantics as the previous
30022         'alignof'.
30023         (alignof): Alias to alignof_slot.
30024         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
30025         check that the results are usable as constant expressions.
30026
30027 2009-05-31  Bruno Haible  <bruno@clisp.org>
30028
30029         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
30030         * tests/test-memchr.c (main): Check that memchr does not read past the
30031         first occurrence of the byte.
30032         * tests/test-strstr.c (main): Update comment.
30033         Suggested by Eric Blake.
30034
30035 2009-05-30  Bruno Haible  <bruno@clisp.org>
30036
30037         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
30038         detail how to use dumpbin.
30039         Reported by David Byron <dbyron@dbyron.com>.
30040
30041 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30042
30043         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
30044
30045 2009-06-02  Simon Josefsson  <simon@josefsson.org>
30046
30047         * m4/manywarnings.m4: Add GCC 4.4 warnings.
30048
30049 2009-05-28  Bruno Haible  <bruno@clisp.org>
30050
30051         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
30052         build-aux/ files.
30053
30054 2009-05-28  Simon Josefsson  <simon@josefsson.org>
30055
30056         * gnulib-tool (func_import): Transform license on build-aux/ files too.
30057
30058 2009-05-27  Simon Josefsson  <simon@josefsson.org>
30059
30060         * gnulib-tool (sed_transform_main_lib_file)
30061         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
30062         regexps.
30063
30064 2009-05-26  Simon Josefsson  <simon@josefsson.org>
30065
30066         * tests/test-strstr.c: Add another self-test.
30067         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
30068         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
30069
30070 2009-05-23  Bruno Haible  <bruno@clisp.org>
30071
30072         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
30073         change.
30074
30075 2009-05-21  Bruno Haible  <bruno@clisp.org>
30076
30077         Simplify use of mode_t varargs.
30078         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
30079         uses 'mode_t' or 'int'.
30080         * lib/openat.c (openat): Likewise.
30081         * lib/open-safer.c (open_safer): Likewise.
30082         * m4/mode_t.m4: New file.
30083         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
30084         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
30085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
30086         * modules/open (Files): Add m4/mode_t.m4.
30087         * modules/openat (Files): Likewise.
30088         * modules/fcntl-safer (Files): Likewise.
30089         Suggested by Eric Blake.
30090
30091 2009-05-21  Pádraig Brady  <P@draigbrady.com>
30092
30093         * doc/glibc-functions/fallocate.texi: New file.
30094         * doc/gnulib.texi: Include it.
30095
30096 2009-05-21  Eric Blake  <ebb9@byu.net>
30097             Bruno Haible  <bruno@clisp.org>
30098
30099         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
30100         invocations.
30101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30102
30103 2009-05-21  Eric Blake  <ebb9@byu.net>
30104             Bruno Haible  <bruno@clisp.org>
30105
30106         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
30107         include_next. Fix of 2008-11-20 commit.
30108         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
30109         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
30110         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
30111         NEXT_MATH_H.
30112         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
30113         instead of NEXT_MATH_H.
30114
30115 2009-05-21  Bruno Haible  <bruno@clisp.org>
30116
30117         Avoid redefinition warnings for SIZE_MAX.
30118         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
30119         Reported by Simon Josefsson.
30120
30121 2009-05-21  Bruno Haible  <bruno@clisp.org>
30122
30123         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
30124         AC_CACHE_VAL.
30125
30126 2009-05-20  Bruno Haible  <bruno@clisp.org>
30127
30128         Make zeroptr.h work on mingw.
30129         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
30130         mprotect.
30131         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
30132         * modules/memchr2-tests (configure.ac): Likewise.
30133         * modules/memcmp-tests (configure.ac): Likewise.
30134         * modules/memmem-tests (configure.ac): Likewise.
30135         * modules/memrchr-tests (configure.ac): Likewise.
30136         Reported by Simon Josefsson.
30137
30138 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30139
30140         * tests/test-glob.c: Include string.h for strcmp prototype.
30141
30142 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30143
30144         * modules/getdelim (Depends-on): Add explicit stdint, although it
30145         was implicitly already pulled in via realloc-posix.
30146         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
30147
30148 2009-05-20  Simon Josefsson  <simon@josefsson.org>
30149
30150         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
30151         G. Christensen" <tgc@jupiterrise.com>.
30152         * m4/sys_socket_h.m4: Check for sa_family_t.
30153         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
30154         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
30155         * tests/test-sys_socket.c: Check that sa_family_t works.
30156
30157 2009-05-18  Eric Blake  <ebb9@byu.net>
30158
30159         maint.mk: allow gnulib_dir in VPATH build
30160         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
30161
30162 2009-05-15  Jim Meyering  <meyering@redhat.com>
30163
30164         maint.mk: Give gnulib_dir a default definition.
30165         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
30166         Thus, most packages no longer need to specify this variable in cfg.mk
30167
30168 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
30169
30170         rename.m4: fix typos that would make non-mingw cross-configure fail
30171         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
30172
30173 2009-05-13  Eric Blake  <ebb9@byu.net>
30174
30175         mmap-anon: avoid out-of-order autoconf expansion
30176         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
30177         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
30178         * modules/memchr-tests (Depends-on): Add extensions.
30179         * modules/memchr2-tests (Depends-on): Add extensions.
30180         * modules/memcmp-tests (Depends-on): Add extensions.
30181         * modules/memmem-tests (Depends-on): Add extensions.
30182         * modules/memrchr-tests (Depends-on): Add extensions.
30183
30184 2009-05-13  Bruno Haible  <bruno@clisp.org>
30185
30186         Make some tests ISO C 99 compliant.
30187         * tests/zerosize-ptr.h: New file.
30188         * tests/test-memchr.c: Include zerosize-ptr.h.
30189         (main): Use a zero-size object pointer instead of NULL.
30190         * tests/test-memchr2.c: Include zerosize-ptr.h.
30191         (main): Use a zero-size object pointer instead of NULL.
30192         * tests/test-memcmp.c: Include zerosize-ptr.h.
30193         (main): Use a zero-size object pointer instead of NULL.
30194         * tests/test-memmem.c: Include zerosize-ptr.h.
30195         (main): Use a zero-size object pointer instead of NULL.
30196         * tests/test-memrchr.c: Include zerosize-ptr.h.
30197         (main): Use a zero-size object pointer instead of NULL.
30198         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
30199         m4/mmap-anon.m4.
30200         (Depends-on): Add getpagesize.
30201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30202         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
30203         m4/mmap-anon.m4.
30204         (Depends-on): Add getpagesize.
30205         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30206         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
30207         m4/mmap-anon.m4.
30208         (Depends-on): Add getpagesize.
30209         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30210         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
30211         m4/mmap-anon.m4.
30212         (Depends-on): Add getpagesize.
30213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30214         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
30215         m4/mmap-anon.m4.
30216         (Depends-on): Add getpagesize.
30217         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
30218
30219 2009-05-12  Bruno Haible  <bruno@clisp.org>
30220
30221         Tests for module 'alignof'.
30222         * modules/alignof-tests: New file.
30223         * tests/test-alignof.c: New file.
30224
30225 2009-05-12  Bruno Haible  <bruno@clisp.org>
30226
30227         Fix alignof macro.
30228         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
30229         vendor compilers that are always correct.
30230
30231 2009-05-12  Bruno Haible  <bruno@clisp.org>
30232
30233         Make the MAP_ANONYMOUS detection work on HP-UX 11.
30234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
30235         not whether its fully works.
30236
30237 2009-05-12  Bruno Haible  <bruno@clisp.org>
30238
30239         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
30240
30241 2009-05-12  Jim Meyering  <meyering@redhat.com>
30242
30243         * top/maint.mk: Adjust backslash alignment.
30244
30245 2009-05-11  Simon Josefsson  <simon@josefsson.org>
30246
30247         * top/maint.mk: Make $(srcdir)/build-aux configurable.
30248
30249 2009-05-11  Eric Blake  <ebb9@byu.net>
30250
30251         argp: avoid undefined behavior
30252         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
30253         macros.
30254
30255 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30256
30257         * tests/test-vc-list-files-git.sh: Do git config of user.email and
30258         user.name to prevent git commit from complaining.
30259
30260 2009-05-10  Bruno Haible  <bruno@clisp.org>
30261
30262         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
30263         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
30264         it rewrites every file name only once.
30265         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
30266
30267 2009-05-08  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
30270         instead of 'max'.
30271
30272 2009-05-08  Simon Josefsson  <simon@josefsson.org>
30273
30274         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
30275         sockaddr_storage test.
30276
30277 2009-05-07  Simon Josefsson  <simon@josefsson.org>
30278
30279         * modules/sys_socket (Makefile.am): Substitute
30280         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
30281         * m4/sys_socket_h.m4: Check for sockaddr_storage.
30282         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
30283         * tests/test-sys_socket.c: Check sockaddr_storage.
30284
30285 2009-05-08  Bruno Haible  <bruno@clisp.org>
30286
30287         New module 'alignof'.
30288         * lib/alignof.h: New file.
30289         * modules/alignof: New file.
30290
30291 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30292             Bruno Haible  <bruno@clisp.org>
30293
30294         Fix test-file-has-acl on FreeBSD.
30295         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
30296         mask is implicitly added.
30297         * tests/test-file-has-acl.c: Include <signal.h>.
30298         (main): Terminate the test after 5 seconds.
30299         * modules/acl-tests (configure.ac): Check for alarm function.
30300
30301 2009-05-04  Bruno Haible  <bruno@clisp.org>
30302
30303         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
30304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
30305         * modules/errno (configure.ac): Drop AC_REQUIRE.
30306         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
30307         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
30308
30309 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30310
30311         * modules/glob-tests: New module.
30312         * tests/test-glob.c: Add.
30313
30314 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30315
30316         * modules/fnmatch-tests: New module.
30317         * tests/test-fnmatch.c: Add.
30318
30319 2009-05-04  Eric Blake  <ebb9@byu.net>
30320
30321         maint: make the new no-submodule-changes rule VPATH-safe
30322         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
30323
30324 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30325             Bruno Haible  <bruno@clisp.org>
30326
30327         acl: Fix infinite loop on FreeBSD.
30328         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
30329         of return value from acl_get_entry.
30330         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30331         Likewise.
30332
30333 2009-05-03  Bruno Haible  <bruno@clisp.org>
30334
30335         * lib/acl-internal.h (acl_entries): Clarify return value.
30336         * lib/acl_entries.c (acl_entries): Likewise.
30337
30338 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30339
30340         Bug fix in acl module.
30341         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30342
30343 2009-05-03  Bruno Haible  <bruno@clisp.org>
30344
30345         Create gperf-generated file in the source dir, not in the build dir.
30346         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30347         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30348         * modules/unicase/locale-language (unicase/locale-languages.h):
30349         Likewise.
30350         * modules/unicase/special-casing (unicase/special-casing-table.h):
30351         Likewise.
30352         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30353         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30354         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30355         Reported by Ralf Wildenhues.
30356
30357 2009-05-03  Bruno Haible  <bruno@clisp.org>
30358
30359         * modules/fnmatch (Description, configure.ac): Taken from
30360         fnmatch-posix.
30361         * modules/fnmatch-posix: Turn into a symbolic reference to the
30362         'fnmatch' module, and deprecate.
30363         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30364
30365 2009-05-03  Bruno Haible  <bruno@clisp.org>
30366
30367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30368         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30369         Reported by Ralf Wildenhues.
30370
30371 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30372
30373         * m4/fnmatch.m4: Fix fnmatch re-define.
30374
30375 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30376
30377         priv-set: new module and tests; adapt write-any-file
30378         * lib/priv-set.c: New file.
30379         * lib/priv-set.h: New file.
30380         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30381         * lib/write-any-file.c: Simplify by using priv-set module.
30382         * m4/priv-set.m4: New file.
30383         * modules/priv-set: New file.
30384         * modules/unlinkdir: Add dependency on priv-set module.
30385         * modules/write-any-file: Likewise.
30386
30387         Tests for module 'priv-set'.
30388         * modules/priv-set-tests: New file.
30389         * tests/test-priv-set.c: New file.
30390
30391 2009-05-03  Jim Meyering  <meyering@redhat.com>
30392             Bruno Haible  <bruno@clisp.org>
30393
30394         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30395         use the converted UTF-8 variant of the name instead.
30396
30397 2009-05-03  Jim Meyering  <meyering@redhat.com>
30398
30399         tests: tighten some getdate tests
30400         * tests/test-getdate.c (main): Tighten tests: require equality,
30401         not just greater than.  Set TZ envvar to UTC0.
30402
30403 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30404
30405         getdate: correctly interpret "next monday" when run on a Monday
30406         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30407         that e.g., "next tues" (when run on a tuesday) results in a date
30408         that is one week in the future, and not today's date.
30409         I.e., add a week when the wday is the same as the current one.
30410         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30411         and earlier by Martin Bernreuther and Jan Minář.
30412         * tests/test-getdate.c (main): Check that "next DAY" is always in
30413         the future and that "last DAY" is always in the past.
30414
30415 2009-05-02  Jim Meyering  <meyering@redhat.com>
30416
30417         build: ensure that a release build fails when a submodule is unclean
30418         * top/maint.mk (no-submodule-changes): New rule.
30419         (alpha beta major): Depend on it.
30420
30421 2009-05-02  Bruno Haible  <bruno@clisp.org>
30422
30423         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30425         shell variable gl_fnmatch_required to detect which variant is
30426         requested.
30427         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30428         gl_FUNC_FNMATCH_POSIX.
30429         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30430         exclude fnmatch-posix.
30431
30432 2009-05-02  Bruno Haible  <bruno@clisp.org>
30433
30434         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30435         * modules/mbsrtowcs (License): Change to LGPLv2+.
30436         * modules/strnlen1 (License): Likewise.
30437         Reported by Simon Josefsson.
30438
30439 2009-05-02  Bruno Haible  <bruno@clisp.org>
30440
30441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30442         "cross".
30443         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30444         gnulib-tool was called with option --source-base=lib.
30445
30446 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30447
30448         Use automake *-local hooks without commands, for extensibility.
30449         * modules/localcharset (Makefile.am): Rename install-exec-local
30450         rule to install-exec-localcharset, and make it a prerequisite of
30451         install-exec-local.  Likewise, rename the uninstall-local rule to
30452         uninstall-localcharset, and make it a prerequisite of the former.
30453
30454 2009-05-01  Bruno Haible  <bruno@clisp.org>
30455
30456         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30457         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30458         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30460         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30461         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30462         m4/locale-zh.m4, m4/codeset.m4.
30463
30464         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30465         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30466         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30467         m4/locale-zh.m4.
30468
30469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30470         REPLACE_WCRTOMB if mbstate_t must be replaced.
30471         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30472         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30473
30474 2009-05-01  Bruno Haible  <bruno@clisp.org>
30475
30476         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30477         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30478         dngettext, dcngettext, textdomain, bindtextdomain,
30479         bind_textdomain_codeset): Undefine before redefining.
30480
30481 2009-04-30  Bruno Haible  <bruno@clisp.org>
30482
30483         Fix bug introduced on 2009-04-25.
30484         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30485         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30486         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30487         is defined.
30488         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30489         is defined.
30490         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30491         is defined.
30492         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30493
30494 2009-04-28  Bruno Haible  <bruno@clisp.org>
30495
30496         Comment tweaks.
30497         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30498         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30499         * lib/unicase.h (u*_casexfrm): Likewise.
30500         Reported by Paolo Bonzini.
30501
30502 2009-04-28  Bruno Haible  <bruno@clisp.org>
30503
30504         Fix a compilation error.
30505         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30506         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30507         Reported by Jim Meyering.
30508
30509 2009-04-27  Bruno Haible  <bruno@clisp.org>
30510
30511         New module 'libunistring'.
30512         * modules/libunistring: New file.
30513         * m4/libunistring.m4: New file.
30514         * MODULES.html.sh (Unicode string functions): Add it.
30515
30516 2009-04-27  Eric Blake  <ebb9@byu.net>
30517
30518         maint.mk: allow package-specific header to provide <config.h>
30519         * top/maint.mk (sc_require_config_h): New variable.
30520         (sc_require_config_h, sc_require_config_h_first): Use it.
30521
30522 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30523
30524         * top/maint.mk (sc_avoid_if_before_free): Except
30525         useless-if-before-free script.
30526
30527 2009-04-27  Eric Blake  <ebb9@byu.net>
30528
30529         maintainer-makefile: depend on all required helper scripts
30530         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30531         useless-if-before-free.
30532         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30533         version, rather than assuming gnulib checkout is available.
30534         Reported by Simen Josefsson.
30535
30536 2009-04-26  Bruno Haible  <bruno@clisp.org>
30537
30538         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30539         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30540         "../" or "..".
30541
30542 2009-04-26  Bruno Haible  <bruno@clisp.org>
30543
30544         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30545         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30546         AC_LIB_HAVE_LINKFLAGS.
30547
30548 2009-04-26  Bruno Haible  <bruno@clisp.org>
30549
30550         Simplify calling convention of u*_conv_from_encoding.
30551         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30552         u32_conv_from_encoding): Expect a resultbuf argument and return the
30553         result directly as a pointer.
30554         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30555         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30556         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30557         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30558         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30559         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30560         Update.
30561         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30562         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30563         * lib/vasnprintf.c (VASNPRINTF): Update.
30564         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30565         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30566         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30567         * NEWS: Mention the change.
30568
30569 2009-04-26  Bruno Haible  <bruno@clisp.org>
30570
30571         Simplify calling convention of u*_conv_to_encoding.
30572         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30573         u32_conv_to_encoding): Expect a resultbuf argument and return the
30574         result directly as a pointer.
30575         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30576         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30577         freeing scaled_offsets if mem_iconveha failed.
30578         * lib/unicase/u-casexfrm.h (FUNC): Update.
30579         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30580         * lib/vasnprintf.c (VASNPRINTF): Update.
30581         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30582         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30583         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30584         * NEWS: Mention the change.
30585
30586 2009-04-26  Bruno Haible  <bruno@clisp.org>
30587
30588         Avoid test failures on AIX and OSF/1.
30589         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30590         malloc(0).
30591         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30592         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30593         Likewise.
30594         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30595         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30596         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30597         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30598         * doc/posix-functions/malloc.texi: Document the portability problem
30599         related to malloc(0).
30600
30601 2009-04-26  Bruno Haible  <bruno@clisp.org>
30602
30603         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30604         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30605         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30606
30607 2009-04-25  Bruno Haible  <bruno@clisp.org>
30608
30609         Avoid link error when creating a namespace clean library.
30610         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30611         as macro with arguments if already defined as an alias.
30612         * lib/signbitf.c (gl_signbitf): Don't undefine.
30613         * lib/signbitd.c (gl_signbitd): Don't undefine.
30614         * lib/signbitl.c (gl_signbitl): Don't undefine.
30615
30616 2009-04-25  Jim Meyering  <meyering@redhat.com>
30617
30618         vc-list-files: fix another quoting bug
30619         * build-aux/vc-list-files: Avoid sed backslash expansion
30620         of pathological directory names.
30621
30622 2009-04-25  Eric Blake  <ebb9@byu.net>
30623
30624         vc-list-files: fix shell quoting error
30625         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30626         timestamp.
30627
30628 2009-04-25  Jim Meyering  <meyering@redhat.com>
30629
30630         vc-list-files: restore lost functionality with subdir argument
30631         * build-aux/vc-list-files: When given a non-"." sub-directory
30632         argument, substitute the $dir/ prefix back onto each resulting name.
30633         Otherwise, coreutils' root_tests check would fail.
30634
30635 2009-04-24  Eric Blake  <ebb9@byu.net>
30636
30637         vc-list-files: ignore git symlinks
30638         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30639         than ls-files, to ignore git symlinks.
30640
30641         maint.mk: import improvements from m4
30642         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30643         (move_if_change): Delete unused macro.
30644         (news-date-check, vc-diff-check): Support VPATH builds.
30645         (announcement): Likewise.  Split --bootstrap-tools list...
30646         (boostrap-tools): ...into separate list, which can be overridden
30647         in cfg.mk.
30648         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30649         requiring dependency on useless-if-before-free module.
30650         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30651         Support VPATH builds.
30652
30653 2009-04-24  Jim Meyering  <meyering@redhat.com>
30654
30655         maint.mk: remove coreutils-specific rules and variables
30656         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30657         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30658         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30659
30660         maint.mk: remove obsolete rule
30661         * top/maint.mk (rel-check): Remove rule.
30662         (WGET, WGETFLAGS): Remove now-unused variables.
30663
30664 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30665
30666         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30667         consistency.
30668
30669         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30670         '$(PATH_SEPARATOR)' instead of ':'.
30671
30672 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30673
30674         * lib/getopt1.c (main): Use 'const' for static array.
30675
30676 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30677
30678         * top/maint.mk: Sync with coreutils.
30679         * NEWS: Explain incompatibilities.
30680
30681 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30682             Bruno Haible  <bruno@clisp.org>
30683
30684         Fix cross-compilation results.
30685         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30686         statement, as third argument of AC_TRY_RUN.
30687         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30688         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30689         Likewise.
30690         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30691         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30692         Likewise.
30693         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30694         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30695         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30696
30697 2009-04-20  Bruno Haible  <bruno@clisp.org>
30698
30699         Avoid test failure on mingw.
30700         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30701
30702 2009-04-20  Bruno Haible  <bruno@clisp.org>
30703
30704         Avoid compilation error on mingw.
30705         * modules/localename-tests (Depends-on): Add locale.
30706
30707 2009-04-19  Bruno Haible  <bruno@clisp.org>
30708
30709         Support for building a shared library on Windows platforms.
30710         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30711         (main): Test the presence of UNINORM_NFC here.
30712         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30713         (main): Test the presence of UNINORM_NFD here.
30714         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30715         (main): Test the presence of UNINORM_NFKC here.
30716         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30717         (main): Test the presence of UNINORM_NFKD here.
30718
30719 2009-04-19  Bruno Haible  <bruno@clisp.org>
30720
30721         Avoid a compiler warning.
30722         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30723         Change type of variable 'sequence'.
30724
30725 2009-04-19  Bruno Haible  <bruno@clisp.org>
30726
30727         * modules/configmake (Makefile.am): When the contents of configmake.h
30728         does not change, arrange to preserve its modification time.
30729
30730 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30731
30732         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30733         gettext domain.
30734
30735 2009-04-16  Jim Meyering  <meyering@redhat.com>
30736
30737         useless-if-before-free: improve conversion code
30738         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30739         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30740
30741 2009-04-14  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/fcntl (Depends-on): Add extensions.
30744         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30745
30746 2009-04-12  Ben Pfaff  <blp@gnu.org>
30747
30748         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30749         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30750
30751 2009-03-20  Ben Pfaff  <blp@gnu.org>
30752
30753         Make rename replace existing destinations on Windows.
30754         * m4/rename.m4: Add test for Mingw.
30755         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30756         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30757         * doc/posix-functions/rename.texi: Document.
30758
30759 2009-04-10  Bruno Haible  <bruno@clisp.org>
30760
30761         New include file "iconveh.h".
30762         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30763         * lib/striconveh.h: Include it.
30764         (enum iconv_ilseq_handler): Remove definition.
30765         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30766         striconveh.h.
30767         * lib/striconveha.c: Include striconveh.h.
30768         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30769         * modules/striconveh (Files): Add lib/iconveh.h.
30770         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30771         lib/striconveh.h.
30772
30773 2009-04-10  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/uniconv.h: Update comment.
30776
30777 2009-04-10  Bruno Haible  <bruno@clisp.org>
30778
30779         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30780         always.
30781         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30782         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30783         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30784         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30785         "unistring-notinline.h", so that the function gets defined always.
30786         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30787         * lib/unistr/u8-uctomb.c: Likewise.
30788         * lib/unistr/u16-mbtouc.c: Likewise.
30789         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30790         * lib/unistr/u16-uctomb.c: Likewise.
30791         * lib/unistr/u32-mbtouc.c: Likewise.
30792         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30793         * lib/unistr/u32-uctomb.c: Likewise.
30794
30795 2009-04-10  Bruno Haible  <bruno@clisp.org>
30796
30797         Mark 'utime' obsolete.
30798         * modules/utime (Status, Notice): New sections.
30799         Suggested by Jim Meyering.
30800
30801         Fix cross-compile guess for utime test.
30802         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30803         autoconf.
30804         * doc/posix-functions/utime.texi: Give more precisions.
30805         Reported by Jan <ipif@ymail.com>.
30806
30807 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30808
30809         filevercmp: correct today's change
30810         * lib/filevercmp.c: Also handle coreutils' test inputs.
30811         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30812
30813         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30814         for reporting it.
30815         * lib/filevercmp.c: Special handle for "", "." and "..".
30816         * tests/test-filevercmp.c: Enlarge the set suite.
30817
30818 2009-04-07  Jim Meyering  <meyering@redhat.com>
30819
30820         useless-if-before-free: show how to remove braced useless free, too
30821         * build-aux/useless-if-before-free: still only in a comment, though.
30822
30823 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30824
30825         maint.mk: import changes to syntax-check macros from coreutils
30826         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30827         Use them in the relevant macros.
30828
30829 2009-04-06  Bruno Haible  <bruno@clisp.org>
30830
30831         Fix unportable use of bit-fields.
30832         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30833         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30834         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30835
30836 2009-04-06  Bruno Haible  <bruno@clisp.org>
30837
30838         Avoid test failures on AIX and OSF/1.
30839         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30840         that malloc(0) = NULL.
30841         * tests/unicase/test-u8-tolower.c (check): Likewise.
30842         * tests/unicase/test-u8-totitle.c (check): Likewise.
30843         * tests/unicase/test-u8-toupper.c (check): Likewise.
30844         * tests/unicase/test-u16-casefold.c (check): Likewise.
30845         * tests/unicase/test-u16-tolower.c (check): Likewise.
30846         * tests/unicase/test-u16-totitle.c (check): Likewise.
30847         * tests/unicase/test-u16-toupper.c (check): Likewise.
30848         * tests/unicase/test-u32-casefold.c (check): Likewise.
30849         * tests/unicase/test-u32-tolower.c (check): Likewise.
30850         * tests/unicase/test-u32-totitle.c (check): Likewise.
30851         * tests/unicase/test-u32-toupper.c (check): Likewise.
30852         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30853         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30854         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30855         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30856         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30857         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30858         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30859         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30860         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30861         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30862         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30863         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30864
30865 2009-04-05  Bruno Haible  <bruno@clisp.org>
30866
30867         Work around an autoconf limitation.
30868         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30869         comment line if it would be longer than 3 KB.
30870
30871 2009-04-05  Bruno Haible  <bruno@clisp.org>
30872
30873         Avoid test failure with libiconv-1.13.
30874         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30875         of the expected test results.
30876
30877 2009-04-05  Bruno Haible  <bruno@clisp.org>
30878
30879         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30880         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30881         that it should be installed.
30882
30883 2009-04-05  Bruno Haible  <bruno@clisp.org>
30884
30885         * gnulib-tool: New option --copy-file.
30886         (func_usage): Document it.
30887         (func_dest_tmpfilename): Moved out of func_import.
30888         (func_add_file, func_update_file): New functions, extracted from
30889         func_import.
30890         (func_import): Update.
30891
30892 2009-04-05  Karl Berry  <karl@gnu.org>
30893
30894         * README: prominently mention gnulib-tool.
30895         Rearrange sections so getting the code is near the top.
30896
30897 2009-04-05  Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/unicase.h: Mention u*_cmp2.
30900         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30901         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30902         * lib/unicase/ulc-casecmp.c: Likewise.
30903         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30904         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30905         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30906         unistr/u8-cmp.
30907         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30908         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30909         unistr/u16-cmp.
30910         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30911         unistr/u32-cmp.
30912
30913         * lib/uninorm.h: Mention u*_cmp2.
30914         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30915         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30916         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30917         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30918         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30919         unistr/u8-cmp.
30920         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30921         unistr/u16-cmp.
30922         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30923         unistr/u32-cmp.
30924
30925         New module 'unistr/u32-cmp2'.
30926         * lib/unistr/u32-cmp2.c: New file.
30927         * modules/unistr/u32-cmp2: New file.
30928
30929         New module 'unistr/u16-cmp2'.
30930         * lib/unistr/u16-cmp2.c: New file.
30931         * modules/unistr/u16-cmp2: New file.
30932
30933         New module 'unistr/u8-cmp2'.
30934         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30935         * lib/unistr/u8-cmp2.c: New file.
30936         * lib/unistr/u-cmp2.h: New file.
30937         * modules/unistr/u8-cmp2: New file.
30938
30939 2009-04-05  Bruno Haible  <bruno@clisp.org>
30940
30941         * lib/unictype.h (uc_property_is_valid): New macro.
30942         * tests/unictype/test-pr_byname.c (main): Use it.
30943
30944         * lib/unistr.h: Doc fixes.
30945         * lib/uniconv.h: Doc fixes.
30946         * lib/unictype.h: Doc fixes.
30947
30948 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30949
30950         Port coreutils 7.2 to Solaris 8.
30951
30952         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30953         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30954         for Solaris 8.  This is a bit of a hack, as it means it's the
30955         caller's responsibility to add -lnsl if needed, but most likely it
30956         won't be needed since only getaddrinfo uses this and getaddrinfo
30957         isn't needed on Solaris 8.
30958
30959         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30960         problem to Solaris 8 encountered with coreutils 7.2, which
30961         resulted in a message "fnmatch.c:292: warning: passing argument 4
30962         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30963         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30964
30965 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30966
30967         * m4/ld-version-script.m4: Add FIXME comment.
30968
30969 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30970
30971         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30972         SOVERSION variable.
30973
30974 2009-04-02  Bruno Haible  <bruno@clisp.org>
30975
30976         * Makefile (info, html, dvi, pdf): Combine the rules.
30977         Suggested by Jim Meyering.
30978
30979 2009-04-01  Bruno Haible  <bruno@clisp.org>
30980
30981         * Makefile (info, html, dvi, pdf): New targets.
30982         Reported by Reuben Thomas <rrt@sc3d.org>.
30983
30984 2009-04-01  Bruno Haible  <bruno@clisp.org>
30985
30986         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30987         can be put into PATH.
30988         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30989
30990 2009-04-01  Bruno Haible  <bruno@clisp.org>
30991
30992         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30993
30994 2009-04-01  Bruno Haible  <bruno@clisp.org>
30995
30996         Rename module 'visibility'.
30997         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30998         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30999         * doc/gnulib.texi: Update.
31000         * MODULES.html.sh (Misc): Update.
31001         * NEWS: Mention the change.
31002
31003 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31004
31005         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
31006         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
31007         Eric Blake <ebb9@byu.net> for review.
31008         * MODULES.html.sh: Add lib-msvc-compat.
31009         * doc/gnulib.texi: Link to new section.
31010         * m4/ld-output-def.m4: New file.
31011         * doc/ld-output-def.texi: New file.
31012
31013 2009-04-01  Simon Josefsson  <simon@josefsson.org>
31014
31015         Rename ld-version-script to lib-symbol-versions.  Suggested by
31016         Bruno Haible <bruno@clisp.org>.
31017         * modules/ld-version-script: Renamed to lib-symbol-versions.
31018         * doc/ld-version-script.texi: Fix module name.
31019         * MODULES.html.sh: Add lib-symbol-versions.
31020
31021 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31022
31023         * modules/u64-tests: New file.
31024         * tests/test-u64.c: New file.
31025
31026 2009-03-04  Simon Josefsson  <simon@josefsson.org>
31027
31028         * MODULES.html.sh: Mention u64.
31029         * modules/u64: New module.
31030         * modules/crypto/sha512: Depend on u64 module instead of providing
31031         u64.h.
31032
31033 2009-03-27  Eric Blake  <ebb9@byu.net>
31034
31035         test-strerror: make debugging EAI_SYSTEM easier
31036         * modules/getaddrinfo-tests (Depends-on): Add strerror.
31037         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
31038         failure was EAI_SYSTEM.
31039
31040 2009-03-25  Bruno Haible  <bruno@clisp.org>
31041
31042         Fix a problem with --enable-relocatable on Solaris 7.
31043         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
31044         since 2008-02-24.
31045
31046 2009-03-25  Eric Blake  <ebb9@byu.net>
31047
31048         test-sockets: avoid gcc warning
31049         * tests/test-sockets.c (main): Silence compiler warning.
31050
31051 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
31052
31053         New modules nproc, pthread, contributed by Glen Lenker.
31054
31055         * MODULES.html.sh: Add pthread, nproc.
31056         * lib/nproc.c: New file.
31057         * lib/nproc.h: New file.
31058         * lib/pthread.in.h: New file.
31059         * m4/pthread.m4: New file.
31060         * modules/nproc: New file.
31061         * modules/pthread: New file.
31062
31063 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31064
31065         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
31066         New variable.
31067
31068 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
31069
31070         filevercmp: handle simple~ and numbered.~3~ backup suffixes
31071         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
31072         * tests/test-filevercmp.c: Add tests for backup suffixes.
31073
31074 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31075
31076         * modules/stdlib (Depends-on): Add stdint, needed when defining
31077         struct random_data on, for example, HP-UX 10.20.  Reported by
31078         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31079
31080 2009-03-24  Simon Josefsson  <simon@josefsson.org>
31081
31082         * lib/readline.c (readline): Call fflush on stdout after printing
31083         prompt.
31084
31085 2009-03-20  Bruno Haible  <bruno@clisp.org>
31086
31087         Remove dependency from 'close' module to -lws2_32 on native Windows.
31088         * lib/close-hook.h: New file.
31089         * lib/close-hook.c: New file.
31090         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
31091         w32sock.h.
31092         (_gl_close_fd_maybe_socket): Remove function.
31093         (rpl_close): Invoke execute_all_close_hooks instead of
31094         _gl_close_fd_maybe_socket.
31095         * lib/sockets.c: Include close-hook.h, w32sock.h.
31096         (close_fd_maybe_socket): New function, essentially from lib/close.c.
31097         (close_sockets_hook): New variable.
31098         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
31099         (gl_sockets_cleanup): Unregister it.
31100         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
31101         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
31102         * modules/close-hook: New file.
31103         * modules/close (Files): Remove lib/w32sock.h.
31104         (Depends-on): Add close-hook.
31105         (Link): Remove section.
31106         * modules/sockets (Files): Add lib/w32sock.h.
31107         (Depends-on): Add close-hook.
31108         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
31109         invocation.
31110         * NEWS: Mention that LIB_CLOSE is gone.
31111
31112 2009-03-23  Eric Blake  <ebb9@byu.net>
31113
31114         signal-tests: test previous patch
31115         * tests/test-signal.c: New file.
31116         * modules/signal-tests: Likewise.
31117
31118         signal.h: always support 'volatile sig_atomic_t'
31119         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
31120         (gl_SIGNAL_H_DEFAULTS): Add a default.
31121         * modules/signal (Makefile.am): Substitute if needed.
31122         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
31123         users can blindly add volatile.
31124         * doc/posix-headers/signal.texi (signal.h): Document it.
31125         Reported by Matthew Woehlke.
31126
31127 2009-03-23  Jim Meyering  <meyering@redhat.com>
31128
31129         pathmax: PATH_MAX: use pathconf only when available
31130         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
31131         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
31132         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
31133         This avoids a link failure in a PSP cross-compilation environment
31134         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
31135
31136         * lib/vasnprintf.c (divide): Fix typo in comment.
31137
31138 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31139
31140         * gnulib-tool (func_filter_filelist): Fix comment.
31141
31142 2009-03-20  Bruno Haible  <bruno@clisp.org>
31143
31144         Make sockets.h self-contained.
31145         * lib/sockets.c: Include sockets.h first.
31146         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
31147
31148 2009-03-19  Eric Blake  <ebb9@byu.net>
31149
31150         doc: mention more functions added in cygwin 1.7.0
31151         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
31152         addition.
31153         * doc/posix-functions/log2f.texi: Likewise.
31154
31155 2009-03-19  Jim Meyering  <meyering@redhat.com>
31156
31157         fsusage: avoid syntax error due to statement-before-declaration
31158         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
31159         after all declarations.  Reported by Matthew Woehlke in
31160         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
31161
31162 2009-03-18  Eric Blake  <ebb9@byu.net>
31163
31164         build-aux/compile: sync from automake
31165         * build-aux/compile: New file, from automake.
31166         * config/srclist.txt: Mention build-aux/compile.
31167
31168 2009-03-17  Bruno Haible  <bruno@clisp.org>
31169
31170         * lib/git-merge-changelog.c: Fix typo in comment.
31171         Reported by Reuben Thomas <rrt@sc3d.org>.
31172
31173 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
31174
31175         * m4/regex.m4: update and improve help for
31176         --without-included-regex.
31177
31178 2009-03-17  Simon Josefsson  <simon@josefsson.org>
31179
31180         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
31181         failure on missing include files.
31182
31183 2009-03-17  Eric Blake  <ebb9@byu.net>
31184
31185         doc: mention more functions added in cygwin 1.7.0
31186         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
31187         addition.
31188         * doc/posix-functions/fwscanf.texi: Likewise.
31189         * doc/posix-functions/swprintf.texi: Likewise.
31190         * doc/posix-functions/swscanf.texi: Likewise.
31191         * doc/posix-functions/vfwprintf.texi: Likewise.
31192         * doc/posix-functions/vfwscanf.texi: Likewise.
31193         * doc/posix-functions/vswprintf.texi: Likewise.
31194         * doc/posix-functions/vswscanf.texi: Likewise.
31195         * doc/posix-functions/vwprintf.texi: Likewise.
31196         * doc/posix-functions/vwscanf.texi: Likewise.
31197         * doc/posix-functions/wcscasecmp.texi: Likewise.
31198         * doc/posix-functions/wcsdup.texi: Likewise.
31199         * doc/posix-functions/wcsftime.texi: Likewise.
31200         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31201         * doc/posix-functions/wprintf.texi: Likewise.
31202         * doc/posix-functions/wscanf.texi: Likewise.
31203         * doc/glibc-functions/gethostbyname2.texi: Likewise.
31204
31205 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31206
31207         maint.mk: really add $(AM_MAKEFLAGS)
31208         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
31209         was inadvertently omitted in the last commit.
31210         Spotted by Bruno Haible.
31211
31212         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
31213         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
31214         $(AM_MAKEFLAGS)' rather than plain `make'.
31215
31216         gnulib-tool: execute $MAKE not make
31217         * gnulib-tool: Default $MAKE to 'make'.
31218         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
31219         than make.  Initialize $MAKE in the do-autobuild script.
31220
31221         gnulib-tool: use $MAKE not make in generated files
31222         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
31223         make, in generated files.  Initialize $MAKE in the do-autobuild
31224         script.
31225
31226         * top/GNUmakefile (_have-git-version-gen): Fix typo.
31227
31228         GNUmakefile: disable parallelism only for multiple, recursive targets
31229         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
31230         additions in the Makefile.
31231         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
31232         by Automake.
31233         (.NOTPARALLEL): Only disable parallel builds if multiple targets
31234         are listed on the command line and at least one of them is
31235         listed in $(ALL_RECURSIVE_TARGETS).
31236
31237 2009-03-14  Bruno Haible  <bruno@clisp.org>
31238
31239         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
31240         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
31241         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
31242         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
31243         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
31244         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
31245         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
31246         unistr/u8-uctomb.
31247         * modules/unistr/u8-strchr (Depends-on): Likewise.
31248         * modules/unistr/u8-strrchr (Depends-on): Likewise.
31249         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
31250         unistr/u16-uctomb.
31251         * modules/unistr/u16-strchr (Depends-on): Likewise.
31252         * modules/unistr/u16-strrchr (Depends-on): Likewise.
31253
31254 2009-03-12  Bruno Haible  <bruno@clisp.org>
31255
31256         Work around select() bug on Interix 3.5.
31257         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
31258         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
31259         * m4/select.m4: New file.
31260         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
31261         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
31262         * modules/select (Files): Add m4/select.m4.
31263         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
31264         * modules/nanosleep (Depends-on): Add select.
31265         * modules/poll (Depends-on): Likewise.
31266         * doc/posix-functions/select.texi: Mention the Interix bug.
31267         Reported by Markus Duft <mduft@gentoo.org>.
31268
31269         * lib/select.c: Renamed from lib/winsock-select.c.
31270         * modules/select (Files): Add lib/select.c, remove
31271         lib/winsock-select.c.
31272         (configure.ac): Update.
31273
31274 2009-03-12  Jim Meyering  <meyering@redhat.com>
31275
31276         avoid gcc warnings about unused macro definitions
31277         * lib/readtokens.c (STREQ): Remove unused definition.
31278         * lib/xmalloc.c (SIZE_MAX): Likewise.
31279         * lib/openat-die.c (N_): Likewise.
31280         * lib/mountlist.c (SIZE_MAX): Remove definition.
31281         Instead, include <stdint.h>.
31282         * lib/readutmp.c: Likewise.
31283         * modules/readutmp (Depends-on): Add stdint.
31284         * modules/mountlist (Depends-on): Add stdint.
31285         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
31286
31287 2009-03-10  Bruno Haible  <bruno@clisp.org>
31288
31289         Tests for module 'mbmemcasecoll'.
31290         * modules/mbmemcasecoll-tests: New file.
31291         * tests/test-mbmemcasecoll1.sh: New file.
31292         * tests/test-mbmemcasecoll2.sh: New file.
31293         * tests/test-mbmemcasecoll3.sh: New file.
31294         * tests/test-mbmemcasecoll.c: New file.
31295
31296         New module 'mbmemcasecoll'.
31297         * lib/mbmemcasecoll.h: New file.
31298         * lib/mbmemcasecoll.c: New file.
31299         * modules/mbmemcasecoll: New file.
31300
31301         * tests/test-mbmemcasecmp.h: New file, extracted from
31302         tests/test-mbmemcasecmp.c.
31303         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
31304         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
31305         (main): Update.
31306         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
31307
31308 2009-03-09  Bruno Haible  <bruno@clisp.org>
31309
31310         Tests for module 'mbmemcasecmp'.
31311         * modules/mbmemcasecmp-tests: New file.
31312         * tests/test-mbmemcasecmp1.sh: New file.
31313         * tests/test-mbmemcasecmp2.sh: New file.
31314         * tests/test-mbmemcasecmp3.sh: New file.
31315         * tests/test-mbmemcasecmp.c: New file.
31316
31317         New module 'mbmemcasecmp'.
31318         * lib/mbmemcasecmp.h: New file.
31319         * lib/mbmemcasecmp.c: New file.
31320         * modules/mbmemcasecmp: New file.
31321
31322 2009-03-09  Bruno Haible  <bruno@clisp.org>
31323
31324         Tests for module 'unicase/ulc-casecoll'.
31325         * modules/unicase/ulc-casecoll-tests: New file.
31326         * tests/unicase/test-ulc-casecoll1.sh: New file.
31327         * tests/unicase/test-ulc-casecoll2.sh: New file.
31328         * tests/unicase/test-ulc-casecoll.c: New file.
31329
31330         New module 'unicase/ulc-casecoll'.
31331         * lib/unicase.h (ulc_casecoll): New declaration.
31332         * lib/unicase/ulc-casecoll.c: New file.
31333         * modules/unicase/ulc-casecoll: New file.
31334
31335         New module 'unicase/ulc-casexfrm'.
31336         * lib/unicase.h (ulc_casexfrm): New declaration.
31337         * lib/unicase/ulc-casexfrm.c: New file.
31338         * modules/unicase/ulc-casexfrm: New file.
31339
31340 2009-03-09  Bruno Haible  <bruno@clisp.org>
31341
31342         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31343         invocations.
31344
31345         * m4/mbscasecmp.m4: Remove file.
31346         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31347         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31348
31349         * m4/mbscasestr.m4: Remove file.
31350         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31351         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31352
31353         * m4/mbschr.m4: Remove file.
31354         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31355         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31356
31357         * m4/mbscspn.m4: Remove file.
31358         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31359         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31360
31361         * m4/mbslen.m4: Remove file.
31362         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31363         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31364
31365         * m4/mbsncasecmp.m4: Remove file.
31366         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31367         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31368
31369         * m4/mbsnlen.m4: Remove file.
31370         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31371         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31372
31373         * m4/mbspbrk.m4: Remove file.
31374         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31375         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31376
31377         * m4/mbspcasecmp.m4: Remove file.
31378         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31379         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31380
31381         * m4/mbsrchr.m4: Remove file.
31382         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31383         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31384
31385         * m4/mbssep.m4: Remove file.
31386         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31387         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31388
31389         * m4/mbsspn.m4: Remove file.
31390         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31391         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31392
31393         * m4/mbsstr.m4: Remove file.
31394         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31395         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31396
31397         * m4/mbstok_r.m4: Remove file.
31398         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31399         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31400
31401         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31402
31403         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31404         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31405
31406         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31407
31408 2009-03-08  Bruno Haible  <bruno@clisp.org>
31409
31410         Tests for module 'unicase/ulc-casecmp'.
31411         * modules/unicase/ulc-casecmp-tests: New file.
31412         * tests/unicase/test-ulc-casecmp1.sh: New file.
31413         * tests/unicase/test-ulc-casecmp2.sh: New file.
31414         * tests/unicase/test-ulc-casecmp.c: New file.
31415
31416         New module 'unicase/ulc-casecmp'.
31417         * lib/unicase.h (ulc_casecmp): New declaration.
31418         * lib/unicase/ulc-casecmp.c: New file.
31419         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31420         'const SRC_UNIT *'.
31421         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31422         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31423         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31424         * modules/unicase/ulc-casecmp: New file.
31425
31426         Tests for module 'unicase/u32-is-cased'.
31427         * modules/unicase/u32-is-cased-tests: New file.
31428         * tests/unicase/test-u32-is-cased.c: New file.
31429
31430         Tests for module 'unicase/u16-is-cased'.
31431         * modules/unicase/u16-is-cased-tests: New file.
31432         * tests/unicase/test-u16-is-cased.c: New file.
31433
31434         Tests for module 'unicase/u8-is-cased'.
31435         * modules/unicase/u8-is-cased-tests: New file.
31436         * tests/unicase/test-u8-is-cased.c: New file.
31437         * tests/unicase/test-is-cased.h: New file.
31438
31439         New module 'unicase/u32-is-cased'.
31440         * lib/unicase/u32-is-cased.c: New file.
31441         * modules/unicase/u32-is-cased: New file.
31442
31443         New module 'unicase/u16-is-cased'.
31444         * lib/unicase/u16-is-cased.c: New file.
31445         * modules/unicase/u16-is-cased: New file.
31446
31447         New module 'unicase/u8-is-cased'.
31448         * lib/unicase/u8-is-cased.c: New file.
31449         * lib/unicase/u-is-cased.h: New file.
31450         * modules/unicase/u8-is-cased: New file.
31451
31452         Tests for module 'unicase/u32-is-casefolded'.
31453         * modules/unicase/u32-is-casefolded-tests: New file.
31454         * tests/unicase/test-u32-is-casefolded.c: New file.
31455
31456         Tests for module 'unicase/u16-is-casefolded'.
31457         * modules/unicase/u16-is-casefolded-tests: New file.
31458         * tests/unicase/test-u16-is-casefolded.c: New file.
31459
31460         Tests for module 'unicase/u8-is-casefolded'.
31461         * modules/unicase/u8-is-casefolded-tests: New file.
31462         * tests/unicase/test-u8-is-casefolded.c: New file.
31463         * tests/unicase/test-is-casefolded.h: New file.
31464
31465         New module 'unicase/u32-is-casefolded'.
31466         * lib/unicase/u32-is-casefolded.c: New file.
31467         * modules/unicase/u32-is-casefolded: New file.
31468
31469         New module 'unicase/u16-is-casefolded'.
31470         * lib/unicase/u16-is-casefolded.c: New file.
31471         * modules/unicase/u16-is-casefolded: New file.
31472
31473         New module 'unicase/u8-is-casefolded'.
31474         * lib/unicase/u8-is-casefolded.c: New file.
31475         * modules/unicase/u8-is-casefolded: New file.
31476
31477         Tests for module 'unicase/u32-is-titlecase'.
31478         * modules/unicase/u32-is-titlecase-tests: New file.
31479         * tests/unicase/test-u32-is-titlecase.c: New file.
31480
31481         Tests for module 'unicase/u16-is-titlecase'.
31482         * modules/unicase/u16-is-titlecase-tests: New file.
31483         * tests/unicase/test-u16-is-titlecase.c: New file.
31484
31485         Tests for module 'unicase/u8-is-titlecase'.
31486         * modules/unicase/u8-is-titlecase-tests: New file.
31487         * tests/unicase/test-u8-is-titlecase.c: New file.
31488         * tests/unicase/test-is-titlecase.h: New file.
31489
31490         New module 'unicase/u32-is-titlecase'.
31491         * lib/unicase/u32-is-titlecase.c: New file.
31492         * modules/unicase/u32-is-titlecase: New file.
31493
31494         New module 'unicase/u16-is-titlecase'.
31495         * lib/unicase/u16-is-titlecase.c: New file.
31496         * modules/unicase/u16-is-titlecase: New file.
31497
31498         New module 'unicase/u8-is-titlecase'.
31499         * lib/unicase/u8-is-titlecase.c: New file.
31500         * modules/unicase/u8-is-titlecase: New file.
31501
31502         Tests for module 'unicase/u32-is-lowercase'.
31503         * modules/unicase/u32-is-lowercase-tests: New file.
31504         * tests/unicase/test-u32-is-lowercase.c: New file.
31505
31506         Tests for module 'unicase/u16-is-lowercase'.
31507         * modules/unicase/u16-is-lowercase-tests: New file.
31508         * tests/unicase/test-u16-is-lowercase.c: New file.
31509
31510         Tests for module 'unicase/u8-is-lowercase'.
31511         * modules/unicase/u8-is-lowercase-tests: New file.
31512         * tests/unicase/test-u8-is-lowercase.c: New file.
31513         * tests/unicase/test-is-lowercase.h: New file.
31514
31515         New module 'unicase/u32-is-lowercase'.
31516         * lib/unicase/u32-is-lowercase.c: New file.
31517         * modules/unicase/u32-is-lowercase: New file.
31518
31519         New module 'unicase/u16-is-lowercase'.
31520         * lib/unicase/u16-is-lowercase.c: New file.
31521         * modules/unicase/u16-is-lowercase: New file.
31522
31523         New module 'unicase/u8-is-lowercase'.
31524         * lib/unicase/u8-is-lowercase.c: New file.
31525         * modules/unicase/u8-is-lowercase: New file.
31526
31527         Tests for module 'unicase/u32-is-uppercase'.
31528         * modules/unicase/u32-is-uppercase-tests: New file.
31529         * tests/unicase/test-u32-is-uppercase.c: New file.
31530
31531         Tests for module 'unicase/u16-is-uppercase'.
31532         * modules/unicase/u16-is-uppercase-tests: New file.
31533         * tests/unicase/test-u16-is-uppercase.c: New file.
31534
31535         Tests for module 'unicase/u8-is-uppercase'.
31536         * modules/unicase/u8-is-uppercase-tests: New file.
31537         * tests/unicase/test-u8-is-uppercase.c: New file.
31538         * tests/unicase/test-is-uppercase.h: New file.
31539
31540         New module 'unicase/u32-is-uppercase'.
31541         * lib/unicase/u32-is-uppercase.c: New file.
31542         * modules/unicase/u32-is-uppercase: New file.
31543
31544         New module 'unicase/u16-is-uppercase'.
31545         * lib/unicase/u16-is-uppercase.c: New file.
31546         * modules/unicase/u16-is-uppercase: New file.
31547
31548         New module 'unicase/u8-is-uppercase'.
31549         * lib/unicase/u8-is-uppercase.c: New file.
31550         * modules/unicase/u8-is-uppercase: New file.
31551
31552         New module 'unicase/u32-is-invariant'.
31553         * lib/unicase/u32-is-invariant.c: New file.
31554         * modules/unicase/u32-is-invariant: New file.
31555
31556         New module 'unicase/u16-is-invariant'.
31557         * lib/unicase/u16-is-invariant.c: New file.
31558         * modules/unicase/u16-is-invariant: New file.
31559
31560         New module 'unicase/u8-is-invariant'.
31561         * lib/unicase/u8-is-invariant.c: New file.
31562         * lib/unicase/invariant.h: New file.
31563         * lib/unicase/u-is-invariant.h: New file.
31564         * modules/unicase/u8-is-invariant: New file.
31565
31566         Tests for module 'unicase/u32-casecoll'.
31567         * modules/unicase/u32-casecoll-tests: New file.
31568         * tests/unicase/test-u32-casecoll.c: New file.
31569
31570         Tests for module 'unicase/u16-casecoll'.
31571         * modules/unicase/u16-casecoll-tests: New file.
31572         * tests/unicase/test-u16-casecoll.c: New file.
31573
31574         Tests for module 'unicase/u8-casecoll'.
31575         * modules/unicase/u8-casecoll-tests: New file.
31576         * tests/unicase/test-u8-casecoll.c: New file.
31577
31578         New module 'unicase/u32-casecoll'.
31579         * lib/unicase/u32-casecoll.c: New file.
31580         * modules/unicase/u32-casecoll: New file.
31581
31582         New module 'unicase/u16-casecoll'.
31583         * lib/unicase/u16-casecoll.c: New file.
31584         * modules/unicase/u16-casecoll: New file.
31585
31586         New module 'unicase/u8-casecoll'.
31587         * lib/unicase/u8-casecoll.c: New file.
31588         * lib/unicase/u-casecoll.h: New file.
31589         * modules/unicase/u8-casecoll: New file.
31590
31591         New module 'unicase/u32-casexfrm'.
31592         * lib/unicase/u32-casexfrm.c: New file.
31593         * modules/unicase/u32-casexfrm: New file.
31594
31595         New module 'unicase/u16-casexfrm'.
31596         * lib/unicase/u16-casexfrm.c: New file.
31597         * modules/unicase/u16-casexfrm: New file.
31598
31599         New module 'unicase/u8-casexfrm'.
31600         * lib/unicase/u8-casexfrm.c: New file.
31601         * lib/unicase/u-casexfrm.h: New file.
31602         * modules/unicase/u8-casexfrm: New file.
31603
31604         Tests for module 'unicase/u32-casecmp'.
31605         * modules/unicase/u32-casecmp-tests: New file.
31606         * tests/unicase/test-u32-casecmp.c: New file.
31607
31608         Tests for module 'unicase/u16-casecmp'.
31609         * modules/unicase/u16-casecmp-tests: New file.
31610         * tests/unicase/test-u16-casecmp.c: New file.
31611
31612         Tests for module 'unicase/u8-casecmp'.
31613         * modules/unicase/u8-casecmp-tests: New file.
31614         * tests/unicase/test-u8-casecmp.c: New file.
31615         * tests/unicase/test-casecmp.h: New file.
31616
31617         New module 'unicase/u32-casecmp'.
31618         * lib/unicase/u32-casecmp.c: New file.
31619         * modules/unicase/u32-casecmp: New file.
31620
31621         New module 'unicase/u16-casecmp'.
31622         * lib/unicase/u16-casecmp.c: New file.
31623         * modules/unicase/u16-casecmp: New file.
31624
31625         New module 'unicase/u8-casecmp'.
31626         * lib/unicase/u8-casecmp.c: New file.
31627         * lib/unicase/u-casecmp.h: New file.
31628         * modules/unicase/u8-casecmp: New file.
31629
31630         Tests for module 'unicase/u32-casefold'.
31631         * modules/unicase/u32-casefold-tests: New file.
31632         * tests/unicase/test-u32-casefold.c: New file.
31633
31634         Tests for module 'unicase/u16-casefold'.
31635         * modules/unicase/u16-casefold-tests: New file.
31636         * tests/unicase/test-u16-casefold.c: New file.
31637
31638         Tests for module 'unicase/u8-casefold'.
31639         * modules/unicase/u8-casefold-tests: New file.
31640         * tests/unicase/test-u8-casefold.c: New file.
31641
31642         New module 'unicase/u32-casefold'.
31643         * lib/unicase/u32-casefold.c: New file.
31644         * modules/unicase/u32-casefold: New file.
31645
31646         New module 'unicase/u16-casefold'.
31647         * lib/unicase/u16-casefold.c: New file.
31648         * modules/unicase/u16-casefold: New file.
31649
31650         New module 'unicase/u8-casefold'.
31651         * lib/unicase/u8-casefold.c: New file.
31652         * lib/unicase/u-casefold.h: New file.
31653         * modules/unicase/u8-casefold: New file.
31654
31655         New module 'unicase/tocasefold'.
31656         * lib/unicase/casefold.h: New file.
31657         * lib/unicase/tocasefold.c: New file.
31658         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31659         * modules/unicase/tocasefold: New file.
31660
31661         Tests for module 'unicase/u32-totitle'.
31662         * modules/unicase/u32-totitle-tests: New file.
31663         * tests/unicase/test-u32-totitle.c: New file.
31664
31665         Tests for module 'unicase/u16-totitle'.
31666         * modules/unicase/u16-totitle-tests: New file.
31667         * tests/unicase/test-u16-totitle.c: New file.
31668
31669         Tests for module 'unicase/u8-totitle'.
31670         * modules/unicase/u8-totitle-tests: New file.
31671         * tests/unicase/test-u8-totitle.c: New file.
31672
31673         New module 'unicase/u32-totitle'.
31674         * lib/unicase/u32-totitle.c: New file.
31675         * modules/unicase/u32-totitle: New file.
31676
31677         New module 'unicase/u16-totitle'.
31678         * lib/unicase/u16-totitle.c: New file.
31679         * modules/unicase/u16-totitle: New file.
31680
31681         New module 'unicase/u8-totitle'.
31682         * lib/unicase/u8-totitle.c: New file.
31683         * lib/unicase/u-totitle.h: New file.
31684         * modules/unicase/u8-totitle: New file.
31685
31686         Tests for module 'unicase/u32-tolower'.
31687         * modules/unicase/u32-tolower-tests: New file.
31688         * tests/unicase/test-u32-tolower.c: New file.
31689
31690         Tests for module 'unicase/u16-tolower'.
31691         * modules/unicase/u16-tolower-tests: New file.
31692         * tests/unicase/test-u16-tolower.c: New file.
31693
31694         Tests for module 'unicase/u8-tolower'.
31695         * modules/unicase/u8-tolower-tests: New file.
31696         * tests/unicase/test-u8-tolower.c: New file.
31697
31698         New module 'unicase/u32-tolower'.
31699         * lib/unicase/u32-tolower.c: New file.
31700         * modules/unicase/u32-tolower: New file.
31701
31702         New module 'unicase/u16-tolower'.
31703         * lib/unicase/u16-tolower.c: New file.
31704         * modules/unicase/u16-tolower: New file.
31705
31706         New module 'unicase/u8-tolower'.
31707         * lib/unicase/u8-tolower.c: New file.
31708         * modules/unicase/u8-tolower: New file.
31709
31710         Tests for module 'unicase/u32-toupper'.
31711         * modules/unicase/u32-toupper-tests: New file.
31712         * tests/unicase/test-u32-toupper.c: New file.
31713
31714         Tests for module 'unicase/u16-toupper'.
31715         * modules/unicase/u16-toupper-tests: New file.
31716         * tests/unicase/test-u16-toupper.c: New file.
31717
31718         Tests for module 'unicase/u8-toupper'.
31719         * modules/unicase/u8-toupper-tests: New file.
31720         * tests/unicase/test-u8-toupper.c: New file.
31721
31722         New module 'unicase/u32-toupper'.
31723         * lib/unicase/u32-toupper.c: New file.
31724         * modules/unicase/u32-toupper: New file.
31725
31726         New module 'unicase/u16-toupper'.
31727         * lib/unicase/u16-toupper.c: New file.
31728         * modules/unicase/u16-toupper: New file.
31729
31730         New module 'unicase/u8-toupper'.
31731         * lib/unicase/u8-toupper.c: New file.
31732         * modules/unicase/u8-toupper: New file.
31733
31734         New module 'unicase/u32-casemap'.
31735         * lib/unicase/u32-casemap.c: New file.
31736         * modules/unicase/u32-casemap: New file.
31737
31738         New module 'unicase/u16-casemap'.
31739         * lib/unicase/u16-casemap.c: New file.
31740         * modules/unicase/u16-casemap: New file.
31741
31742         New module 'unicase/u8-casemap'.
31743         * lib/unicase/unicasemap.h: New file.
31744         * lib/unicase/u8-casemap.c: New file.
31745         * lib/unicase/u-casemap.h: New file.
31746         * modules/unicase/u8-casemap: New file.
31747
31748         New module 'unicase/special-casing'.
31749         * lib/unicase/special-casing.h: New file.
31750         * lib/unicase/special-casing.c: New file.
31751         * lib/unicase/special-casing-table.gperf: New file, generated by
31752         gen-uni-tables.c.
31753         * modules/unicase/special-casing: New file.
31754
31755         Tests for module 'unicase/locale-language'.
31756         * modules/unicase/locale-language-tests: New file.
31757         * tests/unicase/test-locale-language.sh: New file.
31758         * tests/unicase/test-locale-language.c: New file.
31759
31760         New module 'unicase/locale-language'.
31761         * lib/unicase/locale-language.c: New file.
31762         * lib/unicase/locale-languages.gperf: New file.
31763         * modules/unicase/locale-language: New file.
31764
31765         Generate more tables for case conversion and case folding.
31766         * lib/gen-uni-tables.c (SCC_*): New enum items.
31767         (struct special_casing_rule): New type.
31768         (casing_rules, num_casing_rules, allocated_casing_rules): New
31769         variables.
31770         (add_casing_rule, fill_casing_rules): New functions.
31771         (struct casefold_rule): New type.
31772         (casefolding_rules, num_casefolding_rules,
31773         allocated_casefolding_rules): New variables.
31774         (fill_casefolding_rules): New function.
31775         (unicode_casefold): New variable.
31776         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31777         sort_casing_rules, output_casing_rules): New functions.
31778         (main): Accept to more arguments: SpecialCasing.txt and
31779         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31780         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31781         Output mapping for casefolding.
31782
31783         * lib/unicase.h: Include stdbool.h, uninorm.h.
31784         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31785         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31786         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31787         arguments.
31788         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31789         resultp arguments.
31790         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31791         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31792         resultp arguments.
31793         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31794         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31795         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31796         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31797         declarations.
31798         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31799
31800 2009-03-08  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31803         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31804         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31805         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31806
31807 2009-03-07  Bruno Haible  <bruno@clisp.org>
31808
31809         Adjust u*_normcmp, u*_normcoll API.
31810         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31811         u16_normcoll, u32_normcoll): Change failure conventions.
31812         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31813         errno and return -1.
31814         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31815
31816 2009-03-07  Bruno Haible  <bruno@clisp.org>
31817
31818         Tests for module 'uninorm/u32-normcoll'.
31819         * modules/uninorm/u32-normcoll-tests: New file.
31820         * tests/uninorm/test-u32-normcoll.c: New file.
31821
31822         Tests for module 'uninorm/u16-normcoll'.
31823         * modules/uninorm/u16-normcoll-tests: New file.
31824         * tests/uninorm/test-u16-normcoll.c: New file.
31825
31826         Tests for module 'uninorm/u8-normcoll'.
31827         * modules/uninorm/u8-normcoll-tests: New file.
31828         * tests/uninorm/test-u8-normcoll.c: New file.
31829
31830 2009-03-07  Bruno Haible  <bruno@clisp.org>
31831
31832         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31833         tests/uninorm/test-u32-normcmp.c.
31834         * tests/uninorm/test-u32-normcmp.c: Include it.
31835         (test_nonascii): New function, extracted from main. Add some more
31836         tests.
31837         (main): Invoke test_ascii and test_nonascii.
31838         * modules/uninorm/u32-normcmp-tests (Files): Add
31839         tests/uninorm/test-u32-normcmp.h.
31840         (Depends-on): Remove uninorm/u32-normcmp.
31841
31842         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31843         tests/uninorm/test-u16-normcmp.c.
31844         * tests/uninorm/test-u16-normcmp.c: Include it.
31845         (test_nonascii): New function, extracted from main. Add some more
31846         tests.
31847         (main): Invoke test_ascii and test_nonascii.
31848         * modules/uninorm/u16-normcmp-tests (Files): Add
31849         tests/uninorm/test-u16-normcmp.h.
31850         (Depends-on): Remove uninorm/u16-normcmp.
31851
31852         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31853         tests/uninorm/test-u8-normcmp.c.
31854         * tests/uninorm/test-u8-normcmp.c: Include it.
31855         (test_nonascii): New function, extracted from main. Add some more
31856         tests.
31857         (main): Invoke test_ascii and test_nonascii.
31858         * modules/uninorm/u8-normcmp-tests (Files): Add
31859         tests/uninorm/test-u8-normcmp.h.
31860         (Depends-on): Remove uninorm/u8-normcmp.
31861
31862 2009-03-07  Bruno Haible  <bruno@clisp.org>
31863
31864         New module 'uninorm/u32-normcoll'.
31865         * lib/uninorm/u32-normcoll.c: New file.
31866         * modules/uninorm/u32-normcoll: New file.
31867
31868         New module 'uninorm/u16-normcoll'.
31869         * lib/uninorm/u16-normcoll.c: New file.
31870         * modules/uninorm/u16-normcoll: New file.
31871
31872         New module 'uninorm/u8-normcoll'.
31873         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31874         declarations.
31875         * lib/uninorm/u8-normcoll.c: New file.
31876         * lib/uninorm/u-normcoll.h: New file.
31877         * modules/uninorm/u8-normcoll: New file.
31878
31879         New module 'uninorm/u32-normxfrm'.
31880         * lib/uninorm/u32-normxfrm.c: New file.
31881         * modules/uninorm/u32-normxfrm: New file.
31882
31883         New module 'uninorm/u16-normxfrm'.
31884         * lib/uninorm/u16-normxfrm.c: New file.
31885         * modules/uninorm/u16-normxfrm: New file.
31886
31887         New module 'uninorm/u8-normxfrm'.
31888         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31889         declarations.
31890         * lib/uninorm/u8-normxfrm.c: New file.
31891         * lib/uninorm/u-normxfrm.h: New file.
31892         * modules/uninorm/u8-normxfrm: New file.
31893
31894 2009-03-07  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31897         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31898         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31899
31900 2009-03-07  Bruno Haible  <bruno@clisp.org>
31901
31902         New module 'memxfrm'.
31903         * lib/memxfrm.h: New file.
31904         * lib/memxfrm.c: New file.
31905         * modules/memxfrm: New file.
31906
31907 2009-03-07  Bruno Haible  <bruno@clisp.org>
31908
31909         New module 'memcmp2'.
31910         * lib/memcmp2.h: New file.
31911         * lib/memcmp2.c: New file.
31912         * modules/memcmp2: New file.
31913
31914 2009-03-07  Bruno Haible  <bruno@clisp.org>
31915
31916         Tests for module 'uninorm/decomposing-form'.
31917         * modules/uninorm/decomposing-form-tests: New file.
31918         * tests/uninorm/test-decomposing-form.c: New file.
31919
31920         New module 'uninorm/decomposing-form'.
31921         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31922         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31923         Add 'decomposing_variant' field.
31924         * lib/uninorm/decomposing-form.c: New file.
31925         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31926         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31927         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31928         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31929         * modules/uninorm/decomposing-form: New file.
31930         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31931         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31932
31933 2009-03-07  Bruno Haible  <bruno@clisp.org>
31934
31935         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31936         strings.
31937
31938 2009-03-06  Bruno Haible  <bruno@clisp.org>
31939
31940         Tests for module 'uninorm/u32-normcmp'.
31941         * tests/uninorm/test-u32-normcmp.c: New file.
31942         * modules/uninorm/u32-normcmp-tests: New file.
31943
31944         Tests for module 'uninorm/u16-normcmp'.
31945         * tests/uninorm/test-u16-normcmp.c: New file.
31946         * modules/uninorm/u16-normcmp-tests: New file.
31947
31948         Tests for module 'uninorm/u8-normcmp'.
31949         * tests/uninorm/test-u8-normcmp.c: New file.
31950         * modules/uninorm/u8-normcmp-tests: New file.
31951
31952         New module 'uninorm/u32-normcmp'.
31953         * lib/uninorm/u32-normcmp.c: New file.
31954         * modules/uninorm/u32-normcmp: New file.
31955
31956         New module 'uninorm/u16-normcmp'.
31957         * lib/uninorm/u16-normcmp.c: New file.
31958         * modules/uninorm/u16-normcmp: New file.
31959
31960         New module 'uninorm/u8-normcmp'.
31961         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31962         declarations.
31963         * lib/uninorm/u8-normcmp.c: New file.
31964         * lib/uninorm/u-normcmp.h: New file.
31965         * modules/uninorm/u8-normcmp: New file.
31966
31967 2009-03-06  Bruno Haible  <bruno@clisp.org>
31968
31969         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31970         Reported by Eric Blake.
31971
31972 2009-03-06  Eric Blake  <ebb9@byu.net>
31973             Bruno Haible  <bruno@clisp.org>
31974
31975         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31976         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31977         condition.
31978         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31979         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31980         condition.
31981         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31982
31983 2009-03-06  Eric Blake  <ebb9@byu.net>
31984
31985         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31986         to avoid compiler warnings.
31987         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31988
31989 2009-03-05  Bruno Haible  <bruno@clisp.org>
31990
31991         * tests/test-ftell.c (main): Disable test beyond end of file on
31992         FreeMiNT.
31993         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31994
31995 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31996
31997         * lib/filevercmp.c: Move hidden files up in ordering.
31998         * tests/test-filevercmp.c: Add tests for hidden files.
31999
32000 2009-03-04  Bruno Haible  <bruno@clisp.org>
32001
32002         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
32003         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
32004         AM_CFLAGS.
32005         Reported by Simon Josefsson.
32006
32007 2009-03-03  Bruno Haible  <bruno@clisp.org>
32008
32009         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
32010         Reported by Simon Josefsson.
32011
32012         * doc/ld-version-script.texi: Update node reference.
32013
32014 2009-03-03  Bruno Haible  <bruno@clisp.org>
32015
32016         * modules/visibility (License): Change to 'unlimited'.
32017         Suggested by Simon Josefsson.
32018
32019 2009-03-03  Jim Meyering  <meyering@redhat.com>
32020
32021         unlinkdir: cannot_unlink_dir may modify process state
32022         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
32023         it's neither thread-safe nor appropriate for use in a library.
32024
32025 2009-03-03  Eric Blake  <ebb9@byu.net>
32026
32027         test-closein: silence test under Darwin
32028         * tests/test-closein.sh: Ignore stderr from cat, since we don't
32029         care if it dies from EPIPE or EBADF.
32030
32031 2009-03-03  Bruno Haible  <bruno@clisp.org>
32032
32033         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
32034         earlier.
32035         * doc/visibility.texi: Fix @node and @section.
32036
32037 2009-03-03  Simon Josefsson  <simon@josefsson.org>
32038
32039         * doc/gnulib.texi: Link to sections for ld version script and
32040         visibility.
32041         * doc/visibility.texi: Add @node and @section.
32042         * modules/ld-version-script: New module.
32043         * m4/ld-version-script.m4: New file.
32044         * doc/ld-version-script.texi: New file.
32045
32046 2009-03-02  David Lutterkort  <lutter@redhat.com>
32047
32048         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
32049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32050
32051 2009-03-02  Bruno Haible  <bruno@clisp.org>
32052
32053         * doc/visibility.texi: Mention libtool's -export-symbols option.
32054
32055 2009-03-02  Jim Meyering  <meyering@redhat.com>
32056
32057         announce-gen: new option: --no-print-checksums
32058         * build-aux/announce-gen (usage): Describe it.
32059         (print_checksums): Print a newline here, not in the [*] footnote.
32060         (main): Honor it.
32061
32062 2009-03-01  Bruno Haible  <bruno@clisp.org>
32063
32064         Use socklen_t in the native Windows replacements prototypes.
32065         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
32066         instead of 'int'.
32067         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32068         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32069         * modules/getsockopt (Depends-on): Add socklen.
32070         * modules/setsockopt (Depends-on): Add socklen.
32071
32072 2009-03-01  Bruno Haible  <bruno@clisp.org>
32073
32074         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
32075         least 4.2.
32076
32077 2009-03-01  Eric Blake  <ebb9@byu.net>
32078             Bruno Haible  <bruno@clisp.org>
32079
32080         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
32081         error messages.
32082         * lib/wait-process.c (wait_subprocess): Omit error message about
32083         deadly signal sent to the child of termsigp != NULL.
32084
32085 2009-03-01  Eric Blake  <ebb9@byu.net>
32086
32087         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
32088
32089 2009-03-01  Bruno Haible  <bruno@clisp.org>
32090
32091         Avoid a gcc warning.
32092         * tests/test-sched.c (b): Make global.
32093         Reported by Eric Blake.
32094
32095 2009-01-19  Martin Lambers  <marlam@marlam.de>
32096
32097         Provide POSIX semantics for socket timeout options on W32.
32098         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
32099         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
32100         * modules/setsockopt: Depend on sys_time module for struct timeval.
32101         * modules/getsockopt: Depend on sys_time module for struct timeval.
32102
32103 2009-03-01  Simon Josefsson  <simon@josefsson.org>
32104
32105         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
32106         __USE_GNU, for consistency with netdb.in.h.
32107         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32108
32109 2009-03-01  Bruno Haible  <bruno@clisp.org>
32110
32111         More support for FreeMiNT.
32112         * lib/fseeko.c (rpl_fseeko): Complete last commit.
32113         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32114
32115 2009-03-01  Bruno Haible  <bruno@clisp.org>
32116
32117         More support for FreeMiNT.
32118         * lib/fpurge.c (fpurge): Correct last commit.
32119         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32120
32121 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32122
32123         Fix unportable awk script in vc-list-files.
32124         * build-aux/vc-list-files: In the replacement awk script, use
32125         substr with a second argument of 1, not zero.
32126         Report by Simon Josefsson.
32127
32128 2009-02-28  Bruno Haible  <bruno@clisp.org>
32129
32130         More support for FreeMiNT.
32131         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
32132         to FreeMiNT today.
32133         * lib/fwriting.c (fwriting): Likewise.
32134         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
32135
32136 2009-02-28  Bruno Haible  <bruno@clisp.org>
32137
32138         * tests/test-freadseek.c (main): Disable test beyond end of file on
32139         FreeMiNT.
32140         * tests/test-ftello.c (main): Likewise.
32141         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
32142
32143 2009-02-28  Bruno Haible  <bruno@clisp.org>
32144
32145         Add tentative support for FreeMiNT.
32146         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
32147         * lib/fpurge.c (fpurge): Likewise.
32148         * lib/freadable.c (freadable): Likewise.
32149         * lib/freading.c (freading): Likewise.
32150         * lib/freadptr.c (freadptr): Likewise.
32151         * lib/freadseek.c (freadptrinc): Likewise.
32152         * lib/fseeko.c (rpl_fseeko): Likewise.
32153         * lib/fseterr.c (fseterr): Likewise.
32154         * lib/fwritable.c (fwritable): Likewise.
32155         * lib/fwriting.c (fwriting): Likewise.
32156         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
32157         Hourihane.
32158         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32159
32160 2009-02-28  Bruno Haible  <bruno@clisp.org>
32161
32162         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
32163         SIGCHLD.
32164         Reported by Jim Meyering.
32165
32166 2009-02-28  Bruno Haible  <bruno@clisp.org>
32167
32168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
32169         Mention the results of these tests on various platforms.
32170         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
32171         order.
32172         * doc/posix-functions/printf.texi: Likewise.
32173         * doc/posix-functions/snprintf.texi: Likewise.
32174         * doc/posix-functions/sprintf.texi: Likewise.
32175         * doc/posix-functions/vfprintf.texi: Likewise.
32176         * doc/posix-functions/vprintf.texi: Likewise.
32177         * doc/posix-functions/vsnprintf.texi: Likewise.
32178         * doc/posix-functions/vsprintf.texi: Likewise.
32179         * doc/glibc-functions/obstack_printf.texi: Likewise.
32180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32181
32182 2009-02-28  Bruno Haible  <bruno@clisp.org>
32183
32184         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
32185         Reported by Loïc Minier <lool@dooz.org>.
32186
32187 2009-02-27  Bruno Haible  <bruno@clisp.org>
32188
32189         * gnulib-tool (func_import): Make the sed expression used to create the
32190         sed script for updating the .gitignore file POSIX compliant.
32191         Reported by Eric Blake.
32192
32193 2009-02-27  Bruno Haible  <bruno@clisp.org>
32194
32195         * gnulib-tool (sed): Don't alias as "sed --posix".
32196         Reported by Eric Blake.
32197
32198 2009-02-27  Bruno Haible  <bruno@clisp.org>
32199
32200         Avoid test link errors.
32201         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
32202         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
32203         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
32204         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
32205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32206
32207 2009-02-27  Bruno Haible  <bruno@clisp.org>
32208
32209         Avoid spurious "(cached)" in configure output.
32210         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
32211         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
32212         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32213         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32214         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32215         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32216         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32217         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32218         Reported by Eric Blake.
32219
32220 2009-02-27  Eric Blake  <ebb9@byu.net>
32221
32222         printf: fix regression in previous patch
32223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
32224
32225 2009-02-27  Bruno Haible  <bruno@clisp.org>
32226
32227         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
32228         value.
32229         * lib/stdint.in.h: Likewise.
32230         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
32231
32232 2009-02-27  Eric Blake  <ebb9@byu.net>
32233
32234         doc: mention more functions added in cygwin 1.7.0
32235         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
32236         addition.
32237         * doc/posix-functions/open_wmemstream.texi: Likewise.
32238         * doc/posix-functions/wcsnlen.texi: Likewise.
32239         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32240         * doc/posix-functions/wcstod.texi: Likewise.
32241         * doc/posix-functions/wcstof.texi: Likewise.
32242         * doc/posix-functions/wcstoimax.texi: Likewise.
32243         * doc/posix-functions/wcstok.texi: Likewise.
32244         * doc/posix-functions/wcstoumax.texi: Likewise.
32245
32246         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
32247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
32248         * doc/posix-functions/fprintf.texi: Update.
32249         * doc/posix-functions/printf.texi: Update.
32250         * doc/posix-functions/snprintf.texi: Update.
32251         * doc/posix-functions/sprintf.texi: Update.
32252         * doc/posix-functions/vfprintf.texi: Update.
32253         * doc/posix-functions/vprintf.texi: Update.
32254         * doc/posix-functions/vsnprintf.texi: Update.
32255         * doc/posix-functions/vsprintf.texi: Update.
32256         * doc/glibc-functions/obstack_printf.texi: Update.
32257         * doc/glibc-functions/obstack_vprintf.texi: Update.
32258
32259 2009-02-26  Eric Blake  <ebb9@byu.net>
32260
32261         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
32262         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
32263         compilation bug by using runtime conversion.
32264         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
32266         * modules/ceill-tests (Files): Use nan.h.
32267         * modules/floorl-tests (Files): Likewise.
32268         * modules/frexpl-tests (Files): Likewise.
32269         * modules/isnanl-tests (Files): Likewise.
32270         * modules/ldexpl-tests (Files): Likewise.
32271         * modules/roundl-tests (Files): Likewise.
32272         * modules/truncl-tests (Files): Likewise.
32273         * tests/test-ceill.c (main): Use a working NaN.
32274         * tests/test-floorl.c (main): Likewise.
32275         * tests/test-frexpl.c (main): Likewise.
32276         * tests/test-isnan.c (test_long_double): Likewise.
32277         * tests/test-isnanl.h (main): Likewise.
32278         * tests/test-ldexpl.h (main): Likewise.
32279         * tests/test-roundl.h (main): Likewise.
32280         * tests/test-truncl.h (main): Likewise.
32281         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
32282
32283 2009-02-26  Eric Blake  <ebb9@byu.net>
32284             Bruno Haible  <bruno@clisp.org>
32285
32286         Work around a *printf bug with %ls on Solaris.
32287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
32288         precision is specified, sprintf stops converting the wide string
32289         argument when the number of bytes that have been produced by this
32290         conversion equals or exceeds the precision.
32291         * doc/posix-functions/fprintf.texi: Update.
32292         * doc/posix-functions/printf.texi: Update.
32293         * doc/posix-functions/snprintf.texi: Update.
32294         * doc/posix-functions/sprintf.texi: Update.
32295         * doc/posix-functions/vfprintf.texi: Update.
32296         * doc/posix-functions/vprintf.texi: Update.
32297         * doc/posix-functions/vsnprintf.texi: Update.
32298         * doc/posix-functions/vsprintf.texi: Update.
32299         * doc/glibc-functions/obstack_printf.texi: Update.
32300         * doc/glibc-functions/obstack_vprintf.texi: Update.
32301
32302 2009-02-26  Eric Blake  <ebb9@byu.net>
32303
32304         stdlib: favor compiler check of random.h
32305         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
32306         to avoid an ObjC random.h installed by Swarm.
32307
32308 2009-02-26  Bruno Haible  <bruno@clisp.org>
32309
32310         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
32311         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
32312         Reported by Gary V. Vaughan <gary@gnu.org>.
32313
32314 2009-02-26  Bruno Haible  <bruno@clisp.org>
32315
32316         Fix *printf behaviour regarding the %ls directive.
32317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
32318         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
32319         NEED_PRINTF_DIRECTIVE_LS.
32320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
32321         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32323         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
32324         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
32325         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
32326         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
32327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32331         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32335         * doc/posix-functions/fprintf.texi: Update.
32336         * doc/posix-functions/printf.texi: Update.
32337         * doc/posix-functions/snprintf.texi: Update.
32338         * doc/posix-functions/sprintf.texi: Update.
32339         * doc/posix-functions/vfprintf.texi: Update.
32340         * doc/posix-functions/vprintf.texi: Update.
32341         * doc/posix-functions/vsnprintf.texi: Update.
32342         * doc/posix-functions/vsprintf.texi: Update.
32343         * doc/glibc-functions/obstack_printf.texi: Update.
32344         * doc/glibc-functions/obstack_vprintf.texi: Update.
32345         Reported by Eric Blake.
32346
32347 2009-02-25  Bruno Haible  <bruno@clisp.org>
32348
32349         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32350         with known value.
32351         Reported by Gary V. Vaughan <gary@gnu.org>.
32352
32353 2009-02-25  Bruno Haible  <bruno@clisp.org>
32354
32355         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32356         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32357         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32358         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32359         Reported by Gary V. Vaughan <gary@gnu.org>.
32360
32361 2009-02-25  Bruno Haible  <bruno@clisp.org>
32362
32363         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32364         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32365         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32366         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32367         Reported by Gary V. Vaughan <gary@gnu.org>.
32368
32369 2009-02-25  Eric Blake  <ebb9@byu.net>
32370
32371         tests: skip fseek/ftell tests if ungetc is broken
32372         * m4/ungetc.m4: New file.
32373         * modules/fseek-tests: Split test, so ungetc dependency is
32374         separate from rest of test.
32375         * modules/fseeko-tests: Likewise.
32376         * modules/ftell-tests: Likewise.
32377         * modules/ftello-tests: Likewise.
32378         * tests/test-fseek.c (main): Isolate ungetc dependency.
32379         * tests/test-fseeko.c (main): Likewise.
32380         * tests/test-ftell.c (main): Likewise.
32381         * tests/test-ftello.c (main): Likewise.
32382         * tests/test-fseek2.sh: New file.
32383         * tests/test-fseeko2.sh: Likewise.
32384         * tests/test-ftell2.sh: Likewise.
32385         * tests/test-ftello2.sh: Likewise.
32386
32387 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32388
32389         test-getaddrinfo: fix usage of skip return code 77
32390         * tests/test-gettaddrinfo.c: Return skip code 77 only
32391         for first occurance of skip (4x77 is not 77)
32392
32393 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32394
32395         strtod: avoid C99 decl-after-statement
32396         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32397
32398 2009-02-24  Eric Blake  <ebb9@byu.net>
32399
32400         strtod: detect HP-UX 11.31 bug
32401         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32402         Reported by Gary V. Vaughan.
32403
32404 2009-02-23  Bruno Haible  <bruno@clisp.org>
32405
32406         Fix invalid read past end of memory block.
32407         * lib/vasnprintf.c (DCHAR_SET): Define.
32408         (local_wcslen): Define only when needed.
32409         (local_strnlen, local_wcsnlen): New functions.
32410         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32411         directives that involve a conversion ourselves.
32412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32413         wcsnlen, mbrtowc, wcrtomb.
32414         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32415         * tests/test-vasprintf-posix.c (test_function): Likewise.
32416         * tests/test-snprintf-posix.h (test_function): Likewise.
32417         * tests/test-sprintf-posix.h (test_function): Likewise.
32418         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32419
32420 2009-02-22  Bruno Haible  <bruno@clisp.org>
32421
32422         Implement new clarified decomposition of Hangul syllables.
32423         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32424         of type LTV, return only a pairwise decomposition.
32425         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32426         Likewise.
32427         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32428         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32429         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32430
32431 2009-02-22  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32434         zero-length results and shrink excess allocated memory.
32435         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32436         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32437         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32438         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32439         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32440         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32441         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32442         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32443         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32444         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32445         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32446         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32447
32448 2009-02-21  Bruno Haible  <bruno@clisp.org>
32449
32450         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32451         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32452         spaces after a period. Put a space between a macro name and its
32453         argument list. Trivial rewordings.
32454         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32455         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32456         (main): Return 0 explicitly.
32457
32458 2009-02-21  Bruno Haible  <bruno@clisp.org>
32459
32460         Tests for module 'uninorm/filter'.
32461         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32462         * modules/uninorm/filter-tests: New file.
32463
32464         New module 'uninorm/filter'.
32465         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32466         uninorm_filter_flush, uninorm_filter_free): New declarations.
32467         * lib/uninorm/uninorm-filter.c: New file.
32468         * modules/uninorm/filter: New file.
32469
32470 2009-02-21  Bruno Haible  <bruno@clisp.org>
32471
32472         Tests for module 'uninorm/nfkc'.
32473         * tests/uninorm/test-nfkc.c: New file.
32474         * tests/uninorm/test-u8-nfkc.c: New file.
32475         * tests/uninorm/test-u16-nfkc.c: New file.
32476         * tests/uninorm/test-u32-nfkc.c: New file.
32477         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32478         * tests/uninorm/test-u32-nfkc-big.c: New file.
32479         * modules/uninorm/nfkc-tests: New file.
32480
32481         New module 'uninorm/nfkc'.
32482         * lib/uninorm/nfkc.c: New file.
32483         * modules/uninorm/nfkc: New file.
32484
32485         Tests for module 'uninorm/nfkd'.
32486         * tests/uninorm/test-nfkd.c: New file.
32487         * tests/uninorm/test-u8-nfkd.c: New file.
32488         * tests/uninorm/test-u16-nfkd.c: New file.
32489         * tests/uninorm/test-u32-nfkd.c: New file.
32490         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32491         * tests/uninorm/test-u32-nfkd-big.c: New file.
32492         * modules/uninorm/nfkd-tests: New file.
32493
32494         New module 'uninorm/nfkd'.
32495         * lib/uninorm/nfkd.c: New file.
32496         * modules/uninorm/nfkd: New file.
32497
32498         Tests for module 'uninorm/nfc'.
32499         * tests/uninorm/test-nfc.c: New file.
32500         * tests/uninorm/test-u8-nfc.c: New file.
32501         * tests/uninorm/test-u16-nfc.c: New file.
32502         * tests/uninorm/test-u32-nfc.c: New file.
32503         * tests/uninorm/test-u32-nfc-big.sh: New file.
32504         * tests/uninorm/test-u32-nfc-big.c: New file.
32505         * modules/uninorm/nfc-tests: New file.
32506
32507         New module 'uninorm/nfc'.
32508         * lib/uninorm/nfc.c: New file.
32509         * modules/uninorm/nfc: New file.
32510
32511         Tests for module 'uninorm/nfd'.
32512         * tests/uninorm/test-nfd.c: New file.
32513         * tests/uninorm/test-u8-nfd.c: New file.
32514         * tests/uninorm/test-u16-nfd.c: New file.
32515         * tests/uninorm/test-u32-nfd.c: New file.
32516         * tests/uninorm/test-u32-nfd-big.sh: New file.
32517         * tests/uninorm/test-u32-nfd-big.c: New file.
32518         * tests/uninorm/test-u32-normalize-big.h: New file.
32519         * tests/uninorm/test-u32-normalize-big.c: New file.
32520         * tests/uninorm/NormalizationTest.txt: New file, created from
32521         Unicode 5.1.0 NormalizationTest.txt.
32522         * modules/uninorm/nfd-tests: New file.
32523
32524         New module 'uninorm/nfd'.
32525         * lib/uninorm/nfd.c: New file.
32526         * modules/uninorm/nfd: New file.
32527
32528         New module 'uninorm/u32-normalize'.
32529         * lib/uninorm/u32-normalize.c: New file.
32530         * modules/uninorm/u32-normalize: New file.
32531
32532         New module 'uninorm/u16-normalize'.
32533         * lib/uninorm/u16-normalize.c: New file.
32534         * modules/uninorm/u16-normalize: New file.
32535
32536         New module 'uninorm/u8-normalize'.
32537         * lib/uninorm/u8-normalize.c: New file.
32538         * lib/uninorm/normalize-internal.h: New file.
32539         * lib/uninorm/u-normalize-internal.h: New file.
32540         * modules/uninorm/u8-normalize: New file.
32541
32542         New module 'uninorm/decompose-internal'.
32543         * lib/uninorm/decompose-internal.c: New file.
32544         * modules/uninorm/decompose-internal: New file.
32545
32546         Tests for module 'uninorm/composition'.
32547         * tests/uninorm/test-composition.c: New file.
32548         * modules/uninorm/composition-tests: New file.
32549
32550         New module 'uninorm/composition'.
32551         * lib/uninorm/composition.c: New file.
32552         * lib/uninorm/composition-table.gperf: New file, generated by
32553         gen-uni-tables.
32554         * modules/uninorm/composition: New file.
32555
32556         Tests for module 'uninorm/compat-decomposition'.
32557         * tests/uninorm/test-compat-decomposition.c: New file.
32558         * modules/uninorm/compat-decomposition-tests: New file.
32559
32560         New module 'uninorm/compat-decomposition'.
32561         * lib/uninorm/decompose-internal.h: New file.
32562         * lib/uninorm/compat-decomposition.c: New file.
32563         * modules/uninorm/compat-decomposition: New file.
32564
32565         Tests for module 'uninorm/canonical-decomposition'.
32566         * tests/uninorm/test-canonical-decomposition.c: New file.
32567         * modules/uninorm/canonical-decomposition-tests: New file.
32568
32569         New module 'uninorm/canonical-decomposition'.
32570         * lib/uninorm/canonical-decomposition.c: New file.
32571         * modules/uninorm/canonical-decomposition: New file.
32572
32573         Tests for module 'uninorm/decomposition'.
32574         * tests/uninorm/test-decomposition.c: New file.
32575         * modules/uninorm/decomposition-tests: New file.
32576
32577         New module 'uninorm/decomposition'.
32578         * lib/uninorm/decomposition.c: New file.
32579         * modules/uninorm/decomposition: New file.
32580
32581         New module 'uninorm/decomposition-table'.
32582         * lib/uninorm/decomposition-table.h: New file.
32583         * lib/uninorm/decomposition-table.c: New file.
32584         * lib/uninorm/decomposition-table1.h: New file, generated by
32585         gen-uni-tables.
32586         * lib/uninorm/decomposition-table2.h: New file, generated by
32587         gen-uni-tables.
32588         * modules/uninorm/decomposition-table: New file.
32589
32590         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32591         (UC_DECOMP_*): New enumeration items.
32592         (get_decomposition): New function.
32593         (struct decomp_table): New type.
32594         (output_decomposition, output_decomposition_tables): New functions.
32595         (unicode_composition_exclusions): New variable.
32596         (fill_composition_exclusions, debug_output_composition_tables): New
32597         functions.
32598         (main): Accept one more argument. Invoke fill_composition_exclusions.
32599         Output decomposition and composition tables.
32600
32601         New module 'uninorm/base'.
32602         * lib/uninorm.h: New file.
32603         * lib/unictype.h: Update comment.
32604         * modules/uninorm/base: New file.
32605
32606 2009-02-21  David Lutterkort  <lutter@redhat.com>
32607
32608         Tests for module 'safe-alloc'.
32609         * tests/test-safe-alloc.c: New file.
32610         * modules/safe-alloc-tests: New file.
32611
32612         New module 'safe-alloc'.
32613         * lib/safe-alloc.h: New file.
32614         * lib/safe-alloc.c: New file.
32615         * m4/safe-alloc.m4: New file.
32616         * modules/safe-alloc: New file.
32617         * doc/safe-alloc.texi: New file.
32618         * doc/gnulib.texi: Include it.
32619         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32620         safe-alloc.
32621
32622 2009-02-18  Bruno Haible  <bruno@clisp.org>
32623
32624         Fix link error on non-glibc systems.
32625         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32626         variable.
32627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32628
32629 2009-02-18  Jim Meyering  <meyering@redhat.com>
32630
32631         fts: avoid used-uninitialized error due to recent change
32632         * lib/fts.c (fts_read): Guard uses of the new member,
32633         parent->fts_n_dirs_remaining, since it's not relevant for
32634         the parent of a directory specified on the command-line.
32635
32636 2009-02-17  James Youngman  <jay@gnu.org>
32637             Bruno Haible  <bruno@clisp.org>
32638
32639         * m4/include_next.m4: Reformulate comment.
32640
32641 2009-02-16  Jim Meyering  <meyering@redhat.com>
32642
32643         fts: add #if guards so that the fts_lgpl module still builds
32644         * lib/fts.c: Guard just-added hash-table-using parts with
32645         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32646         Reported by Simon Josefsson.
32647
32648 2009-02-15  Bruno Haible  <bruno@clisp.org>
32649
32650         * modules/array-mergesort-tests: New file.
32651         * tests/test-array-mergesort.c: New file.
32652
32653         New module 'array-mergesort'.
32654         * modules/array-mergesort: New file.
32655         * lib/array-mergesort.h: New file.
32656
32657 2009-02-15  Bruno Haible  <bruno@clisp.org>
32658
32659         Fix 2009-02-07 commit.
32660         * lib/gen-uni-tables.c (output_predicate, output_category,
32661         output_combclass, output_bidi_category, output_decimal_digit,
32662         output_digit, output_numeric, output_mirror, output_scripts,
32663         output_ident_category, output_simple_mapping): Fix format directives.
32664         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32665
32666 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32667
32668         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32669         fixes are available from IBM.
32670
32671 2009-02-13  Jim Meyering  <meyering@redhat.com>
32672
32673         fts: arrange not to stat non-directories in more cases
32674         This makes GNU find (when it doesn't need to stat each file)
32675         *much* more efficient at traversing reiserfs file systems.
32676         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32677         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32678         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32679         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32680         (leaf_optimization_applies): New function.
32681         (LCO_hash, LCO_compare): New helper functions.
32682         (link_count_optimize_ok): New function.
32683         (fts_stat): Initialize new member (if dir).
32684         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32685         we've just stat'ed a directory.  Skip the stat call when possible.
32686         ---
32687         Note this AFS-related exchange:
32688         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32689         and note find's pioctl call in find/fstype.c.
32690         But that is necessary only if you want to enable the
32691         optimization for AFS, and for now, I don't.
32692
32693         fts: move a function definition "up" (no semantic change)
32694         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32695         "up" to precede upcoming use of a related function.
32696
32697 2009-02-11  Jim Meyering  <meyering@redhat.com>
32698
32699         fts: correct internal computation of nlinks (optimization-related)
32700         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32701         whether the current entry is a directory, so don't test it.
32702
32703 2009-02-10  Bruno Haible  <bruno@clisp.org>
32704
32705         Tests for module 'uniwbrk/ulc-wordbreaks'.
32706         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32707         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32708         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32709
32710         Tests for module 'uniwbrk/u32-wordbreaks'.
32711         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32712         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32713
32714         Tests for module 'uniwbrk/u16-wordbreaks'.
32715         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32716         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32717
32718         Tests for module 'uniwbrk/u8-wordbreaks'.
32719         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32720         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32721
32722 2009-02-10  Bruno Haible  <bruno@clisp.org>
32723
32724         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32725         property.
32726         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32727         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32728         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32729
32730 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32731
32732         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32733         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32734
32735 2009-02-10  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32738         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32739         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32740         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32741         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32742         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32743
32744 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32745
32746         * lib/sockets.h (gl_fd_to_handle): New function.
32747
32748         * tests/test-sockets.c: Call gl_fd_to_handle.
32749
32750 2009-02-09  Bruno Haible  <bruno@clisp.org>
32751
32752         * doc/havelib.texi: Document the conventions on bi-arch systems.
32753
32754 2009-02-08  Bruno Haible  <bruno@clisp.org>
32755
32756         Document the AC_LIB_LINKFLAGS macro.
32757         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32758         * doc/gnulib.texi: Include it.
32759
32760 2009-02-08  Bruno Haible  <bruno@clisp.org>
32761
32762         Fix wrong order of sections, compared to TOC.
32763         * doc/gnulib.texi: Include relocatable-maint.texi after the
32764         "Regular expressions" node, not before.
32765
32766 2009-02-08  Bruno Haible  <bruno@clisp.org>
32767
32768         Tests for module 'unicase/totitle'.
32769         * modules/unicase/totitle-tests: New file.
32770
32771         Tests for module 'unicase/tolower'.
32772         * modules/unicase/tolower-tests: New file.
32773
32774         Tests for module 'unicase/toupper'.
32775         * modules/unicase/toupper-tests: New file.
32776         * tests/unicase/test-mapping-part1.h: New file.
32777         * tests/unicase/test-mapping-part2.h: New file.
32778
32779         New module 'unicase/totitle'.
32780         * modules/unicase/totitle: New file.
32781         * lib/unicase/totitle.c: New file.
32782
32783         New module 'unicase/tolower'.
32784         * modules/unicase/tolower: New file.
32785         * lib/unicase/tolower.c: New file.
32786
32787         New module 'unicase/toupper'.
32788         * modules/unicase/toupper: New file.
32789         * lib/unicase/toupper.c: New file.
32790         * lib/unicase/simple-mapping.h: New file.
32791
32792         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32793         (mapping_table): New structure.
32794         (output_simple_mapping): New function.
32795         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32796         * modules/gen-uni-tables (Description): Update.
32797         * lib/unicase/toupper.h: New file, automatically generated by
32798         gen-uni-tables.
32799         * lib/unicase/tolower.h: New file, automatically generated by
32800         gen-uni-tables.
32801         * lib/unicase/totitle.h: New file, automatically generated by
32802         gen-uni-tables.
32803         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32804         gen-uni-tables.
32805         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32806         gen-uni-tables.
32807         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32808         gen-uni-tables.
32809
32810         New module 'unicase/base'.
32811         * modules/unicase/base: New file.
32812         * lib/unicase.h: New file.
32813
32814 2009-02-08  Bruno Haible  <bruno@clisp.org>
32815
32816         New module 'uniwbrk/ulc-wordbreaks'.
32817         * modules/uniwbrk/ulc-wordbreaks: New file.
32818         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32819
32820         New module 'uniwbrk/u32-wordbreaks'.
32821         * modules/uniwbrk/u32-wordbreaks: New file.
32822         * lib/uniwbrk/u32-wordbreaks.c: New file.
32823
32824         New module 'uniwbrk/u16-wordbreaks'.
32825         * modules/uniwbrk/u16-wordbreaks: New file.
32826         * lib/uniwbrk/u16-wordbreaks.c: New file.
32827
32828         New module 'uniwbrk/u8-wordbreaks'.
32829         * modules/uniwbrk/u8-wordbreaks: New file.
32830         * lib/uniwbrk/u8-wordbreaks.c: New file.
32831         * lib/uniwbrk/u-wordbreaks.h: New file.
32832
32833         New module 'uniwbrk/table'.
32834         * modules/uniwbrk/table: New file.
32835         * lib/uniwbrk/wbrktable.h: New file.
32836         * lib/uniwbrk/wbrktable.c: New file.
32837
32838         New module 'uniwbrk/wordbreak-property'.
32839         * modules/uniwbrk/wordbreak-property: New file.
32840         * lib/uniwbrk/wordbreak-property.c: New file.
32841
32842         * lib/gen-uni-tables.c (WBP_*): New enum items.
32843         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32844         (unicode_org_wbp): New variable.
32845         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32846         New functions.
32847         (wbp_table): New structure.
32848         (output_wbp, output_wbrk_tables): New functions.
32849         (main): Accept additional argument. Invoke fill_org_wbp,
32850         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32851         output_wbrk_tables.
32852         * modules/gen-uni-tables (Description): Update.
32853         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32854         gen-uni-tables.
32855
32856         New module 'uniwbrk/base'.
32857         * modules/uniwbrk/base: New file.
32858         * lib/uniwbrk.h: New file.
32859
32860 2009-02-08  Bruno Haible  <bruno@clisp.org>
32861
32862         Update to Unicode 5.1.0.
32863         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32864         U+2185..U+2188.
32865         (is_property_default_ignorable_code_point): Don't include characters
32866         of category Cc or Cs and not-a-characters.
32867         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32868         U+0D79, U+109E, U+109F, U+A60C.
32869         * lib/unictype/bidi_of.h: Regenerated.
32870         * lib/unictype/blocks.h: Regenerated.
32871         * lib/unictype/categ_C.h: Regenerated.
32872         * lib/unictype/categ_Cf.h: Regenerated.
32873         * lib/unictype/categ_Cn.h: Regenerated.
32874         * lib/unictype/categ_L.h: Regenerated.
32875         * lib/unictype/categ_Ll.h: Regenerated.
32876         * lib/unictype/categ_Lm.h: Regenerated.
32877         * lib/unictype/categ_Lo.h: Regenerated.
32878         * lib/unictype/categ_Lu.h: Regenerated.
32879         * lib/unictype/categ_M.h: Regenerated.
32880         * lib/unictype/categ_Mc.h: Regenerated.
32881         * lib/unictype/categ_Me.h: Regenerated.
32882         * lib/unictype/categ_Mn.h: Regenerated.
32883         * lib/unictype/categ_N.h: Regenerated.
32884         * lib/unictype/categ_Nd.h: Regenerated.
32885         * lib/unictype/categ_Nl.h: Regenerated.
32886         * lib/unictype/categ_No.h: Regenerated.
32887         * lib/unictype/categ_P.h: Regenerated.
32888         * lib/unictype/categ_Pd.h: Regenerated.
32889         * lib/unictype/categ_Pe.h: Regenerated.
32890         * lib/unictype/categ_Pf.h: Regenerated.
32891         * lib/unictype/categ_Pi.h: Regenerated.
32892         * lib/unictype/categ_Po.h: Regenerated.
32893         * lib/unictype/categ_Ps.h: Regenerated.
32894         * lib/unictype/categ_S.h: Regenerated.
32895         * lib/unictype/categ_Sk.h: Regenerated.
32896         * lib/unictype/categ_Sm.h: Regenerated.
32897         * lib/unictype/categ_So.h: Regenerated.
32898         * lib/unictype/categ_of.h: Regenerated.
32899         * lib/unictype/combining.h: Regenerated.
32900         * lib/unictype/ctype_alnum.h: Regenerated.
32901         * lib/unictype/ctype_alpha.h: Regenerated.
32902         * lib/unictype/ctype_graph.h: Regenerated.
32903         * lib/unictype/ctype_lower.h: Regenerated.
32904         * lib/unictype/ctype_print.h: Regenerated.
32905         * lib/unictype/ctype_punct.h: Regenerated.
32906         * lib/unictype/ctype_upper.h: Regenerated.
32907         * lib/unictype/decdigit.h: Regenerated.
32908         * lib/unictype/digit.h: Regenerated.
32909         * lib/unictype/mirror.h: Regenerated.
32910         * lib/unictype/numeric.h: Regenerated.
32911         * lib/unictype/pr_alphabetic.h: Regenerated.
32912         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32913         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32914         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32915         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32916         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32917         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32918         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32919         * lib/unictype/pr_combining.h: Regenerated.
32920         * lib/unictype/pr_dash.h: Regenerated.
32921         * lib/unictype/pr_decimal_digit.h: Regenerated.
32922         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32923         * lib/unictype/pr_deprecated.h: Regenerated.
32924         * lib/unictype/pr_diacritic.h: Regenerated.
32925         * lib/unictype/pr_extender.h: Regenerated.
32926         * lib/unictype/pr_format_control.h: Regenerated.
32927         * lib/unictype/pr_grapheme_base.h: Regenerated.
32928         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32929         * lib/unictype/pr_grapheme_link.h: Regenerated.
32930         * lib/unictype/pr_id_continue.h: Regenerated.
32931         * lib/unictype/pr_id_start.h: Regenerated.
32932         * lib/unictype/pr_ideographic.h: Regenerated.
32933         * lib/unictype/pr_ignorable_control.h: Regenerated.
32934         * lib/unictype/pr_lowercase.h: Regenerated.
32935         * lib/unictype/pr_math.h: Regenerated.
32936         * lib/unictype/pr_numeric.h: Regenerated.
32937         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32938         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32939         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32940         * lib/unictype/pr_other_id_continue.h: Regenerated.
32941         * lib/unictype/pr_other_lowercase.h: Regenerated.
32942         * lib/unictype/pr_other_math.h: Regenerated.
32943         * lib/unictype/pr_punctuation.h: Regenerated.
32944         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32945         * lib/unictype/pr_soft_dotted.h: Regenerated.
32946         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32947         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32948         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32949         * lib/unictype/pr_uppercase.h: Regenerated.
32950         * lib/unictype/pr_xid_continue.h: Regenerated.
32951         * lib/unictype/pr_xid_start.h: Regenerated.
32952         * lib/unictype/pr_zero_width.h: Regenerated.
32953         * lib/unictype/scripts.h: Regenerated.
32954         * lib/unictype/scripts_byname.gperf: Regenerated.
32955         * lib/unictype/sy_java_ident.h: Regenerated.
32956         * lib/unilbrk/lbrkprop1.h: Regenerated.
32957         * lib/unilbrk/lbrkprop2.h: Regenerated.
32958         * tests/unictype/test-categ_C.c: Regenerated.
32959         * tests/unictype/test-categ_Cf.c: Regenerated.
32960         * tests/unictype/test-categ_Cn.c: Regenerated.
32961         * tests/unictype/test-categ_L.c: Regenerated.
32962         * tests/unictype/test-categ_Ll.c: Regenerated.
32963         * tests/unictype/test-categ_Lm.c: Regenerated.
32964         * tests/unictype/test-categ_Lo.c: Regenerated.
32965         * tests/unictype/test-categ_Lu.c: Regenerated.
32966         * tests/unictype/test-categ_M.c: Regenerated.
32967         * tests/unictype/test-categ_Mc.c: Regenerated.
32968         * tests/unictype/test-categ_Me.c: Regenerated.
32969         * tests/unictype/test-categ_Mn.c: Regenerated.
32970         * tests/unictype/test-categ_N.c: Regenerated.
32971         * tests/unictype/test-categ_Nd.c: Regenerated.
32972         * tests/unictype/test-categ_Nl.c: Regenerated.
32973         * tests/unictype/test-categ_No.c: Regenerated.
32974         * tests/unictype/test-categ_P.c: Regenerated.
32975         * tests/unictype/test-categ_Pd.c: Regenerated.
32976         * tests/unictype/test-categ_Pe.c: Regenerated.
32977         * tests/unictype/test-categ_Pf.c: Regenerated.
32978         * tests/unictype/test-categ_Pi.c: Regenerated.
32979         * tests/unictype/test-categ_Po.c: Regenerated.
32980         * tests/unictype/test-categ_Ps.c: Regenerated.
32981         * tests/unictype/test-categ_S.c: Regenerated.
32982         * tests/unictype/test-categ_Sk.c: Regenerated.
32983         * tests/unictype/test-categ_Sm.c: Regenerated.
32984         * tests/unictype/test-categ_So.c: Regenerated.
32985         * tests/unictype/test-ctype_alnum.c: Regenerated.
32986         * tests/unictype/test-ctype_alpha.c: Regenerated.
32987         * tests/unictype/test-ctype_graph.c: Regenerated.
32988         * tests/unictype/test-ctype_lower.c: Regenerated.
32989         * tests/unictype/test-ctype_print.c: Regenerated.
32990         * tests/unictype/test-ctype_punct.c: Regenerated.
32991         * tests/unictype/test-ctype_upper.c: Regenerated.
32992         * tests/unictype/test-decdigit.h: Regenerated.
32993         * tests/unictype/test-digit.h: Regenerated.
32994         * tests/unictype/test-numeric.h: Regenerated.
32995         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32996         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32997         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32998         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32999         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
33000         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
33001         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
33002         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
33003         * tests/unictype/test-pr_combining.c: Regenerated.
33004         * tests/unictype/test-pr_dash.c: Regenerated.
33005         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
33006         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
33007         * tests/unictype/test-pr_deprecated.c: Regenerated.
33008         * tests/unictype/test-pr_diacritic.c: Regenerated.
33009         * tests/unictype/test-pr_extender.c: Regenerated.
33010         * tests/unictype/test-pr_format_control.c: Regenerated.
33011         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
33012         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
33013         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
33014         * tests/unictype/test-pr_id_continue.c: Regenerated.
33015         * tests/unictype/test-pr_id_start.c: Regenerated.
33016         * tests/unictype/test-pr_ideographic.c: Regenerated.
33017         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
33018         * tests/unictype/test-pr_lowercase.c: Regenerated.
33019         * tests/unictype/test-pr_math.c: Regenerated.
33020         * tests/unictype/test-pr_numeric.c: Regenerated.
33021         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
33022         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
33023         Regenerated.
33024         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
33025         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
33026         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
33027         * tests/unictype/test-pr_other_math.c: Regenerated.
33028         * tests/unictype/test-pr_punctuation.c: Regenerated.
33029         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
33030         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
33031         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
33032         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
33033         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
33034         * tests/unictype/test-pr_uppercase.c: Regenerated.
33035         * tests/unictype/test-pr_xid_continue.c: Regenerated.
33036         * tests/unictype/test-pr_xid_start.c: Regenerated.
33037         * tests/unictype/test-pr_zero_width.c: Regenerated.
33038
33039         Update to Unicode 5.1.0.
33040         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
33041         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
33042         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
33043         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
33044         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
33045         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
33046         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
33047         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
33048         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
33049         (nonspacing_table_ind): Update.
33050         * tests/uniwidth/test-uc_width2.sh: Update expected result.
33051
33052         Update to Unicode 5.1.0.
33053         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
33054         code transform.
33055         * lib/uniname/uniname.c (unicode_character_name,
33056         unicode_name_character): Add the range 0x1Fxxx to the code transform.
33057         * lib/uniname/uninames.h: Regenerated.
33058         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
33059
33060 2009-02-07  Bruno Haible  <bruno@clisp.org>
33061
33062         Merge gen-ctype and gen-lbrk into a single program.
33063         * lib/gen-uni-tables.c: New file, incorporating
33064         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
33065         Add directory prefixes to the names of the generated files.
33066         * lib/unictype/gen-ctype.c: Remove file.
33067         * lib/unilbrk/gen-lbrk.c: Remove file.
33068         * modules/gen-uni-tables: New file.
33069         * modules/unictype/gen-ctype: Remove file.
33070         * modules/unilbrk/gen-lbrk: Remove file.
33071
33072 2009-02-07  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
33075
33076         New module 'unistr/u32-strcoll'.
33077         * modules/unistr/u32-strcoll: New file.
33078         * lib/unistr/u32-strcoll.c: New file.
33079
33080         New module 'unistr/u16-strcoll'.
33081         * modules/unistr/u16-strcoll: New file.
33082         * lib/unistr/u16-strcoll.c: New file.
33083
33084         New module 'unistr/u8-strcoll'.
33085         * modules/unistr/u8-strcoll: New file.
33086         * lib/unistr/u8-strcoll.c: New file.
33087         * lib/unistr/u-strcoll.h: New file.
33088
33089 2009-02-07  Bruno Haible  <bruno@clisp.org>
33090
33091         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
33092         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33093         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
33094         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
33095         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
33096         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
33097
33098 2009-02-07  Bruno Haible  <bruno@clisp.org>
33099
33100         Make 64-bit clean.
33101         * lib/unictype/gen-ctype.c (output_predicate, output_category,
33102         output_combclass, output_bidi_category, output_decimal_digit,
33103         output_digit, output_numeric, output_mirror, output_scripts,
33104         output_ident_category): Use proper width specifier in format strings.
33105
33106 2009-02-07  Bruno Haible  <bruno@clisp.org>
33107
33108         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
33109         failure behaviour.
33110
33111 2009-02-07  Jim Meyering  <meyering@redhat.com>
33112
33113         regex: avoid compilation failure with upcoming gcc-4.4
33114         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
33115         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
33116         "... error: integer overflow in preprocessor expression".
33117
33118 2009-02-05  Ben Pfaff  <blp@gnu.org>
33119
33120         Fix link errors on Windows when close module is used.
33121         * modules/close: Add $(LIB_CLOSE) to Link section.
33122         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
33123         $(LIB_CLOSE) on Windows.
33124
33125 2009-02-05  Jim Meyering  <meyering@redhat.com>
33126
33127         still avoid unused-parameter warnings, but do it cleanly
33128         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
33129         (get_fs_usage): Cast to void instead.
33130         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
33131         (dev_from_mount_options, read_file_system_list): Cast to void.
33132         Prompted by Bruno Haible.
33133
33134 2009-02-04  Jim Meyering  <meyering@redhat.com>
33135
33136         fsusage.c: correct copyright year
33137         * lib/fsusage.c: Reflect year in which the change is pushed into
33138
33139         avoid misc. warnings
33140         * lib/fsusage.c (UNUSED_PARAM): Define.
33141         (get_fs_usage): Mark parameter "disk" as unused.
33142         * lib/getugroups.c (getgrent): Use "void" in prototype.
33143         * lib/mountlist.c: Mark unused parameters.
33144         (read_file_system_list): Declare a local with "const".
33145         * lib/nanosleep.c (getnow): Declare static.
33146         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
33147
33148         dirfd: set errno upon failure
33149         * lib/dirfd.c: Include <errno.h>.
33150         Set errno to ENOTSUP when returning -1.
33151         * modules/dirfd (Depends-on): Add errno.
33152         Suggested by John Kodis <kodis@comcast.net>.
33153
33154 2009-02-01  Bruno Haible  <bruno@clisp.org>
33155
33156         Don't assume sizeof (long) >= sizeof (void *).
33157         * lib/memcmp.c: Include stdint.h.
33158         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
33159         srcp2 to 'const byte *'.
33160         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
33161         types to uintptr_t.
33162         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
33163         * modules/memcmp (Depends-on): Add stdint.
33164         Reported by Ozkan Sezer <sezeroz@gmail.com>.
33165
33166 2009-01-30  Eric Blake  <ebb9@byu.net>
33167
33168         fix more require-before-expand issues
33169         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
33170         expand, AC_PROG_AWK.
33171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
33172
33173 2009-01-28  Eric Blake  <ebb9@byu.net>
33174
33175         version-etc: use consistent URL formatting
33176         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
33177         Improve formatting.  Use fputs for string without %.
33178
33179 2009-01-28  Jim Meyering  <meyering@redhat.com>
33180
33181         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
33182         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
33183         "underquoted definition of NAME" from autoconf-2.59.
33184
33185 2009-01-28  Bruno Haible  <bruno@clisp.org>
33186
33187         * doc/gnulib.texi: Add "Obsolete modules" to index.
33188
33189 2009-01-28  Jim Meyering  <meyering@redhat.com>
33190
33191         useless-if-before-free: recognize more variants
33192         * build-aux/useless-if-before-free: Also recognize e.g.,
33193         if (NULL != p) free (p);
33194
33195 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
33196
33197         test-getaddrinfo: skip (don't fail) this test when there's no network
33198         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
33199         on the presumption that it means you lack network access.
33200
33201 2009-01-26  Jim Meyering  <meyering@redhat.com>
33202
33203         fflush: avoid warnings on modern systems
33204         * lib/fflush.c (rpl_fflush): Move declarations of locals,
33205         pos and result, into scopes where they're used.
33206
33207 2009-01-26  Eric Blake  <ebb9@byu.net>
33208
33209         Silence warning reintroduced by recent extensions patch.
33210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
33211         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
33212         autoconf.
33213
33214         Backport improved autoconf semantics of AC_DEFUN_ONCE.
33215         * m4/00gnulib.m4: New file.
33216         * gnulib-tool (func_get_filelist): Always use it.
33217         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
33218         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
33219
33220 2009-01-25  Bruno Haible  <bruno@clisp.org>
33221
33222         Make test-quotearg work on MacOS X and AIX.
33223         * tests/test-quotearg.sh: New file.
33224         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
33225         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
33226         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
33227         include <libintl.h>.
33228         (fake_locale): Remove variable.
33229         (gettext, dgettext, dcgettext): Remove functions.
33230         (main): Instead of setting a fake locale, set a real locale. Call
33231         textdomain and bindtextdomain.
33232         * modules/quotearg-tests (Files): Add the new files.
33233         (Depends-on): Add gettext, setenv, unsetenv.
33234         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33235         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
33236         Augment TESTS_ENVIRONMENT.
33237
33238 2009-01-25  Bruno Haible  <bruno@clisp.org>
33239
33240         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
33241         fr_FR.ISO8859-1 locale on MacOS X.
33242         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
33243         ja_JP.eucJP locale on MacOS X.
33244         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
33245         zh_CN.GB18030 locale on MacOS X.
33246
33247 2009-01-25  Bruno Haible  <bruno@clisp.org>
33248
33249         Avoid link errors on MacOS X 10.3.
33250         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
33251         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33252
33253 2009-01-25  Bruno Haible  <bruno@clisp.org>
33254
33255         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33256         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
33257         * modules/pipe (Files): Remove m4/posix_spawn.m4.
33258         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33259         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
33260         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33261         posix_spawnattr_init, posix_spawnattr_setsigmask,
33262         posix_spawnattr_setflags, posix_spawnattr_destroy.
33263
33264         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
33265         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
33266         * modules/execute (Files): Remove m4/posix_spawn.m4.
33267         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
33268         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
33269         posix_spawnattr_init, posix_spawnattr_setsigmask,
33270         posix_spawnattr_setflags, posix_spawnattr_destroy.
33271
33272 2009-01-25  Bruno Haible  <bruno@clisp.org>
33273
33274         * lib/glthread/threadlib.c: Include <stdlib.h>.
33275
33276 2009-01-25  Bruno Haible  <bruno@clisp.org>
33277
33278         * lib/glthread/threadlib.c (dummy): New declaration.
33279
33280 2009-01-25  Bruno Haible  <bruno@clisp.org>
33281
33282         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
33283         multibyte characters also for the GB18030 encoding. Don't crash when
33284         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
33285
33286 2009-01-25  Bruno Haible  <bruno@clisp.org>
33287
33288         Avoid redefining 'struct random_data' on OSF/1 5.1.
33289         * lib/stdlib.in.h: Include <random.h> if it exists.
33290         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
33291         HAVE_RANDOM_H. Include <random.h> when testing whether
33292         'struct random_data' exists.
33293         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
33294
33295 2009-01-25  Bruno Haible  <bruno@clisp.org>
33296
33297         Don't install charset.alias on MacOS X >= 10.3.
33298         * lib/localcharset.c (DARWIN7): New macro.
33299         (get_charset_aliases): Hardcode the result for Darwin7.
33300         * modules/localcharset (install-exec-local): Don't install
33301         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
33302
33303 2009-01-25  Bruno Haible  <bruno@clisp.org>
33304
33305         Don't install charset.alias on mingw and Cygwin.
33306         * modules/localcharset (install-exec-local): Don't install
33307         charset.alias on mingw and Cygwin, if the file does not yet exist.
33308         The result for these platforms is hardcoded in localcharset.c.
33309
33310 2009-01-25  Bruno Haible  <bruno@clisp.org>
33311
33312         Make it possible again to use AC_GNU_SOURCE together with gnulib.
33313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
33314         before requiring AC_USE_SYSTEM_EXTENSIONS.
33315
33316 2009-01-25  Jim Meyering  <meyering@redhat.com>
33317
33318         c-strtod: avoid warnings
33319         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
33320         "assignment discards qualifiers from pointer target type" warnings.
33321
33322 2009-01-24  Bruno Haible  <bruno@clisp.org>
33323
33324         Add support for non-UTF-8 locales on MacOS X.
33325         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
33326         canonical encodings. For Darwin 7 and newer, don't map traditional
33327         encodings to UTF-8.
33328         Reported by Vincent Lefevre <vincent@vinc17.org>
33329         at <http://savannah.gnu.org/bugs/?25235>.
33330
33331 2009-01-24  Bruno Haible  <bruno@clisp.org>
33332
33333         * doc/gnulib.texi (Obsolete modules): New section.
33334         Reported by Mike Frysinger <vapier@gentoo.org>.
33335
33336 2009-01-24  Bruno Haible  <bruno@clisp.org>
33337
33338         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33339         (%.dvi): New rule.
33340
33341 2009-01-24  Bruno Haible  <bruno@clisp.org>
33342
33343         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33344         Reported by Eric Blake.
33345
33346 2009-01-24  Bruno Haible  <bruno@clisp.org>
33347
33348         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33349         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33350         Reported by Gary V. Vaughan <gary@gnu.org>.
33351
33352 2009-01-24  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33355
33356 2009-01-23  Bruno Haible  <bruno@clisp.org>
33357
33358         Make c-strtod, c-strtold usable in libraries.
33359         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33360         (C_STRTOD): Call strdup instead of xstrdup.
33361         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33362         * modules/c-strtold (Depends-on): Likewise.
33363         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33364         * NEWS: Mention the change.
33365         Reported by Michael Gold <mgold@ncf.ca>.
33366
33367 2009-01-23  Jim Meyering  <meyering@redhat.com>
33368
33369         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33370         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33371         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33372
33373 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33374
33375         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33376         GNU CoreUtils.
33377         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33378         * modules/version-etc (Description): Update.
33379
33380 2009-01-22  Bruno Haible  <bruno@clisp.org>
33381
33382         Cache the C locale object.
33383         * lib/c-strtod.c (c_locale_cache): New variable.
33384         (c_locale): New function.
33385         (C_STRTOD): Use it, and don't call freelocale.
33386         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33387         Suggested by Paolo Bonzini.
33388
33389 2009-01-21  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33392         conditions other than overflow.
33393
33394 2009-01-21  Bruno Haible  <bruno@clisp.org>
33395
33396         * lib/c-strtod.c: Include errno.h.
33397         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33398         value from STRTOD_L and STRTOD.
33399
33400 2009-01-21  Bruno Haible  <bruno@clisp.org>
33401         and Jim Meyering  <meyering@redhat.com>
33402
33403         nanosleep: skip configure test (fail it) for apple universal builds
33404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33405         universal builds, assume that nanosleep does not work.
33406         * modules/nanosleep (Depends-on): Add multiarch.
33407
33408         mktime: skip configure test (fail it) for apple universal builds
33409         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33410         universal builds, assume that mktime does not work.
33411         * modules/mktime (Depends-on): Add multiarch.
33412
33413 2009-01-21  Eric Blake  <ebb9@byu.net>
33414
33415         multiarch: avoid expand-before-require warning
33416         * modules/multiarch (configure.ac): Require, rather than expand,
33417         gl_MULTIARCH.
33418         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33419         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33420         enforce that all clients require it.  Partial reversion of
33421         2008-12-29 patch.
33422
33423         error: avoid expand-before-require warning
33424         * modules/errno (configure.ac): Require, rather than expand,
33425         gl_HEADER_ERRNO_H.
33426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33427         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33428         enforce that all clients require it.
33429
33430         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33431         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33432         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33433         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33434
33435 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33436
33437         Revert:
33438         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33439
33440         regex: do not depend on obsolete modules.
33441         * modules/regex: Remove memcmp and memmove.
33442
33443 2009-01-20  Bruno Haible  <bruno@clisp.org>
33444
33445         Make the 'link' module link on Windows NT 4.
33446         * lib/link.c (_WIN32_WINNT): Don't define.
33447         (CreateHardLinkFuncType): New type.
33448         (CreateHardLinkFunc, initialized): New variables.
33449         (initialize): New function.
33450         (link): Invoke CreateHardLink indirectly through the function pointer.
33451
33452 2009-01-20  Bruno Haible  <bruno@clisp.org>
33453
33454         Fix compilation failure on mingw.
33455         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33456
33457 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33458
33459         * doc/c-strtod.texi: Mention a couple of restrictions.
33460
33461 2009-01-20  Jim Meyering  <meyering@redhat.com>
33462
33463         gettimeofday: move more declarations out of functions
33464         * lib/gettimeofday.c: Move extern declarations of tzset and
33465         gmtime out of containing functions.  Prompted by Bruno Haible.
33466
33467 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33468
33469         regex: do not depend on obsolete modules.
33470         * modules/regex: Remove memcmp and memmove.
33471
33472 2009-01-19  Bruno Haible  <bruno@clisp.org>
33473
33474         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33475         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33476         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33477         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33478         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33479
33480 2009-01-19  Bruno Haible  <bruno@clisp.org>
33481
33482         * tests/test-link.c: Include <errno.h>.
33483         (main): Exit with code 77 when a hard link cannot be created due to
33484         the file system.
33485         * tests/test-link.sh: Skip test when a hard link cannot be created due
33486         to the file system.
33487         Suggested by Eric Blake.
33488
33489 2009-01-19  Martin Lambers  <marlam@marlam.de>
33490
33491         * modules/link-tests: New file.
33492         * tests/test-link.sh: New file.
33493         * tests/test-link.c: New file.
33494
33495 2009-01-19  Eric Blake  <ebb9@byu.net>
33496
33497         doc: mention another function added in cygwin 1.7.0
33498         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33499         Another new function in cygwin 1.7.
33500
33501 2009-01-19  Bruno Haible  <bruno@clisp.org>
33502
33503         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33504         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33505         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33506         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33507         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33508         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33510         * m4/md4.m4 (gl_MD4): Likewise.
33511         * m4/md5.m4 (gl_MD5): Likewise.
33512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33513         * m4/sha1.m4 (gl_SHA1): Likewise.
33514         * m4/sha256.m4 (gl_SHA256): Likewise.
33515         * m4/sha512.m4 (gl_SHA512): Likewise.
33516
33517 2009-01-19  Bruno Haible  <bruno@clisp.org>
33518
33519         * modules/uniname/uniname-tests (Depends-on): Add progname.
33520         * tests/uniname/test-uninames.c: Include progname.h.
33521         (main): Call set_program_name.
33522
33523         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33524         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33525         (main): Call set_program_name.
33526
33527         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33528         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33529         (main): Call set_program_name.
33530
33531         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33532         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33533         (main): Call set_program_name.
33534
33535         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33536         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33537         (main): Call set_program_name.
33538
33539         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33540         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33541         (main): Call set_program_name.
33542
33543         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33544         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33545         (main): Call set_program_name.
33546
33547         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33548         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33549         (main): Call set_program_name.
33550
33551         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33552         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33553         (main): Call set_program_name.
33554
33555 2009-01-19  Eric Blake  <ebb9@byu.net>
33556
33557         test-unistd: test previous patch
33558         * tests/test-unistd.c: Test *_FILENO macros.
33559
33560         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33561         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33562         Guarantee a definition.
33563         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33564         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33565         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33566         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33567         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33568         Likewise.
33569         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33570         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33571         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33572         Likewise.
33573         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33574         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33575         (STDERR_FILENO): Likewise.
33576         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33577         (STDERR_FILENO): Likewise.
33578         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33579         (STDERR_FILENO): Likewise.
33580         Reported by Elbert Pol.
33581
33582 2009-01-19  Eric Blake  <ebb9@byu.net>
33583
33584         doc: mention more functions added in cygwin 1.7.0
33585         * doc/posix-functions/abort.texi (abort): Update wording related
33586         to cygwin.
33587         * doc/posix-functions/daylight.texi (daylight): Likewise.
33588         * doc/posix-functions/optarg.texi (optarg): Likewise.
33589         * doc/posix-functions/optarg.texi (opterr): Likewise.
33590         * doc/posix-functions/optarg.texi (optind): Likewise.
33591         * doc/posix-functions/optarg.texi (optopt): Likewise.
33592         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33593         worked in 1.5.x, and was withdrawn in 1.7.
33594         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33595         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33596         cygwin versions.
33597         * doc/posix-functions/perror.texi (perror): Likewise.
33598         * doc/posix-functions/printf.texi (printf): Likewise.
33599         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33600         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33601         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33602         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33603         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33604         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33605         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33606         Likewise.
33607         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33608         Likewise.
33609         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33610         this function.
33611         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33612         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33613         Likewise.
33614         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33615         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33616         * doc/posix-functions/confstr.texi (confstr): Likewise.
33617         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33618         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33619         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33620         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33621         * doc/posix-functions/fputws.texi (fputws): Likewise.
33622         * doc/posix-functions/fwide.texi (fwide): Likewise.
33623         * doc/posix-functions/getwc.texi (getwc): Likewise.
33624         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33625         * doc/posix-functions/putwc.texi (putwc): Likewise.
33626         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33627         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33628         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33629         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33630         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33631         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33632         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33633         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33634         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33635         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33636         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33637
33638 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33639
33640         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33641         * lib/ioctl.c: Include <sys/ioctl.h>.
33642
33643 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33644
33645         * modules/getdate-tests (Depends-on): Add progname.
33646         * tests/test-getdate.c: Use progname module, to avoid link errors
33647         on non-glibc systems.
33648
33649 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33650
33651         * modules/filenamecat-tests (Depends-on): Add progname.
33652         * modules/fstrcmp-tests (Depends-on): Likewise.
33653
33654         * tests/test-filenamecat.c: Use progname module, to avoid link
33655         errors on non-glibc systems.
33656         * tests/test-fstrcmp.c: Likewise.
33657
33658 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33659
33660         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33661         * lib/gettimeofday.c: Move extern declaration out of function.
33662
33663 2009-01-18  Bruno Haible  <bruno@clisp.org>
33664
33665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33666         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33667         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33668
33669 2009-01-18  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/strftime.c (MEMPCPY): Remove unused macro.
33672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33673
33674 2009-01-18  Martin Lambers  <marlam@marlam.de>
33675
33676         New module 'link'.
33677         * lib/unistd.in.h (link): New declaration.
33678         * lib/link.c: New file.
33679         * m4/link.m4: New file.
33680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33681         HAVE_LINK.
33682         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33683         * modules/link: New file.
33684         * doc/posix-functions/link.texi: Mention the new module.
33685
33686 2009-01-18  Bruno Haible  <bruno@clisp.org>
33687
33688         * tests/test-avltree_list.c (main): Call set_program_name.
33689         * tests/test-avltree_oset.c (main): Likewise.
33690         * tests/test-obstack-printf.c: Include progname.h.
33691         (main): Call set_program_name.
33692         * tests/test-quotearg.c: Include progname.h.
33693         (main): Call set_program_name.
33694         * tests/test-xmemdup0.c: Include progname.h.
33695         (main): Call set_program_name.
33696
33697 2009-01-18  Bruno Haible  <bruno@clisp.org>
33698
33699         New module 'alphasort'.
33700         * lib/dirent.in.h (alphasort): New declaration.
33701         * lib/alphasort.c: New file, from glibc with modifications.
33702         * m4/alphasort.m4: New file.
33703         * modules/alphasort: New file.
33704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33705         HAVE_ALPHASORT.
33706         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33707         HAVE_ALPHASORT.
33708         * doc/posix-functions/alphasort.texi: Mention the new module and the
33709         portability problems.
33710
33711 2009-01-18  Bruno Haible  <bruno@clisp.org>
33712
33713         New module 'scandir'.
33714         * lib/dirent.in.h (scandir): New declaration.
33715         * lib/scandir.c: New file, from glibc with modifications.
33716         * m4/scandir.m4: New file.
33717         * modules/scandir: New file.
33718         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33719         HAVE_SCANDIR.
33720         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33721         HAVE_SCANDIR.
33722         * doc/posix-functions/scandir.texi: Mention the new module and the
33723         portability problems.
33724
33725 2009-01-17  Bruno Haible  <bruno@clisp.org>
33726
33727         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33728         Update documentation.
33729         (func_remove_suffix): Escape all dots in the suffix. Update
33730         documentation.
33731         (func_filter_filelist): Update documentation.
33732         Reported by Ralf Wildenhues.
33733
33734 2009-01-17  Bruno Haible  <bruno@clisp.org>
33735
33736         * modules/dprintf-posix-tests: New file.
33737         * tests/test-dprintf-posix.sh: New file.
33738         * tests/test-dprintf-posix.c: New file.
33739
33740         New modules 'dprintf', 'dprintf-posix'.
33741         * lib/stdio.in.h (dprintf): New declaration.
33742         * lib/dprintf.c: New file.
33743         * m4/dprintf.m4: New file.
33744         * m4/dprintf-posix.m4: New file.
33745         * modules/dprintf: New file.
33746         * modules/dprintf-posix: New file.
33747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33748         HAVE_DPRINTF, REPLACE_DPRINTF.
33749         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33750         HAVE_DPRINTF, REPLACE_DPRINTF.
33751         * doc/posix-functions/dprintf.texi: Mention the new modules.
33752
33753 2009-01-17  Bruno Haible  <bruno@clisp.org>
33754
33755         * modules/vdprintf-posix-tests: New file.
33756         * tests/test-vdprintf-posix.sh: New file.
33757         * tests/test-vdprintf-posix.c: New file.
33758
33759         New modules 'vdprintf', 'vdprintf-posix'.
33760         * lib/stdio.in.h (vdprintf): New declaration.
33761         * lib/vdprintf.c: New file.
33762         * m4/vdprintf.m4: New file.
33763         * m4/vdprintf-posix.m4: New file.
33764         * modules/vdprintf: New file.
33765         * modules/vdprintf-posix: New file.
33766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33767         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33768         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33769         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33770         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33771
33772 2009-01-17  Bruno Haible  <bruno@clisp.org>
33773
33774         Fix replacement of fopen on mingw.
33775         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33776         mingw.
33777
33778 2009-01-17  Bruno Haible  <bruno@clisp.org>
33779
33780         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33781         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33782
33783 2009-01-17  Bruno Haible  <bruno@clisp.org>
33784
33785         Avoid test-fflush2.sh failure on mingw.
33786         * tests/test-fflush2.c: Include binary-io.h.
33787         (main): Put standard input into binary mode.
33788         * modules/fflush-tests (Depends-on): Add binary-io.
33789
33790 2009-01-17  Bruno Haible  <bruno@clisp.org>
33791
33792         * lib/wchar.in.h: In another particular situation, include only the
33793         system's <wchar.h> file.
33794         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33795         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33796         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33797
33798 2009-01-17  Bruno Haible  <bruno@clisp.org>
33799
33800         Support for stripping executables in --enable-relocatable.
33801         * build-aux/install-reloc: Expect one more argument, or an environment
33802         variable RELOC_STRIP_PROG. If set, strip the destination program and
33803         its wrapper.
33804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33805         RELOC_STRIP_PROG.
33806         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33807         to set RELOCATABLE_STRIP.
33808         * NEWS: Mention the new Makefile requirement.
33809
33810 2009-01-17  Bruno Haible  <bruno@clisp.org>
33811
33812         * build-aux/install-reloc: Remove debugging information left over by
33813         C compiler on MacOS X.
33814
33815 2009-01-17  Bruno Haible  <bruno@clisp.org>
33816
33817         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33818         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33819         _NSGetExecutablePath.
33820
33821 2009-01-16  Jim Meyering  <meyering@redhat.com>
33822
33823         strerror: avoid warnings about discarding "const"
33824         * lib/strerror.c (rpl_strerror): Instead of returning a const
33825         string from each and every "case", use a variable, and add a single
33826         cast after the switch.
33827
33828 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33829
33830         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33831
33832 2009-01-16  Bruno Haible  <bruno@clisp.org>
33833
33834         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33835         array initializer syntax that also works in C++ mode.
33836         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33837
33838 2009-01-16  Jim Meyering  <meyering@redhat.com>
33839
33840         poll: suppress a warning
33841         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33842         to ignore "...unsigned expression < 0 is always false" warnings.
33843
33844 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33845
33846         poll: remove declarations of unused variables
33847         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33848         sockbuf and optlen.
33849
33850 2009-01-15  Bruno Haible  <bruno@clisp.org>
33851
33852         Make fflush-after-ungetc POSIX compliant on BSD systems.
33853         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33854         (clear_ungetc_buffer): Implement also for other systems.
33855         (rpl_fflush): On glibc systems, invoke
33856         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33857         clear_ungetc_buffer after fetching the stream's position, not before.
33858
33859 2009-01-15  Bruno Haible  <bruno@clisp.org>
33860
33861         Make fflush-after-ungetc POSIX compliant on glibc systems.
33862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33863         after ungetc.
33864         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33865         (rpl_fflush): On glibc systems, simply call the system's fflush
33866         function after clearing the ungetc buffer.
33867         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33868         Instead, lseek only to the end of file, then use the system's fseeko
33869         for the rest. On glibc systems, reset the EOF indicator bit.
33870
33871 2009-01-15  Jim Meyering  <meyering@redhat.com>
33872
33873         openmp.m4: revert quote-adding change, for portability to older autoconf
33874         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33875         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33876         Simon Josefsson noticed the problem when using autoconf-2.61.
33877
33878 2009-01-15  Bruno Haible  <bruno@clisp.org>
33879
33880         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33881         * tests/test-fflush2.c (ASSERT): Always fail.
33882         (main): Add two tests for fflush() after ungetc(), taking into account
33883         the Austin Group's clarification.
33884         Suggested by Eric Blake.
33885
33886 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33887
33888         mktime.m4: remove K&R-style function prototypes
33889         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33890         for the Sun C++ compiler.
33891
33892 2009-01-14  Bruno Haible  <bruno@clisp.org>
33893
33894         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33895         while including <wchar.h>.
33896         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33897         the system's <wchar.h> file.
33898         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33899
33900 2009-01-14  Bruno Haible  <bruno@clisp.org>
33901
33902         * m4/csharp.m4: Don't mention gettext on the serial number line.
33903         * m4/csharpexec.m4: Likewise.
33904         * m4/eaccess.m4: Likewise.
33905         * m4/javaexec.m4: Likewise.
33906         * m4/sig_atomic_t.m4: Likewise.
33907         * m4/tmpdir.m4: Likewise.
33908         * m4/intldir.m4: Bump gettext version.
33909         * m4/lib-ld.m4: Likewise.
33910
33911 2009-01-14  Bruno Haible  <bruno@clisp.org>
33912
33913         * lib/progname.c (set_program_name): Add more comments.
33914         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33915
33916 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33917
33918         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33919         were sys/stat.h does not define it.
33920
33921 2009-01-14  Jim Meyering  <meyering@redhat.com>
33922
33923         many *.m4 files: improve m4 quoting
33924         99% of this change was performed by running the following commands:
33925         git ls-files | grep '\.m4$' | xargs perl -pi \
33926           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33927           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33928           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33929           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33930         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33931         The remainder were to add Copyright dates, increment serial numbers,
33932         undo some changes in comments, exclude m4/intl.m4, and add quotes
33933         around the "1" in ",1" where the unusual spacing prohibited the
33934         above regexps from doing the job.  For more details, see
33935         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33936         * m4/acl.m4: Modified.
33937         * m4/afs.m4: Likewise.
33938         * m4/alloca.m4: Likewise.
33939         * m4/argp.m4: Likewise.
33940         * m4/argz.m4: Likewise.
33941         * m4/atexit.m4: Likewise.
33942         * m4/bison-i18n.m4: Likewise.
33943         * m4/bison.m4: Likewise.
33944         * m4/byteswap.m4: Likewise.
33945         * m4/c-stack.m4: Likewise.
33946         * m4/c-strtod.m4: Likewise.
33947         * m4/calloc.m4: Likewise.
33948         * m4/canonicalize-lgpl.m4: Likewise.
33949         * m4/chown.m4: Likewise.
33950         * m4/clock_time.m4: Likewise.
33951         * m4/codeset.m4: Likewise.
33952         * m4/copy-file.m4: Likewise.
33953         * m4/csharp.m4: Likewise.
33954         * m4/csharpcomp.m4: Likewise.
33955         * m4/csharpexec.m4: Likewise.
33956         * m4/d-ino.m4: Likewise.
33957         * m4/d-type.m4: Likewise.
33958         * m4/dirfd.m4: Likewise.
33959         * m4/double-slash-root.m4: Likewise.
33960         * m4/eaccess.m4: Likewise.
33961         * m4/eealloc.m4: Likewise.
33962         * m4/environ.m4: Likewise.
33963         * m4/errno_h.m4: Likewise.
33964         * m4/euidaccess.m4: Likewise.
33965         * m4/execute.m4: Likewise.
33966         * m4/fatal-signal.m4: Likewise.
33967         * m4/fchdir.m4: Likewise.
33968         * m4/fcntl_h.m4: Likewise.
33969         * m4/fileblocks.m4: Likewise.
33970         * m4/filenamecat.m4: Likewise.
33971         * m4/findprog.m4: Likewise.
33972         * m4/flexmember.m4: Likewise.
33973         * m4/fnmatch.m4: Likewise.
33974         * m4/fopen.m4: Likewise.
33975         * m4/fpending.m4: Likewise.
33976         * m4/fprintf-posix.m4: Likewise.
33977         * m4/free.m4: Likewise.
33978         * m4/frexp.m4: Likewise.
33979         * m4/frexpl.m4: Likewise.
33980         * m4/fsusage.m4: Likewise.
33981         * m4/ftruncate.m4: Likewise.
33982         * m4/gc-camellia.m4: Likewise.
33983         * m4/gc-random.m4: Likewise.
33984         * m4/gc.m4: Likewise.
33985         * m4/getaddrinfo.m4: Likewise.
33986         * m4/getcwd-abort-bug.m4: Likewise.
33987         * m4/getcwd-path-max.m4: Likewise.
33988         * m4/getdate.m4: Likewise.
33989         * m4/getdomainname.m4: Likewise.
33990         * m4/getgroups.m4: Likewise.
33991         * m4/gethostname.m4: Likewise.
33992         * m4/gethrxtime.m4: Likewise.
33993         * m4/getline.m4: Likewise.
33994         * m4/getloadavg.m4: Likewise.
33995         * m4/getndelim2.m4: Likewise.
33996         * m4/getpass.m4: Likewise.
33997         * m4/gettext.m4: Likewise.
33998         * m4/gettime.m4: Likewise.
33999         * m4/gettimeofday.m4: Likewise.
34000         * m4/gnulib-common.m4: Likewise.
34001         * m4/group-member.m4: Likewise.
34002         * m4/host-os.m4: Likewise.
34003         * m4/iconv.m4: Likewise.
34004         * m4/iconv_open.m4: Likewise.
34005         * m4/inet_ntop.m4: Likewise.
34006         * m4/inet_pton.m4: Likewise.
34007         * m4/inline.m4: Likewise.
34008         * m4/intldir.m4: Likewise.
34009         * m4/intlmacosx.m4: Likewise.
34010         * m4/intmax.m4: Likewise.
34011         * m4/intmax_t.m4: Likewise.
34012         * m4/inttypes.m4: Likewise.
34013         * m4/inttypes_h.m4: Likewise.
34014         * m4/inttypes-pri.m4: Likewise.
34015         * m4/isapipe.m4: Likewise.
34016         * m4/isnand.m4: Likewise.
34017         * m4/isnanf.m4: Likewise.
34018         * m4/isnanl.m4: Likewise.
34019         * m4/javacomp.m4: Likewise.
34020         * m4/javaexec.m4: Likewise.
34021         * m4/jm-winsz1.m4: Likewise.
34022         * m4/jm-winsz2.m4: Likewise.
34023         * m4/lchown.m4: Likewise.
34024         * m4/lcmessage.m4: Likewise.
34025         * m4/ldexpl.m4: Likewise.
34026         * m4/lib-ld.m4: Likewise.
34027         * m4/lib-link.m4: Likewise.
34028         * m4/libsigsegv.m4: Likewise.
34029         * m4/link-follow.m4: Likewise.
34030         * m4/localcharset.m4: Likewise.
34031         * m4/locale-fr.m4: Likewise.
34032         * m4/locale-ja.m4: Likewise.
34033         * m4/locale-tr.m4: Likewise.
34034         * m4/locale-zh.m4: Likewise.
34035         * m4/lock.m4: Likewise.
34036         * m4/longlong.m4: Likewise.
34037         * m4/ls-mntd-fs.m4: Likewise.
34038         * m4/lstat.m4: Likewise.
34039         * m4/malloc.m4: Likewise.
34040         * m4/mathl.m4: Likewise.
34041         * m4/mbrtowc.m4: Likewise.
34042         * m4/mbstate_t.m4: Likewise.
34043         * m4/mbswidth.m4: Likewise.
34044         * m4/memchr.m4: Likewise.
34045         * m4/memcmp.m4: Likewise.
34046         * m4/memcpy.m4: Likewise.
34047         * m4/memmem.m4: Likewise.
34048         * m4/memmove.m4: Likewise.
34049         * m4/mempcpy.m4: Likewise.
34050         * m4/memrchr.m4: Likewise.
34051         * m4/memset.m4: Likewise.
34052         * m4/minmax.m4: Likewise.
34053         * m4/mkdir-slash.m4: Likewise.
34054         * m4/mkdtemp.m4: Likewise.
34055         * m4/mktime.m4: Likewise.
34056         * m4/mmap-anon.m4: Likewise.
34057         * m4/mountlist.m4: Likewise.
34058         * m4/nanosleep.m4: Likewise.
34059         * m4/nls.m4: Likewise.
34060         * m4/nocrash.m4: Likewise.
34061         * m4/open.m4: Likewise.
34062         * m4/openat.m4: Likewise.
34063         * m4/openmp.m4: Likewise.
34064         * m4/pathmax.m4: Likewise.
34065         * m4/perl.m4: Likewise.
34066         * m4/physmem.m4: Likewise.
34067         * m4/pipe.m4: Likewise.
34068         * m4/po.m4: Likewise.
34069         * m4/poll.m4: Likewise.
34070         * m4/posixtm.m4: Likewise.
34071         * m4/posixver.m4: Likewise.
34072         * m4/printf-frexp.m4: Likewise.
34073         * m4/printf-frexpl.m4: Likewise.
34074         * m4/printf-posix.m4: Likewise.
34075         * m4/printf-posix-rpl.m4: Likewise.
34076         * m4/printf.m4: Likewise.
34077         * m4/progtest.m4: Likewise.
34078         * m4/putenv.m4: Likewise.
34079         * m4/readline.m4: Likewise.
34080         * m4/readlink.m4: Likewise.
34081         * m4/readutmp.m4: Likewise.
34082         * m4/realloc.m4: Likewise.
34083         * m4/regex.m4: Likewise.
34084         * m4/relocatable.m4: Likewise.
34085         * m4/relocatable-lib.m4: Likewise.
34086         * m4/rename-dest-slash.m4: Likewise.
34087         * m4/rename.m4: Likewise.
34088         * m4/rmdir-errno.m4: Likewise.
34089         * m4/rmdir.m4: Likewise.
34090         * m4/roundf.m4: Likewise.
34091         * m4/roundl.m4: Likewise.
34092         * m4/rpmatch.m4: Likewise.
34093         * m4/save-cwd.m4: Likewise.
34094         * m4/selinux-selinux-h.m4: Likewise.
34095         * m4/setenv.m4: Likewise.
34096         * m4/settime.m4: Likewise.
34097         * m4/sig2str.m4: Likewise.
34098         * m4/sig_atomic_t.m4: Likewise.
34099         * m4/signalblocking.m4: Likewise.
34100         * m4/signbit.m4: Likewise.
34101         * m4/sigpipe.m4: Likewise.
34102         * m4/sockets.m4: Likewise.
34103         * m4/sockpfaf.m4: Likewise.
34104         * m4/st_dm_mode.m4: Likewise.
34105         * m4/stat-time.m4: Likewise.
34106         * m4/stdbool.m4: Likewise.
34107         * m4/stdint.m4: Likewise.
34108         * m4/stdint_h.m4: Likewise.
34109         * m4/stpcpy.m4: Likewise.
34110         * m4/stpncpy.m4: Likewise.
34111         * m4/strcase.m4: Likewise.
34112         * m4/strchrnul.m4: Likewise.
34113         * m4/strcspn.m4: Likewise.
34114         * m4/strdup.m4: Likewise.
34115         * m4/strftime.m4: Likewise.
34116         * m4/strndup.m4: Likewise.
34117         * m4/strnlen.m4: Likewise.
34118         * m4/strpbrk.m4: Likewise.
34119         * m4/strptime.m4: Likewise.
34120         * m4/strsep.m4: Likewise.
34121         * m4/strtod.m4: Likewise.
34122         * m4/strtoimax.m4: Likewise.
34123         * m4/strtok_r.m4: Likewise.
34124         * m4/strtol.m4: Likewise.
34125         * m4/strtoll.m4: Likewise.
34126         * m4/strtoul.m4: Likewise.
34127         * m4/strtoull.m4: Likewise.
34128         * m4/strtoumax.m4: Likewise.
34129         * m4/strverscmp.m4: Likewise.
34130         * m4/threadlib.m4: Likewise.
34131         * m4/timegm.m4: Likewise.
34132         * m4/tm_gmtoff.m4: Likewise.
34133         * m4/tmpdir.m4: Likewise.
34134         * m4/tmpfile.m4: Likewise.
34135         * m4/tzset.m4: Likewise.
34136         * m4/uintmax_t.m4: Likewise.
34137         * m4/unlinkdir.m4: Likewise.
34138         * m4/unlocked-io.m4: Likewise.
34139         * m4/uptime.m4: Likewise.
34140         * m4/userspec.m4: Likewise.
34141         * m4/utimbuf.m4: Likewise.
34142         * m4/utime.m4: Likewise.
34143         * m4/utimes-null.m4: Likewise.
34144         * m4/utimes.m4: Likewise.
34145         * m4/vararrays.m4: Likewise.
34146         * m4/vasnprintf.m4: Likewise.
34147         * m4/vfprintf-posix.m4: Likewise.
34148         * m4/vprintf-posix.m4: Likewise.
34149         * m4/wait-process.m4: Likewise.
34150         * m4/wchar_t.m4: Likewise.
34151         * m4/wint_t.m4: Likewise.
34152         * m4/write-any-file.m4: Likewise.
34153         * m4/yield.m4: Likewise.
34154
34155 2009-01-13  Bruno Haible  <bruno@clisp.org>
34156
34157         Avoid test-copy-file.sh failures when ACL support insufficient.
34158         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
34159         TESTS_ENVIRONMENT.
34160         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
34161         Reported by Jim Meyering.
34162
34163 2009-01-13  Bruno Haible  <bruno@clisp.org>
34164
34165         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
34166         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
34167         * modules/unistdio/u8-printf-parse (Files): Likewise.
34168         * modules/unistdio/u32-printf-parse (Files): Likewise.
34169         * modules/unistdio/ulc-printf-parse (Files): Likewise.
34170
34171 2009-01-13  Simon Josefsson  <simon@josefsson.org>
34172
34173         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
34174         and m4/inttypes_h.m4 too.
34175
34176 2009-01-12  Eric Blake  <ebb9@byu.net>
34177
34178         tests: IRIX 6.2 cc can't compile -0.0 into .data
34179         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
34180         rather than at compile-time.
34181         * tests/test-floorl.c (minus_zero): Likewise.
34182         * tests/test-frexpl.c (minus_zero): Likewise.
34183         * tests/test-isnan.c (minus_zerol): Likewise.
34184         * tests/test-isnanl.h (minus_zero): Likewise.
34185         * tests/test-ldexpl.c (minus_zero): Likewise.
34186         * tests/test-roundl.c (minus_zero): Likewise.
34187         * tests/test-signbit.c (minus_zerol): Likewise.
34188         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34189         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34190         * tests/test-truncl.c (minus_zero): Likewise.
34191         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34192         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34193         Reported by Tom G. Christensen and Nelson H. F. Beebe.
34194
34195 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34196
34197         regex: fix glibc bug 9697
34198         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
34199         handling.
34200
34201 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34202
34203         regex: fix glibc bug 697
34204         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
34205         being NULL also if there are no backreferences.
34206
34207 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
34208
34209         regex: merge glibc changes
34210         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
34211         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
34212         re_string_skip_chars, re_string_reconstruct): Likewise.
34213         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
34214
34215 2009-01-07  Jim Meyering  <meyering@redhat.com>
34216
34217         poll: filter through cppi
34218         * lib/poll.c: Indent cpp directives to reflect nesting.
34219
34220 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
34221
34222         poll: don't return uninitialized
34223         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
34224
34225 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
34226
34227         avoid compile failure on AIX 6.1
34228         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
34229         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
34230
34231 2009-01-04  Jim Meyering  <meyering@redhat.com>
34232
34233         remove duplicate inclusion of <stdio.h>
34234         * tests/test-fprintf-posix.c: Likewise.
34235         * tests/test-printf-posix.c: Likewise.
34236         * tests/test-snprintf-posix.c: Likewise.
34237         * tests/test-sprintf-posix.c: Likewise.
34238         * tests/test-vasprintf-posix.c: Likewise.
34239         * tests/test-vfprintf-posix.c: Likewise.
34240         * tests/test-vprintf-posix.c: Likewise.
34241         * tests/test-vsnprintf-posix.c: Likewise.
34242         * tests/test-vsprintf-posix.c: Likewise.
34243
34244 2009-01-03  Jim Meyering  <meyering@redhat.com>
34245
34246         gnulib-tool: fix sed-based filtering
34247         * gnulib-tool (func_filter_filelist): Remove extra backslash
34248         in sed_fff_filter definition.
34249
34250 2009-01-02  Jim Meyering  <meyering@redhat.com>
34251
34252         strftime: avoid compilation failure on Solaris 2.6
34253         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
34254         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
34255         Don't #define mbrlen or mbsinit, since now they're guaranteed to
34256         be available.  Reported by Tom G. Christensen.  Details in
34257         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
34258
34259 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34260             Bruno Haible  <bruno@clisp.org>
34261
34262         Speed up gnulib-tool by doing more string processing through shell
34263         built-ins.
34264         * gnulib-tool (fast_func_append): New variable.
34265         (func_remove_prefix, func_remove_suffix): New functions.
34266         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
34267         (func_filter_filelist): New function.
34268         (func_get_dependencies): Use func_remove_suffix instead of sed.
34269         (func_get_automake_snippet): Use func_filter_filelist instead of a
34270         subshell and sed invocation.
34271
34272 2009-01-01  Bruno Haible  <bruno@clisp.org>
34273
34274         Fix a security bug.
34275         * gnulib-tool (func_import, import, update): Don't allow the characters
34276         '"', '$', '`', '\' in macro arguments that become part of commands that
34277         are evaluated.
34278
34279 2009-01-01  Bruno Haible  <bruno@clisp.org>
34280
34281         * gnulib-tool (func_reset_sigpipe): Add more comments.
34282
34283 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34284
34285         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
34286         func_emit_tests_Makefile_am, func_import): Abort loops early if we
34287         already know the answer.
34288
34289 2009-01-01  Jim Meyering  <meyering@redhat.com>
34290
34291         * lib/version-etc.c (version_etc_va): Update copyright year.
34292
34293 2008-12-30  Bruno Haible  <bruno@clisp.org>
34294
34295         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
34296         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
34297         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
34298
34299 2008-12-29  Eric Blake  <ebb9@byu.net>
34300
34301         multiarch: avoid autoconf AC_REQUIRE bug
34302         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
34303         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
34304         2.63 and older.
34305         Reported by Bruno Haible, and analyzed in
34306         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
34307
34308 2008-12-29  Bruno Haible  <bruno@clisp.org>
34309
34310         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
34311         files in subdirectories correctly.
34312         Reported by Ralf Wildenhues.
34313
34314 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34315
34316         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
34317         rather than 'join FILE -', for Solaris join.
34318
34319 2008-12-29  Bruno Haible  <bruno@clisp.org>
34320
34321         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
34322         quoting.
34323         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34324         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
34325         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
34326         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
34327         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
34328         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
34329         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
34330         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34331         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34332         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34333         * m4/nls.m4 (AM_NLS): Likewise.
34334         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34335         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34337         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34338         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34339         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34340         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34341         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34342         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34343         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34344         * m4/xsize.m4 (gl_XSIZE): Likewise.
34345         Suggested by Jim Meyering.
34346
34347 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34348
34349         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34350         * lib/parse-duration.c: use a switch instead of cascading if's.
34351
34352 2008-12-29  Eric Blake  <ebb9@byu.net>
34353
34354         wchar.h: supply WEOF on Irix 5.3
34355         * lib/wchar.in.h (wint_t): Also supply WEOF.
34356         * lib/wctype.in.h (wint_t): Likewise.
34357         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34358         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34359         Reported by Tom G. Christensen.
34360
34361 2008-12-26  Bruno Haible  <bruno@clisp.org>
34362
34363         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34364         i486, i586, i686.
34365
34366 2008-12-26  Bruno Haible  <bruno@clisp.org>
34367
34368         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34369
34370 2008-12-26  Bruno Haible  <bruno@clisp.org>
34371
34372         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34373         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34374         not __STDC_CONSTANT_MACROS.
34375         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34376
34377 2008-12-25  Bruno Haible  <bruno@clisp.org>
34378
34379         Add support for universal builds to vasnprintf.
34380         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34381         universal builds, guess no.
34382         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34383         * modules/vasprintf-posix (Depends-on): Likewise.
34384         * modules/fprintf-posix (Depends-on): Likewise.
34385         * modules/vfprintf-posix (Depends-on): Likewise.
34386         * modules/snprintf-posix (Depends-on): Likewise.
34387         * modules/vsnprintf-posix (Depends-on): Likewise.
34388         * modules/sprintf-posix (Depends-on): Likewise.
34389         * modules/vsprintf-posix (Depends-on): Likewise.
34390         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34391         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34392         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34393         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34394         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34395         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34396         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34397
34398         Add support for universal builds to <inttypes.h>.
34399         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34400         _SCNu64_PREFIX): In Apple
34401         universal builds, define directly, using _LP64.
34402         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34403         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34404         * modules/inttypes (Depends-on): Add multiarch.
34405         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34406
34407         Add support for universal builds to <stdint.h>.
34408         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34409         universal builds, define directly, using _LP64.
34410         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34411         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34412         and size_t.
34413         * modules/stdint (Depends-on): Add multiarch.
34414         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34415
34416         New module 'multiarch'.
34417         * modules/multiarch: New file.
34418         * m4/multiarch.m4: New file.
34419
34420 2008-12-25  Bruno Haible  <bruno@clisp.org>
34421
34422         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34423
34424 2008-12-25  Bruno Haible  <bruno@clisp.org>
34425
34426         * modules/btowc (License): Relicense under LGPLv2+.
34427         * modules/mbsinit (License): Likewise.
34428         * modules/mbrtowc (License): Likewise.
34429         * modules/wcrtomb (License): Likewise.
34430         * modules/streq (License): Likewise.
34431         Reported by David Lutterkort <lutter@redhat.com>.
34432
34433 2008-12-23  Bruno Haible  <bruno@clisp.org>
34434
34435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34436
34437 2008-12-23  Bruno Haible  <bruno@clisp.org>
34438
34439         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34441         GETADDRINFO_LIB, not in LIBS.
34442         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34443         * modules/canon-host (Link): Likewise.
34444         * NEWS: Mention the change.
34445         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34446         GETADDRINFO_LIB.
34447
34448 2008-12-22  Bruno Haible  <bruno@clisp.org>
34449
34450         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34451         * doc/posix-functions/iswalpha_l.texi: Likewise.
34452         * doc/posix-functions/iswblank_l.texi: Likewise.
34453         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34454         * doc/posix-functions/iswctype_l.texi: Likewise.
34455         * doc/posix-functions/iswdigit_l.texi: Likewise.
34456         * doc/posix-functions/iswgraph_l.texi: Likewise.
34457         * doc/posix-functions/iswlower_l.texi: Likewise.
34458         * doc/posix-functions/iswprint_l.texi: Likewise.
34459         * doc/posix-functions/iswpunct_l.texi: Likewise.
34460         * doc/posix-functions/iswspace_l.texi: Likewise.
34461         * doc/posix-functions/iswupper_l.texi: Likewise.
34462         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34463         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34464         * doc/posix-functions/open_wmemstream.texi: Likewise.
34465         * doc/posix-functions/swscanf.texi: Likewise.
34466         * doc/posix-functions/towctrans_l.texi: Likewise.
34467         * doc/posix-functions/towlower.texi: Likewise.
34468         * doc/posix-functions/towlower_l.texi: Likewise.
34469         * doc/posix-functions/towupper.texi: Likewise.
34470         * doc/posix-functions/towupper_l.texi: Likewise.
34471         * doc/posix-functions/vfwprintf.texi: Likewise.
34472         * doc/posix-functions/vfwscanf.texi: Likewise.
34473         * doc/posix-functions/vswscanf.texi: Likewise.
34474         * doc/posix-functions/vwprintf.texi: Likewise.
34475         * doc/posix-functions/vwscanf.texi: Likewise.
34476         * doc/posix-functions/wcpcpy.texi: Likewise.
34477         * doc/posix-functions/wcpncpy.texi: Likewise.
34478         * doc/posix-functions/wcscasecmp.texi: Likewise.
34479         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34480         * doc/posix-functions/wcscoll_l.texi: Likewise.
34481         * doc/posix-functions/wcsdup.texi: Likewise.
34482         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34483         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34484         * doc/posix-functions/wcsnlen.texi: Likewise.
34485         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34486         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34487         * doc/posix-functions/wctrans_l.texi: Likewise.
34488         * doc/posix-functions/wctype_l.texi: Likewise.
34489         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34490         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34491         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34492         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34493         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34494         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34495         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34496         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34497         * doc/glibc-functions/wcschrnul.texi: Likewise.
34498         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34499         * doc/glibc-functions/wcstod_l.texi: Likewise.
34500         * doc/glibc-functions/wcstof_l.texi: Likewise.
34501         * doc/glibc-functions/wcstol_l.texi: Likewise.
34502         * doc/glibc-functions/wcstold_l.texi: Likewise.
34503         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34504         * doc/glibc-functions/wcstoq.texi: Likewise.
34505         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34506         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34507         * doc/glibc-functions/wcstouq.texi: Likewise.
34508         * doc/glibc-functions/wmempcpy.texi: Likewise.
34509
34510 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34511             Eric Blake  <ebb9@byu.net>
34512             Paolo Bonzini  <bonzini@gnu.org>
34513             Bruno Haible  <bruno@clisp.org>
34514
34515         Make c-stack work on Haiku.
34516         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34517         (c_stack_action): Use SA_ONSTACK flag.
34518
34519 2008-12-22  Bruno Haible  <bruno@clisp.org>
34520
34521         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34522
34523 2008-12-22  Bruno Haible  <bruno@clisp.org>
34524
34525         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34526         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34527         being overridden.
34528         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34529         New macros.
34530         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34531         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34532         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34533         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34534
34535 2008-12-22  Bruno Haible  <bruno@clisp.org>
34536
34537         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34538         from test code.
34539
34540 2008-12-22  Eric Blake  <ebb9@byu.net>
34541
34542         Avoid gcc warnings on cygwin.
34543         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34544         Avoid unused variable.
34545         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34546         Likewise.
34547
34548 2008-12-22  Bruno Haible  <bruno@clisp.org>
34549
34550         Remove HAVE_MBRTOWC conditionals.
34551         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34552         (mbscasecmp): Assume mbrtowc function.
34553         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34554         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34555         * lib/mbschr.c: Include mbuiter.h unconditionally.
34556         (mbschr): Assume mbrtowc function.
34557         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34558         (mbscspn): Assume mbrtowc function.
34559         * lib/mbslen.c: Include mbuiter.h unconditionally.
34560         (mbslen): Assume mbrtowc function.
34561         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34562         (mbsncasecmp): Assume mbrtowc function.
34563         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34564         (mbsnlen): Assume mbrtowc function.
34565         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34566         (mbspbrk): Assume mbrtowc function.
34567         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34568         (mbspcasecmp): Assume mbrtowc function.
34569         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34570         (mbsrchr): Assume mbrtowc function.
34571         * lib/mbssep.c: Include mbuiter.h unconditionally.
34572         (mbssep): Assume mbrtowc function.
34573         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34574         (mbsspn): Assume mbrtowc function.
34575         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34576         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34577         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34578         (mbstok_r): Assume mbrtowc function.
34579         * lib/propername.c: Include mbuiter.h unconditionally.
34580         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34581         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34582         (trim2): Assume mbrtowc function.
34583         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34584         (mbsnwidth): Assume mbrtowc function.
34585         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34586         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34587         fallback definitions.
34588         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34589
34590 2008-12-22  Bruno Haible  <bruno@clisp.org>
34591
34592         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34593
34594 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34595
34596         * modules/regex: Request emulations for the mb*/wc* functions we need.
34597         * m4/regex.m4: Don't look for those functions here.
34598         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34599
34600 2008-12-22  Bruno Haible  <bruno@clisp.org>
34601
34602         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34603
34604 2008-12-21  Bruno Haible  <bruno@clisp.org>
34605
34606         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34607         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34608         (Include): Remove conditionalization.
34609         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34610         (Include): Remove conditionalization.
34611         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34612         (Include): Remove conditionalization.
34613         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34614         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34615         * NEWS: Mention the change.
34616         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34617         via Sergey Poznyakoff <gray@gnu.org.ua>.
34618
34619 2008-12-21  Bruno Haible  <bruno@clisp.org>
34620
34621         * MODULES.html.sh (Extended multibyte and wide character utilities
34622         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34623         wcrtomb, wcsrtombs.
34624         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34625         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34626         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34627         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34628
34629 2008-12-21  Bruno Haible  <bruno@clisp.org>
34630
34631         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34632
34633 2008-12-21  Bruno Haible  <bruno@clisp.org>
34634
34635         * modules/wcsnrtombs-tests: New file.
34636         * tests/test-wcsnrtombs1.sh: New file.
34637         * tests/test-wcsnrtombs2.sh: New file.
34638         * tests/test-wcsnrtombs3.sh: New file.
34639         * tests/test-wcsnrtombs4.sh: New file.
34640         * tests/test-wcsnrtombs.c: New file.
34641
34642         New module 'wcsnrtombs'.
34643         * lib/wchar.in.h (wcsnrtombs): New declaration.
34644         * lib/wcsnrtombs.c: New file.
34645         * lib/wcsrtombs-state.c: New file.
34646         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34647         (internal_state): Remove variable.
34648         * m4/wcsnrtombs.m4: New file.
34649         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34650         compilation units.
34651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34652         HAVE_WCSNRTOMBS.
34653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34654         HAVE_WCSNRTOMBS.
34655         * modules/wcsnrtombs: New file.
34656         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34657         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34658
34659 2008-12-21  Bruno Haible  <bruno@clisp.org>
34660
34661         * modules/wcsrtombs-tests: New file.
34662         * tests/test-wcsrtombs1.sh: New file.
34663         * tests/test-wcsrtombs2.sh: New file.
34664         * tests/test-wcsrtombs3.sh: New file.
34665         * tests/test-wcsrtombs4.sh: New file.
34666         * tests/test-wcsrtombs.c: New file.
34667
34668         New module 'wcsrtombs'.
34669         * lib/wchar.in.h (wcsrtombs): New declaration.
34670         * lib/wcsrtombs.c: New file.
34671         * m4/wcsrtombs.m4: New file.
34672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34673         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34675         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34676         * modules/wcsrtombs: New file.
34677         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34678         bugs.
34679
34680 2008-12-21  Bruno Haible  <bruno@clisp.org>
34681
34682         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34683         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34684         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34685         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34686         if not correct.
34687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34688         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34689         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34690         m4/locale-zh.m4, m4/codeset.m4.
34691         * doc/posix-functions/wcrtomb.texi: Document the bug.
34692
34693 2008-12-21  Bruno Haible  <bruno@clisp.org>
34694
34695         Work around a btowc() bug on IRIX 6.5.
34696         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34697         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34698         REPLACE_WTOBC if not.
34699         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34700         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34701         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34702
34703 2008-12-21  Bruno Haible  <bruno@clisp.org>
34704
34705         * modules/wcrtomb-tests: New file.
34706         * tests/test-wcrtomb.sh: New file.
34707         * tests/test-wcrtomb.c: New file.
34708
34709         New module 'wcrtomb'.
34710         * lib/wchar.in.h (wcrtomb): New declaration.
34711         * lib/wcrtomb.c: New file.
34712         * m4/wcrtomb.m4: New file.
34713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34714         HAVE_WCRTOMB.
34715         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34716         HAVE_WCRTOMB.
34717         * modules/wcrtomb: New file.
34718         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34719
34720 2008-12-21  Bruno Haible  <bruno@clisp.org>
34721
34722         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34723         * modules/mbsrtowcs (Files): Likewise.
34724         * modules/wctob (Files): Likewise.
34725         * modules/c-strcase-tests (Files): Likewise.
34726         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34727         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34728         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34729         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34730         * modules/vasnprintf-posix-tests (Files): Likewise.
34731
34732 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34733
34734         gitlog-to-changelog: pass all command-line arguments to git-log
34735         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34736         it is sometimes convenient to filter the commits in various ways.
34737         gitlog-to-changelog only allows --since to specify a start date,
34738         but git-log itself supports many other filtering mechanisms.
34739         At the moment, I want to filter by branch name.  Rather than
34740         adding a --branch option to gitlog-to-changelog, it seems more
34741         flexible to simply pass all options directly to git-log and let
34742         git do the work.  Notice that this effectively makes --since a
34743         redundant option for gitlog-to-changelog, but removing it would
34744         require current usage to change since calls would then require
34745         an additional '--'.
34746
34747 2008-12-21  Bruno Haible  <bruno@clisp.org>
34748
34749         * modules/mbsnrtowcs-tests: New file.
34750         * tests/test-mbsnrtowcs1.sh: New file.
34751         * tests/test-mbsnrtowcs2.sh: New file.
34752         * tests/test-mbsnrtowcs3.sh: New file.
34753         * tests/test-mbsnrtowcs4.sh: New file.
34754         * tests/test-mbsnrtowcs.c: New file.
34755
34756         New module 'mbsnrtowcs'.
34757         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34758         * lib/mbsnrtowcs.c: New file.
34759         * lib/mbsrtowcs-state.c: New file.
34760         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34761         (internal_state): Remove variable.
34762         * m4/mbsnrtowcs.m4: New file.
34763         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34764         compilation units.
34765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34766         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34767         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34768         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34769         * modules/mbsnrtowcs: New file.
34770         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34771         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34772         portability problem.
34773
34774 2008-12-21  Bruno Haible  <bruno@clisp.org>
34775
34776         Work around mbsrtowcs bug.
34777         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34778         (gl_FUNC_MBSRTOWCS): Invoke it.
34779         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34780         m4/locale-zh.m4.
34781         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34782
34783 2008-12-21  Bruno Haible  <bruno@clisp.org>
34784
34785         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34786
34787 2008-12-21  Bruno Haible  <bruno@clisp.org>
34788
34789         Update doc for AIX.
34790         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34791         16-bit wchar_t type.
34792         * doc/posix-functions/btowc.texi: Likewise.
34793         * doc/posix-functions/fgetwc.texi: Likewise.
34794         * doc/posix-functions/fgetws.texi: Likewise.
34795         * doc/posix-functions/fputwc.texi: Likewise.
34796         * doc/posix-functions/fputws.texi: Likewise.
34797         * doc/posix-functions/fwide.texi: Likewise.
34798         * doc/posix-functions/fwprintf.texi: Likewise.
34799         * doc/posix-functions/fwscanf.texi: Likewise.
34800         * doc/posix-functions/getwchar.texi: Likewise.
34801         * doc/posix-functions/getwc.texi: Likewise.
34802         * doc/posix-functions/iswalnum.texi: Likewise.
34803         * doc/posix-functions/iswalpha.texi: Likewise.
34804         * doc/posix-functions/iswblank.texi: Likewise.
34805         * doc/posix-functions/iswcntrl.texi: Likewise.
34806         * doc/posix-functions/iswctype.texi: Likewise.
34807         * doc/posix-functions/iswdigit.texi: Likewise.
34808         * doc/posix-functions/iswgraph.texi: Likewise.
34809         * doc/posix-functions/iswlower.texi: Likewise.
34810         * doc/posix-functions/iswprint.texi: Likewise.
34811         * doc/posix-functions/iswpunct.texi: Likewise.
34812         * doc/posix-functions/iswspace.texi: Likewise.
34813         * doc/posix-functions/iswupper.texi: Likewise.
34814         * doc/posix-functions/iswxdigit.texi: Likewise.
34815         * doc/posix-functions/mbrtowc.texi: Likewise.
34816         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34817         * doc/posix-functions/mbstowcs.texi: Likewise.
34818         * doc/posix-functions/mbtowc.texi: Likewise.
34819         * doc/posix-functions/putwchar.texi: Likewise.
34820         * doc/posix-functions/putwc.texi: Likewise.
34821         * doc/posix-functions/swprintf.texi: Likewise.
34822         * doc/posix-functions/tolower.texi: Likewise.
34823         * doc/posix-functions/toupper.texi: Likewise.
34824         * doc/posix-functions/towctrans.texi: Likewise.
34825         * doc/posix-functions/ungetwc.texi: Likewise.
34826         * doc/posix-functions/vswprintf.texi: Likewise.
34827         * doc/posix-functions/wcrtomb.texi: Likewise.
34828         * doc/posix-functions/wcscat.texi: Likewise.
34829         * doc/posix-functions/wcschr.texi: Likewise.
34830         * doc/posix-functions/wcscmp.texi: Likewise.
34831         * doc/posix-functions/wcscoll.texi: Likewise.
34832         * doc/posix-functions/wcscpy.texi: Likewise.
34833         * doc/posix-functions/wcscspn.texi: Likewise.
34834         * doc/posix-functions/wcsftime.texi: Likewise.
34835         * doc/posix-functions/wcslen.texi: Likewise.
34836         * doc/posix-functions/wcsncat.texi: Likewise.
34837         * doc/posix-functions/wcsncmp.texi: Likewise.
34838         * doc/posix-functions/wcsncpy.texi: Likewise.
34839         * doc/posix-functions/wcspbrk.texi: Likewise.
34840         * doc/posix-functions/wcsrchr.texi: Likewise.
34841         * doc/posix-functions/wcsrtombs.texi: Likewise.
34842         * doc/posix-functions/wcsspn.texi: Likewise.
34843         * doc/posix-functions/wcsstr.texi: Likewise.
34844         * doc/posix-functions/wcstod.texi: Likewise.
34845         * doc/posix-functions/wcstof.texi: Likewise.
34846         * doc/posix-functions/wcstoimax.texi: Likewise.
34847         * doc/posix-functions/wcstok.texi: Likewise.
34848         * doc/posix-functions/wcstold.texi: Likewise.
34849         * doc/posix-functions/wcstoll.texi: Likewise.
34850         * doc/posix-functions/wcstol.texi: Likewise.
34851         * doc/posix-functions/wcstombs.texi: Likewise.
34852         * doc/posix-functions/wcstoull.texi: Likewise.
34853         * doc/posix-functions/wcstoul.texi: Likewise.
34854         * doc/posix-functions/wcstoumax.texi: Likewise.
34855         * doc/posix-functions/wcswidth.texi: Likewise.
34856         * doc/posix-functions/wcsxfrm.texi: Likewise.
34857         * doc/posix-functions/wctob.texi: Likewise.
34858         * doc/posix-functions/wctomb.texi: Likewise.
34859         * doc/posix-functions/wctrans.texi: Likewise.
34860         * doc/posix-functions/wctype.texi: Likewise.
34861         * doc/posix-functions/wcwidth.texi: Likewise.
34862         * doc/posix-functions/wmemchr.texi: Likewise.
34863         * doc/posix-functions/wmemcmp.texi: Likewise.
34864         * doc/posix-functions/wmemcpy.texi: Likewise.
34865         * doc/posix-functions/wmemmove.texi: Likewise.
34866         * doc/posix-functions/wmemset.texi: Likewise.
34867         * doc/posix-functions/wprintf.texi: Likewise.
34868         * doc/posix-functions/wscanf.texi: Likewise.
34869
34870 2008-12-21  Bruno Haible  <bruno@clisp.org>
34871
34872         Update doc for HP-UX 11.11.
34873         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34874         in HP-UX version 11.00, not in all versions of HP-UX 11.
34875         * doc/posix-functions/fwide.texi: Likewise.
34876         * doc/posix-functions/fwprintf.texi: Likewise.
34877         * doc/posix-functions/fwscanf.texi: Likewise.
34878         * doc/posix-functions/inet_ntop.texi: Likewise.
34879         * doc/posix-functions/inet_pton.texi: Likewise.
34880         * doc/posix-functions/mbrlen.texi: Likewise.
34881         * doc/posix-functions/mbrtowc.texi: Likewise.
34882         * doc/posix-functions/mbsinit.texi: Likewise.
34883         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34884         * doc/posix-functions/swprintf.texi: Likewise.
34885         * doc/posix-functions/swscanf.texi: Likewise.
34886         * doc/posix-functions/towctrans.texi: Likewise.
34887         * doc/posix-functions/vfwprintf.texi: Likewise.
34888         * doc/posix-functions/vswprintf.texi: Likewise.
34889         * doc/posix-functions/vwprintf.texi: Likewise.
34890         * doc/posix-functions/wcrtomb.texi: Likewise.
34891         * doc/posix-functions/wcsrtombs.texi: Likewise.
34892         * doc/posix-functions/wcsstr.texi: Likewise.
34893         * doc/posix-functions/wctob.texi: Likewise.
34894         * doc/posix-functions/wctrans.texi: Likewise.
34895         * doc/posix-functions/wmemchr.texi: Likewise.
34896         * doc/posix-functions/wmemcmp.texi: Likewise.
34897         * doc/posix-functions/wmemcpy.texi: Likewise.
34898         * doc/posix-functions/wmemmove.texi: Likewise.
34899         * doc/posix-functions/wmemset.texi: Likewise.
34900         * doc/posix-functions/wprintf.texi: Likewise.
34901         * doc/posix-functions/wscanf.texi: Likewise.
34902
34903 2008-12-21  Bruno Haible  <bruno@clisp.org>
34904
34905         Work around a portability problem.
34906         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34907         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34908
34909 2008-12-20  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34912         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34913         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34915         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34916
34917         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34918         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34919         set.
34920         (GNULIB_defined_mbstate_t): New macro.
34921         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34922         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34923         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34924         reuses the system's mbrtowc function but works around the bugs.
34925         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34926         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34927         macros.
34928         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34929         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34930         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34931         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34932         REPLACE_MBSINIT if mbsinit needs to be overridden.
34933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34934         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34935         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34936         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34937         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34938         m4/locale-zh.m4.
34939         (Depends): Add mbsinit.
34940         * modules/mbsinit (Depends): Add mbrtowc.
34941         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34942
34943 2008-12-20  Bruno Haible  <bruno@clisp.org>
34944
34945         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34946         so that there are no conversion errors on AIX.
34947         * tests/test-mbsrtowcs.c (main): LIkewise.
34948
34949 2008-12-20  Bruno Haible  <bruno@clisp.org>
34950
34951         Work around wctob bug on Solaris <= 9.
34952         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34953         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34955         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34956         * modules/wctob (Files): Add m4/locale-fr.m4.
34957         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34958
34959 2008-12-20  Bruno Haible  <bruno@clisp.org>
34960
34961         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34962         /dev/null.
34963         * tests/test-select-in.sh: Likewise.
34964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34965
34966 2008-12-20  Bruno Haible  <bruno@clisp.org>
34967
34968         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34969         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34970         Cygwin 1.5.x.
34971
34972 2008-12-20  Bruno Haible  <bruno@clisp.org>
34973
34974         Ensure mbstate_t is defined on HP-UX 11.11.
34975         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34976         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34977         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34978         AC_USE_SYSTEM_EXTENSIONS.
34979         * modules/fnmatch (Depends-on): Add extensions.
34980         * modules/mbrlen (Depends-on): Likewise.
34981         * modules/mbrtowc (Depends-on): Likewise.
34982         * modules/mbsinit (Depends-on): Likewise.
34983         * modules/mbsrtowcs (Depends-on): Likewise.
34984         * modules/mbswidth (Depends-on): Likewise.
34985         * modules/quotearg (Depends-on): Likewise.
34986         * modules/strftime (Depends-on): Likewise.
34987
34988 2008-12-20  Bruno Haible  <bruno@clisp.org>
34989
34990         Ensure wctob is declared on IRIX 6.5.
34991         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34992         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34993         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34995         of HAVE_WCTOB.
34996         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34997         HAVE_WCTOB.
34998         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34999
35000 2008-12-19  Bruno Haible  <bruno@clisp.org>
35001
35002         * modules/mbsrtowcs-tests: New file.
35003         * tests/test-mbsrtowcs1.sh: New file.
35004         * tests/test-mbsrtowcs2.sh: New file.
35005         * tests/test-mbsrtowcs3.sh: New file.
35006         * tests/test-mbsrtowcs4.sh: New file.
35007         * tests/test-mbsrtowcs.c: New file.
35008
35009         New module 'mbsrtowcs'.
35010         * lib/wchar.in.h (mbsrtowcs): New declaration.
35011         * lib/mbsrtowcs.c: New file.
35012         * m4/mbsrtowcs.m4: New file.
35013         * modules/mbsrtowcs: New file.
35014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
35015         HAVE_MBSRTOWCS.
35016         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
35017         HAVE_MBSRTOWCS.
35018         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
35019
35020 2008-12-19  Bruno Haible  <bruno@clisp.org>
35021
35022         New module 'mbrlen'.
35023         * lib/wchar.in.h (mbrlen): New declaration.
35024         * lib/mbrlen.c: New file.
35025         * m4/mbrlen.m4: New file.
35026         * modules/mbrlen: New file.
35027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
35028         HAVE_MBRLEN.
35029         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
35030         HAVE_MBRLEN.
35031         * doc/posix-functions/mbrlen.texi: Document the new module.
35032
35033 2008-12-19  Bruno Haible  <bruno@clisp.org>
35034
35035         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
35036         * modules/mbrtowc (Depends-on): Add verify.
35037         Suggested by Paul Eggert.
35038
35039 2008-12-18  Bruno Haible  <bruno@clisp.org>
35040
35041         * modules/mbsinit-tests: New file.
35042         * tests/test-mbsinit.sh: New file.
35043         * tests/test-mbsinit.c: New file.
35044
35045 2008-12-18  Bruno Haible  <bruno@clisp.org>
35046
35047         * modules/mbrtowc-tests: New file.
35048         * tests/test-mbrtowc1.sh: New file.
35049         * tests/test-mbrtowc2.sh: New file.
35050         * tests/test-mbrtowc3.sh: New file.
35051         * tests/test-mbrtowc4.sh: New file.
35052         * tests/test-mbrtowc.c: New file.
35053
35054         New module 'mbrtowc'.
35055         * lib/wchar.in.h (mbstate_t): Override when the system does not have
35056         mbsinit and mbrtowc.
35057         (mbrtowc): New declaration.
35058         * lib/mbrtowc.c: New file.
35059         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
35060         * modules/mbrtowc: New file.
35061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
35062         HAVE_MBRTOWC.
35063         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
35064         HAVE_MBRTOWC.
35065         * doc/posix-functions/mbrtowc.texi: Document the new module.
35066
35067 2008-12-18  Bruno Haible  <bruno@clisp.org>
35068
35069         New module 'wctob'.
35070         * lib/wchar.in.h (wctob): New declaration.
35071         * lib/wctob.c: New file.
35072         * m4/wctob.m4: New file.
35073         * modules/wctob: New file.
35074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
35075         HAVE_WCTOB.
35076         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
35077         * doc/posix-functions/wctob.texi: Document the new module.
35078
35079 2008-12-18  Bruno Haible  <bruno@clisp.org>
35080
35081         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
35082         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
35083
35084 2008-12-18  Simon Josefsson  <simon@josefsson.org>
35085
35086         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
35087         G. Christensen" <tgc@jupiterrise.com>.
35088
35089         * lib/flock.c: Need to include errno.h.  Reported by "Tom
35090         G. Christensen" <tgc@jupiterrise.com>.
35091
35092         * lib/flock.c: Need to include string.h.  Reported by "Tom
35093         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
35094         <ebb9@byu.net>.
35095
35096 2008-12-18  Bruno Haible  <bruno@clisp.org>
35097
35098         * m4/locale-ja.m4: New file, from GNU gettext.
35099
35100 2008-12-17  Bruno Haible  <bruno@clisp.org>
35101
35102         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
35103         Suggested by Eric Blake.
35104
35105 2008-12-17  Bruno Haible  <bruno@clisp.org>
35106
35107         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
35108
35109 2008-12-17  Bruno Haible  <bruno@clisp.org>
35110
35111         * lib/mbsinit.c: Include verify.h. Verify an assumption.
35112         * modules/mbsinit (Depends-on): Add verify.
35113         Suggested by Paul Eggert.
35114
35115 2008-12-17  Bruno Haible  <bruno@clisp.org>
35116
35117         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
35118         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
35119         gl_FUNC_MBRTOWC.
35120         * m4/mbiter.m4 (gl_MBITER): LIkewise.
35121         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
35122         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
35123         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
35124         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
35125         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
35126         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
35127         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
35128         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
35129         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
35130         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
35131         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
35132         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
35133         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
35134         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
35135         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35136         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
35137         * modules/trim (configure.ac): Likewise.
35138
35139 2008-12-17  Bruno Haible  <bruno@clisp.org>
35140
35141         * modules/btowc-tests: New file.
35142         * tests/test-btowc1.sh: New file.
35143         * tests/test-btowc2.sh: New file.
35144         * tests/test-btowc.c: New file.
35145
35146         New module 'btowc'.
35147         * lib/wchar.in.h (btowc): New declaration.
35148         * lib/btowc.c: New file.
35149         * m4/btowc.m4: New file.
35150         * modules/btowc: New file.
35151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
35152         HAVE_BTOWC.
35153         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
35154         * doc/posix-functions/btowc.texi: Document the new module.
35155
35156 2008-12-17  Bruno Haible  <bruno@clisp.org>
35157
35158         New module 'mbsinit'.
35159         * lib/wchar.in.h (mbsinit): New declaration.
35160         * lib/mbsinit.c: New file.
35161         * m4/mbsinit.m4: New file.
35162         * modules/mbsinit: New file.
35163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
35164         HAVE_MBSINIT.
35165         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
35166         HAVE_MBSINIT.
35167         * doc/posix-functions/mbsinit.texi: Document the new module.
35168
35169 2008-12-16  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/unistd.in.h: Add comment.
35172         * tests/test-environ.c: Don't include <stdlib.h>.
35173
35174 2008-12-16  Bruno Haible  <bruno@clisp.org>
35175
35176         * lib/parse-duration.h (parse_duration): Document return value
35177         convention.
35178         * lib/parse-duration.c: Include specification header first. Add
35179         comments.
35180         (_): Remove macro.
35181         (parse_year_month_day, parse_hour_minute_second): Move side effects
35182         outside of strchr call.
35183         (parse_non_iso8601): Move side effects outside of isspace call.
35184         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
35185         call.
35186
35187 2008-12-16  Bruno Haible  <bruno@clisp.org>
35188
35189         * tests/test-parse-duration.sh: Produce no output when the test
35190         succeeds.
35191
35192 2008-12-16  Bruno Haible  <bruno@clisp.org>
35193
35194         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
35195         expressions.
35196
35197 2008-12-15  Bruno Haible  <bruno@clisp.org>
35198
35199         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
35200         * doc/glibc-functions/flistxattr.texi: Likewise.
35201         * doc/glibc-functions/fopencookie.texi: Likewise.
35202         * doc/glibc-functions/fremovexattr.texi: Likewise.
35203         * doc/glibc-functions/fsetxattr.texi: Likewise.
35204         * doc/glibc-functions/getxattr.texi: Likewise.
35205         * doc/glibc-functions/lgetxattr.texi: Likewise.
35206         * doc/glibc-functions/listxattr.texi: Likewise.
35207         * doc/glibc-functions/llistxattr.texi: Likewise.
35208         * doc/glibc-functions/lremovexattr.texi: Likewise.
35209         * doc/glibc-functions/lsetxattr.texi: Likewise.
35210         * doc/glibc-functions/removexattr.texi: Likewise.
35211         * doc/glibc-functions/setxattr.texi: Likewise.
35212         * doc/posix-functions/open_memstream.texi: Likewise.
35213
35214 2008-12-15  Eric Blake  <ebb9@byu.net>
35215
35216         Update doc for cygwin 1.7.
35217         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
35218         functions.
35219         * doc/posix-functions/fchmodat.texi: Likewise.
35220         * doc/posix-functions/fchownat.texi: Likewise.
35221         * doc/posix-functions/fdopendir.texi: Likewise.
35222         * doc/posix-functions/fmemopen.texi: Likewise.
35223         * doc/posix-functions/freeaddrinfo.texi: Likewise.
35224         * doc/posix-functions/fstatat.texi: Likewise.
35225         * doc/posix-functions/futimens.texi: Likewise.
35226         * doc/posix-functions/gai_strerror.texi: Likewise.
35227         * doc/posix-functions/getaddrinfo.texi: Likewise.
35228         * doc/posix-functions/getnameinfo.texi: Likewise.
35229         * doc/posix-functions/if_freenameindex.texi: Likewise.
35230         * doc/posix-functions/if_indextoname.texi: Likewise.
35231         * doc/posix-functions/if_nameindex.texi: Likewise.
35232         * doc/posix-functions/if_nametoindex.texi: Likewise.
35233         * doc/posix-functions/insque.texi: Likewise.
35234         * doc/posix-functions/linkat.texi: Likewise.
35235         * doc/posix-functions/llrint.texi: Likewise.
35236         * doc/posix-functions/llrintf.texi: Likewise.
35237         * doc/posix-functions/llrintl.texi: Likewise.
35238         * doc/posix-functions/lockf.texi: Likewise.
35239         * doc/posix-functions/lrintl.texi: Likewise.
35240         * doc/posix-functions/mkdirat.texi: Likewise.
35241         * doc/posix-functions/mkfifoat.texi: Likewise.
35242         * doc/posix-functions/mknodat.texi: Likewise.
35243         * doc/posix-functions/mq_close.texi: Likewise.
35244         * doc/posix-functions/mq_getattr.texi: Likewise.
35245         * doc/posix-functions/mq_notify.texi: Likewise.
35246         * doc/posix-functions/mq_open.texi: Likewise.
35247         * doc/posix-functions/mq_receive.texi: Likewise.
35248         * doc/posix-functions/mq_send.texi: Likewise.
35249         * doc/posix-functions/mq_setattr.texi: Likewise.
35250         * doc/posix-functions/mq_timedreceive.texi: Likewise.
35251         * doc/posix-functions/mq_timedsend.texi: Likewise.
35252         * doc/posix-functions/mq_unlink.texi: Likewise.
35253         * doc/posix-functions/open_memstream.texi: Likewise.
35254         * doc/posix-functions/openat.texi: Likewise.
35255         * doc/posix-functions/posix_fadvise.texi: Likewise.
35256         * doc/posix-functions/posix_fallocate.texi: Likewise.
35257         * doc/posix-functions/posix_madvise.texi: Likewise.
35258         * doc/posix-functions/posix_memalign.texi: Likewise.
35259         * doc/posix-functions/posix_openpt.texi: Likewise.
35260         * doc/posix-functions/readlinkat.texi: Likewise.
35261         * doc/posix-functions/remque.texi: Likewise.
35262         * doc/posix-functions/renameat.texi: Likewise.
35263         * doc/posix-functions/rintl.texi: Likewise.
35264         * doc/posix-functions/sem_unlink.texi: Likewise.
35265         * doc/posix-functions/shm_open.texi: Likewise.
35266         * doc/posix-functions/shm_unlink.texi: Likewise.
35267         * doc/posix-functions/signgam.texi: Likewise.
35268         * doc/posix-functions/sigset.texi: Likewise.
35269         * doc/posix-functions/stpcpy.texi: Likewise.
35270         * doc/posix-functions/stpncpy.texi: Likewise.
35271         * doc/posix-functions/strerror.texi: Likewise.
35272         * doc/posix-functions/strtod.texi: Likewise.
35273         * doc/posix-functions/symlinkat.texi: Likewise.
35274         * doc/posix-functions/unlinkat.texi: Likewise.
35275         * doc/posix-functions/utimensat.texi: Likewise.
35276         * doc/glibc-functions/bindresvport.texi: Likewise.
35277         * doc/glibc-functions/dn_expand.texi: Likewise.
35278         * doc/glibc-functions/exp10.texi: Likewise.
35279         * doc/glibc-functions/exp10f.texi: Likewise.
35280         * doc/glibc-functions/fgetxattr.texi: Likewise.
35281         * doc/glibc-functions/flistxattr.texi: Likewise.
35282         * doc/glibc-functions/fopencookie.texi: Likewise.
35283         * doc/glibc-functions/freeifaddrs.texi: Likewise.
35284         * doc/glibc-functions/fremovexattr.texi: Likewise.
35285         * doc/glibc-functions/fsetxattr.texi: Likewise.
35286         * doc/glibc-functions/getifaddrs.texi: Likewise.
35287         * doc/glibc-functions/getxattr.texi: Likewise.
35288         * doc/glibc-functions/lgetxattr.texi: Likewise.
35289         * doc/glibc-functions/listxattr.texi: Likewise.
35290         * doc/glibc-functions/llistxattr.texi: Likewise.
35291         * doc/glibc-functions/lremovexattr.texi: Likewise.
35292         * doc/glibc-functions/lsetxattr.texi: Likewise.
35293         * doc/glibc-functions/pow10.texi: Likewise.
35294         * doc/glibc-functions/pow10f.texi: Likewise.
35295         * doc/glibc-functions/rcmd_af.texi: Likewise.
35296         * doc/glibc-functions/removexattr.texi: Likewise.
35297         * doc/glibc-functions/res_init.texi: Likewise.
35298         * doc/glibc-functions/res_mkquery.texi: Likewise.
35299         * doc/glibc-functions/res_query.texi: Likewise.
35300         * doc/glibc-functions/res_querydomain.texi: Likewise.
35301         * doc/glibc-functions/res_send.texi: Likewise.
35302         * doc/glibc-functions/rresvport_af.texi: Likewise.
35303         * doc/glibc-functions/setxattr.texi: Likewise.
35304         * doc/glibc-functions/strcasestr.texi: Likewise.
35305
35306 2008-12-15  Bruno Haible  <bruno@clisp.org>
35307
35308         Fix compilation error on OSF/1 4.0.
35309         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
35310         <sys/time.h>, simply delegate to the system header.
35311         Reported by Daniel Richard G. <oss@teragram.com>.
35312
35313 2008-12-15  Bruno Haible  <bruno@clisp.org>
35314
35315         * doc/posix-functions/openat.texi: Mention the 'openat' module.
35316         * doc/posix-functions/fchmodat.texi: Likewise.
35317         * doc/posix-functions/fchownat.texi: Likewise.
35318         * doc/posix-functions/fdopendir.texi: Likewise.
35319         * doc/posix-functions/fstatat.texi: Likewise.
35320         * doc/posix-functions/mkdirat.texi: Likewise.
35321         * doc/posix-functions/unlinkat.texi: Likewise.
35322
35323 2008-12-14  Bruno Haible  <bruno@clisp.org>
35324
35325         Update doc for POSIX:2008.
35326         * doc/posix-functions/faccessat.texi: New file.
35327         * doc/posix-functions/fchmodat.texi: New file.
35328         * doc/posix-functions/fchownat.texi: New file.
35329         * doc/posix-functions/fdopendir.texi: New file.
35330         * doc/posix-functions/fstatat.texi: New file.
35331         * doc/posix-functions/futimens.texi: New file.
35332         * doc/posix-functions/linkat.texi: New file.
35333         * doc/posix-functions/mkdirat.texi: New file.
35334         * doc/posix-functions/mkfifoat.texi: New file.
35335         * doc/posix-functions/mknodat.texi: New file.
35336         * doc/posix-functions/open_wmemstream.texi: New file.
35337         * doc/posix-functions/openat.texi: New file.
35338         * doc/posix-functions/psiginfo.texi: New file.
35339         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35340         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35341         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35342         * doc/posix-functions/readlinkat.texi: New file.
35343         * doc/posix-functions/renameat.texi: New file.
35344         * doc/posix-functions/strerror_l.texi: New file.
35345         * doc/posix-functions/symlinkat.texi: New file.
35346         * doc/posix-functions/unlinkat.texi: New file.
35347         * doc/posix-functions/utimensat.texi: New file.
35348         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35349
35350 2008-12-14  Bruno Haible  <bruno@clisp.org>
35351
35352         Update doc for POSIX:2008.
35353         * doc/posix-functions/alphasort.texi: Renamed from
35354         doc/glibc-functions/alphasort.texi.
35355         * doc/posix-functions/dirfd.texi: Renamed from
35356         doc/glibc-functions/dirfd.texi.
35357         * doc/posix-functions/dprintf.texi: Renamed from
35358         doc/glibc-functions/dprintf.texi.
35359         * doc/posix-functions/duplocale.texi: Renamed from
35360         doc/glibc-functions/duplocale.texi.
35361         * doc/posix-functions/fexecve.texi: Renamed from
35362         doc/glibc-functions/fexecve.texi.
35363         * doc/posix-functions/fmemopen.texi: Renamed from
35364         doc/glibc-functions/fmemopen.texi.
35365         * doc/posix-functions/freelocale.texi: Renamed from
35366         doc/glibc-functions/freelocale.texi.
35367         * doc/posix-functions/getdate_err.texi: Renamed from
35368         doc/glibc-functions/getdate_err.texi.
35369         * doc/posix-functions/isalnum_l.texi: Renamed from
35370         doc/glibc-functions/isalnum_l.texi.
35371         * doc/posix-functions/isalpha_l.texi: Renamed from
35372         doc/glibc-functions/isalpha_l.texi.
35373         * doc/posix-functions/isblank_l.texi: Renamed from
35374         doc/glibc-functions/isblank_l.texi.
35375         * doc/posix-functions/iscntrl_l.texi: Renamed from
35376         doc/glibc-functions/iscntrl_l.texi.
35377         * doc/posix-functions/isdigit_l.texi: Renamed from
35378         doc/glibc-functions/isdigit_l.texi.
35379         * doc/posix-functions/isgraph_l.texi: Renamed from
35380         doc/glibc-functions/isgraph_l.texi.
35381         * doc/posix-functions/islower_l.texi: Renamed from
35382         doc/glibc-functions/islower_l.texi.
35383         * doc/posix-functions/isprint_l.texi: Renamed from
35384         doc/glibc-functions/isprint_l.texi.
35385         * doc/posix-functions/ispunct_l.texi: Renamed from
35386         doc/glibc-functions/ispunct_l.texi.
35387         * doc/posix-functions/isspace_l.texi: Renamed from
35388         doc/glibc-functions/isspace_l.texi.
35389         * doc/posix-functions/isupper_l.texi: Renamed from
35390         doc/glibc-functions/isupper_l.texi.
35391         * doc/posix-functions/iswalnum_l.texi: Renamed from
35392         doc/glibc-functions/iswalnum_l.texi.
35393         * doc/posix-functions/iswalpha_l.texi: Renamed from
35394         doc/glibc-functions/iswalpha_l.texi.
35395         * doc/posix-functions/iswblank_l.texi: Renamed from
35396         doc/glibc-functions/iswblank_l.texi.
35397         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35398         doc/glibc-functions/iswcntrl_l.texi.
35399         * doc/posix-functions/iswctype_l.texi: Renamed from
35400         doc/glibc-functions/iswctype_l.texi.
35401         * doc/posix-functions/iswdigit_l.texi: Renamed from
35402         doc/glibc-functions/iswdigit_l.texi.
35403         * doc/posix-functions/iswgraph_l.texi: Renamed from
35404         doc/glibc-functions/iswgraph_l.texi.
35405         * doc/posix-functions/iswlower_l.texi: Renamed from
35406         doc/glibc-functions/iswlower_l.texi.
35407         * doc/posix-functions/iswprint_l.texi: Renamed from
35408         doc/glibc-functions/iswprint_l.texi.
35409         * doc/posix-functions/iswpunct_l.texi: Renamed from
35410         doc/glibc-functions/iswpunct_l.texi.
35411         * doc/posix-functions/iswspace_l.texi: Renamed from
35412         doc/glibc-functions/iswspace_l.texi.
35413         * doc/posix-functions/iswupper_l.texi: Renamed from
35414         doc/glibc-functions/iswupper_l.texi.
35415         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35416         doc/glibc-functions/iswxdigit_l.texi.
35417         * doc/posix-functions/isxdigit_l.texi: Renamed from
35418         doc/glibc-functions/isxdigit_l.texi.
35419         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35420         doc/glibc-functions/mbsnrtowcs.texi.
35421         * doc/posix-functions/mkdtemp.texi: Renamed from
35422         doc/glibc-functions/mkdtemp.texi.
35423         * doc/posix-functions/newlocale.texi: Renamed from
35424         doc/glibc-functions/newlocale.texi.
35425         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35426         doc/glibc-functions/nl_langinfo_l.texi.
35427         * doc/posix-functions/open_memstream.texi: Renamed from
35428         doc/glibc-functions/open_memstream.texi.
35429         * doc/posix-functions/opterr.texi: Renamed from
35430         doc/glibc-functions/opterr.texi.
35431         * doc/posix-functions/optind.texi: Renamed from
35432         doc/glibc-functions/optind.texi.
35433         * doc/posix-functions/optopt.texi: Renamed from
35434         doc/glibc-functions/optopt.texi.
35435         * doc/posix-functions/psignal.texi: Renamed from
35436         doc/glibc-functions/psignal.texi.
35437         * doc/posix-functions/scandir.texi: Renamed from
35438         doc/glibc-functions/scandir.texi.
35439         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35440         doc/glibc-functions/sched_get_priority_min.texi.
35441         * doc/posix-functions/signgam.texi: Renamed from
35442         doc/glibc-functions/signgam.texi.
35443         * doc/posix-functions/stpcpy.texi: Renamed from
35444         doc/glibc-functions/stpcpy.texi.
35445         * doc/posix-functions/stpncpy.texi: Renamed from
35446         doc/glibc-functions/stpncpy.texi.
35447         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35448         doc/glibc-functions/strcasecmp_l.texi.
35449         * doc/posix-functions/strcoll_l.texi: Renamed from
35450         doc/glibc-functions/strcoll_l.texi.
35451         * doc/posix-functions/strfmon_l.texi: Renamed from
35452         doc/glibc-functions/strfmon_l.texi.
35453         * doc/posix-functions/strftime_l.texi: Renamed from
35454         doc/glibc-functions/strftime_l.texi.
35455         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35456         doc/glibc-functions/strncasecmp_l.texi.
35457         * doc/posix-functions/strndup.texi: Renamed from
35458         doc/glibc-functions/strndup.texi.
35459         * doc/posix-functions/strnlen.texi: Renamed from
35460         doc/glibc-functions/strnlen.texi.
35461         * doc/posix-functions/strsignal.texi: Renamed from
35462         doc/glibc-functions/strsignal.texi.
35463         * doc/posix-functions/strxfrm_l.texi: Renamed from
35464         doc/glibc-functions/strxfrm_l.texi.
35465         * doc/posix-functions/timer_gettime.texi: Renamed from
35466         doc/glibc-functions/timer_gettime.texi.
35467         * doc/posix-functions/tolower_l.texi: Renamed from
35468         doc/glibc-functions/tolower_l.texi.
35469         * doc/posix-functions/toupper_l.texi: Renamed from
35470         doc/glibc-functions/toupper_l.texi.
35471         * doc/posix-functions/towctrans_l.texi: Renamed from
35472         doc/glibc-functions/towctrans_l.texi.
35473         * doc/posix-functions/towlower_l.texi: Renamed from
35474         doc/glibc-functions/towlower_l.texi.
35475         * doc/posix-functions/towupper_l.texi: Renamed from
35476         doc/glibc-functions/towupper_l.texi.
35477         * doc/posix-functions/uselocale.texi: Renamed from
35478         doc/glibc-functions/uselocale.texi.
35479         * doc/posix-functions/vdprintf.texi: Renamed from
35480         doc/glibc-functions/vdprintf.texi.
35481         * doc/posix-functions/wcpcpy.texi:
35482         Renamed from doc/glibc-functions/wcpcpy.texi.
35483         * doc/posix-functions/wcpncpy.texi: Renamed from
35484         doc/glibc-functions/wcpncpy.texi.
35485         * doc/posix-functions/wcscasecmp.texi: Renamed from
35486         doc/glibc-functions/wcscasecmp.texi.
35487         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35488         doc/glibc-functions/wcscasecmp_l.texi.
35489         * doc/posix-functions/wcscoll_l.texi: Renamed from
35490         doc/glibc-functions/wcscoll_l.texi.
35491         * doc/posix-functions/wcsdup.texi: Renamed from
35492         doc/glibc-functions/wcsdup.texi.
35493         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35494         doc/glibc-functions/wcsncasecmp.texi.
35495         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35496         doc/glibc-functions/wcsncasecmp_l.texi.
35497         * doc/posix-functions/wcsnlen.texi: Renamed from
35498         doc/glibc-functions/wcsnlen.texi.
35499         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35500         doc/glibc-functions/wcsnrtombs.texi.
35501         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35502         doc/glibc-functions/wcsxfrm_l.texi.
35503         * doc/posix-functions/wctrans_l.texi: Renamed from
35504         doc/glibc-functions/wctrans_l.texi.
35505         * doc/posix-functions/wctype_l.texi: Renamed from
35506         doc/glibc-functions/wctype_l.texi.
35507         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35508         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35509         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35510         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35511         these subsections.
35512         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35513         Remove sections.
35514
35515 2008-12-14  Bruno Haible  <bruno@clisp.org>
35516
35517         Update doc for POSIX:2008.
35518         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35519
35520 2008-12-14  Bruno Haible  <bruno@clisp.org>
35521
35522         Update doc for POSIX:2008.
35523         * doc/pastposix-functions/bcmp.texi: Renamed from
35524         doc/posix-functions/bcmp.texi.
35525         * doc/pastposix-functions/bcopy.texi: Renamed from
35526         doc/posix-functions/bcopy.texi.
35527         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35528         doc/posix-functions/bsd_signal.texi.
35529         * doc/pastposix-functions/bzero.texi: Renamed from
35530         doc/posix-functions/bzero.texi.
35531         * doc/pastposix-functions/ecvt.texi: Renamed from
35532         doc/posix-functions/ecvt.texi.
35533         * doc/pastposix-functions/fcvt.texi: Renamed from
35534         doc/posix-functions/fcvt.texi.
35535         * doc/pastposix-functions/ftime.texi: Renamed from
35536         doc/posix-functions/ftime.texi.
35537         * doc/pastposix-functions/gcvt.texi: Renamed from
35538         doc/posix-functions/gcvt.texi.
35539         * doc/pastposix-functions/getcontext.texi: Renamed from
35540         doc/posix-functions/getcontext.texi.
35541         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35542         doc/posix-functions/gethostbyaddr.texi.
35543         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35544         doc/posix-functions/gethostbyname.texi.
35545         * doc/pastposix-functions/getwd.texi: Renamed from
35546         doc/posix-functions/getwd.texi.
35547         * doc/pastposix-functions/h_errno.texi: Renamed from
35548         doc/posix-functions/h_errno.texi.
35549         * doc/pastposix-functions/index.texi: Renamed from
35550         doc/posix-functions/index.texi.
35551         * doc/pastposix-functions/makecontext.texi: Renamed from
35552         doc/posix-functions/makecontext.texi.
35553         * doc/pastposix-functions/mktemp.texi: Renamed from
35554         doc/posix-functions/mktemp.texi.
35555         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35556         doc/posix-functions/pthread_attr_getstackaddr.texi.
35557         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35558         doc/posix-functions/pthread_attr_setstackaddr.texi.
35559         * doc/pastposix-functions/rindex.texi: Renamed from
35560         doc/posix-functions/rindex.texi.
35561         * doc/pastposix-functions/scalb.texi: Renamed from
35562         doc/posix-functions/scalb.texi.
35563         * doc/pastposix-functions/setcontext.texi: Renamed from
35564         doc/posix-functions/setcontext.texi.
35565         * doc/pastposix-functions/swapcontext.texi: Renamed from
35566         doc/posix-functions/swapcontext.texi.
35567         * doc/pastposix-functions/ualarm.texi: Renamed from
35568         doc/posix-functions/ualarm.texi.
35569         * doc/pastposix-functions/usleep.texi: Renamed from
35570         doc/posix-functions/usleep.texi.
35571         * doc/pastposix-functions/vfork.texi: Renamed from
35572         doc/posix-functions/vfork.texi.
35573         * doc/pastposix-functions/wcswcs.texi: Renamed from
35574         doc/posix-functions/wcswcs.texi.
35575         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35576         (Function Substitutes): Update.
35577
35578 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35579
35580         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35581         m4/strerror.m4.
35582
35583 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35584             Bruno Haible  <bruno@clisp.org>
35585
35586         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35587
35588 2008-12-13  Bruno Haible  <bruno@clisp.org>
35589
35590         * modules/strtoull (Depends-on): Remove unistd.
35591
35592 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35593
35594         * modules/strtoull (Depends-on): Add stdlib.
35595
35596 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35597
35598         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35599
35600 2008-12-10  Jim Meyering  <meyering@redhat.com>
35601
35602         gl_ASSERT: don't say assertions are disabled when they're not
35603         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35604         "checking whether to enable assertions... no", when they are in
35605         fact enabled.  This is solely a bug in the output of configure.
35606         In spite of saying "no", NDEBUG was not defined in that case.
35607         Also, as noted by Eric Blake, leave assertions enabled upon
35608         --enable-assert=INVALID.
35609
35610 2008-12-10  Bruno Haible  <bruno@clisp.org>
35611
35612         Change MODULES.html to refer to POSIX:2008 where possible.
35613         * MODULES.html.sh (POSIX2008_URL): New variable.
35614         (posix_headers): Remove sys/timeb, ucontext.
35615         (posix2001_headers): New variable.
35616         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35617         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35618         index, makecontext, mktemp, pthread_attr_getstackaddr,
35619         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35620         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35621         (posix2001_functions): New variable.
35622         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35623         otherwise.
35624
35625 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35626
35627         add missing include to parse-duration.c
35628         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35629         * modules/parse-duration (Depends-on): Add xalloc.
35630
35631         fix sed script reading maint.mk
35632         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35633         (syntax-check-rules): Use it.
35634
35635 2008-12-09  Bruno Haible  <bruno@clisp.org>
35636
35637         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35638         MacOS X 10.4/PowerPC.
35639         Reported by Simon Josefsson.
35640
35641 2008-12-08  Jim Meyering  <meyering@redhat.com>
35642
35643         work around mingw's lack of some S_IF definitions
35644         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35645         Reported by Simon Josefsson.
35646
35647 2008-12-08  Bruno Haible  <bruno@clisp.org>
35648
35649         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35650         applied to variables. Needed on MacOS X 10.4/PowerPC.
35651         Reported by Simon Josefsson.
35652
35653 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35654         and Eric Blake  <ebb9@byu.net>
35655
35656         assert: honor --enable-assert
35657         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35658         order to honor --enable-assert, rather than treating it as a
35659         synonym for --disable-assert.
35660
35661 2008-12-08  Jim Meyering  <meyering@redhat.com>
35662
35663         * lib/posixtm.c: Remove now-useless declaration of mktime.
35664
35665         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35666
35667 2008-12-07  Bruno Haible  <bruno@clisp.org>
35668
35669         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35670         test_once): Mark functions as static.
35671         * tests/test-tls.c (test_tls): Likewise.
35672
35673 2008-12-07  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35676         iconv_register_autodetect.
35677
35678 2008-12-07  Jim Meyering  <meyering@redhat.com>
35679
35680         posixtm.c: avoid a warning
35681         * lib/posixtm.c (posixtime): Don't initialize tm0.
35682         It's no longer needed to placate gcc4's -Wuninitialized,
35683         and the attempt to placate would elicit a new warning.
35684
35685         unicodeio.c: mark unused parameters
35686         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35687         (fallback_failure_callback): Likewise.
35688
35689 2008-12-07  Bruno Haible  <bruno@clisp.org>
35690
35691         * gnulib-tool (func_create_testdir): When building the tests
35692         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35693         Reported by Simon Josefsson.
35694
35695 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35696
35697         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35698
35699 2008-12-06  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35702         Suggested by Eric Blake.
35703
35704 2008-12-06  Bruno Haible  <bruno@clisp.org>
35705
35706         Fix a c-stack test failure on MacOS X.
35707         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35708         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35709         handler for SIGBUS as well.
35710         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35711         install a signal handler for SIGBUS as well.
35712         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35713
35714 2008-12-06  Bruno Haible  <bruno@clisp.org>
35715
35716         Advocacy documentation.
35717         * doc/gnulib-intro.texi (Benefits): New section.
35718         * doc/gnulib.texi: Update.
35719
35720 2008-12-06  Bruno Haible  <bruno@clisp.org>
35721
35722         Document the 'manywarnings' module.
35723         * doc/manywarnings.texi: New file.
35724         * doc/gnulib.texi: Include it.
35725
35726 2008-12-05  Eric Blake  <ebb9@byu.net>
35727
35728         tests: silence some gcc warnings
35729         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35730         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35731         type mismatches.
35732
35733 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35734             Bruno Haible  <bruno@clisp.org>
35735
35736         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35737
35738 2008-11-29  Jim Meyering  <meyering@redhat.com>
35739
35740         unicodeio.c: mark unused parameters
35741         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35742         (fallback_failure_callback): Likewise.
35743
35744         fts: fix a thinko
35745         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35746         (set_stat_type): Return S_IF*-valued "type" directly.
35747         Prompted by James Youngman's spotting a related bug.
35748         Confirmed by further testing through find.
35749
35750         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35751         * lib/fts.c (D_TYPE): Define.
35752         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35753         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35754         (s_ifmt_shift_bits): New function.
35755         (set_stat_type): New function.
35756         (fts_build): When not calling fts_stat, call set_stat_type
35757         to propagate dirent.d_type info to fts_read caller.
35758         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35759         fts_statp->st_mode type information may be valid.
35760
35761 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35762
35763         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35764         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35765         <sds@gnu.org>.
35766
35767 2008-11-20  Bruno Haible  <bruno@clisp.org>
35768
35769         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35770         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35771         INCLUDE_NEXT.
35772         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35773         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35774         * modules/math (Makefile.am): Substitute
35775         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35777
35778 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35779             Bruno Haible  <bruno@clisp.org>
35780
35781         * lib/stdint.in.h: Define all type macros so that their expansion is
35782         a single typedef'ed token. Fixes a compilation failure in Boost which
35783         does "using ::int8_t;".
35784
35785 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35786
35787         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35788         gl_MANYWARN_ALL_GCC.
35789         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35790         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35791         * modules/manywarnings: New file.
35792         * MODULES.html.sh: Mention manywarnings module.
35793
35794 2008-11-18  Bruno Haible  <bruno@clisp.org>
35795
35796         * doc/gnulib-tool.texi (Unit tests): New section.
35797
35798 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35799
35800         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35801         paths like 'lib/po/foo.po'.
35802
35803 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35804
35805         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35806         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35807
35808 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35809
35810         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35811         parameter works.
35812
35813 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35814
35815         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35816
35817 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35818
35819         * modules/parse-duration-tests: New file.
35820         * tests/test-parse-duration.sh: New file.
35821         * tests/test-parse-duration.c: New file.
35822
35823         New module 'parse-duration'.
35824         * lib/parse-duration.h: New file.
35825         * lib/parse-duration.c: New file.
35826         * modules/parse-duration: New file.
35827
35828 2008-11-17  Bruno Haible  <bruno@clisp.org>
35829
35830         * tests/test-select-out.sh: Comment out the first pipe test.
35831         Reported by Simon Josefsson.
35832
35833 2008-11-17  Bruno Haible  <bruno@clisp.org>
35834
35835         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35836         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35837         gl_HOSTENT.
35838
35839 2008-11-17  Bruno Haible  <bruno@clisp.org>
35840
35841         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35842         -lnetwork and -lnet. Needed for Haiku and BeOS.
35843
35844 2008-11-16  Bruno Haible  <bruno@clisp.org>
35845
35846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35847
35848 2008-11-16  Bruno Haible  <bruno@clisp.org>
35849
35850         Avoid test failure on Haiku.
35851         * tests/test-fsync.c: Include <errno.h>.
35852         (main): Don't require that fsync (0) fails.
35853
35854 2008-11-15  Bruno Haible  <bruno@clisp.org>
35855
35856         New module 'hostent'.
35857         * modules/hostent: New file.
35858         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35859
35860 2008-11-15  Bruno Haible  <bruno@clisp.org>
35861
35862         New module 'servent'.
35863         * modules/servent: New file.
35864         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35865
35866 2008-11-15  Bruno Haible  <bruno@clisp.org>
35867
35868         Avoid generating same test program with two different rules.
35869         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35870         test-frexp to test-frexp-nolibm.
35871         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35872         test-frexpl to test-frexpl-nolibm.
35873
35874 2008-11-15  Bruno Haible  <bruno@clisp.org>
35875
35876         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35877         $(FREXPL_LIBM).
35878
35879 2008-11-15  Bruno Haible  <bruno@clisp.org>
35880
35881         * lib/netdb.in.h: Activate the definitions also when the system's
35882         <netdb.h> has 'struct addrinfo'.
35883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35884         EAI_OVERFLOW or AI_NUMERICSERV.
35885         * doc/posix-headers/netdb.texi: Document the problem.
35886
35887 2008-11-15  Bruno Haible  <bruno@clisp.org>
35888
35889         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35890
35891         Make the 'sched' module work on platforms where <sched.h> exists but
35892         is incomplete (such as Haiku).
35893         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35894         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35895         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35896         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35897         HAVE_STRUCT_SCHED_PARAM.
35898         * modules/sched (Depends-on): Add include_next.
35899         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35900         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35901         * doc/posix-headers/sched.texi: Document the issue.
35902
35903 2008-11-13  Jim Meyering  <meyering@redhat.com>
35904
35905         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35906         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35907         test would fail due to the difference in the Report bugs to ...
35908         line.  The expected address is empty, "<>", while the actual
35909         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35910
35911 2008-11-12  Bruno Haible  <bruno@clisp.org>
35912
35913         lstat: don't compile lstat.c on systems lacking lstat
35914         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35915         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35916         Reported by Daniel P. Berrange via Jim Meyering.
35917
35918 2008-11-12  Jim Meyering  <meyering@redhat.com>
35919
35920         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35921
35922 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35923
35924         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35925         instead.
35926
35927 2008-11-12  Bruno Haible  <bruno@clisp.org>
35928
35929         * lib/unicodeio.c: Include unistr.h.
35930         (utf8_wctomb): Remove function.
35931         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35932
35933 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35934
35935         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35936         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35937         <bruno@clisp.org>.
35938         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35939
35940 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35941
35942         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35943         * doc/gnulib.texi: Add section for warnings.
35944
35945 2008-11-11  Bruno Haible  <bruno@clisp.org>
35946
35947         * lib/sockets.h: Add a comment.
35948
35949 2008-11-11  Karl Berry  <karl@gnu.org>
35950
35951         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35952
35953 2008-11-11  Eric Blake  <ebb9@byu.net>
35954
35955         fdl.texi: avoid git symlinks
35956         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35957
35958 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35959
35960         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35961
35962 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35963
35964         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35965         (gl_WARN_ADD): Substitute $2 if literal.
35966
35967 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35968
35969         * m4/warning.m4: Remove.
35970
35971 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35972
35973         * m4/warnings.m4: Almost complete rewrite. :-)
35974
35975 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35976
35977         * modules/warnings: New module.
35978         * m4/warnings.m4: New file.
35979         * MODULES.html.sh: Mention warnings module.
35980         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35981         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35982
35983 2008-11-10  Eric Blake  <ebb9@byu.net>
35984
35985         fdl.texi: make a symlink to the latest version
35986         * doc/standards.texi: Revert today's earlier change.
35987         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35988         * doc/fdl.texi: ...and replace this with a symlink to the newer
35989         fdl-1.3.texi.
35990
35991 2008-11-10  Bruno Haible  <bruno@clisp.org>
35992
35993         * tests/test-select-fd.c (main): Accept the result file name as fourth
35994         argument.
35995         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35996         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35997
35998 2008-11-10  Bruno Haible  <bruno@clisp.org>
35999
36000         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
36001         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
36002         as autoconf-substituted macros.
36003         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
36004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
36005         gl_NETDB_H_DEFAULTS. Set these variables.
36006         * modules/netdb (Makefile.am): Substitute these variables.
36007
36008 2008-11-10  Eric Blake  <ebb9@byu.net>
36009
36010         standards.texi: include correct file for FDL 1.3
36011         * doc/standards.texi (GNU Free Documentation License): Change
36012         include file to pull in FDL 1.3, not 1.2.
36013
36014         fdl.texi: revert accidental change to license
36015         * doc/fdl.texi: This is FDL 1.2, not 1.3.
36016
36017 2008-11-10  Bruno Haible  <bruno@clisp.org>
36018
36019         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
36020         cross-compiling guesses also when the native compile gives no result.
36021
36022 2008-11-10  Bruno Haible  <bruno@clisp.org>
36023
36024         * lib/spawni.c (__spawni): Force variable into the stack.
36025
36026 2008-11-10  Bruno Haible  <bruno@clisp.org>
36027
36028         Add support for Haiku.
36029         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
36030         glibc and BeOS, but also on Haiku.
36031         * lib/fpurge.c (fpurge): Likewise.
36032         * lib/freadable.c (freadable): Likewise.
36033         * lib/freadahead.c (freadahead): Likewise.
36034         * lib/freading.c (freading): Likewise.
36035         * lib/freadptr.c (freadptr): Likewise.
36036         * lib/freadseek.c (freadptrinc): Likewise.
36037         * lib/fseeko.c (rpl_fseeko): Likewise.
36038         * lib/fseterr.c (fseterr): Likewise.
36039         * lib/fwritable.c (fwritable): Likewise.
36040         * lib/fwriting.c (fwriting): Likewise.
36041         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
36042
36043 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36044
36045         * lib/config.charset: Treat Haiku like BeOS.
36046
36047 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
36048
36049         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
36050         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
36051
36052 2008-11-08  Bruno Haible  <bruno@clisp.org>
36053
36054         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
36055         AC_CACHE_CHECK.
36056
36057 2008-11-08  Bruno Haible  <bruno@clisp.org>
36058
36059         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
36060
36061 2008-11-08  Bruno Haible  <bruno@clisp.org>
36062
36063         * tests/test-select-fd.c: New file.
36064         * tests/test-select-in.sh: New file.
36065         * tests/test-select-out.sh: New file.
36066         * tests/test-select-stdin.c: New file.
36067         * modules/select-tests (Files): Add the new files.
36068         (Depends-on): Add gettimeofday.
36069         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
36070         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
36071         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
36072
36073 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
36074             Bruno Haible  <bruno@clisp.org>
36075
36076         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
36077
36078 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
36079
36080         * build-aux/pmccabe2html: Added support for C++ source files.
36081
36082 2008-11-05  Ben Pfaff  <blp@gnu.org>
36083
36084         Fix lib/close.c build on Windows.
36085         * modules/close (Files): Add lib/w32sock.h.
36086
36087 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
36088
36089         Accept Bison's NEWS format.
36090         * build-aux/announce-gen (print_news_deltas): Tweak
36091         $re_prefix.
36092
36093 2008-11-04  Bruno Haible  <bruno@clisp.org>
36094
36095         * modules/random_r (Maintainer): Add glibc.
36096
36097 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36098
36099         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
36100         by karl@freefriends.org (Karl Berry).
36101         * doc/alloca.texi: Likewise.
36102         * doc/c-ctype.texi: Likewise.
36103         * doc/c-strcase.texi: Likewise.
36104         * doc/c-strcaseeq.texi: Likewise.
36105         * doc/c-strcasestr.texi: Likewise.
36106         * doc/c-strstr.texi: Likewise.
36107         * doc/c-strtod.texi: Likewise.
36108         * doc/c-strtold.texi: Likewise.
36109         * doc/ctime.texi: Likewise.
36110         * doc/error.texi: Likewise.
36111         * doc/fdl.texi: Likewise.
36112         * doc/gcd.texi: Likewise.
36113         * doc/getdate.texi: Likewise.
36114         * doc/gnulib-intro.texi: Likewise.
36115         * doc/gnulib-tool.texi: Likewise.
36116         * doc/gnulib.texi: Likewise.
36117         * doc/inet_ntoa.texi: Likewise.
36118         * doc/maintain.texi: Likewise.
36119         * doc/make-stds.texi: Likewise.
36120         * doc/quote.texi: Likewise.
36121         * doc/regexprops-generic.texi: Likewise.
36122         * doc/standards.texi: Likewise.
36123         * doc/verify.texi: Likewise.
36124         * doc/visibility.texi: Likewise.
36125         * doc/gnulib.texi (GNU Free Documentation License): Include
36126         fdl-1.3.texi instead of fdl.texi.
36127
36128 2008-11-04  Simon Josefsson  <simon@josefsson.org>
36129
36130         * doc/fdl-1.3.texi: New file, from
36131         <http://www.gnu.org/licenses/fdl-1.3.texi>.
36132         * modules/fdl-1.3: Add.
36133         * MODULES.html.sh: Add fdl-1.3.
36134
36135 2008-11-03  Bruno Haible  <bruno@clisp.org>
36136
36137         Make determination of absolute name of header file work with AIX xlc.
36138         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
36139         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
36140         preprocessing.
36141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36142         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36143
36144 2008-11-03  Simon Josefsson  <simon@josefsson.org>
36145
36146         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
36147         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
36148         <ludo@gnu.org>.
36149
36150 2008-11-02  Bruno Haible  <bruno@clisp.org>
36151
36152         Mark 'strpbrk' obsolete.
36153         * modules/strpbrk (Status, Notice): New sections.
36154         * modules/strtok_r (Depends-on): Add strpbrk.
36155
36156 2008-11-02  Bruno Haible  <bruno@clisp.org>
36157
36158         Mark 'strdup' obsolete.
36159         * modules/strdup (Status, Notice): New sections.
36160         * modules/findprog (Depends-on): Add strdup.
36161         * modules/getaddrinfo (Depends-on): Likewise.
36162         * modules/localename (Depends-on): Likewise.
36163         * modules/relocatable-lib (Depends-on): Likewise.
36164         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
36165         * modules/relocatable-prog (Depends-on): Likewise.
36166         * modules/trim (Depends-on): Likewise.
36167         * modules/unictype/gen-ctype (Depends-on): Likewise.
36168         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36169
36170 2008-11-02  Bruno Haible  <bruno@clisp.org>
36171
36172         Mark 'strcspn' obsolete.
36173         * modules/strcspn (Status, Notice): New sections.
36174
36175 2008-11-02  Bruno Haible  <bruno@clisp.org>
36176
36177         Mark 'rmdir' obsolete.
36178         * modules/rmdir (Status, Notice): New sections.
36179         * modules/clean-temp (Depends-on): Add rmdir.
36180         * modules/openat (Depends-on): Likewise.
36181
36182 2008-11-02  Bruno Haible  <bruno@clisp.org>
36183
36184         Mark 'raise' obsolete.
36185         * modules/raise (Status, Notice): New sections.
36186         (Include): Specify <signal.h>.
36187         * modules/stdio (Depends-on): Add raise.
36188         * modules/write (Depends-on): Likewise.
36189
36190 2008-11-02  Bruno Haible  <bruno@clisp.org>
36191
36192         Mark 'memset' obsolete.
36193         * modules/memset (Status, Notice): New sections.
36194
36195 2008-11-02  Bruno Haible  <bruno@clisp.org>
36196
36197         Mark 'memmove' obsolete.
36198         * modules/memmove (Status, Notice): New sections.
36199         * modules/argp (Depends-on): Add memmove.
36200         * modules/argz (Depends-on): Likewise.
36201         * modules/canonicalize (Depends-on): Likewise.
36202         * modules/canonicalize-lgpl (Depends-on): Likewise.
36203         * modules/fts (Depends-on): Likewise.
36204         * modules/getcwd (Depends-on): Likewise.
36205         * modules/human (Depends-on): Likewise.
36206         * modules/regex (Depends-on): Likewise.
36207         * modules/striconveh (Depends-on): Likewise.
36208         * modules/trim (Depends-on): Likewise.
36209         * modules/unistr/u8-move (Depends-on): Likewise.
36210         * modules/unistr/u16-move (Depends-on): Likewise.
36211         * modules/unistr/u32-move (Depends-on): Likewise.
36212
36213 2008-11-02  Bruno Haible  <bruno@clisp.org>
36214
36215         Mark 'memcpy' obsolete.
36216         * modules/memcpy (Status, Notice): New sections.
36217
36218 2008-11-02  Bruno Haible  <bruno@clisp.org>
36219
36220         Mark 'memcmp' obsolete.
36221         * modules/memcmp (Status, Notice): New sections.
36222         * modules/argmatch (Depends-on): Add memchr.
36223         * modules/backupfile (Depends-on): Likewise.
36224         * modules/c-strcasestr (Depends-on): Likewise.
36225         * modules/crypto/des (Depends-on): Likewise.
36226         * modules/csharpcomp (Depends-on): Likewise.
36227         * modules/fnmatch (Depends-on): Likewise.
36228         * modules/git-merge-changelog (Depends-on): Likewise.
36229         * modules/isnand (Depends-on): Likewise.
36230         * modules/isnand-nolibm (Depends-on): Likewise.
36231         * modules/isnanf (Depends-on): Likewise.
36232         * modules/isnanf-nolibm (Depends-on): Likewise.
36233         * modules/isnanl (Depends-on): Likewise.
36234         * modules/isnanl-nolibm (Depends-on): Likewise.
36235         * modules/mbchar (Depends-on): Likewise.
36236         * modules/memcoll (Depends-on): Likewise.
36237         * modules/quotearg (Depends-on): Likewise.
36238         * modules/regex (Depends-on): Likewise.
36239         * modules/relocatable-prog (Depends-on): Likewise.
36240         * modules/same (Depends-on): Likewise.
36241         * modules/signbit (Depends-on): Likewise.
36242         * modules/strcasestr-simple (Depends-on): Likewise.
36243         * modules/unictype/gen-ctype (Depends-on): Likewise.
36244         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
36245         * modules/uniname/uniname (Depends-on): Likewise.
36246         * modules/unistr/u8-cmp (Depends-on): Likewise.
36247
36248 2008-11-02  Bruno Haible  <bruno@clisp.org>
36249
36250         Mark 'memchr' obsolete.
36251         * modules/memchr (Status, Notice): New sections.
36252         * modules/argp (Depends-on): Add memchr.
36253         * modules/base64 (Depends-on): Likewise.
36254         * modules/c-strcasestr (Depends-on): Likewise.
36255         * modules/chdir-long (Depends-on): Likewise.
36256         * modules/fnmatch (Depends-on): Likewise.
36257         * modules/getsubopt (Depends-on): Likewise.
36258         * modules/git-merge-changelog (Depends-on): Likewise.
36259         * modules/glob (Depends-on): Likewise.
36260         * modules/strcasestr-simple (Depends-on): Likewise.
36261         * modules/strnlen (Depends-on): Likewise.
36262
36263 2008-11-02  Bruno Haible  <bruno@clisp.org>
36264
36265         Mark 'atexit' obsolete.
36266         * modules/atexit (Status, Notice): New sections.
36267         * modules/chdir-long (Depends-on): Add atexit.
36268         * modules/wait-process (Depends-on): Likewise.
36269
36270 2008-11-02  Bruno Haible  <bruno@clisp.org>
36271
36272         * gnulib-tool: New option --with-obsolete.
36273         (func_usage): Document it.
36274         (func_modules_transitive_closure): Drop obsolete dependencies if
36275         incobsolete is not true.
36276         (func_import): Read and save the incobsolete variable to the cache.
36277
36278 2008-11-02  Bruno Haible  <bruno@clisp.org>
36279
36280         * modules/TEMPLATE-EXTENDED: New field 'Status'.
36281         * gnulib-tool: New option --extract-status.
36282         (func_usage): Document it.
36283         (sed_extract_prog): Recognize it.
36284         (func_get_status): New function.
36285
36286 2008-10-30  Simon Josefsson  <simon@josefsson.org>
36287
36288         * modules/sockets (License): Change from LGPL to LGPLv2+.
36289
36290 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36291
36292         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
36293
36294 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36295
36296         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36297         Mention times and sys_times.
36298         * modules/sys_times, modules/sys_times-tests: New modules.
36299         * modules/times, modules/times-tests: Likewise
36300         * m4/sys_times_h.m4: New file.
36301         * lib/sys_times.in.h: Likewise
36302         * lib/times.c: Likewise.
36303         * tests/test-sys_times.c: Likewise.
36304         * tests/test-times.c: Likewise.
36305         * doc/posix-headers/sys_times.texi: Update.
36306         * doc/posix-functions/times.texi: Update.
36307
36308 2008-10-28  Jim Meyering  <meyering@redhat.com>
36309
36310         * modules/tempname (Depends-on): Add lstat.
36311
36312         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
36313
36314 2008-10-28  Simon Josefsson  <simon@josefsson.org>
36315
36316         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
36317         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
36318         using idiom used elsewhere in gnulib.
36319
36320 2008-10-27  Jim Meyering  <meyering@redhat.com>
36321
36322         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
36323
36324 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36325
36326         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
36327         TESTS_ENVIRONMENT, for shell scripts that needs to call built
36328         programs.
36329         * tests/test-argp-2.sh: Use $EXEEXT when needed.
36330
36331 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36332
36333         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36334
36335 2008-10-27  Bruno Haible  <bruno@clisp.org>
36336
36337         * tests/test-lstat.c: Include <stdio.h>.
36338
36339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36340
36341         * modules/lstat-tests: New module.
36342         * tests/test-lstat.c: New file.
36343
36344 2008-10-26  Jim Meyering  <meyering@redhat.com>
36345
36346         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36347
36348 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36349             Bruno Haible  <bruno@clisp.org>
36350
36351         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36352         * modules/configmake (Include): Add a note that the include must come
36353         after all system headers.
36354         * lib/javaversion.c: Include configmake.h after all other includes.
36355
36356 2008-10-26  Bruno Haible  <bruno@clisp.org>
36357
36358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36359         HAVE_STRUCT_RANDOM_DATA to 1.
36360         (gl_STDLIB_H): Simplify.
36361
36362 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36363
36364         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36365         substitute HAVE_STRUCT_RANDOM_DATA.
36366         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36367         random_data.
36368         * modules/stdlib (Makefile.am): Substitute
36369         HAVE_STRUCT_RANDOM_DATA.
36370
36371 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36372
36373         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36374         * doc/gnulib-intro.texi (Copyright): Likewise.
36375
36376 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36377
36378         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36379         findings.
36380
36381 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36382             Bruno Haible  <bruno@clisp.org>
36383
36384         * lib/unistd.in.h: Include <winsock2.h>.
36385         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36386         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36387         Provide dummy declarations.
36388         (gethostname): Override.
36389         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36391         gl_PREREQ_SYS_H_WINSOCK2.
36392         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36393         * doc/posix-functions/gethostname.texi: More details.
36394
36395 2008-10-25  Bruno Haible  <bruno@clisp.org>
36396
36397         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36398         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36399         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36400
36401         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36402         here ...
36403         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36404         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36405         gl_UNISTD_H_DEFAULTS.
36406
36407 2008-10-25  Eric Blake  <ebb9@byu.net>
36408
36409         signbit: avoid spurious compiler failure
36410         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36411         declarations inside function.
36412
36413 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36414             Bruno Haible  <bruno@clisp.org>
36415
36416         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36417         * modules/random_r (Depends-on): Add stdint.
36418
36419 2008-10-24  Bruno Haible  <bruno@clisp.org>
36420
36421         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36422         Eggert.
36423         * modules/strerror (License): Likewise.
36424
36425 2008-10-24  Jim Meyering  <meyering@redhat.com>
36426
36427         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36428         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36429
36430 2008-10-24  Eric Blake  <ebb9@byu.net>
36431
36432         getgroups: fix compilation when getgroups is available
36433         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36434         but with <config.h> override of getgroups disabled.
36435
36436 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36437
36438         * doc/gnulib.texi (Header files): Add note about C++ problems.
36439         Explained by Bruno Haible <bruno@clisp.org>.
36440
36441 2008-10-23  Bruno Haible  <bruno@clisp.org>
36442
36443         Define a dummy SA_NODEFER macro on Interix.
36444         * lib/signal.in.h (SA_NODEFER): Define fallback.
36445         Reported by Aleksey Cheusov <cheusov@tut.by> via
36446         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36447
36448 2008-10-23  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/freadahead (License): Change to LGPLv2+.
36451         Suggested by Simon Josefsson.
36452
36453 2008-10-23  Jim Meyering  <meyering@redhat.com>
36454
36455         random_r: new module
36456         * modules/random_r: New file.
36457         * m4/random_r.m4: New file.
36458         * lib/random_r.c: New file, from glibc.
36459         * modules/random_r-tests: New file.
36460         * tests/test-random_r.c: New file.
36461         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36462          Declare.
36463         (RAND_MAX): Define.
36464         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36465         * modules/stdlib: Substitute them, too.
36466         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36467         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36468         * doc/glibc-functions/random_r.texi: Likewise.
36469         * doc/glibc-functions/setstate_r.texi: Likewise.
36470         * doc/glibc-functions/srandom_r.texi: Likewise.
36471         * config/srclist.txt: Mention it.
36472
36473 2008-10-23  David Lutterkort  <lutter@redhat.com>
36474
36475         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36476         link requirement
36477
36478 2008-10-23  Jim Meyering  <meyering@redhat.com>
36479
36480         selinux-h: mark parameters of stub functions as intentionally unused
36481         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36482         * lib/se-context.in.h: Likewise.
36483
36484 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36485
36486         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36487
36488 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36489
36490         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36491
36492 2008-10-22  Eric Blake  <ebb9@byu.net>
36493
36494         glthread/thread: avoid compiler warning
36495         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36496         Add unreachable abort to silence compiler.
36497
36498 2008-10-22  Eric Blake  <ebb9@byu.net>
36499
36500         netdb: also supply struct addrinfo for cygwin 1.5.x
36501         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36502         older cygwin.
36503         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36504         cygwin.
36505         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36506
36507 2008-10-22  Bruno Haible  <bruno@clisp.org>
36508
36509         * users.txt: Update entry about pspp.
36510
36511 2008-10-21  Bruno Haible  <bruno@clisp.org>
36512
36513         Simplification.
36514         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36515         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36516
36517         Simplification.
36518         * lib/ioctl.c (ioctl): Don't undefine.
36519         * lib/socket.c (socket): Don't undefine.
36520
36521         Remove unused module indicator macros.
36522         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36523         GNULIB_$1 as a C macro.
36524
36525         * doc/posix-functions/close.texi: Undo last change.
36526         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36527         Windows platforms.
36528
36529 2008-10-21  Bruno Haible  <bruno@clisp.org>
36530
36531         Add gethostname() declaration to <unistd.h>.
36532         * lib/unistd.in.h (gethostname): New declaration.
36533         * lib/gethostname.c: Include <unistd.h>.
36534         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36535         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36537         and HAVE_GETHOSTNAME.
36538         * modules/gethostname (Depends-on): Add unistd.
36539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36540         (Include): Specify <unistd.h>.
36541         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36542         HAVE_GETHOSTNAME.
36543         * tests/test-gethostname.c: Include <unistd.h> first.
36544
36545 2008-10-21  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36548         * modules/select-tests (Depends-on): Likewise.
36549         Reported by Simon Josefsson.
36550
36551 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36552
36553         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36554         * lib/accept.c: New file, based on winsock.c.
36555         * lib/bind.c: New file, based on winsock.c.
36556         * lib/connect.c: New file, based on winsock.c.
36557         * lib/getpeername.c: New file, based on winsock.c.
36558         * lib/getsockname.c: New file, based on winsock.c.
36559         * lib/getsockopt.c: New file, based on winsock.c.
36560         * lib/ioctl.c: New file, based on winsock.c.
36561         * lib/listen.c: New file, based on winsock.c.
36562         * lib/recv.c: New file, based on winsock.c.
36563         * lib/recvfrom.c: New file, based on winsock.c.
36564         * lib/send.c: New file, based on winsock.c.
36565         * lib/sendto.c: New file, based on winsock.c.
36566         * lib/setsockopt.c: New file, based on winsock.c.
36567         * lib/shutdown.c: New file, based on winsock.c.
36568         * lib/socket.c: New file, based on winsock.c.
36569         * lib/w32sock.h: New file, based on winsock.c.
36570         * lib/winsock.c: Remove file.
36571         * modules/accept: Likewise.
36572         * modules/bind: Likewise.
36573         * modules/connect: Likewise.
36574         * modules/getpeername: Likewise.
36575         * modules/getsockname: Likewise.
36576         * modules/getsockopt: Likewise.
36577         * modules/ioctl: Likewise.
36578         * modules/listen: Likewise.
36579         * modules/recv: Likewise.
36580         * modules/recvfrom: Likewise.
36581         * modules/send: Likewise.
36582         * modules/sendto: Likewise.
36583         * modules/setsockopt: Likewise.
36584         * modules/shutdown: Likewise.
36585         * modules/socket: Use socket.c instead of winsock.c.
36586         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36587         * doc/posix-functions/accept.texi: Doc fix.
36588         * doc/posix-functions/bind.texi: Doc fix.
36589         * doc/posix-functions/close.texi: Doc fix.
36590         * doc/posix-functions/connect.texi: Doc fix.
36591         * doc/posix-functions/getpeername.texi: Doc fix.
36592         * doc/posix-functions/getsockname.texi: Doc fix.
36593         * doc/posix-functions/getsockopt.texi: Doc fix.
36594         * doc/posix-functions/ioctl.texi: Doc fix.
36595         * doc/posix-functions/listen.texi: Doc fix.
36596         * doc/posix-functions/recv.texi: Doc fix.
36597         * doc/posix-functions/recvfrom.texi: Doc fix.
36598         * doc/posix-functions/send.texi: Doc fix.
36599         * doc/posix-functions/sendto.texi: Doc fix.
36600         * doc/posix-functions/setsockopt.texi: Doc fix.
36601         * doc/posix-functions/shutdown.texi: Doc fix.
36602         * doc/posix-functions/socket.texi: Doc fix.
36603
36604 2008-10-20  Bruno Haible  <bruno@clisp.org>
36605
36606         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36607         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36608         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36609         as an alias for SIGABRT.
36610         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36611         (sigaction): Map it to SIGABRT.
36612         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36613
36614 2008-10-20  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/fts.c: Don't include lstat.h.
36617         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36618
36619         Move the lstat() declaration to <sys/stat.h>.
36620         * lib/lstat.h: Remove file.
36621         * lib/sys_stat.in.h: Add special invocation convention.
36622         (lstat): New declaration.
36623         * lib/lstat.c (orig_lstat): New function.
36624         (rpl_lstat): Use orig_lstat instead of lstat.
36625         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36626         AC_C_INLINE. Set REPLACE_LSTAT.
36627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36628         and REPLACE_LSTAT.
36629         * modules/lstat (Files): Remove lib/lstat.h.
36630         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36631         (Include): Specify <sys/stat.h> instead of lstat.h.
36632         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36633         REPLACE_LSTAT.
36634         * NEWS: Mention the change.
36635
36636 2008-10-20  Bruno Haible  <bruno@clisp.org>
36637
36638         * modules/posix_spawn-tests: New file.
36639         * tests/test-posix_spawn3.c: New file.
36640
36641 2008-10-20  Bruno Haible  <bruno@clisp.org>
36642
36643         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36644         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36645         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36646         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36647         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36648
36649 2008-10-20  Bruno Haible  <bruno@clisp.org>
36650
36651         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36652         of posix_spawn on AIX 5.3.
36653
36654 2008-10-20  Bruno Haible  <bruno@clisp.org>
36655
36656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36657
36658 2008-10-20  Bruno Haible  <bruno@clisp.org>
36659
36660         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36661         of AC_LANG_PROGRAM.
36662
36663 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36664
36665         * lib/netdb.in.h: Don't define GNU specific constants until they
36666         are supported or needed.  Reported by Bruno Haible
36667         <bruno@clisp.org>.
36668
36669 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36670
36671         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36672
36673 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36674
36675         * lib/getaddrinfo.h: Remove file.
36676         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36677         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36678         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36679         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36680         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36681         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36682         * tests/test-getaddrinfo.c: Likewise.
36683         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36684         * NEWS: Mention change.
36685
36686 2008-10-19  Bruno Haible  <bruno@clisp.org>
36687
36688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36689
36690 2008-10-19  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/wait-process.c: Include simply <sys/wait.h>.
36693         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36694         WIFSTOPPED): Remove fallback definitions.
36695         * modules/wait-process (Depends-on): Add sys_wait.
36696
36697         New module 'sys_wait'.
36698         * modules/sys_wait: New file.
36699         * lib/sys_wait.in.h: New file, partially copied from
36700         lib/wait-process.c.
36701         * m4/sys_wait_h.m4: New file.
36702         * doc/posix-headers/sys_wait.texi: Mention the new module.
36703
36704 2008-10-19  Bruno Haible  <bruno@clisp.org>
36705
36706         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36707
36708 2008-10-19  Bruno Haible  <bruno@clisp.org>
36709
36710         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36711         * lib/wait-process.c (WAIT_T): Remove type.
36712         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36713         (wait_subprocess): Update.
36714
36715 2008-10-19  Bruno Haible  <bruno@clisp.org>
36716
36717         New module 'atoll'.
36718         * modules/atoll: New file.
36719         * lib/stdlib.in.h (atoll): New declaration.
36720         * lib/atoll.c: New file, from glibc with modifications.
36721         * m4/atoll.m4: New file.
36722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36723         HAVE_ATOLL.
36724         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36725         * doc/posix-functions/atoll.texi: Mention the new module.
36726
36727 2008-10-19  Bruno Haible  <bruno@clisp.org>
36728
36729         Add strtoull() declaration to <stdlib.h>.
36730         * lib/stdlib.in.h (strtoull): New declaration.
36731         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36732         Set HAVE_STRTOULL.
36733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36734         HAVE_STRTOULL.
36735         * modules/strtoull (Depends-on): Add stdlib.
36736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36737         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36738         HAVE_STRTOULL.
36739
36740 2008-10-19  Bruno Haible  <bruno@clisp.org>
36741
36742         Add strtoll() declaration to <stdlib.h>.
36743         * lib/stdlib.in.h (strtoll): New declaration.
36744         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36745         Set HAVE_STRTOLL.
36746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36747         HAVE_STRTOLL.
36748         * modules/strtoll (Depends-on): Add stdlib.
36749         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36750         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36751
36752 2008-10-19  Bruno Haible  <bruno@clisp.org>
36753
36754         * modules/bcopy (Depends-on): Add strings.
36755         (Include): Specify <strings.h>.
36756
36757 2008-10-19  Bruno Haible  <bruno@clisp.org>
36758
36759         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36760
36761 2008-10-19  Bruno Haible  <bruno@clisp.org>
36762
36763         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36764         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36765         mingw.
36766
36767 2008-10-19  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/atanl.c: Don't include isnanl.h.
36770         * lib/cosl.c: Likewise.
36771         * lib/ldexpl.c: Likewise.
36772         * lib/logl.c: Likewise.
36773         * lib/sinl.c: Likewise.
36774         * lib/sqrtl.c: Likewise.
36775         * lib/tanl.c: Likewise.
36776
36777         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36778         * lib/isnanf.h: Remove file.
36779         * lib/isnand.h: Remove file.
36780         * lib/isnanl.h: Remove file.
36781         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36782         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36783         macros.
36784         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36785         HAVE_ISNANF, don't define it as a C macro.
36786         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36787         HAVE_ISNAND, don't define it as a C macro.
36788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36789         HAVE_ISNANL, don't define it as a C macro.
36790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36791         HAVE_ISNAN[FDL].
36792         * modules/isnanf (Files): Remove lib/isnanf.h.
36793         (Depends-on): Add math.
36794         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36795         (Include): Specify <math.h> instead of isnanf.h.
36796         * modules/isnand (Files): Remove lib/isnand.h.
36797         (Depends-on): Add math.
36798         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36799         (Include): Specify <math.h> instead of isnand.h.
36800         * modules/isnanl (Files): Remove lib/isnanl.h.
36801         (Depends-on): Add math.
36802         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36803         (Include): Specify <math.h> instead of isnanl.h.
36804         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36805         HAVE_ISNAN[FDL].
36806         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36807         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36808         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36809         * NEWS: Mention the change.
36810
36811 2008-10-18  Bruno Haible  <bruno@clisp.org>
36812
36813         Add getusershell(), setusershell(), endusershell() declarations to
36814         <unistd.h>.
36815         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36816         declarations.
36817         * lib/getusershell.c: Include unistd.h.
36818         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36819         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36820         HAVE_GETUSERSHELL.
36821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36822         and HAVE_GETUSERSHELL.
36823         * modules/getusershell (Depends-on): Add unistd, extensions.
36824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36825         (Include): Specify <unistd.h>.
36826         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36827         HAVE_GETUSERSHELL.
36828
36829 2008-10-18  Bruno Haible  <bruno@clisp.org>
36830
36831         Add a getloadavg() declaration to <stdlib.h>.
36832         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36833         getloadavg declaration.
36834         (getloadavg): New declaration.
36835         * lib/getloadavg.c: Include <stdlib.h> first.
36836         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36837         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36838         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36840         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36841         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36843         (Include): Specify <stdlib.h>.
36844         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36845         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36846
36847 2008-10-18  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/dirchownmod.c: Don't include lchmod.h.
36850
36851         Move the lchmod() declaration to <sys/stat.h>.
36852         * lib/lchmod.h: Remove file.
36853         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36854         (lchmod): New declaration, moved here from lib/lchown.h.
36855         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36856         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36857         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36858         and HAVE_LCHMOD.
36859         * modules/lchmod (Files): Remove lib/lchmod.h.
36860         (Depends-on): Add sys_stat, extensions.
36861         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36862         (Include): Specify <sys/stat.h> instead of lchmod.h.
36863         * modules/sys_stat (Depends-on): Add link-warning.
36864         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36865         definition of GL_LINK_WARNING.
36866         * NEWS: Mention the change.
36867
36868 2008-10-18  Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/fchdir.c: Don't include dirfd.h.
36871         * lib/fts.c: Likewise.
36872         * lib/getcwd.c: Likewise.
36873         * lib/glob.c: Likewise.
36874
36875         Move the dirfd() declaration to <dirent.h>.
36876         * lib/dirfd.h: Remove file.
36877         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36878         (dirfd): New declaration.
36879         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36880         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36881         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36882         HAVE_DECL_DIRFD.
36883         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36884         HAVE_DECL_DIRFD.
36885         * modules/dirfd (Files): Remove lib/dirfd.h.
36886         (Depends-on): Add dirent, extensions.
36887         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36888         (Include): Specify <dirent.h> instead of dirfd.h.
36889         * modules/dirent (Depends-on): Add link-warning.
36890         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36891         definition of GL_LINK_WARNING.
36892         * NEWS: Mention the change.
36893
36894 2008-10-18  Bruno Haible  <bruno@clisp.org>
36895
36896         Move the euidaccess() declaration to <unistd.h>.
36897         * lib/euidaccess.h: Remove file.
36898         * lib/unistd.in.h (euidaccess): New declaration.
36899         * lib/euidaccess.c: Don't include euidaccess.h.
36900         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36901         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36903         and HAVE_EUIDACCESS.
36904         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36905         (Depends-on): Add unistd.
36906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36907         (Include): Specify <unistd.h> instead of euidaccess.h.
36908         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36909         HAVE_EUIDACCESS.
36910         * NEWS: Mention the change.
36911
36912 2008-10-18  Bruno Haible  <bruno@clisp.org>
36913
36914         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36915
36916         Move the getdomainname() declaration to <unistd.h>.
36917         * lib/getdomainname.h: Remove file.
36918         * lib/unistd.in.h (getdomainname): New declaration.
36919         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36920         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36921         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36922         HAVE_GETDOMAINNAME.
36923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36924         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36925         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36926         (Depends-on): Add unistd, extensions.
36927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36928         (Includes): Specify <unistd.h> instead of getdomainname.h.
36929         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36930         HAVE_GETDOMAINNAME.
36931         * NEWS: Mention the change.
36932
36933 2008-10-18  Bruno Haible  <bruno@clisp.org>
36934
36935         * modules/dirent: New file.
36936         * m4/dirent_h.m4: New file.
36937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36938         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36939         * modules/fchdir (Files): Remove lib/dirent.in.h.
36940         (Depends-on): Add dirent.
36941         (Makefile.am): Move rules to modules/dirent.
36942         * doc/posix-headers/dirent.texi: Mention the new module.
36943
36944 2008-10-18  Bruno Haible  <bruno@clisp.org>
36945
36946         Avoid -Wunused-parameter warnings in public gnulib header files.
36947         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36948         macro.
36949         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36950
36951 2008-10-18  Bruno Haible  <bruno@clisp.org>
36952
36953         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36954         * doc/glibc-functions/error.texi: Mention the module 'error'.
36955         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36956         * doc/glibc-functions/getdomainname.texi: Mention the module
36957         'getdomainname'.
36958         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36959         * doc/glibc-functions/getpagesize.texi: Mention the module
36960         'getpagesize'.
36961         * doc/glibc-functions/getusershell.texi: Mention the module
36962         'getusershell'.
36963         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36964         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36965         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36966         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36967         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36968         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36969         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36970         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36971         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36972         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36973         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36974         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36975         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36976         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36977
36978 2008-10-17  Bruno Haible  <bruno@clisp.org>
36979
36980         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36981         HP-UX and IRIX, use -0.0L.
36982         * tests/test-ceill.c (minus_zero): Likewise.
36983         * tests/test-floorl.c (minus_zero): Likewise.
36984         * tests/test-frexpl.c (minus_zero): Likewise.
36985         * tests/test-isnan.c (minus_zerol): Likewise.
36986         * tests/test-isnanl.h (minus_zero): Likewise.
36987         * tests/test-ldexpl.c (minus_zero): Likewise.
36988         * tests/test-roundl.c (minus_zero): Likewise.
36989         * tests/test-signbit.c (minus_zerol): Likewise.
36990         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36991         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36992         * tests/test-truncl.c (minus_zero): Likewise.
36993         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36994         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36995         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36996         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36997
36998 2008-10-17  Bruno Haible  <bruno@clisp.org>
36999
37000         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
37001         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
37002         that it gets activated only for gcc >= 3.0.
37003         * lib/dirent.in.h: Likewise.
37004         * lib/errno.in.h: Likewise.
37005         * lib/fcntl.in.h: Likewise.
37006         * lib/float.in.h: Likewise.
37007         * lib/iconv.in.h: Likewise.
37008         * lib/inttypes.in.h: Likewise.
37009         * lib/locale.in.h: Likewise.
37010         * lib/math.in.h: Likewise.
37011         * lib/netdb.in.h: Likewise.
37012         * lib/netinet_in.in.h: Likewise.
37013         * lib/search.in.h: Likewise.
37014         * lib/signal.in.h: Likewise.
37015         * lib/spawn.in.h: Likewise.
37016         * lib/stdarg.in.h: Likewise.
37017         * lib/stdint.in.h: Likewise.
37018         * lib/stdio.in.h: Likewise.
37019         * lib/stdlib.in.h: Likewise.
37020         * lib/string.in.h: Likewise.
37021         * lib/strings.in.h: Likewise.
37022         * lib/sys_file.in.h: Likewise.
37023         * lib/sys_ioctl.in.h: Likewise.
37024         * lib/sys_select.in.h: Likewise.
37025         * lib/sys_socket.in.h: Likewise.
37026         * lib/sys_stat.in.h: Likewise.
37027         * lib/sys_time.in.h: Likewise.
37028         * lib/sysexits.in.h: Likewise.
37029         * lib/time.in.h: Likewise.
37030         * lib/unistd.in.h: Likewise.
37031         * lib/wchar.in.h: Likewise.
37032         * lib/wctype.in.h: Likewise.
37033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37034
37035 2008-10-17  Jim Meyering  <meyering@redhat.com>
37036
37037         ignore-value: don't depend on inline module
37038         * modules/ignore-value (Depends-on): Remove 'inline'.
37039         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
37040         Suggestion from Bruno Haible.
37041
37042 2008-10-17  Bruno Haible  <bruno@clisp.org>
37043
37044         New implementation of condition variables for Win32.
37045         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
37046         (gl_linked_waitqueue_t): New type.
37047         (gl_cond_t): Use it.
37048         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
37049         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
37050         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
37051         (glthread_cond_init_func, glthread_cond_wait_func,
37052         glthread_cond_timedwait_func, glthread_cond_signal_func,
37053         glthread_cond_broadcast_func, glthread_cond_destroy_func):
37054         Reimplemented on the basis of gl_linked_waitqueue_t.
37055         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
37056         gl_waitqueue_t.
37057         (gl_rwlock_t): Update.
37058         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
37059
37060 2008-10-17  Simon Josefsson  <simon@josefsson.org>
37061
37062         * modules/recvfrom (Depends-on): Add dependency on getpeername.
37063         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37064
37065 2008-10-17  Jim Meyering  <meyering@redhat.com>
37066
37067         ignore-value: new module
37068         * modules/ignore-value: New file.
37069         * lib/ignore-value.h: New file.
37070         * MODULES.html.sh (Compiler warning management): New section,
37071         just for this module.  More to come.
37072
37073 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37074
37075         open-safer.c: avoid 'signed and unsigned in conditional...' warning
37076         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
37077         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
37078
37079 2008-10-16  Jim Meyering  <meyering@redhat.com>
37080
37081         openat-die.c: avoid 'no previous prototype' warning
37082         * lib/openat-die.c: Include "openat.h".
37083         Reported by Reuben Thomas <rrt@sc3d.org>.
37084
37085 2008-10-16  Simon Josefsson  <simon@josefsson.org>
37086
37087         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
37088         * lib/netdb.in.h: Fix typo.
37089         Reported by Bruno Haible  <bruno@clisp.org>
37090
37091         * lib/netdb.in.h: Include sys/socket.h for platforms without
37092         netdb.h, to get structures like hostent on MinGW.
37093         * modules/netdb (Depends-on): Add sys_socket.
37094
37095 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37096
37097         * modules/netdb, modules/netdb-tests: New file.
37098         * m4/netdb_h.m4: New file.
37099         * lib/netdb.in.h: Add, currently just an empty file pending
37100         definitions.
37101         * tests/test-netdb.c: New file.
37102         * doc/posix-headers/netdb.texi: Mention that we replace it if
37103         needed.
37104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37105         netdb.
37106
37107 2008-10-15  Simon Josefsson  <simon@josefsson.org>
37108
37109         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
37110         with code.
37111
37112 2008-10-13  Bruno Haible  <bruno@clisp.org>
37113
37114         * lib/glthread/cond.c (glthread_cond_wait_func,
37115         glthread_cond_timedwait_func): Add a comment.
37116
37117 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37118
37119         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
37120         * tests/test-select.c: Likewise,
37121
37122 2008-10-13  Bruno Haible  <bruno@clisp.org>
37123
37124         * lib/glthread/cond.c (glthread_cond_wait_func,
37125         glthread_cond_timedwait_func): Fix variable name.
37126         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37127
37128 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
37129
37130         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
37131         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
37132         struct sockaddr.sa_len.
37133         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
37134
37135 2008-10-13  Simon Josefsson  <simon@josefsson.org>
37136
37137         * build-aux/pmccabe2html: Add css and css_url parameters.
37138
37139 2008-10-12  Bruno Haible  <bruno@clisp.org>
37140
37141         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
37142         calling aclx_get.
37143         Reported by Rainer Tammer <tammer@tammer.net>.
37144
37145 2008-10-12  Bruno Haible  <bruno@clisp.org>
37146
37147         Use msvcrt aware primitives for creation/termination of Win32 threads.
37148         * lib/glthread/thread.c: Include <process.h>.
37149         (glthread_create_func): Use _beginthreadex instead of CreateThread.
37150         (wrapper_func): Update signature.
37151         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
37152
37153 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37154             Bruno Haible  <bruno@clisp.org>
37155
37156         Provide a Win32 implementation of the 'cond' module.
37157         * lib/glthread/cond.h [USE_WIN32]: New implementation.
37158         * lib/glthread/cond.c (glthread_cond_init_func,
37159         glthread_cond_wait_func, glthread_cond_timedwait_func,
37160         glthread_cond_signal_func, glthread_cond_broadcast_func,
37161         glthread_cond_destroy_func) [USE_WIN32]: New functions.
37162         * modules/cond (Dependencies): Add gettimeofday.
37163
37164 2008-10-11  Bruno Haible  <bruno@clisp.org>
37165
37166         Make sleep work on older versions of mingw.
37167         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
37168         only whether it exists.
37169         * doc/posix-functions/sleep.texi: Mention the problem with older
37170         versions of mingw.
37171
37172 2008-10-11  Bruno Haible  <bruno@clisp.org>
37173
37174         New module 'shutdown'.
37175         * modules/shutdown: New file.
37176         * lib/sys_socket.in.h (shutdown): New declaration.
37177         * lib/winsock.c (shutdown): New function.
37178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37179         GNULIB_SHUTDOWN.
37180         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
37181         * doc/posix-functions/shutdown.texi: Document the new module.
37182
37183 2008-10-11  Jim Meyering  <meyering@redhat.com>
37184
37185         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
37186
37187 2008-10-11  Bruno Haible  <bruno@clisp.org>
37188
37189         New module 'fclose'.
37190         * modules/fclose: New file.
37191         * lib/stdio.in.h (fclose): New declaration.
37192         * lib/fclose.c: New file.
37193         * m4/fclose.m4: New file.
37194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
37195         REPLACE_FCLOSE.
37196         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
37197         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
37198         REPLACE_FCLOSE.
37199         * modules/close (Depends-on): fclose.
37200         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
37201
37202 2008-10-11  Bruno Haible  <bruno@clisp.org>
37203
37204         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
37205         set errno and don't call _close.
37206
37207 2008-10-10  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
37210         ACL, not afterwards. Fixes test failure on Cygwin.
37211
37212 2008-10-09  Ben Pfaff  <blp@gnu.org>
37213
37214         * build-aux/announce-gen: Fix gnulib version related part of usage
37215         message.  Die with a useful error message if no tarballs are
37216         found.
37217
37218 2008-10-10  Jim Meyering  <meyering@redhat.com>
37219
37220         bootstrap: use git's --depth=N option only if it's supported
37221         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
37222         recognize the --depth option.  Reported by Pádraig Brady.
37223
37224 2008-10-09  Bruno Haible  <bruno@clisp.org>
37225
37226         New module 'ioctl'.
37227         * modules/ioctl: New file.
37228         * lib/sys_socket.in.h (ioctl): Remove declaration.
37229         * lib/winsock.c: Include <sys/ioctl.h>.
37230         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
37231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37232         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
37233         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
37234         * doc/posix-functions/ioctl.texi: Mention the new module.
37235
37236 2008-10-09  Bruno Haible  <bruno@clisp.org>
37237
37238         New module 'sys_ioctl'.
37239         * lib/sys_ioctl.in.h: New file.
37240         * m4/sys_ioctl_h.m4: New file.
37241         * modules/sys_ioctl: New file.
37242         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
37243
37244 2008-10-09  Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
37247         * lib/winsock.c: Include <stdarg.h>.
37248         (rpl_ioctl): Change to second argument 'int' and then varargs.
37249
37250 2008-10-09  Bruno Haible  <bruno@clisp.org>
37251
37252         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
37253         when the sys_socket module is present and the system has <winsock2.h>.
37254
37255 2008-10-09  Bruno Haible  <bruno@clisp.org>
37256
37257         * doc/posix-functions/close.texi: Mention module 'close' instead of
37258         module 'sys_socket'.
37259
37260 2008-10-09  Bruno Haible  <bruno@clisp.org>
37261
37262         * doc/glibc-headers/sys_ioctl.texi: New file.
37263         * doc/gnulib.texi: Include it.
37264
37265 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37266             Bruno Haible  <bruno@clisp.org>
37267
37268         Combine the two replacements of 'close'.
37269         * lib/sys_socket.in.h (close): Define to a reminder to include
37270         <unistd.h>.
37271         (_gl_close_fd_maybe_socket): New declaration.
37272         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
37273         * lib/winsock.c (close): Remove undefinition.
37274         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
37275         needed for the gnulib module 'close'.
37276         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
37277         define to an error symbol or to a warning, if suitable.
37278         * lib/close.c: Include <sys/socket.h>.
37279         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
37280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
37281         UNISTD_H_HAVE_WINSOCK2_H.
37282         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
37283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37284         UNISTD_H_HAVE_WINSOCK2_H.
37285         * modules/sys_socket (Files): Add m4/unistd_h.m4.
37286         (configure.ac): Set a module indicator.
37287         (Makefile.am): Substitute GNULIB_CLOSE.
37288         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
37289         * modules/poll-tests (Depends-on): Add close.
37290         * modules/select-tests (Depends-on): Likewise.
37291
37292 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37293             Bruno Haible  <bruno@clisp.org>
37294
37295         New module 'close'.
37296         * modules/close: New file.
37297         * lib/unistd.in.h (close): Move declaration out of the
37298         FCHDIR_REPLACEMENT scope.
37299         (_gl_unregister_fd): New declaration.
37300         * lib/close.c: New file.
37301         * lib/fchdir.c (rpl_close): Remove function.
37302         * m4/close.m4: New file.
37303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37304         close.
37305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
37306         REPLACE_CLOSE.
37307         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
37308         REPLACE_CLOSE.
37309         * modules/fchdir (Depends-on): Add close.
37310
37311 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37312             Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/fcntl.in.h (open): Simplify conditionals.
37315         (_gl_register_fd): New declaration.
37316         * lib/fchdir.c (rpl_open): Remove function.
37317         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
37318         also.
37319         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
37320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
37321         open.
37322
37323 2008-10-09  Jim Meyering  <meyering@redhat.com>
37324
37325         GNUmakefile: use the more name-space-friendly "_version"
37326         * top/GNUmakefile (_dummy): Update.
37327         (_version): Rename from "version".
37328
37329 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37330             Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37333         rpl_close.
37334         (_gl_register_fd): New function, extracted from rpl_open.
37335         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37336         (rpl_open, rpl_opendir): Use _gl_register_fd.
37337
37338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37339
37340         Fix organization of 'open' replacement.
37341         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37342         (gl_FUNC_OPEN): Use it.
37343         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37344
37345 2008-10-08  Bruno Haible  <bruno@clisp.org>
37346
37347         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37348
37349 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37350
37351         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37352         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37353         listen).
37354
37355 2008-10-08  Eric Blake  <ebb9@byu.net>
37356
37357         GNUmakefile: add 'make version' target
37358         * top/GNUmakefile (_curr-ver): Split version update rules...
37359         (version): ...into a target.
37360
37361 2008-10-07  Bruno Haible  <bruno@clisp.org>
37362
37363         Use a more portable replacement expression for -0.0L.
37364         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37365         instead of -0.0L. Fix m4 quotation.
37366
37367         * tests/test-signbit.c: Include <float.h>.
37368         (minus_zero): New variable.
37369         (test_signbitl): Use minus_zero instead of -zero.
37370         * modules/signbit-tests (Depends-on): Add float.
37371
37372         * tests/test-ceill.c: Include <float.h>.
37373         (zero): Remove variable.
37374         (minus_zero): New variable.
37375         (main): Use minus_zero instead of -zero.
37376         * modules/ceill-tests (Depends-on): Add float.
37377
37378         * tests/test-floorl.c: Include <float.h>.
37379         (zero): Remove variable.
37380         (minus_zero): New variable.
37381         (main): Use minus_zero instead of -zero.
37382         * modules/floorl-tests (Depends-on): Add float.
37383
37384         * tests/test-roundl.c: Include <float.h>.
37385         (zero): Remove variable.
37386         (minus_zero): New variable.
37387         (main): Use minus_zero instead of -zero.
37388         * modules/roundl-tests (Depends-on): Add float.
37389
37390         * tests/test-truncl.c: Include <float.h>.
37391         (zero): Remove variable.
37392         (minus_zero): New variable.
37393         (main): Use minus_zero instead of -zero.
37394         * modules/truncl-tests (Depends-on): Add float.
37395
37396         * tests/test-frexpl.c (zero): Remove variable.
37397         (minus_zero): New variable.
37398         (main): Use minus_zero instead of -zero.
37399         * modules/frexpl-tests (Depends-on): Add float.
37400
37401         * tests/test-isnan.c (zerol): Remove variable.
37402         (minus_zerol): New variable.
37403         (test_long_double): Use minus_zerol instead of -zerol.
37404         * modules/isnan-tests (Depends-on): Add float.
37405
37406         * tests/test-isnanl.h (zero): Remove variable.
37407         (minus_zero): New variable.
37408         (main): Use minus_zero instead of -zero.
37409         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37410         * modules/isnanl-tests (Depends-on): Add float.
37411
37412         * tests/test-ldexpl.c (zero): Remove variable.
37413         (minus_zero): New variable.
37414         (main): Use minus_zero instead of -zero.
37415         * modules/ldexpl-tests (Depends-on): Add float.
37416
37417         * tests/test-snprintf-posix.h (zerol): Remove variable.
37418         (minus_zerol): New variable.
37419         (test_function): Use minus_zerol instead of -zerol.
37420         * modules/snprintf-posix-tests (Depends-on): Add float.
37421         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37422
37423         * tests/test-sprintf-posix.h (zerol): Remove variable.
37424         (minus_zerol): New variable.
37425         (test_function): Use minus_zerol instead of -zerol.
37426         * modules/sprintf-posix-tests (Depends-on): Add float.
37427         * modules/vsprintf-posix-tests (Depends-on): Add float.
37428
37429         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37430         (minus_zerol): New variable.
37431         (test_function): Use minus_zerol instead of -zerol.
37432         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37433
37434         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37435         (minus_zerol): New variable.
37436         (test_function): Use minus_zerol instead of -zerol.
37437         * modules/vasprintf-posix-tests (Depends-on): Add float.
37438
37439 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37440
37441         * MODULES.html.sh (Support for building documentation): Mention
37442         pmccabe2html.  Sort entries.
37443
37444         Add pmccabe2html module, from gnupdf.
37445         * build-aux/pmccabe.css: New file.
37446         * build-aux/pmccabe2html: New file.
37447         * m4/pmccabe2html.m4: New file.
37448         * modules/pmccabe2html: New file.
37449
37450 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37451
37452         flock: new module
37453         * MODULES.html.sh: Add to list of modules.
37454         * lib/flock.c: flock implementation for Windows and Unix systems
37455         which have fcntl.
37456         * doc/glibc-functions/flock.texi: Update documentation.
37457         * lib/sys_file.in.h: <sys/file.h> header file.
37458         * m4/flock.m4: M4 macros.
37459         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37460         * modules/flock: flock module.
37461         * modules/flock-tests: flock tests module.
37462         * modules/sys_file: sys/file.h module.
37463         * tests/test-flock.c: test suite for flock.
37464
37465 2008-10-06  Jim Meyering  <meyering@redhat.com>
37466
37467         bootstrap: check for LT_INIT more portably still ;-)
37468         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37469         Spotted by Bruno Haible.
37470
37471 2008-10-06  Eric Blake  <ebb9@byu.net>
37472
37473         test-signbit: avoid tripping Irix cc bug on -0.0L
37474         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37475         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37476         entire testsuite consistent and avoids an Irix 6.2 bug.
37477
37478 2008-10-05  Bruno Haible  <bruno@clisp.org>
37479             Jim Meyering  <jim@meyering.net>
37480
37481         Add an option for ignoring EPIPE during close_stdout.
37482         * lib/closeout.h: Include <stdbool.h>.
37483         (close_stdout_set_ignore_EPIPE): New declaration.
37484         * lib/closeout.c: Include <stdbool.h>.
37485         (ignore_EPIPE): New variable.
37486         (close_stdout_set_ignore_EPIPE): New function.
37487         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37488         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37489         failure.
37490         * modules/closeout (Depends-on): Add stdbool.
37491
37492 2008-10-05  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/accept: New file.
37495         * modules/bind: New file.
37496         * modules/connect: New file.
37497         * modules/getpeername: New file.
37498         * modules/getsockname: New file.
37499         * modules/getsockopt: New file.
37500         * modules/listen: New file.
37501         * modules/recv: New file.
37502         * modules/recvfrom: New file.
37503         * modules/send: New file.
37504         * modules/sendto: New file.
37505         * modules/setsockopt: New file.
37506         * modules/socket: New file.
37507         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37508         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37509         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37510         the particular module is requested. Add a link warning when the
37511         particular module is not requested.
37512         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37513         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37514         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37515         the particular module is requested.
37516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37517         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37518         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37519         * modules/sys_socket (Depends-on): Add link-warning.
37520         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37521         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37522         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37523         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37524         GL_LINK_WARNING.
37525         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37526         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37527         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37528         * doc/posix-functions/getpeername.texi: Mention the new module
37529         'getpeername'.
37530         * doc/posix-functions/getsockname.texi: Mention the new module
37531         'getsockname'.
37532         * doc/posix-functions/getsockopt.texi: Mention the new module
37533         'getsockopt'.
37534         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37535         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37536         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37537         * doc/posix-functions/send.texi: Mention the new module 'send'.
37538         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37539         * doc/posix-functions/setsockopt.texi: Mention the new module
37540         'setsockopt'.
37541         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37542         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37543         listen, connect, accept.
37544         * modules/select-tests (Depends-on): Likewise.
37545
37546 2008-10-05  Bruno Haible  <bruno@clisp.org>
37547
37548         * lib/winsock.c (strerror): Remove unused #undef.
37549         (rpl_close): Remove unused local variable.
37550
37551         * modules/sys_socket (Depends-on); Add errno.
37552
37553 2008-10-05  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37556         (select): Add a link warning when the 'select' module is not used.
37557         * modules/sys_select (Depends-on): Add link-warning.
37558         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37559         Suggested by Paolo Bonzini.
37560
37561 2008-10-05  Jim Meyering  <meyering@redhat.com>
37562
37563         bootstrap: check for LT_INIT more portably
37564         * build-aux/bootstrap: Avoid using grep -E, since it's not
37565         portable enough.  Suggestion from Bruno Haible.
37566
37567 2008-10-05  Bruno Haible  <bruno@clisp.org>
37568
37569         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37570         as being fixed by gnulib.
37571
37572 2008-10-05  Bruno Haible  <bruno@clisp.org>
37573
37574         * modules/select-tests: New file, mostly copied from
37575         modules/sys_select-tests.
37576         * tests/test-select.c: New file, mostly copied from
37577         tests/test-sys_select.c.
37578         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37579         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37580         (Makefile.am): Remove test_sys_select_LDADD.
37581
37582         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37583         to an undefined symbol, for an error message.
37584         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37585         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37586         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37587         winsock-select.c here.
37588         * modules/sys_select (Files): Remove lib/winsock-select.c.
37589         (Depends-on): Remove alloca.
37590         (Makefile.am): Substitute GNULIB_SELECT.
37591         * modules/select: New file.
37592         * doc/posix-functions/select.texi: Update.
37593
37594 2008-10-05  Bruno Haible  <bruno@clisp.org>
37595
37596         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37597         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37598         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37599         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37600         getdtablesize.
37601         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37602         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37603
37604 2008-10-05  Bruno Haible  <bruno@clisp.org>
37605
37606         * modules/getdtablesize-tests: New file.
37607         * tests/test-getdtablesize.c: New file.
37608
37609         New module 'getdtablesize'.
37610         * lib/unistd.in.h (getdtablesize): New declaration.
37611         * lib/getdtablesize.c: New file.
37612         * m4/getdtablesize.m4: New file.
37613         * modules/getdtablesize: New file.
37614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37615         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37616         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37617         HAVE_GETDTABLESIZE.
37618         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37619
37620 2008-10-05  Bruno Haible  <bruno@clisp.org>
37621
37622         * modules/sched (Makefile.am): Fix typo.
37623         Reported by Simon Josefsson.
37624
37625 2008-10-05  Jim Meyering  <meyering@redhat.com>
37626
37627         bootstrap: check for LT_INIT, too
37628         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37629         are deprecated.  Suggestion from Ralf Wildenhues.
37630
37631 2008-10-05  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37634         overriding them by ours.
37635         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37636
37637 2008-10-05  Jim Meyering  <meyering@redhat.com>
37638
37639         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37640         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37641         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37642
37643 2008-10-04  Bruno Haible  <bruno@clisp.org>
37644
37645         * modules/dup2 (License): Change to LGPLv2+.
37646         * modules/sleep (License): Likewise.
37647         * modules/perror (License): Likewise.
37648         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37649         Blake.
37650         * modules/signal (License): Likewise.
37651         * modules/sigprocmask (License): Likewise.
37652         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37653         Meyering.
37654
37655 2008-10-04  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37658         Reported by Rainer Tammer <tammer@tammer.net>.
37659
37660 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37661             Bruno Haible  <bruno@clisp.org>
37662
37663         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37664         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37665         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37666
37667 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37668
37669         filevercmp: new module
37670         * lib/filevercmp.h: New function filevercmp comparing version strings.
37671         * lib/filevercmp.c: Implementation of filevercmp function.
37672         * modules/filevercmp: Module metadata.
37673         * tests/test-filevercmp.c: Unit test for new module.
37674         * modules/filevercmp-tests: Unit test metadata.
37675         * MODULES.html.sh: Add filevercmp module.
37676
37677 2008-10-03  Bruno Haible  <bruno@clisp.org>
37678
37679         * lib/c-ctype.h: Add comment.
37680         Reported by Jim Meyering.
37681
37682 2008-10-02  Bruno Haible  <bruno@clisp.org>
37683
37684         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37685
37686 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37687
37688         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37689         name of bootstrap.conf accordingly.
37690
37691 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37692
37693         * build-aux/bootstrap: Install git-merge-changelog configuration
37694         items into .gitconfig if needed.
37695
37696 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37697
37698         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37699         git repository, and initialize/update it accordingly.
37700
37701 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37702
37703         * modules/fsync-tests: New file.
37704         * tests/test-fsync.c: New file.
37705
37706         New module 'fsync'.
37707         * lib/fsync.c: New file.
37708         * m4/fsync.m4: New file.
37709         * modules/fsync: New file.
37710         * lib/unistd.in.h (fsync): New declaration.
37711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37712         GNULIB_FSYNC and HAVE_FSYNC.
37713         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37714         * MODULES.html.sh (posix_functions): Add fsync.
37715         * doc/posix-functions/fsync.texi: Mention the new module.
37716
37717 2008-10-02  Jim Meyering  <meyering@redhat.com>
37718
37719         fts.c: sync with similar code from coreutils' remove.c
37720         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37721         Guard also with "#if defined __linux__", since for now at least,
37722         this code is Linux-kernel-specific.
37723
37724 2008-10-02  Jim Meyering  <meyering@redhat.com>
37725
37726         fts: bug fixes
37727         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37728         Include <sys/vfs.h>, not <sys/statfs.h>.
37729
37730         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37731         Include <sys/vfs.h>, not <sys/statfs.h>.
37732
37733 2008-10-01  Bruno Haible  <bruno@clisp.org>
37734
37735         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37736         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37737         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37738         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37739         * doc/posix-functions/posix_spawnp.texi: Likewise.
37740         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37741         whether posix_spawn actually works.
37742         * m4/pipe.m4 (gl_PIPE): Likewise.
37743         * modules/execute (Files): Add m4/posix_spawn.m4.
37744         * modules/pipe (Files): Add m4/posix_spawn.m4.
37745         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37746
37747 2008-10-01  Jim Meyering  <meyering@redhat.com>
37748
37749         remove trailing spaces
37750         * NEWS: Likewise.
37751         * lib/poll.c (poll): Likewise.
37752         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37753         * lib/winsock.c (rpl_close): Likewise.
37754         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37755         * modules/yield: Likewise.
37756         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37757         * tests/test-sys_select.c (connect_to_socket): Likewise.
37758
37759         fts.c: adjust a new interface to be more generally useful
37760         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37761         (fts_build): Adjust caller.
37762
37763 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37764
37765         * modules/cond-tests: New file.
37766         * tests/test-cond.c: New file.
37767
37768 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37769             Bruno Haible  <bruno@clisp.org>
37770
37771         * modules/cond (Dependencies): Add errno, time.
37772         * lib/glthread/cond.h: Include <time.h>.
37773         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37774         across platforms.
37775
37776 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37777             Bruno Haible  <bruno@clisp.org>
37778
37779         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37780
37781 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37782             Bruno Haible  <bruno@clisp.org>
37783
37784         * modules/tls-tests (Depends-on): Add thread, yield.
37785         (configure.ac): Remove all checks.
37786         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37787         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37788         gl_thread_self): Remove definitions. Include glthread/thread.h and
37789         glthread/yield.h instead.
37790         (test_tls): Pass an additional NULL argument to gl_thread_join.
37791
37792 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37793             Bruno Haible  <bruno@clisp.org>
37794
37795         * modules/lock-tests (Depends-on): Add thread, yield.
37796         (configure.ac): Remove all checks.
37797         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37798         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37799         gl_thread_self): Remove definitions. Include glthread/thread.h and
37800         glthread/yield.h instead.
37801         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37802         additional NULL argument to gl_thread_join.
37803
37804 2008-09-30  Bruno Haible  <bruno@clisp.org>
37805
37806         Fix the Win32 implementation of the 'thread' module.
37807         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37808         pointer type.
37809         (gl_thread_self): Invoke gl_thread_self_func.
37810         (gl_thread_self_func): New declaration.
37811         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37812         (do_init_self_key, init_self_key): New functions.
37813         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37814         Remove some fields.
37815         (running_threads, running_lock): Remove variables.
37816         (get_current_thread_handle): New function.
37817         (gl_thread_self_func, wrapper_func, glthread_create_func,
37818         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37819         simplified.
37820
37821 2008-09-30  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37824         files.
37825
37826 2008-09-30  Jim Meyering  <meyering@redhat.com>
37827
37828         fts.m4: correct the test for statfs.f_type
37829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37830         when checking for statfs.f_type.
37831
37832 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37833
37834         tests: avoid some compiler warnings
37835         * tests/test-memchr.c (main): Pass NULL indirectly.
37836         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37837
37838 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37839
37840         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37841         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37842         exactly specified dayshifts.
37843         (dayshift): New rule.
37844         (rel): Add dayshift.
37845         (relative_time_table) [tomorrow, yesterday, today, now]:
37846         Use tDAY_SHIFT in place of tDAY_UNIT.
37847         * tests/test-getdate.c: Add tests for now-disallowed countable
37848         dayshifts, e.g., "4 yesterday ago".
37849
37850 2008-09-29  Bruno Haible  <bruno@clisp.org>
37851
37852         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37853         * tests/test-posix_spawn1.in.sh: Renamed from
37854         tests/test-posix_spawn.in.sh.
37855         * tests/test-posix_spawn2.c: New file.
37856         * tests/test-posix_spawn2.in.sh: New file.
37857         * modules/posix_spawnp-tests (Files): Update.
37858         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37859
37860 2008-09-29  Bruno Haible  <bruno@clisp.org>
37861
37862         Propagate effects of putenv/setenv/unsetenv to child processes.
37863         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37864         * lib/pipe.c (create_pipe): Likewise.
37865
37866 2008-09-29  Bruno Haible  <bruno@clisp.org>
37867
37868         Enable use of shell scripts as executables in mingw.
37869         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37870         run the program as a shell script.
37871         * lib/pipe.c (create_pipe): Likewise.
37872         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37873         resulting array.
37874
37875 2008-09-29  Eric Blake  <ebb9@byu.net>
37876
37877         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37878
37879 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37880
37881         * doc/posix-functions/accept.texi: Update mingw problems.
37882         * doc/posix-functions/bind.texi: Update mingw problems.
37883         * doc/posix-functions/close.texi: Update mingw problems.
37884         * doc/posix-functions/connect.texi: Update mingw problems.
37885         * doc/posix-functions/getpeername.texi: Update mingw problems.
37886         * doc/posix-functions/getsockname.texi: Update mingw problems.
37887         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37888         * doc/posix-functions/ioctl.texi: Update mingw problems.
37889         * doc/posix-functions/listen.texi: Update mingw problems.
37890         * doc/posix-functions/recv.texi: Update mingw problems.
37891         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37892         * doc/posix-functions/select.texi: Update mingw problems.
37893         * doc/posix-functions/send.texi: Update mingw problems.
37894         * doc/posix-functions/sendto.texi: Update mingw problems.
37895         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37896         * doc/posix-functions/socket.texi: Update mingw problems.
37897
37898 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37899             Bruno Haible  <bruno@clisp.org>
37900
37901         * lib/sys_select.in.h: Include sys/time.h.
37902         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37903         * modules/sys_select: Depend on sys_time.
37904         * tests/test-sys_select.c: Test that sys/select.h defines struct
37905         timeval fully.
37906
37907 2008-09-29  Bruno Haible  <bruno@clisp.org>
37908
37909         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37910         * lib/sys_select.in.h: Likewise.
37911
37912 2008-09-29  Bruno Haible  <bruno@clisp.org>
37913
37914         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37915
37916 2008-09-29  Bruno Haible  <bruno@clisp.org>
37917
37918         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37919         Set LIBSOCKET instead of augmenting LIBS.
37920         * modules/sockets (Link): New section.
37921         * modules/sockets-tests (test_sockets_LDADD): New variable.
37922         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37923         * modules/poll-tests (test_poll_LDADD): New variable.
37924         * NEWS: Document the change.
37925
37926 2008-09-29  Bruno Haible  <bruno@clisp.org>
37927
37928         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37929         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37930         ARPA_INET_H directly.
37931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37932
37933 2008-09-28  Bruno Haible  <bruno@clisp.org>
37934
37935         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37936         from gl_HEADER_SYS_SOCKET.
37937         (gl_HEADER_SYS_SOCKET): Invoke it.
37938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37939
37940 2008-09-28  Bruno Haible  <bruno@clisp.org>
37941
37942         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37943         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37944         Needed on OSF/1 4.0.
37945
37946 2008-09-28  Bruno Haible  <bruno@clisp.org>
37947
37948         Override open more carefully.
37949         * lib/open.c (orig_open): New function.
37950         (rpl_open): Use orig_open instead of open.
37951         * lib/fcntl.in.h: Add special invocation convention.
37952         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37953         (gl_FUNC_OPEN): Invoke it.
37954
37955         Override freopen more carefully.
37956         * lib/freopen.c (orig_freopen): New function.
37957         (rpl_freopen): Use orig_freopen instead of freopen.
37958         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37959         (gl_FUNC_FREOPEN): Invoke it.
37960
37961         Override fopen more carefully.
37962         * lib/fopen.c (orig_fopen): New function.
37963         (rpl_fopen): Use orig_fopen instead of fopen.
37964         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37965         (gl_FUNC_FOPEN): Invoke it.
37966         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37967
37968 2008-09-28  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37971         SIGPIPE.
37972
37973 2008-09-28  Bruno Haible  <bruno@clisp.org>
37974
37975         * tests/test-sigaction.c (handler, main): Disable the check whether
37976         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37977         glibc systems with LinuxThreads.
37978
37979 2008-09-28  Bruno Haible  <bruno@clisp.org>
37980
37981         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37982
37983         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37984         with AIX xlc.
37985         * lib/fcntl.in.h (open): Likewise.
37986         Reported by Rainer Tammer <tammer@tammer.net>.
37987
37988 2008-09-28  Bruno Haible  <bruno@clisp.org>
37989
37990         * modules/posix_spawnp-tests: New file.
37991         * tests/test-posix_spawn.c: New file.
37992         * tests/test-posix_spawn.in.sh: New file.
37993
37994         New module 'posix_spawnp'.
37995         * modules/posix_spawnp: New file.
37996         * lib/spawnp.c: New file, from GNU libc with modifications.
37997         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37998
37999         New module 'posix_spawn'.
38000         * modules/posix_spawn: New file.
38001         * lib/spawn.c: New file, from GNU libc with modifications.
38002         * doc/posix-functions/posix_spawn.texi: Mention the new module.
38003
38004         New module 'posix_spawnattr_destroy'.
38005         * modules/posix_spawnattr_destroy: New file.
38006         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
38007         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
38008         module.
38009
38010         New module 'posix_spawnattr_setsigmask'.
38011         * modules/posix_spawnattr_setsigmask: New file.
38012         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
38013         modifications.
38014         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
38015         new module.
38016
38017         New module 'posix_spawnattr_getsigmask'.
38018         * modules/posix_spawnattr_getsigmask: New file.
38019         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
38020         modifications.
38021         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
38022         new module.
38023
38024         New module 'posix_spawnattr_setsigdefault'.
38025         * modules/posix_spawnattr_setsigdefault: New file.
38026         * lib/spawnattr_setdefault.c: New file, from GNU libc with
38027         modifications.
38028         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
38029         new module.
38030
38031         New module 'posix_spawnattr_getsigdefault'.
38032         * modules/posix_spawnattr_getsigdefault: New file.
38033         * lib/spawnattr_getdefault.c: New file, from GNU libc with
38034         modifications.
38035         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
38036         new module.
38037
38038         New module 'posix_spawnattr_setschedpolicy'.
38039         * modules/posix_spawnattr_setschedpolicy: New file.
38040         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
38041         modifications.
38042         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
38043         new module.
38044
38045         New module 'posix_spawnattr_getschedpolicy'.
38046         * modules/posix_spawnattr_getschedpolicy: New file.
38047         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
38048         modifications.
38049         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
38050         new module.
38051
38052         New module 'posix_spawnattr_setschedparam'.
38053         * modules/posix_spawnattr_setschedparam: New file.
38054         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
38055         modifications.
38056         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
38057         new module.
38058
38059         New module 'posix_spawnattr_getschedparam'.
38060         * modules/posix_spawnattr_getschedparam: New file.
38061         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
38062         modifications.
38063         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
38064         new module.
38065
38066         New module 'posix_spawnattr_setpgroup'.
38067         * modules/posix_spawnattr_setpgroup: New file.
38068         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
38069         modifications.
38070         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
38071         module.
38072
38073         New module 'posix_spawnattr_getpgroup'.
38074         * modules/posix_spawnattr_getpgroup: New file.
38075         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
38076         modifications.
38077         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
38078         module.
38079
38080         New module 'posix_spawnattr_setflags'.
38081         * modules/posix_spawnattr_setflags: New file.
38082         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
38083         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
38084         module.
38085
38086         New module 'posix_spawnattr_getflags'.
38087         * modules/posix_spawnattr_getflags: New file.
38088         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
38089         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
38090         module.
38091
38092         New module 'posix_spawnattr_init'.
38093         * modules/posix_spawnattr_init: New file.
38094         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
38095         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
38096         module.
38097
38098         New module 'posix_spawn_file_actions_destroy'.
38099         * modules/posix_spawn_file_actions_destroy: New file.
38100         * lib/spawn_faction_destroy.c: New file, from GNU libc with
38101         modifications.
38102         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
38103         the new module.
38104
38105         New module 'posix_spawn_file_actions_addopen'.
38106         * modules/posix_spawn_file_actions_addopen: New file.
38107         * lib/spawn_faction_addopen.c: New file, from GNU libc with
38108         modifications.
38109         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
38110         the new module.
38111
38112         New module 'posix_spawn_file_actions_adddup2'.
38113         * modules/posix_spawn_file_actions_adddup2: New file.
38114         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
38115         modifications.
38116         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
38117         the new module.
38118
38119         New module 'posix_spawn_file_actions_addclose'.
38120         * modules/posix_spawn_file_actions_addclose: New file.
38121         * lib/spawn_faction_addclose.c: New file, from GNU libc with
38122         modifications.
38123         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
38124         the new module.
38125
38126         New module 'posix_spawn_file_actions_init'.
38127         * modules/posix_spawn_file_actions_init: New file.
38128         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
38129         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
38130         new module.
38131
38132         New module 'posix_spawn-internal'.
38133         * modules/posix_spawn-internal: New file.
38134         * lib/spawn_int.h: New file, from GNU libc with modifications.
38135         * lib/spawni.c: New file, from GNU libc with modifications.
38136         * m4/posix_spawn.m4: New file.
38137
38138         New module 'spawn'.
38139         * modules/spawn: New file.
38140         * lib/spawn.in.h: New file, from GNU libc with modifications.
38141         * m4/spawn_h.m4: New file.
38142         * doc/posix-headers/spawn.texi: Mention the new module.
38143
38144 2008-09-28  Bruno Haible  <bruno@clisp.org>
38145
38146         * modules/sched-tests: New file.
38147         * tests/test-sched.c: New file.
38148
38149         New module 'sched'.
38150         * modules/sched: New file.
38151         * lib/sched.in.h: New file.
38152         * m4/sched_h.m4: New file.
38153         * doc/posix-headers/sched.texi: Mention the new module.
38154
38155 2008-09-27  Eric Blake  <ebb9@byu.net>
38156
38157         Fix previous patch, and tweak references to $0.
38158         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
38159         (func_version, func_gnulib_dir): Don't call this program
38160         gnulib-tool.
38161         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
38162         with using $0 in function.
38163         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
38164         (func_fatal_error): Reuse the name the user invoked us with.
38165
38166 2008-09-27  Bruno Haible  <bruno@clisp.org>
38167
38168         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
38169         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
38170         (gl_ICONV_H): Not here.
38171         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
38172         instead of assigning ICONV_H directly.
38173
38174         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
38175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
38176         WCHAR_H directly.
38177
38178 2008-09-27  Bruno Haible  <bruno@clisp.org>
38179
38180         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
38181         * modules/arpa_inet (Depends-on): Add link-warning.
38182         (Makefile.am): Insert the definition of GL_LINK-WARNING.
38183         * modules/unistd (Makefile.am): Likewise.
38184
38185 2008-09-26  Bruno Haible  <bruno@clisp.org>
38186
38187         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
38188         variables.
38189         (func_version): Essentially copied from gnulib-tool.
38190         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
38191         func_readlink): Copied from gnulib-tool.
38192
38193 2008-09-26  Bruno Haible  <bruno@clisp.org>
38194
38195         * gnulib-tool (func_version): Change directory to $gnulib_dir before
38196         invoking git-version-gen.
38197
38198 2008-09-26  Bruno Haible  <bruno@clisp.org>
38199
38200         * posix-modules: Update to directory names changed on 2008-01-19.
38201         Remove commas in output before splitting into words. No more need to
38202         avoid 'ftruncate' since 2007-02-19.
38203
38204 2008-09-26  Bruno Haible  <bruno@clisp.org>
38205
38206         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
38207
38208 2008-09-26  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
38211         * modules/fwriteerror (Depends-on): Add errno.
38212
38213 2008-09-26  Bruno Haible  <bruno@clisp.org>
38214
38215         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
38216         * tests/test-vc-list-files-cvs.sh: Likewise.
38217
38218 2008-09-26  Bruno Haible  <bruno@clisp.org>
38219
38220         * doc/posix-headers/sys_resource.texi: Reorder items.
38221
38222 2008-09-26  Jim Meyering  <meyering@redhat.com>
38223
38224         fts: tweak inode comparison function
38225         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
38226         inode numbers, as documented.
38227
38228         fts: sort dirent entries on inode number before traversing
38229         This avoids a quadratic, seek-related performance penalty when
38230         operating on a directory containing many entries (measurable at 10k;
38231         3.5 hours at 2 million entries with a cold cache) on certain types
38232         of file systems, including ext3 and ext4, but not tmpfs.
38233         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
38234         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
38235         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
38236         (fs_handles_readdir_ordered_dirents_efficiently): New function.
38237         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
38238         (fts_build): Set the stat.st_ino member from D_INO.
38239         If it is likely to be useful, sort dirent entries on inode number.
38240
38241         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
38242         and the struct statfs.f_type member.
38243         * modules/fts (Depends-on): Add d-ino.
38244
38245 2008-09-26  Bruno Haible  <bruno@clisp.org>
38246
38247         * modules/sigpipe-die (Depends-on): Add sigpipe.
38248
38249         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
38250         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
38251         and GNULIB_STDIO_H_SIGPIPE are set.
38252         * lib/stdio-write.c: New file.
38253         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
38254         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38255         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38256         REPLACE_STDIO_WRITE_FUNCS.
38257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
38258         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38259         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38260         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38261         * modules/stdio (Files): Add lib/stdio-write.c.
38262         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
38263         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
38264         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
38265         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
38266         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
38267         REPLACE_FPRINTF_POSIX.
38268         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
38269         REPLACE_PRINTF_POSIX.
38270         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
38271         REPLACE_VFPRINTF_POSIX.
38272         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
38273         REPLACE_VPRINTF_POSIX.
38274         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
38275         SIGPIPE issue.
38276         * doc/posix-functions/fputc.texi: Likewise.
38277         * doc/posix-functions/fputs.texi: Likewise.
38278         * doc/posix-functions/fwrite.texi: Likewise.
38279         * doc/posix-functions/printf.texi: Likewise.
38280         * doc/posix-functions/putc.texi: Likewise.
38281         * doc/posix-functions/putchar.texi: Likewise.
38282         * doc/posix-functions/puts.texi: Likewise.
38283         * doc/posix-functions/vfprintf.texi: Likewise.
38284         * doc/posix-functions/vprintf.texi: Likewise.
38285
38286         * modules/safe-write (Depends-on): Add write.
38287
38288         * modules/sigpipe-tests: New file.
38289         * tests/test-sigpipe.c: New file.
38290         * tests/test-sigpipe.sh: New file.
38291
38292         * modules/write: New file.
38293         * lib/unistd.in.h: Include <sys/types.h>.
38294         (write): New declaration.
38295         * lib/write.c: New file.
38296         * m4/write.m4: New file.
38297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38298         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
38299         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
38300         GNULIB_WRITE, REPLACE_WRITE.
38301         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
38302         and the SIGPIPE issue.
38303
38304         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
38305         (raise): New declaration.
38306         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
38307         (ext_signal): New function.
38308         (rpl_raise): New function.
38309         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
38310         GNULIB_SIGNAL_H_SIGPIPE.
38311         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
38312         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
38313
38314         * modules/sigpipe: New file.
38315         * m4/sigpipe.m4: New file.
38316
38317 2008-09-25  Derek Price  <derek@ximbiot.com>
38318             Bruno Haible  <bruno@clisp.org>
38319
38320         * gnulib-tool (func_import): Report all license incompatibilities, not
38321         just the first one.
38322
38323 2008-09-25  Bruno Haible  <bruno@clisp.org>
38324
38325         * gnulib-tool (func_import): When computing the edits, consider not
38326         only the Makefile.ams that exist but also those that will be generated.
38327
38328 2008-09-25  Simon Josefsson  <simon@josefsson.org>
38329
38330         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38331         fixes gnulib-tool --test warning about duplicate dependency.
38332
38333 2008-09-25  Bruno Haible  <bruno@clisp.org>
38334
38335         * gnulib-tool: Don't ask the user to perform edits in the generated
38336         Makefile.ams.
38337         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38338         apply to the Makefile.am being generated.
38339         (func_emit_tests_Makefile_am): Execute edits that apply to the
38340         Makefile.am being generated.
38341         (func_import): Setup list of Makefile.am edits before emitting the
38342         Makefile.ams, not at the end.
38343         (func_create_testdir): Update.
38344         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38345
38346 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38347
38348         * gnulib-tool (func_import): Store the --tests-base option in the
38349         comment in gnulib-cache.m4.
38350
38351 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38352
38353         * NEWS: Document increased portability that sys_select now provides.
38354
38355         * lib/sys_select.in.h: Install select wrapper.
38356         * lib/sys_socket.in.h: Use more descriptive name when there is no
38357         select wrapper.
38358         * lib/winsock-select.c: New.
38359         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38360         Require gl_HEADER_SYS_SOCKET.
38361         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38362         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38363         * tests/test-sys_select.c: Add functional tests.
38364
38365 2008-09-24  Eric Blake  <ebb9@byu.net>
38366
38367         open, fopen: close fd leak in last patch
38368         * lib/open.c (rpl_open): Close fd before returning error.
38369         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38370         * doc/posix-functions/open.texi (open): Document that Irix also
38371         has the bug.
38372         * doc/posix-functions/fopen.texi (fopen): Likewise.
38373         Reported by Paolo Bonzini.
38374
38375 2008-09-24  Bruno Haible  <bruno@clisp.org>
38376
38377         Ensure that a filename ending in a slash cannot be used to access a
38378         non-directory.
38379         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38380         to check whether it's really a directory.
38381         * lib/fopen.c: Include fcntl.h, unistd.h.
38382         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38383         and fdopen().
38384         * modules/fopen (Depends-on): Add unistd.
38385         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38386         * tests/test-fopen.c (main): Likewise.
38387         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38388         * doc/posix-functions/fopen.texi: Likewise.
38389         Reported by Eric Blake.
38390
38391 2008-09-23  Eric Blake  <ebb9@byu.net>
38392
38393         c-stack: avoid compiler optimizations when provoking overflow
38394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38395         recursion harder to optimize, to ensure a stack overflow occurs.
38396         * tests/test-c-stack.c (recurse): Likewise.
38397         Borrowed from libsigsegv.
38398
38399         c-stack: work around Irix sigaltstack bug
38400         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38401         whether sigaltstack uses wrong end of stack_t (copied in part from
38402         libsigsegv).
38403         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38404         Irix bug, without requiring an over-allocation.
38405         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38406         bug.
38407
38408         fopen: document mingw bug on directories
38409         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38410         not allowing a stream visiting a directory, even though reading
38411         from such a stream is not portable.
38412
38413 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38414
38415         * lib/poll.c: Rewrite.
38416         * modules/poll: Depend on alloca.
38417
38418 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38419
38420         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38421         instead define prototypes for a full set of wrappers.  Ensure
38422         that Cygwin does not use the compatibility code, which is only
38423         for MinGW.
38424         * lib/winsock.c: New.
38425         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38426         * modules/sys_socket: Add lib/winsock.c.
38427
38428         * modules/poll-tests: Add errno and perror.
38429         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38430
38431 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38432
38433         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38434
38435 2008-09-23  Bruno Haible  <bruno@clisp.org>
38436
38437         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38438         * doc/glibc-functions/*: Likewise.
38439
38440 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38441
38442         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38443         success.
38444
38445 2008-09-22  Eric Blake  <ebb9@byu.net>
38446             Bruno Haible  <bruno@clisp.org>
38447
38448         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38449         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38450         supply %A but mishandle pseudo-NaN.
38451         Reported by Simon Josefsson.
38452
38453 2008-09-21  Bruno Haible  <bruno@clisp.org>
38454
38455         * tests/test-lock.c (main): Tweak skip message.
38456         * tests/test-tls.c (main): Likewise.
38457
38458 2008-09-21  Bruno Haible  <bruno@clisp.org>
38459
38460         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38461         whether 'struct sigaction' has sa_sigaction here...
38462         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38463         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38464
38465 2008-09-21  Bruno Haible  <bruno@clisp.org>
38466
38467         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38468         section.
38469         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38470         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38471         the new section.
38472         (Support for obsolete systems lacking POSIX:2001): New section.
38473         (String handling <string.h>): Move strdup to the new section.
38474         Suggested by Simon Josefsson and Paolo Bonzini.
38475
38476 2008-09-21  Bruno Haible  <bruno@clisp.org>
38477
38478         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38479         exponents in %e and %g results on 'long double'. Needed for mingw's
38480         improved *printf functions.
38481         * tests/test-vasprintf-posix.c (test_function): Likewise.
38482         * tests/test-snprintf-posix.h (test_function): Likewise.
38483         * tests/test-sprintf-posix.h (test_function): Likewise.
38484         Reported by Eric Blake.
38485
38486 2008-09-21  Bruno Haible  <bruno@clisp.org>
38487
38488         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38489         * tests/test-sprintf-posix.h (test_function): Likewise.
38490
38491 2008-09-21  Bruno Haible  <bruno@clisp.org>
38492
38493         * modules/getpass (Depends-on): Add strdup-posix.
38494
38495         New module 'strdup-posix'.
38496         * modules/strdup-posix: New file.
38497         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38498         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38500         REPLACE_STRDUP.
38501         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38502         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38504         strdup-posix.
38505
38506         * modules/strdup (Depends-on): Remove malloc-posix.
38507
38508 2008-09-20  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38511         Wildenhues.
38512
38513 2008-09-20  Bruno Haible  <bruno@clisp.org>
38514
38515         Ensure that wint_t gets defined on IRIX 5.3.
38516         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38517         * lib/wctype.in.h (wint_t): Likewise.
38518         (__wctype_wint_t): Remove type.
38519         (isw*): Use wint_t instead of __wctype_wint_t.
38520         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38521         * modules/wchar (Files): Add m4/wint_t.m4.
38522         (Makefile.am): Substitute HAVE_WINT_T.
38523         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38524         * tests/test-wctype.c: Check that wint_t is defined.
38525         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38526         * doc/posix-headers/wctype.texi: Likewise.
38527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38528
38529 2008-09-18  Bruno Haible  <bruno@clisp.org>
38530
38531         * gnulib-tool (func_exit): Update comment.
38532
38533 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38534
38535         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38536         assumes strdup exists and does not depend on strdup to return
38537         ENOMEM on out of memory conditions.
38538
38539 2008-09-18  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38542         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38543         digits for the exponent.
38544
38545 2008-09-18  Jim Meyering  <meyering@redhat.com>
38546             Bruno Haible  <bruno@clisp.org>
38547
38548         * lib/vasnprintf.c (decimal_point_char): Define also if
38549         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38550
38551 2008-09-16  Bruno Haible  <bruno@clisp.org>
38552         and Eric Blake  <ebb9@byu.net>
38553
38554         vasnprintf: support Irix 5.3
38555         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38556         that mishandle long double infinity.
38557         Reported by Tom G. Christensen.
38558
38559 2008-09-16  Bruno Haible  <bruno@clisp.org>
38560
38561         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38562         Solaris 9.
38563         * doc/glibc-functions/alphasort.texi: Likewise.
38564         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38565
38566 2008-09-16  Jim Meyering  <meyering@redhat.com>
38567
38568         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38569         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38570         a umask modification leak out of a subshell.  Otherwise, the
38571         opensolaris /bin/sh would be accepted and thus cause unwarranted
38572         failures in the coreutils test suite.
38573
38574 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38575
38576         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38577         to succeed.
38578
38579 2008-09-16  Jim Meyering  <meyering@redhat.com>
38580
38581         avoid spurious test failure when library is built without ACL support
38582         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38583         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38584         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38585         * tests/test-copy-acl.sh: Likewise.
38586
38587 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38588
38589         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38590         based on character occurrence counts.
38591
38592 2008-09-15  Eric Blake  <ebb9@byu.net>
38593
38594         tests: avoid some compiler warnings
38595         * tests/test-memchr.c (main): Pass NULL indirectly.
38596         * tests/test-closein.c (main): Avoid unused variable.
38597
38598 2008-09-15  Bruno Haible  <bruno@clisp.org>
38599
38600         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38601         are missing on OpenBSD 4.0 individually.
38602         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38603
38604 2008-09-15  Bruno Haible  <bruno@clisp.org>
38605
38606         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38607         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38608         * doc/posix-functions/perror.texi: Likewise.
38609         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38610         is missing.
38611         Reported by Eric Blake.
38612
38613         * lib/errno.in.h: Use replacement values >= 2000.
38614         Reported by Eric Blake.
38615
38616 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38617
38618         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38619         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38620         limit.
38621         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38622         compareseq was aborted.
38623
38624 2008-09-14  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38627         yvec_edit_count.
38628         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38629         (fstrcmp_bounded): Simplify result computation accordingly.
38630
38631 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38632
38633         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38634         (fstrcmp): Define in terms of fstrcmp_bounded.
38635         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38636         lower_bound argument.
38637         Return quickly if the result is certainly < lower_bound.
38638         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38639
38640 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38641
38642         * lib/diffseq.h (EARLY_ABORT): New macro.
38643         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38644         evaluates to true.
38645
38646 2008-09-14  Bruno Haible  <bruno@clisp.org>
38647
38648         * modules/perror-tests: New file.
38649         * tests/test-perror.sh: New file.
38650         * tests/test-perror.c: New file.
38651
38652         New module 'perror'.
38653         * lib/stdio.in.h (perror): New declaration.
38654         * lib/perror.c: New file.
38655         * m4/perror.m4: New file.
38656         * modules/perror: New file.
38657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38658         * doc/posix-functions/perror.texi: Mention the perror module.
38659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38660         REPLACE_PERROR.
38661         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38662         REPLACE_PERROR.
38663
38664 2008-09-14  Bruno Haible  <bruno@clisp.org>
38665
38666         * modules/stdio (Makefile.am): Reorder to match the order in
38667         lib/stdio.in.h.
38668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38669
38670 2008-09-13  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38673
38674 2008-09-13  Bruno Haible  <bruno@clisp.org>
38675
38676         Extend strerror to cover the added errno values.
38677         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38678         (rpl_strerror): Provide error messages for the added errno values and
38679         for the WSA* values.
38680         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38681         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38682         strerror.
38683         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38684         * modules/strerror (Depends-on): Add errno.
38685         * doc/posix-functions/strerror.texi: Document the change.
38686         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38687         and EOVERFLOW.
38688
38689 2008-09-13  Bruno Haible  <bruno@clisp.org>
38690
38691         * modules/EOVERFLOW: Remove file.
38692         * m4/eoverflow.m4: Remove file.
38693         * modules/EOVERFLOW-tests: Remove file.
38694         * tests/test-EOVERFLOW.c: Remove file.
38695         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38696         * modules/ftell (Depends-on): Likewise.
38697         * modules/getdelim (Depends-on): Likewise.
38698         * modules/getugroups (Depends-on): Likewise.
38699         * modules/poll (Depends-on): Likewise.
38700         * modules/snprintf (Depends-on): Likewise.
38701         * modules/sprintf-posix (Depends-on): Likewise.
38702         * modules/vasnprintf (Depends-on): Likewise.
38703         * modules/vasprintf (Depends-on): Likewise.
38704         * modules/vfprintf-posix (Depends-on): Likewise.
38705         * modules/vsnprintf (Depends-on): Likewise.
38706         * modules/vsprintf-posix (Depends-on): Likewise.
38707         * modules/xvasprintf (Depends-on): Likewise.
38708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38709         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38710         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38711         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38712         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38713         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38714         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38715         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38716         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38717         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38718         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38719         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38721         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38722         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38723         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38724         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38725         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38726         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38727         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38728         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38729         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38730         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38731         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38732         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38734         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38735         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38736         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38737         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38738         * MODULES.html.sh: Remove EOVERFLOW.
38739         * NEWS: Mention the change.
38740
38741 2008-09-13  Bruno Haible  <bruno@clisp.org>
38742
38743         * modules/errno-tests: New file.
38744         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38745
38746         * lib/errno.in.h: New file.
38747         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38748         * modules/errno: New file.
38749         * doc/posix-headers/errno.texi: Update documentation.
38750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38751
38752 2008-09-13  Bruno Haible  <bruno@clisp.org>
38753
38754         * tests/test-poll.c: Use #if for native Windows, rather than testing
38755         __MSVCRT__.
38756
38757 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38758             Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/glob.c: Don't include <pwd.h> on native Windows.
38761         (WINDOWS32): New macro.
38762         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38763
38764 2008-09-13  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38767         (ETIMEDOUT): Remove macro.
38768         (glthread_cond_timedwait_multithreaded): New declaration.
38769         (glthread_cond_timedwait): Use it.
38770         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38771         (glthread_cond_timedwait_multithreaded): New function.
38772
38773 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38774
38775         * modules/poll-tests: Do not check for io.h.
38776         * tests/test-poll.c: Check for __MSVCRT__ instead.
38777
38778 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38779
38780         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38781         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38782         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38783
38784 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38785
38786         * modules/poll-tests: New.
38787         * tests/test-poll.c: New.
38788
38789 2008-09-12  Eric Blake  <ebb9@byu.net>
38790
38791         frexp: test for NetBSD failure on -0.0
38792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38793         not all, bugs from NetBSD 3.0 have been fixed.
38794         * doc/posix-functions/frexp.texi (frexp): Document bug.
38795         Reported by Thomas Klausner.
38796
38797         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38798         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38799         literal -0.0.
38800         Reported by Jonathan C. Patschke <jp@centtech.com>.
38801
38802 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38803
38804         * lib/glthread/cond.h: Use dummy implementation also if
38805         USE_WIN32_THREADS.
38806
38807 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38808
38809         * modules/fnmatch-posix (License): Change to LGPLv2+.
38810         * modules/fnmatch-gnu (License): Likewise.
38811
38812 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38813
38814         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38815
38816 2008-09-11  Jim Meyering  <meyering@redhat.com>
38817
38818         * users.txt: Add gtk-vnc.
38819
38820 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38821
38822         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38823         rotate amounts.
38824
38825         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38826         required for 16-bit and 8-bit rotates.
38827         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38828         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38829         UINT8_MAX instead of hard-coded constants.
38830         Suggested by Paul Eggert.
38831
38832 2008-09-07  Bruno Haible  <bruno@clisp.org>
38833
38834         * tests/test-striconveh.c (main): Check behaviour when converting from
38835         UTF-7.
38836
38837         Make striconveh work better with stateful encodings.
38838         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38839         that iconv does not increment the inptr when returning -1/EINVAL.
38840
38841 2008-09-07  Bruno Haible  <bruno@clisp.org>
38842
38843         * build-aux/config.rpath: Update according to libtool-2.2.6.
38844         * build-aux/config.libpath: Likewise.
38845
38846 2008-09-06  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38849         * lib/freadptr.c (freadptr): Likewise.
38850         * lib/freadseek.c (freadptrinc): Likewise.
38851         Reported by Simon Josefsson.
38852
38853 2008-09-06  Bruno Haible  <bruno@clisp.org>
38854
38855         * modules/freadptr (License): Change to LGPLv2+.
38856         * modules/freadseek (License): Likewise.
38857         Suggested by Eric Blake.
38858
38859         * modules/memchr2 (License): Change to LGPLv2+.
38860         Approved by Eric Blake.
38861
38862 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38863             Bruno Haible  <bruno@clisp.org>
38864
38865         Make gnulib-tool work with native 'sed' on AIX.
38866         * gnulib-tool (sed_noop): New variable.
38867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38868         func_add_or_update, func_create_testdir): Use it to initialize sed
38869         script variables.
38870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38871
38872 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38873             Bruno Haible  <bruno@clisp.org>
38874
38875         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38876         also works after #include directives.
38877
38878 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38879
38880         getdate.y: reject an out-of-range timezone value
38881         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38882         the range [-24...+24].  When specified with only one or two digits,
38883         * tests/test-getdate.c: Tests for the fix.
38884         * doc/getdate.texi: Document this change.
38885
38886 2008-09-03  Bruno Haible  <bruno@clisp.org>
38887
38888         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38889
38890 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38891
38892         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38893         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38894         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38895         Blake <ebb9@byu.net>.
38896
38897         * tests/test-bitrotate.c: Add more test vectors.
38898
38899 2008-09-02  Eric Blake  <ebb9@byu.net>
38900
38901         vasnprintf-posix: handle large precision via %.*d
38902         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38903         when handling it ourselves.
38904         * tests/test-vasnprintf-posix.c (test_function): Add test.
38905         * tests/test-snprintf-posix.h (test_function): Likewise.
38906         * tests/test-sprintf-posix.h (test_function): Likewise.
38907         * tests/test-vasprintf-posix.c (test_function): Likewise.
38908         Reported by Alain Guibert.
38909
38910 2008-09-01  Eric Blake  <ebb9@byu.net>
38911
38912         c-stack: make configure-time check more robust
38913         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38914         successful sigaction call.
38915         Reported by Tom G. Christensen.
38916
38917 2008-09-01  Bruno Haible  <bruno@clisp.org>
38918
38919         New module 'findprog-lgpl'.
38920         * modules/findprog-lgpl: New file.
38921         * lib/findprog-lgpl.c: New file.
38922         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38923         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38924         to decide whether to use strdup or xstrdup, concatenated_filename or
38925         xconcatenated_filename.
38926
38927 2008-09-01  Bruno Haible  <bruno@clisp.org>
38928
38929         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38930         'xconcat-filename' (GPL).
38931         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38932         (License): Change to LGPLv2+.
38933         * modules/xconcat-filename: New file.
38934         * lib/concat-filename.h (concatenated_filename): Change specification.
38935         (xconcatenated_filename): New declaration.
38936         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38937         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38938         memory situations.
38939         * lib/xconcat-filename.c: New file.
38940         * NEWS: Mention the change.
38941         * lib/findprog.c: Include concat-filename.h, not filename.h.
38942         (find_in_path): Use xconcatenated_filename instead of
38943         concatenated_filename.
38944         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38945         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38946         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38947         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38948         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38949         instead of concatenated_filename.
38950         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38951         (execute_java_class): Use xconcatenated_filename instead of
38952         concatenated_filename.
38953         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38954         * modules/javacomp (Depends-on): Likewise.
38955         * modules/javaexec (Depends-on): Likewise.
38956
38957 2008-09-01  Bruno Haible  <bruno@clisp.org>
38958
38959         Split module 'filename' into 'filename' and 'concat-filename'.
38960         * modules/filename: Keep only lib/filename.h.
38961         (License): Change to LGPLv2+.
38962         * modules/concat-filename: New file, extracted from modules/filename.
38963         * lib/filename.h (concatenated_filename): Remove declaration.
38964         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38965         * lib/concat-filename.c: Include concat-filename.h.
38966         * NEWS: Mention the change.
38967
38968 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38969
38970         * lib/bitrotate.h (rotl8, rotr8): Add.
38971
38972         * modules/bitrotate (configure.ac): Need
38973         AC_REQUIRE([AC_C_INLINE]).
38974         (Description): Mention stdint.h.  Reported by Bruno Haible
38975         <bruno@clisp.org>.
38976
38977         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38978         Paolo Bonzini <bonzini@gnu.org>.
38979
38980 2008-08-31  Bruno Haible  <bruno@clisp.org>
38981
38982         Assume Solaris specific bi-arch conventions on Solaris systems.
38983         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38984         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38986         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38987         like acl_libdirstem.
38988         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38989         acl_libdirstem.
38990         * NEWS: Mention the change.
38991         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38992
38993 2008-08-31  Jim Meyering  <meyering@redhat.com>
38994
38995         * lib/strftime.h: Add comments describing the two added arguments.
38996
38997         remove duplicate #include directives
38998         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38999         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
39000
39001 2008-08-31  Bruno Haible  <bruno@clisp.org>
39002
39003         New module 'sigpipe-die'.
39004         * modules/sigpipe-die: New file.
39005         * lib/sigpipe-die.h: New file.
39006         * lib/sigpipe-die.c: New file.
39007         * MODULES.html.sh (Signal handling): Add sigpipe-die.
39008
39009 2008-08-31  Bruno Haible  <bruno@clisp.org>
39010
39011         Don't override previously installed signal handlers.
39012         * lib/fatal-signal.c (saved_sigactions): New variable.
39013         (uninstall_handlers): Reset the signal to the saved handler, not
39014         to SIG_DFL (except when ignored).
39015         (install_handlers): Save the previous handlers.
39016
39017 2008-08-30  Bruno Haible  <bruno@clisp.org>
39018
39019         * gnulib-tool (func_reset_sigpipe): New function.
39020         (func_get_automake_snippet, func_modules_transitive_closure,
39021         func_import): Invoke it before a join command that reads from stdin,
39022         to avoid "echo: write error: Broken pipe" error messages on stderr.
39023         Reported by Sam Steingold <sds@gnu.org>.
39024
39025 2008-08-30  Bruno Haible  <bruno@clisp.org>
39026
39027         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
39028         Code copied from m4/open.m4.
39029         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
39030         access and the filename ends in a slash. Code copied from lib/open.c.
39031         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
39032         * tests/test-fopen.c (main): Check against bug with trailing slash.
39033
39034 2008-08-29  Bruno Haible  <bruno@clisp.org>
39035
39036         Avoid some "gcc -pedantic" warnings.
39037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
39038         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
39039         * lib/dirent.in.h: Likewise.
39040         * lib/fcntl.in.h: Likewise.
39041         * lib/float.in.h: Likewise.
39042         * lib/iconv.in.h: Likewise.
39043         * lib/inttypes.in.h: Likewise.
39044         * lib/locale.in.h: Likewise.
39045         * lib/math.in.h: Likewise.
39046         * lib/netinet_in.in.h: Likewise.
39047         * lib/search.in.h: Likewise.
39048         * lib/signal.in.h: Likewise.
39049         * lib/stdarg.in.h: Likewise.
39050         * lib/stdint.in.h: Likewise.
39051         * lib/stdio.in.h: Likewise.
39052         * lib/stdlib.in.h: Likewise.
39053         * lib/string.in.h: Likewise.
39054         * lib/strings.in.h: Likewise.
39055         * lib/sys_select.in.h: Likewise.
39056         * lib/sys_socket.in.h: Likewise.
39057         * lib/sys_stat.in.h: Likewise.
39058         * lib/sys_time.in.h: Likewise.
39059         * lib/sysexits.in.h: Likewise.
39060         * lib/time.in.h: Likewise.
39061         * lib/unistd.in.h: Likewise.
39062         * lib/wchar.in.h: Likewise.
39063         * lib/wctype.in.h: Likewise.
39064         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
39065         * modules/fchdir (Makefile.am): Likewise.
39066         * modules/fcntl (Makefile.am): Likewise.
39067         * modules/float (Makefile.am): Likewise.
39068         * modules/iconv_open (Makefile.am): Likewise.
39069         * modules/inttypes (Makefile.am): Likewise.
39070         * modules/locale (Makefile.am): Likewise.
39071         * modules/math (Makefile.am): Likewise.
39072         * modules/netinet_in (Makefile.am): Likewise.
39073         * modules/search (Makefile.am): Likewise.
39074         * modules/signal (Makefile.am): Likewise.
39075         * modules/stdarg (Makefile.am): Likewise.
39076         * modules/stdint (Makefile.am): Likewise.
39077         * modules/stdio (Makefile.am): Likewise.
39078         * modules/stdlib (Makefile.am): Likewise.
39079         * modules/string (Makefile.am): Likewise.
39080         * modules/strings (Makefile.am): Likewise.
39081         * modules/sys_select (Makefile.am): Likewise.
39082         * modules/sys_socket (Makefile.am): Likewise.
39083         * modules/sys_stat (Makefile.am): Likewise.
39084         * modules/sys_time (Makefile.am): Likewise.
39085         * modules/sysexits (Makefile.am): Likewise.
39086         * modules/time (Makefile.am): Likewise.
39087         * modules/unistd (Makefile.am): Likewise.
39088         * modules/wchar (Makefile.am): Likewise.
39089         * modules/wctype (Makefile.am): Likewise.
39090         Reported by Reuben Thomas <rrt@sc3d.org>.
39091
39092 2008-08-29  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
39095         any more.
39096
39097 2008-08-29  Simon Josefsson  <simon@josefsson.org>
39098
39099         * MODULES.html.sh (Misc): Add bitrotate.
39100
39101         * modules/bitrotate: New file.
39102
39103         * lib/bitrotate.h: New file.
39104
39105         * modules/bitrotate-tests: New file.
39106
39107         * tests/test-bitrotate.c: New file.
39108
39109         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
39110         on the bitrotate module.
39111
39112         * lib/arctwo.c: Use new bitrotate module.
39113
39114 2008-08-29  Jim Meyering  <meyering@redhat.com>
39115
39116         bootstrap: merge changes from coreutils
39117         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
39118         of copied files.  Remove a kludge, now that this is fixed.
39119         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
39120         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
39121         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
39122
39123 2008-08-29  Bruno Haible  <bruno@clisp.org>
39124
39125         * MODULES.html.sh: Remove --cvs-urls option.
39126
39127 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
39128
39129         maint.mk: adjust to file name change
39130         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
39131
39132 2008-08-28  Jim Meyering  <meyering@redhat.com>
39133
39134         * modules/getndelim2 (License): Relicense to LGPLv2+.
39135         Approved by Richard Stallman for the version of 1995, and by
39136         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
39137
39138 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
39139
39140         * lib/getdelim.c (flockfile, funlockfile): Make all of them
39141         dummy if one is not available.  Do not touch them if
39142         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
39143         (getc_maybe_unlocked): New.
39144         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
39145
39146 2008-08-26  Eric Blake  <ebb9@byu.net>
39147
39148         doc/INSTALL: resync from autoconf
39149         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
39150         (INSTALL_PRELUDE): Delete; this is done more efficiently by
39151         moving...
39152         * install.texi [!autoconf]: ...here.  Resync from autoconf.
39153         * INSTALL: Regenerate.
39154         * INSTALL.ISO: New file.
39155         * INSTALL.UTF-8: Likewise.
39156
39157 2008-08-26  Jim Meyering  <meyering@redhat.com>
39158
39159         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
39160         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
39161         these definitions conditional, so that they may be overridden, too.
39162
39163 2008-08-26  Bruno Haible  <bruno@clisp.org>
39164
39165         Generate INSTALL file variants with prettier quotes.
39166         * doc/Makefile (INSTALL_PRELUDE): New macro.
39167         (INSTALL): Use it.
39168         (INSTALL.ISO, INSTALL.UTF-8): New rules.
39169
39170 2008-08-26  Bruno Haible  <bruno@clisp.org>
39171
39172         Run makeinfo in an English locale.
39173         * doc/Makefile (MAKEINFO): New variable.
39174
39175 2008-08-26  Bruno Haible  <bruno@clisp.org>
39176
39177         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
39178         Suggested by Eric Blake.
39179
39180 2008-08-25  Bruno Haible  <bruno@clisp.org>
39181
39182         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
39183
39184 2008-08-25  Eric Blake  <ebb9@byu.net>
39185
39186         c-stack: test that stack overflow can be caught
39187         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
39188         that platform allows handling stack overflow; at least OS/2 EMX
39189         has sigaltstack, but crashes before transferring control to
39190         handler on stack overflow.
39191         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
39192         check for HAVE_STACK_OVERFLOW_HANDLING.
39193         Reported by Elbert Pol.
39194
39195 2008-08-25  Bruno Haible  <bruno@clisp.org>
39196
39197         * doc/posix-functions/strftime.texi: Fix description of strftime
39198         module.
39199
39200 2008-08-24  Bruno Haible  <bruno@clisp.org>
39201
39202         * tests/uniwidth/test-uc_width2.c: New file.
39203         * tests/uniwidth/test-uc_width2.sh: New file.
39204         * modules/uniwidth/width-tests (Files): Add the new files.
39205         (TESTS): Add uniwidth/test-uc_width2.sh.
39206         (TESTS_ENVIRONMENT): New variable.
39207         (check_PROGRAMS): Add test-uc_width2.
39208         (test_uc_width2_SOURCES): New variable.
39209
39210         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
39211         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
39212         not 0x00AB.
39213         Reported by Alexander V. Lukyanov <lav@netis.ru>.
39214
39215 2008-08-22  Eric Blake  <ebb9@byu.net>
39216
39217         test-lock, test-tls: mention why a test is skipped
39218         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
39219         skipped.
39220         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
39221
39222         count-one-bits: relax license
39223         * modules/count-one-bits (License): Relicense to LGPLv2+.
39224         Suggested by Ludovic Courtès, approved by Ben Pfaff.
39225
39226 2008-08-22  Andreas Schwab  <schwab@suse.de>
39227
39228         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
39229         Remove spurious space in assignment.
39230
39231 2008-08-21  Simon Josefsson  <simon@josefsson.org>
39232
39233         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
39234         Paul Eggert <eggert@CS.UCLA.EDU>.
39235
39236 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
39237
39238         * modules/gettext: Add m4/threadlib.m4.
39239
39240 2008-08-19  Eric Blake  <ebb9@byu.net>
39241
39242         test-c-stack: fix compilation failure on FreeBSD 5.0
39243         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
39244         headers before <sys/resource.h>.
39245         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
39246         the bug.
39247         Reported by Nelson H. F. Beebe.
39248
39249         strverscmp: migrate from "strverscmp.h" to <string.h>
39250         * modules/string (Makefile.am): Add new hooks.
39251         * modules/strverscmp (Files): Remove strverscmp.h.
39252         (Depends-on): Add string.
39253         (configure.ac): Add indicator.
39254         (Include): Mention new header.
39255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
39256         defaults.
39257         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
39258         results.
39259         * lib/strverscmp.h: Delete.
39260         * lib/string.in.h (strverscmp): Provide declaration, when needed.
39261         * tests/test-strverscmp.c (includes): Adjust client.
39262         * lib/check-version.c (includes): Likewise.
39263         * NEWS: Document the change.
39264
39265         strverscmp: add unit test
39266         * modules/strverscmp-tests: New file.
39267         * tests/test-strverscmp.c: Likewise.
39268
39269 2008-08-19  Simon Josefsson  <simon@josefsson.org>
39270
39271         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
39272         regarding Windows crypto stuff, from Mono.
39273
39274 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
39275
39276         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
39277         if present, for intel RND.  Return error on failures.
39278
39279 2008-08-18  Ben Pfaff  <blp@gnu.org>
39280
39281         gitlog-to-changelog: give better diagnostic for failed pipe-open
39282         * build-aux/gitlog-to-changelog: Improve error message: suggest
39283         that the version of Git may be too old.
39284
39285 2008-08-18  Simon Josefsson  <simon@josefsson.org>
39286
39287         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
39288         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
39289
39290 2008-08-18  Bruno Haible  <bruno@clisp.org>
39291
39292         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
39293         pthread_in_use().
39294
39295 2008-08-18  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/glthread/threadlib.c: Include <pthread.h>.
39298
39299 2008-08-18  Bruno Haible  <bruno@clisp.org>
39300
39301         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
39302         glthread_recursive_lock_* macros.
39303         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
39304         Fix syntax error.
39305
39306 2008-08-18  Bruno Haible  <bruno@clisp.org>
39307
39308         * lib/glthread/thread.c: Avoid forcing a context switch right after
39309         thread creation.
39310
39311 2008-08-17  Bruno Haible  <bruno@clisp.org>
39312
39313         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
39314         * lib/glthread/thread.h: Provide Win32 specific implementation.
39315         * modules/thread (Files): Add lib/glthread/thread.c.
39316         (Depends-on): Add lock.
39317         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
39318
39319 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39320
39321         New module 'yield'.
39322         * modules/yield: New file.
39323         * lib/glthread/yield.h: New file.
39324         * m4/yield.m4: New file.
39325         * MODULES.html.sh (Multithreading): Add yield.
39326
39327 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39328
39329         New module 'thread'.
39330         * modules/thread: New file.
39331         * lib/glthread/thread.h: New file.
39332         * m4/thread.m4: New file.
39333         * MODULES.html.sh (Multithreading): Add thread.
39334
39335 2008-08-17  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/glthread/lock.h: Include <stdlib.h> always.
39338         * lib/glthread/tls.h: Likewise.
39339         * lib/glthread/cond.h: Likewise.
39340
39341 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39342
39343         New module 'cond'.
39344         * modules/cond: New file.
39345         * lib/glthread/cond.h: New file.
39346         * lib/glthread/cond.c: New file.
39347         * m4/cond.m4: New file.
39348         * MODULES.html.sh (Multithreading): Add cond.
39349
39350 2008-08-16  Eric Blake  <ebb9@byu.net>
39351
39352         c-stack: fix regression on Irix 5.3 from 2008-06-21
39353         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39354         sa_sigaction...
39355         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39356         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39358         * modules/signal (Makefile.am): Use the value.
39359         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39360         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39361         * doc/posix-headers/signal.texi (signal.h): Document this
39362         portability issue.
39363         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39364         Reported by Tom G. Christensen.
39365
39366 2008-08-17  Bruno Haible  <bruno@clisp.org>
39367
39368         New module 'threadlib'.
39369         * modules/threadlib: New file.
39370         * lib/glthread/threadlib.c: New file, extracted from
39371         lib/glthread/lock.c.
39372         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39373         functions.
39374         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39375         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39376         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39377         macros.
39378         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39379         (gl_DISABLE_THREADS): Remove macro.
39380         * modules/lock (Files): Remove build-aux/config.rpath.
39381         (Depends-on): Remove havelib. Add threadlib.
39382         (configure.ac-early): Remove section.
39383         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39384         * modules/tls (Depends-on): Remove lock. Add threadlib.
39385         (Link): New section, copied from threadlib.
39386         * MODULES.html.sh (Multithreading): Add threadlib.
39387
39388 2008-08-14  Bruno Haible  <bruno@clisp.org>
39389
39390         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39391         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39392         glthread_rwlock_unlock, glthread_rwlock_destroy,
39393         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39394         glthread_recursive_lock_destroy): Define as macros always.
39395         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39396         glthread_lock_lock.
39397         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39398         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39399         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39400         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39401         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39402         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39403         (glthread_recursive_lock_lock_func): Renamed from
39404         glthread_recursive_lock_lock.
39405         (glthread_recursive_lock_unlock_func): Renamed from
39406         glthread_recursive_lock_unlock.
39407         (glthread_recursive_lock_destroy_func): Renamed from
39408         glthread_recursive_lock_destroy.
39409
39410 2008-08-14  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/glthread/lock.h: Renamed from lib/lock.h.
39413         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39414         * lib/glthread/tls.h: Renamed from lib/tls.h.
39415         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39416         * lib/fstrcmp.c: Update includes.
39417         * lib/strsignal.c: Update includes.
39418         * modules/lock (Files, Makefile.am): Update.
39419         (Include): Change to "glthread/lock.h".
39420         * modules/tls (Files, Makefile.am): Update.
39421         (Include): Change to "glthread/tls.h".
39422         * tests/test-lock.c: Update includes.
39423         * tests/test-tls.c: Update includes.
39424         * NEWS: Mention the renamed header files.
39425
39426 2008-08-11  Jim Meyering  <meyering@redhat.com>
39427
39428         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39429
39430 2008-08-11  Eric Blake  <ebb9@byu.net>
39431
39432         test-c-stack: avoid C99-ism
39433         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39434         before statement.
39435         Reported by Alain Guibert.
39436
39437 2008-08-10  Jim Meyering  <meyering@redhat.com>
39438
39439         ensure that return value of uinttostr et al are not ignored
39440         * lib/inttostr.h (__GNUC_PREREQ): Define.
39441         (__attribute_warn_unused_result__): Define.
39442         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39443
39444 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39445
39446         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39447         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39448
39449 2008-08-07  Jim Meyering  <meyering@redhat.com>
39450
39451         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39452
39453         * modules/mkstemp (License): Relicense under LGPLv2+.
39454         * modules/tempname (License): Likewise.
39455
39456 2008-08-06  Bruno Haible  <bruno@clisp.org>
39457
39458         * lib/poll.c (poll): Further micro-optimization.
39459
39460 2008-08-06  Jim Meyering  <meyering@redhat.com>
39461
39462         inet_pton.c: use locale-independent tolower
39463         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39464         (inet_pton6): Use c_tolower rather than tolower.
39465         * modules/inet_pton (Depends-on): Add c-ctype.
39466
39467 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39468
39469         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39470         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39471
39472 2008-08-06  Jim Meyering  <meyering@redhat.com>
39473
39474         * modules/inet_pton (License): Relicense under LGPLv2+.
39475
39476 2008-08-03  Bruno Haible  <bruno@clisp.org>
39477
39478         Additional non-aborting API for lock and tls.
39479         * lib/lock.h: Include <errno.h>.
39480         (glthread_lock_init): New macro/function.
39481         (gl_lock_init): Define as wrapper around glthread_lock_init.
39482         (glthread_lock_lock): New macro/function.
39483         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39484         (glthread_lock_unlock): New macro/function.
39485         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39486         (glthread_lock_destroy): New macro/function.
39487         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39488         (glthread_rwlock_init): New macro/function.
39489         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39490         (glthread_rwlock_rdlock): New macro/function.
39491         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39492         (glthread_rwlock_wrlock): New macro/function.
39493         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39494         (glthread_rwlock_unlock): New macro/function.
39495         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39496         (glthread_rwlock_destroy): New macro/function.
39497         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39498         (glthread_recursive_lock_init): New macro/function.
39499         (gl_recursive_lock_init): Define as wrapper around
39500         glthread_recursive_lock_init.
39501         (glthread_recursive_lock_lock): New macro/function.
39502         (gl_recursive_lock_lock): Define as wrapper around
39503         glthread_recursive_lock_lock.
39504         (glthread_recursive_lock_unlock): New macro/function.
39505         (gl_recursive_lock_unlock): Define as wrapper around
39506         glthread_recursive_lock_unlock.
39507         (glthread_recursive_lock_destroy): New macro/function.
39508         (gl_recursive_lock_destroy): Define as wrapper around
39509         glthread_recursive_lock_destroy.
39510         (glthread_once): New macro/function.
39511         (gl_once): Define as wrapper around glthread_once.
39512         Update function declarations.
39513         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39514         glthread_rwlock_init. Return error code.
39515         (glthread_rwlock_rdlock_multithreaded): Renamed from
39516         glthread_rwlock_rdlock. Return error code.
39517         (glthread_rwlock_wrlock_multithreaded): Renamed from
39518         glthread_rwlock_wrlock. Return error code.
39519         (glthread_rwlock_unlock_multithreaded): Renamed from
39520         glthread_rwlock_unlock. Return error code.
39521         (glthread_rwlock_destroy_multithreaded): Renamed from
39522         glthread_rwlock_destroy. Return error code.
39523         (glthread_recursive_lock_init_multithreaded): Renamed from
39524         glthread_recursive_lock_init. Return error code.
39525         (glthread_recursive_lock_lock_multithreaded): Renamed from
39526         glthread_recursive_lock_lock. Return error code.
39527         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39528         glthread_recursive_lock_unlock. Return error code.
39529         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39530         glthread_recursive_lock_destroy. Return error code.
39531         (glthread_once_call): Make static.
39532         (glthread_once_multithreaded): Renamed from glthread_once.
39533         * lib/tls.h: Include <errno.h>.
39534         (glthread_tls_key_init): New macro/function.
39535         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39536         (glthread_tls_set): New macro/function.
39537         (gl_tls_set): Define as wrapper around glthread_tls_set.
39538         (glthread_tls_key_destroy): New macro/function.
39539         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39540         Update function declarations.
39541         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39542         glthread_tls_get.
39543         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39544
39545 2008-08-04  Eric Blake  <ebb9@byu.net>
39546
39547         gnumakefile: use space, not TAB, outside of targets
39548         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39549
39550 2008-08-02  Jim Meyering  <meyering@redhat.com>
39551
39552         getdate.y: avoid locale-dependent date parsing failure
39553         In Turkish locales, getdate would fail to recognize keywords
39554         containing a lowercase "i".  The solution is not to rely on
39555         locale-sensitive case-conversion.
39556         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39557         (lookup_word): Use c_toupper in place of toupper.
39558         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39559         Reported by Vefa Bicakci <bicave@superonline.com> in
39560         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39561         * modules/getdate (Depends-on): Add c-ctype.
39562
39563 2008-08-02  Bruno Haible  <bruno@clisp.org>
39564
39565         * gnulib-tool (func_import): When updating or creating a .gitignore
39566         file, prepend each added line with a slash, and ignore leading slashes
39567         from the existing lines.
39568         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39569
39570 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39571
39572         Portability fix for GNU make 3.79.1.
39573         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39574         versions do not understand.
39575
39576 2008-08-01  Bruno Haible  <bruno@clisp.org>
39577
39578         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39579         * tests/test-isnanf.h (zero): New variable.
39580         (main): Avoid literal -0.0f.
39581         * tests/test-isnand.h (zero): New variable.
39582         (main): Avoid literal -0.0.
39583         * tests/test-isnanl.h (zero): New variable.
39584         (main): Avoid literal -0.0L.
39585         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39586         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39587         -0.0, -0.0L.
39588         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39589         (test_signbitd): Avoid literal -0.0.
39590         (test_signbitl): Avoid literal -0.0L.
39591         * tests/test-ceilf1.c (zero): New variable.
39592         (main): Avoid literal -0.0f.
39593         * tests/test-ceill.c (zero): New variable.
39594         (main): Avoid literal -0.0L.
39595         * tests/test-floorf1.c (zero): New variable.
39596         (main): Avoid literal -0.0f.
39597         * tests/test-floorl.c (zero): New variable.
39598         (main): Avoid literal -0.0L.
39599         * tests/test-roundf1.c (zero): New variable.
39600         (main): Avoid literal -0.0f.
39601         * tests/test-round1.c (zero): New variable.
39602         (main): Avoid literal -0.0.
39603         * tests/test-roundl.c (zero): New variable.
39604         (main): Avoid literal -0.0L.
39605         * tests/test-truncf1.c (zero): New variable.
39606         (main): Avoid literal -0.0f.
39607         * tests/test-trunc1.c (zero): New variable.
39608         (main): Avoid literal -0.0.
39609         * tests/test-truncl.c (zero): New variable.
39610         (main): Avoid literal -0.0L.
39611         * tests/test-frexp.c (zero): New variable.
39612         (main): Avoid literal -0.0.
39613         * tests/test-frexpl.c (zero): New variable.
39614         (main): Avoid literal -0.0L.
39615         * tests/test-ldexpl.c (zero): New variable.
39616         (main): Avoid literal -0.0L.
39617         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39618         (zerod, zerol): New variables.
39619         (test_function): Avoid literals -0.0, -0.0L.
39620         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39621         (zerod, zerol): New variables.
39622         (test_function): Avoid literals -0.0, -0.0L.
39623         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39624         (zerod, zerol): New variables.
39625         (test_function): Avoid literals -0.0, -0.0L.
39626         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39627         (zerod, zerol): New variables.
39628         (test_function): Avoid literals -0.0, -0.0L.
39629         * tests/test-strtod.c (zero): New variable.
39630         (main): Avoid literal -0.0.
39631         Reported by Jonathan C. Patschke <jp@centtech.com>.
39632
39633 2008-07-31  Jim Meyering  <meyering@redhat.com>
39634
39635         sha256.h: correct definition of SHA224_DIGEST_SIZE
39636         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39637         Reported by Paulie Pena IV <paulie4@gmail.com>.
39638         Define as 224 / 8, rather than as a literal.
39639         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39640         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39641         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39642
39643 2008-07-31  Bruno Haible  <bruno@clisp.org>
39644
39645         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39646         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39647         Reported by Jonathan Patschke <jp@centtech.com>.
39648
39649 2008-07-31  Bruno Haible  <bruno@clisp.org>
39650
39651         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39652         Reported by Paolo Bonzini <bonzini@gnu.org>.
39653
39654 2008-07-30  Eric Blake  <ebb9@byu.net>
39655
39656         test-strtod: allow compilation without -lm
39657         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39658         Reported by Dennis Clarke <blastwave@gmail.com>.
39659
39660 2008-07-28  Jim Meyering  <meyering@redhat.com>
39661
39662         bootstrap: work also when there are no .po files in po/
39663         * build-aux/bootstrap (update_po_files): Complete the change
39664         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39665
39666 2008-07-27  Jim Meyering  <meyering@redhat.com>
39667
39668         * users.txt: Add zile.
39669
39670 2008-07-26  Ben Pfaff  <blp@gnu.org>
39671
39672         Add missing dependencies on new m4/exponent[fdl].m4 files.
39673         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39674         * modules/isnand-nolibm: Add m4/exponentd.m4.
39675         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39676         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39677         m4/isnan[fdl].m4, because the macros actually used moved.
39678         Reported by Jim Meyering.
39679
39680 2008-07-14  Ben Pfaff  <blp@gnu.org>
39681
39682         Add isinf module.
39683         * lib/isinf.c: New file.
39684         * lib/math.in.h: Define isinf macro if we have decided to replace
39685         it.
39686         * m4/isinf.m4: New file.
39687         * m4/math_h.m4: Initialize and substitute variables for isinf
39688         module.
39689         * modules/isinf: New file.
39690         * modules/isinf-tests: New file.
39691         * modules/math: Add substitutions for new module.
39692         * tests/test-isinf.c: New file.
39693         * doc/posix-functions/isinf.texi: Mention new module.
39694         * MODULES.html.sh: Mention new module.
39695
39696 2008-07-14  Ben Pfaff  <blp@gnu.org>
39697
39698         Factor out some macros for use by additional modules.
39699         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39700         exponentf.m4.
39701         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39702         exponentd.m4.
39703         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39704         file exponentl.m4.
39705         * m4/exponentf.m4: New file.
39706         * m4/exponentd.m4: New file.
39707         * m4/exponentl.m4: New file.
39708         * modules/isnanf: Use new file m4/exponentf.m4.
39709         * modules/isnand: Use new file m4/exponentd.m4.
39710         * modules/isnanl: Use new file m4/exponentl.m4.
39711
39712 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39713
39714         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39715         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39716         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39717         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39718
39719         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39720         readlink on platforms without PATH_MAX.
39721
39722 2008-07-21  Eric Blake  <ebb9@byu.net>
39723
39724         Warn, not fail, on stale version.
39725         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39726
39727         Don't allow installation with stale devel version number.
39728         * top/GNUmakefile (_is-install-target): New macro.
39729         (_curr-ver): Forbid installation with stale version number.
39730
39731 2008-07-20  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39734         TESTS_ENVIRONMENT.
39735         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39736
39737 2008-07-20  Bruno Haible  <bruno@clisp.org>
39738
39739         * lib/c-stack.h (c_stack_action): Add documentation.
39740         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39741
39742 2008-07-20  Bruno Haible  <bruno@clisp.org>
39743
39744         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39745         * modules/readlink (License): Likewise.
39746
39747 2008-07-17  Eric Blake  <ebb9@byu.net>
39748
39749         * modules/c-stack (Link): Fix typo.
39750
39751         Make c-stack use libsigsegv, when available.
39752         * modules/c-stack (Depends-on): Add libsigsegv.
39753         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39754         needed.
39755         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39756         (segv_handler, overflow_handler, c_stack_action)
39757         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39758         implementation when libsigsegv is available, but only when using
39759         the library is necessary.
39760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39761         comment, explaining why XSI check fails on Linux.
39762         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39763         * tests/test-c-stack2.sh: Tweak skip message.
39764         * NEWS: Document new link-time requirements.
39765
39766 2008-07-16  Eric Blake  <ebb9@byu.net>
39767
39768         c-stack: Expose false positives when not using libsigsegv.
39769         * modules/c-stack-tests (Files): Expand test.
39770         * tests/test-c-stack.c (main): Add means to conditionally trigger
39771         non-overflow SIGSEGV.
39772         * tests/test-c-stack2.sh: New file.
39773
39774 2008-07-14  Bruno Haible  <bruno@clisp.org>
39775
39776         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39777         Reported by Eric Blake.
39778
39779 2008-07-14  Sam Steingold  <sds@gnu.org>
39780             Bruno Haible  <bruno@clisp.org>
39781
39782         New module libsigsegv.
39783         * modules/libsigsegv: New file.
39784         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39785         modifications.
39786         * MODULES.html.sh (Signal handling): New section.
39787
39788 2008-07-14  Bruno Haible  <bruno@clisp.org>
39789
39790         * modules/unictype/ctype-* (Description): Add the word "function".
39791         Improves the resulting doc in MODULES.html.
39792
39793 2008-07-12  Ben Pfaff  <blp@gnu.org>
39794
39795         Add longlong module.
39796         * modules/longlong: New file.
39797
39798 2008-07-12  Bruno Haible  <bruno@clisp.org>
39799
39800         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39801         to empty.
39802
39803 2008-07-10  Ben Pfaff  <blp@gnu.org>
39804
39805         Add isnan module.
39806         * doc/posix-functions/isnan.texi: Mention new module.
39807         * lib/math.in.h: Define isnan macro if we have decided to replace
39808         it.
39809         * m4/isnan.m4: New file.
39810         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39811         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39812         also.
39813         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39814         redundancy.
39815         * m4/math_h.m4: Initialize and substitute variables for isnan
39816         module.
39817         * modules/isnan: New file.
39818         * modules/isnan-tests: New file.
39819         * modules/math: Add substitutions for new module.
39820         * tests/test-isnan.c: New file.
39821         * MODULES.html.sh: Mention new module.
39822
39823 2008-07-10  Ben Pfaff  <blp@gnu.org>
39824
39825         Add isnanf module.
39826         * lib/isnanf.m4: New file.
39827         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39828         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39829         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39830         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39831         * modules/isnanf: New file.
39832         * modules/isnanf-tests: New file.
39833         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39834         files.
39835         * tests/test-isnanf-nolibm.c: factored most of its contents into
39836         new file tests/test-isnanf.h.
39837         * tests/test-isnanf.h: New file.
39838         * tests/test-isnanf.c: New file.
39839         * MODULES.html.sh: Mention new module.
39840         * doc/glibc-functions/isnanf.texi: Mention new module.
39841
39842 2008-07-10  Ben Pfaff  <blp@gnu.org>
39843
39844         Add isnand module.
39845         * lib/isnand.h: New file.
39846         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39847         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39848         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39849         functionality also.
39850         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39851         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39852         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39853         * modules/isnand: New file.
39854         * modules/isnand-tests: New file.
39855         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39856         files.
39857         * tests/test-isnand-nolibm.c: factored most of its contents into
39858         new file tests/test-isnand.h.
39859         * tests/test-isnand.h: New file.
39860         * tests/test-isnand.c: New file.
39861         * MODULES.html.sh: Mention new module.
39862
39863 2008-07-10  Ben Pfaff  <blp@gnu.org>
39864
39865         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39866         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39867         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39868         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39869         * modules/isnanf-nolibm: Update references to renamed files.
39870         * modules/isnand-nolibm: Likewise.
39871         * modules/isnanf-nolibm-tests: Likewise.
39872         * modules/isnand-nolibm-tests: Likewise.
39873         * lib/frexp.c: Likewise.
39874         * lib/isfinite.c: Likewise.
39875         * lib/signbitd.c: Likewise.
39876         * lib/signbitf.c: Likewise.
39877         * lib/vasnprintf.c: Likewise.
39878         * tests/test-ceilf1.c: Likewise.
39879         * tests/test-ceilf2.c: Likewise.
39880         * tests/test-floorf1.c: Likewise.
39881         * tests/test-floorf2.c: Likewise.
39882         * tests/test-frexp.c: Likewise.
39883         * tests/test-round1.c: Likewise.
39884         * tests/test-round2.c: Likewise.
39885         * tests/test-roundf1.c: Likewise.
39886         * tests/test-strtod.c: Likewise.
39887         * tests/test-trunc1.c: Likewise.
39888         * tests/test-trunc2.c: Likewise.
39889         * tests/test-truncf1.c: Likewise.
39890         * tests/test-truncf2.c: Likewise.
39891         * NEWS: Mention the renamed header files.
39892
39893 2008-07-11  Jim Meyering  <meyering@redhat.com>
39894
39895         vc-list-files: make the last-resort awk code more portable
39896         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39897         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39898         does not support it.
39899
39900 2008-07-10  Eric Blake  <ebb9@byu.net>
39901
39902         Work with tar's bootstrap.
39903         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39904         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39905         an m4 comment.
39906
39907 2008-07-09  Jim Meyering  <meyering@redhat.com>
39908
39909         posix-shell.m4: fix typo that made this test malfunction
39910         * m4/posix-shell.m4: Remove capitalization in variable name.
39911
39912 2008-07-08  Bruno Haible  <bruno@clisp.org>
39913
39914         * m4/onceonly.m4: Update comments.
39915         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39916
39917 2008-07-04  Jim Meyering  <meyering@redhat.com>
39918
39919         * users.txt: Add vc-dwim.
39920         (bison, coreutils): Use the gitweb URL.
39921
39922 2008-07-03  Jim Meyering  <meyering@redhat.com>
39923
39924         * users.txt: Add libffcall.  From Sam Steingold.
39925
39926 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39927
39928         getdate.y: do not ignore TZ with relative day, month or year offset
39929         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39930         relative-date-handling, since otherwise, the latter would clobber the
39931         sole output (an updated Start value) of the tz-handling block.
39932         * tests/test-getdate.c: Tests for the fix
39933
39934 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39935
39936         Recognize 'foo_LIBRARIES += libgnu.a'.
39937         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39938         makefile snippet has already specified an installation location,
39939         also using '+='.
39940
39941 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39942
39943         getdate.y: factor out common actions
39944         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39945         Use them in place of open-coded actions.
39946
39947 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39948
39949         Add self-test for getdate module.
39950         * modules/getdate-tests: New file.
39951         * tests/test-getdate.c: New file.
39952
39953 2008-06-29  Bruno Haible  <bruno@clisp.org>
39954
39955         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39956         .gitignore.
39957         Reported by Sylvain Beucler <beuc@beuc.net>.
39958
39959 2008-06-29  Bruno Haible  <bruno@clisp.org>
39960
39961         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39962         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39963
39964 2008-06-29  Bruno Haible  <bruno@clisp.org>
39965
39966         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39967         EXTRA_DIST.
39968         Reported by Sylvain Beucler <beuc@beuc.net>.
39969
39970 2008-06-26  Jim Meyering  <meyering@redhat.com>
39971
39972         make several modules depend on the "open" module
39973         This provides slightly increased consistency when opening-for-write
39974         the name of a non-directory spelled with a trailing slash.
39975         * modules/chdir-safer: Likewise.
39976         * modules/chown: Likewise.
39977         * modules/clean-temp: Likewise.
39978         * modules/copy-file: Likewise.
39979         * modules/fchdir: Likewise.
39980         * modules/fcntl-safer: Likewise.
39981         * modules/pipe: Likewise.
39982         * modules/utime: Likewise.
39983         Prompted by Eric Blake and Bruno Haible.
39984
39985 2008-06-24  Andreas Schwab  <schwab@suse.de>
39986
39987         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39988         literals can be used as initializers for global variables.
39989
39990 2008-06-23  Eric Blake  <ebb9@byu.net>
39991
39992         Make gnulib-cache.m4 easier to diff.
39993         * gnulib-tool (func_import): Allow newlines when reading cached
39994         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39995
39996 2008-06-23  Bruno Haible  <bruno@clisp.org>
39997
39998         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39999         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
40000         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
40001         m4/signalblocking.m4.
40002         (gl_PREREQ_SIGACTION): Don't invoke it.
40003         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
40004         gl_PREREQ_SIG_HANDLER_H.
40005         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40006         Don't check for sigaction here.
40007
40008 2008-06-23  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
40011         (install_handlers): Don't set the SA_RESETHAND flag.
40012
40013 2008-06-23  Bruno Haible  <bruno@clisp.org>
40014
40015         * m4/sigaction.m4: Comment fixes.
40016         * lib/signal.in.h: Likewise.
40017
40018 2008-06-23  Eric Blake  <ebb9@byu.net>
40019
40020         Fix typo.
40021         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
40022
40023         Avoid SA_ namespace.
40024         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
40025         Reported by Ralf Wildenhues.
40026
40027         Avoid test failure due to SA_RESTORER.
40028         * tests/test-sigaction.c (SA_MASK): New macro.
40029         (main): Avoid failing due to extension flags being set.
40030         Reported by Jim Meyering.
40031
40032         Revert use of sig-handler.h in sigprocmask.c.
40033         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
40034         it requires the existence of struct sigaction.
40035         * lib/sigprocmask.c (handler_t): Restore typedef.
40036         (rpl_signal, old_handlers): Use local type.
40037
40038 2008-06-22  Bruno Haible  <bruno@clisp.org>
40039
40040         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
40041         conditionally.
40042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40043
40044 2008-06-22  Bruno Haible  <bruno@clisp.org>
40045
40046         * doc/posix-functions/siginterrupt.texi: Move note.
40047
40048         * lib/signal.in.h (SA_RESTART): New macro.
40049         * lib/sigaction.c: Update comment.
40050
40051         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
40052
40053         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
40054         (gl_PREREQ_SIGPROCMASK): Invoke it.
40055         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
40056
40057         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
40058
40059         * lib/sigprocmask.c: Update a comment.
40060
40061 2008-06-21  Eric Blake  <ebb9@byu.net>
40062
40063         Use sigaction module rather than signal().
40064         * modules/c-stack (Depends-on): Add sigaction.
40065         * modules/fatal-signal (Depends-on): Likewise.
40066         * modules/nanosleep (Depends-on): Likewise.
40067         * modules/sigprocmask (Files): Add sig-handler.h.
40068         * modules/sigaction (Files): Likewise.
40069         * lib/sig-handler.h (get_handler): New file, suggested by Paul
40070         Eggert.
40071         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
40072         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
40073         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40074         (init_fatal_signals): Likewise.
40075         * lib/nanosleep.c (rpl_nanosleep): Likewise.
40076         (siginterrupt): Delete fallback.
40077         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
40078         instead.
40079         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
40080         siginterrupt.
40081
40082         New module sigaction, for mingw.
40083         * modules/sigaction: New module...
40084         * modules/sigaction-tests: ...and its test.
40085         * m4/sigaction.m4: New file.
40086         * lib/sigaction.c: Likewise.
40087         * tests/test-sigaction.c: Likewise.
40088         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
40089         * modules/signal (Makefile.am): Likewise.
40090         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
40091         needed.
40092         * doc/posix-headers/signal.texi (signal.h): Mention provided
40093         types.
40094         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
40095         that sigaction is preferable.
40096         * doc/posix-functions/sigaction.texi (sigaction): Mention new
40097         module.
40098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40099         sigaction.
40100
40101         Improve robustness of sigprocmask by overriding signal.
40102         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
40103         is in use.
40104         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
40105         (SIGKILL, SIGSTOP): Provide fallbacks.
40106         (rpl_signal): Implement.
40107         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
40108         signal can be called inside handlers.
40109
40110         Fix nanosleep module on mingw.
40111         * modules/nanosleep (Depends-on): Add sys_select.
40112         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
40113
40114         Fix licensing of sigprocmask.
40115         * modules/raise (License): Relicense as LGPL.
40116
40117 2008-06-21  Bruno Haible  <bruno@clisp.org>
40118
40119         * lib/propername.c (proper_name_utf8): Don't use the transliterated
40120         result if it contains question marks.
40121         Reported by Michael Geng <linux@michaelgeng.de>.
40122
40123 2008-06-19  Bruno Haible  <bruno@clisp.org>
40124
40125         Fix CVS-ism.
40126         * doc/gnulib.texi: Include updated-stamp.texi.
40127         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
40128         (updated-stamp.texi): New rule.
40129         (gnulib.info): Depend on it.
40130         * doc/.gitignore: Add updated-stamp.texi.
40131         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
40132
40133 2008-06-19  Bruno Haible  <bruno@clisp.org>
40134
40135         * doc/Makefile (gnulib.info): Update and simplify dependencies.
40136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40137
40138 2008-06-19  Eric Blake  <ebb9@byu.net>
40139
40140         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
40141         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
40142         Reported by Stepan Kasal.
40143
40144 2008-06-18  Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/fatal-signal.c (init_fatal_signals): Add comment.
40147         Reported by Eric Blake.
40148
40149 2008-06-18  Eric Blake  <ebb9@byu.net>
40150
40151         Work around cygwin 1.5.25 strsignal bug.
40152         * tests/test-strsignal.c: Allow for const char *.
40153         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
40154
40155 2008-06-18  Simon Josefsson  <simon@josefsson.org>
40156
40157         * users.txt: Update URL to article and add author/date
40158         information.
40159
40160 2008-06-17  Bruno Haible  <bruno@clisp.org>
40161
40162         New macro gl_DISABLE_THREADS.
40163         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
40164         if the user did not pass --enable-threads or --disable-threads option.
40165         (gl_DISABLE_THREADS): New macro.
40166         Reported by Eric Blake <ebb9@byu.net>.
40167
40168 2008-06-17  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
40171         when the macro ignores it.
40172         Based on a patch by Eric Blake <ebb9@byu.net>.
40173
40174 2008-06-17  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/tls (License): Change to LGPLv2+.
40177         Reported by Eric Blake.
40178
40179 2008-06-17  Eric Blake  <ebb9@byu.net>
40180
40181         Simplify c-stack prerequisites.
40182         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
40183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
40184         no longer requires <ucontext.h> to exist.  Optimize setrlimit
40185         check.
40186         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
40187         <sys/resource.h>.
40188
40189         Move c-stack test into testsuite.
40190         * modules/c-stack-tests: New file.
40191         * lib/c-stack.c [DEBUG]: Move test program...
40192         * tests/test-c-stack.c: ...into this new file.  Skip rather than
40193         fail test if sigaltstack is lacking.
40194         * tests/test-c-stack.sh: New driver file.
40195
40196 2008-06-16  Eric Blake  <ebb9@byu.net>
40197
40198         Use raise module consistently.
40199         * modules/fatal-signal (Depends-on): Add raise.
40200         * modules/sigprocmask (Depends-on): Likewise.
40201         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
40202         * lib/sigprocmask.c (sigprocmask): Likewise.
40203         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40204         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
40205
40206         Fix compliance bug in sigpending.
40207         * lib/sigprocmask.c (sigpending): Return pending array via
40208         parameter, not return value.
40209
40210 2008-06-14  Eric Blake  <ebb9@byu.net>
40211
40212         Improve obstack-printf test code.
40213         * tests/test-obstack-printf.c (test_function): Fix comment, and
40214         simplify usage of obstack_* in macros.  Add a test for coverage.
40215         Reported by Bruno Haible.
40216
40217 2008-06-14  Bruno Haible  <bruno@clisp.org>
40218
40219         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
40220         array size as a constant, not as a const variable.
40221         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
40222         AC_USE_SYSTEM_EXTENSIONS.
40223         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40224         Test whether the obstack_printf function actually exists.
40225         * modules/obstack-printf (Depends-on): Add extensions.
40226         (Include): Remove obstack.h.
40227         * modules/obstack-printf-posix (Depends-on): Add extensions.
40228         (Include): Remove obstack.h.
40229
40230 2008-06-13  Eric Blake  <ebb9@byu.net>
40231
40232         Add obstack-printf and obstack-printf-posix modules.
40233         * modules/obstack-printf: New file.
40234         * modules/obstack-printf-posix: Likewise.
40235         * MODULES.html.sh (Misc): Mention them.
40236         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40237         Likewise.
40238         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40239         Likewise.
40240         * modules/stdio (Makefile.am): Accomodate new modules.
40241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40242         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
40243         Declare.
40244         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
40245         functions.
40246         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
40247         (gl_REPLACE_OBSTACK_PRINTF): New macros
40248         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
40249         * tests/test-obstack-printf.c: New file.
40250         * modules/obstack-printf-tests: Likewise.
40251         * modules/obstack-printf-posix-tests: Likewise.
40252
40253 2008-06-11  Bruno Haible  <bruno@clisp.org>
40254
40255         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
40256         * lib/open.c: Include errno.h.
40257         (open): Fail when attempting to write to a file that has a trailing
40258         slash.
40259         * tests/test-open.c (main): Test against trailing slash bug.
40260         * doc/posix-functions/open.texi: Mention the trailing slash bug.
40261
40262 2008-06-10  Bruno Haible  <bruno@clisp.org>
40263
40264         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
40265         for $? to work inside the trap command, with various /bin/sh-s.
40266         * tests/test-vc-list-files-cvs.sh: Likewise.
40267
40268 2008-06-10  Bruno Haible  <bruno@clisp.org>
40269
40270         * lib/acl-internal.h: Don't include gettext.h here.
40271         * lib/set-mode-acl.c: Include gettext.h here.
40272         * lib/copy-acl.c: Likewise.
40273
40274 2008-06-10  Bruno Haible  <bruno@clisp.org>
40275
40276         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
40277         * lib/wait-process.c (wait_subprocess): Likewise.
40278         * lib/execute.h (execute): Add termsigp argument.
40279         * lib/execute.c (execute): Likewise.
40280         * lib/csharpcomp.c (compile_csharp_using_pnet,
40281         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
40282         * lib/csharpexec.c (execute_csharp_using_pnet,
40283         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
40284         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
40285         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
40286         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
40287         is_jikes_present): Update.
40288         * lib/javaexec.c (execute_java_class): Update.
40289         * lib/javaversion.c (execute_and_read_line): Update.
40290         * NEWS: Document the changes.
40291         Reported by Eric Blake.
40292
40293 2008-06-10  Eric Blake  <ebb9@byu.net>
40294
40295         Add missing include.
40296         * tests/test-strstr.c (includes): Add <signal.h>.
40297         * tests/test-strcasestr.c (includes): Likewise.
40298         * tests/test-memmem.c (includes): Likewise.
40299
40300 2008-06-10  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/wait-process.c (wait_subprocess): Add an assertion.
40303
40304 2008-06-10  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
40307
40308 2008-06-10  Bruno Haible  <bruno@clisp.org>
40309
40310         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
40311         using alarm().
40312         * tests/test-strcasestr.c (main): Likewise.
40313         * tests/test-strstr.c (main): Likewise.
40314
40315 2008-06-09  Bruno Haible  <bruno@clisp.org>
40316
40317         Work around the Solaris 10 ACE ACLs ABI change.
40318         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
40319         declare if ACL_NO_TRIVIAL is present.
40320         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
40321         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
40322         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
40323         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
40324         define if ACL_NO_TRIVIAL is present.
40325         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
40326         and use the current ABI.
40327         (file_has_acl): Use same #if condition as elsewhere.
40328         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
40329         in use, and use the current ABI.
40330         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40331         Reported by Jim Meyering.
40332
40333 2008-06-09  Eric Blake  <ebb9@byu.net>
40334
40335         Work around environments that (stupidly) ignore SIGALRM.
40336         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40337         before using alarm().
40338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40340         Reported by Ian Beckwith <ianb@erislabs.net>.
40341
40342         Produce autobuild blurb earlier in log.
40343         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40344
40345 2008-06-09  Jim Meyering  <meyering@redhat.com>
40346         and OndÅ™ej Vašík  <ovasik@redhat.com>
40347
40348         utimens.c: correct kernel bug work-around
40349         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40350         failure, not success, and the kernel bug we're trying to work
40351         around affects not just the utimensat call, but also the fallback
40352         futimens call.
40353         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40354         not success.
40355         [HAVE_FUTIMENS]: Use the same work-around, here.
40356
40357 2008-06-09  Jim Meyering  <meyering@redhat.com>
40358
40359         add more guards around definition of ACE_-related code
40360         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40361         ALLOW and ACE_OWNER are also defined.
40362
40363 2008-06-08  Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/acl-internal.h: Add me as co-author.
40366         * lib/file-has-acl.c: Likewise.
40367         * lib/set-mode-acl.c: Likewise.
40368         * lib/copy-acl.c: Likewise.
40369
40370 2008-06-08  Bruno Haible  <bruno@clisp.org>
40371
40372         Add support for AIX ACLs.
40373         * lib/acl-internal.h (acl_nontrivial): New declaration.
40374         * lib/file-has-acl.c (acl_nontrivial): New function.
40375         (file_has_acl): Add implementation using AIX 4 ACL API.
40376         * lib/set-mode-acl.c (qset_acl): Likewise.
40377         * lib/copy-acl.c (qcopy_acl): Likewise.
40378
40379 2008-06-08  Bruno Haible  <bruno@clisp.org>
40380
40381         Add support for HP-UX ACLs.
40382         * lib/acl-internal.h (acl_nontrivial): New declaration.
40383         * lib/file-has-acl.c (acl_nontrivial): New function.
40384         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40385         * lib/set-mode-acl.c (qset_acl): Likewise.
40386         * lib/copy-acl.c (qcopy_acl): Likewise.
40387
40388 2008-06-08  Bruno Haible  <bruno@clisp.org>
40389
40390         Add support for Cygwin ACLs.
40391         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40392         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40393         the chmod_or_fchmod call.
40394         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40395
40396 2008-06-08  Bruno Haible  <bruno@clisp.org>
40397
40398         Fix bug with setuid modes in Solaris 10+ code.
40399         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40400         succeeded, when the mode contains some special bits.
40401
40402 2008-06-08  Bruno Haible  <bruno@clisp.org>
40403
40404         Add support for Solaris 7..10 ACLs.
40405         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40406         declarations.
40407         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40408         functions.
40409         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40410         * lib/set-mode-acl.c (qset_acl): Likewise.
40411         * lib/copy-acl.c (qcopy_acl): Likewise.
40412
40413 2008-06-08  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40416         declaration.
40417         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40418         (acl_access_nontrivial): Remove MacOS X case.
40419         (file_has_acl): Use acl_extended_nontrivial.
40420         * lib/copy-acl.c (qcopy_acl): Likewise.
40421
40422 2008-06-08  Bruno Haible  <bruno@clisp.org>
40423
40424         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40425
40426 2008-06-08  Jim Meyering  <meyering@redhat.com>
40427
40428         * modules/acl (Maintainer): Add Bruno Haible.
40429
40430 2008-06-07  Bruno Haible  <bruno@clisp.org>
40431
40432         Improve support for Tru64 ACLs.
40433         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40434         ACL on OSF/1.
40435
40436 2008-06-07  Bruno Haible  <bruno@clisp.org>
40437
40438         Add support for MacOS X ACLs.
40439         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40440         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40441         * lib/set-mode-acl.c (qset_acl): Likewise.
40442         * lib/copy-acl.c (qcopy_acl): Likewise.
40443
40444 2008-06-07  Bruno Haible  <bruno@clisp.org>
40445
40446         Fix memory leak introduced on 2008-05-22.
40447         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40448         use.
40449
40450 2008-06-07  Bruno Haible  <bruno@clisp.org>
40451
40452         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40453         to construct an empty ACL.
40454
40455 2008-06-07  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40458         precisely.
40459         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40460
40461 2008-06-07  Bruno Haible  <bruno@clisp.org>
40462
40463         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40464         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40465
40466 2008-06-07  Bruno Haible  <bruno@clisp.org>
40467
40468         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40469         regardless of POSIX.
40470         * doc/posix-functions/_longjmp.texi: Likewise.
40471         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40472         SystemV platform in this case.
40473
40474 2008-06-06  Eric Blake  <ebb9@byu.net>
40475
40476         Document abort() bugs.
40477         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40478
40479         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40480         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40481         sigsetjmp.
40482         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40483         siglongjmp, but only as a macro.
40484         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40485         is obsolete.
40486         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40487
40488         Tweak documentation to cover cygwin argz bugs.
40489         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40490         argz bug fix; no code change needed since no cygwin releases
40491         occurred between the last fix and the bug being tested.
40492         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40493         module and recently fixed cygwin bugs.
40494         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40495         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40496         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40497         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40498         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40499         Likewise.
40500         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40501         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40502         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40503         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40504         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40505         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40506         Likewise.
40507
40508         Avoid gcc warning on cygwin.
40509         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40510         !ACL_NO_TRIVIAL]: Avoid unused variable.
40511
40512 2008-06-05  Eric Blake  <ebb9@byu.net>
40513
40514         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40515         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40516         git-version-gen fails to come up with a version.
40517         Reported by Simon Josefsson.
40518
40519 2008-06-05  Jim Meyering  <meyering@redhat.com>
40520             Paul Eggert  <eggert@cs.ucla.edu>
40521
40522         utimens.c: work around a probable Linux kernel bug
40523         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40524         appears to be a kernel bug that causes utimensat to return 280
40525         instead of 0, indicating success.
40526
40527 2008-06-04  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40530         2008-06-01 commit.
40531
40532 2008-06-04  Bruno Haible  <bruno@clisp.org>
40533
40534         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40535         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40536         (file_has_acl): Use it. Save errno afterwards.
40537         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40538
40539 2008-06-03  Bruno Haible  <bruno@clisp.org>
40540
40541         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40542         draft code. Simplify #ifs.
40543         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40544         Put Solaris code after POSIX-draft code. Fix comments regarding
40545         Solaris 10, HP-UX. Mention Cygwin.
40546         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40547
40548 2008-06-03  Eric Blake  <ebb9@byu.net>
40549
40550         Provide fallback for older kernels.
40551         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40552         Provide runtime fallback if kernel lacks support.
40553         Reported by Mike Frysinger.
40554
40555 2008-06-02  Bruno Haible  <bruno@clisp.org>
40556
40557         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40558         it exists.
40559
40560 2008-06-02  Bruno Haible  <bruno@clisp.org>
40561
40562         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40563         * lib/copy-acl.c (qcopy_acl): Update comment.
40564
40565 2008-06-02  Bruno Haible  <bruno@clisp.org>
40566
40567         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40568         like ACL APIs.
40569
40570 2008-06-02  Bruno Haible  <bruno@clisp.org>
40571
40572         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40573         * tests/test-set-mode-acl.sh: Likewise.
40574         * tests/test-copy-acl.sh: Likewise.
40575         * tests/test-copy-file.sh: Likewise.
40576
40577 2008-06-02  Bruno Haible  <bruno@clisp.org>
40578
40579         * tests/test-file-has-acl.sh: Remove unused code.
40580
40581 2008-06-01  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40584         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40585         messages.
40586         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40587
40588 2008-06-01  Bruno Haible  <bruno@clisp.org>
40589
40590         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40591         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40592         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40593         APIs.
40594         * modules/acl-tests (configure.ac): Remove tests now contained in
40595         m4/acl.m4.
40596
40597 2008-06-02  Jim Meyering  <meyering@redhat.com>
40598
40599         announce-gen: use a better key-server host name
40600         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40601         it may be more consistently reliable.  Suggested by Werner Koch
40602         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40603
40604 2008-06-01  Bruno Haible  <bruno@clisp.org>
40605
40606         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40607         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40608
40609 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40610
40611         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40612
40613 2008-06-01  Bruno Haible  <bruno@clisp.org>
40614
40615         New ACL tests.
40616         * tests/test-file-has-acl.sh: New file.
40617         * tests/test-file-has-acl.c: New file.
40618         * tests/test-set-mode-acl.sh: New file.
40619         * tests/test-set-mode-acl.c: New file.
40620         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40621         * tests/test-copy-acl.c: New file.
40622         * modules/acl-tests: New file, based on modules/copy-file-tests.
40623         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40624         (Depends-on): Add acl-tests.
40625         (configure.ac): Remove checks.
40626         (Makefile.am): Don't create test-sameacls program here any more.
40627
40628 2008-06-01  Bruno Haible  <bruno@clisp.org>
40629
40630         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40631         * tests/test-sameacls.c: Include progname.h.
40632         (main): Invoke set_program_name. Portability fixes for MacOS X,
40633         Solaris, HP-UX.
40634
40635 2008-06-01  Bruno Haible  <bruno@clisp.org>
40636
40637         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40638         function.
40639         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40640
40641 2008-06-01  Bruno Haible  <bruno@clisp.org>
40642
40643         * modules/rpmatch (Depends-on): Add strdup.
40644
40645 2008-06-01  Bruno Haible  <bruno@clisp.org>
40646
40647         * lib/pipe.c: Include unistd-safer.h.
40648         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40649         * modules/pipe (Depends-on): Add unistd-safer.
40650
40651 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40652
40653         * modules/autobuild (configure.ac): Call AB_INIT.
40654
40655 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40656
40657         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40658         Suggested by Bruno Haible <bruno@clisp.org>.
40659
40660 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40661
40662         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40663         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40664         <bruno@clisp.org>.
40665
40666 2008-05-29  Eric Blake  <ebb9@byu.net>
40667
40668         Prefer new POSIX 200x interfaces over futimesat.
40669         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40670         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40671         when available.
40672         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40673
40674 2008-05-28  Bruno Haible  <bruno@clisp.org>
40675
40676         * modules/stpcpy (License): Change to LGPLv2+.
40677         Requested by David Lutterkort <dlutter@redhat.com>.
40678
40679 2008-05-27  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40682         current mingw.
40683         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40684
40685 2008-05-27  Bruno Haible  <bruno@clisp.org>
40686
40687         * modules/iconv_open (Link): New section, from module 'iconv'.
40688         * modules/striconv (Link): Likewise.
40689         * modules/striconveh (Link): Likewise.
40690         * modules/xstriconv (Link): Likewise.
40691         * modules/unicodeio (Link): Likewise.
40692         * modules/propername (Link): Likewise.
40693         Reported by Jim Meyering.
40694
40695 2008-05-26  Jim Meyering  <meyering@redhat.com>
40696
40697         sha256: do not artificially restrict buffer length to be < 2^32
40698         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40699         uint32_t to size_t.
40700         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40701         to match.
40702
40703         avoid unaligned access errors, e.g., on sparc
40704         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40705         direct access through a possibly-unaligned uint64* pointer.
40706         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40707         direct access through a possibly-unaligned uint32* pointer.
40708         Prompted by this patch from Tom "spot" Callaway:
40709         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40710
40711         sha512.c: fix typo in comment
40712         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40713
40714 2008-05-25  Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40717         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40718         (Makefile.am): Update lib_SOURCES.
40719
40720 2008-05-25  Bruno Haible  <bruno@clisp.org>
40721
40722         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40723
40724 2008-05-25  Jim Meyering  <meyering@redhat.com>
40725
40726         useless-if-before-free: freed expr may have white-space differences
40727         * build-aux/useless-if-before-free: Recognize cases in which the
40728         freed expression differs from the tested one in embedded white
40729         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40730         $1 was used, so we can't make any regexp shy.  Improved tests now
40731         detect this.
40732
40733         useless-if-before-free: accept white space in the expression.
40734         * build-aux/useless-if-before-free: For now, any white space
40735         in the expression must be identical in the free argument.
40736
40737         useless-if-before-free: efficiency tweak
40738         * build-aux/useless-if-before-free: Make the expression-matching
40739         regexp "shy".
40740         Make the *outer* regexp shy, not the expr-matching one.
40741
40742         update code-in-comment to accept cast of free arg
40743         * build-aux/useless-if-before-free: Update regexp.
40744
40745 2008-05-25  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40748         * modules/copy-file-tests (Files, Makefile.am): Update.
40749         * tests/test-copy-file.c (func_test_copy): Update.
40750
40751 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40752
40753         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40754
40755 2008-05-23  Bruno Haible  <bruno@clisp.org>
40756
40757         Improve support for ACLs on OSF/1.
40758         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40759         Remove fallback for unknown flavors of ACLs.
40760
40761 2008-05-22  Bruno Haible  <bruno@clisp.org>
40762
40763         Add support for ACLs on OSF/1.
40764         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40765         replacements.
40766         (acl_free_text): New macro fallback.
40767         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40768         acl_free.
40769         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40770         acl_free_text function. Require AC_C_INLINE.
40771
40772 2008-05-22  Bruno Haible  <bruno@clisp.org>
40773
40774         Make copy_acl work on MacOS X 10.5.
40775         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40776         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40777         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40778         If MODE_INSIDE_ACL, don't assume that every system has the same text
40779         representation for ACLs as FreeBSD.
40780         * lib/copy-acl.c (copy_acl): Add support for platforms with
40781         !MODE_INSIDE_ACL.
40782         * lib/file-has-acl.c (file_has_acl): Likewise.
40783         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40784         FreeBSD, MacOS X, or IRIX, respectively.
40785
40786 2008-05-22  Bruno Haible  <bruno@clisp.org>
40787
40788         * lib/acl.h: Don't include <sys/acl.h>.
40789         (GETACLCNT): Move fallback to lib/acl-internal.h.
40790         * lib/acl-internal.h: Include <sys/acl.h> here.
40791         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40792
40793 2008-05-22  Bruno Haible  <bruno@clisp.org>
40794
40795         Split off copy_acl function to separate file.
40796         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40797         * lib/acl.c (copy_acl): Moved function to separate file.
40798         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40799         * modules/acl (Files): Add lib/copy-acl.c.
40800         (Makefiles.am): Augment lib_SOURCES.
40801
40802 2008-05-22  Bruno Haible  <bruno@clisp.org>
40803
40804         * modules/copy-file-tests: New file.
40805         * tests/test-copy-file.sh: New file.
40806         * tests/test-copy-file.c: New file.
40807         * tests/test-copy-file-sameacls.c: New file.
40808
40809 2008-05-22  Eric Blake  <ebb9@byu.net>
40810
40811         Avoid gcc warning.
40812         * tests/test-memcmp.c (main): Pass NULL indirectly.
40813
40814 2008-05-21  Bruno Haible  <bruno@clisp.org>
40815
40816         Add reference doc about ACLs.
40817         * doc/acl-resources.txt: New file.
40818         * doc/acl-cygwin.txt: New file.
40819
40820 2008-05-21  Bruno Haible  <bruno@clisp.org>
40821
40822         Avoid one more warning from gcc.
40823         * lib/vasnprintf.c (IF_LINT): Update comments.
40824         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40825
40826 2008-05-21  Jim Meyering  <meyering@redhat.com>
40827
40828         avoid a warning from gcc
40829         * lib/vasnprintf.c (IF_LINT): Define.
40830         (scale10_round_decimal_long_double):
40831         Use it to avoid a "may be used uninitialized" warning.
40832         (scale10_round_decimal_double): Likewise.
40833
40834 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40835
40836         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40837         declared.
40838
40839 2008-05-20  Bruno Haible  <bruno@clisp.org>
40840
40841         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40842         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40843
40844 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40845
40846         * modules/memcmp-tests: New file.
40847         * tests/test-memcmp.c: New file.
40848
40849 2008-05-19  Bruno Haible  <bruno@clisp.org>
40850
40851         * modules/propername (Notice, configure.ac): Put quoted "..." into
40852         --keyword option.
40853         * lib/propername.h: Update comments accordingly.
40854         Reported by Eric Blake.
40855
40856 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40857
40858         * modules/getpass-gnu (Depends-on): Add fseeko.
40859
40860 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40861
40862         * modules/base64-tests: New file.
40863
40864 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40865
40866         * lib/base64.c (base64_decode_ctx): If a decode context structure
40867         was passed in use it to ignore newlines.  If a context structure
40868         was _not_ passed in, continue to treat newlines as garbage (this
40869         is the historical behavior).  Formerly base64_decode.
40870         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40871         takes a decode context structure.
40872         * lib/base64.h (base64_decode): Macro for four-argument calls.
40873         (base64_decode_alloc): Likewise.
40874         * lib/base64.c (base64_decode_ctx): If a decode context structure
40875         was passed in use it to ignore newlines.  If a context structure
40876         was _not_ passed in, continue to treat newlines as garbage (this
40877         is the historical behavior).  Formerly base64_decode.
40878         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40879         takes a decode context structure.
40880         * lib/base64.h (base64_decode): Macro for four-argument calls.
40881         (base64_decode_alloc): Likewise.
40882
40883 2008-05-19  Jim Meyering  <meyering@redhat.com>
40884
40885         avoid a warning from gcc
40886         * lib/trim.c (IF_LINT): Define.
40887         (trim2): Use it to avoid a "may be used uninitialized" warning.
40888
40889         Fix doc typo.
40890         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40891
40892 2008-05-19  Bruno Haible  <bruno@clisp.org>
40893
40894         * doc/glibc-functions/getpass.texi: Document limits of other
40895         implementations.
40896
40897 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40898             Bruno Haible <bruno@clisp.org>
40899
40900         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40901
40902 2008-05-18  Bruno Haible  <bruno@clisp.org>
40903
40904         * modules/propername: New file, from GNU gettext.
40905         * lib/propername.h: New file, from GNU gettext.
40906         * lib/propername.c: New file, from GNU gettext.
40907         * MODULES.html.sh (Internationalization functions): Add propername.
40908
40909 2008-05-16  Jim Meyering  <meyering@redhat.com>
40910             Bruno Haible  <bruno@clisp.org>
40911
40912         Avoid some warnings from "gcc -Wshadow".
40913         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40914
40915 2008-05-15  Eric Blake  <ebb9@byu.net>
40916
40917         Extend previous patch to cygwin 1.7.0.
40918         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40919         fast implementation in cygwin >= 1.7.0.
40920         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40922
40923 2008-05-15  Bruno Haible  <bruno@clisp.org>
40924
40925         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40926         implementation in glibc >= 2.9.
40927         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40929
40930 2008-05-15  Bruno Haible  <bruno@clisp.org>
40931
40932         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40933         (Unicode string functions): Add unilbrk/*.
40934         Reported by Karl Berry.
40935
40936 2008-05-15  Eric Blake  <ebb9@byu.net>
40937
40938         Fix violation of <stdbool.h> replacement in regex.
40939         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40940         * lib/regexec.c (re_search_internal): Likewise.
40941         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40942
40943 2008-05-15  Jim Meyering  <meyering@redhat.com>
40944
40945         avoid distracting test output when git or cvs is not found
40946         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40947         * tests/test-vc-list-files-git.sh: Likewise.
40948
40949 2008-05-15  Eric Blake  <ebb9@byu.net>
40950
40951         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40952         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40953         glibc version.
40954         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40955         * doc/posix-functions/strstr.texi (strstr): Likewise.
40956         * lib/str-two-way.h (MAX): Sychronize with glibc.
40957
40958 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40959
40960         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40961         opr.ctx_type.
40962         (calc_first): Initialize constraint field.
40963         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40964         Fix grammar.
40965         (duplicate_node): Merge constraint field for all node types.
40966         (calc_eclosure_iter): Look at constraint field for all node types.
40967         * lib/regex_internal.c (create_cd_newstate): Don't look at
40968         opr.ctx_type.
40969
40970 2008-05-14  Bruno Haible  <bruno@clisp.org>
40971
40972         Help GCC to do better code generation.
40973         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40974         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40975         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40976         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40977         Declare with attribute 'malloc' if supported.
40978
40979 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40980
40981         use "echo STR|wc -c" rather than unportable "expr length STR"
40982         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40983         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40984
40985 2008-05-14  Jim Meyering  <meyering@redhat.com>
40986
40987         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40988         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40989         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40990         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40991         via Collin Lasse.
40992
40993 2008-05-14  Eric Blake  <ebb9@byu.net>
40994
40995         Avoid quadratic growth in gl_LIBSOURCES.
40996         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40997         Suggested by Bruno Haible.
40998
40999         Test xmemdup0.
41000         * modules/xmemdup0-tests: New file.
41001         * tests/test-xmemdup0.c: Likewise.
41002
41003 2008-05-13  Eric Blake  <ebb9@byu.net>
41004
41005         Split xmemdup0 into its own module.
41006         * modules/xmemdup0: New file.
41007         * lib/xmemdup0.h: Likewise.
41008         * lib/xmemdup0.c: Likewise.
41009         * MODULES.html.sh (Memory management functions): Add xmemdup0.
41010         * lib/xalloc.h (xmemdup0): Remove.
41011         * lib/xmalloc.c (xmemdup0): Likewise.
41012
41013 2008-05-13  Eric Blake  <ebb9@byu.net>
41014             Bruno Haible  <bruno@clisp.org>
41015
41016         Reduce number of forks required during autoconf.
41017         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
41018         and gl_LIBSOURCES_DIR.
41019         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
41020         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
41021         m4_syscmd per file.
41022         <m4_foreach_w>: Move...
41023         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
41024
41025 2008-05-13  Eric Blake  <ebb9@byu.net>
41026
41027         * gnulib-tool: Fix various comment typos.
41028
41029 2008-05-12  Bruno Haible  <bruno@clisp.org>
41030
41031         Tailor the linebreaking algorithm.
41032         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
41033
41034 2008-05-12  Bruno Haible  <bruno@clisp.org>
41035
41036         Update to Unicode 5.0.0.
41037         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41038         LBP_JV, LBP_JT. Redistribute values.
41039         (unilbrk_table): Change size.
41040         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
41041         Unicode TR#14 rev. 22.
41042         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
41043         LBP_JV, LBP_JT. Redistribute values.
41044         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
41045         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
41046         Update.
41047         * lib/unilbrk/lbrkprop1.h: Regenerated.
41048         * lib/unilbrk/lbrkprop2.h: Regenerated.
41049         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
41050         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
41051         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
41052         Likewise.
41053         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
41054         Likewise.
41055         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
41056         result.
41057         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
41058         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
41059         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
41060         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
41061         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
41062         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
41063
41064 2008-05-11  Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
41067
41068 2008-05-11  Bruno Haible  <bruno@clisp.org>
41069
41070         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
41071         * modules/unilbrk/gen-lbrk: New file.
41072
41073 2008-05-11  Bruno Haible  <bruno@clisp.org>
41074
41075         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
41076         * m4/sha512.m4 (gl_SHA512): Likewise.
41077
41078 2008-05-11  Jim Meyering  <meyering@redhat.com>
41079
41080         New modules: crypto/sha256, crypto/sha512 (from coreutils)
41081         * modules/crypto/sha256: New file.
41082         * modules/crypto/sha512: Likewise.
41083         * lib/sha256.c: Likewise.
41084         * lib/sha256.h: Likewise.
41085         * lib/sha512.c: Likewise.
41086         * lib/sha512.h: Likewise.
41087         * lib/u64.h: Likewise.
41088         * m4/sha256.m4: Likewise.
41089         * m4/sha512.m4: Likewise.
41090         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
41091
41092 2008-05-10  Bruno Haible  <bruno@clisp.org>
41093
41094         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
41095         (Input/Output <stdio.h>): Add xprintf.
41096         (Signal handling <signal.h>): Add strsignal.
41097         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
41098         (Core language properties): Add func.
41099         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
41100         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
41101         strings.
41102         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
41103         (Input/output): New section.
41104         (File system functions): Add openat-die, stat-macros.
41105         (Networking functions): Add sockets.
41106         (Unicode string functions): Add unictype/*.
41107         (Support for building libraries and executables): Add gperf.
41108         (Support for building documentation): Add agpl-3.0.
41109         (Misc): Add nocrash.
41110
41111 2008-05-10  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/unictype/gen-ctype: New file.
41114
41115 2008-05-10  Jim Meyering  <meyering@redhat.com>
41116
41117         Make chdir-safer.c more efficient on a system with no symlinks.
41118         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
41119         also if ELOOP is zero.  Suggested by Bruno Haible.
41120
41121         Make chdir-safer.c slightly safer.
41122         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
41123         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
41124
41125         Avoid compile failure on systems without ELOOP (like mingw).
41126         * lib/chdir-safer.c (ELOOP): Define if not already defined.
41127         Reported by Bruno Haible.
41128
41129 2008-05-10  Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
41132         (is_utf8_encoding): Use a case-insensitive comparison.
41133         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
41134         streq.
41135
41136 2008-05-10  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
41139         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
41140         * lib/unilbrk/ulc-common.h (iconv_string_length,
41141         iconv_string_keeping_offsets): Remove declarations.
41142         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
41143         Don't include <iconv.h>, streq.h, xsize.h.
41144         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
41145         conversion.
41146         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
41147         <iconv.h>, streq.h, xsize.h.
41148         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
41149         conversion.
41150         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
41151         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
41152         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
41153         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
41154
41155 2008-05-10  Bruno Haible  <bruno@clisp.org>
41156
41157         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
41158         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
41159
41160         * modules/unilbrk/u32-width-linebreaks-tests: New file.
41161         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
41162
41163         * modules/unilbrk/u16-width-linebreaks-tests: New file.
41164         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
41165
41166         * modules/unilbrk/u8-width-linebreaks-tests: New file.
41167         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
41168
41169         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
41170         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
41171
41172         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
41173         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
41174
41175         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
41176         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
41177
41178         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
41179         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
41180
41181 2008-05-10  Bruno Haible  <bruno@clisp.org>
41182
41183         Split up 'linebreak' module.
41184         * lib/unilbrk.h: New file, based on lib/linebreak.h.
41185         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
41186         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
41187         modifications.
41188         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
41189         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
41190         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
41191         lib/linebreak.c.
41192         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
41193         lib/linebreak.c.
41194         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
41195         lib/linebreak.c.
41196         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
41197         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
41198         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
41199         lib/linebreak.c.
41200         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
41201         lib/linebreak.c.
41202         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
41203         lib/linebreak.c.
41204         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
41205         lib/linebreak.c.
41206         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
41207         lib/linebreak.c.
41208         * modules/unilbrk/base: New file.
41209         * modules/unilbrk/tables: New file.
41210         * modules/unilbrk/u8-possible-linebreaks: New file.
41211         * modules/unilbrk/u16-possible-linebreaks: New file.
41212         * modules/unilbrk/u32-possible-linebreaks: New file.
41213         * modules/unilbrk/ulc-common: New file.
41214         * modules/unilbrk/ulc-possible-linebreaks: New file.
41215         * modules/unilbrk/u8-width-linebreaks: New file.
41216         * modules/unilbrk/u16-width-linebreaks: New file.
41217         * modules/unilbrk/u32-width-linebreaks: New file.
41218         * modules/unilbrk/ulc-width-linebreaks: New file.
41219         * lib/linebreak.h: Remove file.
41220         * lib/linebreak.c: Remove file.
41221         * m4/linebreak.m4: Remove file.
41222         * modules/linebreak: Remove file.
41223         * NEWS: Mention the changes.
41224
41225 2008-05-09  Eric Blake  <ebb9@byu.net>
41226
41227         Add xmemdup0.
41228         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
41229         implementation.
41230         * lib/xmalloc.c (xmemdup0): New C implementation.
41231
41232 2008-05-08  Bruno Haible  <bruno@clisp.org>
41233
41234         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
41235
41236 2008-05-07  Eric Blake  <ebb9@byu.net>
41237
41238         Support cross-compilation of <wctype.h>.
41239         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
41240         AC_CACHE_CHECK.
41241
41242 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
41243
41244         * build-aux/vc-list-files: Add support for bzr.
41245
41246 2008-05-03  Jim Meyering  <meyering@redhat.com>
41247
41248         avoid failed assertion with tight malloc
41249         * tests/test-getndelim2.c: Correct an off-by-one assertion.
41250
41251 2008-05-03  Simon Josefsson  <simon@josefsson.org>
41252
41253         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
41254         are needed from arpa/inet.h.
41255         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
41256         Reported by Bruno Haible.
41257
41258 2008-05-02  Jim Meyering  <meyering@redhat.com>
41259
41260         avoid compilation error on FreeBSD 6
41261         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
41262
41263 2008-05-01  Jim Meyering  <meyering@redhat.com>
41264
41265         useless-if-before-free: correct --help's exit status description
41266         * build-aux/useless-if-before-free (usage): Like grep, exit 0
41267         for one or more matches, etc.  Reported by Bruno Haible.
41268
41269         vc-list-files: make the stand-alone gnulib test work
41270         * modules/vc-list-files-tests (configure.ac):
41271         Define and AC_SUBST abs_aux_dir.
41272         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
41273         $(abs_top_srcdir) to each script and having each of them
41274         duplicate the work of setting PATH, set PATH here, using
41275         the new variable, abs_aux_dir instead.
41276         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
41277         * tests/test-vc-list-files-git.sh: Likewise.
41278         Reported by Bruno Haible.
41279
41280 2008-05-01  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/getndelim2.c (getndelim2): Fix newsize computation during
41283         reallocation. Rename 'done' to 'found_delimiter'.
41284
41285 2008-05-01  Jim Meyering  <meyering@redhat.com>
41286
41287         vc-list-files: accommodate /bin/sh like the one from Solaris 10
41288         * build-aux/vc-list-files: Use `...`, not $(...).
41289
41290 2008-04-30  Jim Meyering  <meyering@redhat.com>
41291
41292         add tests for vc-list-files
41293         * modules/vc-list-files-tests: New module.
41294         * tests/test-vc-list-files-cvs.sh: New file.
41295         * tests/test-vc-list-files-git.sh: New file.
41296
41297         avoid a warning from gcc
41298         * lib/getndelim2.c (IF_LINT): Define.
41299         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
41300
41301         vc-list-files: work properly with build-aux/cvsu, too
41302         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
41303         to all cvs-based clauses.
41304
41305         vc-list-files: work properly in the CVS+awk case, too
41306         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
41307
41308         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
41309         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
41310         take more than one file argument, so .  Add quotes, just in case $dir
41311         ever contains a shell meta-character.  Prompted by Soren Hansen in
41312         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
41313
41314 2008-04-29  Eric Blake  <ebb9@byu.net>
41315
41316         Optimize getndelim2 to use block operations when possible.
41317         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
41318         freadseek, and memchr2.
41319         * lib/getndelim2.c (getndelim2): Use them for block reads.
41320
41321 2008-04-29  Bruno Haible  <bruno@clisp.org>
41322
41323         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
41324         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41325         * modules/inet_ntop (Depends-on): Add extensions.
41326         * modules/inet_pton (Depends-on): Likewise.
41327         Reported by Simon Josefsson.
41328
41329 2008-04-29  Jim Meyering  <meyering@redhat.com>
41330
41331         When the is more than one match in a block, match all of them.
41332         * build-aux/useless-if-before-free: Iterate through each block
41333         until there are no more matches.
41334
41335         Fix broken useless-if-before-free script.
41336         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41337         the expression to match cast of argument to free-like function.
41338
41339 2008-04-29  Eric Blake  <ebb9@byu.net>
41340
41341         Use new header.
41342         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41343
41344 2008-04-29  Jim Meyering  <meyering@redhat.com>
41345
41346         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41347         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41348         by gnulib to exist and to declare e.g., inet_ntop.
41349         Don't include "inet_ntop.h", now removed.
41350
41351         * m4/arpa_inet_h.m4: Remove trailing blanks.
41352
41353 2008-04-29  Eric Blake  <ebb9@byu.net>
41354
41355         Silence valgrind on safe reads beyond potential array bounds.
41356         * lib/rawmemchr.valgrind: New file.
41357         * lib/strchrnul.valgrind: Likewise.
41358         * modules/rawmemchr (Files): Distribute new file.
41359         * modules/strchrnul (Files): Likewise.
41360         Suggested by Bruno Haible.
41361
41362 2008-04-29  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41365         (inet_ntop, inet_pton): Change portability warning's wording.
41366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41367         Invoke gl_CHECK_NEXT_HEADERS.
41368         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41369         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41370         set ARPA_INET_H.
41371         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41372         * modules/arpa_inet (Description): No longer only for systems that
41373         lack it.
41374         (Depends-on): Add include_next.
41375         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41376         HAVE_ARPA_INET_H.
41377
41378 2008-04-29  Jim Meyering  <meyering@redhat.com>
41379
41380         * modules/mkdir (License): Re-license as LGPLv2+.
41381
41382 2008-04-29  Bruno Haible  <bruno@clisp.org>
41383
41384         * modules/rawmemchr (Maintainer): Set to Eric.
41385         * modules/strchrnul (Maintainer): Likewise.
41386
41387 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41388
41389         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41390         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41391
41392         * modules/arpa_inet (arpa/inet.h): Use them.
41393
41394 2008-04-28  Eric Blake  <ebb9@byu.net>
41395
41396         Test getndelim2.
41397         * modules/getndelim2-tests: New file.
41398         * tests/test-getndelim2.c: Likewise.
41399         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41400         stream.
41401         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41402
41403         * MODULES.html.sh: Document new module.
41404
41405 2008-04-20  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/c-stack.c (die): Use raise.
41408         * modules/c-stack (Depends-on): Add raise.
41409
41410 2008-04-28  Bruno Haible  <bruno@clisp.org>
41411
41412         Expect rpmatch to be declared.
41413         * lib/yesno.c (rpmatch): Remove declaration.
41414
41415         Declare rpmatch.
41416         * lib/stdlib.in.h (rpmatch): New declaration.
41417         * lib/rpmatch.c: Include <stdlib.h> first.
41418         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41419         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41421         HAVE_RPMATCH.
41422         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41424         (Include): Set to <stdlib.h>.
41425         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41426         HAVE_RPMATCH.
41427         * NEWS: Document the change.
41428
41429 2008-04-28  Bruno Haible  <bruno@clisp.org>
41430
41431         Change rpmatch to use nl_langinfo when appropriate.
41432         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41433         (N_): New macro.
41434         (localized_pattern): New function/macro.
41435         (try): Remove match, nomatch arguments. Copy the pattern into safe
41436         memory before caching it.
41437         (rpmatch): Use localized_pattern. Add translator comments.
41438         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41439         Suggested by Eric Blake.
41440         * modules/rpmatch (Depends-on): Add stdbool.
41441
41442 2008-04-28  Eric Blake  <ebb9@byu.net>
41443
41444         Add rawmemchr module, matching glibc.
41445         * modules/string (Makefile.am): New indicator.
41446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41447         * lib/string.in.h (rawmemchr): Declare when appropriate.
41448         * modules/rawmemchr: New file.
41449         * m4/rawmemchr.m4: Likewise.
41450         * lib/rawmemchr.c: Likewise.
41451         * modules/rawmemchr-tests: Likewise.
41452         * tests/test-rawmemchr.c: Likewise.
41453         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41454         module.
41455         * modules/strchrnul (Depends-on): Add rawmemchr.
41456         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41457
41458         Whitespace cleanup.
41459         * tests/test-strchrnul.c: Reindent.
41460         * lib/strchrnul.c: Likewise.
41461
41462         Optimize and test strchrnul.
41463         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41464         * modules/strchrnul-tests: New file.
41465         * tests/test-strchrnul.c: Likewise.
41466
41467         Remove intprops dependency.
41468         * modules/memchr (Depends-on): Remove intprops.
41469         * modules/memrchr (Depends-on): Likewise.
41470         * modules/memchr2 (Depends-on): Likewise.
41471         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41472         * lib/memrchr.c (__memrchr): Likewise.
41473         * lib/memrchr2.c (memchr2): Likewise.
41474         Reported by Simon Josefsson.
41475
41476 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41477
41478         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41479         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41480
41481 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41482
41483         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41484
41485         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41486
41487         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41488
41489         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41490         declarations.
41491         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41492
41493         * m4/inet_pton.m4: Don't check for header files.
41494
41495         * m4/inet_ntop.m4: Don't check for header files.
41496
41497 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41498
41499         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41500         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41501         trigger for cygwin).
41502         Reported by Bruno Haible  <bruno@clisp.org>.
41503
41504 2008-04-28  Bruno Haible  <bruno@clisp.org>
41505
41506         * doc/posix-functions/strdup.texi: Mention mingw problem.
41507
41508 2008-04-27  Bruno Haible  <bruno@clisp.org>
41509
41510         * modules/stat-time-tests (Depends-on): Add sleep.
41511         * tests/test-stat-time.c (force_unlink): New function.
41512         (cleanup): Use it.
41513         (test_mtime): Remove the ctime related tests.
41514         (test_ctime): New function, containing the ctime related tests.
41515         (main): Call test_ctime, except on native Windows platforms.
41516
41517 2008-04-27  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/rpmatch.c (rpmatch): Add some comments.
41520         Reported by James Youngman <jay@gnu.org>.
41521
41522 2008-04-27  Bruno Haible  <bruno@clisp.org>
41523
41524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41525         quiet NaNs.
41526
41527 2008-04-27  Bruno Haible  <bruno@clisp.org>
41528
41529         Make test-yesno.sh work on mingw.
41530         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41531         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41532         (main): Set stdin to binary mode.
41533         * modules/yesno-tests (Depends-on): Add binary-io.
41534
41535 2008-04-27  Bruno Haible  <bruno@clisp.org>
41536
41537         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41538         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41539         argument that lie outside the IEEE 854 domain.
41540         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41541         (gl_ISFINITE): Use it.
41542         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41543
41544 2008-04-27  Bruno Haible  <bruno@clisp.org>
41545
41546         Allow local renaming in config.h.
41547         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41548
41549 2008-04-27  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/memchr.c (__memchr): Change type of 'i'.
41552         * lib/memchr2.c (memchr2): Likewise.
41553
41554 2008-04-26  Eric Blake  <ebb9@byu.net>
41555         and Bruno Haible  <bruno@clisp.org>
41556
41557         Optimize and test memrchr.
41558         * modules/memrchr (Depends-on): Add intprops.
41559         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41560         * modules/memrchr-tests: New file.
41561         * tests/test-memrchr.c: New file.
41562
41563 2008-04-26  Bruno Haible  <bruno@clisp.org>
41564
41565         Add tentative support for DragonFly BSD.
41566         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41567         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41568         fp.
41569         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41570         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41571         * lib/fpurge.c (fpurge): Likewise.
41572         * lib/freadable.c (freaadable): Likewise.
41573         * lib/freadahead.c (freadahead): Likewise.
41574         * lib/freading.c (freading): Likewise.
41575         * lib/freadptr.c (freadptr): Likewise.
41576         * lib/freadseek.c (freadptrinc): Likewise.
41577         * lib/fseeko.c (fseeko): Likewise.
41578         * lib/fseterr.c (fseterr): Likewise.
41579         * lib/fwritable.c (fwritable): Likewise.
41580         * lib/fwriting.c (fwriting): Likewise.
41581
41582 2008-04-26  Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/stdio-impl.h: New file.
41585         * lib/fbufmode.c: Include stdio-impl.h.
41586         (fbufmode): Use fp_, remove redundant #defines.
41587         * lib/fflush.c: Include stdio-impl.h.
41588         (clear_ungetc_buffer): Remove redundant #defines.
41589         * lib/fpurge.c: Include stdio-impl.h.
41590         (fpurge): Remove redundant #defines.
41591         * lib/freadable.c: Include stdio-impl.h.
41592         (freadable): Remove redundant #defines.
41593         * lib/freadahead.c: Include stdio-impl.h.
41594         (freadahead): Remove redundant #defines.
41595         * lib/freading.c: Include stdio-impl.h.
41596         (freading): Remove redundant #defines.
41597         * lib/freadptr.c: Include stdio-impl.h.
41598         (freadptr): Remove redundant #defines.
41599         * lib/freadseek.c: Include stdio-impl.h.
41600         (freadptrinc): Remove redundant #defines.
41601         * lib/fseeko.c: Include stdio-impl.h.
41602         (rpl_fseeko): Remove redundant #defines.
41603         * lib/fseterr.c: Include stdio-impl.h.
41604         (fseterr): Remove redundant #defines.
41605         * lib/fwritable.c: Include stdio-impl.h.
41606         (fwritable: Remove redundant #defines.
41607         * lib/fwriting.c: Include stdio-impl.h.
41608         (fwriting): Remove redundant #defines.
41609         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41610         * modules/fflush (Files): Likewise.
41611         * modules/fpurge (Files): Likewise.
41612         * modules/freadable (Files): Likewise.
41613         * modules/freadahead (Files): Likewise.
41614         * modules/freading (Files): Likewise.
41615         * modules/freadptr (Files): Likewise.
41616         * modules/freadseek (Files): Likewise.
41617         * modules/fseeko (Files): Likewise.
41618         * modules/fseterr (Files): Likewise.
41619         * modules/fwritable (Files): Likewise.
41620         * modules/fwriting (Files): Likewise.
41621
41622 2008-04-26  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41625         restore_seek_optimization, update_fpos_cache): New functions, extracted
41626         from rpl_fflush.
41627         (rpl_fflush): Use them.
41628         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41629         (gl_REPLACE_FFLUSH): Use it.
41630
41631 2008-04-26  Bruno Haible  <bruno@clisp.org>
41632
41633         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41634         on Solaris.
41635         * tests/test-xstrtoimax.sh: Likewise.
41636         * tests/test-xstrtoumax.sh: Likewise.
41637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41638
41639 2008-04-26  Bruno Haible  <bruno@clisp.org>
41640
41641         * modules/memchr-tests: New file.
41642         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41643
41644 2008-04-26  Eric Blake  <ebb9@byu.net>
41645             Bruno Haible  <bruno@clisp.org>
41646
41647         * lib/memchr.c: Include intprops.h.
41648         (__memchr): Optimize parallel detection of matching bytes. Rename local
41649         variables. Add explanatory comments.
41650
41651 2008-04-26  Bruno Haible  <bruno@clisp.org>
41652
41653         Fix module 'memchr', broken since 2000-10-28.
41654         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41655
41656 2008-04-26  Bruno Haible  <bruno@clisp.org>
41657
41658         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41659         comments.
41660
41661 2008-04-25  Eric Blake  <ebb9@byu.net>
41662
41663         Use native fstatat on cygwin 1.7.0.
41664         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41665         first.
41666
41667 2008-04-23  Eric Blake  <ebb9@byu.net>
41668
41669         Improve memchr2 performance.
41670         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41671         NUL bytes.
41672         * modules/memchr2 (Depends-on): Use intprops.h.
41673
41674 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41675
41676         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41677         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41678         <blp@cs.stanford.edu>.
41679
41680 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41681
41682         * lib/arpa_inet.in.h: New file.
41683
41684         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41685         (Makefile.am): Sed in substitute header file.
41686
41687         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41688         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41689
41690         * modules/inet_ntop (configure.ac): Use
41691         gl_ARPA_INET_MODULE_INDICATOR.
41692
41693         * modules/inet_pton (configure.ac): Use
41694         gl_ARPA_INET_MODULE_INDICATOR.
41695
41696 2008-04-22  Jim Meyering  <meyering@redhat.com>
41697
41698         * modules/verify (License): Re-license as LGPLv2+.
41699
41700 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41701
41702         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41703         parameter to void* as per POSIX standard (MinGW uses char*).
41704
41705 2008-04-21  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41708         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41709         Define to replacements if REPLACE_ISWCNTRL is 1.
41710         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41711         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41712         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41713         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41714         what it fixes.
41715         * doc/posix-functions/iswalpha.texi: Likewise.
41716         * doc/posix-functions/iswblank.texi: Likewise.
41717         * doc/posix-functions/iswcntrl.texi: Likewise.
41718         * doc/posix-functions/iswdigit.texi: Likewise.
41719         * doc/posix-functions/iswgraph.texi: Likewise.
41720         * doc/posix-functions/iswlower.texi: Likewise.
41721         * doc/posix-functions/iswprint.texi: Likewise.
41722         * doc/posix-functions/iswpunct.texi: Likewise.
41723         * doc/posix-functions/iswspace.texi: Likewise.
41724         * doc/posix-functions/iswupper.texi: Likewise.
41725         * doc/posix-functions/iswxdigit.texi: Likewise.
41726         Reported by Alain Guibert.
41727
41728 2008-04-21  Bruno Haible  <bruno@clisp.org>
41729
41730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41731         Patch by Alain Guibert.
41732
41733 2008-04-21  Bruno Haible  <bruno@clisp.org>
41734
41735         Fix test failures on mingw.
41736         * tests/test-xstrtol.c (print_no_progname): New function.
41737         (main): Install it in error_print_progname hook.
41738         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41739         * tests/test-xstrtoimax.sh: Likewise.
41740         * tests/test-xstrtoumax.sh: Likewise.
41741
41742 2008-04-21  Bruno Haible  <bruno@clisp.org>
41743
41744         Fix test failure on mingw.
41745         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41746
41747 2008-04-21  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41750         Actually assign a value.
41751
41752 2008-04-20  Bruno Haible  <bruno@clisp.org>
41753
41754         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41755         take 2.
41756         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41757         'canonicalize-lgpl' module is also used.
41758         * lib/canonicalize-lgpl.c: Undo last change.
41759         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41760
41761 2008-04-20  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41764         config.h. Provide _mkdir based fallback for mingw.
41765         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41766         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41767         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41768         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41769         rather than defining mkdir in config.h.
41770         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41771         (gl_SYS_STAT_H_DEFAULTS): New macro.
41772         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41773         HAVE_IO_H any more.
41774         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41775         HAVE_DECL_MKDIR and HAVE_IO_H.
41776
41777 2008-04-20  Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/isapipe.c: Port to native Windows platforms.
41780
41781 2008-04-20  Bruno Haible  <bruno@clisp.org>
41782
41783         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41784
41785 2008-04-21  Eric Blake  <ebb9@byu.net>
41786
41787         Work around preprocessors that don't handle UINTMAX_MAX.
41788         * lib/memchr2.c (memchr2): Avoid embedded #if.
41789         Reported by Alain Guibert, fix suggested by Bruno Haible.
41790
41791 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41792
41793         * doc/posix-functions/strftime.texi (strftime): Explain better
41794         Windows incompatibility.  Suggested by Micah Cowan
41795         <micah@cowan.name>.
41796
41797 2008-04-20  Bruno Haible  <bruno@clisp.org>
41798
41799         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41800         unistr/u8-mblen.
41801
41802 2008-04-20  Bruno Haible  <bruno@clisp.org>
41803
41804         Fix test failure on platforms with non-GNU iconv.
41805         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41806         (U_TO_U8): Use it, rather than u16_to_u8.
41807         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41808         units at the end of the input string.
41809         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41810
41811 2008-04-20  Bruno Haible  <bruno@clisp.org>
41812
41813         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41814         when the resulting length is 0.
41815         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41816
41817 2008-04-20  Bruno Haible  <bruno@clisp.org>
41818
41819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41820         works.
41821         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41822
41823 2008-04-20  Bruno Haible  <bruno@clisp.org>
41824
41825         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41826         * modules/tsearch-tests (configure.ac): Test for initstate function.
41827
41828 2008-04-20  Bruno Haible  <bruno@clisp.org>
41829
41830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41831         for nlink_t if missing.
41832         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41833
41834 2008-04-19  Bruno Haible  <bruno@clisp.org>
41835
41836         Work around snprintf bug on Linux libc5.
41837         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41839         gl_SNPRINTF_SIZE1.
41840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41841         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41842         that test failed.
41843         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41844         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41845         * modules/snprintf (Files): Add m4/printf.m4.
41846         * modules/vsnprintf (Files): Likewise.
41847         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41848         * doc/posix-functions/vsnprintf.texi: Likewise.
41849
41850 2008-04-19  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41853         from 0.0058 to less than 10^-7.
41854
41855 2008-04-19  Bruno Haible  <bruno@clisp.org>
41856
41857         Fix rounding when a precision is given.
41858         * lib/vasnprintf.c (is_borderline): New function.
41859         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41860         9...9x.
41861         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41862         %e, %g.
41863         * tests/test-vasprintf-posix.c (test_function): Likewise.
41864         * tests/test-snprintf-posix.h (test_function): Likewise.
41865         * tests/test-sprintf-posix.h (test_function): Likewise.
41866         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41867         * tests/test-printf-posix.h (test_function): Likewise.
41868         * tests/test-printf-posix.output: Update.
41869         Reported by John Darrington <john@darrington.wattle.id.au> via
41870         Ben Pfaff <blp@cs.stanford.edu>.
41871
41872 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41873
41874         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41875         Suggested by Bruno Haible <bruno@clisp.org>.
41876
41877 2008-04-17  Bruno Haible  <bruno@clisp.org>
41878
41879         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41880         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41881         implementation.
41882         Patch by Bruce Merry <bmerry@gmail.com>.
41883
41884 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41885
41886         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41887         doesn't work under Windows.
41888
41889 2008-04-16  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41892         New macros.
41893         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41894         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41895         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41896         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41897         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41898         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41899         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41900         macros.
41901         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41902         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41903         Northern Sotho, Uighur.
41904
41905 2008-04-16  Bruno Haible  <bruno@clisp.org>
41906
41907         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41908         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41909         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41910         Reported by Daniel Bergström <daniel@octocode.com>.
41911
41912 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41913             Bruno Haible  <bruno@clisp.org>
41914
41915         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41916         function.
41917         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41918         New functions, mostly extracted from gl_locale_name_default.
41919         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41920
41921 2008-04-16  Eric Blake  <ebb9@byu.net>
41922
41923         Adjust strtod detection to catch glibc 2.7 bug.
41924         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41925         Reported by John Gatewood Ham.
41926
41927 2008-04-16  Bruno Haible  <bruno@clisp.org>
41928
41929         Add tentative support for Linux libc5.
41930         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41931         * lib/fpurge.c (fpurge): Likewise.
41932         * lib/freadable.c (freadable): Likewise.
41933         * lib/freadahead.c (freadahead): Likewise.
41934         * lib/freading.c (freading): Likewise.
41935         * lib/freadptr.c (freadptr): Likewise.
41936         * lib/freadseek.c (freadptrinc): Likewise.
41937         * lib/fseeko.c (rpl_fseeko): Likewise.
41938         * lib/fseterr.c (fseterr): Likewise.
41939         * lib/fwritable.c (fwritable): Likewise.
41940         * lib/fwriting.c (fwriting): Likewise.
41941         Reported by Alain Guibert <alguibert+bts@free.fr>.
41942
41943 2008-04-15  Bruno Haible  <bruno@clisp.org>
41944
41945         * modules/mathl (configure.ac): Define module indicator.
41946
41947 2008-04-15  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/logl.c (logl): Remove unused variables.
41950
41951 2008-04-15  Bruno Haible  <bruno@clisp.org>
41952
41953         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41954         fails.
41955
41956 2008-04-15  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/trim.c (trim2): Fix argument of isspace() macro.
41959
41960 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41961
41962         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41963         to 0.
41964         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41965
41966 2008-04-14  Bruno Haible  <bruno@clisp.org>
41967
41968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41969         AC_LANG_PROGRAM argument.
41970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41971         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41973         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41974         * m4/math_h.m4 (gl_MATH_H): Likewise.
41975         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41977         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41978         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41979         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41980         * m4/regex.m4 (gl_REGEX): Likewise.
41981         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41986         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41989
41990 2008-04-14  Jim Meyering  <meyering@redhat.com>
41991
41992         test-strtod: fix typos: s/abs/fabs/
41993         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41994
41995 2008-04-13  Bruno Haible  <bruno@clisp.org>
41996
41997         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41998         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41999         module is also used and while not building the reloc-wrapper.
42000
42001 2008-04-13  Bruno Haible  <bruno@clisp.org>
42002
42003         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
42004
42005 2008-04-13  Bruno Haible  <bruno@clisp.org>
42006
42007         Fix AIX compilation failure introduced on 2008-04-02.
42008         * tests/test-frexp.c (exp): Undefine before redefining.
42009         * tests/test-frexpl.c (exp): Likewise.
42010
42011 2008-04-13  Bruno Haible  <bruno@clisp.org>
42012
42013         Work around a HP-UX stdio bug.
42014         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
42015         * tests/test-ftello.c (main): Likewise.
42016         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
42017         * doc/posix-functions/ftello.texi: Likewise.
42018
42019 2008-04-13  Bruno Haible  <bruno@clisp.org>
42020
42021         Make test-signbit pass on HP-UX/hppa.
42022         * tests/test-signbit.c (minus_zerol): New variable.
42023         (test_signbitl): Use it.
42024
42025 2008-04-13  Bruno Haible  <bruno@clisp.org>
42026
42027         Make truncl work on OSF/1 4.0.
42028         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
42029         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42030         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
42031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
42032         HAVE_DECL_TRUNCL.
42033         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
42034         HAVE_DECL_TRUNCL.
42035         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
42036
42037 2008-04-13  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/unictype.h: Remove trailing comma from enumeration definitions.
42040
42041 2008-04-13  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
42044         expression, so as to avoid HP-UX 11 cc compiler bug.
42045
42046 2008-04-13  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
42049
42050 2008-04-13  Bruno Haible  <bruno@clisp.org>
42051
42052         * lib/git-merge-changelog.c: Remove empty declaration outside of
42053         functions.
42054
42055 2008-04-13  Bruno Haible  <bruno@clisp.org>
42056
42057         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
42058
42059 2008-04-13  Bruno Haible  <bruno@clisp.org>
42060
42061         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
42062         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
42063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
42064         also if it exists but lacks definitions of the SHUT_* macros.
42065         * modules/sys_socket (Description): Update.
42066         Reported by Elbert Pol <e.pol@chello.nl>.
42067
42068 2008-04-13  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/localcharset.c (OS2): Don't redefine if already defined.
42071         Reported by Elbert Pol <e.pol@chello.nl>.
42072
42073 2008-04-13  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/binary-io.h [__EMX__]: Include <io.h>.
42076         Reported by Elbert Pol <e.pol@chello.nl>.
42077
42078 2008-04-12  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/fpucw.h: Enable the definitions also for x86_64.
42081         Needed for NetBSD/x86_64.
42082         Reported by Thomas Klausner <tk@giga.or.at>.
42083
42084 2008-04-12  Bruno Haible  <bruno@clisp.org>
42085
42086         * tests/test-strtod.c: Include isnand.h.
42087         (main): Use isnand instead of isnan.
42088         Reported by Jim Meyering.
42089
42090 2008-04-12  Bruno Haible  <bruno@clisp.org>
42091
42092         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
42093         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42094
42095 2008-04-12  Jim Meyering  <meyering@redhat.com>
42096
42097         * m4/math_h.m4 (gl_MATH_H): Fix typos.
42098
42099 2008-04-12  Bruno Haible  <bruno@clisp.org>
42100
42101         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
42102         Reported by Elbert Pol <e.pol@chello.nl>.
42103
42104 2008-04-12  Eric Blake  <ebb9@byu.net>
42105
42106         Work around Solaris 10 math.h bug.
42107         * m4/math_h.m4 (gl_MATH_H): Check for bug.
42108         (gl_MATH_H_DEFAULTS): Set up default.
42109         * modules/math (Makefile.am): Replace new indicators.
42110         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
42111         * tests/test-math.c (main): Test this.
42112         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
42113         * doc/posix-headers/math.texi (math.h): Mention bug.
42114         Reported by Nelson H. F. Beebe and Jim Meyering.
42115
42116 2008-04-11  Bruno Haible  <bruno@clisp.org>
42117
42118         Adapt to future versions of Apple GCC.
42119         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
42120         Reported by Peter O'Gorman <peter@pogma.com>.
42121
42122 2008-04-11  Bruno Haible  <bruno@clisp.org>
42123
42124         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
42125
42126 2008-04-11  Bruno Haible  <bruno@clisp.org>
42127
42128         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
42129
42130         * modules/getaddrinfo-tests (Makefile.am): Define
42131         test_getaddrinfo_LDADD.
42132
42133 2008-04-11  Bruno Haible  <bruno@clisp.org>
42134
42135         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
42136         (init): Fix syntax error.
42137         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
42138         is declared.
42139
42140 2008-04-11  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
42143         * modules/glob (Depends-on): Add stdbool.
42144
42145 2008-04-11  Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/trim.c: Include <string.h>.
42148
42149 2008-04-11  Eric Blake  <ebb9@byu.net>
42150
42151         Avoid compile failure on OS/2.
42152         * lib/regex_internal.h (internal_function): Disable optimization
42153         on OS/2 (__EMX__), where it caused compiler error.
42154         Reported by Elbert Pol.
42155
42156 2008-04-11  Bruno Haible  <bruno@clisp.org>
42157
42158         Flush the standard error stream before aborting. Needed on mingw.
42159         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
42160         * tests/test-array_list.c (ASSERT): Likewise.
42161         * tests/test-array_oset.c (ASSERT): Likewise.
42162         * tests/test-avltree_list.c (ASSERT): Likewise.
42163         * tests/test-avltree_oset.c (ASSERT): Likewise.
42164         * tests/test-avltreehash_list.c (ASSERT): Likewise.
42165         * tests/test-binary-io.c (ASSERT): Likewise.
42166         * tests/test-byteswap.c (ASSERT): Likewise.
42167         * tests/test-c-ctype.c (ASSERT): Likewise.
42168         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
42169         * tests/test-c-strcasestr.c (ASSERT): Likewise.
42170         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
42171         * tests/test-c-strstr.c (ASSERT): Likewise.
42172         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
42173         * tests/test-canonicalize.c (ASSERT): Likewise.
42174         * tests/test-carray_list.c (ASSERT): Likewise.
42175         * tests/test-ceilf1.c (ASSERT): Likewise.
42176         * tests/test-ceilf2.c (ASSERT): Likewise.
42177         * tests/test-ceill.c (ASSERT): Likewise.
42178         * tests/test-count-one-bits.c (ASSERT): Likewise.
42179         * tests/test-fbufmode.c (ASSERT): Likewise.
42180         * tests/test-fflush2.c (ASSERT): Likewise.
42181         * tests/test-floorf1.c (ASSERT): Likewise.
42182         * tests/test-floorf2.c (ASSERT): Likewise.
42183         * tests/test-floorl.c (ASSERT): Likewise.
42184         * tests/test-fopen.c (ASSERT): Likewise.
42185         * tests/test-fpending.c (ASSERT): Likewise.
42186         * tests/test-fprintf-posix.c (ASSERT): Likewise.
42187         * tests/test-fpurge.c (ASSERT): Likewise.
42188         * tests/test-freadable.c (ASSERT): Likewise.
42189         * tests/test-freadahead.c (ASSERT): Likewise.
42190         * tests/test-freading.c (ASSERT): Likewise.
42191         * tests/test-freadptr.c (ASSERT): Likewise.
42192         * tests/test-freadptr2.c (ASSERT): Likewise.
42193         * tests/test-freadseek.c (ASSERT): Likewise.
42194         * tests/test-freopen.c (ASSERT): Likewise.
42195         * tests/test-frexp.c (ASSERT): Likewise.
42196         * tests/test-frexpl.c (ASSERT): Likewise.
42197         * tests/test-fseek.c (ASSERT): Likewise.
42198         * tests/test-fseeko.c (ASSERT): Likewise.
42199         * tests/test-fstrcmp.c (ASSERT): Likewise.
42200         * tests/test-ftell.c (ASSERT): Likewise.
42201         * tests/test-ftello.c (ASSERT): Likewise.
42202         * tests/test-func.c (ASSERT): Likewise.
42203         * tests/test-fwritable.c (ASSERT): Likewise.
42204         * tests/test-fwriting.c (ASSERT): Likewise.
42205         * tests/test-getdelim.c (ASSERT): Likewise.
42206         * tests/test-getline.c (ASSERT): Likewise.
42207         * tests/test-i-ring.c (ASSERT): Likewise.
42208         * tests/test-iconv-utf.c (ASSERT): Likewise.
42209         * tests/test-iconv.c (ASSERT): Likewise.
42210         * tests/test-isfinite.c (ASSERT): Likewise.
42211         * tests/test-isnand.c (ASSERT): Likewise.
42212         * tests/test-isnanf.c (ASSERT): Likewise.
42213         * tests/test-isnanl.h (ASSERT): Likewise.
42214         * tests/test-ldexpl.c (ASSERT): Likewise.
42215         * tests/test-linked_list.c (ASSERT): Likewise.
42216         * tests/test-linkedhash_list.c (ASSERT): Likewise.
42217         * tests/test-localename.c (ASSERT): Likewise.
42218         * tests/test-lseek.c (ASSERT): Likewise.
42219         * tests/test-mbscasecmp.c (ASSERT): Likewise.
42220         * tests/test-mbscasestr1.c (ASSERT): Likewise.
42221         * tests/test-mbscasestr2.c (ASSERT): Likewise.
42222         * tests/test-mbscasestr3.c (ASSERT): Likewise.
42223         * tests/test-mbscasestr4.c (ASSERT): Likewise.
42224         * tests/test-mbschr.c (ASSERT): Likewise.
42225         * tests/test-mbscspn.c (ASSERT): Likewise.
42226         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
42227         * tests/test-mbspbrk.c (ASSERT): Likewise.
42228         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
42229         * tests/test-mbsrchr.c (ASSERT): Likewise.
42230         * tests/test-mbsspn.c (ASSERT): Likewise.
42231         * tests/test-mbsstr1.c (ASSERT): Likewise.
42232         * tests/test-mbsstr2.c (ASSERT): Likewise.
42233         * tests/test-mbsstr3.c (ASSERT): Likewise.
42234         * tests/test-memchr2.c (ASSERT): Likewise.
42235         * tests/test-memmem.c (ASSERT): Likewise.
42236         * tests/test-open.c (ASSERT): Likewise.
42237         * tests/test-printf-frexp.c (ASSERT): Likewise.
42238         * tests/test-printf-frexpl.c (ASSERT): Likewise.
42239         * tests/test-printf-posix.c (ASSERT): Likewise.
42240         * tests/test-quotearg.c (ASSERT): Likewise.
42241         * tests/test-rbtree_list.c (ASSERT): Likewise.
42242         * tests/test-rbtree_oset.c (ASSERT): Likewise.
42243         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
42244         * tests/test-round1.c (ASSERT): Likewise.
42245         * tests/test-roundf1.c (ASSERT): Likewise.
42246         * tests/test-roundl.c (ASSERT): Likewise.
42247         * tests/test-signbit.c (ASSERT): Likewise.
42248         * tests/test-sleep.c (ASSERT): Likewise.
42249         * tests/test-snprintf-posix.c (ASSERT): Likewise.
42250         * tests/test-snprintf.c (ASSERT): Likewise.
42251         * tests/test-sprintf-posix.c (ASSERT): Likewise.
42252         * tests/test-stat-time.c (ASSERT): Likewise.
42253         * tests/test-strcasestr.c (ASSERT): Likewise.
42254         * tests/test-strerror.c (ASSERT): Likewise.
42255         * tests/test-striconv.c (ASSERT): Likewise.
42256         * tests/test-striconveh.c (ASSERT): Likewise.
42257         * tests/test-striconveha.c (ASSERT): Likewise.
42258         * tests/test-strsignal.c (ASSERT): Likewise.
42259         * tests/test-strstr.c (ASSERT): Likewise.
42260         * tests/test-strtod.c (ASSERT): Likewise.
42261         * tests/test-trunc1.c (ASSERT): Likewise.
42262         * tests/test-trunc2.c (ASSERT): Likewise.
42263         * tests/test-truncf1.c (ASSERT): Likewise.
42264         * tests/test-truncf2.c (ASSERT): Likewise.
42265         * tests/test-truncl.c (ASSERT): Likewise.
42266         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
42267         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
42268         * tests/test-vasnprintf.c (ASSERT): Likewise.
42269         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
42270         * tests/test-vasprintf.c (ASSERT): Likewise.
42271         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
42272         * tests/test-vprintf-posix.c (ASSERT): Likewise.
42273         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
42274         * tests/test-vsnprintf.c (ASSERT): Likewise.
42275         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
42276         * tests/test-wcwidth.c (ASSERT): Likewise.
42277         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
42278         * tests/test-xprintf-posix.c (ASSERT): Likewise.
42279         * tests/test-xvasprintf.c (ASSERT): Likewise.
42280         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
42281         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
42282         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
42283         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
42284         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
42285         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
42286         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
42287         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
42288         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
42289         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
42290         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
42291         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
42292         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
42293         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
42294         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
42295         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
42296         * tests/unictype/test-block_list.c (ASSERT): Likewise.
42297         * tests/unictype/test-block_of.c (ASSERT): Likewise.
42298         * tests/unictype/test-block_test.c (ASSERT): Likewise.
42299         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
42300         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
42301         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
42302         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
42303         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
42304         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
42305         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
42306         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
42307         * tests/unictype/test-combining.c (ASSERT): Likewise.
42308         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
42309         * tests/unictype/test-digit.c (ASSERT): Likewise.
42310         * tests/unictype/test-mirror.c (ASSERT): Likewise.
42311         * tests/unictype/test-numeric.c (ASSERT): Likewise.
42312         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
42313         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
42314         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
42315         * tests/unictype/test-scripts.c (ASSERT): Likewise.
42316         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
42317         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
42318         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
42319         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
42320         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
42321         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
42322         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
42323         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
42324         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
42325         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
42326         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
42327         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
42328         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
42329         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
42330         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42331         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42332         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42333         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42334         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42335         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42336         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42337         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42338         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42339         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42340         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42341         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42342         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42343         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42344         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42345         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42346         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42347         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42348         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42349         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42350         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42351         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42352         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42353         Reported by Eric Blake.
42354
42355 2008-04-11  Bruno Haible  <bruno@clisp.org>
42356
42357         * lib/wchar.in.h: Tweak comment.
42358
42359 2008-04-11  Bruno Haible  <bruno@clisp.org>
42360
42361         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42362         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42363         gl_COMMON.
42364         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42365
42366 2008-04-11  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42369
42370 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42371
42372         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42373         of attempting to use non-existing /dev/*random.  Based on patch
42374         from Adam Strzelecki <ono@java.pl> in
42375         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42376
42377 2008-04-08  Bruno Haible  <bruno@clisp.org>
42378
42379         Add tentative support for emx+gcc.
42380         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42381         * lib/fpurge.c (fpurge): Likewise.
42382         * lib/freadable.c (freadable): Likewise.
42383         * lib/freadahead.c (freadahead): Likewise.
42384         * lib/freading.c (freading): Likewise.
42385         * lib/freadptr.c (freadptr): Likewise.
42386         * lib/freadseek.c (freadptrinc): Likewise.
42387         * lib/fseeko.c (rpl_fseeko): Likewise.
42388         * lib/fseterr.c (fseterr): Likewise.
42389         * lib/fwritable.c (fwritable): Likewise.
42390         * lib/fwriting.c (fwriting): Likewise.
42391         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42392
42393 2008-04-09  Eric Blake  <ebb9@byu.net>
42394
42395         Avoid some autoconf warnings.
42396         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42397         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42398         * m4/afs.m4 (gl_AFS): Likewise.
42399         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42400         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42402         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42403         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42404         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42405         (AC_CHECK_DECLS_ONCE): Likewise.
42406         Rename file...
42407         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42408         gnulib-tool requires autoconf 2.59 or better.
42409         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42410
42411 2008-04-08  Eric Blake  <ebb9@byu.net>
42412
42413         Use 'git describe --match' if present (added in git 1.5.5).
42414         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42415         if possible.
42416
42417 2008-04-08  Bruno Haible  <bruno@clisp.org>
42418
42419         Add tentative support for OpenServer.
42420         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42421         _ptr, _cnt.
42422         * lib/fpurge.c (fpurge): Likewise.
42423         * lib/freadable.c (freadable): Likewise.
42424         * lib/freadahead.c (freadahead): Likewise.
42425         * lib/freading.c (freading): Likewise.
42426         * lib/freadptr.c (freadptr): Likewise.
42427         * lib/freadseek.c (freadptrinc): Likewise.
42428         * lib/fseeko.c (rpl_fseeko): Likewise.
42429         * lib/fseterr.c (fseterr): Likewise.
42430         * lib/fwritable.c (fwritable): Likewise.
42431         * lib/fwriting.c (fwriting): Likewise.
42432         Reported by Roger Cornelius <rac@tenzing.org> and
42433         Brian K. White <brian@aljex.com>.
42434
42435 2008-04-06  Jim Meyering  <meyering@redhat.com>
42436
42437         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42438
42439 2008-04-06  Bruno Haible  <bruno@clisp.org>
42440
42441         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42442         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42443         * tests/test-printf-posix.sh: Likewise.
42444         * tests/test-vfprintf-posix.sh: Likewise.
42445         * tests/test-vprintf-posix.sh: Likewise.
42446         * tests/test-xprintf-posix.sh: Likewise.
42447
42448 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42449
42450         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42451         hide error from 'ls', needed on OS/2.
42452         Report by Elbert Pol <elbert.pol@gmail.com>.
42453
42454 2008-04-04  Eric Blake  <ebb9@byu.net>
42455
42456         Make test-fseeko.c failures meaningful.
42457         * tests/test-fseeko.c: Print line number on failure.
42458         * tests/test-fseek.c: Likewise.
42459         Reported by Nelson H. F. Beebe.
42460
42461         Improve strtod bug detection check.
42462         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42463         required for Solaris 10.
42464         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42465
42466 2008-04-04  Bruno Haible  <bruno@clisp.org>
42467
42468         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42469         by m4/setenv.m4.
42470
42471 2008-04-03  Eric Blake  <ebb9@byu.net>
42472
42473         Ensure sane .version contents.
42474         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42475         version string.
42476         * build-aux/git-version-gen: Improve documentation.
42477
42478         Make GNU make output nicer.
42479         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42480         MAKECMDGOALS to enforce message for all command line targets.  Set
42481         srcdir for use in maint.mk.
42482
42483         Another maintainer tweak.
42484         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42485         a target that regenerates version.
42486
42487 2008-04-03  Jim Meyering  <meyering@redhat.com>
42488
42489         vc-list-files: don't cause coreutils "make po-check" failure
42490         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42491
42492 2008-04-03  Eric Blake  <ebb9@byu.net>
42493
42494         Allow VPATH usage of vc-list-files.
42495         * build-aux/vc-list-files (scriptversion): Add timestamp.
42496         (options): Add --help, --version, -C.
42497         (CVS): Support installed cvsu.
42498
42499 2008-04-02  Bruno Haible  <bruno@clisp.org>
42500
42501         Avoid some "statement with no effect" warnings from gcc.
42502         * tests/test-wctype.c (main): Explicitly ignore unused values.
42503         Reported by Jim Meyering.
42504
42505 2008-04-02  Jim Meyering  <meyering@redhat.com>
42506
42507         Avoid some warnings from "gcc -Wshadow".
42508         * tests/test-frexp.c (exp): Define to a different identifier.
42509         * tests/test-frexpl.c (exp): Likewise.
42510
42511 2008-04-03  Jim Meyering  <meyering@redhat.com>
42512
42513         bootstrap: remove dangling *.[ch] symlinks from lib
42514         * build-aux/bootstrap [dangling symlink removal]: Move find's
42515         -depth option to precede all others, to avoid a warning.
42516         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42517
42518 2008-04-02  Bruno Haible  <bruno@clisp.org>
42519
42520         Avoid some warnings from "gcc -Wshadow".
42521         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42522         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42523         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42524         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42525         Reported by Jim Meyering.
42526
42527 2008-04-01  Bruno Haible  <bruno@clisp.org>
42528
42529         Fix test to work on IRIX 6.5 with cc.
42530         * tests/test-math.c (numeric_equal): New function.
42531         (main): Use it.
42532
42533 2008-04-01  Bruno Haible  <bruno@clisp.org>
42534
42535         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42536
42537 2008-04-01  Bruno Haible  <bruno@clisp.org>
42538
42539         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42540         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42541         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42542         (Depends-on): Remove math.
42543
42544         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42545         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42546         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42547         (Depends-on): Remove math.
42548
42549         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42550         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42551         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42552         (Depends-on): Remove math.
42553         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42554         (Depends-on): Remove math.
42555
42556         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42557         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42558         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42559         (Depends-on): Remove math.
42560         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42561         (Depends-on): Remove math.
42562
42563         * tests/test-round1.c: Include nan.h.
42564         (main): Use NaNd instead of NAN.
42565         * modules/round-tests (Files): Add tests/nan.h.
42566
42567         * tests/test-trunc1.c: Include nan.h.
42568         (main): Use NaNd instead of NAN.
42569         * modules/trunc-tests (Files): Add tests/nan.h.
42570
42571         * tests/test-roundf1.c: Include nan.h.
42572         (main): Use NaNf instead of NAN.
42573         * modules/roundf-tests (Files): Add tests/nan.h.
42574
42575         * tests/test-truncf1.c: Include nan.h.
42576         (main): Use NaNf instead of NAN.
42577         * modules/truncf-tests (Files): Add tests/nan.h.
42578
42579         * tests/test-ceilf1.c: Include nan.h.
42580         (main): Use NaNf instead of NAN.
42581         * modules/ceilf-tests (Files): Add tests/nan.h.
42582
42583         * tests/test-floorf1.c: Include nan.h.
42584         (main): Use NaNf instead of NAN.
42585         * modules/floorf-tests (Files): Add tests/nan.h.
42586
42587         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42588         (main): Use NaNf instead of NAN.
42589         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42590
42591         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42592         (main): Use NaNd instead of NAN.
42593         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42594
42595         * tests/test-frexp.c: Include nan.h.
42596         (main): Use NaNd instead of NAN.
42597         * modules/frexp-tests (Files): Add tests/nan.h.
42598
42599         * lib/isnan.c: Don't include <math.h>.
42600         (FUNC): Don't use NAN macro.
42601         * modules/isnand-nolibm (Depends-on): Remove math.
42602         * modules/isnanf-nolibm (Depends-on): Remove math.
42603         * modules/isnanl (Depends-on): Remove math.
42604         * modules/isnanl-nolibm (Depends-on): Remove math.
42605
42606         * tests/nan.h: New file.
42607
42608 2008-04-01  Eric Blake  <ebb9@byu.net>
42609
42610         Fix typos.
42611         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42612         values to be the right type.
42613
42614         For now, cater to gnulib strtod inaccuracies.
42615         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42616         fractional results.  While not as nice from a QoI perspective, it
42617         is a quicker patch than correctly implementing decimal to binary
42618         rounding.
42619
42620 2008-03-31  Eric Blake  <ebb9@byu.net>
42621
42622         Guarantee a definition of NAN.
42623         * lib/math.in.h (NAN): Define if missing.
42624         * tests/test-math.c (main): Test it.
42625         * doc/posix-headers/math.texi (math.h): Document this.
42626         * lib/isnan.c (rpl_isnand): Use it.
42627         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42628         * tests/test-floorf1.c (NaN): Likewise.
42629         * tests/test-frexp.c (NaN): Likewise.
42630         * tests/test-isnand.c (NaN): Likewise.
42631         * tests/test-isnanf.c (NaN): Likewise.
42632         * tests/test-round1.c (NaN): Likewise.
42633         * tests/test-roundf1.c (NaN): Likewise.
42634         * tests/test-snprintf-posix.h (NaN): Likewise.
42635         * tests/test-sprintf-posix.h (NaN): Likewise.
42636         * tests/test-trunc1.c (NaN): Likewise.
42637         * tests/test-truncf1.c (NaN): Likewise.
42638         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42639         * tests/test-vasprintf-posix.c (NaN): Likewise.
42640         * modules/isnand-nolibm (Depends-on): Add math.
42641         * modules/isnanf-nolibm (Depends-on): Likewise.
42642         * modules/isnanl (Depends-on): Likewise.
42643         * modules/isnanl-nolibm (Depends-on): Likewise.
42644         * modules/snprintf-posix-tests (Depends-on): Likewise.
42645         * modules/sprintf-posix-tests (Depends-on): Likewise.
42646         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42647         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42648         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42649         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42650
42651 2008-03-31  Bruno Haible  <bruno@clisp.org>
42652
42653         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42654         * doc/posix-functions/strtod.texi: Likewise.
42655
42656 2008-03-31  Bruno Haible  <bruno@clisp.org>
42657
42658         * tests/test-strtod.c (main): Don't use C99 syntax.
42659
42660 2008-03-31  Bruno Haible  <bruno@clisp.org>
42661
42662         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42663         Reported by Eric Blake.
42664
42665 2008-03-31  Jim Meyering  <meyering@redhat.com>
42666
42667         Don't compare actual signbit return values.
42668         * tests/test-strtod.c (main): Rather, compare only their
42669         zero/non-zero nature.
42670
42671 2008-03-31  Eric Blake  <ebb9@byu.net>
42672
42673         More strtod documentation.
42674         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42675         failures as distinct bugs.
42676
42677 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42678
42679         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42680         Problem reported by Erik Benada in
42681         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42682
42683 2008-03-30  Bruno Haible  <bruno@clisp.org>
42684
42685         * tests/test-strtod.c: Add comments about which assertion fails on which
42686         platform.
42687         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42688
42689 2008-03-30  Eric Blake  <ebb9@byu.net>
42690
42691         Test signbit behavior on zeros.
42692         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42693         (test_signbitd, test_signbitl): Likewise.
42694
42695         More strtod touchups.
42696         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42697         sign of negative underflow, for now.  Use .5, not .1.
42698         * doc/posix-functions/strtod.texi (strtod): Mention these
42699         limitations.
42700         Reported by Jim Meyering.
42701
42702 2008-03-30  Bruno Haible  <bruno@clisp.org>
42703
42704         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42705         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42706
42707 2008-03-30  Bruno Haible  <bruno@clisp.org>
42708
42709         Avoid failure when attempting to return empty iconv results on some
42710         platforms.
42711         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42712         allocation, don't report ENOMEM when the resulting string is empty.
42713
42714 2008-03-30  Bruno Haible  <bruno@clisp.org>
42715
42716         Fix buffer overrun.
42717         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42718         Don't consider the width for tmp_length. Check count against tmp_length
42719         before doing the padding. Ensure enough allocation during padding.
42720
42721 2008-03-30  Eric Blake  <ebb9@byu.net>
42722
42723         strtod touchups.
42724         * lib/strtod.c (strtod): Avoid compiler warnings.
42725         Reported by Jim Meyering.
42726
42727 2008-03-30  Bruno Haible  <bruno@clisp.org>
42728
42729         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42730         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42731         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42732         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42733         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42734         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42735         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42736         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42737
42738         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42739         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42740         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42741         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42742         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42743         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42744         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42745         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42746
42747         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42748         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42749         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42750         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42751         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42752         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42753         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42754         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42755
42756         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42757         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42758
42759         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42760         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42761
42762         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42763         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42764
42765         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42767         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42768
42769         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42771         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42772
42773         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42775         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42776
42777         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42779         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42780
42781         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42782         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42784         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42785         (Depends-on): Add EOVERFLOW.
42786         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42787         (Depends-on): Add EOVERFLOW.
42788         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42789         (Depends-on): Add EOVERFLOW.
42790         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42791         (Depends-on): Add EOVERFLOW.
42792         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42793         (Depends-on): Add EOVERFLOW.
42794         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42795         (Depends-on): Add EOVERFLOW.
42796         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42797         (Depends-on): Add EOVERFLOW.
42798         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42799         (Depends-on): Add EOVERFLOW.
42800
42801         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42803         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42804
42805         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42807         * modules/snprintf (Depends-on): Add EOVERFLOW.
42808
42809         * lib/poll.c (EOVERFLOW): Remove fallback.
42810         * modules/poll (Depends-on): Add EOVERFLOW.
42811
42812         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42813         * modules/getugroups (Depends-on): Add EOVERFLOW.
42814
42815         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42816         * modules/getdelim (Depends-on): Add EOVERFLOW.
42817
42818         * lib/ftell.c (EOVERFLOW): Remove fallback.
42819         * modules/ftell (Depends-on): Add EOVERFLOW.
42820
42821         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42823         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42824
42825         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42826
42827         * modules/EOVERFLOW-tests: New file.
42828         * tests/test-EOVERFLOW.c: New file.
42829
42830         * modules/EOVERFLOW: New file.
42831         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42832
42833 2008-03-30  Bruno Haible  <bruno@clisp.org>
42834
42835         Fix bug introduced on 2007-06-10.
42836         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42837         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42838
42839 2008-03-30  Bruno Haible  <bruno@clisp.org>
42840
42841         Improve freadseek's efficiency after ungetc.
42842         * lib/freadseek.c: Include freadahead.h.
42843         (freadptrinc): New function, extracted from freadseek.
42844         (freadseek): Use it in a loop. Use freadahead to determine the number
42845         of loop iterations.
42846         * modules/freadseek (Depends-on): Add freadahead.
42847         (configure.ac): Require AC_C_INLINE.
42848
42849 2008-03-30  Bruno Haible  <bruno@clisp.org>
42850
42851         * lib/freadseek.c (freadseek): Don't ignore the return value of
42852         freadptr.
42853
42854 2008-03-29  Eric Blake  <ebb9@byu.net>
42855
42856         Add hex float support.
42857         * modules/strtod (Depends-on): Add c-ctype.
42858         (Link): Mention POW_LIB.
42859         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42860         whitespace between 'e' and exponent.
42861         * tests/test-strtod.c (main): Enable hex float tests.
42862         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42863         now provides.
42864
42865         Document various strtod bugs, with some fixes.
42866         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42867         "-0x", "inf", "nan", and hex constants.
42868         * doc/posix-functions/atof.texi (atof): Likewise.
42869         * modules/stdlib (Makefile.am): Support strtod.
42870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42871         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42872         detect additional strtod bugs.
42873         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42874         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42875         bool where appropriate.  Parse 'inf' and 'nan'.
42876         * tests/test-strtod.c: New file.
42877         * modules/strtod (Depends-on): Add stdbool, stdlib.
42878         (configure.ac): Turn on module indicator.
42879         * modules/strtod-tests: New module.
42880
42881 2008-03-29  Eric Blake  <ebb9@byu.net>
42882
42883         Fix ftell on mingw.
42884         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42885         * modules/ftell-tests (Depends-on): Add binary-io.
42886         * modules/ftello-tests (Depends-on): Likewise.
42887         * tests/test-ftell.c (main): Enhance test to cover behavior after
42888         ungetc.  Enforce binary mode.
42889         * tests/test-ftello.c (main): Likewise.
42890
42891         Pass test-freadseek on cygwin.
42892         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42893         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42894         ungetc buffer.
42895
42896         * tests/test-fflush2.c (main): Fix typo.
42897
42898 2008-03-29  Bruno Haible  <bruno@clisp.org>
42899
42900         * tests/test-fflush2.c (main): Temporarily disable the contents of
42901         this test.
42902         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42903         Reported by Eric Blake.
42904
42905 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42906
42907         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42908         (GC_SHA224_DIGEST_SIZE): Add.
42909
42910         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42911         (gc_hash_digest_length): Likewise.
42912         (gc_hash_buffer): Likewise.
42913
42914 2008-03-25  Bruno Haible  <bruno@clisp.org>
42915
42916         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42917         detail which gettext release to use.
42918         Reported by Simon Josefsson.
42919
42920 2008-03-26  Jim Meyering  <meyering@redhat.com>
42921
42922         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42923         * modules/gnumakefile (clean-GNUmakefile): Also, use
42924         test ... && ... || : syntax rather than if-then ... fi.
42925
42926         gnumakefile: Don't double-quote-expand $(VPATH) value.
42927         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42928
42929 2008-03-24  Eric Blake  <ebb9@byu.net>
42930
42931         Alter GNUmakefile to install into top directory.
42932         * modules/maintainer-makefile: Split, and add dependency...
42933         * modules/gnumakefile: to this new module.
42934         * build-aux/GNUmakefile: Move...
42935         * top/GNUmakefile: ...here.
42936         * build-aux/maint.mk: Move...
42937         * top/maint.mk: ...here.
42938         * MODULES.html.sh (Support for maintaining...): Document new
42939         module.
42940
42941 2008-03-23  Bruno Haible  <bruno@clisp.org>
42942
42943         * gnulib-tool: New options --vc-files, --no-vc-files.
42944         (func_usage): Document them.
42945         (vc_files): New variable.
42946         (func_import): Consider vc_files.
42947         (func_create_testdir): Set vc_files to empty.
42948         Suggested by Jim Meyering and Karl Berry.
42949
42950 2008-03-23  Bruno Haible  <bruno@clisp.org>
42951
42952         Fix regex compilation error on HP-UX 11.
42953         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42954         * modules/regex (Files): Add m4/mbstate_t.m4.
42955         Reported by Ton Voon <ton.voon@altinity.com>.
42956
42957 2008-03-23  Bruno Haible  <bruno@clisp.org>
42958
42959         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42960
42961 2008-03-23  Eric Blake  <ebb9@byu.net>
42962             Bruno Haible  <bruno@clisp.org>
42963
42964         Install files from top/ in the destination directory.
42965         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42966         augmentation also for the files from top/.
42967         (func_import, func_create_testdir): Rewrite file names:
42968         top/filename -> filename.
42969
42970 2008-03-23  Bruno Haible  <bruno@clisp.org>
42971
42972         Tweak "gnulib --version" output.
42973         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42974
42975 2008-03-23  Bruno Haible  <bruno@clisp.org>
42976
42977         Tweak "gnulib --version" output.
42978         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42979         rather than contents of ChangeLog, when possible.
42980
42981 2008-03-21  Eric Blake  <ebb9@byu.net>
42982
42983         More --version tweaks.
42984         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42985         date of last ChangeLog entry.
42986
42987 2008-03-21  Jim Meyering  <meyering@redhat.com>
42988
42989         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42990
42991 2008-03-20  Eric Blake  <ebb9@byu.net>
42992
42993         VPATH fix.
42994         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42995
42996 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42997
42998         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42999         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
43000
43001 2008-03-20  Eric Blake  <ebb9@byu.net>
43002
43003         Sync GNUmakefile with coreutils.
43004         * build-aux/GNUmakefile (have-Makefile): Rename...
43005         (_have-Makefile): ...to this, for namespace consideration.
43006         (GNUmakefile.cfg): Include, if present.
43007         (_autoreconf): Define a default.
43008         (_is-dist-target): New rule for rebuilds to pick up intra-release
43009         version.
43010         (maint-cfg.mk): Rename...
43011         (cfg.mk): ...to this.
43012
43013 2008-03-18  Jim Meyering  <meyering@redhat.com>
43014
43015         New script and module: mktempd
43016         * MODULES.html.sh (maint+release support): Add mktempd.
43017         * build-aux/mktempd: New file.
43018         * modules/mktempd: New file.
43019
43020 2008-03-15  Jim Meyering  <meyering@redhat.com>
43021
43022         Undo last change.
43023         * lib/sha1.c, lib/md5.c: 63 != ~63.
43024         Reported by Andreas Schwab.
43025
43026         sha1.c, md5.c: Hoist a redundant expression.
43027         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
43028         "ctx->buflen" only once, before calling *_process_block.
43029         * lib/md5.c (md5_process_bytes): Likewise.
43030
43031 2008-03-14  Eric Blake  <ebb9@byu.net>
43032
43033         Bump copyright year in files generated by gnulib-tool.
43034         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
43035         gnulib-tool, rather than hard-coding it.
43036
43037         Fix 'gnulib-tool --version' output to work with git.
43038         * gnulib-tool (func_gnulib_dir): New function, extracted from...
43039         (startup): ...here.
43040         (func_version): Use it to invoke git-version-gen, rather than
43041         relying on CVS keyword expansion.  Modernize wording.
43042         (cvsdatestamp, last_checkin_date, version): Kill unused
43043         variables.
43044
43045 2008-03-12  Jim Meyering  <meyering@redhat.com>
43046
43047         Recognize optional cast of the argument to free.
43048         * build-aux/useless-if-before-free: Update regexps.
43049
43050         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
43051
43052 2008-03-11  Bruno Haible  <bruno@clisp.org>
43053
43054         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
43055         by a single package.
43056         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
43057         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
43058         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
43059         Reported by Sam Steingold <sds@gnu.org>.
43060
43061 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43062
43063         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
43064         repositories.
43065
43066 2008-03-11  Bruno Haible  <bruno@clisp.org>
43067
43068         Avoid conflicts between local macro definitions.
43069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
43070         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
43071
43072 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
43073             Bruno Haible  <bruno@clisp.org>
43074
43075         Make va_copy work with some version of xlc on AIX 5.1.
43076         * lib/stdarg.in.h: New file.
43077         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
43078         On AIX, use a <stdarg.h> file substitute.
43079         * modules/stdarg (Files): Add lib/stdarg.in.h.
43080         (Depends-on): Add include_next.
43081         (Makefile.am): Build a stdarg.h substitute if requested.
43082         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
43083
43084 2008-03-10  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
43087         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43088         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43089
43090 2008-03-10  Bruno Haible  <bruno@clisp.org>
43091
43092         * modules/stdlib (Depends-on): Add include_next, remove
43093         absolute-header.
43094
43095 2008-03-09  Bruno Haible  <bruno@clisp.org>
43096
43097         * lib/freadahead.h (freadahead): Document more precisely.
43098         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
43099         the sum of both buffer sizes.
43100         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
43101         * NEWS: Document the change.
43102
43103 2008-03-09  Bruno Haible  <bruno@clisp.org>
43104
43105         Extend freadptr to return also the buffer size.
43106         * lib/freadptr.h (freadptr): Add sizep argument.
43107         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
43108         (freadptr): Add sizep argument. Determine buffer size like freadahead
43109         does.
43110         * tests/test-freadptr.c: Don't include freadahead.h.
43111         (main): Adapt for new calling convention of freadptr.
43112         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
43113         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
43114         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
43115         tests/test-freadptr2.sh.
43116         (Depends): Remove freadahead.
43117         (TESTS): Add test-freadptr2.sh.
43118         (check_PROGRAMS): Add test-freadptr2.
43119
43120 2008-03-09  Bruno Haible  <bruno@clisp.org>
43121
43122         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
43123         Report and solution by Simon Josefsson.
43124
43125 2008-03-06  Bruno Haible  <bruno@clisp.org>
43126
43127         Make fflush after ungetc work on BSD platforms.
43128         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
43129         * tests/test-fflush2.c: New file.
43130         * tests/test-fflush2.sh: New file.
43131         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
43132         tests/test-fflush2.c.
43133         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
43134         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
43135
43136 2008-03-06  Eric Blake  <ebb9@byu.net>
43137
43138         Likewise for ftello.
43139         * modules/ftello (Dependencies): Add extensions.
43140         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
43141
43142 2008-03-06  Bruno Haible  <bruno@clisp.org>
43143
43144         * modules/fseeko (Dependencies): Add extensions.
43145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
43146         Needed on glibc systems.
43147
43148 2008-03-06  Bruno Haible  <bruno@clisp.org>
43149
43150         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
43151         email address.
43152         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43153
43154 2008-03-06  Bruno Haible  <bruno@clisp.org>
43155
43156         * users.txt: Add libgnupdf.
43157
43158 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43159
43160         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
43161         (Header File Substitutes, Function Substitutes,
43162         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
43163         (Build robot for gnulib): Fix typo.
43164
43165 2008-03-06  Bruno Haible  <bruno@clisp.org>
43166
43167         * doc/gnulib-tool.texi (VCS Issues): Small updates.
43168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
43169
43170 2008-03-06  Bruno Haible  <bruno@clisp.org>
43171
43172         * doc/func.texi: New file, extracted from doc/gnulib.texi.
43173         * doc/gnulib.texi: Include it.
43174
43175 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43176
43177         * modules/func (License): Change license to unlimited; there was
43178         no LGPL parts in the module anyway.
43179
43180 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43181
43182         * modules/__func__: Renamed to modules/func.
43183         * modules/__func__-tests: Renamed to modules/func-tests.
43184         * tests/test-__func__.c: Renamed to tests/test-func.c.
43185         * m4/__func__.m4: Renamed to m4/func.m4.
43186         * doc/gnulib.texi (__func__): Section renamed to func.
43187         Suggested by Eric Blake <ebb9@byu.net>.
43188
43189 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43190
43191         * doc/gnulib.texi (__func__): Use C99 terminology when talking
43192         about __func__.  Make example self-contained.  Suggested by Eric
43193         Blake <ebb9@byu.net>.
43194
43195         * tests/test-__func__.c (main): Avoid extraneous () around __func.
43196         Suggested by Eric Blake <ebb9@byu.net>.
43197
43198 2008-03-06  Simon Josefsson  <simon@josefsson.org>
43199
43200         * modules/__func__: New file.
43201         * modules/__func__-tests: New file.
43202         * tests/test-__func__.c: New file.
43203         * m4/__func__.m4: New file.
43204         * doc/gnulib.texi (__func__): Document __func__ module.
43205
43206 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43207
43208         * modules/byteswap (License): Re-license as LGPLv2+.
43209
43210 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43211
43212         * doc/Makefile: Add pdf target.
43213
43214 2008-03-05  Simon Josefsson  <simon@josefsson.org>
43215
43216         * modules/inline (License): Use 'unlimited', since there are only
43217         *.m4 files in this module.
43218
43219 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43220             Bruno Haible  <bruno@clisp.org>
43221
43222         Add support for HP C 7.1 on OpenVMS 8.3.
43223         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
43224
43225 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
43226
43227         Update VMS specifics.
43228         * lib/getopt.c [VMS]: Remove include of unixlib.h.
43229
43230 2008-03-02  Jim Meyering  <meyering@redhat.com>
43231
43232         Remove the last dependency on the "free" module.
43233         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
43234         Reported by Bob Proulx.
43235
43236         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
43237
43238         Remove useless "if" tests before free.  Deprecate "free" module.
43239         * doc/posix-functions/free.texi: Mention that this
43240         module is no longer useful.
43241         * modules/free (Notice): Say this module is obsolete.
43242         * modules/readutmp (Depends-on): Remove free.
43243         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
43244         * lib/putenv.c (putenv): Likewise.
43245         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
43246         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
43247         * tests/test-c-strcasestr.c (main): Likewise.
43248         * tests/test-c-strstr.c (main): Likewise.
43249         * tests/test-mbscasestr1.c (main): Likewise.
43250         * tests/test-mbscasestr2.c (main): Likewise.
43251         * tests/test-mbsstr1.c (main): Likewise.
43252         * tests/test-mbsstr2.c (main): Likewise.
43253         * tests/test-memmem.c (main): Likewise.
43254         * tests/test-strcasestr.c (main): Likewise.
43255         * tests/test-striconv.c (main): Likewise.
43256         * tests/test-striconveh.c (main): Likewise.
43257         * tests/test-striconveha.c (main): Likewise.
43258         * tests/test-strstr.c (main): Likewise.
43259
43260         * build-aux/git-version-gen: Adjust a comment and the Usage string.
43261
43262         bootstrap: sync from coreutils again
43263         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
43264
43265 2008-03-01  Jim Meyering  <meyering@redhat.com>
43266
43267         bootstrap: sync from coreutils
43268         * build-aux/bootstrap (update_po_files): Copy a .po file into place
43269         also when the target doesn't exist.
43270
43271 2008-03-01  Eric Blake  <ebb9@byu.net>
43272
43273         Fix bugs in last patch.
43274         * lib/memchr2.c (memchr2): Fix typo.
43275         * tests/test-memchr2.c: Test previous bug, and don't use GNU
43276         extension.
43277         Reported by Bruce Korb.
43278
43279         New module 'memchr2'.
43280         * modules/memchr2: New file.
43281         * modules/memchr2-tests: Likewise.
43282         * lib/memchr2.h: Likewise.
43283         * lib/memchr2.c: Likewise, based on memchr.c.
43284         * tests/test-memchr2.c: New test.
43285         * MODULES.html.sh (String handling): Add memchr2.
43286
43287 2008-02-29  Bruno Haible  <bruno@clisp.org>
43288
43289         * modules/freadseek-tests: New file.
43290         * tests/test-freadseek.sh: New file.
43291         * tests/test-freadseek.c: New file.
43292
43293         New module 'freadseek'.
43294         * modules/freadseek: New file.
43295         * lib/freadseek.h: New file.
43296         * lib/freadseek.c: New file.
43297         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
43298
43299 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
43300
43301         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
43302         wydawca.
43303
43304         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
43305         program_invocation_name and program_invocation_short_name are
43306         present.
43307
43308 2008-02-28  Bruno Haible  <bruno@clisp.org>
43309
43310         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
43311         * tests/test-freadptr.sh: Also test non-seekable stdin.
43312
43313 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
43314
43315         * build-aux/bootstrap (source_base, m4_base)
43316         (doc_base, tests_base): New variables.
43317         (gnulib_tool_options): Do not hardcode base directories, use
43318         the above variables instead.
43319
43320 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
43321
43322         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
43323
43324 2008-02-28  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/freadptr-tests: New file.
43327         * tests/test-freadptr.sh: New file.
43328         * tests/test-freadptr.c: New file.
43329
43330         New module 'freadptr'.
43331         * modules/freadptr: New file.
43332         * lib/freadptr.h: New file.
43333         * lib/freadptr.c: New file.
43334         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43335
43336 2008-02-26  Karl Berry  <karl@freefriends.org>
43337
43338         Sync from Libtool:
43339         * libltdl/argz.c (argz_add, argz_count): New functions.
43340         * libltdl/argz.in.h: Declare them.
43341         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43342
43343 2008-02-22  Bruno Haible  <bruno@clisp.org>
43344
43345         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43346         is a pointer type.  Needed for HP-UX 10.
43347         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43348         * doc/posix-functions/gmtime_r.texi: Likewise.
43349         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43350
43351 2008-02-24  Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/environ-tests: New file.
43354         * tests/test-environ.c: New file.
43355
43356         New module 'environ'.
43357         * modules/environ: New file.
43358         * lib/unistd.in.h (environ): New declaration.
43359         * m4/environ.m4: New file.
43360         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43361         after use.
43362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43363         HAVE_DECL_ENVIRON.
43364         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43365         HAVE_DECL_ENVIRON.
43366         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43367         wrong claim that 'environ' is missing on some systems.
43368         * modules/execute (Depends-on): Add environ.
43369         * lib/execute.c (environ): Remove fallback declaration.
43370         * modules/pipe (Depends-on): Add environ.
43371         * lib/pipe.c (environ): Remove fallback declaration.
43372         * modules/setenv (Depends-on): Add environ.
43373         * lib/setenv.c (environ): Remove fallback declaration.
43374         * modules/unsetenv (Depends-on): Add environ.
43375         * lib/unsetenv.c (environ): Remove fallback declaration.
43376         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43377         m4/environ.m4.
43378         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43379         (gl_PREREQ_UNSETENV): Likewise.
43380
43381 2008-02-24  Bruno Haible  <bruno@clisp.org>
43382
43383         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43384
43385 2008-02-20  Bob Proulx  <bob@proulx.com>
43386
43387         Enable use of older two part flavor 'git describe'.
43388         * build-aux/git-version-gen: If using the older two part flavor of
43389         git version then recreate the third part now present in the
43390         newer three part flavor of git describe.
43391
43392 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43393
43394         * lib/fts.c (fts_build): Typo correction to comment.
43395
43396 2008-02-17  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43399         generating no-op conflicts.
43400
43401 2008-02-17  Bruno Haible  <bruno@clisp.org>
43402
43403         Speed up by 10%.
43404         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43405         result_entries, rather than an index-based loop.
43406
43407 2008-02-17  Bruno Haible  <bruno@clisp.org>
43408
43409         Speed up by 25%.
43410         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43411         'hashcode_cached'.
43412         (entry_create): New function.
43413         (entry_hashcode): Use the cached hashcode if possible.
43414         (read_changelog_file, try_split_merged_entry): Use entry_create.
43415
43416 2008-02-17  Bruno Haible  <bruno@clisp.org>
43417
43418         Speed up from O(n^2) to O(n) for long ChangeLog files.
43419         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43420         (read_changelog_file): Change implementation of entries_reversed list
43421         to rbtreehash.
43422         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43423
43424 2008-02-17  Bruno Haible  <bruno@clisp.org>
43425
43426         New option --split-merged-entry.
43427         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43428         (find_paragraph_end, try_split_merged_entry): New functions.
43429         (long_options): Add option --split-merged-entry.
43430         (usage): Document option --split-merged-entry.
43431         (main): Implement option --split-merged-entry.
43432         Reported by Eric Blake.
43433
43434 2008-02-17  Bruno Haible  <bruno@clisp.org>
43435
43436         * lib/git-merge-changelog.c: Include c-strstr.h.
43437         (main): Support the "git pull --rebase" situation.
43438         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43439         Reported by Eric Blake.
43440
43441 2008-02-16  Eric Blake  <ebb9@byu.net>
43442
43443         Avoid doubling \ in common case of "c-maybe" quoting style.
43444         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43445         eliding outer quotes.
43446         * lib/quotearg.h: Document this.
43447         * tests/test-quotearg.c (result_strings, inputs, results_g)
43448         (flag_results, locale_results): Test it by adding a new string to
43449         each test group.
43450         (compare_strings): Test new string.
43451
43452 2008-02-13  Eric Blake  <ebb9@byu.net>
43453
43454         Avoid trigraph quoting in default output.
43455         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43456         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43457         unless explicitly requested.
43458         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43459
43460 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43461
43462         Don't rely on signed integer overflowing to negative value.
43463         * lib/getugroups.c (getugroups): Include <limits.h>.
43464         Instead, compare against INT_MAX, and increment only if the test passes.
43465
43466 2008-02-13  Jim Meyering  <meyering@redhat.com>
43467         and Eric Blake  <ebb9@byu.net>
43468
43469         Avoid shadowing warning and compile errors on Linux.
43470         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43471         forwarding macros on Linux.
43472         (dcgettext): Define a stub, for Linux.
43473         (results_g, main): Avoid warnings.
43474
43475 2008-02-12  Eric Blake  <ebb9@byu.net>
43476
43477         Silence warning in last patch.
43478         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43479
43480         Quotearg part 4: add tests, fix c-maybe colon quoting.
43481         * lib/quotearg.h: Improve documentation.
43482         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43483         escapes when adding outer quotes.  When quoting trigraphs, use
43484         valid C notation.  When quoting NUL, omit extra characters if next
43485         character is not digit.  Alter prototype.
43486         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43487         callers.
43488         * modules/quotearg-tests: New module.
43489         * tests/test-quotearg.c: New test.
43490
43491 2008-02-07  Eric Blake  <ebb9@byu.net>
43492
43493         Quotearg part 3: add flag to control outer quote elision.
43494         * lib/quotearg.h (c_maybe_quoting_style): New style.
43495         (enum quoting_flags): Better documentation of flags.
43496         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43497         c-maybe style.
43498         (quotearg_buffer_restyled): Handle new flag to elide outer
43499         quotes.
43500
43501         Quotearg part 2: add flag that can control NUL elision.
43502         * lib/quotearg.h (set_quoting_flags): New prototype.
43503         * lib/quotearg.c (struct quoting_options): Add flag field.
43504         (set_quoting_flags): New function.
43505         (quotearg_buffer_restyled): Add flags parameter.
43506         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43507         (quotearg_n_options): Set the flag, since length cannot be
43508         returned.
43509         (quoting_options_from_style): Default flags correctly.
43510
43511         Quotearg part 1: more wrappers, restore quotearg_char state.
43512         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43513         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43514         (quotearg_colon_mem): New wrappers.
43515         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43516         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43517         functions.
43518         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43519         (quotearg_colon_mem): New functions.
43520
43521 2008-02-11  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43524         library in the current directory: it does not work with parallel make.
43525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43526
43527 2008-02-11  Bruno Haible  <bruno@clisp.org>
43528
43529         * .gitattributes: New file.
43530
43531 2008-02-11  Jim Meyering  <meyering@redhat.com>
43532
43533         useless-if-before-free: Fix reversed exit values.
43534         * build-aux/useless-if-before-free: Use correct values
43535         for EXIT_MATCH and EXIT_NO_MATCH.
43536
43537         * build-aux/useless-if-before-free: Close stdout carefully.
43538
43539 2008-02-10  Bruno Haible  <bruno@clisp.org>
43540
43541         New module 'git-merge-changelog'.
43542         * modules/git-merge-changelog: New file.
43543         * lib/git-merge-changelog.c: New file.
43544
43545 2008-02-10  Jim Meyering  <meyering@redhat.com>
43546
43547         useless-if-before-free: New option: --list (-l).
43548
43549         useless-if-before-free: Don't exit immediately upon open failure.
43550         * build-aux/useless-if-before-free: Exit 2 for errors.
43551         Upon failure to open a file, don't exit immediately.
43552         Rather, just warn and continue with any remaining files.
43553
43554 2008-02-10  Bruno Haible  <bruno@clisp.org>
43555
43556         New abstract list operation 'node_set_value'.
43557         * lib/gl_list.h (gl_list_node_set_value): New function.
43558         (struct gl_list_implementation): New field node_set_value.
43559         * lib/gl_list.c (gl_list_node_set_value): New function.
43560         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43561         (gl_array_list_implementation): Update.
43562         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43563         (gl_carray_list_implementation): Update.
43564         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43565         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43566         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43567         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43568         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43569         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43570         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43571         Update.
43572         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43573         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43574         (gl_sublist_list_implementation): Update.
43575
43576 2008-02-10  Bruno Haible  <bruno@clisp.org>
43577
43578         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43579         Needed when ELEMENT is #defined to 'some_type *'.
43580
43581 2008-02-10  Jim Meyering  <meyering@redhat.com>
43582
43583         New script and module: useless-if-before-free
43584         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43585         * build-aux/useless-if-before-free: New file.
43586         * modules/useless-if-before-free: New file.
43587
43588         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43589
43590         xstrtol_error: Fix typo.
43591         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43592         s/exit_failure/exit_status/.
43593
43594 2008-02-09  Jim Meyering  <meyering@redhat.com>
43595
43596         New script and module: gitlog-to-changelog
43597         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43598         * modules/gitlog-to-changelog: New file.
43599         * build-aux/gitlog-to-changelog: New file.
43600
43601 2008-02-08  Jim Meyering  <meyering@redhat.com>
43602
43603         Avoid two "parameter unused" warnings.
43604         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43605         Mark "st" as used.
43606
43607         Use "git COMMAND", not "git-COMMAND".
43608         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43609         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43610         * build-aux/git-version-gen: Use "git status", not "git-status".
43611
43612 2008-02-07  Bruno Haible  <bruno@clisp.org>
43613
43614         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43615         Avoids a crash on Windows Vista.
43616         Reported by Adam Strzelecki <ono@java.pl> via
43617         Simon Josefsson <simon@josefsson.org>.
43618
43619 2008-02-06  Bruno Haible  <bruno@clisp.org>
43620
43621         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43622         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43623         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43625         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43626         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43627         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43628         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43629         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43636         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43637         left-adjust flag.
43638         * tests/test-snprintf-posix.h (test_function): Likewise.
43639         * tests/test-sprintf-posix.h (test_function): Likewise.
43640         * tests/test-vasprintf-posix.c (test_function): Likewise.
43641         * doc/posix-functions/fprintf.texi: Update.
43642         * doc/posix-functions/printf.texi: Update.
43643         * doc/posix-functions/snprintf.texi: Update.
43644         * doc/posix-functions/sprintf.texi: Update.
43645         * doc/posix-functions/vfprintf.texi: Update.
43646         * doc/posix-functions/vprintf.texi: Update.
43647         * doc/posix-functions/vsnprintf.texi: Update.
43648         * doc/posix-functions/vsprintf.texi: Update.
43649         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43650
43651 2008-02-06  Bruno Haible  <bruno@clisp.org>
43652
43653         Fix bug introduced on 2008-01-26.
43654         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43655
43656 2008-02-06  Bruno Haible  <bruno@clisp.org>
43657
43658         Fix bug introduced on 2007-06-10.
43659         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43660         !NEED_PRINTF_FLAG_ZERO.
43661
43662 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43663
43664         getloadavg: use libperfstat on AIX5
43665         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43666
43667 2008-02-03  Bruno Haible  <bruno@clisp.org>
43668
43669         * lib/diffseq.h: Add comments about required #includes.
43670         Reported by Michael Biggs <gnulib@doubleplum.net>.
43671
43672 2008-02-01  Bruno Haible  <bruno@clisp.org>
43673
43674         * users.txt: Add gnuit.
43675
43676 2008-01-31  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/md4.c (set_uint32): Mark as inline.
43679         * lib/md5.c (set_uint32): Likewise.
43680         * lib/sha1.c (set_uint32): Likewise.
43681         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43682         * m4/md5.m4 (gl_MD5): Likewise.
43683         * m4/sha1.m4 (gl_SHA1): Likewise.
43684
43685 2008-01-31  Jim Meyering  <meyering@redhat.com>
43686
43687         Use "sizeof VAR", rather than a literal "4".
43688         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43689         * lib/md4.c (md4_read_ctx): Likewise.
43690         * lib/sha1.c (sha1_read_ctx): Likewise.
43691
43692 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43693
43694         * tests/test-sha1.c: New file, based on test-md5.c.
43695
43696         * modules/crypto/sha1-tests: New file.
43697
43698 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43699
43700         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43701
43702 2008-01-31  Jim Meyering  <meyering@redhat.com>
43703
43704         Prefer "sizeof v" over the equivalent "4".
43705         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43706         * lib/md5.c (set_uint32): Likewise.
43707         * lib/sha1.c (set_uint32): Likewise.
43708
43709 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43710
43711         * lib/sha1.c (set_uint32): Mark function as static.
43712
43713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43714
43715         md2: clarify comments to say that alignment is not required.
43716         * lib/md2.h: Remove warning about alignment in comment.
43717         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43718         never been required.
43719
43720 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43721
43722         md4: adapt alignment constraint fix from sha1.
43723         * lib/md4.c (set_uint32): New function, from sha1.c
43724         (md4_read_ctx): Use it.
43725         (md4_finish_ctx): Doc fix.
43726         * lib/md4.h: Doc fix.
43727
43728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43729
43730         md5: adapt alignment constraint fix from sha1.
43731         * lib/md5.c (set_uint32): New function, from sha1.c
43732         (md5_read_ctx): Use it.
43733         (md5_finish_ctx): Doc fix.
43734         * lib/md5.h: Doc fix.
43735
43736 2008-01-30  Peter Palfrader  <weasel@debian.org>
43737
43738         sha1: remove the result buffer alignment constraint
43739         * lib/sha1.c (set_uint32): New function.
43740         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43741         constraint.
43742         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43743         * lib/sha1.h: Likewise.
43744
43745 2008-01-30  Andreas Schwab  <schwab@suse.de>
43746             Bruno Haible  <bruno@clisp.org>
43747
43748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43749         correct definition of LDBL_MIN_EXP.
43750
43751 2008-01-30  Karl Berry  <karl@gnu.org>
43752
43753         * config/srclist-update: try to preserve x bit on updates.
43754         * config/srclistvars.sh: update for karl.
43755
43756 2008-01-29  Jim Meyering  <meyering@redhat.com>
43757
43758         vasnprintf.c: Avoid warning about unused label
43759         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43760         "overflow" label definition and associated code with the
43761         same cpp condition that guards the sole use of that label.
43762
43763 2008-01-26  Bruno Haible  <bruno@clisp.org>
43764
43765         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43766         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43767         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43768         * lib/isnanl-nolibm.h (isnanl): Likewise.
43769         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43770
43771 2008-01-26  Bruno Haible  <bruno@clisp.org>
43772
43773         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43774         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43775
43776 2008-01-26  Bruno Haible  <bruno@clisp.org>
43777
43778         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43779         GCC >= 4.0 built-in.
43780         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43781
43782 2008-01-26  Bruno Haible  <bruno@clisp.org>
43783
43784         Rename isnan, applicable to 'double' only, to isnand.
43785         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43786         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43787         (configure.ac): Update.
43788         (Include): Replace "isnan.h" with "isnand.h".
43789         * m4/isnand.m4: Renamed from m4/isnan.m4.
43790         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43791         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43792         instead of isnan.c.
43793         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43794         instead of HAVE_ISNAN_IN_LIBC.
43795         (isnand): Renamed from isnan.
43796         * lib/isnand.c: New file.
43797         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43798         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43799         (Makefile.am): Update.
43800         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43801         Include isnand.h instead of isnan.h.
43802         (main): Test isnand instead of isnan.
43803         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43804         isnan-nolibm.
43805         * modules/frexp (Depends-on): Likewise.
43806         * modules/frexp-tests (Depends-on): Likewise.
43807         * modules/frexp-nolibm (Depends-on): Likewise.
43808         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43809         * modules/isfinite (Depends-on): Likewise.
43810         * modules/round-tests (Depends-on): Likewise.
43811         * modules/signbit (Depends-on): Likewise.
43812         * modules/signbit-tests (Depends-on): Likewise.
43813         * modules/snprintf-posix (Depends-on): Likewise.
43814         * modules/sprintf-posix (Depends-on): Likewise.
43815         * modules/trunc-tests (Depends-on): Likewise.
43816         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43817         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43818         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43819         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43820         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43821         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43822         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43823         * modules/vasnprintf-posix (Depends-on): Likewise.
43824         * modules/vasprintf-posix (Depends-on): Likewise.
43825         * modules/vfprintf-posix (Depends-on): Likewise.
43826         * modules/vsnprintf-posix (Depends-on): Likewise.
43827         * modules/vsprintf-posix (Depends-on): Likewise.
43828         * lib/frexp.c: Include isnand.h instead of isnan.h.
43829         (ISNAN): Set to isnand instead of isnan.
43830         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43831         (gl_isfinited): Use isnand instead of isnan.
43832         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43833         (gl_signbitd): Use isnand instead of isnan.
43834         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43835         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43836         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43837         (main): Use isnand instead of isnan.
43838         * tests/test-round1.c: Include isnand.h.
43839         (main): Use isnand instead of isnan.
43840         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43841         (ISNAN): Set to isnand instead of isnan.
43842         * tests/test-trunc1.c: Include isnand.h.
43843         (main): Use isnand instead of isnan.
43844         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43845         (equal): Use isnand instead of isnan.
43846         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43847         isnand-nolibm.
43848         * NEWS: Mention the change.
43849
43850 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43851             Bruno Haible  <bruno@clisp.org>
43852
43853         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43854         the GCC builtins for signbits are present and set
43855         REPLACE_SIGNBIT_USING_GCC if so.
43856         * lib/math.in.h (signbit): Define using GCC builtins if
43857         REPLACE_SIGNBIT_USING_GCC is set.
43858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43859         REPLACE_SIGNBIT_USING_GCC.
43860         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43861
43862 2008-01-25  Jim Meyering  <meyering@redhat.com>
43863
43864         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43865         * lib/poll.c: Include <config.h>, not "config.h".
43866         * tests/test-getaddrinfo.c: Likewise.
43867
43868 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43869
43870         * modules/sockets-tests: New file.
43871
43872 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43873
43874         * modules/sockets: New module, can be used to call WSA_Startup and
43875         WSA_Cleanup when needed.
43876
43877         * lib/sockets.h, lib/sockets.c: New files.
43878
43879         * m4/sockets.m4: New file.
43880
43881         * tests/test-sockets.c: New file.
43882
43883 2008-01-19  Bruno Haible  <bruno@clisp.org>
43884
43885         * doc/posix-headers: Renamed from doc/headers.
43886         * doc/posix-functions: Renamed from doc/functions.
43887         * doc/gnulib.texi: Update.
43888
43889 2008-01-19  Bruno Haible  <bruno@clisp.org>
43890
43891         * doc/glibc-functions/strcasestr.texi: Include contents of
43892         doc/functions/strcasestr.texi, fixing the list of platforms.
43893         * doc/functions/strcasestr.texi: Remove file.
43894
43895 2008-01-19  Bruno Haible  <bruno@clisp.org>
43896
43897         * doc/glibc-functions/memmem.texi: Include contents of
43898         doc/functions/memmem.texi.
43899         * doc/functions/memmem.texi: Remove file.
43900
43901 2008-01-18  Bruno Haible  <bruno@clisp.org>
43902
43903         * doc/glibc-functions/*.texi: New files.
43904         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43905         to use the new files.
43906
43907 2008-01-17  Bruno Haible  <bruno@clisp.org>
43908
43909         * tests/test-gethostname.c (main): Fix printf statement.
43910
43911 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43912
43913         * modules/gethostname-tests: New file.
43914
43915         * tests/test-gethostname.c: New file.
43916
43917 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43918
43919         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43920         used by the UNAME case.  Reported by Bruno Haible
43921         <bruno@clisp.org>.
43922
43923 2008-01-17  Eric Blake  <ebb9@byu.net>
43924
43925         Convert c-strcasestr to be more efficient.
43926         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43927         (Depends-on): Add c-strcase, remove malloca, strnlen.
43928         * tests/test-c-strcasestr.c (main): Enhance test.
43929         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43930
43931 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43932
43933         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43934         Use it in creating po/Makevars.
43935
43936 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43937
43938         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43939         Applications that requires it should initialize libgcrypt
43940         manually.
43941
43942 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43943
43944         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43945
43946 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43947
43948         Fix problem with getdate on mingw32 reported by Simon Josefsson
43949         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43950         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43951         tzname", when deciding whether to declare tzname.
43952         * lib/strftime.c (tzname): Likewise.
43953
43954 2008-01-15  Bruno Haible  <bruno@clisp.org>
43955
43956         Work around a MacOS X 10.5 bug in frexpl().
43957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43958         * doc/functions/frexpl.texi: Document the bug.
43959         Reported by Elias Pipping <pipping@gentoo.org>.
43960
43961 2008-01-14  Eric Blake  <ebb9@byu.net>
43962
43963         Touch up previous patch.
43964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43965         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43966
43967         Convert strcasestr module to use Two-Way algorithm.
43968         * modules/strcasestr-simple: New module, based on the old
43969         strcasestr, but with Two-Way rather than KMP.
43970         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43971         * lib/string.in.h (rpl_strcasestr): Declare.
43972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43973         performance.
43974         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43975         * modules/string (Makefile.am): Support strcasestr.
43976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43977         * modules/strcasestr-tests (Depends-on): Check for alarm.
43978         * tests/test-strcasestr.c: Augment test.
43979         * lib/str-two-way.h: Clean up stray macro.
43980         * NEWS: Document new module.
43981         * MODULES.html.sh (string handling): Likewise.
43982         * doc/functions/strcasestr.texi: New file.
43983         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43984         here, since it is not a POSIX function.
43985
43986 2008-01-14  Colin Watson  <cjwatson@debian.org>
43987             Bruno Haible  <bruno@clisp.org>
43988
43989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43990         works fine; if not, set REPLACE_STRSIGNAL.
43991         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43993         REPLACE_STRSIGNAL.
43994         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43995         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43996         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43997
43998 2008-01-14  Bruno Haible  <bruno@clisp.org>
43999
44000         * modules/strsignal (Include): Change to <string.h>.
44001
44002 2008-01-14  Colin Watson  <cjwatson@debian.org>
44003
44004         * modules/argp (Notice): Add a notice recommending to change
44005         XGETTEXT_OPTIONS.
44006         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
44007
44008 2008-01-13  Colin Watson  <cjwatson@debian.org>
44009
44010         * modules/strsignal-tests: New file.
44011         * tests/test-strsignal.c: New file.
44012
44013         * lib/strsignal.c: New file, from glibc with modifications.
44014         * lib/siglist.h: New file, from glibc with modifications.
44015         * lib/string.in.h (strsignal): New declaration.
44016         * m4/strsignal.m4: New file.
44017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44018         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
44019         * modules/strsignal: New file.
44020         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
44021         HAVE_DECL_STRSIGNAL.
44022
44023 2008-01-13  Bruno Haible  <bruno@clisp.org>
44024
44025         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
44026         locale encoding is not ASCII. Needed for OpenBSD 4.0.
44027         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44028         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44029
44030 2008-01-13  Bruno Haible  <bruno@clisp.org>
44031
44032         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
44033         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
44034         * lib/argp.h (__attribute__): Likewise.
44035         * lib/c-stack.c (__attribute__): Likewise.
44036         * lib/error.h (__attribute__): Likewise.
44037         * lib/fts.c (__attribute__): Likewise.
44038         * lib/openat.h (__attribute__): Likewise.
44039         * lib/stdio.in.h (__attribute__): Likewise.
44040         * lib/string.in.h (__attribute__): Likewise.
44041         * lib/utimens.c (__attribute__): Likewise.
44042         * lib/vasnprintf.h (__attribute__): Likewise.
44043         * lib/xalloc.h (__attribute__): Likewise.
44044         * lib/xprintf.h (__attribute__): Likewise.
44045         * lib/xstrtol.h (__attribute__): Likewise.
44046         * lib/xvasprintf.h (__attribute__): Likewise.
44047
44048 2008-01-12  Bruno Haible  <bruno@clisp.org>
44049
44050         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
44051         * doc/glibc-headers/a.out.texi: New file.
44052         * doc/glibc-headers/aliases.texi: New file.
44053         * doc/glibc-headers/alloca.texi: New file.
44054         * doc/glibc-headers/ar.texi: New file.
44055         * doc/glibc-headers/argp.texi: New file.
44056         * doc/glibc-headers/argz.texi: New file.
44057         * doc/glibc-headers/byteswap.texi: New file.
44058         * doc/glibc-headers/crypt.texi: New file.
44059         * doc/glibc-headers/endian.texi: New file.
44060         * doc/glibc-headers/envz.texi: New file.
44061         * doc/glibc-headers/err.texi: New file.
44062         * doc/glibc-headers/error.texi: New file.
44063         * doc/glibc-headers/execinfo.texi: New file.
44064         * doc/glibc-headers/fpu_control.texi: New file.
44065         * doc/glibc-headers/fstab.texi: New file.
44066         * doc/glibc-headers/fts.texi: New file.
44067         * doc/glibc-headers/getopt.texi: New file.
44068         * doc/glibc-headers/ieee754.texi: New file.
44069         * doc/glibc-headers/ifaddrs.texi: New file.
44070         * doc/glibc-headers/libintl.texi: New file.
44071         * doc/glibc-headers/mcheck.texi: New file.
44072         * doc/glibc-headers/mntent.texi: New file.
44073         * doc/glibc-headers/obstack.texi: New file.
44074         * doc/glibc-headers/paths.texi: New file.
44075         * doc/glibc-headers/printf.texi: New file.
44076         * doc/glibc-headers/pty.texi: New file.
44077         * doc/glibc-headers/resolv.texi: New file.
44078         * doc/glibc-headers/shadow.texi: New file.
44079         * doc/glibc-headers/sysexits.texi: New file.
44080         * doc/glibc-headers/ttyent.texi: New file.
44081
44082 2008-01-12  Jim Meyering  <meyering@redhat.com>
44083
44084         announce-gen: emit Gnulib's git-based version string.
44085         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
44086         New option --gnulib-version=V, where V is expected to be
44087         the output of running git describe in the gnulib directory.
44088         (get_tool_versions): Request feedback on xdelta.  I suspect it's
44089         not useful, and plan to stop publishing an xdelta file with each
44090         coreutils release.
44091
44092         * build-aux/announce-gen: Also check for lzma-compressed files.
44093
44094 2008-01-11  Bruno Haible  <bruno@clisp.org>
44095
44096         * tests/test-memmem.c (main): Increase maximum allowed time.
44097         * tests/test-strstr.c (main): Likewise.
44098
44099 2008-01-11  Bruno Haible  <bruno@clisp.org>
44100
44101         * doc/functions/memmem.texi: Add more precisions about platforms.
44102         * doc/functions/strstr.texi: Likewise.
44103
44104 2008-01-10  Eric Blake  <ebb9@byu.net>
44105
44106         * m4/strstr.m4: Delete cruft from copy-n-paste.
44107         Reported by Bruno Haible.
44108
44109 2008-01-10  Bruno Haible  <bruno@clisp.org>
44110
44111         Make c-strstr rely on strstr.
44112         * lib/c-strstr.c: Don't include str-kmp.h.
44113         (c_strstr): Define in terms of strstr.
44114         * modules/c-strstr (Files): Remove lib/str-kmp.h.
44115         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
44116
44117 2008-01-10  Bruno Haible  <bruno@clisp.org>
44118
44119         * doc/gnulib.texi (String Functions in C Locale): New section.
44120         * doc/c-ctype.texi: New file.
44121         * doc/c-strcase.texi: New file.
44122         * doc/c-strcaseeq.texi: New file.
44123         * doc/c-strcasestr.texi: New file.
44124         * doc/c-strstr.texi: New file.
44125         * doc/c-strtod.texi: New file.
44126         * doc/c-strtold.texi: New file.
44127
44128 2008-01-10  Eric Blake  <ebb9@byu.net>
44129
44130         * lib/relocatable.h: Fix a comment.
44131
44132 2008-01-10  Eric Blake  <ebb9@byu.net>
44133
44134         Share two-way algorithm.
44135         * lib/str-two-way.h: New file, merged from...
44136         * lib/memmem.c: ...here...
44137         * lib/strstr.c: ...and here.
44138         * modules/memmem (Files): Use it.
44139         * modules/strstr (Files): Likewise.
44140
44141         Avoid quadratic strstr implementations.
44142         * lib/strstr.c: New file.
44143         * m4/strstr.m4: Likewise.
44144         * modules/strstr: Likewise.
44145         * modules/strstr-tests: Likewise.
44146         * tests/test-strstr.c: Likewise.
44147         * lib/string.in.h (rpl_strstr): Declare.
44148         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
44149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
44150         * modules/string (Makefile.am): Likewise.
44151         * MODULES.html.sh (string handling): Mention new module.
44152         * doc/functions/strstr.texi (strstr): Document the bug.
44153
44154 2008-01-10  Bruno Haible  <bruno@clisp.org>
44155
44156         * lib/relocatable.h (relocate): State whether result is freshly
44157         allocated or not.
44158         * lib/relocatable.c (relocate): Return a freshly allocated string
44159         instead of a pointer to a privately held string.
44160         Reported by Sylvain Beucler <beuc@gnu.org>.
44161
44162 2008-01-10  Colin Watson  <cjwatson@debian.org>
44163
44164         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
44165         s/S_ISNLK/S_ISLNK/.
44166
44167 2008-01-09  Bruno Haible  <bruno@clisp.org>
44168
44169         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
44170         and other files.
44171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
44172         if it's only a guess.
44173         * modules/memmem: Simplify by depending on memmem-simple.
44174
44175 2008-01-09  Bruno Haible  <bruno@clisp.org>
44176
44177         Work around OpenBSD 4.0 tdelete() bug.
44178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
44179         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
44180         macros and don't redefine the enum values.
44181         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
44182         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
44183         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
44184
44185 2008-01-09  Bruno Haible  <bruno@clisp.org>
44186
44187         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
44188         (main): Don't perform the tests if setlocale did not install a UTF-8
44189         locale. Needed on OpenBSD 4.0.
44190         * modules/wcwidth-tests (Depends-on): Add localcharset.
44191
44192 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44193
44194         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
44195         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
44196         * NEWS: announce this.
44197         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
44198
44199 2008-01-09  Simon Josefsson  <simon@josefsson.org>
44200         and Eric Blake  <ebb9@byu.net>
44201
44202         Add memmem-simple module.
44203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
44204         (gl_FUNC_MEMMEM): Separate performance from presence checks.
44205         * modules/memmem-simple: New file.
44206         * modules/memmem (Description): Tweak.
44207         * MODULES.html.sh (string handling): Mention new module.
44208         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
44209         addressed by memmem-simple.
44210         * NEWS: Document the difference.
44211
44212 2008-01-09  Eric Blake  <ebb9@byu.net>
44213
44214         Give gcc some memmem optimization hints.
44215         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
44216         (strcasestr): Declare as pure.
44217         * modules/memmem (Maintainer): Claim my implementation.
44218
44219 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44220
44221         Support AIX 6.1 and higher.
44222         * build-aux/config.libpath: Likewise.
44223         * build-aux/config.rpath: Likewise.
44224
44225 2008-01-08  Jim Meyering  <meyering@redhat.com>
44226             Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
44229         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
44230         Reported by Peter Fales in
44231         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
44232
44233 2008-01-08  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/unictype/category-of (Depends-on): Add
44236         unictype/category-none.
44237         * modules/unictype/category-and-tests (Depends-on): Add
44238         unictype/category-{L,N,Lu,Nd}.
44239         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
44240         * modules/unictype/category-or-tests (Depends-on): Add
44241         unictype/category-{L,N}.
44242         * modules/unictype/category-name-tests (Depends-on): Add
44243         unictype/category-{Z,Nl}.
44244         Reported by Simon Josefsson.
44245
44246 2008-01-08  Bruno Haible  <bruno@clisp.org>
44247
44248         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
44249         convention better.
44250         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
44251         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
44252         Reported by Peter Miller <millerp@canb.auug.org.au>.
44253
44254 2008-01-08  Eric Blake  <ebb9@byu.net>
44255
44256         Rewrite memmem to guarantee linear complexity without malloc.
44257         * lib/memmem.c (memmem): Use Two-Way rather than
44258         Knuth-Morris-Pratt, to allow O(1) space usage.
44259         (critical_factorization, two_way_short_needle)
44260         (two_way_long_needle): New functions.
44261         (knuth_morris_pratt): Delete.
44262         * modules/memmem (Depends-on): No longer need malloca or stdbool.
44263         Add stdint.
44264         * tests/test-memmem.c (main): Add tests for periodic needle and
44265         sublinear performance.
44266         * doc/functions/memmem.texi (memmem): Document other deficiencies
44267         in cygwin and older glibc.
44268
44269 2008-01-08  Bruno Haible  <bruno@clisp.org>
44270
44271         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
44272         augmentation.
44273
44274 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
44275
44276         Add a configure time option: --disable-acl.
44277         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
44278         AC_ARG_ENABLE(acl).
44279
44280 2008-01-06  Simon Josefsson  <simon@josefsson.org>
44281
44282         * tests/test-localename.c: Don't include obsolete "setenv.h".
44283
44284         * modules/localename-tests (Depends-on): Need unsetenv.
44285
44286 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44287
44288         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
44289
44290 2008-01-06  Colin Watson  <cjwatson@debian.org>
44291
44292         * users.txt: Add man-db.
44293
44294 2008-01-07  Bruno Haible  <bruno@clisp.org>
44295
44296         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
44297         previous section name.
44298
44299 2008-01-07  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/progname.c (set_program_name): Don't strip off a leading
44302         "lt-" prefix outside a .libs directory.
44303         Suggested by Paul Eggert.
44304
44305 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
44306             Bruno Haible  <bruno@clisp.org>
44307
44308         Improve memory cleanup in 'relocatable' module.
44309         * lib/relocatable.h (compute_curr_prefix): Change return type to
44310         'char *'.
44311         * lib/relocatable.c (compute_curr_prefix): Change return type to
44312         'char *'. Free curr_installdir after use.
44313         (relocate): Free curr_prefix_better after use.
44314         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
44315
44316 2008-01-01  Bruno Haible  <bruno@clisp.org>
44317
44318         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
44319         failure on older glibc systems.
44320         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44321
44322 2008-01-05  Eric Blake  <ebb9@byu.net>
44323
44324         Avoid quadratic system memmem.
44325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
44326         Reported by Ralf Wildenhues.
44327
44328         Fix memmem test for mingw.
44329         * modules/memmem-tests (configure.ac): Check for alarm.
44330         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44331         it.
44332         * doc/functions/memmem.texi: New file.
44333         * doc/gnulib.texi (Function Substitutes): Add memmem.
44334         Reported by Bruno Haible.
44335
44336 2008-01-04  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44339         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44340         gl_HEADER_STRING_H_DEFAULTS.
44341
44342 2008-01-04  Eric Blake  <ebb9@byu.net>
44343
44344         Shorten duration of memmem test.
44345         * tests/test-memmem.c (main): Use alarm to declare failure if test
44346         is taking too long.
44347         Reported by Ralf Wildenhues.
44348
44349 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44350
44351         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44352         string, needed by strerror.
44353
44354 2008-01-03  Colin Watson  <cjwatson@debian.org>
44355             Bruno Haible  <bruno@clisp.org>
44356
44357         * doc/gnulib-tool.texi (Localization): New section.
44358
44359 2008-01-02  Bruno Haible  <bruno@clisp.org>
44360
44361         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44362         variables to 'unsigned char *' type.
44363         Reported by Paul Eggert.
44364
44365 2008-01-02  Jim Meyering  <jim@meyering.net>
44366
44367         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44368
44369 2007-12-31  Jim Meyering  <jim@meyering.net>
44370
44371         Avoid use of private FTS type name.
44372         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44373
44374 2007-12-30  Karl Berry  <karl@gnu.org>
44375
44376         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44377         work around defect in Texinfo and/or the standalone Info browser.
44378
44379 2007-12-30  Bruno Haible  <bruno@clisp.org>
44380
44381         Unify 5 copies of the KMP code.
44382         * lib/str-kmp.h: New file.
44383         * lib/c-strcasestr.c: Include str-kmp.h.
44384         (knuth_morris_pratt): Remove function.
44385         (c_strcasestr): Update.
44386         * lib/c-strstr.c: Include str-kmp.h.
44387         (knuth_morris_pratt): Remove function.
44388         (c_strcasestr): Update.
44389         * lib/mbscasestr.c: Include str-kmp.h.
44390         (knuth_morris_pratt_unibyte): Remove function.
44391         * lib/mbsstr.c: Include str-kmp.h.
44392         (knuth_morris_pratt_unibyte): Remove function.
44393         * lib/strcasestr.c: Include str-kmp.h.
44394         (knuth_morris_pratt): Remove function.
44395         (strcasestr): Update.
44396         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44397         * modules/c-strstr (Files): Likewise.
44398         * modules/mbscasestr (Files): Likewise.
44399         * modules/mbsstr (Files): Likewise.
44400         * modules/strcasestr (Files): Likewise.
44401         Suggested by Paul Eggert.
44402
44403 2007-12-30  Bruno Haible  <bruno@clisp.org>
44404
44405         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44406         defined.
44407
44408 2007-12-30  Bruno Haible  <bruno@clisp.org>
44409
44410         * lib/xmalloca.h: Include xalloc.h.
44411         (xnmalloca): New macro.
44412
44413 2007-12-30  Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/malloca.h (nmalloca): New macro.
44416         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44417         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44418         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44419         knuth_morris_pratt_multibyte): Likewise.
44420         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44421         knuth_morris_pratt_multibyte): Likewise.
44422         * lib/memmem.c (knuth_morris_pratt): Likewise.
44423         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44424
44425 2007-12-25  Bruno Haible  <bruno@clisp.org>
44426
44427         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44428         * lib/glob.c: Don't include openat.h.
44429         (link_exists2_p): Add back the code that deals with the
44430         !GLOB_ALTDIRFUNC case.
44431         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44432         let it do the filename concatenation.
44433         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44434         * modules/glob (Depends-on): Remove openat.
44435
44436 2007-12-31  Bruno Haible  <bruno@clisp.org>
44437
44438         * modules/dirfd (License): Change to LGPLv2+.
44439         Approved by Jim Meyering.
44440
44441 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44442
44443         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44444         when multiplying M by sizeof (size_t).
44445
44446 2007-12-10  Martin Lambers  <marlam@marlam.de>
44447
44448         Override getpagesize on mingw.
44449         * lib/getpagesize.c: New file.
44450         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44451         * modules/getpagesize (Files): Add lib/getpagesize.c.
44452         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44454         REPLACE_GETPAGESIZE.
44455         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44456
44457 2007-12-25  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/localcharset (Notice): New field.
44460         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44461         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44462
44463 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44464             Bruno Haible  <bruno@clisp.org>
44465
44466         Avoid using the syntax symbol() in formatted documentation.
44467         * MODULES.html.sh (func_module): When replacing symbol() with a
44468         hyperlink, remove the parentheses. Show an error if some remain.
44469         Recognize and render the '...' syntax.
44470         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44471         Rework. Add paragraph about GCC's inlining.
44472         * doc/alloca.texi: Likewise.
44473         * doc/error.texi: Remove parentheses from symbol reference.
44474         * doc/gnulib-intro.texi: Likewise.
44475         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44476         * modules/fnmatch (Description): Reword to say "the ... function".
44477         * modules/full-read (Description): Likewise.
44478         * modules/full-write (Description): Likewise.
44479         * modules/safe-read (Description): Likewise.
44480         * modules/safe-write (Description): Likewise.
44481         * modules/strchrnul (Description): Likewise.
44482         * modules/trim (Description): Likewise.
44483         * modules/error (Description): Remove parentheses from symbol
44484         references.
44485         * modules/verror (Description): Likewise.
44486         Reported by Karl Berry.
44487
44488 2007-12-25  Bruno Haible  <bruno@clisp.org>
44489
44490         Fixup after 2007-10-16 commit.
44491         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44492
44493 2007-12-24  Bruno Haible  <bruno@clisp.org>
44494
44495         Make --enable-relocatable work with DESTDIR.
44496         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44497         to compute installdir from destprog.
44498         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44499         also set the RELOC_DESTDIR variable.
44500         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44501
44502 2007-12-24  Bruno Haible  <bruno@clisp.org>
44503
44504         Fix link error due to xalloc_die().
44505         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44506         of xreadlink.
44507         * lib/relocwrapper.c: Update comments.
44508         * build-aux/install-reloc: Remove xreadlink.c from file list.
44509         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44510         xreadlink.c.
44511         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44512
44513 2007-12-24  Bruno Haible  <bruno@clisp.org>
44514
44515         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44516         * lib/setenv.h: Remove file.
44517         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44518         lib/setenv.h.
44519         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44520         (Depends-on): Add stdlib.
44521         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44522         gl_FUNC_UNSETENV.
44523         (Include): Replace setenv.h with <stdlib.h>.
44524         * modules/unsetenv: New file.
44525         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44526         * lib/unsetenv.c: Include <stdlib.h> first.
44527         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44528         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44529         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44530         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44531         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44532         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44534         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44535         * doc/functions/unsetenv.texi: Update.
44536         * modules/xsetenv (Depends-on): Add unsetenv.
44537         * modules/getdate (Depends-on): Likewise.
44538         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44539         * lib/xsetenv.c: Don't include setenv.h.
44540         * lib/getdate.y: Likewise.
44541         * lib/relocwrapper.c: Likewise.
44542         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44543         (Depends-on): Add stdlib.
44544         * NEWS: Mention the changes.
44545         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44546
44547 2007-12-23  Bruno Haible  <bruno@clisp.org>
44548
44549         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44550         indentation.
44551
44552 2007-12-23  Bruno Haible  <bruno@clisp.org>
44553
44554         * lib/c-strcasestr.c: Add more comments.
44555         * lib/c-strstr.c: Likewise.
44556         * lib/mbscasestr.c: Likewise.
44557         * lib/mbsstr.c: Likewise.
44558         * lib/strcasestr.c: Likewise.
44559         * lib/memmem.c: Likewise.
44560
44561 2007-12-23  Bruno Haible  <bruno@clisp.org>
44562
44563         * tests/test-memmem.c: Include <string.h> first.
44564
44565 2007-12-22  Bruno Haible  <bruno@clisp.org>
44566
44567         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44568         the contents of $testsbase.
44569         Reported by Ralf Wildenhues.
44570
44571 2007-12-22  Bruno Haible  <bruno@clisp.org>
44572
44573         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44574         two variables local_ldadd_before, local_ldadd_last.
44575
44576 2007-12-20  Eric Blake  <ebb9@byu.net>
44577
44578         Work around circular library issue when cross-compiling.
44579         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44580         that progname.o does not need to pull in rpl_memcmp.
44581
44582 2007-12-19  Eric Blake  <ebb9@byu.net>
44583
44584         Fix memmem to avoid O(n^2) worst-case complexity.
44585         * lib/memmem.c (knuth_morris_pratt): New function.
44586         (memmem): Use it if first few naive iterations fail.
44587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44588         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44589         * modules/memchr (License): Likewise.
44590         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44591         malloca.
44592         * tests/test-memmem.c: Rewrite, borrowing ideas from
44593         test-mbsstr1.c; the old version wouldn't even compile!
44594         * modules/memmem-tests: New file.
44595         * lib/string.in.h (rpl_memmem): Add declaration.
44596         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44598         REPLACE_MEMMEM.
44599
44600 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44601
44602         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44603         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44604         before any system include files, and undef after them all.  This
44605         should fix a problem on VMS reported by John E. Malmberg in
44606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44607
44608 2007-12-17  Eric Blake  <ebb9@byu.net>
44609
44610         Revert addition of verify, for BSD/OS.
44611         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44612         can't handle large files, for the sake of obsolete platforms.
44613         * modules/fseeko (Depends-on): Remove verify.
44614         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44615         * doc/functions/ftello.texi (ftello): Likewise.
44616         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44617         Reported by Larry Jones.
44618
44619 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44620
44621         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44622         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44623
44624 2007-12-17  Jim Meyering  <meyering@redhat.com>
44625
44626         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44627         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44628         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44629         * modules/getcwd (Depends-on): Add openat.
44630         Reported by Petr Salinger.
44631
44632 2007-12-17  Bruno Haible  <bruno@clisp.org>
44633
44634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44635         avoid a segmentation fault of the configure test on x86_64 systems.
44636
44637 2007-12-15  Jim Meyering  <meyering@redhat.com>
44638
44639         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44640
44641 2007-12-13  Eric Blake  <ebb9@byu.net>
44642
44643         Another fseek test.
44644         * tests/test-fseek.c (main): Also test ungetc handling.
44645         * tests/test-fseeko.c (main): Likewise.
44646         * modules/fseeko (Depends-on): Add verify.
44647         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44648         large.
44649         Reported by Larry Jones.
44650
44651         Fix fseeko on mingw.
44652         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44653         seek.
44654
44655         Beef up fseek tests.
44656         * tests/test-fseek.c (main): Also test eof handling.
44657         * tests/test-fseeko.c (main): Likewise.
44658         Reported by Larry Jones.
44659
44660 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44661
44662         Fix fseeko on BSD-based platforms.
44663         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44664         successful seek.
44665
44666 2007-12-12  Eric Blake  <ebb9@byu.net>
44667
44668         Allow circular dependency of separate libtests.a
44669         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44670         when use_libtests.
44671
44672 2007-12-11  Eric Blake  <ebb9@byu.net>
44673
44674         Fix bug with -0.0L in previous patch.
44675         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44676         * tests/test-isnan.c (main): Also test on zeroes.
44677         * tests/test-isnanf.c (main): Likewise.
44678         * tests/test-isnanl.h (main): Likewise.
44679
44680         Detect pseudo-denormals on x86 even when cross-compiling.
44681         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44682         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44683         invalid bit patterns that happen to satisfy ==.
44684
44685         Avoid link failures with separate libtests.a.
44686         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44687         last, to satisfy circular dependencies.
44688
44689 2007-12-11  Eric Blake  <ebb9@byu.net>
44690         and Bruno Haible  <bruno@clisp.org>
44691
44692         Fix OpenBSD 4.0 <float.h> handling of long double.
44693         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44694         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44695         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44696
44697 2007-12-11  Jim Meyering  <meyering@redhat.com>
44698
44699         * users.txt: Add libvirt.
44700
44701         Support versions of autoconf prior to 2.59c.
44702         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44703         if it is not already defined.
44704
44705 2007-12-09  Bruno Haible  <bruno@clisp.org>
44706
44707         Let 'gnulib-tool --import' collect sources needed for the tests in
44708         tests/ rather than in lib/.
44709         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44710         argument. If true, add rules to generate libtests.a, and put libtests.a
44711         into $(LDADD). Consider source files in subdirectories and set
44712         uses_subdirs.
44713         (func_emit_initmacro_start, func_emit_initmacro_end,
44714         func_emit_initmacro_done): Pass all arguments explicitly.
44715         (func_import): Determine two module lists main_modules,
44716         testsrelated_modules. Determine use_libtests. Determine two variables
44717         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44718         instead of just sed_transform_lib_file. Determine two variables
44719         main_files and testsrelated_files. Compute 'files' as the union of
44720         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44721         func_add_or_update. In the generated gnulib-comp.m4, collect the
44722         object files for tests/ in different variables than those for lib/.
44723         Substitute LIBTESTS_LIBDEPS.
44724         (func_create_testdir): Combine the uses_subdirs results from
44725         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44726
44727 2007-12-09  Bruno Haible  <bruno@clisp.org>
44728
44729         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44730         the build-aux directory.
44731
44732 2007-12-09  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44735         introduced on 2006-09-09.
44736
44737 2007-12-07  Jim Meyering  <meyering@redhat.com>
44738
44739         Let these macros work also with autoconf-2.59.
44740         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44741         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44743
44744 2007-12-06  Jim Meyering  <meyering@redhat.com>
44745
44746         Avoid a configure-time syntax error in gl_FUNC_ACL.
44747         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44748         function in each branch, before testing the cache variable.
44749
44750 2007-12-04  Eric Blake  <ebb9@byu.net>
44751
44752         Make scripts executable.
44753         * build-aux/config.guess: Add execute permissions.
44754         * build-aux/config.sub: Likewise.
44755         * build-aux/gendocs.sh: Likewise.
44756
44757         Fix frexp on mingw.
44758         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44759         cross-compiling.
44760         * doc/functions/frexp.texi (frexp): Document the bug.
44761
44762         Make cygwin fseeko check more reliable.
44763         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44764         version numbers, rather than unrelated feature check.
44765         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44766         * doc/functions/ftello.texi (ftello): Likewise.
44767         Reported by Bruno Haible.
44768
44769         * m4/strerror.m4: Bump version number.
44770
44771 2007-12-03  Bruno Haible  <bruno@clisp.org>
44772
44773         * doc/functions/mprotect.texi: Mention the mingw problem.
44774
44775 2007-12-03  Eric Blake  <ebb9@byu.net>
44776
44777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44778         REPLACE_STRERROR is initialized before this macro.
44779
44780 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44781
44782         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44783         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44784         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44785         put -lsec in even for programs other than 'ls'.  This fixes a problem
44786         for gettext reported by Bruno Haible in
44787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44788         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44789         Add support for Solaris 10.  This isn't efficient, but should get the
44790         job done for now.
44791
44792 2007-12-03  James Youngman  <jay@gnu.org>
44793
44794         * doc/regexprops-generic.texi: change "an close-group" to "a
44795         close-group" and "illegal" to "not allowed".
44796
44797 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44798
44799         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44800         pr_byname.h. Needed for the rare case when the maintainer has done
44801         "make maintainer-clean" in the source directory and then attempts a
44802         build outside the source directory.
44803         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44804         scripts_byname.h.
44805
44806 2007-12-02  Martin Lambers <marlam@marlam.de>
44807             Bruno Haible  <bruno@clisp.org>
44808
44809         * lib/getpagesize.h: Remove file.
44810         * lib/unistd.in.h: Include declaration of getpagesize here.
44811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44812         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44813         HAVE_SYS_PARAM_H.
44814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44815         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44816         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44817         (Depends-on): Add unistd.
44818         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44819         (Include): Use <unistd.h> instead of getpagesize.h.
44820         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44821         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44822         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44823         gl_GETPAGESIZE invocation, already handled by module dependency.
44824         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44825
44826 2007-12-02  Bruno Haible  <bruno@clisp.org>
44827
44828         * modules/strings-tests: New file.
44829         * tests/test-strings.c: New file.
44830
44831         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44832         * lib/strings.in.h: New file.
44833         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44834         * m4/strings_h.m4: New file.
44835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44836         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44837         * modules/strings: New file.
44838         * modules/string (Makefile.am): Update.
44839         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44840         Reported by Karl Berry.
44841
44842 2007-12-01  Eric Blake  <ebb9@byu.net>
44843
44844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44845         accomodate fix in cygwin 1.5.25.
44846
44847 2007-12-01  Jim Meyering  <meyering@redhat.com>
44848
44849         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44850         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44851         that would inhibit utf8-optimization of a regexp containing line-
44852         or buffer-anchors, e.g., `^', `$'.
44853
44854 2007-11-30  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44857         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44858         glthread_recursive_lock_init.
44859         * lib/lock.c (glthread_recursive_lock_init)
44860         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44862
44863 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44864
44865         New function qset_acl, like set_acl but with syscall semantics.
44866         * lib/acl.h (qset_acl): New decl.
44867         * lib/acl.c (qset_acl): New function.
44868         (set_acl): Use new function.  Use more-consistent diagnostics.
44869
44870 2007-11-28  Jim Meyering  <meyering@redhat.com>
44871
44872         * modules/physmem (License): Change from GPL to LGPLv2+.
44873
44874 2007-11-26  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44877         'long double' type has excess precision.
44878         Reported by Jim Meyering in
44879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44880
44881 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44882
44883         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44884         Sync from <http://gnu.org/licenses>.
44885         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44886         with license text from same location.
44887         * doc/maintain.texi, doc/standards.texi:  Sync from
44888         <http://savannah.gnu.org/projects/gnustandards>.
44889
44890 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44891         and Jim Meyering  <meyering@redhat.com>
44892
44893         Adjust getdate' grammar to accept a slightly more regular language.
44894         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44895         Before, the former was rejected.
44896         * lib/getdate.y (digits_to_date_time): New function, factored
44897         out of ...
44898         (number): ...here.  Just call digits_to_date_time.
44899         (hybrid): New non-terminal to handle an <unsigned number,
44900         signed relative offset> sequence consistently.
44901
44902 2007-11-18  Jim Meyering  <meyering@redhat.com>
44903
44904         Pull my changes from coreutils:
44905         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44906         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44907         use of $gnulib_tool_option_extras, so that it's separated from the
44908         preceding argument.
44909
44910         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44911         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44912         parent destination directories before copying a file into place.
44913
44914 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44915
44916         bootstrap: work also with 4-argument variant of AC_INIT
44917         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44918
44919 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44920
44921         Port test-getaddrinfo to Solaris.
44922         Problem reported by Bruno Haible in
44923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44924         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44925         explanation of setting 'hints'.
44926         Don't reject an implementation merely because it returns EAI_SERVICE.
44927         (EAI_SERVICE): Define to 0 if not defined.
44928
44929 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44930
44931         The license of gnu-make and posix-shell is now "GPLed build tool".
44932         * modules/gnu-make (License): Likewise.
44933         * modules/posix-shell (License): Likewise.
44934
44935         New module posix-shell, for determining a POSIX shell
44936         or perhaps something that is close enough to a POSIX shell.
44937         * m4/posix-shell.m4: New file.
44938         * modules/posix-shell: New file.
44939
44940         * MODULES.html.sh: Mention new module.
44941
44942         New module gnu-make, for determining whether we're using GNU Make.
44943         * m4/gnu-make.m4: New file.
44944         * modules/gnu-make: New file.
44945         * MODULES.html.sh: Mention new module.
44946
44947 2007-11-14  Jim Meyering  <meyering@redhat.com>
44948
44949         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44950         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44951         use this macro to create a function _definition_.
44952         Remove useless "#undef ARGMATCH_DIE".
44953
44954 2007-11-14  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/config.charset: Update for OpenBSD 4.1.
44957         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44958
44959 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44960
44961         Document 64-bit #if problems in stdint.texi.
44962         * doc/headers/stdint.texi (stdint.h): Mention problems with
44963         64-bit-#if, and how to work around them.
44964
44965         Don't insist on 'long long int' support in the preprocessor.  It
44966         breaks too many things.  For example, PRIdMAX still uses a 'long
44967         long int' format with the latest Sun compiler, even though
44968         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44969         preprocessor problem.  This causes the latest coreutils to dump
44970         core on Solaris 10 sparc with the Sun C compiler.
44971         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44972         the troublesome expressions at configure-time, not at #if-time.
44973         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44974         preprocessor.
44975         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44976         compile-time C checks, done at 'configure'-time.
44977         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44978         * modules/inttypes (Makefile): Substitute the new symbols that
44979         gl_INTTYPES_H now generates.
44980         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44981
44982 2007-11-12  Bruno Haible  <bruno@clisp.org>
44983
44984         Tests for Unicode character classification functions.
44985
44986         * modules/unictype/bidicategory-byname-tests: New file.
44987         * modules/unictype/bidicategory-name-tests: New file.
44988         * modules/unictype/bidicategory-of-tests: New file.
44989         * modules/unictype/bidicategory-test-tests: New file.
44990         * modules/unictype/block-list-tests: New file.
44991         * modules/unictype/block-of-tests: New file.
44992         * modules/unictype/block-test-tests: New file.
44993         * modules/unictype/category-C-tests: New file.
44994         * modules/unictype/category-Cc-tests: New file.
44995         * modules/unictype/category-Cf-tests: New file.
44996         * modules/unictype/category-Cn-tests: New file.
44997         * modules/unictype/category-Co-tests: New file.
44998         * modules/unictype/category-Cs-tests: New file.
44999         * modules/unictype/category-L-tests: New file.
45000         * modules/unictype/category-Ll-tests: New file.
45001         * modules/unictype/category-Lm-tests: New file.
45002         * modules/unictype/category-Lo-tests: New file.
45003         * modules/unictype/category-Lt-tests: New file.
45004         * modules/unictype/category-Lu-tests: New file.
45005         * modules/unictype/category-M-tests: New file.
45006         * modules/unictype/category-Mc-tests: New file.
45007         * modules/unictype/category-Me-tests: New file.
45008         * modules/unictype/category-Mn-tests: New file.
45009         * modules/unictype/category-N-tests: New file.
45010         * modules/unictype/category-Nd-tests: New file.
45011         * modules/unictype/category-Nl-tests: New file.
45012         * modules/unictype/category-No-tests: New file.
45013         * modules/unictype/category-P-tests: New file.
45014         * modules/unictype/category-Pc-tests: New file.
45015         * modules/unictype/category-Pd-tests: New file.
45016         * modules/unictype/category-Pe-tests: New file.
45017         * modules/unictype/category-Pf-tests: New file.
45018         * modules/unictype/category-Pi-tests: New file.
45019         * modules/unictype/category-Po-tests: New file.
45020         * modules/unictype/category-Ps-tests: New file.
45021         * modules/unictype/category-S-tests: New file.
45022         * modules/unictype/category-Sc-tests: New file.
45023         * modules/unictype/category-Sk-tests: New file.
45024         * modules/unictype/category-Sm-tests: New file.
45025         * modules/unictype/category-So-tests: New file.
45026         * modules/unictype/category-Z-tests: New file.
45027         * modules/unictype/category-Zl-tests: New file.
45028         * modules/unictype/category-Zp-tests: New file.
45029         * modules/unictype/category-Zs-tests: New file.
45030         * modules/unictype/category-and-not-tests: New file.
45031         * modules/unictype/category-and-tests: New file.
45032         * modules/unictype/category-byname-tests: New file.
45033         * modules/unictype/category-name-tests: New file.
45034         * modules/unictype/category-none-tests: New file.
45035         * modules/unictype/category-of-tests: New file.
45036         * modules/unictype/category-or-tests: New file.
45037         * modules/unictype/category-test-withtable-tests: New file.
45038         * modules/unictype/combining-class-tests: New file.
45039         * modules/unictype/ctype-alnum-tests: New file.
45040         * modules/unictype/ctype-alpha-tests: New file.
45041         * modules/unictype/ctype-blank-tests: New file.
45042         * modules/unictype/ctype-cntrl-tests: New file.
45043         * modules/unictype/ctype-digit-tests: New file.
45044         * modules/unictype/ctype-graph-tests: New file.
45045         * modules/unictype/ctype-lower-tests: New file.
45046         * modules/unictype/ctype-print-tests: New file.
45047         * modules/unictype/ctype-punct-tests: New file.
45048         * modules/unictype/ctype-space-tests: New file.
45049         * modules/unictype/ctype-upper-tests: New file.
45050         * modules/unictype/ctype-xdigit-tests: New file.
45051         * modules/unictype/decimal-digit-tests: New file.
45052         * modules/unictype/digit-tests: New file.
45053         * modules/unictype/mirror-tests: New file.
45054         * modules/unictype/numeric-tests: New file.
45055         * modules/unictype/property-alphabetic-tests: New file.
45056         * modules/unictype/property-ascii-hex-digit-tests: New file.
45057         * modules/unictype/property-bidi-arabic-digit-tests: New file.
45058         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
45059         * modules/unictype/property-bidi-block-separator-tests: New file.
45060         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
45061         * modules/unictype/property-bidi-common-separator-tests: New file.
45062         * modules/unictype/property-bidi-control-tests: New file.
45063         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
45064         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
45065         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
45066         * modules/unictype/property-bidi-european-digit-tests: New file.
45067         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
45068         * modules/unictype/property-bidi-left-to-right-tests: New file.
45069         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
45070         * modules/unictype/property-bidi-other-neutral-tests: New file.
45071         * modules/unictype/property-bidi-pdf-tests: New file.
45072         * modules/unictype/property-bidi-segment-separator-tests: New file.
45073         * modules/unictype/property-bidi-whitespace-tests: New file.
45074         * modules/unictype/property-byname-tests: New file.
45075         * modules/unictype/property-combining-tests: New file.
45076         * modules/unictype/property-composite-tests: New file.
45077         * modules/unictype/property-currency-symbol-tests: New file.
45078         * modules/unictype/property-dash-tests: New file.
45079         * modules/unictype/property-decimal-digit-tests: New file.
45080         * modules/unictype/property-default-ignorable-code-point-tests: New file.
45081         * modules/unictype/property-deprecated-tests: New file.
45082         * modules/unictype/property-diacritic-tests: New file.
45083         * modules/unictype/property-extender-tests: New file.
45084         * modules/unictype/property-format-control-tests: New file.
45085         * modules/unictype/property-grapheme-base-tests: New file.
45086         * modules/unictype/property-grapheme-extend-tests: New file.
45087         * modules/unictype/property-grapheme-link-tests: New file.
45088         * modules/unictype/property-hex-digit-tests: New file.
45089         * modules/unictype/property-hyphen-tests: New file.
45090         * modules/unictype/property-id-continue-tests: New file.
45091         * modules/unictype/property-id-start-tests: New file.
45092         * modules/unictype/property-ideographic-tests: New file.
45093         * modules/unictype/property-ids-binary-operator-tests: New file.
45094         * modules/unictype/property-ids-trinary-operator-tests: New file.
45095         * modules/unictype/property-ignorable-control-tests: New file.
45096         * modules/unictype/property-iso-control-tests: New file.
45097         * modules/unictype/property-join-control-tests: New file.
45098         * modules/unictype/property-left-of-pair-tests: New file.
45099         * modules/unictype/property-line-separator-tests: New file.
45100         * modules/unictype/property-logical-order-exception-tests: New file.
45101         * modules/unictype/property-lowercase-tests: New file.
45102         * modules/unictype/property-math-tests: New file.
45103         * modules/unictype/property-non-break-tests: New file.
45104         * modules/unictype/property-not-a-character-tests: New file.
45105         * modules/unictype/property-numeric-tests: New file.
45106         * modules/unictype/property-other-alphabetic-tests: New file.
45107         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
45108         * modules/unictype/property-other-grapheme-extend-tests: New file.
45109         * modules/unictype/property-other-id-continue-tests: New file.
45110         * modules/unictype/property-other-id-start-tests: New file.
45111         * modules/unictype/property-other-lowercase-tests: New file.
45112         * modules/unictype/property-other-math-tests: New file.
45113         * modules/unictype/property-other-uppercase-tests: New file.
45114         * modules/unictype/property-paired-punctuation-tests: New file.
45115         * modules/unictype/property-paragraph-separator-tests: New file.
45116         * modules/unictype/property-pattern-syntax-tests: New file.
45117         * modules/unictype/property-pattern-white-space-tests: New file.
45118         * modules/unictype/property-private-use-tests: New file.
45119         * modules/unictype/property-punctuation-tests: New file.
45120         * modules/unictype/property-quotation-mark-tests: New file.
45121         * modules/unictype/property-radical-tests: New file.
45122         * modules/unictype/property-sentence-terminal-tests: New file.
45123         * modules/unictype/property-soft-dotted-tests: New file.
45124         * modules/unictype/property-space-tests: New file.
45125         * modules/unictype/property-terminal-punctuation-tests: New file.
45126         * modules/unictype/property-test-tests: New file.
45127         * modules/unictype/property-titlecase-tests: New file.
45128         * modules/unictype/property-unassigned-code-value-tests: New file.
45129         * modules/unictype/property-unified-ideograph-tests: New file.
45130         * modules/unictype/property-uppercase-tests: New file.
45131         * modules/unictype/property-variation-selector-tests: New file.
45132         * modules/unictype/property-white-space-tests: New file.
45133         * modules/unictype/property-xid-continue-tests: New file.
45134         * modules/unictype/property-xid-start-tests: New file.
45135         * modules/unictype/property-zero-width-tests: New file.
45136         * modules/unictype/scripts-tests: New file.
45137         * modules/unictype/syntax-c-ident-tests: New file.
45138         * modules/unictype/syntax-c-whitespace-tests: New file.
45139         * modules/unictype/syntax-java-ident-tests: New file.
45140         * modules/unictype/syntax-java-whitespace-tests: New file.
45141         * tests/unictype/test-bidi_byname.c: New file.
45142         * tests/unictype/test-bidi_name.c: New file.
45143         * tests/unictype/test-bidi_of.c: New file.
45144         * tests/unictype/test-bidi_test.c: New file.
45145         * tests/unictype/test-block_list.c: New file.
45146         * tests/unictype/test-block_of.c: New file.
45147         * tests/unictype/test-block_test.c: New file.
45148         * tests/unictype/test-categ_and.c: New file.
45149         * tests/unictype/test-categ_and_not.c: New file.
45150         * tests/unictype/test-categ_byname.c: New file.
45151         * tests/unictype/test-categ_name.c: New file.
45152         * tests/unictype/test-categ_none.c: New file.
45153         * tests/unictype/test-categ_of.c: New file.
45154         * tests/unictype/test-categ_or.c: New file.
45155         * tests/unictype/test-categ_test_withtable.c: New file.
45156         * tests/unictype/test-combining.c: New file.
45157         * tests/unictype/test-decdigit.c: New file.
45158         * tests/unictype/test-digit.c: New file.
45159         * tests/unictype/test-mirror.c: New file.
45160         * tests/unictype/test-numeric.c: New file.
45161         * tests/unictype/test-pr_byname.c: New file.
45162         * tests/unictype/test-pr_test.c: New file.
45163         * tests/unictype/test-predicate-part1.h: New file.
45164         * tests/unictype/test-predicate-part2.h: New file.
45165         * tests/unictype/test-scripts.c: New file.
45166         * tests/unictype/test-sy_c_ident.c: New file.
45167         * tests/unictype/test-sy_java_ident.c: New file.
45168
45169         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
45170         for Unicode 5.0.0.
45171         * tests/unictype/test-categ_Cc.c: Likewise.
45172         * tests/unictype/test-categ_Cf.c: Likewise.
45173         * tests/unictype/test-categ_Cn.c: Likewise.
45174         * tests/unictype/test-categ_Co.c: Likewise.
45175         * tests/unictype/test-categ_Cs.c: Likewise.
45176         * tests/unictype/test-categ_L.c: Likewise.
45177         * tests/unictype/test-categ_Ll.c: Likewise.
45178         * tests/unictype/test-categ_Lm.c: Likewise.
45179         * tests/unictype/test-categ_Lo.c: Likewise.
45180         * tests/unictype/test-categ_Lt.c: Likewise.
45181         * tests/unictype/test-categ_Lu.c: Likewise.
45182         * tests/unictype/test-categ_M.c: Likewise.
45183         * tests/unictype/test-categ_Mc.c: Likewise.
45184         * tests/unictype/test-categ_Me.c: Likewise.
45185         * tests/unictype/test-categ_Mn.c: Likewise.
45186         * tests/unictype/test-categ_N.c: Likewise.
45187         * tests/unictype/test-categ_Nd.c: Likewise.
45188         * tests/unictype/test-categ_Nl.c: Likewise.
45189         * tests/unictype/test-categ_No.c: Likewise.
45190         * tests/unictype/test-categ_P.c: Likewise.
45191         * tests/unictype/test-categ_Pc.c: Likewise.
45192         * tests/unictype/test-categ_Pd.c: Likewise.
45193         * tests/unictype/test-categ_Pe.c: Likewise.
45194         * tests/unictype/test-categ_Pf.c: Likewise.
45195         * tests/unictype/test-categ_Pi.c: Likewise.
45196         * tests/unictype/test-categ_Po.c: Likewise.
45197         * tests/unictype/test-categ_Ps.c: Likewise.
45198         * tests/unictype/test-categ_S.c: Likewise.
45199         * tests/unictype/test-categ_Sc.c: Likewise.
45200         * tests/unictype/test-categ_Sk.c: Likewise.
45201         * tests/unictype/test-categ_Sm.c: Likewise.
45202         * tests/unictype/test-categ_So.c: Likewise.
45203         * tests/unictype/test-categ_Z.c: Likewise.
45204         * tests/unictype/test-categ_Zl.c: Likewise.
45205         * tests/unictype/test-categ_Zp.c: Likewise.
45206         * tests/unictype/test-categ_Zs.c: Likewise.
45207         * tests/unictype/test-ctype_alnum.c: Likewise.
45208         * tests/unictype/test-ctype_alpha.c: Likewise.
45209         * tests/unictype/test-ctype_blank.c: Likewise.
45210         * tests/unictype/test-ctype_cntrl.c: Likewise.
45211         * tests/unictype/test-ctype_digit.c: Likewise.
45212         * tests/unictype/test-ctype_graph.c: Likewise.
45213         * tests/unictype/test-ctype_lower.c: Likewise.
45214         * tests/unictype/test-ctype_print.c: Likewise.
45215         * tests/unictype/test-ctype_punct.c: Likewise.
45216         * tests/unictype/test-ctype_space.c: Likewise.
45217         * tests/unictype/test-ctype_upper.c: Likewise.
45218         * tests/unictype/test-ctype_xdigit.c: Likewise.
45219         * tests/unictype/test-decdigit.h: Likewise.
45220         * tests/unictype/test-digit.h: Likewise.
45221         * tests/unictype/test-numeric.h: Likewise.
45222         * tests/unictype/test-pr_alphabetic.c: Likewise.
45223         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
45224         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45225         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45226         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
45227         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45228         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
45229         * tests/unictype/test-pr_bidi_control.c: Likewise.
45230         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
45231         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
45232         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45233         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45234         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45235         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45236         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45237         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45238         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
45239         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
45240         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
45241         * tests/unictype/test-pr_combining.c: Likewise.
45242         * tests/unictype/test-pr_composite.c: Likewise.
45243         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45244         * tests/unictype/test-pr_dash.c: Likewise.
45245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45246         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
45247         * tests/unictype/test-pr_deprecated.c: Likewise.
45248         * tests/unictype/test-pr_diacritic.c: Likewise.
45249         * tests/unictype/test-pr_extender.c: Likewise.
45250         * tests/unictype/test-pr_format_control.c: Likewise.
45251         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45252         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45253         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45254         * tests/unictype/test-pr_hex_digit.c: Likewise.
45255         * tests/unictype/test-pr_hyphen.c: Likewise.
45256         * tests/unictype/test-pr_id_continue.c: Likewise.
45257         * tests/unictype/test-pr_id_start.c: Likewise.
45258         * tests/unictype/test-pr_ideographic.c: Likewise.
45259         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
45260         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
45261         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45262         * tests/unictype/test-pr_iso_control.c: Likewise.
45263         * tests/unictype/test-pr_join_control.c: Likewise.
45264         * tests/unictype/test-pr_left_of_pair.c: Likewise.
45265         * tests/unictype/test-pr_line_separator.c: Likewise.
45266         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45267         * tests/unictype/test-pr_lowercase.c: Likewise.
45268         * tests/unictype/test-pr_math.c: Likewise.
45269         * tests/unictype/test-pr_non_break.c: Likewise.
45270         * tests/unictype/test-pr_not_a_character.c: Likewise.
45271         * tests/unictype/test-pr_numeric.c: Likewise.
45272         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45273         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
45274         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
45275         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45276         * tests/unictype/test-pr_other_id_start.c: Likewise.
45277         * tests/unictype/test-pr_other_lowercase.c: Likewise.
45278         * tests/unictype/test-pr_other_math.c: Likewise.
45279         * tests/unictype/test-pr_other_uppercase.c: Likewise.
45280         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
45281         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
45282         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
45283         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
45284         * tests/unictype/test-pr_private_use.c: Likewise.
45285         * tests/unictype/test-pr_punctuation.c: Likewise.
45286         * tests/unictype/test-pr_quotation_mark.c: Likewise.
45287         * tests/unictype/test-pr_radical.c: Likewise.
45288         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45289         * tests/unictype/test-pr_soft_dotted.c: Likewise.
45290         * tests/unictype/test-pr_space.c: Likewise.
45291         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45292         * tests/unictype/test-pr_titlecase.c: Likewise.
45293         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45294         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45295         * tests/unictype/test-pr_uppercase.c: Likewise.
45296         * tests/unictype/test-pr_variation_selector.c: Likewise.
45297         * tests/unictype/test-pr_white_space.c: Likewise.
45298         * tests/unictype/test-pr_xid_continue.c: Likewise.
45299         * tests/unictype/test-pr_xid_start.c: Likewise.
45300         * tests/unictype/test-pr_zero_width.c: Likewise.
45301         * tests/unictype/test-sy_c_whitespace.c: Likewise.
45302         * tests/unictype/test-sy_java_whitespace.c: Likewise.
45303
45304 2007-11-12  Bruno Haible  <bruno@clisp.org>
45305
45306         Unicode character classification functions.
45307         * lib/unictype.h: New file.
45308         * modules/unictype/base: New file.
45309         * modules/unictype/category-L: New file.
45310         * modules/unictype/category-Lu: New file.
45311         * modules/unictype/category-Ll: New file.
45312         * modules/unictype/category-Lt: New file.
45313         * modules/unictype/category-Lm: New file.
45314         * modules/unictype/category-Lo: New file.
45315         * modules/unictype/category-M: New file.
45316         * modules/unictype/category-Mn: New file.
45317         * modules/unictype/category-Mc: New file.
45318         * modules/unictype/category-Me: New file.
45319         * modules/unictype/category-N: New file.
45320         * modules/unictype/category-Nd: New file.
45321         * modules/unictype/category-Nl: New file.
45322         * modules/unictype/category-No: New file.
45323         * modules/unictype/category-P: New file.
45324         * modules/unictype/category-Pc: New file.
45325         * modules/unictype/category-Pd: New file.
45326         * modules/unictype/category-Ps: New file.
45327         * modules/unictype/category-Pe: New file.
45328         * modules/unictype/category-Pi: New file.
45329         * modules/unictype/category-Pf: New file.
45330         * modules/unictype/category-Po: New file.
45331         * modules/unictype/category-S: New file.
45332         * modules/unictype/category-Sm: New file.
45333         * modules/unictype/category-Sc: New file.
45334         * modules/unictype/category-Sk: New file.
45335         * modules/unictype/category-So: New file.
45336         * modules/unictype/category-Z: New file.
45337         * modules/unictype/category-Zs: New file.
45338         * modules/unictype/category-Zl: New file.
45339         * modules/unictype/category-Zp: New file.
45340         * modules/unictype/category-C: New file.
45341         * modules/unictype/category-Cc: New file.
45342         * modules/unictype/category-Cf: New file.
45343         * modules/unictype/category-Cs: New file.
45344         * modules/unictype/category-Co: New file.
45345         * modules/unictype/category-Cn: New file.
45346         * modules/unictype/category-or: New file.
45347         * modules/unictype/category-of: New file.
45348         * modules/unictype/category-test: New file.
45349         * modules/unictype/category-test-withtable: New file.
45350         * modules/unictype/category-byname: New file.
45351         * modules/unictype/category-none: New file.
45352         * modules/unictype/category-and: New file.
45353         * modules/unictype/category-and-not: New file.
45354         * modules/unictype/category-name: New file.
45355         * modules/unictype/combining-class: New file.
45356         * modules/unictype/category-all: New file.
45357         * modules/unictype/bidicategory-all: New file.
45358         * modules/unictype/bidicategory-byname: New file.
45359         * modules/unictype/bidicategory-name: New file.
45360         * modules/unictype/bidicategory-of: New file.
45361         * modules/unictype/bidicategory-test: New file.
45362         * modules/unictype/decimal-digit: New file.
45363         * modules/unictype/digit: New file.
45364         * modules/unictype/numeric: New file.
45365         * modules/unictype/mirror: New file.
45366         * modules/unictype/property-white-space: New file.
45367         * modules/unictype/property-alphabetic: New file.
45368         * modules/unictype/property-other-alphabetic: New file.
45369         * modules/unictype/property-not-a-character: New file.
45370         * modules/unictype/property-default-ignorable-code-point: New file.
45371         * modules/unictype/property-other-default-ignorable-code-point: New
45372         file.
45373         * modules/unictype/property-deprecated: New file.
45374         * modules/unictype/property-logical-order-exception: New file.
45375         * modules/unictype/property-variation-selector: New file.
45376         * modules/unictype/property-private-use: New file.
45377         * modules/unictype/property-unassigned-code-value: New file.
45378         * modules/unictype/property-uppercase: New file.
45379         * modules/unictype/property-other-uppercase: New file.
45380         * modules/unictype/property-lowercase: New file.
45381         * modules/unictype/property-other-lowercase: New file.
45382         * modules/unictype/property-titlecase: New file.
45383         * modules/unictype/property-soft-dotted: New file.
45384         * modules/unictype/property-id-start: New file.
45385         * modules/unictype/property-other-id-start: New file.
45386         * modules/unictype/property-id-continue: New file.
45387         * modules/unictype/property-other-id-continue: New file.
45388         * modules/unictype/property-xid-start: New file.
45389         * modules/unictype/property-xid-continue: New file.
45390         * modules/unictype/property-pattern-white-space: New file.
45391         * modules/unictype/property-pattern-syntax: New file.
45392         * modules/unictype/property-join-control: New file.
45393         * modules/unictype/property-grapheme-base: New file.
45394         * modules/unictype/property-grapheme-extend: New file.
45395         * modules/unictype/property-other-grapheme-extend: New file.
45396         * modules/unictype/property-grapheme-link: New file.
45397         * modules/unictype/property-bidi-control: New file.
45398         * modules/unictype/property-bidi-left-to-right: New file.
45399         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45400         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45401         * modules/unictype/property-bidi-european-digit: New file.
45402         * modules/unictype/property-bidi-eur-num-separator: New file.
45403         * modules/unictype/property-bidi-eur-num-terminator: New file.
45404         * modules/unictype/property-bidi-arabic-digit: New file.
45405         * modules/unictype/property-bidi-common-separator: New file.
45406         * modules/unictype/property-bidi-block-separator: New file.
45407         * modules/unictype/property-bidi-segment-separator: New file.
45408         * modules/unictype/property-bidi-whitespace: New file.
45409         * modules/unictype/property-bidi-non-spacing-mark: New file.
45410         * modules/unictype/property-bidi-boundary-neutral: New file.
45411         * modules/unictype/property-bidi-pdf: New file.
45412         * modules/unictype/property-bidi-embedding-or-override: New file.
45413         * modules/unictype/property-bidi-other-neutral: New file.
45414         * modules/unictype/property-hex-digit: New file.
45415         * modules/unictype/property-ascii-hex-digit: New file.
45416         * modules/unictype/property-ideographic: New file.
45417         * modules/unictype/property-unified-ideograph: New file.
45418         * modules/unictype/property-radical: New file.
45419         * modules/unictype/property-ids-binary-operator: New file.
45420         * modules/unictype/property-ids-trinary-operator: New file.
45421         * modules/unictype/property-zero-width: New file.
45422         * modules/unictype/property-space: New file.
45423         * modules/unictype/property-non-break: New file.
45424         * modules/unictype/property-iso-control: New file.
45425         * modules/unictype/property-format-control: New file.
45426         * modules/unictype/property-dash: New file.
45427         * modules/unictype/property-hyphen: New file.
45428         * modules/unictype/property-punctuation: New file.
45429         * modules/unictype/property-line-separator: New file.
45430         * modules/unictype/property-paragraph-separator: New file.
45431         * modules/unictype/property-quotation-mark: New file.
45432         * modules/unictype/property-sentence-terminal: New file.
45433         * modules/unictype/property-terminal-punctuation: New file.
45434         * modules/unictype/property-currency-symbol: New file.
45435         * modules/unictype/property-math: New file.
45436         * modules/unictype/property-other-math: New file.
45437         * modules/unictype/property-paired-punctuation: New file.
45438         * modules/unictype/property-left-of-pair: New file.
45439         * modules/unictype/property-combining: New file.
45440         * modules/unictype/property-composite: New file.
45441         * modules/unictype/property-decimal-digit: New file.
45442         * modules/unictype/property-numeric: New file.
45443         * modules/unictype/property-diacritic: New file.
45444         * modules/unictype/property-extender: New file.
45445         * modules/unictype/property-ignorable-control: New file.
45446         * modules/unictype/property-test: New file.
45447         * modules/unictype/property-byname: New file.
45448         * modules/unictype/property-all: New file.
45449         * modules/unictype/scripts: New file.
45450         * modules/unictype/scripts-all: New file.
45451         * modules/unictype/block-of: New file.
45452         * modules/unictype/block-test: New file.
45453         * modules/unictype/block-list: New file.
45454         * modules/unictype/block-all: New file.
45455         * modules/unictype/syntax-c-whitespace: New file.
45456         * modules/unictype/syntax-java-whitespace: New file.
45457         * modules/unictype/syntax-c-ident: New file.
45458         * modules/unictype/syntax-java-ident: New file.
45459         * modules/unictype/ctype-alnum: New file.
45460         * modules/unictype/ctype-alpha: New file.
45461         * modules/unictype/ctype-cntrl: New file.
45462         * modules/unictype/ctype-digit: New file.
45463         * modules/unictype/ctype-graph: New file.
45464         * modules/unictype/ctype-lower: New file.
45465         * modules/unictype/ctype-print: New file.
45466         * modules/unictype/ctype-punct: New file.
45467         * modules/unictype/ctype-space: New file.
45468         * modules/unictype/ctype-upper: New file.
45469         * modules/unictype/ctype-xdigit: New file.
45470         * modules/unictype/ctype-blank: New file.
45471         * lib/unictype/bidi_byname.c: New file.
45472         * lib/unictype/bidi_name.c: New file.
45473         * lib/unictype/bidi_of.c: New file.
45474         * lib/unictype/bidi_test.c: New file.
45475         * lib/unictype/bitmap.h: New file.
45476         * lib/unictype/block_test.c: New file.
45477         * lib/unictype/blocks.c: New file.
45478         * lib/unictype/categ_C.c: New file.
45479         * lib/unictype/categ_Cc.c: New file.
45480         * lib/unictype/categ_Cf.c: New file.
45481         * lib/unictype/categ_Cn.c: New file.
45482         * lib/unictype/categ_Co.c: New file.
45483         * lib/unictype/categ_Cs.c: New file.
45484         * lib/unictype/categ_L.c: New file.
45485         * lib/unictype/categ_Ll.c: New file.
45486         * lib/unictype/categ_Lm.c: New file.
45487         * lib/unictype/categ_Lo.c: New file.
45488         * lib/unictype/categ_Lt.c: New file.
45489         * lib/unictype/categ_Lu.c: New file.
45490         * lib/unictype/categ_M.c: New file.
45491         * lib/unictype/categ_Mc.c: New file.
45492         * lib/unictype/categ_Me.c: New file.
45493         * lib/unictype/categ_Mn.c: New file.
45494         * lib/unictype/categ_N.c: New file.
45495         * lib/unictype/categ_Nd.c: New file.
45496         * lib/unictype/categ_Nl.c: New file.
45497         * lib/unictype/categ_No.c: New file.
45498         * lib/unictype/categ_P.c: New file.
45499         * lib/unictype/categ_Pc.c: New file.
45500         * lib/unictype/categ_Pd.c: New file.
45501         * lib/unictype/categ_Pe.c: New file.
45502         * lib/unictype/categ_Pf.c: New file.
45503         * lib/unictype/categ_Pi.c: New file.
45504         * lib/unictype/categ_Po.c: New file.
45505         * lib/unictype/categ_Ps.c: New file.
45506         * lib/unictype/categ_S.c: New file.
45507         * lib/unictype/categ_Sc.c: New file.
45508         * lib/unictype/categ_Sk.c: New file.
45509         * lib/unictype/categ_Sm.c: New file.
45510         * lib/unictype/categ_So.c: New file.
45511         * lib/unictype/categ_Z.c: New file.
45512         * lib/unictype/categ_Zl.c: New file.
45513         * lib/unictype/categ_Zp.c: New file.
45514         * lib/unictype/categ_Zs.c: New file.
45515         * lib/unictype/categ_and.c: New file.
45516         * lib/unictype/categ_and_not.c: New file.
45517         * lib/unictype/categ_byname.c: New file.
45518         * lib/unictype/categ_name.c: New file.
45519         * lib/unictype/categ_none.c: New file.
45520         * lib/unictype/categ_of.c: New file.
45521         * lib/unictype/categ_or.c: New file.
45522         * lib/unictype/categ_test.c: New file.
45523         * lib/unictype/combining.c: New file.
45524         * lib/unictype/ctype_alnum.c: New file.
45525         * lib/unictype/ctype_alpha.c: New file.
45526         * lib/unictype/ctype_blank.c: New file.
45527         * lib/unictype/ctype_cntrl.c: New file.
45528         * lib/unictype/ctype_digit.c: New file.
45529         * lib/unictype/ctype_graph.c: New file.
45530         * lib/unictype/ctype_lower.c: New file.
45531         * lib/unictype/ctype_print.c: New file.
45532         * lib/unictype/ctype_punct.c: New file.
45533         * lib/unictype/ctype_space.c: New file.
45534         * lib/unictype/ctype_upper.c: New file.
45535         * lib/unictype/ctype_xdigit.c: New file.
45536         * lib/unictype/decdigit.c: New file.
45537         * lib/unictype/digit.c: New file.
45538         * lib/unictype/identsyntaxmap.h: New file.
45539         * lib/unictype/mirror.c: New file.
45540         * lib/unictype/numeric.c: New file.
45541         * lib/unictype/pr_alphabetic.c: New file.
45542         * lib/unictype/pr_ascii_hex_digit.c: New file.
45543         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45544         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45545         * lib/unictype/pr_bidi_block_separator.c: New file.
45546         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45547         * lib/unictype/pr_bidi_common_separator.c: New file.
45548         * lib/unictype/pr_bidi_control.c: New file.
45549         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45550         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45551         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45552         * lib/unictype/pr_bidi_european_digit.c: New file.
45553         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45554         * lib/unictype/pr_bidi_left_to_right.c: New file.
45555         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45556         * lib/unictype/pr_bidi_other_neutral.c: New file.
45557         * lib/unictype/pr_bidi_pdf.c: New file.
45558         * lib/unictype/pr_bidi_segment_separator.c: New file.
45559         * lib/unictype/pr_bidi_whitespace.c: New file.
45560         * lib/unictype/pr_byname.c: New file.
45561         * lib/unictype/pr_byname.gperf: New file.
45562         * lib/unictype/pr_combining.c: New file.
45563         * lib/unictype/pr_composite.c: New file.
45564         * lib/unictype/pr_currency_symbol.c: New file.
45565         * lib/unictype/pr_dash.c: New file.
45566         * lib/unictype/pr_decimal_digit.c: New file.
45567         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45568         * lib/unictype/pr_deprecated.c: New file.
45569         * lib/unictype/pr_diacritic.c: New file.
45570         * lib/unictype/pr_extender.c: New file.
45571         * lib/unictype/pr_format_control.c: New file.
45572         * lib/unictype/pr_grapheme_base.c: New file.
45573         * lib/unictype/pr_grapheme_extend.c: New file.
45574         * lib/unictype/pr_grapheme_link.c: New file.
45575         * lib/unictype/pr_hex_digit.c: New file.
45576         * lib/unictype/pr_hyphen.c: New file.
45577         * lib/unictype/pr_id_continue.c: New file.
45578         * lib/unictype/pr_id_start.c: New file.
45579         * lib/unictype/pr_ideographic.c: New file.
45580         * lib/unictype/pr_ids_binary_operator.c: New file.
45581         * lib/unictype/pr_ids_trinary_operator.c: New file.
45582         * lib/unictype/pr_ignorable_control.c: New file.
45583         * lib/unictype/pr_iso_control.c: New file.
45584         * lib/unictype/pr_join_control.c: New file.
45585         * lib/unictype/pr_left_of_pair.c: New file.
45586         * lib/unictype/pr_line_separator.c: New file.
45587         * lib/unictype/pr_logical_order_exception.c: New file.
45588         * lib/unictype/pr_lowercase.c: New file.
45589         * lib/unictype/pr_math.c: New file.
45590         * lib/unictype/pr_non_break.c: New file.
45591         * lib/unictype/pr_not_a_character.c: New file.
45592         * lib/unictype/pr_numeric.c: New file.
45593         * lib/unictype/pr_other_alphabetic.c: New file.
45594         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45595         * lib/unictype/pr_other_grapheme_extend.c: New file.
45596         * lib/unictype/pr_other_id_continue.c: New file.
45597         * lib/unictype/pr_other_id_start.c: New file.
45598         * lib/unictype/pr_other_lowercase.c: New file.
45599         * lib/unictype/pr_other_math.c: New file.
45600         * lib/unictype/pr_other_uppercase.c: New file.
45601         * lib/unictype/pr_paired_punctuation.c: New file.
45602         * lib/unictype/pr_paragraph_separator.c: New file.
45603         * lib/unictype/pr_pattern_syntax.c: New file.
45604         * lib/unictype/pr_pattern_white_space.c: New file.
45605         * lib/unictype/pr_private_use.c: New file.
45606         * lib/unictype/pr_punctuation.c: New file.
45607         * lib/unictype/pr_quotation_mark.c: New file.
45608         * lib/unictype/pr_radical.c: New file.
45609         * lib/unictype/pr_sentence_terminal.c: New file.
45610         * lib/unictype/pr_soft_dotted.c: New file.
45611         * lib/unictype/pr_space.c: New file.
45612         * lib/unictype/pr_terminal_punctuation.c: New file.
45613         * lib/unictype/pr_test.c: New file.
45614         * lib/unictype/pr_titlecase.c: New file.
45615         * lib/unictype/pr_unassigned_code_value.c: New file.
45616         * lib/unictype/pr_unified_ideograph.c: New file.
45617         * lib/unictype/pr_uppercase.c: New file.
45618         * lib/unictype/pr_variation_selector.c: New file.
45619         * lib/unictype/pr_white_space.c: New file.
45620         * lib/unictype/pr_xid_continue.c: New file.
45621         * lib/unictype/pr_xid_start.c: New file.
45622         * lib/unictype/pr_zero_width.c: New file.
45623         * lib/unictype/scripts.c: New file.
45624         * lib/unictype/sy_c_ident.c: New file.
45625         * lib/unictype/sy_c_whitespace.c: New file.
45626         * lib/unictype/sy_java_ident.c: New file.
45627         * lib/unictype/sy_java_whitespace.c: New file.
45628
45629         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45630         Unicode 5.0.0.
45631         * lib/unictype/blocks.h: Likewise.
45632         * lib/unictype/categ_C.h: Likewise.
45633         * lib/unictype/categ_Cc.h: Likewise.
45634         * lib/unictype/categ_Cf.h: Likewise.
45635         * lib/unictype/categ_Cn.h: Likewise.
45636         * lib/unictype/categ_Co.h: Likewise.
45637         * lib/unictype/categ_Cs.h: Likewise.
45638         * lib/unictype/categ_L.h: Likewise.
45639         * lib/unictype/categ_Ll.h: Likewise.
45640         * lib/unictype/categ_Lm.h: Likewise.
45641         * lib/unictype/categ_Lo.h: Likewise.
45642         * lib/unictype/categ_Lt.h: Likewise.
45643         * lib/unictype/categ_Lu.h: Likewise.
45644         * lib/unictype/categ_M.h: Likewise.
45645         * lib/unictype/categ_Mc.h: Likewise.
45646         * lib/unictype/categ_Me.h: Likewise.
45647         * lib/unictype/categ_Mn.h: Likewise.
45648         * lib/unictype/categ_N.h: Likewise.
45649         * lib/unictype/categ_Nd.h: Likewise.
45650         * lib/unictype/categ_Nl.h: Likewise.
45651         * lib/unictype/categ_No.h: Likewise.
45652         * lib/unictype/categ_P.h: Likewise.
45653         * lib/unictype/categ_Pc.h: Likewise.
45654         * lib/unictype/categ_Pd.h: Likewise.
45655         * lib/unictype/categ_Pe.h: Likewise.
45656         * lib/unictype/categ_Pf.h: Likewise.
45657         * lib/unictype/categ_Pi.h: Likewise.
45658         * lib/unictype/categ_Po.h: Likewise.
45659         * lib/unictype/categ_Ps.h: Likewise.
45660         * lib/unictype/categ_S.h: Likewise.
45661         * lib/unictype/categ_Sc.h: Likewise.
45662         * lib/unictype/categ_Sk.h: Likewise.
45663         * lib/unictype/categ_Sm.h: Likewise.
45664         * lib/unictype/categ_So.h: Likewise.
45665         * lib/unictype/categ_Z.h: Likewise.
45666         * lib/unictype/categ_Zl.h: Likewise.
45667         * lib/unictype/categ_Zp.h: Likewise.
45668         * lib/unictype/categ_Zs.h: Likewise.
45669         * lib/unictype/categ_of.h: Likewise.
45670         * lib/unictype/combining.h: Likewise.
45671         * lib/unictype/ctype_alnum.h: Likewise.
45672         * lib/unictype/ctype_alpha.h: Likewise.
45673         * lib/unictype/ctype_blank.h: Likewise.
45674         * lib/unictype/ctype_cntrl.h: Likewise.
45675         * lib/unictype/ctype_digit.h: Likewise.
45676         * lib/unictype/ctype_graph.h: Likewise.
45677         * lib/unictype/ctype_lower.h: Likewise.
45678         * lib/unictype/ctype_print.h: Likewise.
45679         * lib/unictype/ctype_punct.h: Likewise.
45680         * lib/unictype/ctype_space.h: Likewise.
45681         * lib/unictype/ctype_upper.h: Likewise.
45682         * lib/unictype/ctype_xdigit.h: Likewise.
45683         * lib/unictype/decdigit.h: Likewise.
45684         * lib/unictype/digit.h: Likewise.
45685         * lib/unictype/mirror.h: Likewise.
45686         * lib/unictype/numeric.h: Likewise.
45687         * lib/unictype/pr_alphabetic.h: Likewise.
45688         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45689         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45691         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45692         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45693         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45694         * lib/unictype/pr_bidi_control.h: Likewise.
45695         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45696         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45698         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45703         * lib/unictype/pr_bidi_pdf.h: Likewise.
45704         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45705         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45706         * lib/unictype/pr_combining.h: Likewise.
45707         * lib/unictype/pr_composite.h: Likewise.
45708         * lib/unictype/pr_currency_symbol.h: Likewise.
45709         * lib/unictype/pr_dash.h: Likewise.
45710         * lib/unictype/pr_decimal_digit.h: Likewise.
45711         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45712         * lib/unictype/pr_deprecated.h: Likewise.
45713         * lib/unictype/pr_diacritic.h: Likewise.
45714         * lib/unictype/pr_extender.h: Likewise.
45715         * lib/unictype/pr_format_control.h: Likewise.
45716         * lib/unictype/pr_grapheme_base.h: Likewise.
45717         * lib/unictype/pr_grapheme_extend.h: Likewise.
45718         * lib/unictype/pr_grapheme_link.h: Likewise.
45719         * lib/unictype/pr_hex_digit.h: Likewise.
45720         * lib/unictype/pr_hyphen.h: Likewise.
45721         * lib/unictype/pr_id_continue.h: Likewise.
45722         * lib/unictype/pr_id_start.h: Likewise.
45723         * lib/unictype/pr_ideographic.h: Likewise.
45724         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45725         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45726         * lib/unictype/pr_ignorable_control.h: Likewise.
45727         * lib/unictype/pr_iso_control.h: Likewise.
45728         * lib/unictype/pr_join_control.h: Likewise.
45729         * lib/unictype/pr_left_of_pair.h: Likewise.
45730         * lib/unictype/pr_line_separator.h: Likewise.
45731         * lib/unictype/pr_logical_order_exception.h: Likewise.
45732         * lib/unictype/pr_lowercase.h: Likewise.
45733         * lib/unictype/pr_math.h: Likewise.
45734         * lib/unictype/pr_non_break.h: Likewise.
45735         * lib/unictype/pr_not_a_character.h: Likewise.
45736         * lib/unictype/pr_numeric.h: Likewise.
45737         * lib/unictype/pr_other_alphabetic.h: Likewise.
45738         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45739         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45740         * lib/unictype/pr_other_id_continue.h: Likewise.
45741         * lib/unictype/pr_other_id_start.h: Likewise.
45742         * lib/unictype/pr_other_lowercase.h: Likewise.
45743         * lib/unictype/pr_other_math.h: Likewise.
45744         * lib/unictype/pr_other_uppercase.h: Likewise.
45745         * lib/unictype/pr_paired_punctuation.h: Likewise.
45746         * lib/unictype/pr_paragraph_separator.h: Likewise.
45747         * lib/unictype/pr_pattern_syntax.h: Likewise.
45748         * lib/unictype/pr_pattern_white_space.h: Likewise.
45749         * lib/unictype/pr_private_use.h: Likewise.
45750         * lib/unictype/pr_punctuation.h: Likewise.
45751         * lib/unictype/pr_quotation_mark.h: Likewise.
45752         * lib/unictype/pr_radical.h: Likewise.
45753         * lib/unictype/pr_sentence_terminal.h: Likewise.
45754         * lib/unictype/pr_soft_dotted.h: Likewise.
45755         * lib/unictype/pr_space.h: Likewise.
45756         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45757         * lib/unictype/pr_titlecase.h: Likewise.
45758         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45759         * lib/unictype/pr_unified_ideograph.h: Likewise.
45760         * lib/unictype/pr_uppercase.h: Likewise.
45761         * lib/unictype/pr_variation_selector.h: Likewise.
45762         * lib/unictype/pr_white_space.h: Likewise.
45763         * lib/unictype/pr_xid_continue.h: Likewise.
45764         * lib/unictype/pr_xid_start.h: Likewise.
45765         * lib/unictype/pr_zero_width.h: Likewise.
45766         * lib/unictype/scripts.h: Likewise.
45767         * lib/unictype/scripts_byname.gperf: Likewise.
45768         * lib/unictype/sy_c_ident.h: Likewise.
45769         * lib/unictype/sy_c_whitespace.h: Likewise.
45770         * lib/unictype/sy_java_ident.h: Likewise.
45771         * lib/unictype/sy_java_whitespace.h: Likewise.
45772
45773         * lib/unictype/Makefile: New file.
45774         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45775         glibc.
45776         * lib/unictype/3level.h: New file, copied from glibc.
45777         * lib/unictype/3levelbit.h: New file.
45778
45779 2007-11-11  Bruno Haible  <bruno@clisp.org>
45780
45781         * modules/gperf: New file.
45782         * modules/iconv_open (Depends-on): Add it.
45783         (Makefile.am): Remove the GPERF definition.
45784
45785 2007-11-11  Bruno Haible  <bruno@clisp.org>
45786
45787         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45788         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45789
45790 2007-11-11  Bruno Haible  <bruno@clisp.org>
45791
45792         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45793         (usage): Remove function.
45794
45795 2007-11-11  Bruno Haible  <bruno@clisp.org>
45796
45797         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45798         gl_FUNC_CEILF_LIBS.
45799         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45800         gl_FUNC_CEIL_LIBS.
45801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45802         gl_FUNC_CEILL_LIBS.
45803         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45804         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45805         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45806
45807 2007-11-11  Bruno Haible  <bruno@clisp.org>
45808
45809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45810         roundf were declared but do not exist on functions.
45811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45812         roundl were declared but do not exist on functions.
45813         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45814         HAVE_FLOORL_AND_CEILL, respectively.
45815         Needed for Sun C on Solaris 10.
45816
45817 2007-11-11  Bruno Haible  <bruno@clisp.org>
45818
45819         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45820         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45821         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45822         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45823         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45824         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45825         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45826         HAVE_DECL_ROUNDF.
45827         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45828         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45830         of HAVE_DECL_ROUND*.
45831         * modules/math (Makefile.am): Update.
45832
45833 2007-11-10  Bruno Haible  <bruno@clisp.org>
45834
45835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45836         ptrdiff_t as m4/intl.m4.
45837
45838 2007-11-10  Jim Meyering  <meyering@redhat.com>
45839
45840         Avoid link failure for the argmatch test.
45841         * tests/test-argmatch.c (usage): Define function to avoid a link
45842         failure: argmatch_die requires a usage function.
45843
45844 2007-11-09  Bruno Haible  <bruno@clisp.org>
45845
45846         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45847         * doc/functions/vsnprintf.texi: Likewise.
45848         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45849         with a size argument < 2.
45850
45851 2007-11-09  Bruno Haible  <bruno@clisp.org>
45852
45853         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45854         buffer. Fixes an inefficiency introduced on 2007-11-03.
45855
45856 2007-11-09  Bruno Haible  <bruno@clisp.org>
45857
45858         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45859         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45860
45861 2007-11-08  Jim Meyering  <meyering@redhat.com>
45862
45863         Change cache variable name prefix "jm_" to "gl_" everywhere.
45864         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45865         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45866         * m4/uptime.m4: s/gl_/jm_/
45867
45868 2007-11-07  Bruno Haible  <bruno@clisp.org>
45869
45870         Update to GNU gettext 0.17.
45871         * m4/intl.m4: Update to GNU gettext 0.17.
45872         * m4/po.m4: Likewise.
45873         * modules/gettext (Files): Remove m4/ulonglong.m4.
45874         (configure.ac): Require gettext infrastructure from version 0.17.
45875
45876 2007-11-06  Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45879         symbolic values are not defined in a public header.
45880         * lib/freadable.c (freadable) [QNX]: Likewise.
45881         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45882         * lib/freading.c (freading) [QNX]: Likewise.
45883         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45884         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45885         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45886         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45887         Reported by Alain Magloire.
45888
45889         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45890
45891 2007-11-05  Bruno Haible  <bruno@clisp.org>
45892
45893         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45894         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45895         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45896         Reported by Eric Blake.
45897
45898 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45899             Bruno Haible  <bruno@clisp.org>
45900
45901         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45902         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45903         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45904         (malloc): Undefine also before including <stdlib.h>.
45905         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45906         Needed on OSF/1 4.0.
45907
45908 2007-11-05  Jim Meyering  <meyering@redhat.com>
45909
45910         git-version-gen: sync from coreutils.
45911         * build-aux/git-version-gen: Add comments.
45912         Change the first '-' to '.' in the snapshot version string,
45913         e.g., 6.9-377-08144 -> 6.9.377-08144
45914         Remove first parameter.
45915         Don't declare a version "-dirty" merely because a time
45916         stamp has changed.
45917
45918 2007-11-04  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/lock.h: Protect all macro definitions containing an 'if'
45921         statement through a "do { ... } while (0)".
45922         * lib/tls.h: Likewise.
45923
45924 2007-11-04  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45927
45928 2007-11-04  Bruno Haible  <bruno@clisp.org>
45929
45930         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45931         * modules/fprintf-posix (Depends-on): Add nocrash.
45932         * modules/snprintf-posix (Depends-on): Likewise.
45933         * modules/sprintf-posix (Depends-on): Likewise.
45934         * modules/vasnprintf-posix (Depends-on): Likewise.
45935         * modules/vasprintf-posix (Depends-on): Likewise.
45936         * modules/vfprintf-posix (Depends-on): Likewise.
45937         * modules/vsnprintf-posix (Depends-on): Likewise.
45938         * modules/vsprintf-posix (Depends-on): Likewise.
45939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45946
45947 2007-11-04  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/nocrash: New file.
45950         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45951         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45952
45953 2007-11-04  Bruno Haible  <bruno@clisp.org>
45954
45955         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45956         precision handling.
45957         * tests/test-vasprintf-posix.c (test_function): Likewise.
45958         * tests/test-snprintf-posix.h (test_function): Likewise.
45959         * tests/test-sprintf-posix.h (test_function): Likewise.
45960
45961         Fix *printf behaviour for large precisions on mingw and BeOS.
45962         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45963         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45965         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45966         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45967         gl_PRINTF_PRECISION and test its result. Invoke
45968         gl_PREREQ_VASNPRINTF_PRECISION.
45969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45972         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45976         * doc/functions/fprintf.texi: Update.
45977         * doc/functions/printf.texi: Update.
45978         * doc/functions/snprintf.texi: Update.
45979         * doc/functions/sprintf.texi: Update.
45980         * doc/functions/vfprintf.texi: Update.
45981         * doc/functions/vprintf.texi: Update.
45982         * doc/functions/vsnprintf.texi: Update.
45983         * doc/functions/vsprintf.texi: Update.
45984
45985 2007-11-04  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45988
45989 2007-11-04  Bruno Haible  <bruno@clisp.org>
45990
45991         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45992         Reported by Sylvain Beucler <beuc@gnu.org>.
45993
45994 2007-11-03  Bruno Haible  <bruno@clisp.org>
45995
45996         * tests/test-fprintf-posix2.sh: New file.
45997         * tests/test-fprintf-posix2.c: New file.
45998         * modules/fprintf-posix-tests (Files): Add them.
45999         (TESTS): Add test-fprintf-posix2.sh.
46000         (configure.ac): Check for getrlimit and setrlimit.
46001         (check_PROGRAMS): Add test-fprintf-posix2.
46002
46003         * tests/test-printf-posix2.sh: New file.
46004         * tests/test-printf-posix2.c: New file.
46005         * modules/printf-posix-tests (Files): Add them.
46006         (TESTS): Add test-printf-posix2.sh.
46007         (configure.ac): Check for getrlimit and setrlimit.
46008         (check_PROGRAMS): Add test-printf-posix2.
46009
46010         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
46011         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
46012         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
46013         (decode_double): New function, copied from decode_long_double.
46014         (scale10_round_decimal_decoded): New function, extracted from
46015         scale10_round_decimal_long_double.
46016         (scale10_round_decimal_long_double): Use it.
46017         (scale10_round_decimal_double): New function.
46018         (floorlog10): New function.
46019         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
46020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
46021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46023         gl_PRINTF_ENOMEM and test its result. Invoke
46024         gl_PREREQ_VASNPRINTF_ENOMEM.
46025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46032         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
46033         * modules/snprintf-posix (Depends-on): Likewise.
46034         * modules/sprintf-posix (Depends-on): Likewise.
46035         * modules/vasnprintf-posix (Depends-on): Likewise.
46036         * modules/vasprintf-posix (Depends-on): Likewise.
46037         * modules/vfprintf-posix (Depends-on): Likewise.
46038         * modules/vsnprintf-posix (Depends-on): Likewise.
46039         * modules/vsprintf-posix (Depends-on): Likewise.
46040         * doc/functions/fprintf.texi: Update.
46041         * doc/functions/printf.texi: Update.
46042         * doc/functions/snprintf.texi: Update.
46043         * doc/functions/sprintf.texi: Update.
46044         * doc/functions/vfprintf.texi: Update.
46045         * doc/functions/vprintf.texi: Update.
46046         * doc/functions/vsnprintf.texi: Update.
46047         * doc/functions/vsprintf.texi: Update.
46048
46049 2007-11-03  Bruno Haible  <bruno@clisp.org>
46050
46051         * modules/frexp-nolibm-tests: New file.
46052
46053         * modules/frexp-nolibm: New file.
46054         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
46055
46056 2007-11-03  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
46059         value is C99 compliant.
46060         Needed for OSF/1 5.1.
46061
46062 2007-11-03  Bruno Haible  <bruno@clisp.org>
46063
46064         Fix out-of-memory handling of vasnprintf.
46065         * lib/printf-parse.c: Include <errno.h>.
46066         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
46067         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
46068         is already set.
46069
46070 2007-11-02  Eric Blake  <ebb9@byu.net>
46071
46072         Fix tests on cygwin.
46073         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
46074
46075 2007-11-01  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
46078         warning.
46079         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
46080         needed for POSIX compatibility.
46081
46082 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46083
46084         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
46085         for compatibility with GNU.
46086
46087 2007-11-01  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
46090         (putenv): Renamed from rpl_putenv. Change argument type from
46091         'const char *' to 'char *'.
46092         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
46093         of defining putenv in config.h, just set REPLACE_PUTENV.
46094         * modules/putenv (Depends-on): Add stdlib.
46095         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46096         (Include): Use <stdlib.h>.
46097         * lib/stdlib.in.h (putenv): New declaration.
46098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
46099         REPLACE_PUTENV.
46100         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
46101         REPLACE_PUTENV.
46102         Needed for MacOS X 10.5.0.
46103         Reported by Peter O'Gorman <peter@pogma.com>.
46104
46105 2007-11-01  Jim Meyering  <meyering@redhat.com>
46106
46107         Treat an empty date string exactly like "0".
46108         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
46109         if the remaining date string (to be parsed) is empty, use "0".
46110         Reported by Mischa Molhoek and discussed in this thread:
46111         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
46112
46113 2007-10-31  Bruno Haible  <bruno@clisp.org>
46114
46115         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
46116         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
46117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
46118         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
46119         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
46120         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
46121
46122 2007-10-31  Bruno Haible  <bruno@clisp.org>
46123
46124         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
46125         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
46126         (AC_TYPE_LONG_LONG_INT): Use it.
46127         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
46128         it as well.
46129         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
46130         to m4/longlong.m4.
46131         * modules/stdint (Files): Remove m4/ulonglong.m4.
46132         * modules/strtoull (Files): Use m4/longlong.m4 instead of
46133         m4/ulonglong.m4.
46134         * modules/strtoumax (Files): Likewise.
46135
46136 2007-10-30  Bruno Haible  <bruno@clisp.org>
46137
46138         * modules/xvasprintf-posix: New file.
46139         Suggested by Eric Blake.
46140
46141 2007-10-30  Bruno Haible  <bruno@clisp.org>
46142
46143         * modules/xprintf-posix-tests: New file.
46144         * tests/test-xprintf-posix.sh: New file.
46145         * tests/test-xprintf-posix.c: New file.
46146         * tests/test-xfprintf-posix.c: New file.
46147
46148         * modules/xprintf-posix: New file.
46149
46150 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46151
46152         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
46153         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
46154         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
46155
46156 2007-10-29  Bruno Haible  <bruno@clisp.org>
46157
46158         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
46159         contain the special marker '_cv_'.
46160         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46161         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46162         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46163         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
46164         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46165         Reported by Ralf Wildenhues.
46166
46167 2007-10-29  Bruno Haible  <bruno@clisp.org>
46168
46169         * gnulib-tool (func_import): When --lgpl is not specified, set
46170         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
46171         GPLv3.
46172         Reported by Simon Josefsson.
46173
46174 2007-10-28  Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
46177         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
46178         HAVE_DECL_ISFINITE.
46179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46180         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
46181         HAVE_DECL_ISFINITE.
46182
46183 2007-10-28  Bruno Haible  <bruno@clisp.org>
46184
46185         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
46186         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
46187
46188 2007-10-28  Bruno Haible  <bruno@clisp.org>
46189
46190         Fix link errors with Sun C 5.0 on Solaris 10.
46191         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
46192         function is declared but not present in the compiler's libm.
46193         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
46194         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
46195         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
46196         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
46197         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
46198         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
46199         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
46200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
46201         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
46202         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
46203         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
46204         HAVE_DECL_FLOORL.
46205
46206 2007-10-28  Bruno Haible  <bruno@clisp.org>
46207
46208         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
46209         gl_FUNC_FLOORL. Cache the result.
46210         (gl_FUNC_FLOORL): Use it.
46211         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
46212         gl_FUNC_CEILL. Cache the result.
46213         (gl_FUNC_CEILL): Use it.
46214
46215         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
46216         gl_FUNC_FLOOR. Cache the result.
46217         (gl_FUNC_FLOOR): Use it.
46218         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
46219         gl_FUNC_CEIL. Cache the result.
46220         (gl_FUNC_CEIL): Use it.
46221
46222         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
46223         gl_FUNC_FLOORF. Cache the result.
46224         (gl_FUNC_FLOORF): Use it.
46225         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
46226         gl_FUNC_CEILF. Cache the result.
46227         (gl_FUNC_CEILF): Use it.
46228
46229 2007-10-28  Bruno Haible  <bruno@clisp.org>
46230
46231         * gnulib-tool: Allow specifying the LGPL version number through
46232         --lgpl=2 or --lgpl=3.
46233         (func_usage): Document --lgpl with argument.
46234         Handle --lgpl=... arguments.
46235         (func_import): Recognize also gl_LGPL calls with an argument. When
46236         --lgpl=2 is used and the module's license is just LGPL, report an
46237         error. Set sed_transform_lib_file according to the lgpl variable. In
46238         the generated files, use --lgpl or gl_LGPL invocations with argument,
46239         if necessary.
46240         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
46241         an LGPv2+ license.
46242         * doc/gnulib-tool.texi (Modified imports): Update explanation of
46243         gl_LGPL macro.
46244
46245 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46246             Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
46249         (u16_uctomb_aux): Likewise.
46250         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
46251         !HAVE_INLINE.
46252         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
46253
46254 2007-10-28  Bruno Haible  <bruno@clisp.org>
46255
46256         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
46257         Invoke AM_GETTEXT_OPTION if it exists.
46258         * modules/vasprintf: Likewise.
46259         * modules/verror: Likewise.
46260         * modules/xprintf: Likewise.
46261         * modules/xvasprintf: Likewise.
46262
46263 2007-10-27  Ben Pfaff  <blp@gnu.org>
46264
46265         * lib/math.in.h: Define isfinite macro and prototypes for
46266         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
46267         implementations.
46268         * m4/math_h.m4: New substitutions for isfinite module.
46269         * lib/isfinite.c: New file.
46270         * m4/isfinite.m4: New file.
46271         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
46272         * modules/isfinite: New file.
46273         * modules/isfinite-tests: New file.
46274         * tests/tests-isfinite.c: New file.
46275         * doc/functions/isfinite.texi: Mention isfinite module.
46276         * MODULES.html.sh: Mention new module.
46277
46278 2007-10-27  Ben Pfaff  <blp@gnu.org>
46279
46280         Ralf Wildenhues reported that Tru64 4.0D declares the round
46281         functions but does not have definitions.
46282         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
46283         cannot be found in any library, set the output variable to
46284         "missing" instead of "".
46285         * m4/round.m4: Also use our substitute if we cannot find round in
46286         any library, even if it is declared.
46287         * m4/roundf.m4: Likewise for roundf.
46288         * m4/roundl.m4: Likewise for roundl.
46289         * lib/math.in.h: Undefine roundf, round, roundl before defining
46290         their replacements, to allow for hypothetical systems where these
46291         may be defined as macros but not available in libraries.
46292
46293 2007-10-27  Bruno Haible  <bruno@clisp.org>
46294
46295         * doc/gnulib.texi: Invoke @firstparagraphindent.
46296         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
46297         changes in gnulib.
46298         (Source changes): New section.
46299
46300 2007-10-26  Bruno Haible  <bruno@clisp.org>
46301
46302         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
46303         borrowed from autoconf.
46304
46305 2007-10-26  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
46308         strerror returned the empty string. Needed on HP-UX 11.00.
46309
46310 2007-10-24  Micah Cowan  <micah@cowan.name>
46311
46312         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
46313         * build-aux/bootstrap: Remove support for now-unnecessary option,
46314         --cvs-user, and envvars CVS_USER, CVS_RSH.
46315
46316 2007-10-24  Jim Meyering  <meyering@redhat.com>
46317
46318         Avoid diagnostics from sha1sum when there is no cached checksum.
46319         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
46320         if the po.s1 file hasn't been created yet.
46321
46322         * build-aux/bootstrap: Sync from coreutils:
46323         2007-10-24  Jim Meyering  <meyering@redhat.com>
46324         Get gnulib from the git repository, not from an obsolete cvs one.
46325         * build-aux/bootstrap: Suggestion from Micah Cowan.
46326         2007-10-04  Jim Meyering  <jim@meyering.net>
46327         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
46328         (update_po_files): Work also when there are no .po files in po/.
46329
46330 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46331
46332         * README: Append ".git" to git and cg examples.
46333         Problem reported by Benoit Sigoure.
46334
46335 2007-10-23  Micah Cowan  <micah@cowan.name>
46336
46337         * users.txt: Add wget.
46338
46339 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46340
46341         Fix linking of some unistdio tests on FreeBSD.
46342         * modules/unistdio/u16-vsnprintf-tests
46343         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46344         * modules/unistdio/u16-vsprintf-tests
46345         (test_u16_vsnprintf1_LDADD): Likewise.
46346         * modules/unistdio/u32-vsnprintf-tests
46347         (test_u32_vsnprintf1_LDADD): Likewise.
46348         * modules/unistdio/u32-vsprintf-tests
46349         (test_u32_vsprintf1_LDADD): Likewise.
46350         * modules/unistdio/u8-vsnprintf-tests
46351         (test_u8_vsnprintf1_LDADD): Likewise.
46352         * modules/unistdio/u8-vsprintf-tests
46353         (test_u8_vsprintf1_LDADD): Likewise.
46354         * modules/unistdio/ulc-vsnprintf-tests
46355         (test_ulc_vsnprintf1_LDADD): Likewise.
46356         * modules/unistdio/ulc-vsprintf-tests
46357         (test_ulc_vsprintf1_LDADD): Likewise.
46358
46359         Fix linking of some uniconv tests on FreeBSD.
46360         * modules/uniconv/u16-conv-from-enc-tests
46361         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46362         * modules/uniconv/u16-conv-to-enc-tests
46363         (test_u16_conv_to_enc_LDADD): Likewise.
46364         * modules/uniconv/u16-strconv-from-enc-tests
46365         (test_u16_strconv_from_enc_LDADD): Likewise.
46366         * modules/uniconv/u16-strconv-to-enc-tests
46367         (test_u16_strconv_to_enc_LDADD): Likewise.
46368         * modules/uniconv/u32-conv-from-enc-tests
46369         (test_u32_conv_from_enc_LDADD): Likewise.
46370         * modules/uniconv/u32-conv-to-enc-tests
46371         (test_u32_conv_to_enc_LDADD): Likewise.
46372         * modules/uniconv/u32-strconv-from-enc-tests
46373         (test_u32_strconv_from_enc_LDADD): Likewise.
46374         * modules/uniconv/u32-strconv-to-enc-tests
46375         (test_u32_strconv_to_enc_LDADD): Likewise.
46376         * modules/uniconv/u8-conv-from-enc-tests
46377         (test_u8_conv_from_enc_LDADD): Likewise.
46378         * modules/uniconv/u8-conv-to-enc-tests
46379         (test_u8_conv_to_enc_LDADD): Likewise.
46380         * modules/uniconv/u8-strconv-from-enc-tests
46381         (test_u8_strconv_from_enc_LDADD): Likewise.
46382         * modules/uniconv/u8-strconv-to-enc-tests
46383         (test_u8_strconv_to_enc_LDADD): Likewise.
46384
46385 2007-10-22  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46388         size.
46389
46390 2007-10-22  Eric Blake  <ebb9@byu.net>
46391
46392         Tweak x*printf documentation.
46393         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46394         variable name and comments.
46395         Suggested by Bruno Haible.
46396
46397 2007-10-22  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/acl.c (copy_acl): Fix file name in comment.
46400
46401 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         Fix Tru64 problem with stdbool.h.
46404         * lib/stdbool.in.h (false, true):
46405         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46406         Don't declare as an enum in this situation; it runs afoul of Tru64.
46407         Problem reported by Steven M. Schweda in
46408         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46409
46410 2007-10-22  Eric Blake  <ebb9@byu.net>
46411
46412         Also wrap vf?printf.
46413         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46414         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46415         (xvprintf, xvfprintf): New functions.
46416
46417 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46418
46419         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46420         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46421
46422         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46423         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46424
46425 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46426
46427         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46428         by Bruno Haible.
46429
46430 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46431
46432         * lib/getloadavg.c
46433         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46434         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46435
46436         * tests/test-i-ring.c: Work for C89.
46437
46438 2007-10-22  Bruno Haible  <bruno@clisp.org>
46439
46440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46441         -1u, in preprocessor expression, so that we don't test for the bug
46442         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46444
46445 2007-10-22  Eric Blake  <ebb9@byu.net>
46446
46447         * tests/test-yesno.sh: Silence stderr during test.
46448
46449 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46450
46451         * modules/crypto/gc-camellia: New file.
46452
46453         * m4/gc-camellia.m4: New file.
46454
46455         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46456
46457         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46458
46459 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46460
46461         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46462         --help to stdout.  Reported by sms@antinode.org (Steven
46463         M. Schweda).
46464
46465 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46466
46467         * users.txt: Fix link to libksba.
46468
46469 2007-10-21  Ben Pfaff  <blp@gnu.org>
46470
46471         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46472         round.c roundf implementation that depends on floorf and ceilf to
46473         be tested unconditionally.
46474
46475 2007-10-21  Ben Pfaff  <blp@gnu.org>
46476
46477         * m4/check-libm-func.m4: Removed.
46478         * m4/check-math-lib.m4: New file.
46479         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46480         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46481         definition and lack of AC_LIBOBJ([roundf]).
46482         * m4/roundl.m4: Ditto, and similarly for roundl.
46483         * modules/round: Reference new m4 file.
46484         * modules/roundf: Ditto.
46485         * modules/roundl: Ditto.
46486         * tests/test-round2.c (main): Use ROUND instead of round.
46487         Bug report from Bruno Haible.
46488
46489 2007-10-21  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46492         context.
46493
46494 2007-10-21  Bruno Haible  <bruno@clisp.org>
46495
46496         * tests/test-wcwidth.c (main): Allow negative result for some control
46497         characters.
46498
46499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46500         Needed on OSF/1 5.1.
46501
46502 2007-10-21  Bruno Haible  <bruno@clisp.org>
46503
46504         * tests/test-floorf1.c: Include isnanf.h.
46505         (main): Use isnanf() instead of isnan().
46506         * tests/test-ceilf1.c: Include isnanf.h.
46507         (main): Use isnanf() instead of isnan().
46508         * tests/test-truncf1.c: Include isnanf.h.
46509         (main): Use isnanf() instead of isnan().
46510         * tests/test-roundf1.c: Include isnanf.h.
46511         (main): Use isnanf() instead of isnan().
46512
46513 2007-10-21  Eric Blake  <ebb9@byu.net>
46514
46515         * users.txt: Update URL for m4.
46516
46517 2007-10-21  Bruno Haible  <bruno@clisp.org>
46518
46519         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46520
46521 2007-10-21  Bruno Haible  <bruno@clisp.org>
46522
46523         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46524         Git's management files if the CVS files are not present.
46525
46526 2007-10-20  Bruno Haible  <bruno@clisp.org>
46527
46528         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46529         gcc-3.4.x.
46530
46531 2007-10-20  Ben Pfaff  <blp@gnu.org>
46532
46533         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46534         implementations.
46535         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46536         * lib/round.c: New file.
46537         * lib/roundf.c: New file.
46538         * lib/roundl.c: New file.
46539         * m4/round.m4: New file.
46540         * m4/roundf.m4: New file.
46541         * m4/roundl.m4: New file.
46542         * m4/check-libm-func-m4: New file.
46543         * modules/math: Replace round, roundf, roundl related @VARS@ in
46544         math.in.h.
46545         * modules/round: New file.
46546         * modules/round-tests: New file.
46547         * modules/roundf: New file.
46548         * modules/roundf-tests: New file.
46549         * modules/roundl: New file.
46550         * modules/roundl-tests: New file.
46551         * tests/test-round1.c: New file.
46552         * tests/test-round2.c: New file.
46553         * tests/test-roundf1.c: New file.
46554         * tests/test-roundf2.c: New file.
46555         * tests/test-roundl.c: New file.
46556         * doc/functions/round.texi: Mention round module.
46557         * doc/functions/roundf.texi: Mention roundf module.
46558         * doc/functions/roundl.texi: Mention roundl module.
46559         * MODULES.html.sh: Mention new modules.
46560         Thanks to Bruno Haible for suggestions.
46561
46562 2007-10-20  Jim Meyering  <meyering@redhat.com>
46563
46564         * lib/xprintf.c: Include <config.h> unconditionally.
46565
46566         Change xprintf's license to GPL.
46567         * modules/xprintf (License): s/LGPL/GPL/, since this module
46568         depends on modules (exit and exitfail) which are GPL.
46569         Suggestion from Bruno Haible.
46570
46571         xprintf fixes.
46572         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46573         Use a clearer diagnostic.
46574         Patch from Bruno Haible.
46575
46576 2007-10-20  Bruno Haible  <bruno@clisp.org>
46577
46578         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46579         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46581
46582 2007-10-20  Bruno Haible  <bruno@clisp.org>
46583
46584         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46585         precision in the comparison result > x - 1 or similar.
46586         * tests/test-ceilf2.c (correct_result_p): Likewise.
46587         * tests/test-truncf2.c (correct_result_p): Likewise.
46588         * tests/test-trunc2.c (correct_result_p): Likewise.
46589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46590
46591 2007-10-20  Bruno Haible  <bruno@clisp.org>
46592
46593         * modules/ceil: New file.
46594         * m4/ceil.m4: New file.
46595         * doc/functions/ceil.texi: Mention the 'ceil' module.
46596
46597 2007-10-20  Bruno Haible  <bruno@clisp.org>
46598
46599         * modules/floor: New file.
46600         * m4/floor.m4: New file.
46601         * doc/functions/floor.texi: Mention the 'floor' module.
46602
46603 2007-10-20  Bruno Haible  <bruno@clisp.org>
46604
46605         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46606         of %a.
46607         * modules/floorf-tests (Depends-on): Likewise.
46608         * modules/truncf-tests (Depends-on): Likewise.
46609         * modules/trunc-tests (Depends-on): Likewise.
46610         Reported by Ben Pfaff.
46611
46612 2007-10-19  Jim Meyering  <meyering@redhat.com>
46613
46614         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46615         Don't bother testing specific errno values.  Just test ferror.
46616
46617         New module: xprintf
46618         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46619
46620 2007-10-19  Bruno Haible  <bruno@clisp.org>
46621
46622         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46623         syntax.
46624         * modules/javaexec (Makefile.am): Likewise.
46625         * modules/relocatable-prog (Makefile.am): Likewise.
46626         Suggested by Jim Meyering.
46627
46628 2007-10-18  Bruno Haible  <bruno@clisp.org>
46629
46630         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46631         Reported by Jim Meyering.
46632
46633 2007-10-18  Eric Blake  <ebb9@byu.net>
46634
46635         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46636
46637 2007-10-18  Bruno Haible  <bruno@clisp.org>
46638
46639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46640         the format string into writable memory. Needed in Fortify conditions.
46641
46642 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46643             Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46646         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46647         * modules/trim (Depends-on): Add mbchar.
46648         (configure.ac): Add gl_FUNC_MBRTOWC.
46649         (Makefile.am): Augment lib_SOURCES.
46650
46651 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         Modify glob.c to use fstatat and dirfd, to simplify it.
46654         Suggested by Eric Blake.
46655         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46656         Don't include <stdbool.h>; not used.
46657         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46658         (link_exists_p): Simplify implementation, since we can now assume
46659         dirfd and fstatat.
46660         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46661
46662 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46663
46664         * gnulib-tool (func_get_dependencies): Fix sed script to
46665         match only tests.
46666
46667 2007-10-17  Bruno Haible  <bruno@clisp.org>
46668
46669         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46670         allow locale names without encoding suffix.
46671         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46672         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46673
46674 2007-10-16  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46677         * lib/getgroups.c (getgroups): Likewise.
46678         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46679
46680 2007-10-16  Bruno Haible  <bruno@clisp.org>
46681
46682         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46683         * modules/malloc-posix (License): Likewise.
46684         * modules/realloc-posix (License): Likewise.
46685         * modules/calloc-posix (License): Likewise.
46686         * modules/intprops (License): Change from GPL to LGPL, with
46687         Paul Eggert's approval.
46688
46689 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46690
46691         Merge glibc changes into lib/glob.c.
46692
46693         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46694         2007-10-15 04:59:03 UTC.  Here are the changes:
46695
46696         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46697
46698         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46699
46700         * lib/glob.c: Add some branch prediction throughout.
46701
46702         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46703
46704         [BZ #5103]
46705         * lib/glob.c (glob): Recognize patterns starting \/.
46706
46707         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46708
46709         [BZ #3996]
46710         * lib/glob.c (attribute_hidden): Define if not defined.
46711         (glob): Unescape dirname, filename or username when needed and not
46712         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46713         is NULL.  Handle unescaped [ in pattern without closing ].
46714         Don't pass GLOB_CHECK down to recursive glob for directories.
46715         (__glob_pattern_type): New function.
46716         (__glob_pattern_p): Implement using __glob_pattern_type.
46717         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46718         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46719         Remove unreachable code.
46720
46721         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46722
46723         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46724         explain why there are no leaks.
46725
46726         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46727
46728         [BZ #3253]
46729         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46730         time, rather allocate increasingly bigger arrays of pointers, if
46731         possible with alloca, if too large with malloc.
46732
46733 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46734
46735         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46736         Problem reported by H.Merijn Brand in
46737         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46738         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46739         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46740
46741 2007-10-15  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46744         with explicit rpl_ prefix.
46745         * lib/fopen.c (fopen): Likewise.
46746         * lib/freopen.c (freopen): Likewise.
46747         * lib/iconv.c (iconv): Likewise.
46748         * lib/iconv_close.c (iconv_close): Likewise.
46749
46750 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46751
46752         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46753
46754 2007-10-15  Bruno Haible  <bruno@clisp.org>
46755
46756         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46757         <stddef.h> instead of <stdlib.h> since we only need NULL.
46758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46759
46760 2007-10-15  Bruno Haible  <bruno@clisp.org>
46761
46762         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46763         Replace paragraph talking about LIBOBJS.
46764         Reported by Colin Watson <cjwatson@debian.org>.
46765
46766 2007-10-15  Bruno Haible  <bruno@clisp.org>
46767
46768         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46769         <stdlib.h> before using NULL.
46770
46771 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46772
46773         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46774         Reported by Albert Chin <china@thewrittenword.com>.
46775
46776 2007-10-14  Bruno Haible  <bruno@clisp.org>
46777
46778         * modules/iconv_open-utf-tests: New file.
46779         * tests/test-iconv-utf.c: New file.
46780
46781         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46782         * modules/iconv_open-utf: New file.
46783         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46784         (iconv, iconv_close): New declarations.
46785         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46786         be defined.
46787         (iconv_open): Add special handling of conversion between UTF-8 and
46788         UTF-{16,32}{BE,LE}.
46789         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46790         * lib/iconv_close.c: New file.
46791         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46792         gl_FUNC_ICONV_OPEN.
46793         (gl_FUNC_ICONV_OPEN): Use it.
46794         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46795         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46796         and REPLACE_ICONV_UTF.
46797         * modules/iconv_open (Depends-on): Add c-strcase.
46798         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46799         ICONV_CONST.
46800         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46801
46802 2007-10-13  Albert Chin  <china@thewrittenword.com>
46803             Bruno Haible  <bruno@clisp.org>
46804
46805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46806         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46807
46808 2007-10-13  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46811         defined, use the ISO C99 inline semantics.
46812         * lib/argp.h (ARGP_EI): Likewise.
46813
46814 2007-10-13  Bruno Haible  <bruno@clisp.org>
46815
46816         Handle 'inline' change in gcc 4.3.0.
46817         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46818         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46819         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46820         argp_fmtstream_point): Disable 'extern' declaration if the function
46821         definition is going to be provided inline.
46822         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46823         semantics, not the ISO C99 inline semantics.
46824         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46825         'extern' declaration if the function definition is going to be provided
46826         inline.
46827         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46828         the GNU C inline semantics, not the ISO C99 inline semantics. With
46829         GCC 4.2, avoid a warning.
46830
46831 2007-10-13  Bruno Haible  <bruno@clisp.org>
46832
46833         * lib/freading.h (freading): Enable the use of __freading for
46834         glibc >= 2.7.
46835         * lib/freading.c (freading): Likewise.
46836
46837 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46838
46839         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46840         "warning: C99 inline functions are not supported; using GNU89".
46841
46842 2007-10-12  Bruno Haible  <bruno@clisp.org>
46843
46844         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46845         of 2.
46846         * tests/test-ceilf2.c: New file.
46847         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46848
46849         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46850         * modules/ceilf-tests: Update.
46851
46852 2007-10-12  Bruno Haible  <bruno@clisp.org>
46853
46854         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46855         of 2.
46856         * tests/test-floorf2.c: New file.
46857         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46858
46859         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46860         * modules/floorf-tests: Update.
46861
46862 2007-10-12  Bruno Haible  <bruno@clisp.org>
46863
46864         * tests/test-trunc2.c: New file.
46865         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46866
46867         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46868         * modules/trunc-tests: Update.
46869
46870 2007-10-12  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46873         of 2.
46874         * tests/test-truncf2.c: New file.
46875         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46876
46877         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46878         * modules/truncf-tests: Update.
46879
46880 2007-10-11  Eric Blake  <ebb9@byu.net>
46881
46882         Don't claim strerror is broken on Interix.
46883         * doc/functions/strerror.texi (strerror): Known broken systems are
46884         now Solaris 8, and not Interix.
46885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46886         Interix on cross-compile.
46887         Reported by Martin Koeppe in
46888         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46889
46890 2007-10-11  Bruno Haible  <bruno@clisp.org>
46891
46892         * modules/i-ring-tests: New file.
46893         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46894         instead of assert.
46895
46896 2007-10-11  Bruno Haible  <bruno@clisp.org>
46897
46898         * modules/filenamecat-tests: New file.
46899         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46900         * lib/filenamecat.c: Remove test code.
46901
46902 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46903
46904         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46905
46906         * lib/strerror.c: Include <string.h> always, to test interface,
46907         and to remove the need for the dummy.
46908         Include intprops.h to compute width instead of doing it ourselves
46909         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46910         (strerror): Define it to return NULL if there's no system strerror.
46911         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46912         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46913         ancient pre-strerror Unix systems well any more.  Saying "unknown
46914         system error" is enough.
46915         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46916         simpler strerror.c implementation.
46917         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46918         Simplify the tests to reflect the simpler strerror implementation.
46919         * modules/strerror (Depends-on): Add intprops.
46920
46921 2007-10-09  Eric Blake  <ebb9@byu.net>
46922
46923         Silence test-fpending.
46924         * modules/fpending-tests (Files): Add wrapper script.
46925         * tests/test-fpending.sh: New file.
46926
46927 2007-10-09  Bruno Haible  <bruno@clisp.org>
46928
46929         * MODULES.html.sh (func_module): Don't create a hyperlink for
46930         function names like 'printf_frexp'.
46931         (Misc): Add crc, memxor.
46932         (Characteristics of floating types): New section.
46933         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46934         isnanf-nolibm, signbit, trunc, truncf, truncl.
46935         (Enhancements for ISO C 99 functions): New subsection Input/output.
46936         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46937         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46938         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46939         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46940         (Enhancements for POSIX:2001 functions): Add chdir-long.
46941         (File system functions): Add areadlink, chdir-safer, read-file.
46942         Remove cycle-check.
46943         (File system as inode set): New section.
46944         (Date and time): Add gethrxtime.
46945         (Multithreading): Add openmp.
46946         (Internationalization functions): Add localename.
46947         (Unicode string functions): Add unistr/u*-mbsnlen.
46948         (Support for maintaining and releasing projects): Add git-version-gen.
46949         (Lone files): Remove directories.
46950
46951 2007-10-08  Ben Pfaff  <blp@gnu.org>
46952
46953         * lib/xmalloca.h: Fix typo in comment.
46954
46955 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46956
46957         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46958         when avoiding problems with integer overflow.  Use a portable test
46959         instead.
46960
46961 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46962
46963         * modules/dummy (License): Change to LGPLv2+.
46964         * modules/float (License): Likewise
46965         * modules/realloc (License): Likewise
46966         * modules/stdlib (License): Likewise
46967
46968 2007-10-07  Bruno Haible  <bruno@clisp.org>
46969
46970         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46971         * floor.c (TWO_MANT_DIG): Likewise.
46972         * ceil.c (TWO_MANT_DIG): Likewise.
46973         Reported by Ben Pfaff.
46974
46975 2007-10-07  Bruno Haible  <bruno@clisp.org>
46976
46977         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46978         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46979         * lib/frexp.c (FUNC): Likewise.
46980         * lib/printf-frexp.h (printf_frexp): Likewise.
46981         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46982         * lib/printf-frexp.c (FUNC): Likewise.
46983         Suggested by Jim Meyering.
46984
46985 2007-10-07  Jim Meyering  <meyering@redhat.com>
46986
46987         Make xnanosleep's integer overflow test more robust.
46988         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46989         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46990
46991 2007-10-07  Bruno Haible  <bruno@clisp.org>
46992
46993         * NEWS: Mention the license change.
46994
46995         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46996         abbreviations in the modules files.
46997
46998         Change copyright notice from GPLv2+ to GPLv3+.
46999         * README: Change copyright notice.
47000         * MODULES.html.sh: Likewise.
47001         * build-aux/bootstrap.conf: Likewise.
47002         * build-aux/config.libpath: Likewise.
47003         * build-aux/csharpcomp.sh.in: Likewise.
47004         * build-aux/csharpexec.sh.in: Likewise.
47005         * build-aux/install-reloc: Likewise.
47006         * build-aux/javacomp.sh.in: Likewise.
47007         * build-aux/javaexec.sh.in: Likewise.
47008         * build-aux/ldd.sh.in: Likewise.
47009         * build-aux/reloc-ldflags: Likewise.
47010         * build-aux/relocatable.sh.in: Likewise.
47011         * build-aux/x-to-1.in: Likewise.
47012         * check-module: Likewise.
47013         * config/srclistvars.sh: Likewise.
47014         * gnulib-tool: Likewise.
47015         * lib/acl-internal.h: Likewise.
47016         * lib/acl.c: Likewise.
47017         * lib/acl.h: Likewise.
47018         * lib/acl_entries.c: Likewise.
47019         * lib/areadlink-with-size.c: Likewise.
47020         * lib/areadlink.c: Likewise.
47021         * lib/areadlink.h: Likewise.
47022         * lib/argmatch.c: Likewise.
47023         * lib/argmatch.h: Likewise.
47024         * lib/argp-ba.c: Likewise.
47025         * lib/argp-eexst.c: Likewise.
47026         * lib/argp-fmtstream.c: Likewise.
47027         * lib/argp-fmtstream.h: Likewise.
47028         * lib/argp-fs-xinl.c: Likewise.
47029         * lib/argp-help.c: Likewise.
47030         * lib/argp-namefrob.h: Likewise.
47031         * lib/argp-parse.c: Likewise.
47032         * lib/argp-pin.c: Likewise.
47033         * lib/argp-pv.c: Likewise.
47034         * lib/argp-pvh.c: Likewise.
47035         * lib/argp-xinl.c: Likewise.
47036         * lib/argp.h: Likewise.
47037         * lib/at-func.c: Likewise.
47038         * lib/atanl.c: Likewise.
47039         * lib/backupfile.c: Likewise.
47040         * lib/backupfile.h: Likewise.
47041         * lib/basename.c: Likewise.
47042         * lib/binary-io.h: Likewise.
47043         * lib/byteswap.in.h: Likewise.
47044         * lib/c-stack.c: Likewise.
47045         * lib/c-stack.h: Likewise.
47046         * lib/c-strcasestr.c: Likewise.
47047         * lib/c-strcasestr.h: Likewise.
47048         * lib/c-strstr.c: Likewise.
47049         * lib/c-strstr.h: Likewise.
47050         * lib/c-strtod.c: Likewise.
47051         * lib/calloc.c: Likewise.
47052         * lib/canon-host.c: Likewise.
47053         * lib/canon-host.h: Likewise.
47054         * lib/canonicalize-lgpl.c: Likewise.
47055         * lib/canonicalize.c: Likewise.
47056         * lib/canonicalize.h: Likewise.
47057         * lib/ceil.c: Likewise.
47058         * lib/ceilf.c: Likewise.
47059         * lib/ceill.c: Likewise.
47060         * lib/chdir-long.c: Likewise.
47061         * lib/chdir-long.h: Likewise.
47062         * lib/chdir-safer.c: Likewise.
47063         * lib/chdir-safer.h: Likewise.
47064         * lib/chown.c: Likewise.
47065         * lib/classpath.c: Likewise.
47066         * lib/classpath.h: Likewise.
47067         * lib/clean-temp.c: Likewise.
47068         * lib/clean-temp.h: Likewise.
47069         * lib/cloexec.c: Likewise.
47070         * lib/close-stream.c: Likewise.
47071         * lib/closein.c: Likewise.
47072         * lib/closein.h: Likewise.
47073         * lib/closeout.c: Likewise.
47074         * lib/closeout.h: Likewise.
47075         * lib/concat-filename.c: Likewise.
47076         * lib/copy-file.c: Likewise.
47077         * lib/copy-file.h: Likewise.
47078         * lib/count-one-bits.h: Likewise.
47079         * lib/crc.c: Likewise.
47080         * lib/crc.h: Likewise.
47081         * lib/creat-safer.c: Likewise.
47082         * lib/csharpcomp.c: Likewise.
47083         * lib/csharpcomp.h: Likewise.
47084         * lib/csharpexec.c: Likewise.
47085         * lib/csharpexec.h: Likewise.
47086         * lib/cycle-check.c: Likewise.
47087         * lib/cycle-check.h: Likewise.
47088         * lib/diacrit.c: Likewise.
47089         * lib/diacrit.h: Likewise.
47090         * lib/diffseq.h: Likewise.
47091         * lib/dirchownmod.c: Likewise.
47092         * lib/dirent.in.h: Likewise.
47093         * lib/dirfd.c: Likewise.
47094         * lib/dirfd.h: Likewise.
47095         * lib/dirname.c: Likewise.
47096         * lib/dirname.h: Likewise.
47097         * lib/dummy.c: Likewise.
47098         * lib/dup-safer.c: Likewise.
47099         * lib/dup2.c: Likewise.
47100         * lib/eealloc.h: Likewise.
47101         * lib/error.c: Likewise.
47102         * lib/error.h: Likewise.
47103         * lib/euidaccess.c: Likewise.
47104         * lib/exclude.c: Likewise.
47105         * lib/exclude.h: Likewise.
47106         * lib/execute.c: Likewise.
47107         * lib/execute.h: Likewise.
47108         * lib/exitfail.c: Likewise.
47109         * lib/exitfail.h: Likewise.
47110         * lib/expl.c: Likewise.
47111         * lib/fatal-signal.c: Likewise.
47112         * lib/fatal-signal.h: Likewise.
47113         * lib/fbufmode.c: Likewise.
47114         * lib/fbufmode.h: Likewise.
47115         * lib/fchdir.c: Likewise.
47116         * lib/fchmodat.c: Likewise.
47117         * lib/fchownat.c: Likewise.
47118         * lib/fcntl--.h: Likewise.
47119         * lib/fcntl-safer.h: Likewise.
47120         * lib/fcntl.in.h: Likewise.
47121         * lib/fd-safer.c: Likewise.
47122         * lib/fflush.c: Likewise.
47123         * lib/file-has-acl.c: Likewise.
47124         * lib/file-set.c: Likewise.
47125         * lib/file-type.c: Likewise.
47126         * lib/file-type.h: Likewise.
47127         * lib/fileblocks.c: Likewise.
47128         * lib/filemode.c: Likewise.
47129         * lib/filemode.h: Likewise.
47130         * lib/filename.h: Likewise.
47131         * lib/filenamecat.c: Likewise.
47132         * lib/filenamecat.h: Likewise.
47133         * lib/findprog.c: Likewise.
47134         * lib/findprog.h: Likewise.
47135         * lib/float.in.h: Likewise.
47136         * lib/floor.c: Likewise.
47137         * lib/floorf.c: Likewise.
47138         * lib/floorl.c: Likewise.
47139         * lib/fopen-safer.c: Likewise.
47140         * lib/fopen.c: Likewise.
47141         * lib/fpending.c: Likewise.
47142         * lib/fpending.h: Likewise.
47143         * lib/fprintf.c: Likewise.
47144         * lib/fprintftime.h: Likewise.
47145         * lib/fpucw.h: Likewise.
47146         * lib/fpurge.c: Likewise.
47147         * lib/fpurge.h: Likewise.
47148         * lib/freadable.c: Likewise.
47149         * lib/freadable.h: Likewise.
47150         * lib/freadahead.c: Likewise.
47151         * lib/freadahead.h: Likewise.
47152         * lib/freading.c: Likewise.
47153         * lib/freading.h: Likewise.
47154         * lib/free.c: Likewise.
47155         * lib/freopen.c: Likewise.
47156         * lib/frexp.c: Likewise.
47157         * lib/frexpl.c: Likewise.
47158         * lib/fseek.c: Likewise.
47159         * lib/fseterr.c: Likewise.
47160         * lib/fseterr.h: Likewise.
47161         * lib/fstatat.c: Likewise.
47162         * lib/fstrcmp.c: Likewise.
47163         * lib/fstrcmp.h: Likewise.
47164         * lib/fsusage.c: Likewise.
47165         * lib/fsusage.h: Likewise.
47166         * lib/ftell.c: Likewise.
47167         * lib/ftello.c: Likewise.
47168         * lib/fts-cycle.c: Likewise.
47169         * lib/fts.c: Likewise.
47170         * lib/fts_.h: Likewise.
47171         * lib/full-read.c: Likewise.
47172         * lib/full-read.h: Likewise.
47173         * lib/full-write.c: Likewise.
47174         * lib/full-write.h: Likewise.
47175         * lib/fwritable.c: Likewise.
47176         * lib/fwritable.h: Likewise.
47177         * lib/fwriteerror.c: Likewise.
47178         * lib/fwriteerror.h: Likewise.
47179         * lib/fwriting.c: Likewise.
47180         * lib/fwriting.h: Likewise.
47181         * lib/gcd.c: Likewise.
47182         * lib/gcd.h: Likewise.
47183         * lib/getcwd.c: Likewise.
47184         * lib/getdate.h: Likewise.
47185         * lib/getdate.y: Likewise.
47186         * lib/getdomainname.c: Likewise.
47187         * lib/getdomainname.h: Likewise.
47188         * lib/getgroups.c: Likewise.
47189         * lib/gethostname.c: Likewise.
47190         * lib/gethrxtime.c: Likewise.
47191         * lib/gethrxtime.h: Likewise.
47192         * lib/getloadavg.c: Likewise.
47193         * lib/getndelim2.c: Likewise.
47194         * lib/getndelim2.h: Likewise.
47195         * lib/getnline.c: Likewise.
47196         * lib/getnline.h: Likewise.
47197         * lib/getopt.c: Likewise.
47198         * lib/getopt.in.h: Likewise.
47199         * lib/getopt1.c: Likewise.
47200         * lib/getopt_int.h: Likewise.
47201         * lib/getpagesize.h: Likewise.
47202         * lib/getsubopt.c: Likewise.
47203         * lib/gettime.c: Likewise.
47204         * lib/getugroups.c: Likewise.
47205         * lib/getugroups.h: Likewise.
47206         * lib/getusershell.c: Likewise.
47207         * lib/gl_anyavltree_list1.h: Likewise.
47208         * lib/gl_anyavltree_list2.h: Likewise.
47209         * lib/gl_anyhash_list1.h: Likewise.
47210         * lib/gl_anyhash_list2.h: Likewise.
47211         * lib/gl_anylinked_list1.h: Likewise.
47212         * lib/gl_anylinked_list2.h: Likewise.
47213         * lib/gl_anyrbtree_list1.h: Likewise.
47214         * lib/gl_anyrbtree_list2.h: Likewise.
47215         * lib/gl_anytree_list1.h: Likewise.
47216         * lib/gl_anytree_list2.h: Likewise.
47217         * lib/gl_anytree_oset.h: Likewise.
47218         * lib/gl_anytreehash_list1.h: Likewise.
47219         * lib/gl_anytreehash_list2.h: Likewise.
47220         * lib/gl_array_list.c: Likewise.
47221         * lib/gl_array_list.h: Likewise.
47222         * lib/gl_array_oset.c: Likewise.
47223         * lib/gl_array_oset.h: Likewise.
47224         * lib/gl_avltree_list.c: Likewise.
47225         * lib/gl_avltree_list.h: Likewise.
47226         * lib/gl_avltree_oset.c: Likewise.
47227         * lib/gl_avltree_oset.h: Likewise.
47228         * lib/gl_avltreehash_list.c: Likewise.
47229         * lib/gl_avltreehash_list.h: Likewise.
47230         * lib/gl_carray_list.c: Likewise.
47231         * lib/gl_carray_list.h: Likewise.
47232         * lib/gl_linked_list.c: Likewise.
47233         * lib/gl_linked_list.h: Likewise.
47234         * lib/gl_linkedhash_list.c: Likewise.
47235         * lib/gl_linkedhash_list.h: Likewise.
47236         * lib/gl_list.c: Likewise.
47237         * lib/gl_list.h: Likewise.
47238         * lib/gl_oset.c: Likewise.
47239         * lib/gl_oset.h: Likewise.
47240         * lib/gl_rbtree_list.c: Likewise.
47241         * lib/gl_rbtree_list.h: Likewise.
47242         * lib/gl_rbtree_oset.c: Likewise.
47243         * lib/gl_rbtree_oset.h: Likewise.
47244         * lib/gl_rbtreehash_list.c: Likewise.
47245         * lib/gl_rbtreehash_list.h: Likewise.
47246         * lib/gl_sublist.c: Likewise.
47247         * lib/gl_sublist.h: Likewise.
47248         * lib/group-member.c: Likewise.
47249         * lib/group-member.h: Likewise.
47250         * lib/hard-locale.c: Likewise.
47251         * lib/hard-locale.h: Likewise.
47252         * lib/hash-pjw.c: Likewise.
47253         * lib/hash-pjw.h: Likewise.
47254         * lib/hash-triple.c: Likewise.
47255         * lib/hash.c: Likewise.
47256         * lib/hash.h: Likewise.
47257         * lib/human.c: Likewise.
47258         * lib/human.h: Likewise.
47259         * lib/i-ring.c: Likewise.
47260         * lib/i-ring.h: Likewise.
47261         * lib/idcache.c: Likewise.
47262         * lib/imaxabs.c: Likewise.
47263         * lib/imaxdiv.c: Likewise.
47264         * lib/inet_pton.c: Likewise.
47265         * lib/inet_pton.h: Likewise.
47266         * lib/intprops.h: Likewise.
47267         * lib/inttostr.c: Likewise.
47268         * lib/inttostr.h: Likewise.
47269         * lib/inttypes.in.h: Likewise.
47270         * lib/isapipe.c: Likewise.
47271         * lib/isdir.c: Likewise.
47272         * lib/isnan.c: Likewise.
47273         * lib/isnan.h: Likewise.
47274         * lib/isnanf.c: Likewise.
47275         * lib/isnanf.h: Likewise.
47276         * lib/isnanl-nolibm.h: Likewise.
47277         * lib/isnanl.c: Likewise.
47278         * lib/isnanl.h: Likewise.
47279         * lib/javacomp.c: Likewise.
47280         * lib/javacomp.h: Likewise.
47281         * lib/javaexec.c: Likewise.
47282         * lib/javaexec.h: Likewise.
47283         * lib/javaversion.c: Likewise.
47284         * lib/javaversion.h: Likewise.
47285         * lib/javaversion.java: Likewise.
47286         * lib/lbrkprop.h: Likewise.
47287         * lib/lchmod.h: Likewise.
47288         * lib/lchown.c: Likewise.
47289         * lib/ldexpl.c: Likewise.
47290         * lib/linebreak.c: Likewise.
47291         * lib/linebreak.h: Likewise.
47292         * lib/linebuffer.c: Likewise.
47293         * lib/linebuffer.h: Likewise.
47294         * lib/locale.in.h: Likewise.
47295         * lib/logl.c: Likewise.
47296         * lib/long-options.c: Likewise.
47297         * lib/long-options.h: Likewise.
47298         * lib/lstat.c: Likewise.
47299         * lib/lstat.h: Likewise.
47300         * lib/math.in.h: Likewise.
47301         * lib/mbchar.c: Likewise.
47302         * lib/mbchar.h: Likewise.
47303         * lib/mbfile.h: Likewise.
47304         * lib/mbiter.h: Likewise.
47305         * lib/mbscasecmp.c: Likewise.
47306         * lib/mbscasestr.c: Likewise.
47307         * lib/mbschr.c: Likewise.
47308         * lib/mbscspn.c: Likewise.
47309         * lib/mbslen.c: Likewise.
47310         * lib/mbsncasecmp.c: Likewise.
47311         * lib/mbsnlen.c: Likewise.
47312         * lib/mbspbrk.c: Likewise.
47313         * lib/mbspcasecmp.c: Likewise.
47314         * lib/mbsrchr.c: Likewise.
47315         * lib/mbssep.c: Likewise.
47316         * lib/mbsspn.c: Likewise.
47317         * lib/mbsstr.c: Likewise.
47318         * lib/mbstok_r.c: Likewise.
47319         * lib/mbswidth.c: Likewise.
47320         * lib/mbswidth.h: Likewise.
47321         * lib/mbuiter.h: Likewise.
47322         * lib/memcasecmp.c: Likewise.
47323         * lib/memcasecmp.h: Likewise.
47324         * lib/memchr.c: Likewise.
47325         * lib/memcmp.c: Likewise.
47326         * lib/memcoll.c: Likewise.
47327         * lib/memcoll.h: Likewise.
47328         * lib/memcpy.c: Likewise.
47329         * lib/memrchr.c: Likewise.
47330         * lib/mkancesdirs.c: Likewise.
47331         * lib/mkdir-p.c: Likewise.
47332         * lib/mkdir-p.h: Likewise.
47333         * lib/mkdir.c: Likewise.
47334         * lib/mkdirat.c: Likewise.
47335         * lib/mkdtemp.c: Likewise.
47336         * lib/mkstemp-safer.c: Likewise.
47337         * lib/mkstemp.c: Likewise.
47338         * lib/modechange.c: Likewise.
47339         * lib/modechange.h: Likewise.
47340         * lib/mountlist.c: Likewise.
47341         * lib/mountlist.h: Likewise.
47342         * lib/mpsort.c: Likewise.
47343         * lib/nanosleep.c: Likewise.
47344         * lib/obstack.c: Likewise.
47345         * lib/obstack.h: Likewise.
47346         * lib/open-safer.c: Likewise.
47347         * lib/open.c: Likewise.
47348         * lib/openat-die.c: Likewise.
47349         * lib/openat-priv.h: Likewise.
47350         * lib/openat-proc.c: Likewise.
47351         * lib/openat.c: Likewise.
47352         * lib/openat.h: Likewise.
47353         * lib/pagealign_alloc.c: Likewise.
47354         * lib/pagealign_alloc.h: Likewise.
47355         * lib/physmem.c: Likewise.
47356         * lib/physmem.h: Likewise.
47357         * lib/pipe-safer.c: Likewise.
47358         * lib/pipe.c: Likewise.
47359         * lib/pipe.h: Likewise.
47360         * lib/posixtm.c: Likewise.
47361         * lib/posixtm.h: Likewise.
47362         * lib/posixver.c: Likewise.
47363         * lib/printf-frexp.c: Likewise.
47364         * lib/printf-frexp.h: Likewise.
47365         * lib/printf-frexpl.c: Likewise.
47366         * lib/printf-frexpl.h: Likewise.
47367         * lib/printf.c: Likewise.
47368         * lib/progname.c: Likewise.
47369         * lib/progname.h: Likewise.
47370         * lib/progreloc.c: Likewise.
47371         * lib/putenv.c: Likewise.
47372         * lib/quote.c: Likewise.
47373         * lib/quote.h: Likewise.
47374         * lib/quotearg.c: Likewise.
47375         * lib/quotearg.h: Likewise.
47376         * lib/raise.c: Likewise.
47377         * lib/readline.c: Likewise.
47378         * lib/readline.h: Likewise.
47379         * lib/readlink.c: Likewise.
47380         * lib/readtokens.c: Likewise.
47381         * lib/readtokens.h: Likewise.
47382         * lib/readtokens0.c: Likewise.
47383         * lib/readtokens0.h: Likewise.
47384         * lib/readutmp.c: Likewise.
47385         * lib/readutmp.h: Likewise.
47386         * lib/realloc.c: Likewise.
47387         * lib/relocwrapper.c: Likewise.
47388         * lib/rename-dest-slash.c: Likewise.
47389         * lib/rename.c: Likewise.
47390         * lib/rmdir.c: Likewise.
47391         * lib/rpmatch.c: Likewise.
47392         * lib/safe-read.c: Likewise.
47393         * lib/safe-read.h: Likewise.
47394         * lib/safe-write.c: Likewise.
47395         * lib/safe-write.h: Likewise.
47396         * lib/same-inode.h: Likewise.
47397         * lib/same.c: Likewise.
47398         * lib/same.h: Likewise.
47399         * lib/save-cwd.c: Likewise.
47400         * lib/save-cwd.h: Likewise.
47401         * lib/savedir.c: Likewise.
47402         * lib/savedir.h: Likewise.
47403         * lib/savewd.c: Likewise.
47404         * lib/savewd.h: Likewise.
47405         * lib/search.in.h: Likewise.
47406         * lib/setenv.c: Likewise.
47407         * lib/setenv.h: Likewise.
47408         * lib/settime.c: Likewise.
47409         * lib/sh-quote.c: Likewise.
47410         * lib/sh-quote.h: Likewise.
47411         * lib/sig2str.c: Likewise.
47412         * lib/sig2str.h: Likewise.
47413         * lib/signal.in.h: Likewise.
47414         * lib/signbitd.c: Likewise.
47415         * lib/signbitf.c: Likewise.
47416         * lib/signbitl.c: Likewise.
47417         * lib/sigprocmask.c: Likewise.
47418         * lib/sincosl.c: Likewise.
47419         * lib/sleep.c: Likewise.
47420         * lib/sprintf.c: Likewise.
47421         * lib/sqrtl.c: Likewise.
47422         * lib/stat-time.h: Likewise.
47423         * lib/stdio--.h: Likewise.
47424         * lib/stdio-safer.h: Likewise.
47425         * lib/stdlib--.h: Likewise.
47426         * lib/stdlib-safer.h: Likewise.
47427         * lib/stdlib.in.h: Likewise.
47428         * lib/stpcpy.c: Likewise.
47429         * lib/stpncpy.c: Likewise.
47430         * lib/strchrnul.c: Likewise.
47431         * lib/strcspn.c: Likewise.
47432         * lib/strerror.c: Likewise.
47433         * lib/strftime.c: Likewise.
47434         * lib/strftime.h: Likewise.
47435         * lib/striconveh.c: Likewise.
47436         * lib/striconveh.h: Likewise.
47437         * lib/striconveha.c: Likewise.
47438         * lib/striconveha.h: Likewise.
47439         * lib/stripslash.c: Likewise.
47440         * lib/strnlen1.c: Likewise.
47441         * lib/strnlen1.h: Likewise.
47442         * lib/strtod.c: Likewise.
47443         * lib/strtoimax.c: Likewise.
47444         * lib/strtok_r.c: Likewise.
47445         * lib/strtol.c: Likewise.
47446         * lib/strtoll.c: Likewise.
47447         * lib/strtoul.c: Likewise.
47448         * lib/strtoull.c: Likewise.
47449         * lib/sysexits.in.h: Likewise.
47450         * lib/tempname.c: Likewise.
47451         * lib/tempname.h: Likewise.
47452         * lib/timespec.h: Likewise.
47453         * lib/tls.c: Likewise.
47454         * lib/tls.h: Likewise.
47455         * lib/tmpdir.c: Likewise.
47456         * lib/tmpdir.h: Likewise.
47457         * lib/tmpfile-safer.c: Likewise.
47458         * lib/tmpfile.c: Likewise.
47459         * lib/trigl.c: Likewise.
47460         * lib/trigl.h: Likewise.
47461         * lib/trim.c: Likewise.
47462         * lib/trim.h: Likewise.
47463         * lib/trunc.c: Likewise.
47464         * lib/truncf.c: Likewise.
47465         * lib/truncl.c: Likewise.
47466         * lib/tsearch.c: Likewise.
47467         * lib/unicodeio.c: Likewise.
47468         * lib/unicodeio.h: Likewise.
47469         * lib/unistd--.h: Likewise.
47470         * lib/unistd-safer.h: Likewise.
47471         * lib/unistdio/ulc-fprintf.c: Likewise.
47472         * lib/unistdio/ulc-vfprintf.c: Likewise.
47473         * lib/unlinkdir.c: Likewise.
47474         * lib/unlinkdir.h: Likewise.
47475         * lib/unlocked-io.h: Likewise.
47476         * lib/unsetenv.c: Likewise.
47477         * lib/userspec.c: Likewise.
47478         * lib/utime.c: Likewise.
47479         * lib/utimecmp.c: Likewise.
47480         * lib/utimecmp.h: Likewise.
47481         * lib/utimens.c: Likewise.
47482         * lib/verify.h: Likewise.
47483         * lib/verror.c: Likewise.
47484         * lib/verror.h: Likewise.
47485         * lib/version-etc-fsf.c: Likewise.
47486         * lib/version-etc.c: Likewise.
47487         * lib/version-etc.h: Likewise.
47488         * lib/vfprintf.c: Likewise.
47489         * lib/vprintf.c: Likewise.
47490         * lib/vsprintf.c: Likewise.
47491         * lib/w32spawn.h: Likewise.
47492         * lib/wait-process.c: Likewise.
47493         * lib/wait-process.h: Likewise.
47494         * lib/wcwidth.c: Likewise.
47495         * lib/write-any-file.c: Likewise.
47496         * lib/xalloc-die.c: Likewise.
47497         * lib/xalloc.h: Likewise.
47498         * lib/xasprintf.c: Likewise.
47499         * lib/xgetcwd.c: Likewise.
47500         * lib/xgetcwd.h: Likewise.
47501         * lib/xgetdomainname.c: Likewise.
47502         * lib/xgetdomainname.h: Likewise.
47503         * lib/xgethostname.c: Likewise.
47504         * lib/xmalloc.c: Likewise.
47505         * lib/xmalloca.c: Likewise.
47506         * lib/xmalloca.h: Likewise.
47507         * lib/xmemcoll.c: Likewise.
47508         * lib/xnanosleep.c: Likewise.
47509         * lib/xreadlink.c: Likewise.
47510         * lib/xreadlink.h: Likewise.
47511         * lib/xsetenv.c: Likewise.
47512         * lib/xsetenv.h: Likewise.
47513         * lib/xstriconv.c: Likewise.
47514         * lib/xstriconv.h: Likewise.
47515         * lib/xstrndup.c: Likewise.
47516         * lib/xstrndup.h: Likewise.
47517         * lib/xstrtod.c: Likewise.
47518         * lib/xstrtod.h: Likewise.
47519         * lib/xstrtol-error.c: Likewise.
47520         * lib/xstrtol.c: Likewise.
47521         * lib/xstrtol.h: Likewise.
47522         * lib/xtime.h: Likewise.
47523         * lib/xvasprintf.c: Likewise.
47524         * lib/xvasprintf.h: Likewise.
47525         * lib/yesno.c: Likewise.
47526         * lib/yesno.h: Likewise.
47527         * posix-modules: Likewise.
47528         * tests/test-alloca-opt.c: Likewise.
47529         * tests/test-arcfour.c: Likewise.
47530         * tests/test-arctwo.c: Likewise.
47531         * tests/test-argmatch.c: Likewise.
47532         * tests/test-argp-2.sh: Likewise.
47533         * tests/test-argp.c: Likewise.
47534         * tests/test-arpa_inet.c: Likewise.
47535         * tests/test-array_list.c: Likewise.
47536         * tests/test-array_oset.c: Likewise.
47537         * tests/test-atexit.c: Likewise.
47538         * tests/test-avltree_list.c: Likewise.
47539         * tests/test-avltree_oset.c: Likewise.
47540         * tests/test-avltreehash_list.c: Likewise.
47541         * tests/test-base64.c: Likewise.
47542         * tests/test-binary-io.c: Likewise.
47543         * tests/test-byteswap.c: Likewise.
47544         * tests/test-c-ctype.c: Likewise.
47545         * tests/test-c-strcasecmp.c: Likewise.
47546         * tests/test-c-strcasestr.c: Likewise.
47547         * tests/test-c-strncasecmp.c: Likewise.
47548         * tests/test-c-strstr.c: Likewise.
47549         * tests/test-canonicalize-lgpl.c: Likewise.
47550         * tests/test-canonicalize.c: Likewise.
47551         * tests/test-carray_list.c: Likewise.
47552         * tests/test-ceilf.c: Likewise.
47553         * tests/test-ceill.c: Likewise.
47554         * tests/test-count-one-bits.c: Likewise.
47555         * tests/test-crc.c: Likewise.
47556         * tests/test-dirname.c: Likewise.
47557         * tests/test-fbufmode.c: Likewise.
47558         * tests/test-fcntl.c: Likewise.
47559         * tests/test-fflush.c: Likewise.
47560         * tests/test-floorf.c: Likewise.
47561         * tests/test-floorl.c: Likewise.
47562         * tests/test-fopen.c: Likewise.
47563         * tests/test-fprintf-posix.c: Likewise.
47564         * tests/test-fprintf-posix.h: Likewise.
47565         * tests/test-fpurge.c: Likewise.
47566         * tests/test-freadable.c: Likewise.
47567         * tests/test-freadahead.c: Likewise.
47568         * tests/test-freading.c: Likewise.
47569         * tests/test-freopen.c: Likewise.
47570         * tests/test-frexp.c: Likewise.
47571         * tests/test-frexpl.c: Likewise.
47572         * tests/test-fseek.c: Likewise.
47573         * tests/test-fseeko.c: Likewise.
47574         * tests/test-fseterr.c: Likewise.
47575         * tests/test-fstrcmp.c: Likewise.
47576         * tests/test-ftell.c: Likewise.
47577         * tests/test-ftello.c: Likewise.
47578         * tests/test-fwritable.c: Likewise.
47579         * tests/test-fwriting.c: Likewise.
47580         * tests/test-getaddrinfo.c: Likewise.
47581         * tests/test-getpass.c: Likewise.
47582         * tests/test-gettimeofday.c: Likewise.
47583         * tests/test-hmac-md5.c: Likewise.
47584         * tests/test-hmac-sha1.c: Likewise.
47585         * tests/test-iconv.c: Likewise.
47586         * tests/test-iconvme.c: Likewise.
47587         * tests/test-inttypes.c: Likewise.
47588         * tests/test-isnan.c: Likewise.
47589         * tests/test-isnanf.c: Likewise.
47590         * tests/test-isnanl-nolibm.c: Likewise.
47591         * tests/test-isnanl.c: Likewise.
47592         * tests/test-isnanl.h: Likewise.
47593         * tests/test-ldexpl.c: Likewise.
47594         * tests/test-linked_list.c: Likewise.
47595         * tests/test-linkedhash_list.c: Likewise.
47596         * tests/test-locale.c: Likewise.
47597         * tests/test-localename.c: Likewise.
47598         * tests/test-lock.c: Likewise.
47599         * tests/test-lseek.c: Likewise.
47600         * tests/test-malloca.c: Likewise.
47601         * tests/test-math.c: Likewise.
47602         * tests/test-mbscasecmp.c: Likewise.
47603         * tests/test-mbscasestr1.c: Likewise.
47604         * tests/test-mbscasestr2.c: Likewise.
47605         * tests/test-mbscasestr3.c: Likewise.
47606         * tests/test-mbscasestr4.c: Likewise.
47607         * tests/test-mbschr.c: Likewise.
47608         * tests/test-mbscspn.c: Likewise.
47609         * tests/test-mbsncasecmp.c: Likewise.
47610         * tests/test-mbspbrk.c: Likewise.
47611         * tests/test-mbspcasecmp.c: Likewise.
47612         * tests/test-mbsrchr.c: Likewise.
47613         * tests/test-mbsspn.c: Likewise.
47614         * tests/test-mbsstr1.c: Likewise.
47615         * tests/test-mbsstr2.c: Likewise.
47616         * tests/test-mbsstr3.c: Likewise.
47617         * tests/test-md5.c: Likewise.
47618         * tests/test-memmem.c: Likewise.
47619         * tests/test-netinet_in.c: Likewise.
47620         * tests/test-open.c: Likewise.
47621         * tests/test-printf-frexp.c: Likewise.
47622         * tests/test-printf-frexpl.c: Likewise.
47623         * tests/test-printf-posix.c: Likewise.
47624         * tests/test-printf-posix.h: Likewise.
47625         * tests/test-rbtree_list.c: Likewise.
47626         * tests/test-rbtree_oset.c: Likewise.
47627         * tests/test-rbtreehash_list.c: Likewise.
47628         * tests/test-read-file.c: Likewise.
47629         * tests/test-rijndael.c: Likewise.
47630         * tests/test-search.c: Likewise.
47631         * tests/test-signbit.c: Likewise.
47632         * tests/test-sleep.c: Likewise.
47633         * tests/test-snprintf-posix.c: Likewise.
47634         * tests/test-snprintf-posix.h: Likewise.
47635         * tests/test-snprintf.c: Likewise.
47636         * tests/test-sprintf-posix.c: Likewise.
47637         * tests/test-sprintf-posix.h: Likewise.
47638         * tests/test-stat-time.c: Likewise.
47639         * tests/test-stdbool.c: Likewise.
47640         * tests/test-stdint.c: Likewise.
47641         * tests/test-stdio.c: Likewise.
47642         * tests/test-stdlib.c: Likewise.
47643         * tests/test-stpncpy.c: Likewise.
47644         * tests/test-strcasestr.c: Likewise.
47645         * tests/test-striconv.c: Likewise.
47646         * tests/test-striconveh.c: Likewise.
47647         * tests/test-striconveha.c: Likewise.
47648         * tests/test-string.c: Likewise.
47649         * tests/test-sys_select.c: Likewise.
47650         * tests/test-sys_socket.c: Likewise.
47651         * tests/test-sys_stat.c: Likewise.
47652         * tests/test-sys_time.c: Likewise.
47653         * tests/test-sysexits.c: Likewise.
47654         * tests/test-time.c: Likewise.
47655         * tests/test-tls.c: Likewise.
47656         * tests/test-trunc.c: Likewise.
47657         * tests/test-truncf.c: Likewise.
47658         * tests/test-truncl.c: Likewise.
47659         * tests/test-unistd.c: Likewise.
47660         * tests/test-vasnprintf-posix.c: Likewise.
47661         * tests/test-vasnprintf-posix2.c: Likewise.
47662         * tests/test-vasnprintf.c: Likewise.
47663         * tests/test-vasprintf-posix.c: Likewise.
47664         * tests/test-vasprintf.c: Likewise.
47665         * tests/test-verify.c: Likewise.
47666         * tests/test-vfprintf-posix.c: Likewise.
47667         * tests/test-vprintf-posix.c: Likewise.
47668         * tests/test-vsnprintf-posix.c: Likewise.
47669         * tests/test-vsnprintf.c: Likewise.
47670         * tests/test-vsprintf-posix.c: Likewise.
47671         * tests/test-wchar.c: Likewise.
47672         * tests/test-wctype.c: Likewise.
47673         * tests/test-wcwidth.c: Likewise.
47674         * tests/test-xstrtol.c: Likewise.
47675         * tests/test-xvasprintf.c: Likewise.
47676         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47677         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47678         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47679         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47680         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47681         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47682         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47683         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47684         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47685         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47686         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47687         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47688         * tests/uniname/test-uninames.c: Likewise.
47689         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47690         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47691         * tests/unistdio/test-u16-printf1.h: Likewise.
47692         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47693         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47694         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47695         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47696         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47697         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47698         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47699         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47700         * tests/unistdio/test-u32-printf1.h: Likewise.
47701         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47702         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47703         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47704         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47705         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47706         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47707         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47708         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47709         * tests/unistdio/test-u8-printf1.h: Likewise.
47710         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47711         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47712         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47713         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47714         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47715         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47716         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47717         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47718         * tests/unistdio/test-ulc-printf1.h: Likewise.
47719         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47720         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47721         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47722         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47723         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47724         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47725         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47726         * tests/uniwidth/test-u16-width.c: Likewise.
47727         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47728         * tests/uniwidth/test-u32-width.c: Likewise.
47729         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47730         * tests/uniwidth/test-u8-width.c: Likewise.
47731         * tests/uniwidth/test-uc_width.c: Likewise.
47732         * config/srclist-update: Likewise.
47733         (fixlicense): Update to GPLv3+.
47734
47735         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47736         * tests/test-tsearch.c: Change copyright notice.
47737
47738         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47739         * lib/c-strcaseeq.h: Change copyright notice.
47740         * lib/streq.h: Likewise.
47741         * lib/uniconv.h: Likewise.
47742         * lib/uniconv/u-conv-from-enc.h: Likewise.
47743         * lib/uniconv/u-conv-to-enc.h: Likewise.
47744         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47745         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47746         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47747         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47748         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47749         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47750         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47751         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47752         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47753         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47754         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47755         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47756         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47757         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47758         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47759         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47760         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47761         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47762         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47763         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47764         * lib/uniname.h: Likewise.
47765         * lib/uniname/uniname.c: Likewise.
47766         * lib/unistdio.h: Likewise.
47767         * lib/unistdio/u-asnprintf.h: Likewise.
47768         * lib/unistdio/u-asprintf.h: Likewise.
47769         * lib/unistdio/u-printf-args.c: Likewise.
47770         * lib/unistdio/u-printf-args.h: Likewise.
47771         * lib/unistdio/u-printf-parse.h: Likewise.
47772         * lib/unistdio/u-snprintf.h: Likewise.
47773         * lib/unistdio/u-sprintf.h: Likewise.
47774         * lib/unistdio/u-vasprintf.h: Likewise.
47775         * lib/unistdio/u-vsnprintf.h: Likewise.
47776         * lib/unistdio/u-vsprintf.h: Likewise.
47777         * lib/unistdio/u16-asnprintf.c: Likewise.
47778         * lib/unistdio/u16-asprintf.c: Likewise.
47779         * lib/unistdio/u16-printf-parse.c: Likewise.
47780         * lib/unistdio/u16-snprintf.c: Likewise.
47781         * lib/unistdio/u16-sprintf.c: Likewise.
47782         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47783         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47784         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47785         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47786         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47787         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47788         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47789         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47790         * lib/unistdio/u16-vasnprintf.c: Likewise.
47791         * lib/unistdio/u16-vasprintf.c: Likewise.
47792         * lib/unistdio/u16-vsnprintf.c: Likewise.
47793         * lib/unistdio/u16-vsprintf.c: Likewise.
47794         * lib/unistdio/u32-asnprintf.c: Likewise.
47795         * lib/unistdio/u32-asprintf.c: Likewise.
47796         * lib/unistdio/u32-printf-parse.c: Likewise.
47797         * lib/unistdio/u32-snprintf.c: Likewise.
47798         * lib/unistdio/u32-sprintf.c: Likewise.
47799         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47800         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47801         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47802         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47803         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47804         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47805         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47806         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47807         * lib/unistdio/u32-vasnprintf.c: Likewise.
47808         * lib/unistdio/u32-vasprintf.c: Likewise.
47809         * lib/unistdio/u32-vsnprintf.c: Likewise.
47810         * lib/unistdio/u32-vsprintf.c: Likewise.
47811         * lib/unistdio/u8-asnprintf.c: Likewise.
47812         * lib/unistdio/u8-asprintf.c: Likewise.
47813         * lib/unistdio/u8-printf-parse.c: Likewise.
47814         * lib/unistdio/u8-snprintf.c: Likewise.
47815         * lib/unistdio/u8-sprintf.c: Likewise.
47816         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47817         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47818         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47819         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47820         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47821         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47822         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47823         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47824         * lib/unistdio/u8-vasnprintf.c: Likewise.
47825         * lib/unistdio/u8-vasprintf.c: Likewise.
47826         * lib/unistdio/u8-vsnprintf.c: Likewise.
47827         * lib/unistdio/u8-vsprintf.c: Likewise.
47828         * lib/unistdio/ulc-asnprintf.c: Likewise.
47829         * lib/unistdio/ulc-asprintf.c: Likewise.
47830         * lib/unistdio/ulc-printf-parse.c: Likewise.
47831         * lib/unistdio/ulc-snprintf.c: Likewise.
47832         * lib/unistdio/ulc-sprintf.c: Likewise.
47833         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47834         * lib/unistdio/ulc-vasprintf.c: Likewise.
47835         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47836         * lib/unistdio/ulc-vsprintf.c: Likewise.
47837         * lib/unistr.h: Likewise.
47838         * lib/unistr/u-cpy-alloc.h: Likewise.
47839         * lib/unistr/u-cpy.h: Likewise.
47840         * lib/unistr/u-endswith.h: Likewise.
47841         * lib/unistr/u-move.h: Likewise.
47842         * lib/unistr/u-set.h: Likewise.
47843         * lib/unistr/u-startswith.h: Likewise.
47844         * lib/unistr/u-stpcpy.h: Likewise.
47845         * lib/unistr/u-stpncpy.h: Likewise.
47846         * lib/unistr/u-strcat.h: Likewise.
47847         * lib/unistr/u-strcpy.h: Likewise.
47848         * lib/unistr/u-strcspn.h: Likewise.
47849         * lib/unistr/u-strdup.h: Likewise.
47850         * lib/unistr/u-strlen.h: Likewise.
47851         * lib/unistr/u-strncat.h: Likewise.
47852         * lib/unistr/u-strncpy.h: Likewise.
47853         * lib/unistr/u-strnlen.h: Likewise.
47854         * lib/unistr/u-strpbrk.h: Likewise.
47855         * lib/unistr/u-strspn.h: Likewise.
47856         * lib/unistr/u-strstr.h: Likewise.
47857         * lib/unistr/u-strtok.h: Likewise.
47858         * lib/unistr/u16-check.c: Likewise.
47859         * lib/unistr/u16-chr.c: Likewise.
47860         * lib/unistr/u16-cmp.c: Likewise.
47861         * lib/unistr/u16-cpy-alloc.c: Likewise.
47862         * lib/unistr/u16-cpy.c: Likewise.
47863         * lib/unistr/u16-endswith.c: Likewise.
47864         * lib/unistr/u16-mblen.c: Likewise.
47865         * lib/unistr/u16-mbsnlen.c: Likewise.
47866         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47868         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47869         * lib/unistr/u16-mbtouc.c: Likewise.
47870         * lib/unistr/u16-mbtoucr.c: Likewise.
47871         * lib/unistr/u16-move.c: Likewise.
47872         * lib/unistr/u16-next.c: Likewise.
47873         * lib/unistr/u16-prev.c: Likewise.
47874         * lib/unistr/u16-set.c: Likewise.
47875         * lib/unistr/u16-startswith.c: Likewise.
47876         * lib/unistr/u16-stpcpy.c: Likewise.
47877         * lib/unistr/u16-stpncpy.c: Likewise.
47878         * lib/unistr/u16-strcat.c: Likewise.
47879         * lib/unistr/u16-strchr.c: Likewise.
47880         * lib/unistr/u16-strcmp.c: Likewise.
47881         * lib/unistr/u16-strcpy.c: Likewise.
47882         * lib/unistr/u16-strcspn.c: Likewise.
47883         * lib/unistr/u16-strdup.c: Likewise.
47884         * lib/unistr/u16-strlen.c: Likewise.
47885         * lib/unistr/u16-strmblen.c: Likewise.
47886         * lib/unistr/u16-strmbtouc.c: Likewise.
47887         * lib/unistr/u16-strncat.c: Likewise.
47888         * lib/unistr/u16-strncmp.c: Likewise.
47889         * lib/unistr/u16-strncpy.c: Likewise.
47890         * lib/unistr/u16-strnlen.c: Likewise.
47891         * lib/unistr/u16-strpbrk.c: Likewise.
47892         * lib/unistr/u16-strrchr.c: Likewise.
47893         * lib/unistr/u16-strspn.c: Likewise.
47894         * lib/unistr/u16-strstr.c: Likewise.
47895         * lib/unistr/u16-strtok.c: Likewise.
47896         * lib/unistr/u16-to-u32.c: Likewise.
47897         * lib/unistr/u16-to-u8.c: Likewise.
47898         * lib/unistr/u16-uctomb-aux.c: Likewise.
47899         * lib/unistr/u16-uctomb.c: Likewise.
47900         * lib/unistr/u32-check.c: Likewise.
47901         * lib/unistr/u32-chr.c: Likewise.
47902         * lib/unistr/u32-cmp.c: Likewise.
47903         * lib/unistr/u32-cpy-alloc.c: Likewise.
47904         * lib/unistr/u32-cpy.c: Likewise.
47905         * lib/unistr/u32-endswith.c: Likewise.
47906         * lib/unistr/u32-mblen.c: Likewise.
47907         * lib/unistr/u32-mbsnlen.c: Likewise.
47908         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47909         * lib/unistr/u32-mbtouc.c: Likewise.
47910         * lib/unistr/u32-mbtoucr.c: Likewise.
47911         * lib/unistr/u32-move.c: Likewise.
47912         * lib/unistr/u32-next.c: Likewise.
47913         * lib/unistr/u32-prev.c: Likewise.
47914         * lib/unistr/u32-set.c: Likewise.
47915         * lib/unistr/u32-startswith.c: Likewise.
47916         * lib/unistr/u32-stpcpy.c: Likewise.
47917         * lib/unistr/u32-stpncpy.c: Likewise.
47918         * lib/unistr/u32-strcat.c: Likewise.
47919         * lib/unistr/u32-strchr.c: Likewise.
47920         * lib/unistr/u32-strcmp.c: Likewise.
47921         * lib/unistr/u32-strcpy.c: Likewise.
47922         * lib/unistr/u32-strcspn.c: Likewise.
47923         * lib/unistr/u32-strdup.c: Likewise.
47924         * lib/unistr/u32-strlen.c: Likewise.
47925         * lib/unistr/u32-strmblen.c: Likewise.
47926         * lib/unistr/u32-strmbtouc.c: Likewise.
47927         * lib/unistr/u32-strncat.c: Likewise.
47928         * lib/unistr/u32-strncmp.c: Likewise.
47929         * lib/unistr/u32-strncpy.c: Likewise.
47930         * lib/unistr/u32-strnlen.c: Likewise.
47931         * lib/unistr/u32-strpbrk.c: Likewise.
47932         * lib/unistr/u32-strrchr.c: Likewise.
47933         * lib/unistr/u32-strspn.c: Likewise.
47934         * lib/unistr/u32-strstr.c: Likewise.
47935         * lib/unistr/u32-strtok.c: Likewise.
47936         * lib/unistr/u32-to-u16.c: Likewise.
47937         * lib/unistr/u32-to-u8.c: Likewise.
47938         * lib/unistr/u32-uctomb.c: Likewise.
47939         * lib/unistr/u8-check.c: Likewise.
47940         * lib/unistr/u8-chr.c: Likewise.
47941         * lib/unistr/u8-cmp.c: Likewise.
47942         * lib/unistr/u8-cpy-alloc.c: Likewise.
47943         * lib/unistr/u8-cpy.c: Likewise.
47944         * lib/unistr/u8-endswith.c: Likewise.
47945         * lib/unistr/u8-mblen.c: Likewise.
47946         * lib/unistr/u8-mbsnlen.c: Likewise.
47947         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47948         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47949         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47950         * lib/unistr/u8-mbtouc.c: Likewise.
47951         * lib/unistr/u8-mbtoucr.c: Likewise.
47952         * lib/unistr/u8-move.c: Likewise.
47953         * lib/unistr/u8-next.c: Likewise.
47954         * lib/unistr/u8-prev.c: Likewise.
47955         * lib/unistr/u8-set.c: Likewise.
47956         * lib/unistr/u8-startswith.c: Likewise.
47957         * lib/unistr/u8-stpcpy.c: Likewise.
47958         * lib/unistr/u8-stpncpy.c: Likewise.
47959         * lib/unistr/u8-strcat.c: Likewise.
47960         * lib/unistr/u8-strchr.c: Likewise.
47961         * lib/unistr/u8-strcmp.c: Likewise.
47962         * lib/unistr/u8-strcpy.c: Likewise.
47963         * lib/unistr/u8-strcspn.c: Likewise.
47964         * lib/unistr/u8-strdup.c: Likewise.
47965         * lib/unistr/u8-strlen.c: Likewise.
47966         * lib/unistr/u8-strmblen.c: Likewise.
47967         * lib/unistr/u8-strmbtouc.c: Likewise.
47968         * lib/unistr/u8-strncat.c: Likewise.
47969         * lib/unistr/u8-strncmp.c: Likewise.
47970         * lib/unistr/u8-strncpy.c: Likewise.
47971         * lib/unistr/u8-strnlen.c: Likewise.
47972         * lib/unistr/u8-strpbrk.c: Likewise.
47973         * lib/unistr/u8-strrchr.c: Likewise.
47974         * lib/unistr/u8-strspn.c: Likewise.
47975         * lib/unistr/u8-strstr.c: Likewise.
47976         * lib/unistr/u8-strtok.c: Likewise.
47977         * lib/unistr/u8-to-u16.c: Likewise.
47978         * lib/unistr/u8-to-u32.c: Likewise.
47979         * lib/unistr/u8-uctomb-aux.c: Likewise.
47980         * lib/unistr/u8-uctomb.c: Likewise.
47981         * lib/unitypes.h: Likewise.
47982         * lib/uniwidth.h: Likewise.
47983         * lib/uniwidth/cjk.h: Likewise.
47984         * lib/uniwidth/u16-strwidth.c: Likewise.
47985         * lib/uniwidth/u16-width.c: Likewise.
47986         * lib/uniwidth/u32-strwidth.c: Likewise.
47987         * lib/uniwidth/u32-width.c: Likewise.
47988         * lib/uniwidth/u8-strwidth.c: Likewise.
47989         * lib/uniwidth/u8-width.c: Likewise.
47990         * lib/uniwidth/width.c: Likewise.
47991
47992 2007-10-07  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47995         The file is still under LGPL (see modules/inttypes).
47996
47997 2007-10-06  Bruno Haible  <bruno@clisp.org>
47998
47999         * modules/trunc (Dependencies): Add 'extensions'.
48000         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
48001         Reported by Ben Pfaff <blp@gnu.org>.
48002
48003 2007-10-06  Bruno Haible  <bruno@clisp.org>
48004
48005         * modules/freopen-tests: New file.
48006         * tests/test-freopen.c: New file.
48007
48008         * modules/fopen-tests: New file.
48009         * tests/test-fopen.c: New file.
48010
48011         * modules/fopen: New file.
48012         * lib/fopen.c: New file.
48013         * m4/fopen.m4: New file.
48014         * modules/freopen: New file.
48015         * lib/freopen.c: New file.
48016         * m4/freopen.m4: New file.
48017         * lib/stdio.in.h (fopen, freopen): New declarations.
48018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
48019         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48020         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
48021         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
48022         * doc/functions/fopen.texi: Mention the 'fopen' module.
48023         * doc/functions/freopen.texi: Mention the 'freopen' module.
48024
48025 2007-10-06  Bruno Haible  <bruno@clisp.org>
48026
48027         * modules/open-tests: New file.
48028         * tests/test-open.c: New file.
48029
48030         * modules/open: New file.
48031         * lib/open.c: New file.
48032         * m4/open.m4: New file.
48033         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
48034         lib/open.c does.
48035         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
48036         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
48037         macros.
48038         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
48039         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
48040         REPLACE_OPEN.
48041         * doc/functions/open.texi: Mention the 'open' module.
48042
48043 2007-10-04  Bruno Haible  <bruno@clisp.org>
48044
48045         * modules/ceill-tests: New file.
48046         * tests/test-ceill.c: New file.
48047
48048         * modules/ceill: New file.
48049         * lib/ceill.c: Replace entire file.
48050         * m4/ceill.m4: New file.
48051         * lib/math.in.h (ceill): Replace declaration.
48052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
48053         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
48054         * doc/functions/ceill.texi: Mention the 'ceill' module.
48055         * modules/mathl (Files): Remove lib/ceill.c.
48056         (Depends-on): Add ceill.
48057
48058 2007-10-04  Bruno Haible  <bruno@clisp.org>
48059
48060         * modules/ceilf-tests: New file.
48061         * tests/test-ceilf.c: New file.
48062
48063         * modules/ceilf: New file.
48064         * lib/ceil.c: New file.
48065         * lib/ceilf.c: New file.
48066         * m4/ceilf.m4: New file.
48067         * lib/math.in.h (ceilf): New declaration.
48068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
48069         HAVE_DECL_CEILF.
48070         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
48071         HAVE_DECL_CEILF.
48072         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
48073
48074 2007-10-04  Bruno Haible  <bruno@clisp.org>
48075
48076         * modules/floorl-tests: New file.
48077         * tests/test-floorl.c: New file.
48078
48079         * modules/floorl: New file.
48080         * lib/floorl.c: Replace entire file.
48081         * m4/floorl.m4: New file.
48082         * lib/math.in.h (floorl): Replace declaration.
48083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
48084         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
48085         * doc/functions/floorl.texi: Mention the 'floorl' module.
48086         * modules/mathl (Files): Remove lib/floorl.c.
48087         (Depends-on): Add floorl.
48088
48089 2007-10-04  Bruno Haible  <bruno@clisp.org>
48090
48091         * modules/floorf-tests: New file.
48092         * tests/test-floorf.c: New file.
48093
48094         * modules/floorf: New file.
48095         * lib/floor.c: New file.
48096         * lib/floorf.c: New file.
48097         * m4/floorf.m4: New file.
48098         * lib/math.in.h (floorf): New declaration.
48099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
48100         HAVE_DECL_FLOORF.
48101         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
48102         HAVE_DECL_FLOORF.
48103         * doc/functions/floorf.texi: Mention the 'floorf' module.
48104
48105 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
48106             Bruno Haible  <bruno@clisp.org>
48107
48108         Advertise for the Git server instead of the CVS server.
48109         * doc/gnulib-intro.texi (Steady Development): Mention the Git
48110         repository instead of the CVS one.
48111         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
48112         about all VCS systems generically.
48113         * doc/gnulib.texi (Introduction): Capitalize `Git'.
48114
48115 2007-10-04  Bruno Haible  <bruno@clisp.org>
48116
48117         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
48118         means.
48119         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
48120
48121 2007-10-04  Bruno Haible  <bruno@clisp.org>
48122
48123         * modules/truncl-tests: New file.
48124         * tests/test-truncl.c: New file.
48125
48126         * modules/truncl: New file.
48127         * lib/truncl.c: New file.
48128         * m4/truncl.m4: New file.
48129         * lib/math.in.h (truncl): New declaration.
48130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
48131         HAVE_DECL_TRUNCL.
48132         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
48133         HAVE_DECL_TRUNCL.
48134         * doc/functions/truncl.texi: Mention the 'truncl' module.
48135
48136 2007-10-04  Bruno Haible  <bruno@clisp.org>
48137
48138         * modules/truncf-tests: New file.
48139         * tests/test-truncf.c: New file.
48140
48141         * modules/truncf: New file.
48142         * lib/trunc.c: Make paramerizable through USE_* macros.
48143         * lib/truncf.c: New file.
48144         * m4/truncf.m4: New file.
48145         * lib/math.in.h (truncf): New declaration.
48146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
48147         HAVE_DECL_TRUNCF.
48148         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
48149         HAVE_DECL_TRUNCF.
48150         * doc/functions/truncf.texi: Mention the 'truncf' module.
48151
48152 2007-10-03  Bruno Haible  <bruno@clisp.org>
48153
48154         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48155         augmentation also for tests modules.
48156         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
48157         * modules/atexit-tests (Makefile.am): Likewise.
48158         * modules/binary-io-tests (Makefile.am): Likewise.
48159         * modules/c-strcase-tests (Makefile.am): Likewise.
48160         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
48161         * modules/canonicalize-tests (Makefile.am): Likewise.
48162         * modules/closein-tests (Makefile.am): Likewise.
48163         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48164         * modules/freadahead-tests (Makefile.am): Likewise.
48165         * modules/fseek-tests (Makefile.am): Likewise.
48166         * modules/fseeko-tests (Makefile.am): Likewise.
48167         * modules/ftell-tests (Makefile.am): Likewise.
48168         * modules/ftello-tests (Makefile.am): Likewise.
48169         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
48170         * modules/isnanl-tests (Makefile.am): Likewise.
48171         * modules/lseek-tests (Makefile.am): Likewise.
48172         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48173         * modules/mbscasestr-tests (Makefile.am): Likewise.
48174         * modules/mbschr-tests (Makefile.am): Likewise.
48175         * modules/mbscspn-tests (Makefile.am): Likewise.
48176         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48177         * modules/mbspbrk-tests (Makefile.am): Likewise.
48178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48179         * modules/mbsrchr-tests (Makefile.am): Likewise.
48180         * modules/mbsspn-tests (Makefile.am): Likewise.
48181         * modules/mbsstr-tests (Makefile.am): Likewise.
48182         * modules/printf-posix-tests (Makefile.am): Likewise.
48183         * modules/snprintf-posix-tests (Makefile.am): Likewise.
48184         * modules/sprintf-posix-tests (Makefile.am): Likewise.
48185         * modules/tsearch-tests (Makefile.am): Likewise.
48186         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48187         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48188         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48189         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48190         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48191         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48192         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48193         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48194         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
48195         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
48196         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48197         * modules/xstrtol-tests (Makefile.am): Likewise.
48198         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48199         * modules/yesno-tests (Makefile.am): Likewise.
48200
48201 2007-10-03  Bruno Haible  <bruno@clisp.org>
48202
48203         * modules/trunc-tests: New file.
48204         * tests/test-trunc.c: New file.
48205
48206         * modules/trunc: New file.
48207         * lib/trunc.c: New file.
48208         * m4/trunc.m4: New file.
48209         * lib/math.in.h (trunc): New declaration.
48210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
48211         HAVE_DECL_TRUNC.
48212         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
48213         HAVE_DECL_TRUNC.
48214         * doc/functions/trunc.texi: Mention the 'trunc' module.
48215
48216 2007-10-03  Bruno Haible  <bruno@clisp.org>
48217
48218         * tests/test-fpending.c: New file, mostly copied
48219         from coreutils/lib/t-fpending.c.
48220         * modules/fpending-tests: New file.
48221
48222 2007-10-03  Bruno Haible  <bruno@clisp.org>
48223
48224         Port the stdio extensions to QNX (untested).
48225         * lib/fseterr.c (fseterr): Add support for QNX.
48226         * lib/fbufmode.c (fbufmode): Likewise.
48227         * lib/freadable.c (freadable): Likewise.
48228         * lib/fwritable.c (fwritable): Likewise.
48229         * lib/freading.c (freading): Likewise.
48230         * lib/fwriting.c (fwriting): Likewise.
48231         * lib/freadahead.c (freadahed): Likewise.
48232         * lib/fpurge.c (fpurge): Likewise.
48233         * lib/fseeko.c (rpl_fseeko): Likewise.
48234
48235 2007-10-03  Bruno Haible  <bruno@clisp.org>
48236             Jim Meyering  <jim@meyering.net>
48237             Eric Blake  <ebb9@byu.net>
48238
48239         * doc/relocatable.texi: Use @command instead of @program.
48240
48241 2007-10-02  Jim Meyering  <jim@meyering.net>
48242
48243         Perform one more "_.h" -> ".in.h" substitution.
48244         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
48245         instead of unistd_.h here, too.
48246
48247 2007-10-01  Bruno Haible  <bruno@clisp.org>
48248
48249         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
48250         Needed for the alloca-opt module.
48251
48252 2007-09-30  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/alloca.in.h: Renamed from lib/alloca_.h.
48255         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
48256         alloca_.h.
48257         * lib/argz.in.h: Renamed from lib/argz_.h.
48258         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
48259         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
48260         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
48261         byteswap_.h.
48262         * lib/dirent.in.h: Renamed from lib/dirent_.h.
48263         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
48264         dirent_.h.
48265         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
48266         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
48267         fcntl_.h.
48268         * lib/float.in.h: Renamed from lib/float_.h.
48269         * modules/float (Files, Makefile.am): Use float.in.h instead of
48270         float_.h.
48271         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
48272         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
48273         fnmatch_.h.
48274         * lib/getopt.in.h: Renamed from lib/getopt_.h.
48275         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
48276         getopt_.h.
48277         * lib/glob.in.h: Renamed from lib/glob_.h.
48278         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
48279         * lib/iconv.in.h: Renamed from lib/iconv_.h.
48280         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
48281         iconv_.h.
48282         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
48283         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
48284         inttypes_.h.
48285         * lib/locale.in.h: Renamed from lib/locale_.h.
48286         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
48287         locale_.h.
48288         * lib/math.in.h: Renamed from lib/math_.h.
48289         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
48290         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
48291         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
48292         of netinet_in_.h. Add dependency.
48293         * lib/poll.in.h: Renamed from lib/poll_.h.
48294         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
48295         * lib/search.in.h: Renamed from lib/search_.h.
48296         * modules/search (Files, Makefile.am): Use search.in.h instead of
48297         search_.h.
48298         * lib/signal.in.h: Renamed from lib/signal_.h.
48299         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
48300         _signal.h.
48301         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
48302         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
48303         stdbool_.h.
48304         * lib/stdint.in.h: Renamed from lib/stdint_.h.
48305         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
48306         stdint_.h.
48307         * lib/stdio.in.h: Renamed from lib/stdio_.h.
48308         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
48309         stdio_.h.
48310         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
48311         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
48312         stdlib_.h.
48313         * lib/string.in.h: Renamed from lib/string_.h.
48314         * modules/string (Files, Makefile.am): Use string.in.h instead of
48315         string_.h.
48316         * doc/gnulib-tool.texi (Initial import): Update.
48317         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
48318         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
48319         of sys_select_.h. Add dependency.
48320         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
48321         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
48322         of sys_socket_.h.
48323         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
48324         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
48325         sys_stat_.h.
48326         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
48327         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
48328         sys_time_.h.
48329         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
48330         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48331         sysexits_.h.
48332         * lib/time.in.h: Renamed from lib/time_.h.
48333         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48334         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48335         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48336         unistd_.h.
48337         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48338         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48339         wchar_.h.
48340         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48341         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48342         wctype_.h.
48343         * build-aux/bootstrap (slurp): Update.
48344         * lib/.cppi-disable: Update.
48345
48346 2007-09-30  Bruno Haible  <bruno@clisp.org>
48347
48348         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48349         Needed on BeOS.
48350
48351 2007-09-30  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48354
48355 2007-09-29  Bruno Haible  <bruno@clisp.org>
48356
48357         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48358
48359 2007-09-29  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48362         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48363         * build-aux/install-reloc: Compile also areadlink.c.
48364         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48365
48366 2007-09-29  Bruno Haible  <bruno@clisp.org>
48367
48368         * gnulib-tool (func_emit_initmacro_done): Indentation.
48369
48370 2007-09-29  Bruno Haible  <bruno@clisp.org>
48371
48372         * README: Add CVS checkout update instructions.
48373         Info from Bob Proulx <bob@proulx.com>.
48374
48375 2007-09-28  Eric Blake  <ebb9@byu.net>
48376
48377         Provide move-if-change.
48378         * build-aux/move-if-change: New file, based on best practice
48379         rather than any canonical upstream location.
48380
48381 2007-09-28  Jim Meyering  <jim@meyering.net>
48382
48383         Fix canonicalize loop-detection corner case.
48384         Do not attempt to stat the symlink values stored via seen_triple.
48385         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48386         on linux-2.6.18, (but not 2.6.22).
48387         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48388         triple_compare.  The former compares dev,ino,filename, while the latter
48389         would actually stat dirname(filename) when dev and ino were equal.
48390         * lib/hash-triple.c: Install <string.h>.
48391         (STREQ): Define.
48392         (triple_compare_ino_str): New function.
48393         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48394
48395 2007-09-28  Eric Blake  <ebb9@byu.net>
48396
48397         Enforce that AC_REPLACE_FUNCS files exist.
48398         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48399         override check for typos.
48400
48401         Fix test-closein on Solaris 10.
48402         * tests/test-closein.c (main): Don't assume stdin can be inherited
48403         closed on all systems.
48404         * tests/test-closein.sh: Likewise.
48405         Reported by Piotr Tarnowski.
48406
48407 2007-09-28  Jim Meyering  <jim@meyering.net>
48408
48409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48410
48411 2007-09-27  Jim Meyering  <jim@meyering.net>
48412
48413         canonicalize: Avoid a false-positive cycle failure.
48414         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48415         Sort.  Remove cycle-check.
48416         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48417         not cycle-check.h.
48418         (seen_triple): New function.
48419         (canonicalize_filename_mode): Use it instead of cycle-check.
48420         * tests/test-canonicalize.c: Add a test for this bug.
48421         * tests/test-canonicalize.sh: Set up and run the test.
48422
48423         New module, file-set, from coreutils.
48424         * modules/file-set: Define it.
48425         * lib/file-set.c, lib/file-set.h: Implement.
48426
48427         New module, hash-triple, from coreutils.
48428         * modules/hash-triple: Define it.
48429         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48430
48431 2007-09-25  Eric Blake  <ebb9@byu.net>
48432
48433         Fix strerror on Interix.
48434         * lib/string_.h (strerror): Declare replacement.
48435         * doc/functions/strerror.texi (strerror): Document the Interix
48436         shortcoming.
48437         * modules/string (Makefile.am): Support new hooks.
48438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48439         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48440         gl_FUNC_STRERROR_SEPARATE.
48441         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48442         * lib/strerror.c (rpl_strerror): Provide replacement.
48443         * modules/strerror (Depends-on): Add string.
48444         (configure.ac): Detect use of module.
48445         * tests/test-strerror.c: New file.
48446         * modules/strerror-tests: New test module.
48447         * modules/argp (Depends-on): Add strerror.
48448         * modules/error (Depends-on): Likewise.
48449         Reported by Martin Koeppe.
48450
48451 2007-09-24  Bruno Haible  <bruno@clisp.org>
48452
48453         * README: Update git instructions.
48454
48455 2007-09-24  Eric Blake  <ebb9@byu.net>
48456
48457         Revert fpending breakage from 2007-09-08.
48458         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48459         __fpending.c.
48460
48461 2007-09-24  Jim Meyering  <jim@meyering.net>
48462
48463         filenamecat.c: Add a test.
48464         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48465         showing how the function works when DIR is the empty string.
48466
48467 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48468
48469         * tests/test-canonicalize.sh: Turn on executable bit.
48470
48471 2007-09-19  Eric Blake  <ebb9@byu.net>
48472
48473         * README: Update CVS instructions.
48474
48475 2007-09-18  Bruno Haible  <bruno@clisp.org>
48476
48477         * modules/areadlink: New file.
48478         * lib/areadlink.h (areadlink): New declaration.
48479         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48480
48481 2007-09-17  Jim Meyering  <jim@meyering.net>
48482
48483         * lib/savewd.c (ESTALE) [!defined]: Define.
48484         Reported to be required on Interix by Martin Koeppe.
48485
48486 2007-09-17  Bruno Haible  <bruno@clisp.org>
48487
48488         * gnulib-tool (func_version): Use $version.
48489
48490 2007-09-16  Bruno Haible  <bruno@clisp.org>
48491
48492         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48493         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48494         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48495         Reported by Greg Schafer <gschafer@zip.com.au>.
48496
48497 2007-09-15  Bruno Haible  <bruno@clisp.org>
48498
48499         * gnulib-tool (sed): Try a little harder to make bash understand the
48500         alias.
48501         Reported by Bruce Korb <bruce.korb@gmail.com>.
48502
48503 2007-09-13  Eric Blake  <ebb9@byu.net>
48504
48505         * ChangeLog: Remove conflict markers.
48506
48507 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48508
48509         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48510         Reported by Bruno Haible <bruno@clisp.org>.
48511
48512 2007-09-12  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48515         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48516         is not defined.
48517
48518 2007-09-12  Eric Blake  <ebb9@byu.net>
48519
48520         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48522         Autoconf definition.
48523         * modules/euidaccess (Depends-on): Add extensions, for
48524         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48525         * modules/fnmatch (Depends-on): Likewise.
48526         * modules/getaddrinfo (Depends-on): Likewise.
48527         * modules/getdelim (Depends-on): Likewise.
48528         * modules/getline (Depends-on): Likewise.
48529         * modules/getsubopt (Depends-on): Likewise.
48530         * modules/gettext (Depends-on): Likewise.
48531         * modules/group-member (Depends-on): Likewise.
48532         * modules/mbchar (Depends-on): Likewise.
48533         * modules/memmem (Depends-on): Likewise.
48534         * modules/mempcpy (Depends-on): Likewise.
48535         * modules/memrchr (Depends-on): Likewise.
48536         * modules/pagealign_alloc (Depends-on): Likewise.
48537         * modules/readutmp (Depends-on): Likewise.
48538         * modules/stpcpy (Depends-on): Likewise.
48539         * modules/stpncpy (Depends-on): Likewise.
48540         * modules/strchrnul (Depends-on): Likewise.
48541         * modules/strndup (Depends-on): Likewise.
48542         * modules/strsep (Depends-on): Likewise.
48543         * modules/strverscmp (Depends-on): Likewise.
48544         * modules/vasprintf (Depends-on): Likewise.
48545         * modules/wcwidth (Depends-on): Likewise.
48546         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48547         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48548         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48550         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48551         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48552         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48553         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48554         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48555         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48556         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48559         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48560         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48561         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48562         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48563         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48567         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48568         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48569         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48570         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48572         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48573         so that lock.m4 can be used in gettext without extensions module.
48574
48575 2007-09-11  Bruno Haible  <bruno@clisp.org>
48576
48577         * m4/isc-posix.m4: Remove file.
48578         Suggested by Eric Blake.
48579
48580 2007-09-11  Eric Blake  <ebb9@byu.net>
48581
48582         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48583
48584 2007-09-10  Bruno Haible  <bruno@clisp.org>
48585
48586         * posix-modules: Fix typo in error message.
48587         Reported by Matt <mkraai@beckman.com>.
48588
48589 2007-09-09  Bruno Haible  <bruno@clisp.org>
48590
48591         * doc/functions/getdelim.texi: Update list of platforms lacking the
48592         function.
48593         * doc/functions/getline.texi: Likewise.
48594
48595 2007-09-09  Jim Meyering  <jim@meyering.net>
48596
48597         * lib/hash.c (hash_initialize): Detect calloc failure.
48598         Reported by Bruno Haible.
48599
48600 2007-09-09  Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48603         malloc or realloc fails.
48604
48605 2007-09-09  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/getcwd (Depends-on): Add malloc-posix.
48608         * modules/glob (Depends-on): Likewise.
48609         * modules/putenv (Depends-on): Likewise.
48610         * modules/strdup (Depends-on): Likewise.
48611         * modules/getdelim (Depends-on): Add realloc-posix.
48612         * modules/read-file (Depends-on): Likewise.
48613
48614 2007-09-09  Bruno Haible  <bruno@clisp.org>
48615
48616         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48617         (gl_FUNC_MALLOC_POSIX): Require it.
48618         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48619         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48620         * modules/realloc (Files): Add m4/malloc.m4.
48621         * modules/calloc (Files): Likewise.
48622
48623 2007-09-09  Bruno Haible  <bruno@clisp.org>
48624
48625         * modules/malloc-posix: New file.
48626         * modules/malloc (Depends-on): Add malloc-posix.
48627         * lib/malloc.c: Include errno.h.
48628         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48629         and a POSIX-compatible malloc into a single function. Set ENOMEM
48630         when returning NULL.
48631         * m4/malloc.m4: New file.
48632         * doc/functions/malloc.texi: Mention the malloc-posix module.
48633         * lib/stdlib_.h (malloc): New declaration.
48634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48635         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48636         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48637         and HAVE_MALLOC_POSIX.
48638
48639 2007-09-09  Bruno Haible  <bruno@clisp.org>
48640
48641         * modules/realloc-posix: New file.
48642         * modules/realloc (Depends-on): Add realloc-posix.
48643         * lib/realloc.c: Include errno.h.
48644         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48645         and a POSIX-compatible realloc into a single function. Set ENOMEM
48646         when returning NULL.
48647         * m4/realloc.m4: New file.
48648         * doc/functions/realloc.texi: Mention the realloc-posix module.
48649         * lib/stdlib_.h (realloc): New declaration.
48650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48651         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48652         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48653         and HAVE_REALLOC_POSIX.
48654
48655 2007-09-09  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/calloc-posix: New file.
48658         * modules/calloc (Depends-on): Add calloc-posix.
48659         * lib/calloc.c: Include errno.h.
48660         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48661         and a POSIX-compatible calloc into a single function. Set ENOMEM
48662         when returning NULL.
48663         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48664         * doc/functions/calloc.texi: Mention the calloc-posix module.
48665         * lib/stdlib_.h (calloc): New declaration.
48666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48667         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48668         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48669         and HAVE_CALLOC_POSIX.
48670
48671 2007-09-09  Bruno Haible  <bruno@clisp.org>
48672
48673         Allow for modules to show an arbitrary notice.
48674         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48675         * gnulib-tool: New option --extract-notice.
48676         (func_usage): Document it.
48677         (sed_extract_prog): Update.
48678         (func_get_notice): New function.
48679         (func_modules_notice): New function.
48680         (func_import, func_create_testdir): Invoke it.
48681         Suggested by Jim Meyering.
48682
48683 2007-09-09  Bruno Haible  <bruno@clisp.org>
48684
48685         * gnulib-tool: New options --verbose, --quiet.
48686         (func_usage): Document them.
48687         (verbose): New variable.
48688         (func_execute_command): New function.
48689         (func_import): Don't show the module list and the file list if
48690         $verbose < 0.
48691         (func_create_testdir): Likewise. Use func_execute_command.
48692         (func_create_megatestdir): Use func_execute_command.
48693
48694 2007-09-08  Bruno Haible  <bruno@clisp.org>
48695
48696         * gnulib-tool (func_import): Prefer rsync over wget when available,
48697         for fetching the PO files.
48698
48699 2007-09-08  Bruno Haible  <bruno@clisp.org>
48700
48701         * posix-modules: New file. Portions copied from gnulib-tool.
48702         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48703
48704 2007-09-08  Jim Meyering  <jim@meyering.net>
48705
48706         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48707         * lib/fpending.h: Rename from __fpending.h.
48708         * lib/fpending.c: Rename from __fpending.c.
48709         Include "fpending.h", not "__fpending.h".
48710         * lib/__fpending.h, lib/__fpending.c: Remove files.
48711         * modules/fpending (Files): Reflect new file names.
48712         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48713
48714 2007-09-08  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/inttypes-h.m4: Remove stub file.
48717
48718 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48719
48720         * doc/headers/stdint.texi: Discuss #include_next issue.
48721
48722 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48725
48726 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48727
48728         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48729         in variable name.
48730
48731 2007-09-03  Jim Meyering  <jim@meyering.net>
48732
48733         New module: git-version-gen.
48734         * modules/git-version-gen: New file.
48735
48736         Import changes from coreutils for bootstrap script.
48737
48738         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48739
48740         bootstrap: uses rsync to download the .po files
48741         * build-aux/bootstrap (po_download_command_format): New global.
48742         (download_po_files): Use rsync.
48743         (update_po_files): Don't remove .po files after download,
48744         so future rsync runs can take advantage of the copies.
48745
48746         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48747
48748         Solve the unnecessary-.po-file-regeneration problem once and for all.
48749         * build-aux/bootstrap (download_po_files): New function, renamed from
48750         get_translations.  Now, downloads, but doesn't update LINGUAS.
48751         (update_po_files): New function.
48752
48753         bootstrap: Ignore more.
48754         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48755         uniwidth to e.g., lib/.gitignore.
48756         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48757
48758         * build-aux/bootstrap: New setting: vc_ignore.
48759         (insert_sorted_if_absent): Create $file if absent.
48760         Adapt to new, possibly empty, list: $vc_ignore.
48761
48762         bootstrap: generate more ignorable names
48763         * build-aux/bootstrap (slurp): When generating ignorable names,
48764         also map .sin to .sed, .gperf to .c, and .y to .c.
48765
48766 2007-09-03  Jim Meyering  <jim@meyering.net>
48767
48768         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48769         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48770
48771 2007-09-02  Bruno Haible  <bruno@clisp.org>
48772
48773         Fix mis-recognition of 'mcs' on QNX 6.
48774         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48775         output contains the string "Mono".
48776         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48777         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48778
48779 2007-09-01  Bruno Haible  <bruno@clisp.org>
48780
48781         Fix collision between uniwidth/* and linebreak modules.
48782         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48783         u32_width): Remove declarations.
48784         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48785         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48786         streq3, streq2, streq1, streq0): Remove functions.
48787         (STREQ): Remove macro.
48788         (is_cjk_encoding): Remove function.
48789         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48790         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48791         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48792         * NEWS: Document the change.
48793
48794 2007-09-01  Bruno Haible  <bruno@clisp.org>
48795
48796         * lib/streq.h: Add double-inclusion guard.
48797
48798 2007-09-01  Karl Berry  <karl@gnu.org>
48799
48800         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48801
48802 2007-08-28  Jim Meyering  <jim@meyering.net>
48803
48804         Rename mreadlink_with_size to areadlink_with_size.
48805         * NEWS: Document the change.
48806         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48807         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48808         * lib/mreadlink.h: Rename this to...
48809         * lib/areadlink.h: ...this.
48810         * modules/mreadlink-with-size: Rename this to...
48811         * modules/areadlink-with-size: ...this.
48812         * lib/canonicalize.c: Reflect the renaming.
48813         * modules/canonicalize: Likewise.
48814
48815 2007-08-26  Bruno Haible  <bruno@clisp.org>
48816
48817         * gnulib-tool (func_import): When deciding which files to remove,
48818         consider also dangling symbolic links.
48819         Reported by Eric Blake.
48820
48821 2007-08-26  Bruno Haible  <bruno@clisp.org>
48822
48823         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48824
48825 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48826
48827         * lib/readline.c: Don't include getline.h, the prototype is now
48828         found in stdio.h.
48829
48830 2007-08-23  Jim Meyering  <jim@meyering.net>
48831
48832         Getdelim touchup.
48833         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48834         around the funlockfile call, since funlockfile never sets errno.
48835         Don't set errno upon failed realloc.
48836
48837 2007-08-22  Eric Blake  <ebb9@byu.net>
48838
48839         Getline touchups.
48840         * lib/getdelim.c (getdelim): Revert regression that required *n to
48841         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48843         getdelim, rather than whether implementation is missing.
48844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48845         * lib/stdio_.h (getline): Also declare if replacement is
48846         required.
48847         * doc/functions/getdelim.texi: New file.
48848         * doc/functions/getline.texi: Likewise.
48849         * doc/gnulib.texi (Function Substitutes): Add new files.
48850         Reported by Bruno Haible.
48851
48852 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48853
48854         * users.txt: Add Guile.
48855
48856 2007-08-22  Eric Blake  <ebb9@byu.net>
48857
48858         * tests/test-getdelim.c (main): Use remove, not unlink.
48859         * tests/test-getline.c (main): Likewise.
48860
48861         Move getline and getdelim into stdio.h, per POSIX 200x.
48862         * modules/getline (Files): Remove getline.h.
48863         (Depends-on): Add stdio.
48864         (configure.ac): Add module indicator.
48865         * modules/getdelim (Files): Remove getdelim.h.
48866         (Depends-on): Add stdio.
48867         (configure.ac): Add module indicator.
48868         * modules/stdio (Makefile.am): Work with new indicators.
48869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48872         * lib/getdelim.h: Delete.
48873         * lib/getline.h: Delete.
48874         * lib/stdio_.h (getdelim, getline): Declare.
48875         * modules/getdelim-tests: New module.
48876         * modules/getline-tests: Likewise.
48877         * tests/test-getdelim.c: New file.
48878         * tests/test-getline.c: Likewise.
48879         * NEWS: Document the change.
48880         * lib/getline.c: Update choice of header.
48881         * lib/csharpcomp.c: Likewise.
48882         * lib/getpass.c: Likewise.
48883         * lib/javacomp.c: Likewise.
48884         * lib/javaversion.c: Likewise.
48885         * lib/yesno.c: Likewise.
48886         * lib/getdelim.c: Likewise.
48887         (getdelim): Set errno on failure, and avoid memory leak.
48888
48889 2007-08-19  Bruno Haible  <bruno@clisp.org>
48890
48891         * modules/closein (Depends-on): Add freadahead.
48892         * lib/closein.c: Include freadahead.h.
48893         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48894         is zero.
48895
48896 2007-08-19  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/freadahead-tests: New file.
48899         * tests/test-freadahead.sh: New file.
48900         * tests/test-freadahead.c: New file.
48901
48902         * modules/freadahead: New file.
48903         * lib/freadahead.h: New file.
48904         * lib/freadahead.c: New file.
48905         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48906         fbufmode, fpurge, freadable, fwritable.
48907
48908 2007-08-19  Eric Blake  <ebb9@byu.net>
48909
48910         Test yesno in combination with closein.
48911         * lib/yesno.c (yesno): Document use of stdin.
48912         * modules/yesno-tests (Files): New module.
48913         * tests/test-yesno.c (main): New file.
48914         * tests/test-yesno.sh: Likewise.
48915
48916 2007-08-19  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48919         * lib/fseeko.c (rpl_fseeko): Likewise.
48920         * lib/fseterr.c (fseterr): Likewise.
48921
48922 2007-08-19  Bruno Haible  <bruno@clisp.org>
48923
48924         * tests/test-lseek.c (main): Disable a test for BeOS.
48925         * doc/functions/lseek.texi: Document the BeOS bug.
48926
48927 2007-08-19  Bruno Haible  <bruno@clisp.org>
48928             Eric Blake  <ebb9@byu.net>
48929
48930         * lib/lseek.c: Include <sys/stat.h>.
48931         (rpl_lseek): Add workaround code also for Unix platforms.
48932         Needed for BeOS.
48933         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48934         * doc/functions/lseek.texi: Document BeOS definiency.
48935
48936 2007-08-18  Bruno Haible  <bruno@clisp.org>
48937
48938         * modules/fstrcmp-tests: New file.
48939         * tests/test-fstrcmp.c: New file.
48940
48941 2007-08-18  Bruno Haible  <bruno@clisp.org>
48942
48943         * modules/fstrcmp: New file, from GNU gettext with modifications.
48944         * lib/fstrcmp.h: New file, from GNU gettext.
48945         * lib/fstrcmp.c: New file, from GNU gettext.
48946         * MODULES.html.sh (String handling): Add fstrcmp.
48947
48948 2007-08-18  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48951         'bool'.
48952         (diag, compareseq): Remove const from the ctxt argument.
48953         (USE_HEURISTIC): Undefine at the end.
48954
48955 2007-08-18  Jim Meyering  <jim@meyering.net>
48956
48957         New file: lib/idcache.h
48958         * NEWS: Mention the addition.
48959         * modules/idcache (Files): Add lib/idcache.h
48960         * lib/idcache.c: Include "idcache.h".
48961         Don't include <sys/types.h>.
48962         Add a FIXME comment.
48963         Move file-scoped "static" declarations to the top.
48964         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48965
48966 2007-08-17  Bruno Haible  <bruno@clisp.org>
48967         and Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * MODULES.html.sh: Add diffseq.
48970         * modules/diffseq: New file.
48971         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48972         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48973
48974 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48975
48976         Import changes from coreutils for bootstrap script.
48977
48978         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * build-aux/bootstrap (slurp): Work even in environments where
48981         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48982         current code does not slurp files whose names start with ".", and
48983         this looks like it might be a troublesome area.
48984
48985         2007-07-11  Jim Meyering  <jim@meyering.net>
48986
48987         If there's a GPL vN copyright comment, require that N == 3.
48988
48989         2007-07-08  Jim Meyering  <jim@meyering.net>
48990
48991         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48992         * build-aux/bootstrap (mam_template): Move definition out of loop.
48993
48994         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48995
48996         * build-aux/bootstrap (symlink_to_dir): Rename function from
48997         symlink_to_gnulib.  Add a directory parameter.  Update all
48998         callers.
48999         (cp_mark_as_generated): Also check for -- and link to -- files in
49000         gl/.
49001
49002         2007-07-08  Jim Meyering  <jim@meyering.net>
49003
49004         Adapt to deeper hierarchy in gnulib.
49005         * build-aux/bootstrap (symlink_to_dir): If the destination
49006         directory doesn't exist, create it. This is required at least for
49007         "lib/uniwidth/cjk.h".
49008
49009         2007-05-15  Jim Meyering  <jim@meyering.net>
49010
49011         * build-aux/bootstrap: Now that generated Makefile.am files
49012         are no longer under version control, they must be created at
49013         bootstrap time.
49014
49015 2007-08-14  Ben Pfaff  <blp@gnu.org>
49016
49017         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
49018
49019 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
49020
49021         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
49022         given the changes below.
49023         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
49024         even on hosts that have padding bits beyond the supported 64.
49025
49026 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49027
49028         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
49029         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
49030         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
49031         depends on it.
49032         (xstrtol_error): Remove.
49033         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
49034         but with a different signature.
49035         (ATTRIBUTE_NORETURN, __attribute__): New macros.
49036         * lib/xstrtol-error.c: Include exitfail.h.
49037         (xstrtol_fatal): New function, with a different signature from the
49038         old xstrtol_error, so that the caller need not worry about passing
49039         in an exit status, or about storage management of the option argument.
49040         (xstrtol_error): Now a static function.  Redo signature to
49041         implement xstrtol_fatal.  Output the correct number of hyphens in
49042         front of the option so that the caller need not worry about
49043         storage management.
49044         (N_): New macro.
49045         (_): Remove; not used now.
49046         * modules/xstrtol: Depend on getopt.
49047         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
49048         of old STRTOL_FATAL_ERROR macro.
49049         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
49050         of test program.
49051         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
49052         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
49053
49054 2007-08-08  Eric Blake  <ebb9@byu.net>
49055
49056         * lib/xstrtol-error.c: Add missing include.
49057
49058         Move xstrtol messages into gnulib domain, when --pobase is used.
49059         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
49060         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
49061         * modules/xstrtol (Files): Distribute new file.
49062         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
49063         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
49064         * tests/test-xstrtol.c: ...into new file.
49065         * tests/test-xstrtoul.c: Also test xstrtoul.
49066         * tests/test-xstrtoimax.c: Also test xstrtoimax.
49067         * tests/test-xstrtoumax.c: Also test xstrtoumax.
49068         * tests/test-xstrtol.sh: Drive the tests.
49069         * tests/test-xstrtoimax.sh: Likewise.
49070         * tests/test-xstrtoumax.sh: Likewise.
49071         * modules/xstrtol-tests: New module.
49072         * modules/xstrtoimax-tests: Likewise.
49073         * modules/xstrtoumax-tests: Likewise.
49074
49075 2007-08-08  Jim Meyering  <jim@meyering.net>
49076
49077         New function: mfile_name_concat.
49078         * lib/filenamecat.c (mfile_name_concat): New function, just like
49079         file_name_concat, but return NULL upon failure rather than exiting
49080         with a diagnostic.
49081         * lib/filenamecat.h: Declare it.
49082
49083 2007-08-07  Bruno Haible  <bruno@clisp.org>
49084
49085         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
49086         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
49087         warning from gcc.
49088         Reported by Eric Blake.
49089
49090 2007-08-07  Simon Josefsson  <simon@josefsson.org>
49091
49092         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
49093         * modules/crypto/arcfour (License): Likewise.
49094         * modules/crypto/des-tests (License): Likewise.
49095         * modules/crypto/gc-arctwo-tests (License): Likewise.
49096         * modules/crypto/gc-des-tests (License): Likewise.
49097         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
49098         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
49099         * modules/crypto/gc-md2-tests (License): Likewise.
49100         * modules/crypto/gc-md4-tests (License): Likewise.
49101         * modules/crypto/gc-md5-tests (License): Likewise.
49102         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
49103         * modules/crypto/gc-rijndael-tests (License): Likewise.
49104         * modules/crypto/gc-sha1-tests (License): Likewise.
49105         * modules/crypto/gc-tests (License): Likewise.
49106         * modules/crypto/hmac-md5 (License): Likewise.
49107         * modules/crypto/hmac-sha1 (License): Likewise.
49108         * modules/crypto/md2-tests (License): Likewise.
49109         * modules/crypto/md4-tests (License): Likewise.
49110         * modules/crypto/md5 (License): Likewise.
49111         * modules/crypto/rijndael (License): Likewise.
49112         * modules/crypto/sha1 (License): Likewise.
49113         * modules/memxor (License): Likewise.
49114
49115 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
49116         and Bruno Haible  <bruno@clisp.org>
49117
49118         * NEWS: Describe interface changes to human, xstrtol.
49119         * lib/human.h: Include <xstrtol.h>.
49120         (human_options): Return enum strtol_error, not int.  Remove
49121         bool arg; take int * instead.
49122         * lib/human.c: Don't include "gettext.h".
49123         (_): Remove; no longer used.
49124         Don't include <xstrtol.h>, since human.h does it.
49125         (human_options): Adjust to abovementioned interface changes.
49126         Do not report error to stderr; that's now the caller's
49127         responsibility.
49128         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
49129         interface change.
49130         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
49131         Str, Argument_type_string.  All uses changed.  Put " argument"
49132         in diagnostics to make them clearer.  Change wording of suffix
49133         message for clarity.
49134         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
49135         Argument_type_string.
49136         (STRTOL_FATAL_WARN): Remove; no longer used.
49137         * modules/human (Depends-on): Remove gettext-h.
49138
49139 2007-08-06  Simon Josefsson  <simon@josefsson.org>
49140
49141         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
49142
49143 2007-07-31  Bruno Haible  <bruno@clisp.org>
49144
49145         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
49146         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
49147         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
49148
49149 2007-07-31  Bruno Haible  <bruno@clisp.org>
49150
49151         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
49152         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
49153
49154 2007-07-30  Bruno Haible  <bruno@clisp.org>
49155
49156         * modules/base64 (License): Use the synonymous term "LGPLv2+".
49157         * modules/c-ctype (License): Likewise.
49158         * modules/c-strcase (License): Likewise.
49159         * modules/check-version (License): Likewise.
49160         * modules/iconv (License): Likewise.
49161         * modules/iconv_open (License): Likewise.
49162         * modules/read-file (License): Likewise.
49163         * modules/striconv (License): Likewise.
49164         * modules/strverscmp (License): Likewise.
49165         * modules/vasprintf (License): Likewise.
49166         * modules/crypto/des (License): Likewise.
49167         * modules/crypto/gc (License): Likewise.
49168         * modules/crypto/gc-arcfour (License): Likewise.
49169         * modules/crypto/gc-arctwo (License): Likewise.
49170         * modules/crypto/gc-des (License): Likewise.
49171         * modules/crypto/gc-hmac-md5 (License): Likewise.
49172         * modules/crypto/gc-hmac-sha1 (License): Likewise.
49173         * modules/crypto/gc-md2 (License): Likewise.
49174         * modules/crypto/gc-md4 (License): Likewise.
49175         * modules/crypto/gc-md5 (License): Likewise.
49176         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
49177         * modules/crypto/gc-random (License): Likewise.
49178         * modules/crypto/gc-rijndael (License): Likewise.
49179         * modules/crypto/gc-sha1 (License): Likewise.
49180         * modules/crypto/md2 (License): Likewise.
49181         * modules/crypto/md4 (License): Likewise.
49182
49183 2007-07-30  Jim Meyering  <jim@meyering.net>
49184
49185         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
49186         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
49187         it has valid stat data.  This bug would cause du not to count the
49188         sizes of inaccessible directories.
49189         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
49190         in <http://bugzilla.redhat.com/250077>.
49191
49192 2007-07-25  Peter O'Gorman  <peter@pogma.com>
49193             Bruno Haible  <bruno@clisp.org>
49194
49195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
49196         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
49197         #include_next, gives a diagnostic about it, but reports no error in
49198         the exit code.
49199         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49200
49201 2007-07-24  Ben Pfaff  <blp@gnu.org>
49202
49203         Improve name: "count-one-bits" is better than "popcount".
49204         * MODULES.html.sh: Update name.
49205         * lib/popcount.h: Renamed lib/count-one-bits.h.
49206         (popcount): Renamed count_one_bits.
49207         (popcountl): Renamed count_one_bits_l.
49208         (popcountll): Renamed count_one_bits_ll.
49209         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
49210         * modules/popcount: Renamed module/count-one-bits.
49211         * modules/popcount-tests: Renamed module/count-one-bits-tests.
49212         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
49213
49214 2007-07-23  Ben Pfaff  <blp@gnu.org>
49215
49216         * lib/popcount.h (popcount32): Reduce size of constants, to allow
49217         better code generation, and add U to large constants to avoid
49218         warnings, in non-GCC case.
49219         Suggested by Bruno Haible.
49220
49221 2007-07-23  Ben Pfaff  <blp@gnu.org>
49222
49223         * lib/popcount.h: Use verify_true instead of if...abort.
49224         * modules/popcount: Depend on verify module.
49225         Suggested by Jim Meyering.
49226
49227 2007-07-23  Bruno Haible  <bruno@clisp.org>
49228
49229         * gnulib-tool (func_import): Create a .cvsignore file also when the
49230         directory is not yet in CVS but the toplevel directory is. When
49231         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
49232         Reported by Karl Berry.
49233
49234 2007-07-22  Ben Pfaff  <blp@gnu.org>
49235
49236         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
49237         case.
49238         Suggested by Eric Blake.
49239
49240 2007-07-22  Ben Pfaff  <blp@gnu.org>
49241
49242         New module: popcount.
49243         * MODULES.html.sh: Add popcount.
49244         * modules/popcount: New file.
49245         * modules/popcount-tests: New file.
49246         * tests/test-popcount.c: New file.
49247         * lib/popcount.h: New file.
49248         * m4/popcount.m4: New file.
49249
49250 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49251
49252         * build-aux/announce-gen: Update to GPLv3.
49253
49254         * build-aux/config.guess: Update from config.
49255
49256 2007-07-21  Bruno Haible  <bruno@clisp.org>
49257
49258         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
49259         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
49260
49261 2007-07-20  Jim Meyering  <jim@meyering.net>
49262
49263         * check-module: Diagnose a self-dependency.
49264
49265 2007-07-19  Bruno Haible  <bruno@clisp.org>
49266
49267         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
49268         empty.
49269         Reported by Eric Blake.
49270
49271 2007-07-18  Bruno Haible  <bruno@clisp.org>
49272
49273         * gnulib-tool: New options --po-base, --po-domain.
49274         (func_usage): Document them.
49275         (pobase, po_domain): New variables.
49276         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
49277         DEFAULT_TEXT_DOMAIN.
49278         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
49279         (func_import): Consider pobase and po_domain. Create a po/ directory.
49280         (func_create_testdir): Set pobase and po_domain to empty.
49281         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
49282         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
49283
49284 2007-07-18  Bruno Haible  <bruno@clisp.org>
49285
49286         * gnulib-tool (func_get_automake_snippet): Synthesize also an
49287         EXTRA_DIST augmentation for files in build-aux/.
49288
49289 2007-07-16  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/lseek (License): Use the synonymous term "LGPLv2+".
49292         * modules/getdelim (License): Likewise.
49293
49294 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49295
49296         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
49297         * modules/d-type (License): Likewise.
49298         * modules/extensions (License): Likewise.
49299         * modules/fnmatch (License): Likewise.
49300         * modules/fseeko (License): Likewise.
49301         * modules/getaddrinfo (License): Likewise.
49302         * modules/getline (License): Likewise.
49303         * modules/getlogin_r (License): Likewise.
49304         * modules/getpass (License): Likewise.
49305         * modules/gettimeofday (License): Likewise.
49306         * modules/glob (License): Likewise.
49307         * modules/inet_ntop (License): Likewise.
49308         * modules/malloc (License): Likewise.
49309         * modules/malloca (License): Likewise.
49310         * modules/memmem (License): Likewise.
49311         * modules/mempcpy (License): Likewise.
49312         * modules/memset (License): Likewise.
49313         * modules/minmax (License): Likewise.
49314         * modules/mktime (License): Likewise.
49315         * modules/netinet_in (License): Likewise.
49316         * modules/pathmax (License): Likewise.
49317         * modules/poll (License): Likewise.
49318         * modules/regex (License): Likewise.
49319         * modules/snprintf (License): Likewise.
49320         * modules/stdbool (License): Likewise.
49321         * modules/stdint (License): Likewise.
49322         * modules/stdio (License): Likewise.
49323         * modules/strcase (License): Likewise.
49324         * modules/strcasestr (License): Likewise.
49325         * modules/strdup (License): Likewise.
49326         * modules/string (License): Likewise.
49327         * modules/strndup (License): Likewise.
49328         * modules/strnlen (License): Likewise.
49329         * modules/strpbrk (License): Likewise.
49330         * modules/strptime (License): Likewise.
49331         * modules/strsep (License): Likewise.
49332         * modules/sys_select (License): Likewise.
49333         * modules/sys_socket (License): Likewise.
49334         * modules/sys_stat (License): Likewise.
49335         * modules/sys_time (License): Likewise.
49336         * modules/time (License): Likewise.
49337         * modules/time_r (License): Likewise.
49338         * modules/timegm (License): Likewise.
49339         * modules/unistd (License): Likewise.
49340         * modules/vsnprintf (License): Likewise.
49341         * modules/wctype (License): Likewise.
49342
49343 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49344
49345         * modules/argz (License): LGPLv2+.
49346
49347 2007-07-15  Karl Berry  <karl@gnu.org>
49348
49349         * doc/gnulib.texi: revise node structure per new fdl.texi.
49350
49351 2007-07-14  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49354         the output file.
49355         * lib/uniname/uninames.h: Regenerated.
49356
49357 2007-07-14  Karl Berry  <karl@gnu.org>
49358
49359         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49360         omitting sectioning and index commands.
49361
49362 2007-07-13  Bruno Haible  <bruno@clisp.org>
49363
49364         New gnulib-tool option --more-symlinks.
49365         * gnulib-tool (func_usage): Document --more-symlinks.
49366         (do_copyrights): New variable.
49367         Recognize option --more-symlinks.
49368         (func_import): Don't add a copyright notice transform to
49369         sed_transform_lib_file if do_copyrights is empty.
49370
49371 2007-07-13  Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/vasnprintf.c (decimal_point_char): Define also if
49374         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49375         && !NEED_PRINTF_DIRECTIVE_A.
49376         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49377         Gary V. Vaughan <gary@gnu.org>.
49378
49379 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * lib/inttypes_.h: Undo previous change, since it was fixed
49382         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49383
49384 2007-07-13  Bruno Haible  <bruno@clisp.org>
49385
49386         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49387         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49388
49389 2007-07-13  Jim Meyering  <jim@meyering.net>
49390
49391         df: Don't fail for Tru64's "file-on-file mount".
49392         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49393         so we fall through and use statfs instead.  Details here:
49394         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49395         Reported by Albert Chin.
49396
49397 2007-07-13  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49400         * modules/configmake (License): Likewise.
49401         * modules/gettext (License): Likewise.
49402         * modules/gettext-h (License): Likewise.
49403         * modules/include_next (License): Likewise.
49404         * modules/link-warning (License): Likewise.
49405         * modules/localcharset (License): Likewise.
49406         * modules/localename (License): Likewise.
49407         * modules/lock (License): Likewise.
49408         * modules/relocatable-lib-lgpl (License): Likewise.
49409         * modules/size_max (License): Likewise.
49410         * modules/vasnprintf (License): Likewise.
49411         * modules/wchar (License): Likewise.
49412         * modules/xsize (License): Likewise.
49413
49414 2007-07-13  Bruno Haible  <bruno@clisp.org>
49415
49416         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49417         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49418
49419 2007-07-12  Bruno Haible  <bruno@clisp.org>
49420
49421         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49422         in the modules files.
49423
49424 2007-07-11  Karl Berry  <karl@gnu.org>
49425
49426         * MODULES.html.sh (func_module): use
49427          sed -e '\|^'"${includefile}"'$|d'
49428          instead of /.../d, to avoid errors on $includefile's containing /.
49429
49430 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49431
49432         * gnulib-tool (func_import): Avoid duplication of --avoid
49433         statements
49434         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49435         names to `_' in variable names.
49436
49437 2007-07-10  Eric Blake  <ebb9@byu.net>
49438
49439         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49440         * NEWS: Document this change.
49441
49442 2007-07-08  Bruno Haible  <bruno@clisp.org>
49443
49444         Update to Unicode 5.0.
49445         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49446         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49447         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49448         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49449         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49450         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49451         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49452         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49453         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49454         U+10A3F, U+1D242..U+1D244.
49455         (nonspacing_table_ind): Update.
49456         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49457         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49458
49459 2007-07-08  Bruno Haible  <bruno@clisp.org>
49460
49461         Update to Unicode 5.0.
49462         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49463         code transform. Extend the name index field of unicode_name_to_code and
49464         unicode_code_to_name from 16 to 24 bits.
49465         * lib/uniname/uniname.c (unicode_character_name,
49466         unicode_name_character): Add the range 0x12xxx to the code transform.
49467         * lib/uniname/uninames.h: Regenerated.
49468         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49469
49470 2007-07-07  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/wcwidth-tests: New file.
49473         * tests/test-wcwidth.c: New file.
49474
49475         Work around MacOS X wcwidth() bug.
49476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49477         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49478         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49479         original wcwidth in non-UTF-8 locales.
49480         * modules/wcwidth (Depends-on): Add localcharset, streq,
49481         uniwidth/width.
49482         * doc/functions/wcwidth.texi: Update.
49483
49484 2007-07-07  Bruno Haible  <bruno@clisp.org>
49485
49486         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49487         (wcwidth): New declaration.
49488         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49489         macros.
49490         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49491         here. Prepare for creating <wchar.h> unconditionally.
49492         * modules/wchar (Depends-on): Add link-warning.
49493         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49494         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49495         * lib/wcwidth.h: Remove file.
49496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49497         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49498         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49499         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49500         (Include): Replace wcwidth.h with <wchar.h>.
49501         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49502         * lib/mbchar.h: Don't include wcwidth.h.
49503         * lib/mbswidth.c: Likewise.
49504         * NEWS: Mention the change.
49505
49506 2007-07-07  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49509         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49510         definition with an external declaration.
49511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49512         defined as a function. Remove AC_C_INLINE requirement.
49513         * modules/wcwidth (Files): Add lib/wcwidth.c.
49514         (Makefile.am): Remove redundant statement.
49515
49516 2007-07-07  Bruno Haible  <bruno@clisp.org>
49517
49518         * MODULES.html.sh (Unicode string functions): Add the new modules.
49519
49520         * tests/uniwidth/test-u32-strwidth.c: New file.
49521         * modules/uniwidth/u32-strwidth-tests: New file.
49522
49523         * lib/uniwidth/u32-strwidth.c: New file.
49524         * modules/uniwidth/u32-strwidth: New file.
49525
49526         * tests/uniwidth/test-u16-strwidth.c: New file.
49527         * modules/uniwidth/u16-strwidth-tests: New file.
49528
49529         * lib/uniwidth/u16-strwidth.c: New file.
49530         * modules/uniwidth/u16-strwidth: New file.
49531
49532         * tests/uniwidth/test-u8-strwidth.c: New file.
49533         * modules/uniwidth/u8-strwidth-tests: New file.
49534
49535         * lib/uniwidth/u8-strwidth.c: New file.
49536         * modules/uniwidth/u8-strwidth: New file.
49537
49538         * tests/uniwidth/test-u32-width.c: New file.
49539         * modules/uniwidth/u32-width-tests: New file.
49540
49541         * lib/uniwidth/u32-width.c: New file.
49542         * modules/uniwidth/u32-width: New file.
49543
49544         * tests/uniwidth/test-u16-width.c: New file.
49545         * modules/uniwidth/u16-width-tests: New file.
49546
49547         * lib/uniwidth/u16-width.c: New file.
49548         * modules/uniwidth/u16-width: New file.
49549
49550         * tests/uniwidth/test-u8-width.c: New file.
49551         * modules/uniwidth/u8-width-tests: New file.
49552
49553         * lib/uniwidth/u8-width.c: New file.
49554         * modules/uniwidth/u8-width: New file.
49555
49556         * tests/uniwidth/test-uc_width.c: New file.
49557         * modules/uniwidth/width-tests: New file.
49558
49559         * lib/uniwidth/width.c: New file, from GNU libiconv.
49560         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49561         * modules/uniwidth/width: New file.
49562
49563         * lib/uniwidth.h: New file, from GNU libiconv.
49564         * modules/uniwidth/base: New file.
49565
49566 2007-07-07  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/uniname.h: New file, from GNU gettext.
49569         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49570         * lib/uniname/uninames.h: New file, from GNU gettext.
49571         * lib/uniname/uniname.c: New file, from GNU gettext.
49572         * tests/uniname/test-uninames.sh: New file.
49573         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49574         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49575         * modules/uniname/base: New file.
49576         * modules/uniname/uniname: New file.
49577         * modules/uniname/uniname-tests: New file.
49578         * MODULES.html.sh (Unicode string functions): Add the new modules.
49579
49580 2007-07-06  Bruno Haible  <bruno@clisp.org>
49581
49582         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49583
49584 2007-07-06  Bruno Haible  <bruno@clisp.org>
49585
49586         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49587         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49588         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49589         include <sys/time.h>.
49590         Reported by Eric Blake.
49591
49592 2007-07-06  Eric Blake  <ebb9@byu.net>
49593
49594         Fix testing canonicalize on cygwin.
49595         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49596         Revert patch from 2007-06-19.
49597         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49598         canonicalize module is also in use.
49599         * tests/test-canonicalize.c: New file.
49600         * tests/test-canonicalize.sh: Likewise.
49601         * modules/canonicalize-tests: Likewise.
49602
49603 2007-07-06  Jim Meyering  <jim@meyering.net>
49604
49605         * lib/getugroups.c (getugroups): Detect getgrent failure.
49606         Adjust comment to reflect reality: this function may return -1.
49607
49608 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49609
49610         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49611         the new TP address.
49612         (usage): Fix typo
49613         (gnulib_mk): New variable.
49614
49615 2007-07-05  Jim Meyering  <jim@meyering.net>
49616
49617         Don't let endgrent clobber errno, no matter how improbable.
49618         * lib/getugroups.c (getugroups): Save and restore errno around
49619         endgrent call.
49620
49621         Close the group DB even when failing with 2^31 or more members.
49622         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49623
49624 2007-07-04  Jim Meyering  <jim@meyering.net>
49625
49626         * lib/getugroups.h: New file.
49627         * lib/getugroups.c: Include "getugroups.h".
49628         Remove uses of "register" keyword.
49629         Move local variable, "cp", down into scope where used.
49630         Give "username" parameter the "const" attribute.
49631         * modules/getugroups (Files): Add lib/getugroups.h
49632
49633 2007-07-04  Karl Berry  <karl@gnu.org>
49634
49635         * MODULES.html.sh (func_all_modules): Complete rename of
49636         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49637
49638 2007-07-02  Bruno Haible  <bruno@clisp.org>
49639
49640         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49641         mode, when inttypes.h comes from gnulib.
49642         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49643
49644 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49645
49646         * NEWS: Mention lgpl module name change.
49647
49648         * modules/lgpl-2.1: Renamed from lgpl.
49649
49650         * NEWS: Mention gpl module name change.
49651
49652         * modules/gpl-3.0: New file, based on gpl-2.0.
49653
49654         * modules/gpl-2.0: Renamed from gpl.
49655
49656         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49657         doc/gpl-2.0.texi.
49658
49659 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49662         #define __STDC_LIMIT_MACROS temporarily while including
49663         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49664         Problem reported by Joel E. Denny in
49665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49666
49667 2007-07-01  Bruno Haible  <bruno@clisp.org>
49668
49669         * lib/unistdio.h: New file.
49670         * lib/unistdio/u-asnprintf.h: New file.
49671         * lib/unistdio/u-asprintf.h: New file.
49672         * lib/unistdio/u-printf-args.c: New file.
49673         * lib/unistdio/u-printf-args.h: New file.
49674         * lib/unistdio/u-printf-parse.h: New file.
49675         * lib/unistdio/u-snprintf.h: New file.
49676         * lib/unistdio/u-sprintf.h: New file.
49677         * lib/unistdio/u-vasprintf.h: New file.
49678         * lib/unistdio/u-vsnprintf.h: New file.
49679         * lib/unistdio/u-vsprintf.h: New file.
49680         * lib/unistdio/ulc-asnprintf.c: New file.
49681         * lib/unistdio/ulc-asprintf.c: New file.
49682         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49683         * lib/unistdio/ulc-printf-parse.c: New file.
49684         * lib/unistdio/ulc-snprintf.c: New file.
49685         * lib/unistdio/ulc-sprintf.c: New file.
49686         * lib/unistdio/ulc-vasnprintf.c: New file.
49687         * lib/unistdio/ulc-vasprintf.c: New file.
49688         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49689         * lib/unistdio/ulc-vsnprintf.c: New file.
49690         * lib/unistdio/ulc-vsprintf.c: New file.
49691         * lib/unistdio/u8-asnprintf.c: New file.
49692         * lib/unistdio/u8-asprintf.c: New file.
49693         * lib/unistdio/u8-printf-parse.c: New file.
49694         * lib/unistdio/u8-snprintf.c: New file.
49695         * lib/unistdio/u8-sprintf.c: New file.
49696         * lib/unistdio/u8-vasnprintf.c: New file.
49697         * lib/unistdio/u8-vasprintf.c: New file.
49698         * lib/unistdio/u8-vsnprintf.c: New file.
49699         * lib/unistdio/u8-vsprintf.c: New file.
49700         * lib/unistdio/u8-u8-asnprintf.c: New file.
49701         * lib/unistdio/u8-u8-asprintf.c: New file.
49702         * lib/unistdio/u8-u8-snprintf.c: New file.
49703         * lib/unistdio/u8-u8-sprintf.c: New file.
49704         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49705         * lib/unistdio/u8-u8-vasprintf.c: New file.
49706         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49707         * lib/unistdio/u8-u8-vsprintf.c: New file.
49708         * lib/unistdio/u16-asnprintf.c: New file.
49709         * lib/unistdio/u16-asprintf.c: New file.
49710         * lib/unistdio/u16-printf-parse.c: New file.
49711         * lib/unistdio/u16-snprintf.c: New file.
49712         * lib/unistdio/u16-sprintf.c: New file.
49713         * lib/unistdio/u16-vasnprintf.c: New file.
49714         * lib/unistdio/u16-vasprintf.c: New file.
49715         * lib/unistdio/u16-vsnprintf.c: New file.
49716         * lib/unistdio/u16-vsprintf.c: New file.
49717         * lib/unistdio/u16-u16-asnprintf.c: New file.
49718         * lib/unistdio/u16-u16-asprintf.c: New file.
49719         * lib/unistdio/u16-u16-snprintf.c: New file.
49720         * lib/unistdio/u16-u16-sprintf.c: New file.
49721         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49722         * lib/unistdio/u16-u16-vasprintf.c: New file.
49723         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49724         * lib/unistdio/u16-u16-vsprintf.c: New file.
49725         * lib/unistdio/u32-asnprintf.c: New file.
49726         * lib/unistdio/u32-asprintf.c: New file.
49727         * lib/unistdio/u32-printf-parse.c: New file.
49728         * lib/unistdio/u32-snprintf.c: New file.
49729         * lib/unistdio/u32-sprintf.c: New file.
49730         * lib/unistdio/u32-vasnprintf.c: New file.
49731         * lib/unistdio/u32-vasprintf.c: New file.
49732         * lib/unistdio/u32-vsnprintf.c: New file.
49733         * lib/unistdio/u32-vsprintf.c: New file.
49734         * lib/unistdio/u32-u32-asnprintf.c: New file.
49735         * lib/unistdio/u32-u32-asprintf.c: New file.
49736         * lib/unistdio/u32-u32-snprintf.c: New file.
49737         * lib/unistdio/u32-u32-sprintf.c: New file.
49738         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49739         * lib/unistdio/u32-u32-vasprintf.c: New file.
49740         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49741         * lib/unistdio/u32-u32-vsprintf.c: New file.
49742         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49743         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49744         * tests/unistdio/test-ulc-printf1.h: New file.
49745         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49746         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49747         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49748         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49749         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49750         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49751         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49752         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49753         * tests/unistdio/test-u8-asnprintf1.c: New file.
49754         * tests/unistdio/test-u8-asnprintf1.h: New file.
49755         * tests/unistdio/test-u8-printf1.h: New file.
49756         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49757         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49758         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49759         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49760         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49761         * tests/unistdio/test-u8-vasprintf1.c: New file.
49762         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49763         * tests/unistdio/test-u8-vsprintf1.c: New file.
49764         * tests/unistdio/test-u16-asnprintf1.c: New file.
49765         * tests/unistdio/test-u16-asnprintf1.h: New file.
49766         * tests/unistdio/test-u16-printf1.h: New file.
49767         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49768         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49769         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49770         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49771         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49772         * tests/unistdio/test-u16-vasprintf1.c: New file.
49773         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49774         * tests/unistdio/test-u16-vsprintf1.c: New file.
49775         * tests/unistdio/test-u32-asnprintf1.c: New file.
49776         * tests/unistdio/test-u32-asnprintf1.h: New file.
49777         * tests/unistdio/test-u32-printf1.h: New file.
49778         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49779         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49780         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49781         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49782         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49783         * tests/unistdio/test-u32-vasprintf1.c: New file.
49784         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49785         * tests/unistdio/test-u32-vsprintf1.c: New file.
49786         * modules/unistdio/base: New file.
49787         * modules/unistdio/u-printf-args: New file.
49788         * modules/unistdio/ulc-asnprintf: New file.
49789         * modules/unistdio/ulc-asprintf: New file.
49790         * modules/unistdio/ulc-fprintf: New file.
49791         * modules/unistdio/ulc-printf-parse: New file.
49792         * modules/unistdio/ulc-snprintf: New file.
49793         * modules/unistdio/ulc-sprintf: New file.
49794         * modules/unistdio/ulc-vasnprintf: New file.
49795         * modules/unistdio/ulc-vasprintf: New file.
49796         * modules/unistdio/ulc-vfprintf: New file.
49797         * modules/unistdio/ulc-vsnprintf: New file.
49798         * modules/unistdio/ulc-vsprintf: New file.
49799         * modules/unistdio/u8-asnprintf: New file.
49800         * modules/unistdio/u8-asprintf: New file.
49801         * modules/unistdio/u8-printf-parse: New file.
49802         * modules/unistdio/u8-snprintf: New file.
49803         * modules/unistdio/u8-sprintf: New file.
49804         * modules/unistdio/u8-vasnprintf: New file.
49805         * modules/unistdio/u8-vasprintf: New file.
49806         * modules/unistdio/u8-vsnprintf: New file.
49807         * modules/unistdio/u8-vsprintf: New file.
49808         * modules/unistdio/u8-u8-asnprintf: New file.
49809         * modules/unistdio/u8-u8-asprintf: New file.
49810         * modules/unistdio/u8-u8-snprintf: New file.
49811         * modules/unistdio/u8-u8-sprintf: New file.
49812         * modules/unistdio/u8-u8-vasnprintf: New file.
49813         * modules/unistdio/u8-u8-vasprintf: New file.
49814         * modules/unistdio/u8-u8-vsnprintf: New file.
49815         * modules/unistdio/u8-u8-vsprintf: New file.
49816         * modules/unistdio/u16-asnprintf: New file.
49817         * modules/unistdio/u16-asprintf: New file.
49818         * modules/unistdio/u16-printf-parse: New file.
49819         * modules/unistdio/u16-snprintf: New file.
49820         * modules/unistdio/u16-sprintf: New file.
49821         * modules/unistdio/u16-vasnprintf: New file.
49822         * modules/unistdio/u16-vasprintf: New file.
49823         * modules/unistdio/u16-vsnprintf: New file.
49824         * modules/unistdio/u16-vsprintf: New file.
49825         * modules/unistdio/u16-u16-asnprintf: New file.
49826         * modules/unistdio/u16-u16-asprintf: New file.
49827         * modules/unistdio/u16-u16-snprintf: New file.
49828         * modules/unistdio/u16-u16-sprintf: New file.
49829         * modules/unistdio/u16-u16-vasnprintf: New file.
49830         * modules/unistdio/u16-u16-vasprintf: New file.
49831         * modules/unistdio/u16-u16-vsnprintf: New file.
49832         * modules/unistdio/u16-u16-vsprintf: New file.
49833         * modules/unistdio/u32-asnprintf: New file.
49834         * modules/unistdio/u32-asprintf: New file.
49835         * modules/unistdio/u32-printf-parse: New file.
49836         * modules/unistdio/u32-snprintf: New file.
49837         * modules/unistdio/u32-sprintf: New file.
49838         * modules/unistdio/u32-vasnprintf: New file.
49839         * modules/unistdio/u32-vasprintf: New file.
49840         * modules/unistdio/u32-vsnprintf: New file.
49841         * modules/unistdio/u32-vsprintf: New file.
49842         * modules/unistdio/u32-u32-asnprintf: New file.
49843         * modules/unistdio/u32-u32-asprintf: New file.
49844         * modules/unistdio/u32-u32-snprintf: New file.
49845         * modules/unistdio/u32-u32-sprintf: New file.
49846         * modules/unistdio/u32-u32-vasnprintf: New file.
49847         * modules/unistdio/u32-u32-vasprintf: New file.
49848         * modules/unistdio/u32-u32-vsnprintf: New file.
49849         * modules/unistdio/u32-u32-vsprintf: New file.
49850         * modules/unistdio/ulc-asnprintf-tests: New file.
49851         * modules/unistdio/ulc-vasnprintf-tests: New file.
49852         * modules/unistdio/ulc-vasprintf-tests: New file.
49853         * modules/unistdio/ulc-vsnprintf-tests: New file.
49854         * modules/unistdio/ulc-vsprintf-tests: New file.
49855         * modules/unistdio/u8-asnprintf-tests: New file.
49856         * modules/unistdio/u8-vasnprintf-tests: New file.
49857         * modules/unistdio/u8-vasprintf-tests: New file.
49858         * modules/unistdio/u8-vsnprintf-tests: New file.
49859         * modules/unistdio/u8-vsprintf-tests: New file.
49860         * modules/unistdio/u16-asnprintf-tests: New file.
49861         * modules/unistdio/u16-vasnprintf-tests: New file.
49862         * modules/unistdio/u16-vasprintf-tests: New file.
49863         * modules/unistdio/u16-vsnprintf-tests: New file.
49864         * modules/unistdio/u16-vsprintf-tests: New file.
49865         * modules/unistdio/u32-asnprintf-tests: New file.
49866         * modules/unistdio/u32-vasnprintf-tests: New file.
49867         * modules/unistdio/u32-vasprintf-tests: New file.
49868         * modules/unistdio/u32-vsnprintf-tests: New file.
49869         * modules/unistdio/u32-vsprintf-tests: New file.
49870         * MODULES.html.sh (Unicode string functions): Add the new modules.
49871
49872 2007-07-01  Bruno Haible  <bruno@clisp.org>
49873
49874         * lib/sprintf.c (sprintf): Limit the available length estimation,
49875         to avoid address wraparound.
49876         * lib/vsprintf.c (vsprintf): Likewise.
49877         * modules/sprintf-posix (Dependencies): Add stdint.
49878         * modules/vsprintf-posix (Dependencies): Likewise.
49879
49880 2007-07-01  Bruno Haible  <bruno@clisp.org>
49881
49882         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49883         Windows PATH as well. Conservative double-quoting. Comments.
49884
49885 2007-07-01  Bruno Haible  <bruno@clisp.org>
49886             Eric Blake  <ebb9@byu.net>
49887             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49888
49889         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49890         empty components in $PATH, denoting '.'.
49891
49892 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49893
49894         * gnulib-tool: Fix indentation.
49895         (func_create_megatestdir): Likewise.
49896         Report by Bruno Haible.
49897
49898 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49899
49900         Sync from Automake.
49901         * build-aux/gnupload: Fix shell portability issues with for loops.
49902         Report by Karl Berry.
49903
49904 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49905
49906         * build-aux/maint.mk (POURL): Use translationproject.org.
49907
49908 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49909             Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49912         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49913         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49914         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49915         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49916
49917 2007-06-27  Bruno Haible  <bruno@clisp.org>
49918
49919         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49920         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49921
49922 2007-06-26  Karl Berry  <karl@gnu.org>
49923
49924         * MODULES.html.sh: remove xreadlink-with-size.
49925
49926 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49929         method that I hope also handles the double-include problem noted
49930         by Bruno Haible in
49931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49932
49933 2007-06-23  Bruno Haible  <bruno@clisp.org>
49934
49935         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49936         Don't let the 'mostlyclean' target fail if the last subdirectory could
49937         not be removed.
49938         Reported by Karl Berry.
49939
49940 2007-06-23  Bruno Haible  <bruno@clisp.org>
49941
49942         * gnulib-tool (echo): Add a speedier workaround for ksh.
49943         * tests/test-echo.sh: Likewise.
49944
49945 2007-06-23  Bruno Haible  <bruno@clisp.org>
49946
49947         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49948         * tests/test-echo.sh: Likewise.
49949
49950 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49951
49952         * gnulib-tool (IFS): Initialize early, so we don't set it to
49953         empty later.
49954         (self_abspathname): Rewrite algorithm to set it, reindent.
49955         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49956         (func_create_megatestdir): Merge some sed scripts.
49957
49958 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49959
49960         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49961         exposed by Sun Studio 11 cc on Solaris 8.
49962
49963 2007-06-22  Bruno Haible  <bruno@clisp.org>
49964
49965         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49966         backslashes.
49967         * tests/test-echo.sh: New file.
49968
49969 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49970
49971         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49972         simplify `sed_replace_build_aux' scripts, they are portable but
49973         echoing them with `echo' is not.
49974         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49975
49976 2007-06-21  Karl Berry  <karl@gnu.org>
49977
49978         * config/srclist.txt: guess we can't handle the licenses via
49979         srclist at the moment.
49980
49981 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49982
49983         * MODULES.html.sh: Add include_next.
49984         * modules/include_next: New file.
49985
49986 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49987
49988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49989         INCLUDE_NEXT.
49990         (gl_CHECK_NEXT_HEADERS): New macro.
49991         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49992         the obsolescent gl_ABSOLUTE_HEADER.
49993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49994         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49995         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49997         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49998         * m4/math_h.m4 (gl_MATH_H): Likewise.
49999         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50000         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50001         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50002         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50003         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
50004         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
50005         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
50006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
50009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
50010         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
50011         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50012         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50013         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
50014         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
50015         * m4/inttypes.m4 (gl_INTTYPES_H): Define
50016         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
50017         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
50018         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
50019         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
50020         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
50021         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
50022         * lib/float_.h: Likewise.
50023         * lib/inttypes_.h: Likewise.
50024         * lib/math_.h: Likewise.
50025         * lib/search_.h: Likewise.
50026         * lib/signal_.h: Likewise.
50027         * lib/stdint_.h: Likewise.
50028         * lib/stdio_.h: Likewise.
50029         * lib/stdlib_.h: Likewise.
50030         * lib/string_.h: Likewise.
50031         * lib/sys_stat_.h: Likewise.
50032         * lib/sys_time_.h: Likewise.
50033         * lib/time_.h: Likewise.
50034         * lib/unistd_.h: Likewise.
50035         * lib/wchar_.h: Likewise.
50036         * lib/wctype_.h: Likewise.
50037         * lib/dirent_.h: Likewise.
50038         * lib/iconv_.h: Likewise.
50039         * lib/locale_.h: Likewise.
50040         * lib/netinet_in_.h: Likewise.
50041         * lib/sys_select_.h: Likewise.
50042         * lib/sys_socket_.h: Likewise.
50043         * lib/sysexits_.h: Likewise.
50044         * modules/fcntl (Depends-on): Depend on include_next, not
50045         absolute_header.
50046         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
50047         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
50048         * modules/fchdir: Likewise.
50049         * modules/float: Likewise.
50050         * modules/iconv_open: Likewise.
50051         * modules/inttypes: Likewise.
50052         * modules/locale: Likewise.
50053         * modules/math: Likewise.
50054         * modules/netinet_in: Likewise.
50055         * modules/search: Likewise.
50056         * modules/signal: Likewise.
50057         * modules/stdint: Likewise.
50058         * modules/stdio: Likewise.
50059         * modules/stdlib: Likewise.
50060         * modules/string: Likewise.
50061         * modules/sys_select: Likewise.
50062         * modules/sys_socket: Likewise.
50063         * modules/sys_stat: Likewise.
50064         * modules/sys_time: Likewise.
50065         * modules/sysexits: Likewise.
50066         * modules/time: Likewise.
50067         * modules/unistd: Likewise.
50068         * modules/wchar: Likewise.
50069         * modules/wctype: Likewise.
50070         * modules/sys_stat: Change maintainer to "all".
50071         * modules/unistd: Likewise.
50072
50073 2007-06-20  Karl Berry  <karl@gnu.org>
50074
50075         * config/srclist.txt: track www changes in license files.
50076
50077 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
50078
50079         * build-aux/bootstrap: Remove stray dot.
50080         Make sure build_aux settings are honored when linking
50081         gnulib_extra_files.
50082
50083 2007-06-19  Eric Blake  <ebb9@byu.net>
50084
50085         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50086         Allow compilation on cygwin.
50087
50088 2007-06-19  Jim Meyering  <jim@meyering.net>
50089
50090         xreadlink-with-size: Remove module.  No longer used.
50091         Ex-callers now use xreadlink or mreadlink-with-size.
50092         * modules/xreadlink-with-size: Remove module.
50093         * lib/xreadlink-with-size.c: Remove file.
50094         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
50095         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
50096         just before the function definition *is* accurate.
50097
50098         Eliminate one way canonicalize_filename_mode could exit.
50099         * lib/canonicalize.c (canonicalize_filename_mode):
50100         Use mreadlink_with_size, not xreadlink_with_size.
50101
50102 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
50103
50104         Detect porting problems to FreeBSD/arm, which has time_t wider than
50105         long int.  Original problem reported for GNU diff by Xin Li in
50106         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
50107         * modules/getdate (Depends-on): Add intprops, verify.
50108         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
50109         is an integer type no wider than long int.
50110
50111 2007-06-18  Jim Meyering  <jim@meyering.net>
50112
50113         New module: mreadlink-with-size.
50114         * MODULES.html.sh: Add mreadlink-with-size.
50115         * modules/mreadlink-with-size: New module
50116         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
50117         not xreadlink-with-size.
50118         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
50119
50120 2007-06-16  Bruno Haible  <bruno@clisp.org>
50121
50122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
50123         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
50124         Reported by Gary V. Vaughan <gary@gnu.org>.
50125
50126 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50127
50128         Revamp lchown so that it lives in unistd.h where it belongs.
50129         * lib/lchown.h: Remove.
50130         * lib/dirchownmod.c: Don't include lib/lchown.h.
50131         * lib/fchownat.c: Likewise.
50132         * lib/openat.c: Likewise.
50133         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
50134         does not follow symlinks.
50135         (EOPNOTSUPP): Define if not defined.
50136         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
50137         is defined to 0.
50138         (lchown): New decl.
50139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
50140         Do not check for lchown decl.
50141         Set REPLACE_LCHOWN.
50142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
50143         REPLACE_LCHOWN.
50144         * modules/chown: Make it clear it follows symlinks.
50145         * modules/lchown: Make it clear it doesn't follow symlinks.
50146         (Files): Remove lib/lchown.h
50147         (Depends-on): Add unistd.
50148         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
50149         (Include): Include <unistd.h>, not "lchown.h".
50150         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
50151         REPLACE_LCHOWN.
50152
50153 2007-06-15  Jim Meyering  <jim@meyering.net>
50154
50155         Change license (GPL to LGPL) of fsusage and dependents.
50156         * modules/fsusage (License): Change to LGPL.
50157         * modules/full-read (License): Likewise.
50158         * modules/full-write (License): Likewise.
50159         * modules/safe-read (License): Likewise.
50160         * modules/safe-write (License): Likewise.
50161
50162 2007-06-14  Ben Pfaff  <blp@gnu.org>
50163
50164         Missing part of allocsa -> malloca transition.
50165         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
50166         gl_MALLOCA.
50167
50168 2007-06-12  Bruno Haible  <bruno@clisp.org>
50169
50170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
50171         to ia64, x86_64, i386.
50172         Reported by Eric Blake.
50173
50174 2007-06-12  Bruno Haible  <bruno@clisp.org>
50175
50176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
50177         cross-compiling to x86_64.
50178
50179 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
50180
50181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
50182         glitch reported by Ralf Wildenhues in
50183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
50184
50185         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
50186         Vin Shelton.
50187
50188 2007-06-11  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
50191         replacement string.
50192         Reported by Eric Blake.
50193
50194 2007-06-10  Bruno Haible  <bruno@clisp.org>
50195
50196         Prepare vasnprintf code for use with Unicode strings.
50197         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
50198         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
50199         TYPE_U32_STRING.
50200         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
50201         a_u32_string variants.
50202         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50203         * lib/printf-args.c: Don't include config.h and the specification
50204         header if PRINTF_FETCHARGS is already defined.
50205         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
50206         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
50207         TYPE_U16_STRING, TYPE_U32_STRING.
50208         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
50209         u16_directive, u16_directives, u32_directive, u32_directives): New
50210         types.
50211         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
50212         New declarations.
50213         * lib/printf-parse.c: Don't include config.h and the specification
50214         header if PRINTF_PARSE is already defined. Eliminate the set of
50215         parameters for WIDE_CHAR_VERSION; the user of this file must provide
50216         them now. Include c-ctype.h.
50217         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
50218         directive and CHAR_T_ONLY_ASCII.
50219         * lib/vasnprintf.c: Don't include config.h and the specification header
50220         if VASNPRINTF is already defined.
50221         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
50222         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
50223         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
50224         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
50225         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
50226         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
50227         code accordingly.
50228         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
50229         pad_ourselves also in this case, with the 'c' and 's' directives, and
50230         with a different notion of "width".
50231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
50232
50233 2007-06-10  Bruno Haible  <bruno@clisp.org>
50234
50235         * modules/unistr/u32-mbsnlen: New file.
50236         * lib/unistr/u32-mbsnlen.c: New file.
50237
50238         * modules/unistr/u16-mbsnlen: New file.
50239         * lib/unistr/u16-mbsnlen.c: New file.
50240
50241         * modules/unistr/u8-mbsnlen: New file.
50242         * lib/unistr/u8-mbsnlen.c: New file.
50243
50244         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
50245         declarations.
50246
50247 2007-06-10  Bruno Haible  <bruno@clisp.org>
50248
50249         * lib/string_.h (mbsnlen): New declaration.
50250         * lib/mbsnlen.c: New file.
50251         * m4/mbsnlen.m4: New file.
50252         * modules/mbsnlen: New file.
50253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
50254         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
50255         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
50256
50257 2007-06-10  Bruno Haible  <bruno@clisp.org>
50258
50259         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
50260
50261 2007-06-10  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
50264         * lib/mbuiter.h: Likewise.
50265
50266 2007-06-10  Bruno Haible  <bruno@clisp.org>
50267
50268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
50269         declaration.
50270
50271 2007-06-10  Karl Berry  <karl@gnu.org>
50272
50273         * config/srclist.txt: remove gettext entries, Bruno prefers
50274         to update individually.
50275
50276 2007-06-10  Bruno Haible  <bruno@clisp.org>
50277
50278         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
50279         'maxlen'. Ensure only length + width bytes are allocated, not
50280         length + 1 + width.
50281
50282 2007-06-09  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
50285         (CHAR_T): Remove macro.
50286         (VASNPRINTF): Update.
50287
50288 2007-06-09  Bruno Haible  <bruno@clisp.org>
50289
50290         * MODULES.html.sh (Unicode string functions): Add the new modules.
50291
50292         * modules/uniconv/u32-conv-to-enc: New file.
50293         * lib/uniconv/u32-conv-to-enc.c: New file.
50294         * modules/uniconv/u32-conv-to-enc-tests: New file.
50295         * tests/uniconv/test-u32-conv-to-enc.c: New file.
50296
50297         * modules/uniconv/u16-conv-to-enc: New file.
50298         * lib/uniconv/u16-conv-to-enc.c: New file.
50299         * lib/uniconv/u-conv-to-enc.h: New file.
50300         * modules/uniconv/u16-conv-to-enc-tests: New file.
50301         * tests/uniconv/test-u16-conv-to-enc.c: New file.
50302
50303         * modules/uniconv/u8-conv-to-enc: New file.
50304         * lib/uniconv/u8-conv-to-enc.c: New file.
50305         * modules/uniconv/u8-conv-to-enc-tests: New file.
50306         * tests/uniconv/test-u8-conv-to-enc.c: New file.
50307
50308         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50309         u32_conv_to_encoding): New declarations.
50310
50311 2007-06-09  Bruno Haible  <bruno@clisp.org>
50312
50313         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
50314
50315 2007-06-09  Bruno Haible  <bruno@clisp.org>
50316
50317         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
50318         * modules/malloca: Renamed from modules/allocsa, updated.
50319         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
50320         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
50321         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
50322         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
50323         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
50324         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
50325         * modules/xmalloca: Renamed from modules/xallocsa, updated.
50326         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
50327         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
50328         * modules/c-strcasestr (Depends-on): Update.
50329         * lib/c-strcasestr.c: Update.
50330         * modules/c-strstr (Depends-on): Update.
50331         * lib/c-strstr.c: Update.
50332         * modules/canonicalize-lgpl (Depends-on): Update.
50333         * lib/canonicalize-lgpl.c: Update.
50334         * modules/clean-temp (Depends-on): Update.
50335         * lib/clean-temp.c: Update.
50336         * modules/csharpcomp (Depends-on): Update.
50337         * lib/csharpcomp.c: Update.
50338         * modules/csharpexec (Depends-on): Update.
50339         * lib/csharpexec.c: Update.
50340         * modules/javacomp (Depends-on): Update.
50341         * lib/javacomp.c: Update.
50342         * modules/javaexec (Depends-on): Update.
50343         * lib/javaexec.c: Update.
50344         * modules/mbscasestr (Depends-on): Update.
50345         * lib/mbscasestr.c: Update.
50346         * modules/mbsstr (Depends-on): Update.
50347         * lib/mbsstr.c: Update.
50348         * modules/setenv (Depends-on): Update.
50349         * lib/setenv.c: Update.
50350         * modules/strcasestr (Depends-on): Update.
50351         * lib/strcasestr.c: Update.
50352         * modules/striconveha (Depends-on): Update.
50353         * lib/striconveha.c: Update.
50354         * modules/relocatable-prog-wrapper (Files): Update.
50355         * lib/relocwrapper.c: Update.
50356         * build-aux/install-reloc: Update.
50357         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50358
50359 2007-06-08  Bruno Haible  <bruno@clisp.org>
50360
50361         Port to uClibc.
50362         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50363         * lib/fpurge.c (fpurge): Likewise.
50364         * lib/freading.c (freading): Likewise.
50365         * lib/fseeko.c (rpl_fseeko): Likewise.
50366         * lib/fseterr.c (fseterr): Likewise.
50367         * lib/fwriting.c (fwriting): Likewise.
50368         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50369
50370 2007-06-08  Bruno Haible  <bruno@clisp.org>
50371
50372         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50373         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50374         * modules/gettext (Files): Add m4/intlmacosx.m4.
50375
50376 2007-06-07  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/localename-tests: New file.
50379         * tests/test-localename.c: New file.
50380
50381         New module 'localename'.
50382         * lib/localename.h: New file.
50383         * lib/localename.c: New file, from GNU gettext.
50384         * m4/localename.m4: New file.
50385         * modules/localename: New file.
50386
50387 2007-06-07  Bruno Haible  <bruno@clisp.org>
50388
50389         Work around the lack of <wchar.h> on some builds of uClibc.
50390         * doc/headers/wchar.texi: Update.
50391         * lib/wchar_.h: Include <wchar.h> only if it exists.
50392         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50393         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50394         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50395         doesn't exist.
50396         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50397         * modules/mbfile (Depends-on): Add wchar.
50398         * modules/mbiter (Depends-on): Likewise.
50399         * modules/mbuiter (Depends-on): Likewise.
50400         Reported by Simon Josefsson.
50401
50402 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50403
50404         Work around problem reported by Steven M. Schweda in
50405         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50406         Tru64 5.1B with the Compaq compiler environment installed declares
50407         an 'isblank' function but does not define it in the C library.
50408         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50409         * lib/regex_internal.h (isblank): Likewise.
50410         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50411         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50412
50413 2007-06-05  Bruno Haible  <bruno@clisp.org>
50414
50415         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50416         ia64.
50417         * modules/printf-safe: New file.
50418         * modules/fprintf-posix (Depends-on): Add printf-safe.
50419         * modules/printf-posix (Depends-on): Likewise.
50420         * modules/snprintf-posix (Depends-on): Likewise.
50421         * modules/sprintf-posix (Depends-on): Likewise.
50422         * modules/vasnprintf-posix (Depends-on): Likewise.
50423         * modules/vasprintf-posix (Depends-on): Likewise.
50424         * modules/vfprintf-posix (Depends-on): Likewise.
50425         * modules/vprintf-posix (Depends-on): Likewise.
50426         * modules/vsnprintf-posix (Depends-on): Likewise.
50427         * modules/vsprintf-posix (Depends-on): Likewise.
50428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50429         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50430         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50431         "no" on i386, x86_64, ia64.
50432         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50433         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50434         on i386, x86_64, ia64.
50435         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50436         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50437         on i386, x86_64, ia64.
50438         * tests/test-vasnprintf-posix.c: Include float.h.
50439         (LDBL80_WORDS): New macro.
50440         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50441         on i386, x86_64, ia64.
50442         * tests/test-vasprintf-posix.c: Include float.h.
50443         (LDBL80_WORDS): New macro.
50444         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50445         on i386, x86_64, ia64.
50446         * tests/test-snprintf-posix.c: Include float.h.
50447         * tests/test-sprintf-posix.c: Likewise.
50448         * tests/test-vsnprintf-posix.c: Likewise.
50449         * tests/test-vsprintf-posix.c: Likewise.
50450
50451 2007-06-05  Bruno Haible  <bruno@clisp.org>
50452
50453         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50454         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50455         non-IEEE numbers on i386, x86_64, ia64.
50456         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50457         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50458         * tests/test-isnanl.h: Include float.h.
50459         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50460
50461 2007-06-05  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50464         also the %a / %A. Handle the %a / %A code before this extra handling.
50465
50466 2007-06-05  Bruno Haible  <bruno@clisp.org>
50467
50468         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50469         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50470
50471 2007-06-05  Bruno Haible  <bruno@clisp.org>
50472
50473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50474         typo in variable name.
50475
50476 2007-06-05  Eric Blake  <ebb9@byu.net>
50477
50478         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50479         Reported by Simon Josefsson.
50480
50481 2007-06-04  Bruno Haible  <bruno@clisp.org>
50482
50483         Avoid test failures on some PowerPC platforms.
50484         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50485         Define differently for PowerPC.
50486         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50487         Reported by Gary V. Vaughan <gary@gnu.org>.
50488
50489 2007-06-02  Bruno Haible  <bruno@clisp.org>
50490
50491         Fix test-stdint failure on FreeBSD/ia64.
50492         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50493         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50494         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50495         * doc/headers/stdint.texi: Update.
50496
50497 2007-06-01  Bruno Haible  <bruno@clisp.org>
50498
50499         * tests/test-binary-io.c (main): Pass a third argument to open().
50500         Reported by Gary V. Vaughan <gary@gnu.org>.
50501
50502 2007-06-01  Bruno Haible  <bruno@clisp.org>
50503
50504         * doc/functions/frexpl.texi: Update for mingw.
50505
50506 2007-06-01  Bruno Haible  <bruno@clisp.org>
50507
50508         * tests/test-lseek.c (main): Disable test of errno for invalid third
50509         argument.
50510         * doc/functions/lseek.texi: Update.
50511         Reported by Gary V. Vaughan <gary@gnu.org>.
50512
50513 2007-05-28  Bruno Haible  <bruno@clisp.org>
50514
50515         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50516
50517 2007-05-31  Eric Blake  <ebb9@byu.net>
50518
50519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50520         cross compiling.
50521
50522 2007-05-30  Eric Blake  <ebb9@byu.net>
50523         and Bruno Haible  <bruno@clisp.org>
50524
50525         Work around mingw test failures exposed by m4-1.4.9b.
50526         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50527         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50528         moment.
50529
50530 2007-05-30  Bruno Haible  <bruno@clisp.org>
50531
50532         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50533         assuming that they are closed. Needed on HP-UX 11.
50534
50535 2007-05-29  Bruno Haible  <bruno@clisp.org>
50536
50537         Fix a problem with #include_next.
50538         * lib/dirent_.h: Split the double-inclusion guard.
50539         * lib/fcntl_.h: Likewise.
50540         * lib/float_.h: Likewise.
50541         * lib/iconv_.h: Likewise.
50542         * lib/inttypes_.h: Likewise.
50543         * lib/locale_.h: Likewise.
50544         * lib/math_.h: Likewise.
50545         * lib/netinet_in_.h: Likewise.
50546         * lib/search_.h: Likewise.
50547         * lib/signal_.h: Likewise.
50548         * lib/stdint_.h: Likewise.
50549         * lib/stdio_.h: Likewise.
50550         * lib/stdlib_.h: Likewise.
50551         * lib/string_.h: Likewise.
50552         * lib/sys_select_.h: Likewise.
50553         * lib/sys_socket_.h: Likewise.
50554         * lib/sys_stat_.h: Likewise.
50555         * lib/sys_time_.h: Likewise.
50556         * lib/sysexits_.h: Likewise.
50557         * lib/time_.h: Likewise.
50558         * lib/unistd_.h: Likewise.
50559         * lib/wchar_.h: Likewise.
50560         * lib/wctype_.h: Likewise.
50561
50562 2007-05-29  Bruno Haible  <bruno@clisp.org>
50563
50564         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50565         for the moment.
50566
50567 2007-05-29  Bruno Haible  <bruno@clisp.org>
50568
50569         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50570         invocation.
50571         Reported by Eric Blake.
50572
50573 2007-05-29  Bruno Haible  <bruno@clisp.org>
50574
50575         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50576         compiling case.
50577
50578 2007-05-29  Eric Blake  <ebb9@byu.net>
50579             Bruno Haible  <bruno@clisp.org>
50580
50581         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50582         cross compiles.
50583
50584 2007-05-28  Eric Blake  <ebb9@byu.net>
50585
50586         * modules/closein-tests (test_closein_LDADD): Support test on
50587         cygwin with libtool.
50588
50589 2007-05-28  Bruno Haible  <bruno@clisp.org>
50590
50591         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50592         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50593         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50594         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50595         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50596         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50597         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50598         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50599         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50600
50601 2007-05-28  Eric Blake  <ebb9@byu.net>
50602
50603         Unconditionally include <config.h> in unit tests.
50604         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50605         * tests/test-allocsa.c, tests/test-arcfour.c,
50606         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50607         tests/test-array_list.c, tests/test-array_oset.c,
50608         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50609         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50610         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50611         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50612         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50613         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50614         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50615         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50616         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50617         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50618         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50619         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50620         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50621         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50622         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50623         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50624         test-md5.c, test-memmem.c, test-printf-posix.c,
50625         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50626         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50627         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50628         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50629         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50630         test-vasnprintf-posix2.c, test-vasnprintf.c,
50631         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50632         test-vfprintf-posix.c, test-vprintf-posix.c,
50633         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50634         test-xvasprintf.c: Likewise.
50635
50636 2007-05-28  Bruno Haible  <bruno@clisp.org>
50637
50638         * gnulib-tool (func_import): Remember the --with-tests command-line
50639         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50640         Reported by Eric Blake.
50641
50642 2007-05-28  Bruno Haible  <bruno@clisp.org>
50643
50644         * modules/ftell-tests: New file.
50645         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50646         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50647
50648         * lib/ftell.c: New file.
50649         * modules/ftell: New file.
50650         * m4/ftell.m4: New file.
50651         * doc/functions/ftell.texi: Update.
50652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50653         REPLACE_FTELL.
50654         * lib/stdio_.h (rpl_ftell): New declaration.
50655         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50656         REPLACE_FTELL.
50657
50658 2007-05-28  Eric Blake  <ebb9@byu.net>
50659
50660         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50661
50662 2007-05-28  Bruno Haible  <bruno@clisp.org>
50663
50664         * modules/fseek-tests: New file.
50665         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50666         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50667
50668         * lib/fseek.c: New file.
50669         * modules/fseek: New file.
50670         * m4/fseek.m4: New file.
50671         * doc/functions/fseek.texi: Update.
50672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50673         REPLACE_FSEEK.
50674         * lib/stdio_.h (rpl_fseek): New declaration.
50675         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50676         REPLACE_FSEEK.
50677
50678 2007-05-28  Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/stdio_.h (fflush): More comments.
50681
50682 2007-05-28  Bruno Haible  <bruno@clisp.org>
50683
50684         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50685         runtime test.
50686
50687 2007-05-28  Eric Blake  <ebb9@byu.net>
50688
50689         Improve lseek module.
50690         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50691         * lib/unistd_.h (lseek): Scale back link warning message.
50692         * tests/test-lseek.c: Beef up test.
50693         * tests/test-lseek.sh: Exercise more facets of lseek.
50694         Reported by Bruno Haible.
50695
50696 2007-05-28  Bruno Haible  <bruno@clisp.org>
50697
50698         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50699         to define.
50700
50701 2007-05-27  Bruno Haible  <bruno@clisp.org>
50702
50703         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50704
50705 2007-05-27  Bruno Haible  <bruno@clisp.org>
50706
50707         * modules/openmp: New file.
50708         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50709         Noah Misch.
50710
50711 2007-05-26  Bruno Haible  <bruno@clisp.org>
50712
50713         * modules/chdir-long (Depends-on): Add fchdir.
50714         * modules/chdir-safer (Depends-on): Likewise.
50715         * modules/fts (Depends-on): Likewise.
50716         * modules/fts-lgpl (Depends-on): Likewise.
50717         * modules/openat (Depends-on): Likewise.
50718         * modules/savewd (Depends-on): Likewise.
50719
50720 2007-05-24  Eric Blake  <ebb9@byu.net>
50721
50722         Fix lseek on mingw.
50723         * modules/lseek: New module.
50724         * m4/lseek.m4: New file.
50725         * lib/lseek.c: New file.
50726         * modules/lseek-tests: New file.
50727         * tests/test-lseek.c: New file.
50728         * tests/test-lseek.sh: New file.
50729         * MODULES.html.sh: Document lseek module.
50730         * modules/fflush (Depends-on): Add lseek, fseeko.
50731         * modules/fseeko (Depends-on): Likewise.
50732         * modules/ftello (Depends-on): Likewise.
50733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50734         broken.
50735         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50736         broken.
50737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50738         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50739         * lib/ftello.c (rpl_ftello): Likewise.
50740         * tests/test-fseeko.c (main): Test this.
50741         * tests/test-fseeko.sh: Likewise.
50742         * tests/test-ftello.c (main): Likewise.
50743         * tests/test-ftello.sh: Likewise.
50744         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50745         implies replacing fseek.
50746         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50747         HAVE_FTELLO.
50748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50749         * modules/unistd (Makefile.am): Likewise.
50750         * lib/unistd_.h (lseek): Declare a replacement.
50751         * doc/functions/lseek.texi (lseek): Document this fix.
50752         * doc/functions/fseek.texi (fseek): Likewise.
50753         * doc/functions/ftell.texi (ftell): Likewise.
50754
50755 2007-05-24  Bruno Haible  <bruno@clisp.org>
50756
50757         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50758         in the printed representation of a NaN.
50759         * tests/test-vasprintf-posix.c (test_function): Likewise.
50760         * tests/test-snprintf-posix.h (test_function): Likewise.
50761         * tests/test-sprintf-posix.h (test_function): Likewise.
50762         Reported by Eric Blake.
50763
50764 2007-05-23  Eric Blake  <ebb9@byu.net>
50765
50766         Fix fseeko/ftello on cygwin 1.5.24.
50767         * doc/functions/fseeko.texi (fseeko): Document the fix.
50768         * doc/functions/ftello.texi (ftello): Document the fix.
50769         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50770         * doc/functions/stdout.text (stdout): New file.
50771         * doc/functions/stderr.text (stderr): New file.
50772         * doc/gnulib.texi (Function Substitutes): Use new files.
50773         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50774         prior to 1.7.0.
50775         * tests/test-ftello.c (main): Likewise for ftello.
50776         * tests/test-fseeko.sh: New file.
50777         * tests/test-ftello.sh: New file.
50778         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50779         with seekable stdin.
50780         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50781         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50782         (gl_REPLACE_FSEEKO): New macro.
50783         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50784         * modules/fseeko (Files): Distribute fseeko.c.
50785         * modules/ftello (Files): Distribute ftello.c.
50786         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50787         mode.
50788         * lib/ftello.c (rpl_ftello): New file.
50789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50790         fseeko, ftello.
50791         (gl_STDIN_LARGE_OFFSET): New macro.
50792         * modules/stdio (Makefile.am): Perform the replacement.
50793         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50794
50795 2007-05-23  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50798         GNULIB_POSIXCHECK is defined.
50799
50800 2007-05-21  Bruno Haible  <bruno@clisp.org>
50801
50802         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50803         Check also the output for NaN arguments. When cross-compiling, guess
50804         no on IRIX.
50805         * lib/vasnprintf.c: Update comments.
50806         * tests/test-vasnprintf-posix.c (strisnan): New function.
50807         (test_function): Use it.
50808         * tests/test-vasprintf-posix.c (strisnan): New function.
50809         (test_function): Use it.
50810         * tests/test-snprintf-posix.h (strisnan): New function.
50811         (test_function): Use it.
50812         * tests/test-sprintf-posix.h (strisnan): New function.
50813         (test_function): Use it.
50814         Reported by Eric Blake.
50815
50816 2007-05-20  Bruno Haible  <bruno@clisp.org>
50817
50818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50819         numbers that fails on BeOS.
50820         * doc/functions/frexpl.texi: Update.
50821
50822 2007-05-20  Jim Meyering  <jim@meyering.net>
50823
50824         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50825         forced upon us by glibc-2.6.
50826
50827 2007-05-20  Bruno Haible  <bruno@clisp.org>
50828
50829         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50830         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50831         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50832         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50833         NEED_PRINTF_INFINITE.
50834         (is_infinitel): New function.
50835         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50837         gl_PREREQ_VASNPRINTF_INFINITE.
50838         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50840         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50841         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50842         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50843         gl_PREREQ_VASNPRINTF_INFINITE.
50844         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50845         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50846         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50847         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50848         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50851         * doc/functions/fprintf.texi: Update.
50852         * doc/functions/printf.texi: Update.
50853         * doc/functions/snprintf.texi: Update.
50854         * doc/functions/sprintf.texi: Update.
50855         * doc/functions/vfprintf.texi: Update.
50856         * doc/functions/vprintf.texi: Update.
50857         * doc/functions/vsnprintf.texi: Update.
50858         * doc/functions/vsprintf.texi: Update.
50859
50860 2007-05-20  Bruno Haible  <bruno@clisp.org>
50861
50862         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50863         was not found in libc.
50864         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50865
50866 2007-05-20  Bruno Haible  <bruno@clisp.org>
50867
50868         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50869         printed as "-nan" instead of "nan".
50870         * tests/test-vasprintf-posix.c (test_function): Likewise.
50871         * tests/test-snprintf-posix.h (test_function): Likewise.
50872         * tests/test-sprintf-posix.h (test_function): Likewise.
50873         Needed for HP-UX 11.
50874
50875 2007-05-20  Jim Meyering  <jim@meyering.net>
50876
50877         Fix buggy test for the fchownat-deref bug.
50878         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50879         symlink required for the run-test.  Without it, this test would
50880         always declare that fchownat doesn't work, and client code would
50881         unnecessarily use the replacement function with fixed libc.
50882         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50883         Reported by Greg Schafer.
50884
50885 2007-05-19  Bruno Haible  <bruno@clisp.org>
50886
50887         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50888         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50889         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50890         Needed for IRIX 6.5 and Solaris 2.5.1.
50891
50892 2007-05-19  Bruno Haible  <bruno@clisp.org>
50893
50894         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50895         (test_function): Skip tests involving -0.0 on platforms where
50896         -0.0 = 0.0.
50897         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50898         (test_function): Skip tests involving -0.0 on platforms where
50899         -0.0 = 0.0.
50900         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50901         (test_function): Skip tests involving -0.0 on platforms where
50902         -0.0 = 0.0.
50903         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50904         (test_function): Skip tests involving -0.0 on platforms where
50905         -0.0 = 0.0.
50906         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50907         tests.
50908         * tests/test-printf-posix.h (test_function): Likewise.
50909         * tests/test-printf-posix.output: Remove all -0.0 related results.
50910         Needed for IRIX 6.5.
50911
50912 2007-05-19  Bruno Haible  <bruno@clisp.org>
50913
50914         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50915         printed as "nan0x7fffffff" instead of "nan".
50916         * tests/test-vasprintf-posix.c (test_function): Likewise.
50917         * tests/test-snprintf-posix.h (test_function): Likewise.
50918         * tests/test-sprintf-posix.h (test_function): Likewise.
50919         * tests/test-fprintf-posix.h (NaN): Remove macro.
50920         (test_function): Remove all NaN related tests.
50921         * tests/test-printf-posix.h (NaN): Remove macro.
50922         (test_function): Remove all NaN related tests.
50923         * tests/test-printf-posix.output: Remove all NaN related results.
50924         Needed for IRIX 6.5.
50925
50926 2007-05-19  Bruno Haible  <bruno@clisp.org>
50927
50928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50929         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50930
50931 2007-05-19  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/float_.h: New file.
50934         * m4/float_h.m4: New file.
50935         * modules/float: New file.
50936         * modules/isnanl (Dependencies): Add float.
50937         * modules/isnanl-nolibm (Dependencies): Likewise.
50938         * modules/mathl (Dependencies): Likewise.
50939         * modules/printf-frexpl (Dependencies): Likewise.
50940         * modules/signbit (Dependencies): Likewise.
50941         * modules/vasnprintf (Dependencies): Likewise.
50942         * doc/headers/float.texi: Update.
50943
50944 2007-05-19  Jim Meyering  <jim@meyering.net>
50945
50946         * lib/utimens.c (gl_futimens): Rename from futimens,
50947         now that glibc-2.6 declares futimens.
50948         * lib/utimens.h: Likewise.
50949
50950 2007-05-19  Bruno Haible  <bruno@clisp.org>
50951
50952         Avoid test failures on mingw.
50953         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50954         * tests/test-printf-posix.sh: Likewise.
50955         * tests/test-vfprintf-posix.sh: Likewise.
50956         * tests/test-vprintf-posix.sh: Likewise.
50957
50958 2007-05-19  Bruno Haible  <bruno@clisp.org>
50959
50960         Fix *printf result for NaN, Inf, -0.0 on mingw.
50961         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50962         * lib/vasnprintf.c: Include math.h and isnan.h.
50963         (is_infinite_or_zero): New function.
50964         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50965         values in the %f, %F, %e, %E, %g, %G directives.
50966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50968         gl_PRINTF_INFINITE and test its result. Invoke
50969         gl_PREREQ_VASNPRINTF_INFINITE.
50970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50977         * doc/functions/fprintf.texi: Update.
50978         * doc/functions/printf.texi: Update.
50979         * doc/functions/snprintf.texi: Update.
50980         * doc/functions/sprintf.texi: Update.
50981         * doc/functions/vfprintf.texi: Update.
50982         * doc/functions/vprintf.texi: Update.
50983         * doc/functions/vsnprintf.texi: Update.
50984         * doc/functions/vsprintf.texi: Update.
50985
50986 2007-05-19  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50989         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50990         Instead of multiplying with 10^k, set extra_zeroes to k.
50991         (scale10_round_long_double): Remove function.
50992
50993 2007-05-18  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50996         introduced on 2007-05-06.
50997
50998 2007-05-18  Bruno Haible  <bruno@clisp.org>
50999
51000         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
51001         %g directives.
51002         * tests/test-vasprintf-posix.c (test_function): Likewise.
51003         * tests/test-snprintf-posix.h (test_function): Likewise.
51004         * tests/test-sprintf-posix.h (test_function): Likewise.
51005
51006 2007-05-18  Bruno Haible  <bruno@clisp.org>
51007
51008         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
51009         (strmatch): New function.
51010         (test_function): Test the %f directive on numbers of various exponents.
51011         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
51012         (strmatch): New function.
51013         (test_function): Test the %f directive on numbers of various exponents.
51014         * tests/test-snprintf-posix.h (strmatch): New function.
51015         (test_function): Test the %f directive on numbers of various exponents.
51016         * tests/test-sprintf-posix.h (strmatch): New function.
51017         (test_function): Test the %f directive on numbers of various exponents.
51018         * tests/test-snprintf-posix.c (SIZEOF): New macro.
51019         * tests/test-sprintf-posix.c (SIZEOF): New macro.
51020         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
51021         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
51022
51023 2007-05-18  Bruno Haible  <bruno@clisp.org>
51024
51025         Add support for 'long double' number output.
51026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
51027         * lib/vasnprintf.c: Include math.h and float+.h.
51028         (mp_limb_t): New type.
51029         (GMP_LIMB_BITS): New macro.
51030         (mp_twolimb_t): New type.
51031         (GMP_TWOLIMB_BITS): New macro.
51032         (mpn_t): New type.
51033         (multiply, divide, convert_to_decimal, decode_long_double,
51034         scale10_round_long_double, scale10_round_decimal_long_double,
51035         floorlog10l): New functions.
51036         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
51037         for the %f, %F, %e, %E, %g, %G directives.
51038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
51039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51040         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
51041         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
51042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51049         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
51050         * modules/snprintf-posix (Depends-on): Likewise.
51051         * modules/sprintf-posix (Depends-on): Likewise.
51052         * modules/vasnprintf-posix (Depends-on): Likewise.
51053         * modules/vasprintf-posix (Depends-on): Likewise.
51054         * modules/vfprintf-posix (Depends-on): Likewise.
51055         * modules/vsnprintf-posix (Depends-on): Likewise.
51056         * modules/vsprintf-posix (Depends-on): Likewise.
51057         * modules/vasnprintf (Files): Add lib/float+.h.
51058         * doc/functions/fprintf.texi: Update.
51059         * doc/functions/printf.texi: Update.
51060         * doc/functions/snprintf.texi: Update.
51061         * doc/functions/sprintf.texi: Update.
51062         * doc/functions/vfprintf.texi: Update.
51063         * doc/functions/vprintf.texi: Update.
51064         * doc/functions/vsnprintf.texi: Update.
51065         * doc/functions/vsprintf.texi: Update.
51066
51067 2007-05-18  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
51070
51071 2007-05-18  Bruno Haible  <bruno@clisp.org>
51072
51073         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
51074         for printing 64-bit integers. Needed for mingw.
51075
51076 2007-05-18  Bruno Haible  <bruno@clisp.org>
51077
51078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51079         gl_FUNC_FREXPL_WORKS.
51080         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
51081
51082 2007-05-18  Bruno Haible  <bruno@clisp.org>
51083
51084         * modules/frexpl-nolibm-tests: New file.
51085
51086         * modules/frexpl-nolibm: New file.
51087         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
51088
51089 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51090
51091         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
51092         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51093         GCC 4.2, which otherwise issues a lot of warnings.
51094         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
51095         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
51096         Likewise.
51097         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
51098         * modules/iconv_open (iconv.h): Likewise.
51099         * modules/locale (locale.h): Likewise.
51100         * modules/netinet_in (netinet/in.h): Likewise.
51101         * modules/sys_select (sys_select.h): Likewise.
51102         * modules/sys_socket (sys/socket.h): Likewise.
51103         * modules/sys_stat (sys/stat.h): Likewise.
51104         * modules/sysexits (sysexits.h): Likewise.
51105         * modules/unistd (unistd.h): Likewise.
51106
51107 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51108
51109         * modules/closein-tests (Makefile.am): Distribute
51110         `test-closein.sh'.
51111
51112 2007-05-17  Bruno Haible  <bruno@clisp.org>
51113
51114         * tests/test-printf-posix.output: Renamed from
51115         tests/test-fprintf-posix.out.
51116         * modules/fprintf-posix-tests: Update.
51117         * modules/printf-posix-tests: Update.
51118         * modules/vfprintf-posix-tests: Update.
51119         * modules/vprintf-posix-tests: Update.
51120         * tests/test-fprintf-posix.sh: Update.
51121         * tests/test-printf-posix.sh: Update.
51122         * tests/test-vfprintf-posix.sh: Update.
51123         * tests/test-vprintf-posix.sh: Update.
51124         Reported by Ralf Wildenhues.
51125
51126 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51127
51128         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
51129         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
51130         GCC 4.2, which otherwise issues a lot of warnings.
51131         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
51132         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
51133         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
51134         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
51135         it should no longer be needed.
51136         * lib/string_.h: Likewise.
51137         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
51138         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
51139         * modules/inttypes (inttypes.h): Likewise.
51140         * modules/math (math.h): Likewise.
51141         * modules/search (search.h): Likewise.
51142         * modules/signal (signal.h): Likewise.
51143         * modules/stdint (stdint.h): Likewise.
51144         * modules/stdio (stdio.h): Likewise.
51145         * modules/stdlib (stdlib.h): Likewise.
51146         * modules/string (string.h): Likewise.
51147         * modules/sys_time (sys/time.h): Likewise.
51148         * modules/time (time.h): Likewise.
51149         * modules/wchar (wchar.h): Likewise.
51150         * modules/wctype (wtype.h): Likewise.
51151
51152 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51153
51154         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
51155
51156 2007-05-13  Bruno Haible  <bruno@clisp.org>
51157
51158         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
51159         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51160         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
51161         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51162         (gl_PREREQ_STRTOK_R): Don't require it here.
51163
51164 2007-05-13  Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
51167         when used in C++ mode.
51168
51169 2007-05-12  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/linebuffer.h: Tweak doc.
51172         * lib/linebuffer.c: Likewise.
51173
51174 2007-05-12  James Youngman  <jay@gnu.org>
51175
51176         * lib/linebuffer.c (readlinebuffer_delim): New function,
51177         like readlinebuffer, but use a caller-specified delimiter.
51178         (readlinebuffer): Just call readlinebuffer_delim with '\n'
51179         as the delimiter.
51180         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
51181
51182 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51183
51184         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
51185         * modules/openat (Files): Remove openat-die.c.
51186         (Depends-on): Add openat-die.
51187         * modules/openat-die: New module.
51188
51189 2007-05-06  Bruno Haible  <bruno@clisp.org>
51190
51191         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
51192         Update with info about Cygwin.
51193         * doc/functions/fprintf.texi: Update.
51194         * doc/functions/printf.texi: Update.
51195         * doc/functions/snprintf.texi: Update.
51196         * doc/functions/sprintf.texi: Update.
51197         * doc/functions/vfprintf.texi: Update.
51198         * doc/functions/vprintf.texi: Update.
51199         * doc/functions/vsnprintf.texi: Update.
51200         * doc/functions/vsprintf.texi: Update.
51201         Reported by Eric Blake.
51202
51203 2007-05-06  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
51206         padding ourselves for the floating-point directives.
51207         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
51208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
51209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51210         gl_PRINTF_FLAG_ZERO and test its result. Invoke
51211         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
51212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51213         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51219         * tests/test-snprintf-posix.h (test_function): Also check the width
51220         and some flags in the %f directive.
51221         * tests/test-sprintf-posix.h (test_function): Likewise.
51222         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51223         * tests/test-vasprintf-posix.c (test_function): Likewise.
51224         * doc/functions/fprintf.texi: Update.
51225         * doc/functions/printf.texi: Update.
51226         * doc/functions/snprintf.texi: Update.
51227         * doc/functions/sprintf.texi: Update.
51228         * doc/functions/vfprintf.texi: Update.
51229         * doc/functions/vprintf.texi: Update.
51230         * doc/functions/vsnprintf.texi: Update.
51231         * doc/functions/vsprintf.texi: Update.
51232
51233 2007-05-06  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
51236         pass the ' flag character to sprintf or snprintf.
51237         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
51238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
51239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51240         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
51241         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
51242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
51244         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51247         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51249         * tests/test-snprintf-posix.h (test_function): Also check the grouping
51250         flag.
51251         * tests/test-sprintf-posix.h (test_function): Likewise.
51252         * tests/test-vasnprintf-posix.c (test_function): Likewise.
51253         * tests/test-vasprintf-posix.c (test_function): Likewise.
51254         * doc/functions/fprintf.texi: Update.
51255         * doc/functions/printf.texi: Update.
51256         * doc/functions/snprintf.texi: Update.
51257         * doc/functions/sprintf.texi: Update.
51258         * doc/functions/vfprintf.texi: Update.
51259         * doc/functions/vprintf.texi: Update.
51260         * doc/functions/vsnprintf.texi: Update.
51261         * doc/functions/vsprintf.texi: Update.
51262
51263 2007-05-01  Bruno Haible  <bruno@clisp.org>
51264
51265         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
51266
51267 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
51270         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
51271
51272 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
51275         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
51276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
51277
51278 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
51279
51280         * lib/argp-help.c (struct hol_entry): New member `ord'.
51281         (HOL_ENTRY_PTRCMP): Use ord for comparison
51282         (hol_sort): Initialize ord.
51283
51284 2007-05-01  Bruno Haible  <bruno@clisp.org>
51285
51286         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
51287         Reported by Eric Blake.
51288         * doc/gnulib.texi (Function Substitutes): Update.
51289
51290 2007-05-01  Bruno Haible  <bruno@clisp.org>
51291
51292         * doc/functions.texi: Remove file, now redundant through
51293         doc/functions/*.texi.
51294
51295 2007-05-01  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/argp (Depends-on): Add sleep.
51298
51299 2007-05-01  Bruno Haible  <bruno@clisp.org>
51300
51301         * modules/sleep-tests: New file.
51302         * tests/test-sleep.c: New file.
51303
51304         * modules/sleep: New file.
51305         * lib/sleep.c: New file.
51306         * m4/sleep.m4: New file.
51307         * lib/unistd_.h (sleep): New declaration.
51308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
51309         HAVE_SLEEP.
51310         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
51311         * doc/functions/sleep.texi: Document the sleep module.
51312
51313 2007-05-01  Bruno Haible  <bruno@clisp.org>
51314
51315         * lib/sigprocmask.h: Remove file.
51316         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
51317         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
51318         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
51319         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
51320         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51321         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
51322         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
51323         HAVE_SIGSET_T as a shell variable.
51324         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
51325         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
51326         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
51327         (Depends-on): Add signal. Remove verify.
51328         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
51329         (Include): Mention <signal.h> instead of sigprocmask.h.
51330         * NEWS: Mention the change.
51331         * lib/fatal-signal.c: Don't include sigprocmask.h.
51332
51333 2007-05-01  Bruno Haible  <bruno@clisp.org>
51334
51335         * modules/signal: New file.
51336         * lib/signal_.h: New file.
51337         * m4/signal_h.m4: New file.
51338
51339 2007-05-01  Bruno Haible  <bruno@clisp.org>
51340
51341         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51342         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51343         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51344         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51345
51346 2007-05-01  Bruno Haible  <bruno@clisp.org>
51347
51348         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51349         configure time.
51350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51351         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51352         * modules/sys_stat (Makefile.am): Substitute their values into
51353         sys/stat.h.
51354
51355 2007-05-01  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51358         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51359         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51360
51361 2007-05-01  Bruno Haible  <bruno@clisp.org>
51362
51363         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51364         'assert' module here.
51365
51366 2007-05-01  Bruno Haible  <bruno@clisp.org>
51367
51368         * doc/functions/*.texi: New files.
51369         * doc/functions/google-ranking.txt: New file.
51370         * doc/gnulib.texi (Function Substitutes): New chapter.
51371         (ctime, inet_ntoa): Remove sections.
51372         * doc/ctime.texi: Remove file.
51373         * doc/inet_ntoa.texi: Remove file.
51374         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51375         dependencies.
51376         (%.info): New rule, specifying a --reference-limit.
51377
51378 2007-05-01  Bruno Haible  <bruno@clisp.org>
51379
51380         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51381
51382 2007-05-01  Bruno Haible  <bruno@clisp.org>
51383
51384         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51385         the portability of 'mkdir' to mingw systems.
51386
51387 2007-05-01  Bruno Haible  <bruno@clisp.org>
51388
51389         * doc/headers/google-ranking.txt: New file.
51390
51391 2007-04-30  Eric Blake  <ebb9@byu.net>
51392
51393         Prefer fseeko to fseek.
51394         * modules/getpass (Depends-on): Add fseeko.
51395         * lib/getpass.c (getpass): Use fseeko, not fseek.
51396
51397 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51398
51399         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51400         assumes the sorting is stable, while most qsort implementations
51401         are not.  Use argument addresses to ensure they never compare as
51402         equal.
51403
51404         * tests/test-argp-2.sh (usage-indent test): Fix output
51405         (func_compare): Restore diff options
51406         * tests/test-argp.c: Restore #include "progname.h"
51407
51408 2007-04-29  Bruno Haible  <bruno@clisp.org>
51409
51410         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51412         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51414         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51415         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51416         (TESTS, check_PROGRAMS): Add test-snprintf.
51417         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51418         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51419         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51420         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51421         assertions that fail on HP-UX, OSF/1, or IRIX.
51422         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51423
51424 2007-04-29  Bruno Haible  <bruno@clisp.org>
51425
51426         * MODULES.html.sh (posix_functions): Remove 'contents'.
51427
51428 2007-04-29  Karl Berry  <karl@gnu.org>
51429
51430         * config/srclist.txt (gendocs_template_min): new entry.
51431
51432 2007-04-29  Bruno Haible  <bruno@clisp.org>
51433
51434         Work around fpurge bug on BSD systems.
51435         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51437         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51438         fpurge to rpl_fpurge if the system already has this function.
51439         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51440         the case where the system already has this function. Correct invariants
51441         on BSD systems.
51442         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51443         BSD systems.
51444
51445 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51446
51447         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51448         proposed by Sven Verdoolaege.
51449
51450         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51451         options.
51452         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51453         (usage and help tests): Update
51454
51455 2007-04-29  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51458         Print more information in case of failure. Disable a test on BeOS.
51459
51460 2007-04-29  Bruno Haible  <bruno@clisp.org>
51461
51462         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51463         This helps debugging on systems on which no gdb is available.
51464
51465 2007-04-29  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/freading.h: Improve comments.
51468         * lib/fwriting.h: Likewise.
51469         * tests/test-freading.c (main): Don't check freading immediately after
51470         repositioning. Needed for glibc.
51471
51472 2007-04-29  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/freading.c (freading): Trivial simplification.
51475
51476 2007-04-28  Bruno Haible  <bruno@clisp.org>
51477
51478         * tests/test-fwriting.c (main): Also test the interaction between
51479         fflush and fwriting.
51480         * modules/fwriting-tests (Depends-on): Add fflush.
51481
51482         * tests/test-freading.c (main): Also test the interaction between
51483         fflush and freading.
51484         * modules/freading-tests (Depends-on): Add fflush.
51485
51486 2007-04-28  Bruno Haible  <bruno@clisp.org>
51487
51488         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51489         fseeko and ftello.
51490         Suggested by Eric Blake.
51491
51492 2007-04-28  Jim Meyering  <jim@meyering.net>
51493
51494         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51495         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51496         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51497
51498 2007-04-27  Eric Blake  <ebb9@byu.net>
51499
51500         * doc/headers/assert.texi (assert.h): Document assert module use.
51501
51502 2007-04-27  Bruno Haible  <bruno@clisp.org>
51503
51504         * doc/headers/*.texi: New files.
51505         * doc/gnulib.texi (Header File Substitutes): New chapter.
51506         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51507         dependencies.
51508         (standards.info ,standards.html, standards.dvi): Update dependencies.
51509         (mostlyclean, clean): New targets.
51510
51511 2007-04-27  Bruno Haible  <bruno@clisp.org>
51512
51513         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51514         * modules/sysexits (Files, Makefile.am): Update.
51515
51516         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51517         * modules/sys_socket (Files, Makefile.am): Update.
51518
51519         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51520         * modules/sys_stat (Files, Makefile.am): Update.
51521
51522 2007-04-27  Eric Blake  <ebb9@byu.net>
51523
51524         * lib/freading.h: Improve comments.
51525         * lib/fwriting.h: Likewise.
51526         * lib/fflush.c: Likewise.
51527
51528         Fix closein for mingw.
51529         * modules/closein-tests: Add tests for closein.
51530         * tests/test-closein.c: New file.
51531         * tests/test-closein.sh: Likewise.
51532         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51533         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51534
51535 2007-04-27  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51538         version is < 6.
51539         * lib/math_.h [__DECC]: Likewise.
51540         * lib/stdio_.h [__DECC]: Likewise.
51541         * lib/stdlib_.h [__DECC]: Likewise.
51542         * lib/string_.h [__DECC]: Likewise.
51543         * lib/time_.h [__DECC]: Likewise.
51544         * lib/wchar_.h [__DECC]: Likewise.
51545         * lib/wctype_.h [__DECC]: Likewise.
51546
51547 2007-04-27  Bruno Haible  <bruno@clisp.org>
51548
51549         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51550
51551 2007-04-27  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/fflush.c: Add comments.
51554         * modules/fpurge-tests (Depends-on): Add fflush.
51555         * modules/freadable-tests (Depends-on): Likewise.
51556         * modules/fwritable-tests (Depends-on): Likewise.
51557
51558 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51559
51560         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51561         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51562         Report by Bruno Haible <bruno@clisp.org>.
51563
51564 2007-04-26  Eric Blake  <ebb9@byu.net>
51565
51566         Fix fflush on mingw.
51567         * modules/fflush (Depends-on): Add freading.
51568         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51569         but unread data.
51570
51571 2007-04-26  Eric Blake  <ebb9@byu.net>
51572         and Bruno Haible  <bruno@clisp.org>
51573
51574         Implement freading and fwriting.
51575         * lib/freading.c: New file.
51576         * lib/freading.h: Likewise.
51577         * m4/freading.m4: Likewise.
51578         * modules/freading: Likewise.
51579         * modules/freading-tests: Likewise.
51580         * tests/test-freading.c: Likewise.
51581         * lib/fwriting.c: New file.
51582         * lib/fwriting.h: Likewise.
51583         * m4/fwriting.m4: Likewise.
51584         * modules/fwriting: Likewise.
51585         * modules/fwriting-tests: Likewise.
51586         * tests/test-fwriting.c: Likewise.
51587         * MODULES.html.sh (File stream based Input/Output): Mention them.
51588
51589 2007-04-26  Bruno Haible  <bruno@clisp.org>
51590
51591         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51592         'long' when we assume it.
51593         Suggested by Eric Blake.
51594
51595 2007-04-26  Bruno Haible  <bruno@clisp.org>
51596
51597         Ensure fseeko, ftello are declared on glibc systems.
51598         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51599         * modules/fseeko (configure.ac-early): Likewise.
51600         * modules/ftello (configure.ac-early): Likewise.
51601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51602         AC_FUNC_FSEEKO for this.
51603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51604         (gl_CHECK_FSEEKO): Remove macro.
51605
51606 2007-04-26  Bruno Haible  <bruno@clisp.org>
51607
51608         * tests/test-fflush.c (main): Also check the ftell result after
51609         fflush and fseek/fseeko.
51610         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51611         file descriptor position cache in the stream.
51612         * lib/fseeko.c (rpl_fseeko): Likewise.
51613
51614 2007-04-26  Bruno Haible  <bruno@clisp.org>
51615
51616         * modules/fflush-tests (Depends-on): Add fseeko.
51617
51618 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51619             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51620
51621         * lib/argz_.h: ensure error_t definition is obtained in same
51622         mechanism system argz.h would have.
51623         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51624         argz facilities are known bad.  Err on the side of caution if
51625         cross-compiling.
51626
51627 2007-04-25  Eric Blake  <ebb9@byu.net>
51628
51629         * lib/fpurge.c (includes): Use stdlib.h for free.
51630         * tests/test-fflush.c (main): Also test fflush-fseeko.
51631
51632 2007-04-25  Bruno Haible  <bruno@clisp.org>
51633
51634         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51635         * lib/fseeko.c: New file.
51636         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51637         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51638         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51639         gl_FUNC_FSEEKO.
51640         (gl_FUNC_FSEEKO): Invoke it.
51641         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51642         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51643         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51644
51645 2007-04-25  Bruno Haible  <bruno@clisp.org>
51646
51647         * modules/fflush (Depends-on): Add ftello.
51648
51649 2007-04-25  Bruno Haible  <bruno@clisp.org>
51650
51651         * modules/ftello-tests: New file.
51652         * tests/test-ftello.c: New file.
51653
51654         * modules/ftello: New file.
51655         * m4/ftello.m4: New file.
51656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51657         HAVE_FTELLO.
51658         * lib/stdio_.h (ftello): New declaration.
51659         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51660         HAVE_FTELLO.
51661
51662 2007-04-25  Bruno Haible  <bruno@clisp.org>
51663
51664         * modules/fseeko-tests: New file.
51665         * tests/test-fseeko.c: New file.
51666
51667         * modules/fseeko: New file.
51668         * m4/fseeko.m4: New file.
51669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51670         HAVE_FSEEKO.
51671         * lib/stdio_.h (fseeko): New declaration.
51672         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51673         HAVE_FSEEKO.
51674
51675 2007-04-25  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51678
51679 2007-04-25  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51682         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51683         * tests/test-unistd.c: Likewise.
51684         * tests/test-fcntl.c: Likewise.
51685
51686 2007-04-23  Eric Blake  <ebb9@byu.net>
51687
51688         * lib/fflush.c: Fix missing include.
51689         Reported by Bruno Haible.
51690
51691 2007-04-23  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51694         Reported by Eric Blake.
51695
51696 2007-04-23  Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51699
51700 2007-04-23  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51703
51704 2007-04-23  Bruno Haible  <bruno@clisp.org>
51705
51706         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51707         Needed on HP-UX 11.
51708
51709 2007-04-16  Eric Blake  <ebb9@byu.net>
51710
51711         Make fflush rely on fpurge.
51712         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51713         open coding all variants.
51714         * modules/fflush (Depends-on): Add fpurge and unistd.
51715         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51717
51718         Fix --with-tests compilation on cygwin.
51719         * modules/argmatch-tests (Makefile.am): List gnulib library first
51720         in LDADD.
51721         * modules/argp-tests (Makefile.am): Likewise.
51722         * modules/array-list-tests (Makefile.am): Likewise.
51723         * modules/array-oset-tests (Makefile.am): Likewise.
51724         * modules/avltree-list-tests (Makefile.am): Likewise.
51725         * modules/avltree-oset-tests (Makefile.am): Likewise.
51726         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51727         * modules/carray-list-tests (Makefile.am): Likewise.
51728         * modules/dirname-tests (Makefile.am): Likewise.
51729         * modules/frexp-tests (Makefile.am): Likewise.
51730         * modules/isnanl-tests (Makefile.am): Likewise.
51731         * modules/linked-list-tests (Makefile.am): Likewise.
51732         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51733         * modules/lock-tests (Makefile.am): Likewise.
51734         * modules/rbtree-list-tests (Makefile.am): Likewise.
51735         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51736         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51737         * modules/tls-tests (Makefile.am): Likewise.
51738         * modules/tsearch-tests (Makefile.am): Likewise.
51739         * modules/xvasprintf-tests (Makefile.am): Likewise.
51740
51741         Fix fpurge for cygwin.
51742         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51743         value.
51744         * modules/fpurge-tests (Depends-on): Clean up trash.
51745
51746 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51747
51748         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51749
51750         * m4/autobuild.m4: Re-indent.
51751
51752 2007-04-13  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/fpurge-tests: New file.
51755         * tests/test-fpurge.c: New file.
51756
51757         * modules/fpurge: New file.
51758         * lib/fpurge.h: New file.
51759         * lib/fpurge.c: New file.
51760         * m4/fpurge.m4: New file.
51761
51762 2007-04-13  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/fbufmode-tests: New file.
51765         * tests/test-fbufmode.c: New file.
51766
51767         * modules/fbufmode: New file.
51768         * lib/fbufmode.h: New file.
51769         * lib/fbufmode.c: New file.
51770         * m4/fbufmode.m4: New file.
51771
51772 2007-04-13  Bruno Haible  <bruno@clisp.org>
51773
51774         * modules/fwritable-tests: New file.
51775         * tests/test-fwritable.c: New file.
51776
51777         * modules/fwritable: New file.
51778         * lib/fwritable.h: New file.
51779         * lib/fwritable.c: New file.
51780         * m4/fwritable.m4: New file.
51781
51782 2007-04-13  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/freadable-tests: New file.
51785         * tests/test-freadable.c: New file.
51786
51787         * modules/freadable: New file.
51788         * lib/freadable.h: New file.
51789         * lib/freadable.c: New file.
51790         * m4/freadable.m4: New file.
51791
51792 2007-04-13  Bruno Haible  <bruno@clisp.org>
51793
51794         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51795         MOSTLYCLEANFILES.
51796
51797 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51798
51799         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51800         gzip bootstrap.conf to avoid dragging in i18n machinery.
51801         (gnulib_tool_option): Use it.
51802
51803 2007-04-13  Bruno Haible  <bruno@clisp.org>
51804
51805         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51806         %F directives.
51807         * tests/test-vasprintf-posix.c (test_function): Likewise.
51808         * tests/test-snprintf-posix.h (test_function): Likewise.
51809         * tests/test-sprintf-posix.h (test_function): Likewise.
51810         * tests/test-fprintf-posix.h (test_function): Likewise.
51811         * tests/test-printf-posix.h (test_function): Likewise.
51812         * tests/test-fprintf-posix.out: Likewise.
51813
51814 2007-04-13  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51817         * modules/tls-tests (configure.ac): Likewise.
51818         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51819
51820 2007-04-13  Bruno Haible  <bruno@clisp.org>
51821
51822         * lib/tls.c (glthread_tls_get): Fix return type.
51823         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51824
51825 2007-04-12  Eric Blake  <ebb9@byu.net>
51826
51827         * modules/gettime (Depends-on): Remove gettime.
51828         Reported by Dmitry V. Levin.
51829
51830 2007-04-12  Bruno Haible  <bruno@clisp.org>
51831
51832         * modules/fflush (Include): Mention <stdio.h>.
51833         * modules/strtoimax (Include): Mention <inttypes.h>.
51834         * modules/strtoumax (Include): Likewise.
51835
51836 2007-04-12  Eric Blake  <ebb9@byu.net>
51837
51838         * .cvsignore: New file.
51839         * .gitignore: Likewise.
51840
51841 2007-04-12  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51844         not before, since $(LDADD) often contains libgnu.a.
51845         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51846         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51847         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51848         Needed on Cygwin.
51849
51850 2007-04-12  Eric Blake  <ebb9@byu.net>
51851
51852         Work around glibc's failure to flush stdin on fclose.
51853         * lib/closein.c (close_stdin): Flush stdin before closing.
51854
51855         Work around glibc's failure to reset seekable stdin on exit.
51856         * modules/closein: New module.
51857         * lib/closein.c: New file.
51858         * lib/closein.h: Likewise.
51859         * m4/closein.m4: Likewise.
51860         * MODULES.html.sh (File stream based Input/Output): Document it.
51861
51862 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51863
51864         * gnulib-tool: Rename generated 'autobuild' script to
51865         'do-autobuild' in --create-megatestdir output.
51866
51867         * doc/gnulib.texi (Build robot for gnulib): Fix.
51868
51869 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51870
51871         * modules/sysexits (Depends-on): Add absolute-header.
51872
51873 2007-04-12  Eric Blake  <ebb9@byu.net>
51874
51875         No need to preserve errno on success.
51876         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51877         Reported by Bruno Haible.
51878
51879 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51880
51881         * MODULES.html.sh (Support for maintaining and releasing
51882         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51883
51884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51885
51886         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51887
51888 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51889
51890         * modules/autobuild: New module.
51891
51892         * m4/autobuild.m4: New file.
51893
51894 2007-04-11  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51897         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51900         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51909         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51924         Reported by Eric Blake.
51925
51926 2007-04-11  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51929
51930 2007-04-10  Bruno Haible  <bruno@clisp.org>
51931
51932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51933         for NaN and Infinity. Needed on FreeBSD 6.1.
51934         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51935         regarding results for "%010a" of Infinity and NaN.
51936         * tests/test-vasprintf-posix.c (test_function): Likewise.
51937         * tests/test-snprintf-posix.h (test_function): Likewise.
51938         * tests/test-sprintf-posix.h (test_function): Likewise.
51939         * tests/test-fprintf-posix.h (test_function): Likewise.
51940         * tests/test-printf-posix.h (test_function): Likewise.
51941         * tests/test-fprintf-posix.out: Likewise.
51942
51943 2007-04-10  Bruno Haible  <bruno@clisp.org>
51944
51945         * modules/locale-tests: New file.
51946         * tests/test-locale.c: New file.
51947
51948         * modules/locale: New file.
51949         * lib/locale_.h: New file.
51950         * m4/locale_h.m4: New file.
51951
51952 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51953             Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51956         be determined, test for availability of the copysignf, copysign,
51957         copysignl functions.
51958         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51959         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51960         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51961
51962 2007-04-09  Eric Blake  <ebb9@byu.net>
51963
51964         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51965         * modules/stdio (Makefile.am): Support fflush.
51966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51967         * modules/fflush: New file.
51968         * lib/fflush.c: Likewise.
51969         * m4/fflush.m4: Likewise.
51970         * modules/fflush-tests: New test.
51971         * tests/test-fflush.c: Likewise.
51972         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51973
51974 2007-04-06  Bruno Haible  <bruno@clisp.org>
51975
51976         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51977         (VASNPRINTF): Use signbit for faster determination whether to print a
51978         minus sign.
51979         * modules/vasnprintf (Files): Remove lib/float+.h.
51980         * modules/fprintf-posix (Depends-on): Add signbit.
51981         * modules/snprintf-posix (Depends-on): Likewise.
51982         * modules/sprintf-posix (Depends-on): Likewise.
51983         * modules/vasnprintf-posix (Depends-on): Likewise.
51984         * modules/vasprintf-posix (Depends-on): Likewise.
51985         * modules/vfprintf-posix (Depends-on): Likewise.
51986         * modules/vsnprintf-posix (Depends-on): Likewise.
51987         * modules/vsprintf-posix (Depends-on): Likewise.
51988
51989 2007-04-06  Bruno Haible  <bruno@clisp.org>
51990
51991         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51992         * tests/test-frexpl.c (main): Likewise.
51993         * tests/test-ldexpl.c (main): Likewise.
51994         * modules/frexp-tests (Depends-on): Add signbit.
51995         * modules/frexpl-tests (Depdends-on): Likewise.
51996         * modules/ldexpl-tests (Depdends-on): Likewise.
51997
51998 2007-04-06  Bruno Haible  <bruno@clisp.org>
51999
52000         * modules/signbit-tests: New file.
52001         * tests/test-signbit.c: New file.
52002
52003         * modules/signbit: New file.
52004         * lib/signbitf.c: New file.
52005         * lib/signbitd.c: New file.
52006         * lib/signbitl.c: New file.
52007         * m4/signbit.m4: New file.
52008         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
52009         (signbit): New macro.
52010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
52011         REPLACE_SIGNBIT.
52012         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
52013         REPLACE_FREXPL into math.h.
52014
52015 2007-04-06  Bruno Haible  <bruno@clisp.org>
52016
52017         * modules/isnanf-nolibm-tests: New file.
52018         * tests/test-isnanf.c: New file.
52019
52020         * modules/isnanf-nolibm: New file.
52021         * lib/isnanf.h: New file.
52022         * lib/isnanf.c: New file.
52023         * lib/isnan.c: Consider the USE_FLOAT macro.
52024         * m4/isnanf.m4: New file.
52025
52026 2007-04-06  Bruno Haible  <bruno@clisp.org>
52027
52028         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
52029         (Link): New section.
52030
52031         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
52032
52033 2007-04-06  Bruno Haible  <bruno@clisp.org>
52034
52035         Assume the 'long double' type.
52036         * m4/longdouble.m4: Remove file.
52037         * config/srclist.txt: Don't mention longdouble.m4.
52038         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
52039         * lib/float+.h: Likewise.
52040         * lib/frexp.c: Likewise.
52041         * lib/printf-args.h: Likewise.
52042         * lib/printf-args.c: Likewise.
52043         * lib/printf-frexp.c: Likewise.
52044         * lib/printf-parse.c: Likewise.
52045         * lib/vasnprintf.c: Likewise.
52046         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
52047         * m4/intl.m4: Likewise.
52048         * m4/isnanl.m4: Likewise.
52049         * m4/printf.m4: Likewise.
52050         * m4/printf-frexpl.m4: Likewise.
52051         * m4/vasnprintf.m4: Likewise.
52052         * modules/allocsa (Files): Remove m4/longdouble.m4.
52053         * modules/gettext (Files): Likewise.
52054         * modules/relocatable-prog-wrapper (Files): Likewise.
52055         * modules/vasnprintf (Files): Likewise.
52056         * modules/isnanl (Files): Likewise.
52057         (Include): Simplify.
52058         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
52059         (Include): Simplify.
52060         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
52061         (Include): Simplify.
52062         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
52063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52064         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
52065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52066         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52068         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
52069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52070         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
52071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52072         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
52073         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
52074         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
52075         * tests/test-isnanl.c: Likewise.
52076         * tests/test-snprintf-posix.h: Likewise.
52077         * tests/test-sprintf-posix.h: Likewise.
52078         * tests/test-vasnprintf-posix.c: Likewise.
52079         * tests/test-vasnprintf-posix2.c: Likewise.
52080         * tests/test-vasprintf-posix.c: Likewise.
52081
52082 2007-04-06  Bruno Haible  <bruno@clisp.org>
52083
52084         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
52085         * lib/math_.h [__DECC]: Include the overridden include file through
52086         #include_next, outside the double-inclusion guard.
52087         * lib/stdio_.h [__DECC]: Likewise.
52088         * lib/stdlib_.h [__DECC]: Likewise.
52089         * lib/string_.h [__DECC]: Likewise.
52090         * lib/time_.h [__DECC]: Likewise.
52091         * lib/wchar_.h [__DECC]: Likewise.
52092         * lib/wctype_.h [__DECC]: Likewise.
52093         * lib/inttypes_.h [__DECC]: Likewise.
52094         Reported by Albert Chin <china@thewrittenword.com> in
52095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
52096
52097 2007-04-04  Eric Blake  <ebb9@byu.net>
52098
52099         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
52100         1.5.x.
52101
52102 2007-04-04  Bruno Haible  <bruno@clisp.org>
52103
52104         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
52105         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
52106
52107 2007-04-04  Bruno Haible  <bruno@clisp.org>
52108
52109         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
52110         results for "%010a" of Infinity and NaN.
52111         * tests/test-vasprintf-posix.c (test_function): Likewise.
52112         * tests/test-snprintf-posix.h (test_function): Likewise.
52113         * tests/test-sprintf-posix.h (test_function): Likewise.
52114         * tests/test-fprintf-posix.h (test_function): Remove these tests.
52115         * tests/test-printf-posix.h (test_function): Likewise.
52116         * tests/test-fprintf-posix.out: Update.
52117         Needed for FreeBSD 6.1.
52118
52119 2007-04-04  Bruno Haible  <bruno@clisp.org>
52120
52121         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
52122         directly used by the gnulib modules nor by gnulib-tool.
52123
52124 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * DEPENDENCIES: Give overall description of version dependency
52127         desirability.  Use more-typical names for apps.
52128         Add shell, coreutils, diffutils, grep, tar, gzip.
52129
52130 2007-04-04  Simon Josefsson  <simon@josefsson.org>
52131
52132         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
52133
52134 2007-04-04  Karl Berry  <karl@gnu.org>
52135
52136         * MODULES.html.sh (func_module): missing '.
52137
52138 2007-04-03  Bruno Haible  <bruno@clisp.org>
52139
52140         * modules/argmatch-tests (Makefile.am): New variable
52141         test_argmatch_LDADD.
52142         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
52143         * modules/array-list-tests (Makefile.am): New variable
52144         test_array_list_LDADD.
52145         * modules/array-oset-tests (Makefile.am): New variable
52146         test_array_oset_LDADD.
52147         * modules/avltree-list-tests (Makefile.am): New variable
52148         test_avltree_list_LDADD.
52149         * modules/avltree-oset-tests (Makefile.am): New variable
52150         test_avltree_oset_LDADD.
52151         * modules/avltreehash-list-tests (Makefile.am): New variable
52152         test_avltreehash_list_LDADD.
52153         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
52154         test_canonicalize_lgpl_LDADD.
52155         * modules/carray-list-tests (Makefile.am): New variable
52156         test_carray_list_LDADD.
52157         * modules/dirname-tests (Makefile.am): New variable
52158         test_dirname_LDADD.
52159         * modules/linked-list-tests (Makefile.am): New variable
52160         test_linked_list_LDADD.
52161         * modules/linkedhash-list-tests (Makefile.am): New variable
52162         test_linkedhash_list_LDADD.
52163         * modules/rbtree-list-tests (Makefile.am): New variable
52164         test_rbtree_list_LDADD.
52165         * modules/rbtree-oset-tests (Makefile.am): New variable
52166         test_rbtree_oset_LDADD.
52167         * modules/rbtreehash-list-tests (Makefile.am): New variable
52168         test_rbtreehash_list_LDADD.
52169         * modules/xvasprintf-tests (Makefile.am): New variable
52170         test_xvasprintf_LDADD.
52171         Reported by Eric Blake.
52172
52173 2007-04-03  Eric Blake  <ebb9@byu.net>
52174
52175         * DEPENDENCIES: Weaken m4 requirements.
52176
52177 2007-04-03  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
52180         * modules/isnanl-tests (configure.ac): Likewise.
52181
52182 2007-04-03  Ben Pfaff  <blp@gnu.org>
52183
52184         * modules/iconv_open: Add $(srcdir)/ to source directory
52185         references in Makefile fragments that call gperf, to fix VPATH
52186         builds.
52187
52188 2007-04-03  Bruno Haible  <bruno@clisp.org>
52189
52190         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
52191         * lib/ldexpl.c: Undo last change.
52192
52193 2007-04-03  Bruno Haible  <bruno@clisp.org>
52194
52195         * modules/printf-frexpl (Depends-on): Undo last change.
52196         (Files): Add m4/ldexpl.m4.
52197
52198 2007-04-03  Bruno Haible  <bruno@clisp.org>
52199
52200         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
52201         * modules/isnanl (Link): New section.
52202
52203         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
52204         * modules/frexp (Link): New section.
52205
52206         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
52207         * modules/frexpl (Link): New section.
52208
52209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
52210         * modules/ldexpl (Link): New section.
52211
52212 2007-04-03  Bruno Haible  <bruno@clisp.org>
52213
52214         * modules/TEMPLATE-EXTENDED: New file.
52215         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
52216
52217 2007-04-03  Bruno Haible  <bruno@clisp.org>
52218
52219         * DEPENDENCIES: New file.
52220         Suggested by Simon Josefsson.
52221
52222 2007-04-03  Bruno Haible  <bruno@clisp.org>
52223
52224         * doc/gnulib.texi: Escape @.
52225
52226 2007-04-03  James Youngman  <jay@gnu.org>
52227         and Paul Eggert  <eggert@cs.ucla.edu>
52228
52229         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
52230         birthtime on all systems that have birthtime, not just those which
52231         use st_birthtimensec rather than st_birthtim.  Putting zero in
52232         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
52233         that the birth time is not available for files on an NFS mount.
52234
52235 2007-04-03  Simon Josefsson  <simon@josefsson.org>
52236
52237         * modules/memxor: Move back from crypto/, suggested by Bruno.
52238         * modules/crypto/hmac-sha1: Fix memxor dependency.
52239
52240         * modules/crypto/gc: Moved from ../.
52241
52242 2007-04-02  Eric Blake  <ebb9@byu.net>
52243
52244         * lib/ldexpl.c (includes): Avoid libm.
52245
52246         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
52247
52248 2007-04-02  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
52251         on IRIX.
52252
52253 2007-04-02  Bruno Haible  <bruno@clisp.org>
52254
52255         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
52256         x86 or x86_64 platforms running MacOS X.
52257         Reported by Ryan Schmidt <@ryandesign.com>.
52258
52259 2007-04-02  Bruno Haible  <bruno@clisp.org>
52260
52261         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
52262         i386.
52263
52264 2007-04-01  Simon Josefsson  <simon@josefsson.org>
52265
52266         * modules/crypto/arcfour: Moved from ../.
52267         * modules/crypto/arcfour-tests: Moved from ../.
52268         * modules/crypto/arctwo: Moved from ../.
52269         * modules/crypto/arctwo-tests: Moved from ../.
52270         * modules/crypto/des: Moved from ../.
52271         * modules/crypto/des-tests: Moved from ../.
52272         * modules/crypto/gc-arcfour: Moved from ../.
52273         * modules/crypto/gc-arcfour-tests: Moved from ../.
52274         * modules/crypto/gc-arctwo: Moved from ../.
52275         * modules/crypto/gc-arctwo-tests: Moved from ../.
52276         * modules/crypto/gc-des: Moved from ../.
52277         * modules/crypto/gc-des-tests: Moved from ../.
52278         * modules/crypto/gc-hmac-md5: Moved from ../.
52279         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
52280         * modules/crypto/gc-hmac-sha1: Moved from ../.
52281         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
52282         * modules/crypto/gc-md2: Moved from ../.
52283         * modules/crypto/gc-md2-tests: Moved from ../.
52284         * modules/crypto/gc-md4: Moved from ../.
52285         * modules/crypto/gc-md4-tests: Moved from ../.
52286         * modules/crypto/gc-md5: Moved from ../.
52287         * modules/crypto/gc-md5-tests: Moved from ../.
52288         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
52289         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
52290         * modules/crypto/gc-random: Moved from ../.
52291         * modules/crypto/gc-rijndael: Moved from ../.
52292         * modules/crypto/gc-rijndael-tests: Moved from ../.
52293         * modules/crypto/gc-sha1: Moved from ../.
52294         * modules/crypto/gc-sha1-tests: Moved from ../.
52295         * modules/crypto/gc-tests: Moved from ../.
52296         * modules/crypto/hmac-md5: Moved from ../.
52297         * modules/crypto/hmac-md5-tests: Moved from ../.
52298         * modules/crypto/hmac-sha1: Moved from ../.
52299         * modules/crypto/hmac-sha1-tests: Moved from ../.
52300         * modules/crypto/md2: Moved from ../.
52301         * modules/crypto/md2-tests: Moved from ../.
52302         * modules/crypto/md4: Moved from ../.
52303         * modules/crypto/md4-tests: Moved from ../.
52304         * modules/crypto/md5: Moved from ../.
52305         * modules/crypto/md5-tests: Moved from ../.
52306         * modules/crypto/memxor: Moved from ../.
52307         * modules/crypto/rijndael: Moved from ../.
52308         * modules/crypto/rijndael-tests: Moved from ../.
52309         * modules/crypto/sha1: Moved from ../.
52310
52311 2007-03-30  James Youngman  <jay@gnu.org>
52312
52313         * tests/test-stat-time.c (prepare_test): use chmod() rather than
52314         rename() to change the ctime of a file (because ctime is unaffected
52315         by rename on jfs2 on AIX 5.1).
52316         (main): Start by doing cleanup, in case a previous run failed leaving
52317         test files behind.
52318
52319 2007-03-31  Bruno Haible  <bruno@clisp.org>
52320
52321         Support old proprietary implementations of iconv.
52322         * modules/iconv_open: New file.
52323         * lib/iconv_.h: New file.
52324         * m4/iconv_h.m4: New file.
52325         * lib/iconv_open.c: New file.
52326         * lib/iconv_open-aix.gperf: New file.
52327         * lib/iconv_open-hpux.gperf: New file.
52328         * lib/iconv_open-irix.gperf: New file.
52329         * lib/iconv_open-osf.gperf: New file.
52330         * m4/iconv_open.m4: New file.
52331         * modules/linebreak (Depends-on): Add iconv_open.
52332         * modules/striconv (Depends-on): Likewise.
52333         * modules/striconveh (Depends-on): Likewise.
52334         * modules/unicodeio (Depends-on): Likewise.
52335         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52336         (iconv_t)(-1).
52337         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52338         conversion if cd is (iconv_t)(-1).
52339         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52340         is not possible.
52341
52342 2007-03-31  Bruno Haible  <bruno@clisp.org>
52343
52344         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52345         work on Solaris either. Protect also second use of "autodetect_jp".
52346
52347 2007-03-31  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52350         the function is not present.
52351
52352 2007-03-31  Bruno Haible  <bruno@clisp.org>
52353
52354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52355         the function is not present.
52356
52357 2007-03-31  Bruno Haible  <bruno@clisp.org>
52358
52359         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52360         a bug in HP-UX iconv_open().
52361
52362 2007-03-31  Bruno Haible  <bruno@clisp.org>
52363
52364         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52365         (Mathematics <math.h>): New section, add fpieee.
52366         (Input/output <stdio.h>): Add fseterr.
52367         (Mathematics <math.h>): New section, add printf-frexp.
52368         (Container data structures): Add sublist.
52369         (Core language properties): Add fpucw, inline.
52370         (Functions for greatest-width integer types <inttypes.h>): Add
52371         imaxabs, imaxdiv, inttypes.
52372         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52373         isnanl-nolibm, ldexp.
52374         (Mathematics <math.h>): New section, add printf-frexpl.
52375         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52376         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52377         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52378         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52379         (Unicode string functions): Add unistr/u*-mbtoucr.
52380         (Java): Add javacomp-script, javaexec-script.
52381         (C#): Add csharpcomp-script, csharpexec-script.
52382         (Support for building libraries and executables): Add havelib,
52383         relocatable-*.
52384         (Support for maintaining and releasing projects): Renamed from
52385         'Support for maintaining and release projects'. Add announce-gen.
52386
52387 2007-03-31  Bruno Haible  <bruno@clisp.org>
52388
52389         * README: Talk primarily about git.
52390         (git and CVS): Renamed from CVS.
52391         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52392         gnulib is available through git.
52393         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52394
52395 2007-03-30  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52398         * lib/poll_.h: Likewise.
52399         * lib/stat_.h: Likewise.
52400         * lib/sys_time_.h: Likewise.
52401         * lib/sysexit_.h: Likewise.
52402         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52403         * lib/stdbool_.h: Likewise.
52404         * lib/byteswap_.h: Add double-inclusion guard.
52405
52406 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52407
52408         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52409
52410 2007-03-30  Karl Berry  <karl@gnu.org>
52411
52412         * config/srclist-update: double space after USA in the license
52413         substitution, since that's how it's usually (?) written.
52414
52415 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52418         reported by Bruno Haible.
52419
52420 2007-03-29  Bruno Haible  <bruno@clisp.org>
52421
52422         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52423         a bug in AIX iconv().
52424
52425 2007-03-29  Bruno Haible  <bruno@clisp.org>
52426
52427         * modules/ldexpl-tests: New file.
52428         * tests/test-ldexpl.c: New file.
52429
52430 2007-03-29  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/ldexpl.c: Include fpucw.h.
52433         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52434         multiplication.
52435         * modules/ldexpl (Depends-on): Add fpucw.
52436
52437 2007-03-29  Bruno Haible  <bruno@clisp.org>
52438
52439         * modules/ldexpl: New file.
52440         * m4/ldexpl.m4: New file.
52441         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52442         set.
52443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52444         REPLACE_LDEXPL.
52445         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52446         REPLACE_LDEXPL.
52447         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52448         gl_FUNC_LDEXPL_WORKS.
52449         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52450         * modules/mathl (Files): Remove lib/ldexpl.c.
52451         (Depends-on): Add ldexpl.
52452
52453 2007-03-29  Bruno Haible  <bruno@clisp.org>
52454
52455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52456
52457 2007-03-29  Bruno Haible  <bruno@clisp.org>
52458
52459         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52460         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52461         and possibly also HP-UX.
52462         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52463         work on AIX, IRIX, HP-UX, OSF/1.
52464         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52465         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52466         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52467         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52468         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52469         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52470
52471 2007-03-29  Bruno Haible  <bruno@clisp.org>
52472
52473         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52474
52475 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52478         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52479
52480 2007-03-29  Eric Blake  <ebb9@byu.net>
52481
52482         * lib/acl-internal.h: Remove redundant include.
52483         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52484         Cygwin when a file is locked.
52485
52486 2007-03-29  Bruno Haible  <bruno@clisp.org>
52487
52488         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52489         file.
52490         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52491
52492 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52495         try to remove a parent directory if the child couldn't be removed
52496         (except for the first rmdir, which could fail because the child
52497         doesn't exist).  Problem reported by Jeff Blaine in
52498         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52499
52500 2007-03-28  Bruno Haible  <bruno@clisp.org>
52501
52502         * lib/striconveh.c (utf8conv_carefully): New function.
52503         (mem_cd_iconveh_internal): Invoke it.
52504
52505 2007-03-28  Bruno Haible  <bruno@clisp.org>
52506
52507         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52508         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52509         input.
52510         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52511         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52512         unistr/u8-uctomb.
52513
52514 2007-03-28  Bruno Haible  <bruno@clisp.org>
52515
52516         * modules/unistr/u8-mbtoucr: New file.
52517         * lib/unistr/u8-mbtoucr.c: New file.
52518         * modules/unistr/u16-mbtoucr: New file.
52519         * lib/unistr/u16-mbtoucr.c: New file.
52520         * modules/unistr/u16-mbtoucr: New file.
52521         * lib/unistr/u16-mbtoucr.c: New file.
52522         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52523
52524 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52525             Bruno Haible  <bruno@clisp.org>
52526
52527         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52528         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52529         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52530
52531         * m4/stdio_h.m4: Add stubs for vasprintf too.
52532
52533         * modules/stdio: Support vasprintf in sed command.
52534
52535         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52536         vasprintf.h.  Add stdio module indicator.
52537
52538         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52539         vasprintf.h.
52540
52541         * lib/vasprintf.h: File removed.
52542
52543         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52544         * lib/vasprintf.c: Ditto.
52545         * lib/xvasprintf.c: Ditto.
52546         * tests/test-vasprintf-posix.c: Ditto.
52547         * tests/test-vasprintf.c: Ditto.
52548
52549 2007-03-27  Bruno Haible  <bruno@clisp.org>
52550
52551         Make vasnprintf multithread-safe.
52552         * lib/vasnprintf.c (decimal_point_char): New function.
52553         (VASNPRINTF): Use it.
52554         Suggested by Simon Josefsson.
52555
52556 2007-03-27  Eric Blake  <ebb9@byu.net>
52557
52558         Support sub-second birthtime on cygwin.
52559         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52560         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52561         (get_stat_birthtime): Also work with st_birthtim.
52562
52563 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52564
52565         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52566         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52567         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52568         (get_stat_birthtime_ns): Simplify compile-time tests.
52569         (get_stat_birthtime): Change the API to look like
52570         get_stat_mtime etc., except return a negative tv_nsec on error.
52571         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52572         Don't check for "spare" fields.
52573         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52574         or for struct stat.st_birthtime, as these tests aren't used.
52575         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52576
52577 2007-03-27  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/stat-time.h: Include <sys/stat.h>.
52580
52581 2007-03-27  James Youngman  <jay@gnu.org>
52582
52583         * lib/stat-time.h (get_stat_birthtime): New function for
52584           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52585         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52586           and its variants.
52587         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52588         * modules/stat-time-test: New file.
52589         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52590
52591 2007-03-26  Bruno Haible  <bruno@clisp.org>
52592
52593         Better support of signalling NaNs.
52594         * lib/atanl.c: Include isnanl.h.
52595         (atanl): Perform test for NaN at the beginning of the function and
52596         through a call to isnanl.
52597         * lib/cosl.c: Include isnanl.h.
52598         (cosl): Perform test for NaN at the beginning of the function and
52599         through a call to isnanl.
52600         * lib/ldexpl.c: Include isnanl.h.
52601         (ldexpl): Perform test for NaN through a call to isnanl.
52602         * lib/logl.c: Include isnanl.h.
52603         (logl): Perform test for NaN at the beginning of the function and
52604         through a call to isnanl.
52605         * lib/sinl.c: Include isnanl.h.
52606         (sinl): Perform test for NaN at the beginning of the function and
52607         through a call to isnanl.
52608         * lib/sqrtl.c: Include isnanl.h.
52609         (sqrtl): Perform test for NaN at the beginning of the function and
52610         through a call to isnanl.
52611         * lib/tanl.c: Include isnanl.h.
52612         (tanl): Perform test for NaN at the beginning of the function and
52613         through a call to isnanl.
52614         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52615         * modules/mathl (Depends-on): Add isnanl.
52616
52617 2007-03-26  Eric Blake  <ebb9@byu.net>
52618
52619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52620         regression in logic sense of previous patch.
52621
52622 2007-03-26  Bruno Haible  <bruno@clisp.org>
52623
52624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52625         unportable shell command "if ! ...".
52626         Reported by Ralf Wildenhues.
52627
52628 2007-03-25  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52631         <sysexits.h> file, and only add EX_CONFIG.
52632         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52633         absolute file name and whether it is sufficient. Substitute also
52634         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52635         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52636         ABSOLUTE_SYSEXITS_H into sysexits.h.
52637
52638 2007-03-25  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52641         hints is NULL.
52642
52643 2007-03-25  Bruno Haible  <bruno@clisp.org>
52644
52645         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52646         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52647
52648 2007-03-25  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/vasnprintf.c: Include langinfo.h.
52651         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52652         multithread-safe.
52653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52655         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52656         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52657         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52658         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52662         Reported by Simon Josefsson.
52663
52664 2007-03-25  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52667         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52668         * modules/vasnprintf (Depends-on): Add stdint.
52669
52670 2007-03-25  Bruno Haible  <bruno@clisp.org>
52671
52672         * modules/fpieee: New file.
52673         * m4/fpieee.m4: New file.
52674         * modules/isnan-nolibm (Depends-on): Add fpieee.
52675         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52676         * modules/isnanl (Depends-on): Add fpieee.
52677
52678 2007-03-25  Bruno Haible  <bruno@clisp.org>
52679
52680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52681
52682 2007-03-25  Bruno Haible  <bruno@clisp.org>
52683
52684         Avoid test failures on IRIX 6.5.
52685         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52686         (main): Use it.
52687         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52688         macros.
52689         (main): Use them.
52690
52691 2007-03-25  Bruno Haible  <bruno@clisp.org>
52692
52693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52694         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52695         exists but doesn't work.
52696         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52697         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52699         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52700         math.h.
52701
52702 2007-03-25  Bruno Haible  <bruno@clisp.org>
52703
52704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52705         returns inf. Needed on IRIX 6.5.
52706
52707 2007-03-25  Bruno Haible  <bruno@clisp.org>
52708
52709         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52710         (main): Use isnanl instead of x != x idiom.
52711         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52712
52713         * tests/test-frexp.c: Include isnan.h.
52714         (main): Use isnan instead of x != x idiom.
52715         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52716
52717 2007-03-25  Bruno Haible  <bruno@clisp.org>
52718
52719         * tests/test-frexp.c (NaN): New function/macro.
52720         (main): Use it instead of 0.0 / 0.0.
52721         * tests/test-isnan.c (NaN): New function/macro.
52722         (main): Use it instead of 0.0 / 0.0.
52723         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52724         (test_function): Use it instead of 0.0 / 0.0.
52725         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52726         (test_function): Use it instead of 0.0 / 0.0.
52727         * tests/test-snprintf-posix.h (NaN): New function/macro.
52728         (test_function): Use it instead of 0.0 / 0.0.
52729         * tests/test-sprintf-posix.h (NaN): New function/macro.
52730         (test_function): Use it instead of 0.0 / 0.0.
52731         * tests/test-fprintf-posix.h (NaN): New function/macro.
52732         (test_function): Use it instead of 0.0 / 0.0.
52733         * tests/test-printf-posix.h (NaN): New function/macro.
52734         (test_function): Use it instead of 0.0 / 0.0.
52735
52736         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52737
52738 2007-03-25  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52741
52742 2007-03-25  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/regexec.c (merge_state_with_log): Make static.
52745
52746 2007-03-25  Bruno Haible  <bruno@clisp.org>
52747
52748         * lib/trigl.c (kernel_rem_pio2): Make static.
52749
52750 2007-03-25  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/sincosl.c (sincosl_table): Make static.
52753
52754 2007-03-25  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52757         if the compiler does not support C99.
52758
52759 2007-03-25  Bruno Haible  <bruno@clisp.org>
52760
52761         * modules/time (Makefile.am): Ensure all rule action lines start with a
52762         tab.
52763
52764 2007-03-24  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/tsearch-tests: New file.
52767         * tests/test-tsearch.sh: New file.
52768         * tests/test-tsearch.c: New file, mostly copied from glibc.
52769
52770         * modules/search-tests: New file.
52771         * tests/test-search.c: New file.
52772
52773         * modules/search: New file.
52774         * lib/search_.h: New file, incorporating lib/tsearch.h.
52775         * m4/search_h.m4: New file.
52776         * lib/tsearch.h: Remove file.
52777         * lib/tsearch.c: Include search.h instead of tsearch.h.
52778         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52779         HAVE_TSEARCH.
52780         * modules/tsearch (Files): Remove lib/tsearch.h.
52781         (Depends-on): Add search.
52782         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52783         (Include): Change tsearch.h into search.h.
52784
52785 2007-03-24  Bruno Haible  <bruno@clisp.org>
52786
52787         * modules/fpucw: New file.
52788         * lib/fpucw.h: New file.
52789         * lib/frexp.c: Include fpucw.h.
52790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52791         (FUNC): Use them.
52792         * lib/printf-frexp.c: Include fpucw.h.
52793         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52794         (FUNC): Use them.
52795         * lib/vasnprintf.c: Include fpucw.h.
52796         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52797         'long double' calculations.
52798         * tests/test-frexpl.c: Include fpucw.h.
52799         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52800         * tests/test-printf-frexpl.c: Include fpucw.h.
52801         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52802         * modules/frexpl (Depends-on): Add fpucw.
52803         * modules/printf-frexpl (Depends-on): Likewise.
52804         * modules/fprintf-posix (Depends-on): Likewise.
52805         * modules/snprintf-posix (Depends-on): Likewise.
52806         * modules/sprintf-posix (Depends-on): Likewise.
52807         * modules/vasnprintf-posix (Depends-on): Likewise.
52808         * modules/vasprintf-posix (Depends-on): Likewise.
52809         * modules/vfprintf-posix (Depends-on): Likewise.
52810         * modules/vsnprintf-posix (Depends-on): Likewise.
52811         * modules/vsprintf-posix (Depends-on): Likewise.
52812         * modules/frexpl-tests (Depends-on): Likewise.
52813         * modules/printf-frexpl-tests (Depends-on): Likewise.
52814
52815 2007-03-24  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/float+.h: New file.
52818         * lib/isnan.c: Include float+.h.
52819         (SIZE): New macro.
52820         (FUNC): Compare only SIZE bytes of the value.
52821         * lib/vasnprintf.c: Include float+.h.
52822         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52823         SIZEOF_LDBL or SIZEOF_DBL bytes.
52824         * modules/isnan-nolibm (Files): Add lib/float+.h.
52825         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52826         * modules/isnanl (Files): Add lib/float+.h.
52827         * modules/vasnprintf (Files): Add lib/float+.h.
52828
52829 2007-03-24  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52832         include isnanl-nolibm.h.
52833
52834 2007-03-24  Bruno Haible  <bruno@clisp.org>
52835
52836         * tests/test-read-file.c (main): Don't produce spurious output for
52837         expected situations. Make the test fail if it encountered unexpected
52838         results.
52839
52840 2007-03-24  Bruno Haible  <bruno@clisp.org>
52841
52842         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52843         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52844
52845 2007-03-24  Bruno Haible  <bruno@clisp.org>
52846
52847         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52848
52849 2007-03-24  Bruno Haible  <bruno@clisp.org>
52850
52851         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52852         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52853
52854         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52855         * modules/utf8-ucs4: Turn into a symbolic link to module
52856         unistr/u8-mbtouc.
52857
52858         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52859         utf8-ucs4-unsafe.
52860         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52861         unistr/u8-mbtouc-unsafe.
52862
52863         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52864         * modules/utf16-ucs4: Turn into a symbolic link to module
52865         unistr/u16-mbtouc.
52866
52867         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52868         utf16-ucs4-unsafe.
52869         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52870         unistr/u16-mbtouc-unsafe.
52871
52872         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52873         * modules/ucs4-utf8: Turn into a symbolic link to module
52874         unistr/u8-ubtomb.
52875
52876         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52877         * modules/ucs4-utf16: Turn into a symbolic link to module
52878         unistr/u16-ubtomb.
52879
52880 2007-03-24  Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52883         Enable the function only if HAVE_INLINE.
52884         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52885         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52886         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52887         Enable the function only if HAVE_INLINE.
52888         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52889         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52890         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52891         Enable the function only if HAVE_INLINE.
52892         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52893         Enable the function only if HAVE_INLINE.
52894         * modules/utf8-ucs4: Update.
52895         * modules/utf8-ucs4-unsafe: Update.
52896         * modules/utf16-ucs4: Update.
52897         * modules/utf16-ucs4-unsafe: Update.
52898         * modules/ucs4-utf8: Update.
52899         * modules/ucs4-utf16: Update.
52900
52901 2007-03-24  Bruno Haible  <bruno@clisp.org>
52902
52903         * lib/utf8-ucs4.h: Remove file.
52904         * lib/utf8-ucs4-unsafe.h: Remove file.
52905         * lib/utf16-ucs4.h: Remove file.
52906         * lib/utf16-ucs4-unsafe.h: Remove file.
52907         * lib/ucs4-utf8.h: Remove file.
52908         * lib/ucs4-utf16.h: Remove file.
52909         * lib/unistr.h: Include their previous contents.
52910         * m4/utf-ucs4.m4: Remove file.
52911         * m4/ucs4-utf.m4: Remove file.
52912         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52913         (Depends-on): Add unistr/base.
52914         (configure.ac): Remove gl_UTF_UCS4.
52915         (Makefile.am): Update.
52916         (Include): Change to unistr.h.
52917         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52918         (Depends-on): Add unistr/base.
52919         (configure.ac): Remove gl_UTF_UCS4.
52920         (Makefile.am): Update.
52921         (Include): Change to unistr.h.
52922         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52923         (Depends-on): Add unistr/base.
52924         (configure.ac): Remove gl_UTF_UCS4.
52925         (Makefile.am): Update.
52926         (Include): Change to unistr.h.
52927         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52928         (Depends-on): Add unistr/base.
52929         (configure.ac): Remove gl_UTF_UCS4.
52930         (Makefile.am): Update.
52931         (Include): Change to unistr.h.
52932         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52933         (Depends-on): Add unistr/base.
52934         (configure.ac): Remove gl_UCS4_UTF.
52935         (Makefile.am): Update.
52936         (Include): Change to unistr.h.
52937         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52938         (Depends-on): Add unistr/base.
52939         (configure.ac): Remove gl_UCS4_UTF.
52940         (Makefile.am): Update.
52941         (Include): Change to unistr.h.
52942         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52943         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52944         utf8-ucs4-unsafe.h.
52945         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52946         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52947         utf16-ucs4-unsafe.h.
52948         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52949         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52950         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52951         * lib/unistr/u8-strchr.c: Likewise.
52952         * lib/unistr/u8-strrchr.c: Likewise.
52953         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52954         * lib/unistr/u16-strchr.c: Likewise.
52955         * lib/unistr/u16-strrchr.c: Likewise.
52956         * lib/striconveh.c: Update.
52957         * lib/linebreak.c: Update.
52958
52959 2007-03-24  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52962         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52963
52964 2007-03-22  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52967
52968 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         * MODULES.html.sh (File system functions): New module write-any-file.
52971         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52972         * m4/write-any-file.m4: New files.
52973
52974 2007-03-23  Eric Blake  <ebb9@byu.net>
52975
52976         * gnulib-tool: Rearrange space-tab sequences, since some editors
52977         like to eat them.
52978
52979 2007-03-23  Eric Blake  <ebb9@byu.net>
52980
52981         * lib/version-etc.c (version_etc_va): Update license wording to
52982         be more concise.  Recommended by Richard Stallman.
52983
52984 2007-03-22  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/poll.c (MSG_PEEK): New fallback definition.
52987
52988 2007-03-22  Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52991         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52992         (main): Update.
52993         Fixes a compilation error on BeOS.
52994
52995 2007-03-22  Bruno Haible  <bruno@clisp.org>
52996
52997         * modules/frexpl-tests: New file.
52998         * tests/test-frexpl.c: New file.
52999
53000         * modules/frexpl: New file.
53001         * m4/frexpl.m4: New file.
53002         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
53003         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
53004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
53005         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
53006         (Depends-on): Add frexpl. Remove isnanl-nolibm.
53007         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
53008
53009 2007-03-22  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/frexpl.c: Share code with lib/frexp.c.
53012         * modules/mathl (Files): Add lib/frexp.c.
53013         (Depends-on): Add isnanl-nolibm.
53014
53015 2007-03-22  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/printf-frexp (Files): Add m4/frexp.m4.
53018         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
53019         only if the found frexp function actually works.
53020
53021 2007-03-22  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/frexp.c: Remove older implementation that uses divisions.
53024
53025 2007-03-21  Bruno Haible  <bruno@clisp.org>
53026
53027         * modules/frexp-tests: New file.
53028         * tests/test-frexp.c: New file.
53029
53030         * modules/frexp: New file.
53031         * lib/frexp.c: New file.
53032         * m4/frexp.m4: New file.
53033         * lib/math_.h (frexp): New declaration.
53034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
53035         REPLACE_FREXP.
53036         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
53037
53038 2007-03-21  Bruno Haible  <bruno@clisp.org>
53039
53040         * modules/isnanl-tests: New file.
53041         * tests/test-isnanl.c: New file.
53042
53043         * modules/isnanl: New file.
53044         * lib/isnanl.h: New file.
53045         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
53046         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
53047         gl_FUNC_ISNANL_WORKS.
53048         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
53049         New macros.
53050
53051 2007-03-21  Bruno Haible  <bruno@clisp.org>
53052
53053         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
53054         lib/isnanl.h.
53055         (Include): Update.
53056         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
53057         * lib/vasnprintf.c: Update.
53058         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
53059         tests/test-isnanl.h, remove tests/test-isnanl.c.
53060         (Makefile.am): Update.
53061         * tests/test-isnanl-nolibm.c: New file.
53062         * tests/test-isnanl.h: New file.
53063         * tests/test-isnanl.c: Remove file.
53064
53065 2007-03-21  Jim Meyering  <jim@meyering.net>
53066
53067         When trying to open ".", treat ESTALE like EACCES.
53068         * lib/savewd.c (savewd_save): Resort to forking not just upon
53069         failure with EACCES, but also when errno is ESTALE.
53070
53071 2007-03-20  Bruno Haible  <bruno@clisp.org>
53072
53073         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
53074         Needed on AIX 5.1. Reported by Matthew Woehlke.
53075
53076 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         Suggestions by Bruno Haible:
53079         * lib/acl-internal.h: Include "gettext.h" rather than rolling
53080         our own.
53081         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
53082         * modules/acl (Depends-on): Add gettext.
53083
53084 2007-03-19  Bruno Haible  <bruno@clisp.org>
53085
53086         * modules/iconvme: Remove file.
53087         * lib/iconvme.h: Remove file.
53088         * lib/iconvme.c: Remove file.
53089         * m4/iconvme.m4: Remove file.
53090
53091 2007-03-19  Bruno Haible  <bruno@clisp.org>
53092
53093         * doc/relocatable-maint.texi: Break long shell script line.
53094         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53095
53096 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
53099         handle file_has_acl.
53100         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
53101         * lib/acl.c: Move header inclusions and related macro defns into
53102         lib/acl-internal.h.
53103         (S_ISLNK): Remove defn, since that's now done for us.
53104         (file_has_acl): Move to lib/file-has-acl.c.
53105         Call acl_trivial if available.  This is the crucial part of the fix.
53106         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
53107         shared within the library.  Rewrite a bit, partly to make it compatible
53108         with the GNU coding style.
53109         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
53110         Remove unnecessary double-quotes.
53111         Don't test for acl_to_text; the build will catch that.
53112         Replace acl_entries if it doesn't exist and it is needed.
53113         Check for -lsec and acl_trivial (as used on Solaris 10).
53114         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
53115         lib/file-has-acl.c.
53116         (Depends-on): Add sys_stat, for S_ISLNK.
53117
53118 2007-03-19  Ben Pfaff  <blp@gnu.org>
53119
53120         * doc/gnulib.texi: Fix typos.
53121         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
53122
53123 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
53124
53125         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
53126         If size is zero here, buf must be zero.
53127
53128 2007-03-19  Simon Josefsson  <simon@josefsson.org>
53129
53130         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
53131         <bruno@clisp.org>.
53132
53133 2007-03-18  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
53136         Suggested by Eric Blake.
53137
53138 2007-03-18  Ben Pfaff  <blp@gnu.org>
53139
53140         * doc/relocatable.texi: Recommend using as prefix a directory
53141         that does not exist and will never be created.  Based on
53142         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
53143         and others.
53144
53145 2007-03-17  Bruno Haible  <bruno@clisp.org>
53146
53147         * lib/fchownat.c: Include lchown.h.
53148
53149 2007-03-17  Bruno Haible  <bruno@clisp.org>
53150
53151         Fix endless loop when the given allocated size was > INT_MAX.
53152         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
53153         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
53154         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
53155         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
53156         * lib/sprintf.c (sprintf): Likewise.
53157
53158 2007-03-17  Bruno Haible  <bruno@clisp.org>
53159
53160         * tests/test-argp-2.sh (func_compare): Output a context diff.
53161
53162 2007-03-17  Bruno Haible  <bruno@clisp.org>
53163
53164         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
53165         locale's decimal-point character.
53166
53167 2007-03-17  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
53170         before comparing it. Needed because on some platforms (e.g. x86) a
53171         'long double' occupies less bytes than sizeof (long double).
53172
53173 2007-03-17  Bruno Haible  <bruno@clisp.org>
53174
53175         * tests/test-crc.c (main): Make printf statements 64-bit clean.
53176         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
53177         * tests/test-getaddrinfo.c (simple): Likewise.
53178         * tests/test-read-file.c (main): Likewise.
53179
53180 2007-03-17  Bruno Haible  <bruno@clisp.org>
53181
53182         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
53183
53184 2007-03-17  Bruno Haible  <bruno@clisp.org>
53185
53186         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
53187         unused variable.
53188
53189 2007-03-17  Bruno Haible  <bruno@clisp.org>
53190
53191         * tests/test-c-strcasecmp.c: Include c-strcase.h.
53192         * tests/test-c-strncasecmp.c: Likewise.
53193
53194 2007-03-17  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/stdlib (Depends-on): Add unistd.
53197         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
53198         Needed for MacOS X 10.3.
53199
53200 2007-03-17  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/unistr/u-strdup.h: Include <stdlib.h>.
53203
53204 2007-03-17  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
53207
53208 2007-03-17  Bruno Haible  <bruno@clisp.org>
53209
53210         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
53211         to reflect files copied from gnulib (with or without modifications).
53212         Suggested by Jim Meyering.
53213
53214 2007-03-17  Eric Blake  <ebb9@byu.net>
53215
53216         * NEWS: Document stdlib change from 2007-02-18.
53217
53218 2007-03-17  Jim Meyering  <jim@meyering.net>
53219
53220         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
53221         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
53222         someone uses a name containing shell meta-characters.
53223         Reported by Alfred M. Szmidt.
53224
53225         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
53226
53227 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53228
53229         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
53230         and copy gettext configuration files only if configure.ac contains
53231         a use of AM_GNU_GETTEXT_VERSION.
53232
53233 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
53234
53235         * build-aux/bootstrap (gnulib_name): New variable.
53236         (gnulib_tool_options): Use it.
53237
53238 2007-03-13  Simon Josefsson  <simon@josefsson.org>
53239
53240         * tests/test-des.c: Use new namespace.
53241
53242 2007-03-15  Bruno Haible  <bruno@clisp.org>
53243
53244         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
53245         Reported by James Youngman <jay@gnu.org>.
53246
53247 2007-03-15  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
53250         declared prototype. Needed with cc on OSF/1 5.1.
53251
53252 2007-03-15  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
53255         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
53256         (struct gl_list_implementation): Add dispose_fn argument to the
53257         'create_empty', 'create' methods.
53258         (struct gl_list_impl_base): Add field 'dispose_fn'.
53259         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
53260         argument.
53261         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
53262         dispose_fn argument.
53263         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
53264         dispose_fn on the dropped values.
53265         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
53266         dispose_fn argument.
53267         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
53268         dropped values.
53269         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
53270         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53271         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
53272         (gl_tree_remove_node): Call dispose_fn on the dropped value.
53273         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
53274         argument.
53275         (gl_tree_list_free): Call dispose_fn on the dropped values.
53276         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
53277         the dropped values.
53278         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
53279         Add dispose_fn argument.
53280         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
53281         Call dispose_fn on the dropped values.
53282         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
53283         Add dispose_fn argument.
53284         (gl_sublist_create): Initialize the 'dispose_fn' field.
53285         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
53286         * tests/test-array_list.c (main): Update.
53287         * tests/test-carray_list.c (main): Update.
53288         * tests/test-avltree_list.c (main): Update.
53289         * tests/test-rbtree_list.c (main): Update.
53290         * tests/test-avltreehash_list.c (main): Update.
53291         * tests/test-rbtreehash_list.c (main): Update.
53292         * tests/test-linked_list.c (main): Update.
53293         * tests/test-linkedhash_list.c (main): Update.
53294         * tests/test-array_oset.c (main): Update.
53295
53296 2007-03-15  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
53299         (gl_oset_create_empty): Add dispose_fn argument.
53300         (struct gl_oset_implementation): Add dispose_fn argument to
53301         'create_empty' method.
53302         (struct gl_oset_impl_base): Add dispose_fn field.
53303         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
53304         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
53305         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
53306         values.
53307         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
53308         (gl_tree_oset_free): Call dispose_fn on the dropped values.
53309         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53310         dropped value.
53311         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
53312         dropped value.
53313         * tests/test-array_oset.c (main): Update.
53314         * tests/test-avltree_oset.c (main): Update.
53315         * tests/test-rbtree_oset.c (main): Update.
53316         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
53317
53318 2007-03-13  Bruno Haible  <bruno@clisp.org>
53319
53320         * tests/test-stdbool.c (i): Update after last patch.
53321
53322 2007-03-12  Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/quotearg.c: Include <wctype.h> early, before the definition of
53325         the iswprint macro. Needed on Solaris 2.5.1.
53326
53327 2007-03-12  Bruno Haible  <bruno@clisp.org>
53328
53329         * tests/test-printf-frexp.c (main): Declare x as volatile.
53330
53331 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53332
53333         * doc/gnulib.texi (Build robot for gnulib): New section.
53334
53335 2007-03-12  Jim Meyering  <jim@meyering.net>
53336
53337         * build-aux/bootstrap: New file.
53338         * build-aux/bootstrap.conf: New file, from coreutils.
53339
53340 2007-03-11  Bruno Haible  <bruno@clisp.org>
53341
53342         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53343
53344 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53345
53346         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53347         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53348         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53349
53350 2007-03-11  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53353         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53354
53355 2007-03-11  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53358         formula. Needed for SunPRO C 5.0.
53359
53360 2007-03-11  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/long-options (Depends-on): Add getopt.
53363
53364 2007-03-11  Bruno Haible  <bruno@clisp.org>
53365
53366         * modules/modechange (Depends-on): Add stdbool.
53367
53368 2007-03-11  Bruno Haible  <bruno@clisp.org>
53369
53370         * modules/i-ring (Depends-on): Add stdbool.
53371
53372 2007-03-11  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/gc-des (Depends-on): Add stdbool.
53375
53376 2007-03-11  Bruno Haible  <bruno@clisp.org>
53377
53378         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53379
53380 2007-03-11  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53383
53384 2007-03-11  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53387
53388 2007-03-11  Bruno Haible  <bruno@clisp.org>
53389
53390         * lib/vasnprintf.c (sprintf): Undefine.
53391
53392 2007-03-11  Bruno Haible  <bruno@clisp.org>
53393
53394         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53395         initializers in SunPRO C and Compaq C compilers.
53396
53397 2007-03-11  Bruno Haible  <bruno@clisp.org>
53398
53399         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53400         decrementing code ANSI C compliant.
53401
53402 2007-03-11  Bruno Haible  <bruno@clisp.org>
53403
53404         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53405         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53406
53407 2007-03-11  Bruno Haible  <bruno@clisp.org>
53408
53409         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53410         <stdbool.h> substitute doesn't pass.
53411
53412 2007-03-11  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53415
53416 2007-03-11  Bruno Haible  <bruno@clisp.org>
53417
53418         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53419         script, for submission to autobuild.josefsson.org.
53420
53421 2007-03-10  Bruno Haible  <bruno@clisp.org>
53422
53423         * modules/canonicalize-lgpl-tests: New file.
53424         * tests/test-canonicalize-lgpl.sh: New file.
53425         * tests/test-canonicalize-lgpl.c: New file.
53426
53427         * modules/c-strcase-tests: New file.
53428         * tests/test-c-strcase.sh: New file.
53429         * tests/test-c-strcasecmp.c: New file.
53430         * tests/test-c-strncasecmp.c: New file.
53431
53432         * modules/atexit-tests: New file.
53433         * tests/test-atexit.sh: New file.
53434         * tests/test-atexit.c: New file.
53435
53436 2007-03-10  Bruno Haible  <bruno@clisp.org>
53437
53438         * tests/test-binary-io.sh: Use temporary filenames that are not so
53439         likely to clash with those of other tests (in a parallel make).
53440         * tests/test-binary-io.c: Likewise.
53441
53442 2007-03-10  Bruno Haible  <bruno@clisp.org>
53443
53444         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53445         fallback; use #error instead.
53446         Suggested by Simon Josefsson.
53447
53448 2007-03-10  Bruno Haible  <bruno@clisp.org>
53449
53450         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53451         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53452         first and the last.
53453
53454 2007-03-10  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53457
53458 2007-03-10  Bruno Haible  <bruno@clisp.org>
53459
53460         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53461         "make distcheck".
53462         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53463         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53464         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53465
53466 2007-03-10  Bruno Haible  <bruno@clisp.org>
53467
53468         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53469         variable.
53470         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53471         variable.
53472
53473 2007-03-09  Eric Blake  <ebb9@byu.net>
53474         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53475
53476         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53477         types are not being provided by gnulib.
53478         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53479         types are supported.
53480
53481 2007-03-10  Bruno Haible  <bruno@clisp.org>
53482
53483         * lib/stdio_.h (__attribute__): New macro.
53484         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53485         vsprintf): Specify __attribute__ __format__ for GCC.
53486         Suggested by Eric Blake.
53487
53488 2007-03-09  Bruno Haible  <bruno@clisp.org>
53489
53490         * modules/printf-posix-tests: New file.
53491         * tests/test-printf-posix.sh: New file.
53492         * tests/test-printf-posix.c: New file.
53493
53494         * modules/printf-posix: New file.
53495         * lib/printf.c: New file.
53496         * m4/printf-posix-rpl.m4: New file.
53497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53498         REPLACE_PRINTF.
53499         * lib/stdio_.h (printf): New declaration.
53500         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53501         ____strfmon____): New macros.
53502         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53503         REPLACE_PRINTF.
53504
53505 2007-03-09  Bruno Haible  <bruno@clisp.org>
53506
53507         * tests/test-vasnprintf-posix2.sh: New file.
53508         * tests/test-vasnprintf-posix2.c: New file.
53509         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53510         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53511         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53512
53513         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53514         a locale dependent decimal point, rather than always '.'.
53515
53516 2007-03-09  Eric Blake  <ebb9@byu.net>
53517
53518         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53519         spite of platforms like Tandem/NSK that define it to -1.
53520
53521 2007-03-08  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/vprintf-posix-tests: New file.
53524         * tests/test-vprintf-posix.sh: New file.
53525         * tests/test-vprintf-posix.c: New file.
53526         * tests/test-printf-posix.h: New file.
53527
53528         * modules/vprintf-posix: New file.
53529         * lib/vprintf.c: New file.
53530         * m4/vprintf-posix.m4: New file.
53531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53532         REPLACE_VPRINTF.
53533         * lib/stdio_.h (vprintf): New declaration.
53534         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53535         REPLACE_VPRINTF.
53536
53537 2007-03-08  Bruno Haible  <bruno@clisp.org>
53538
53539         * modules/fprintf-posix-tests: New file.
53540         * tests/test-fprintf-posix.sh: New file.
53541         * tests/test-fprintf-posix.c: New file.
53542
53543         * modules/fprintf-posix: New file.
53544         * lib/fprintf.c: New file.
53545         * m4/fprintf-posix.m4: New file.
53546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53547         REPLACE_FPRINTF.
53548         * lib/stdio_.h (fprintf): New declaration.
53549         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53550         REPLACE_FPRINTF.
53551
53552 2007-03-08  Bruno Haible  <bruno@clisp.org>
53553
53554         * modules/vfprintf-posix-tests: New file.
53555         * tests/test-vfprintf-posix.sh: New file.
53556         * tests/test-vfprintf-posix.c: New file.
53557         * tests/test-fprintf-posix.h: New file.
53558         * tests/test-fprintf-posix.out: New file.
53559
53560         * modules/vfprintf-posix: New file.
53561         * lib/vfprintf.c: New file.
53562         * m4/vfprintf-posix.m4: New file.
53563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53564         REPLACE_VFPRINTF.
53565         * lib/stdio_.h (vfprintf): New declaration.
53566         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53567         REPLACE_VFPRINTF.
53568
53569 2007-03-08  Bruno Haible  <bruno@clisp.org>
53570
53571         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53572
53573 2007-03-08  Bruno Haible  <bruno@clisp.org>
53574
53575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53576         instead of 'expr' invocations.
53577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53582         Suggested by Paul Eggert.
53583
53584 2007-03-08  Bruno Haible  <bruno@clisp.org>
53585
53586         * modules/fseterr-tests: New file.
53587         * tests/test-fseterr.c: New file.
53588
53589         * modules/fseterr: New file.
53590         * lib/fseterr.h: New file.
53591         * lib/fseterr.c: New file.
53592
53593 2007-03-08  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53596         * lib/getopt_.h: Likewise.
53597         * lib/mbswidth.h: Likewise.
53598         * lib/setenv.h: Likewise.
53599         * lib/vasnprintf.h: Likewise.
53600         * lib/vasprintf.h: Likewise.
53601         * lib/verror.h: Likewise.
53602         * lib/xsetenv.h: Likewise.
53603         * lib/xvasprintf.h: Likewise.
53604
53605 2007-03-08  Jim Meyering  <jim@meyering.net>
53606
53607         * users.txt: Add parted.
53608
53609         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53610
53611 2007-03-07  Bruno Haible  <bruno@clisp.org>
53612
53613         * m4/printf.m4: Make the shell script snippets copy&pastable.
53614
53615 2007-03-02  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/netinet_in_.h: New file.
53618         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53619         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53620         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53621         (Depends-on): Add absolute-header.
53622         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53623         into netinet/in.h.
53624
53625 2007-03-03  Bruno Haible  <bruno@clisp.org>
53626
53627         * lib/sys_select_.h: New file.
53628         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53629         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53630         * modules/sys_select (Files): Add lib/sys_select_.h.
53631         (Depends-on): Add absolute-header.
53632         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53633         into sys/select.h.
53634
53635 2007-03-02  Bruno Haible  <bruno@clisp.org>
53636
53637         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53638         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53639         values.
53640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53641         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53642         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53643         * modules/sys_socket (Depends-on): Add absolute-header.
53644         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53645         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53646         (Include): Remove requirement of inclusion of <sys/types.h>.
53647
53648 2007-03-02  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/byteswap_.h (bswap_32): Fix formula.
53651
53652 2007-03-06  Bruno Haible  <bruno@clisp.org>
53653
53654         * modules/sprintf-posix-tests: New file.
53655         * tests/test-sprintf-posix.c: New file.
53656
53657         * modules/sprintf-posix: New file.
53658         * lib/sprintf.c: New file.
53659         * m4/sprintf-posix.m4: New file.
53660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53661         REPLACE_SPRINTF.
53662         * lib/stdio_.h (sprintf): New declaration.
53663         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53664         REPLACE_SPRINTF.
53665
53666 2007-03-06  Bruno Haible  <bruno@clisp.org>
53667
53668         * modules/vsprintf-posix-tests: New file.
53669         * tests/test-vsprintf-posix.c: New file.
53670         * tests/test-sprintf-posix.h: New file.
53671
53672         * modules/vsprintf-posix: New file.
53673         * lib/vsprintf.c: New file.
53674         * m4/vsprintf-posix.m4: New file.
53675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53676         REPLACE_VSPRINTF.
53677         * lib/stdio_.h (vsprintf): New declaration.
53678         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53679         REPLACE_VSPRINTF.
53680
53681 2007-03-06  Bruno Haible  <bruno@clisp.org>
53682
53683         * modules/vsnprintf (Depend-on): Remove minmax.
53684
53685 2007-03-06  Bruno Haible  <bruno@clisp.org>
53686
53687         * modules/snprintf-posix-tests: New file.
53688         * tests/test-snprintf-posix.c: New file.
53689
53690         * modules/snprintf-posix: New file.
53691         * m4/snprintf-posix.m4: New file.
53692         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53693         gl_FUNC_SNPRINTF.
53694         (gl_FUNC_SNPRINTF): Invoke it.
53695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53696         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53697         is set.
53698         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53699
53700 2007-03-06  Bruno Haible  <bruno@clisp.org>
53701
53702         * modules/vsnprintf-posix-tests: New file.
53703         * tests/test-vsnprintf-posix.c: New file.
53704         * tests/test-snprintf-posix.h: New file.
53705
53706         * modules/vsnprintf-posix: New file.
53707         * m4/vsnprintf-posix.m4: New file.
53708         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53709         gl_FUNC_VSNPRINTF.
53710         (gl_FUNC_VSNPRINTF): Invoke it.
53711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53712         * lib/stdio_.h (vsnprintf): Define as a replacement if
53713         REPLACE_VSNPRINTF is set.
53714         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53715
53716 2007-03-06  Bruno Haible  <bruno@clisp.org>
53717
53718         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53720
53721 2007-03-06  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53724         (asinl): Declare also if HAVE_DECL_ASINL is set.
53725         (atanl): Declare also if HAVE_DECL_ATANL is set.
53726         (ceill): Declare also if HAVE_DECL_CEILL is set.
53727         (cosl): Declare also if HAVE_DECL_COSL is set.
53728         (expl): Declare also if HAVE_DECL_EXPL is set.
53729         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53730         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53731         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53732         (logl): Declare also if HAVE_DECL_LOGL is set.
53733         (sinl): Declare also if HAVE_DECL_SINL is set.
53734         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53735         (tanl): Declare also if HAVE_DECL_TANL is set.
53736         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53739         declaration of frexpl, ldexpl.
53740         * modules/printf-frexpl (Depends-on): Add math.
53741         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53742
53743 2007-03-05  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53746         frexpl and ldexpl are declared.
53747         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53748
53749 2007-03-05  Bruno Haible  <bruno@clisp.org>
53750
53751         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53752         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53753
53754 2007-03-05  Bruno Haible  <bruno@clisp.org>
53755
53756         * lib/stdio_.h: Include <stddef.h>.
53757
53758 2007-03-05  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53761
53762 2007-03-05  Bruno Haible  <bruno@clisp.org>
53763
53764         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53765         NetBSD 4, from Ralf Wildenhues.
53766
53767 2007-03-04  Bruno Haible  <bruno@clisp.org>
53768
53769         * lib/vasprintf.h: Update #if logic for the case when the functions
53770         exist but are overridden.
53771
53772 2007-03-04  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53775         implementations: glibc-2.4 and MacOS X 10.3.
53776         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53777         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53778         * tests/test-vasprintf-posix.c (test_function): Likewise.
53779
53780 2007-03-04  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/vasprintf-posix-tests: New file.
53783         * tests/test-vasprintf-posix.c: New file.
53784
53785         * modules/vasprintf-posix: New file.
53786         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53787         defined.
53788         * m4/vasprintf-posix.m4: New file.
53789         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53790         gl_FUNC_VASPRINTF.
53791         (gl_FUNC_VASPRINTF): Invoke it.
53792         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53793         here.
53794         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53795
53796 2007-03-04  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53799         REPLACE_GETTIMEOFDAY.
53800         * modules/sys_time (Makefile.am): Likewise.
53801         * m4/sys_time_h.m4: Likewise.
53802         * m4/gettimeofday.m4: Likewise.
53803
53804 2007-03-04  Bruno Haible  <bruno@clisp.org>
53805
53806         * modules/vasnprintf-posix-tests: New file.
53807         * tests/test-vasnprintf-posix.c: New file.
53808
53809         * modules/vasnprintf-posix: New file.
53810         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53811         printf-frexpl.h.
53812         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53813         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53814         REPLACE_VASNPRINTF is defined.
53815         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53816         gl_FUNC_VASNPRINTF.
53817         (gl_FUNC_VASNPRINTF): Invoke it.
53818         * m4/vasnprintf-posix.m4: New file.
53819         * m4/printf.m4: New file.
53820
53821 2007-03-04  Bruno Haible  <bruno@clisp.org>
53822
53823         Compile progreloc.c only if --enable-relocatable is specified.
53824         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53825         if --enable-relocatable was specified.
53826         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53827         lib_SOURCES.
53828
53829 2007-03-04  Jim Meyering  <jim@meyering.net>
53830
53831         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53832         Use it consistently, rather than enumerating errno constants.
53833
53834 2007-03-04  Bruno Haible  <bruno@clisp.org>
53835
53836         * modules/xvasprintf-tests: New file.
53837         * tests/test-xvasprintf.c: New file.
53838
53839         * modules/vasprintf-tests: New file.
53840         * tests/test-vasprintf.c: New file.
53841
53842         * modules/vasnprintf-tests: New file.
53843         * tests/test-vasnprintf.c: New file.
53844
53845         * modules/vsnprintf-tests: New file.
53846         * tests/test-vsnprintf.c: New file.
53847
53848         * modules/snprintf-tests: New file.
53849         * tests/test-snprintf.c: New file.
53850
53851 2007-03-04  Bruno Haible  <bruno@clisp.org>
53852
53853         Compile relocatable.c only if --enable-relocatable is specified.
53854         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53855         gl_RELOCATABLE_LIBRARY.
53856         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53857         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53858         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53859         gl_RELOCATABLE_LIBRARY.
53860         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53861         (Makefile.am): Remove lib_SOURCES.
53862         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53863         gl_RELOCATABLE_LIBRARY.
53864         (Makefile.am): Remove lib_SOURCES.
53865         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53866         always.
53867         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53868         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53869
53870 2007-03-04  Bruno Haible  <bruno@clisp.org>
53871
53872         * modules/argmatch-tests: New file.
53873         * tests/test-argmatch.c: New file.
53874
53875         * tests/test-allocsa.c (main): Halve the number of loop runs.
53876
53877         * modules/alloca-opt-tests: New file.
53878         * tests/test-alloca-opt.c: New file.
53879
53880 2007-03-04  Jim Meyering  <jim@meyering.net>
53881
53882         Work around difference between Linux ACLs and Solaris 10 ZFS.
53883         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53884         for EINVAL.
53885
53886 2007-03-03  Bruno Haible  <bruno@clisp.org>
53887
53888         * modules/relocatable-prog (Depends-on): Add back progreloc's
53889         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53890
53891 2007-03-03  Bruno Haible  <bruno@clisp.org>
53892
53893         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53894         * modules/relocatable-lib: New file.
53895
53896 2007-03-03  Bruno Haible  <bruno@clisp.org>
53897
53898         * modules/relocatable-prog: Renamed from modules/relocatable.
53899         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53900
53901 2007-03-03  Bruno Haible  <bruno@clisp.org>
53902
53903         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53904         m4/relocatable-lib.m4.
53905         (Depends-on): Remove 'relocatable'.
53906         (configure.ac): Add gl_RELOCATABLE_NOP.
53907
53908 2007-03-03  Bruno Haible  <bruno@clisp.org>
53909
53910         * modules/relocatable-prog-wrapper: New file.
53911         * modules/relocatable (Depends-on): Add it. Remove all other
53912         dependencies except progname.
53913         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53914
53915         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53916         (gl_FUNC_STRERROR): Nop.
53917         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53918
53919         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53920         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53921
53922         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53923         (gl_FUNC_READLINK): Update.
53924
53925         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53926
53927 2007-03-03  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53930         * modules/xreadlink (Depends-on): Add unistd.
53931         * modules/xreadlink-with-size (Depends-on): Likewise.
53932
53933 2007-03-03  Bruno Haible  <bruno@clisp.org>
53934
53935         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53936         extracted from gt_FUNC_SETENV.
53937         (gt_FUNC_SETENV): Remove macro.
53938         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53939         remove gt_FUNC_SETENV.
53940
53941 2007-03-03  Bruno Haible  <bruno@clisp.org>
53942
53943         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53944         ENABLE_RELOCATABLE here.
53945         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53946
53947 2007-03-03  Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53950         * tests/test-rbtreehash_list.c: Include progname.h.
53951         (main): Call set_program_name.
53952
53953         * modules/rbtree-oset-tests (Depends-on): Add progname.
53954         * tests/test-rbtree_oset.c: Include progname.h.
53955         (main): Call set_program_name.
53956
53957         * modules/rbtree-list-tests (Depends-on): Add progname.
53958         * tests/test-rbtree_list.c: Include progname.h.
53959         (main): Call set_program_name.
53960
53961         * modules/linked-list-tests (Depends-on): Add progname.
53962         * tests/test-linked_list.c: Include progname.h.
53963         (main): Call set_program_name.
53964
53965 2007-03-03  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53968         All uses of __restrict changed to _Restrict_.
53969         * lib/glob_.h (__restrict): Remove macro.
53970
53971 2007-03-02  Bruno Haible  <bruno@clisp.org>
53972
53973         * modules/gettext (configure.ac): Require gettext infrastructure
53974         from version 0.16.1.
53975
53976 2007-03-02  Bruno Haible  <bruno@clisp.org>
53977
53978         * modules/linkedhash-list-tests (Depends-on): Add progname.
53979         * tests/test-linkedhash_list.c: Include progname.h.
53980         (main): Call set_program_name.
53981
53982         * modules/carray-list-tests (Depends-on): Add progname.
53983         * tests/test-carray_list.c: Include progname.h.
53984         (main): Call set_program_name.
53985
53986         * modules/avltreehash-list-tests (Depends-on): Add progname.
53987         * tests/test-avltreehash_list.c: Include progname.h.
53988         (main): Call set_program_name.
53989
53990         * modules/avltree-oset-tests (Depends-on): Add progname.
53991         * tests/test-avltree_oset.c: Include progname.h.
53992         (main): Call set_program_name.
53993
53994         * modules/avltree-list-tests (Depends-on): Add progname.
53995         * tests/test-avltree_list.c: Include progname.h.
53996         (main): Call set_program_name.
53997
53998         * modules/array-oset-tests (Depends-on): Add progname.
53999         * tests/test-array_oset.c: Include progname.h.
54000         (main): Call set_program_name.
54001
54002         * modules/array-list-tests (Depends-on): Add progname.
54003         * tests/test-array_list.c: Include progname.h.
54004         (main): Call set_program_name.
54005
54006         * modules/argp-tests (Depends-on): Add progname.
54007         * tests/test-argp.c: Include argp.h first. Include progname.h.
54008         (main): Call set_program_name.
54009
54010 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
54011
54012         * doc/gnulib-tool.texi (Initial import): Reword description of
54013         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
54014         limited effect even if defined after the first system include.
54015
54016 2007-03-01  Bruno Haible  <bruno@clisp.org>
54017
54018         * build-aux/config.libpath: Update to libtool-1.5.22.
54019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54020
54021 2007-03-01  Bruno Haible  <bruno@clisp.org>
54022
54023         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
54024         foo_CFLAGS.
54025         Reported by Ralf Wildenhues.
54026
54027 2007-03-01  Bruno Haible  <bruno@clisp.org>
54028
54029         * build-aux/install-reloc: Remove object files left over by some
54030         compilers.
54031         Reported by Ralf Wildenhues.
54032
54033 2007-03-01  Bruno Haible  <bruno@clisp.org>
54034
54035         * build-aux/install-reloc: Break long lines.
54036
54037 2007-03-01  Bruno Haible  <bruno@clisp.org>
54038
54039         * doc/relocatable.texi: Document that it may not work on OpenBSD.
54040         Reported by Ralf Wildenhues.
54041
54042 2007-03-01  Bruno Haible  <bruno@clisp.org>
54043
54044         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
54045         include ordering constraints.
54046
54047 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
54050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
54051         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
54052         as another example.
54053         * lib/time_.h: Fix misspelling.
54054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54055         Require gl_HEADER_TIME_H_DEFAULTS.
54056         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
54057         * m4/time_r.m4 (gl_TIME_R): Likewise.
54058         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
54059
54060 2007-03-01  Bruno Haible  <bruno@clisp.org>
54061
54062         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
54063         * m4/utimens.m4 (gl_UTIMENS): Likewise.
54064
54065 2007-03-01  Jim Meyering  <jim@meyering.net>
54066
54067         * modules/xreadlink (Maintainer): Add my name.
54068         * modules/xreadlink-with-size (Depends-on): Alphabetize.
54069
54070 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
54071             Bruno Haible  <bruno@clisp.org>
54072
54073         * build-aux/install-reloc: Compile also c-ctype.c.
54074         * build-aux/relocatable.sh.in: New file.
54075         * doc/relocatable.texi: New file.
54076         * doc/relocatable-maint.texi: New file.
54077         * doc/gnulib.texi: Include relocatable-maint.texi.
54078         * lib/progreloc.c: Include unistd.h unconditionally.
54079         * lib/relocwrapper.c: Include unistd.h unconditionally.
54080         Include c-ctype.h.
54081         (add_dotbin): Use c_tolower.
54082         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
54083         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
54084         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
54085         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
54086         to m4/relocatable-lib.m4.
54087         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
54088         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
54089         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
54090         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
54091         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
54092         * modules/relocatable: New file.
54093         * modules/relocatable-lib: New file.
54094         * modules/relocatable-script: New file.
54095
54096 2007-02-28  Bruno Haible  <bruno@clisp.org>
54097
54098         Import --enable-relocatable infrastructure.
54099         * build-aux/config.libpath: New file, from GNU gettext.
54100         * build-aux/install-reloc: New file, from GNU gettext.
54101         * build-aux/reloc-ldflags: New file, from GNU gettext.
54102         * lib/relocatable.h: New file, from GNU gettext.
54103         * lib/relocatable.c: New file, from GNU gettext.
54104         * lib/relocwrapper.c: New file, from GNU gettext.
54105         * m4/relocatable.m4: New file, from GNU gettext.
54106
54107 2007-02-28  Bruno Haible  <bruno@clisp.org>
54108
54109         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
54110
54111         * modules/xreadlink: New file, from GNU gettext with modifications.
54112         * lib/xreadlink.c: New file, from GNU gettext.
54113         * lib/xreadlink.h: Add comments.
54114         (xreadlink): New declaration.
54115
54116         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
54117         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
54118         lib/xreadlink-with-size.c.
54119         (configure.ac): Remove gl_XREADLINK invocation.
54120         (Makefile.am): Augment lib_SOURCES.
54121         * m4/xreadlink.m4: Remove file.
54122         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
54123         (xreadlink_with_size): Renamed from xreadink.
54124         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
54125         * modules/canonicalize (Depends-on): Replace xreadlink with
54126         xreadlink-with-size.
54127         * lib/canonicalize.c (canonicalize_filename_mode): Update.
54128
54129 2007-02-25  Jim Meyering  <jim@meyering.net>
54130
54131         * build-aux/announce-gen: When complaining about excess arguments,
54132         list them.
54133
54134 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54135
54136         * README: Document signed integer overflow situation more
54137         accurately.
54138
54139 2007-02-25  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
54142         'a' or 'A' conversion.
54143
54144 2007-02-25  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/filename: Renamed from modules/pathname.
54147         (Files): Replace lib/pathname.h with lib/filename.h. Replace
54148         lib/concatpath.c with lib/concat-filename.c.
54149         (Makefile.am): Update.
54150         (Include): Replace pathname.h with filename.h.
54151         * lib/filename.h: Renamed from lib/pathname.h.
54152         (concatenated_filename): Renamed from concatenated_pathname.
54153         * lib/concat-filename.c: Renamed from lib/concatpath.c.
54154         (concatenated_filename): Renamed from concatenated_pathname.
54155         * lib/findprog.c: Include filename.h instead of pathname.h.
54156         (find_in_path): Update.
54157         * lib/javacomp.c: Include filename.h instead of pathname.h.
54158         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54159         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54160         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54161         is_oldgcj_14_13_usable, is_javac_usable): Update.
54162         * lib/javaexec.c: Include filename.h instead of pathname.h.
54163         (execute_java_class): Update.
54164         * modules/findprog: Update.
54165         * modules/javacomp: Update.
54166         * modules/javaexec: Update.
54167         * MODULES.html.sh (File system functions): Add 'filename', remove
54168         'pathname'.
54169
54170 2007-02-25  Bruno Haible  <bruno@clisp.org>
54171
54172         * modules/printf-frexpl-tests: New file.
54173         * tests/test-printf-frexpl.c: New file.
54174
54175         * modules/printf-frexpl: New file.
54176         * lib/printf-frexpl.h: New file.
54177         * lib/printf-frexpl.c: New file.
54178         * m4/printf-frexpl.m4: New file.
54179
54180 2007-02-25  Bruno Haible  <bruno@clisp.org>
54181
54182         * modules/printf-frexp-tests: New file.
54183         * tests/test-printf-frexp.c: New file.
54184
54185         * modules/printf-frexp: New file.
54186         * lib/printf-frexp.h: New file.
54187         * lib/printf-frexp.c: New file.
54188         * m4/printf-frexp.m4: New file.
54189
54190 2007-02-25  Bruno Haible  <bruno@clisp.org>
54191
54192         Assume automake >= 1.10 for the tests.
54193         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
54194         * modules/arctwo-tests: Likewise.
54195         * modules/argp-tests: Likewise.
54196         * modules/avltree-list-tests: Likewise.
54197         * modules/avltree-oset-tests: Likewise.
54198         * modules/avltreehash-list-tests: Likewise.
54199         * modules/carray-list-tests: Likewise.
54200         * modules/crc-tests: Likewise.
54201         * modules/des-tests: Likewise.
54202         * modules/gc-arcfour-tests: Likewise.
54203         * modules/gc-arctwo-tests: Likewise.
54204         * modules/gc-des-tests: Likewise.
54205         * modules/gc-hmac-md5-tests: Likewise.
54206         * modules/gc-hmac-sha1-tests: Likewise.
54207         * modules/gc-md2-tests: Likewise.
54208         * modules/gc-md4-tests: Likewise.
54209         * modules/gc-md5-tests: Likewise.
54210         * modules/gc-pbkdf2-sha1-tests: Likewise.
54211         * modules/gc-rijndael-tests: Likewise.
54212         * modules/gc-sha1-tests: Likewise.
54213         * modules/gc-tests: Likewise.
54214         * modules/getaddrinfo-tests: Likewise.
54215         * modules/hmac-md5-tests: Likewise.
54216         * modules/hmac-sha1-tests: Likewise.
54217         * modules/linked-list-tests: Likewise.
54218         * modules/linkedhash-list-tests: Likewise.
54219         * modules/lock-tests: Likewise.
54220         * modules/md2-tests: Likewise.
54221         * modules/md4-tests: Likewise.
54222         * modules/md5-tests: Likewise.
54223         * modules/rbtree-list-tests: Likewise.
54224         * modules/rbtree-oset-tests: Likewise.
54225         * modules/rbtreehash-list-tests: Likewise.
54226         * modules/read-file-tests: Likewise.
54227         * modules/rijndael-tests: Likewise.
54228         * modules/stdint-tests: Likewise.
54229         * modules/tls-tests: Likewise.
54230
54231 2007-02-24  Bruno Haible  <bruno@clisp.org>
54232
54233         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
54234         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
54235         function; instead check whether isnan with a double argument links.
54236         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
54237         function; instead check whether isnan with a 'long double' argument
54238         links.
54239         Reported by Eric Blake <ebb9@byu.net>.
54240
54241 2007-02-24  Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
54244         defined.
54245         * lib/isnanl.c: Remove all code. Just include isnan.c.
54246         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
54247
54248 2007-02-25  Jim Meyering  <jim@meyering.net>
54249
54250         Avoid conflicting types for 'unsetenv' on FreeBSD.
54251         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
54252         conflicting with FreeBSD's (5.0 and 6.1) function declaration
54253         in stdlib.h.
54254
54255 2007-02-24  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/isnanl-nolibm-tests: New file.
54258         * tests/test-isnanl.c: New file.
54259
54260         * modules/isnanl-nolibm: New file.
54261         * lib/isnanl.h: New file.
54262         * lib/isnanl.c: New file.
54263         * m4/isnanl.m4: New file.
54264
54265 2007-02-24  Bruno Haible  <bruno@clisp.org>
54266
54267         * modules/isnan-nolibm-tests: New file.
54268         * tests/test-isnan.c: New file.
54269
54270         * modules/isnan-nolibm: New file.
54271         * lib/isnan.h: New file.
54272         * lib/isnan.c: New file.
54273         * m4/isnan.m4: New file.
54274
54275 2007-02-24  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
54278         assume that an exponent fits in 20 bits.
54279
54280 2007-02-24  Jim Meyering  <jim@meyering.net>
54281
54282         * m4/regex.m4: Update the description of the configure-time option,
54283         --without-included-regex, to state accurately what the defaults are,
54284         and perhaps to give people an idea why using this option is risky.
54285
54286 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
54289         loops on small arguments.  This attempts to avoid the problem
54290         Bruno Haible reported for AIX 4.3.2 in
54291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
54292
54293 2007-02-23  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
54296         Needed for help2man.
54297
54298 2007-02-23  Karl Berry  <karl@gnu.org>
54299
54300         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
54301         exists, foo.h should be cvs-ignored, not committed.
54302
54303 2007-02-23  Eric Blake  <ebb9@byu.net>
54304
54305         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
54306         * lib/stat-time.h (includes): Likewise.
54307         * lib/utimecmp.c (includes): Likewise.
54308         * lib/utimens.h (includes): Likewise.
54309         * lib/getdate.y (includes): Also include "timespec.h" for use
54310         internal to the module.
54311         * modules/utimens (Depends-on): Revert yesterday's patch.
54312         * modules/nanosleep (Depends-on): Add missing dependency.
54313
54314 2007-02-22  Bruno Haible  <bruno@clisp.org>
54315
54316         * lib/glob.c: Don't include getlogin_r.h.
54317
54318 2007-02-22  Jim Meyering  <jim@meyering.net>
54319
54320         * modules/utimens (Depends-on): Add timespec, required for
54321         utimens.h's inclusion of timespec.h.
54322
54323 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
54326         long unreadable paths in GNU/Linux.  Problem reported by Andreas
54327         Schwab in
54328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
54329         I'll try to think of a better way to fix the Solaris problem.
54330
54331         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54332         like glibc; on Solaris 10, it fails with errno == EINVAL.
54333         POSIX says the behavior is unspecified if the first argument is NULL,
54334         so play it safe and never pass NULL to the system getcwd.
54335
54336 2007-02-21  Jim Meyering  <jim@meyering.net>
54337
54338         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54339         of gettimeofday.  It would conflict with the one now always
54340         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54341         an IRIX 6.5 build failure.
54342
54343 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         Minor fixups to port to Solaris 10 with Sun C 5.8.
54346         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54347         * modules/getcwd (Depends-on): Add dirfd.
54348         * lib/putenv.c (putenv): #undef it.
54349         (rpl_putenv): New decl.
54350         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54351
54352 2007-02-20  Bruno Haible  <bruno@clisp.org>
54353
54354         * modules/stdio-tests: New file.
54355         * tests/test-stdio.c: New file.
54356
54357         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54358         (Depends-on): Add stdio.
54359         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54360         (Include): Use <stdio.h> instead of vsnprintf.h.
54361         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54362         HAVE_DECL_VSNPRINTF.
54363         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54364
54365         * modules/snprintf (Files): Remove lib/snprintf.h.
54366         (Depends-on): Add stdio.
54367         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54368         (Include): Use <stdio.h> instead of snprintf.h.
54369         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54370         HAVE_DECL_SNPRINTF.
54371         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54372         * lib/getaddrinfo.c: Likewise.
54373
54374         * modules/stdio: New file.
54375         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54376         * lib/snprintf.h: Remove file.
54377         * lib/vsnprintf.h: Remove file.
54378         * lib/.cppi-disable: Remove snprintf.h.
54379         * m4/stdio_h.m4: New file.
54380         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54381
54382 2007-02-20  Jim Meyering  <jim@meyering.net>
54383
54384         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54385         used by e.g., mingw.  From Bruno Haible.
54386
54387 2007-02-19  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54390         warnings.
54391         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54392
54393 2007-02-19  Bruno Haible  <bruno@clisp.org>
54394
54395         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54396         from mingw users.
54397
54398 2007-02-19  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54401         warnings.
54402         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54403
54404 2007-02-19  Jim Meyering  <jim@meyering.net>
54405
54406         Don't use FD after a successful "fdopendir (fd)".
54407         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54408         Reset it by calling dirfd on the just-obtained DIR*.
54409
54410         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54411         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54412
54413 2007-02-18  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/readlink.c: Include <unistd.h>.
54416         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54417         HAVE_READLINK.
54418         * modules/readlink (Depends-on): Add unistd.
54419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54420         (Include): Add <unistd.h>.
54421
54422         * lib/getlogin_r.h: Remove file.
54423         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54424         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54425         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54426         HAVE_DECL_GETLOGIN_R.
54427         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54429         (Include): Use <unistd.h> instead of getlogin_r.h.
54430
54431         * lib/getcwd.h: Remove file.
54432         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54433         * lib/xgetcwd.c: Likewise.
54434         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54435         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54436         * modules/getcwd (Files): Remove lib/getcwd.h.
54437         (Depends-on): Add unistd.
54438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54439         (Include): Use <unistd.h> instad of getcwd.h.
54440
54441         * lib/ftruncate.c: Include <unistd.h> first.
54442         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54443         Set HAVE_FTRUNCATE.
54444         * modules/ftruncate (Depends-on): Add unistd.
54445         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54446
54447         * lib/fchdir.c: Include <unistd.h> first.
54448         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54450         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54451         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54452         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54453
54454         * lib/dup2.c: Include <unistd.h> first.
54455         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54456         HAVE_DUP2.
54457         * modules/dup2 (Depends-on): Add unistd.
54458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54459
54460         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54461         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54462         REPLACE_CHOWN. Don't define chown as a macro here.
54463         * modules/chown (Depends-on): Add unistd.
54464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54465
54466         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54467         Add definition for GL_LINK_WARNING.
54468         (chown, dup2): New declarations.
54469         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54470         link warning.
54471         (ftruncate): New declaration.
54472         (getcwd): New declaration, taken from old getcwd.h.
54473         (getlogin_r): New declaration, taken from old getlogin_r.h.
54474         (readlink): New declaration.
54475         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54476         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54477         (gl_PREREQ_UNISTD): Remove macro.
54478         (gl_UNISTD_MODULE_INDICATOR): New macro.
54479         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54480         many new variables. Don't set UNISTD_H.
54481         * modules/unistd (Description): Change.
54482         (Depends-on): Add link-warning.
54483         (configure.ac): Update.
54484         (Makefile.am): Create unistd.h always. Substitute many new variables
54485         into it.
54486
54487 2007-02-18  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54490         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54491         HAVE_GETSUBOPT.
54492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54493         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54494         * lib/getsubopt.h: Remove file.
54495         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54496         (Depends-on): Add stdlib.
54497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54498         (Includes): Use <stdlib.h> instead of getsubopt.h.
54499         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54500         Set HAVE_GETSUBOPT.
54501         * lib/getsubopt.c: Don't include getsubopt.h.
54502
54503 2007-02-18  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/fchdir (Depends-on): Add dup2.
54506
54507 2007-02-18  Bruno Haible  <bruno@clisp.org>
54508
54509         * lib/stdlib_.h: Handle glibc's special invocation convention
54510         specially.
54511
54512 2007-02-18  Bruno Haible  <bruno@clisp.org>
54513
54514         * modules/stdlib-tests: New file.
54515         * tests/test-stdlib.c: New file.
54516
54517         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54518         (Depends-on): Add stdlib.
54519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54520         (Includes): Use <stdlib.h> instead of mkstemp.h.
54521         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54522         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54523         * lib/mkstemp.c: Don't include mkstemp.h.
54524         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54525         * lib/stdlib--.h: Don't include mkstemp.h.
54526
54527         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54528         (Depends-on): Add stdlib.
54529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54530         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54531         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54532         HAVE_MKDTEMP.
54533         * lib/mkdtemp.c: Don't include mkdtemp.h.
54534         * lib/clean-temp.c: Don't include mkdtemp.h.
54535
54536         * modules/exit (Files): Remove lib/exit.h.
54537         (Depends-on): Add stdlib.
54538         (Makefile.am): Remove lib_SOURCES.
54539         (Include): Use <stdlib.h> instead of exit.h.
54540         * lib/argmatch.c: Don't include exit.h.
54541         * lib/execute.c: Likewise.
54542         * lib/pagealign_alloc.c: Likewise.
54543         * lib/pipe.c: Likewise.
54544         * lib/wait-process.c: Likewise.
54545         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54546         * lib/exitfail.c: Likewise.
54547         * lib/savewd.c: Likewise.
54548         * lib/xsetenv.c: Likewise.
54549
54550         * modules/stdlib: New file.
54551         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54552         and extra comments about mkstemp().
54553         * lib/exit.h: Remove file.
54554         * lib/mkdtemp.h: Remove file.
54555         * lib/mkstemp.h: Remove file.
54556         * m4/stdlib_h.m4: New file.
54557         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54558
54559 2007-02-18  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/math-tests: New file.
54562         * tests/test-math.c: New file.
54563
54564         * modules/math: New file.
54565         * modules/mathl (Files): Remove lib/mathl.h.
54566         (Depends-on): Add math.
54567         (Makefile.am): Don't mention mathl.h.
54568         (Include): Use <math.h> instead of mathl.h.
54569         * lib/math_.h: New file.
54570         * lib/mathl.h: Remove file.
54571         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54572         mathl.h.
54573         * lib/asinl.c: Likewise.
54574         * lib/atanl.c: Likewise.
54575         * lib/ceill.c: Likewise.
54576         * lib/cosl.c: Likewise.
54577         * lib/expl.c: Likewise.
54578         * lib/floorl.c: Likewise.
54579         * lib/frexpl.c: Likewise.
54580         * lib/ldexpl.c: Likewise.
54581         * lib/logl.c: Likewise.
54582         * lib/sincosl.c: Likewise.
54583         * lib/sinl.c: Likewise.
54584         * lib/sqrtl.c: Likewise.
54585         * lib/tanl.c: Likewise.
54586         * lib/trigl.c: Likewise.
54587         * m4/math_h.m4: New file.
54588         * MODULES.html.sh (Mathematics): Add math.
54589
54590 2007-02-17  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/wctype-tests: New file.
54593         * tests/test-wctype.c: New file.
54594
54595         * modules/wchar-tests: New file.
54596         * tests/test-wchar.c: New file.
54597
54598         * modules/unistd-tests: New file.
54599         * tests/test-unistd.c: New file.
54600
54601         * modules/time-tests: New file.
54602         * tests/test-time.c: New file.
54603
54604         * modules/sysexits-tests: New file.
54605         * tests/test-sysexits.c: New file.
54606
54607         * modules/sys_time-tests: New file.
54608         * tests/test-sys_time.c: New file.
54609
54610         * modules/sys_stat-tests: New file.
54611         * tests/test-sys_stat.c: New file.
54612
54613         * modules/sys_socket-tests: New file.
54614         * tests/test-sys_socket.c: New file.
54615
54616         * modules/sys_select-tests: New file.
54617         * tests/test-sys_select.c: New file.
54618
54619         * modules/string-tests: New file.
54620         * tests/test-string.c: New file.
54621
54622         * modules/stdbool-tests: New file.
54623         * tests/test-stdbool.c: New file.
54624
54625         * modules/netinet_in-tests: New file.
54626         * tests/test-netinet_in.c: New file.
54627
54628         * modules/inttypes-tests: New file.
54629         * tests/test-inttypes.c: New file.
54630
54631         * modules/fcntl-tests: New file.
54632         * tests/test-fcntl.c: New file.
54633
54634         * modules/byteswap-tests: New file.
54635         * tests/test-byteswap.c: New file.
54636
54637         * modules/arpa_inet-tests: New file.
54638         * tests/test-arpa_inet.c: New file.
54639
54640 2007-02-17  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54643         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54644         if the corresponding module is not enabled. Emit link warnings if
54645         the function is used nevertheless.
54646         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54647         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54648         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54649         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54650         * modules/inttypes (Depends-on): Add link-warning.
54651         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54652         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54653         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54654         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54655         * modules/imaxdiv (configure.ac): Likewise.
54656         * modules/strtoimax (configure.ac): Likewise.
54657         * modules/strtoumax (configure.ac): Likewise.
54658
54659 2007-02-17  Bruno Haible  <bruno@clisp.org>
54660
54661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54662         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54664         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54665
54666 2007-02-17  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/link-warning: New file.
54669         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54670         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54671         * modules/string (Depends-on): Add link-warning.
54672         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54673         string.h.
54674         * MODULES.html.sh (Support for building libraries and executables): Add
54675         link-warning.
54676
54677 2007-02-17  Bruno Haible  <bruno@clisp.org>
54678
54679         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54680         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54681         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54682         long lines.
54683
54684 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54685             Bruno Haible  <bruno@clisp.org>
54686
54687         * modules/tmpfile: New file.
54688         * lib/tmpfile.c: New file.
54689         * m4/tmpfile.m4: New file.
54690         * MODULES.html.sh (func_all_modules): New section "Input/output".
54691
54692 2007-02-15  Bruno Haible  <bruno@clisp.org>
54693
54694         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54695         (supports_delete_on_close): New function.
54696         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54697
54698 2007-02-14  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/mbspcasecmp-tests: New file.
54701         * tests/test-mbspcasecmp.sh: New file.
54702         * tests/test-mbspcasecmp.c: New file.
54703
54704         New module mbspcasecmp.
54705         * modules/mbspcasecmp: New file.
54706         * lib/mbspcasecmp.c: New file.
54707         * lib/string_.h (strncasecmp): Change warning message.
54708         (mbspcasecmp): New declaration.
54709         * m4/mbspcasecmp.m4: New file.
54710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54711         GNULIB_MBSPCASECMP.
54712         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54713         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54714
54715 2007-02-14  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/mbsncasecmp-tests: New file.
54718         * tests/test-mbsncasecmp.sh: New file.
54719         * tests/test-mbsncasecmp.c: New file.
54720
54721         New module mbsncasecmp.
54722         * modules/mbsncasecmp: New file.
54723         * lib/mbsncasecmp.c: New file.
54724         * lib/string_.h (mbsncasecmp): New declaration.
54725         * m4/mbsncasecmp.m4: New file.
54726         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54727         GNULIB_MBSNCASECMP.
54728         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54729         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54730
54731 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54734         Verify that it doesn't overlap with our flags.
54735         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54736         do not have the desired effect in multibyte locales; instead, use
54737         mbscasecmp.
54738         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54739         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54740         we don't require GNU fnmatch ourselves (if our users require it, they
54741         should do so explicitly).
54742
54743         Fix regex code so it doesn't rely on strcasecmp.
54744         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54745         Otherwise, include gnulib's langinfo.h.
54746         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54747         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54749         * modules/regex (FILES): Remove m4/codeset.m4.
54750         (Depends-on): Add localcharset.  Remove strcase.
54751
54752 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54753
54754         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54755         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54756
54757 2007-02-13  Bruno Haible  <bruno@clisp.org>
54758
54759         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54761
54762 2007-02-12  Bruno Haible  <bruno@clisp.org>
54763
54764         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54765         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54766         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54767         time warning rather than a link error.
54768
54769 2007-02-12  Bruno Haible  <bruno@clisp.org>
54770
54771         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54772         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54774
54775 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54778         args, not 2.
54779
54780 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54781
54782         New module 'time', so that apps can include <time.h> as per
54783         POSIX and GNU instead of separate include files like time_r.h
54784         and timegm.h.  This implementation tries out a simpler approach
54785         for replacing decls in standard include files (as compared to
54786         the string module), somewhat as an experiment.
54787
54788         * config/srclist.txt: Comment out mktime.c for now.
54789         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54790         since it doesn't apply any more.  Use generic wording instead.
54791         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54792         'time'.
54793         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54794         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54795         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54796         Don't include <sys/types.h>; no longer needed since we assume C89.
54797         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54798         * lib/strftime.c: Likewise.
54799         * lib/time_r.c: Likewise.
54800         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54801         * lib/nanosleep.c: Include <time.h> first, to check interface.
54802         * lib/strptime.c: Likewise.
54803         * lib/time_r.c: Likewise.
54804         * lib/timegm.c: Likewise.
54805         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54806         needed.
54807         * lib/timegm.c: Don't include timegm.h; no longer needed.
54808         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54809         time.h now handles any problems in that area.
54810         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54811         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54812         that time.h defines struct timespec.
54813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54814         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54815         handles that.
54816         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54817         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54818         needed.  Set REPLACE_LOCALTIME.
54819         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54820         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54821         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54822         nanosleep; time_h.m4 now does that.  Don't require
54823         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54824         module handles this now.
54825         * modules/getdate (Depends-on): Remove timespec.  Add time.
54826         * modules/nanosleep (Depends-on): Likewise.
54827         * modules/stat-time (Depends-on): Likewise.
54828         * modules/nanosleep (Include): Include time.h, not timespec.h.
54829         * modules/strptime (Files): Remove lib/strptime.h.
54830         (Depends-on): Add extensions, time.
54831         (Include): Include time.h, not strptime.h.
54832         * modules/time_r (Files): Remove lib/time_r.h.
54833         (Depends-on): Add time.
54834         (Include): Include time.h, not time_r.h.
54835         * modules/timegm: Likewise.
54836         * modules/timespec (Description): Now does timespec-related decls
54837         of our own, instead of struct timespec itself.
54838         (Depends-on): Add time; remove extensions.
54839         (Maintainer): Add self.
54840         * modules/utimecmp (Depends-on): Add time; remove timespec.
54841         * modules/utimens (Depends-on): Likewise.
54842         * modules/xnanosleep (Depends-on): Likewise.
54843
54844 2007-02-11  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/c-strstr.c: Include allocsa.h.
54847         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54848         * lib/c-strcasestr.c: Include allocsa.h.
54849         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54850         * lib/strcasestr.c: Include allocsa.h.
54851         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54852         * lib/mbsstr.c: Include allocsa.h.
54853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54854         allocsa/freesa instead of malloc/free.
54855         * lib/mbscasestr.c: Include allocsa.h.
54856         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54857         allocsa/freesa instead of malloc/free.
54858         * modules/c-strstr (Depends-on): Add allocsa.
54859         * modules/c-strcasestr (Depends-on): Likewise.
54860         * modules/strcasestr (Depends-on): Likewise.
54861         * modules/mbsstr (Depends-on): Likewise.
54862         * modules/mbscasestr (Depends-on): Likewise.
54863
54864 2007-02-11  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54867
54868         * modules/mbsspn-tests: New file.
54869         * tests/test-mbsspn.sh: New file.
54870         * tests/test-mbsspn.c: New file.
54871
54872 2007-02-11  Bruno Haible  <bruno@clisp.org>
54873
54874         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54875
54876         * modules/mbspbrk-tests: New file.
54877         * tests/test-mbspbrk.sh: New file.
54878         * tests/test-mbspbrk.c: New file.
54879
54880 2007-02-11  Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54883         unneeded cast.
54884
54885         * modules/mbscspn-tests: New file.
54886         * tests/test-mbscspn.sh: New file.
54887         * tests/test-mbscspn.c: New file.
54888
54889 2007-02-11  Bruno Haible  <bruno@clisp.org>
54890
54891         * modules/mbscasecmp-tests: New file.
54892         * tests/test-mbscasecmp.sh: New file.
54893         * tests/test-mbscasecmp.c: New file.
54894
54895 2007-02-11  Bruno Haible  <bruno@clisp.org>
54896
54897         Ensure O(n) worst-case complexity of mbscasestr.
54898         * lib/mbscasestr.c: Include stdbool.h.
54899         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54900         functions.
54901         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54902         the bookkeeping indicates that it's worth it.
54903         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54904
54905         * modules/mbscasestr-tests: New file.
54906         * tests/test-mbscasestr1.c: New file.
54907         * tests/test-mbscasestr2.sh: New file.
54908         * tests/test-mbscasestr2.c: New file.
54909         * tests/test-mbscasestr3.sh: New file.
54910         * tests/test-mbscasestr3.c: New file.
54911         * tests/test-mbscasestr4.sh: New file.
54912         * tests/test-mbscasestr4.c: New file.
54913         * m4/locale-tr.m4: New file.
54914
54915 2007-02-11  Bruno Haible  <bruno@clisp.org>
54916
54917         Ensure O(n) worst-case complexity of mbsstr.
54918         * lib/mbsstr.c: Include stdbool.h.
54919         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54920         functions.
54921         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54922         bookkeeping indicates that it's worth it.
54923         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54924
54925         * modules/mbsstr-tests: New file.
54926         * tests/test-mbsstr1.c: New file.
54927         * tests/test-mbsstr2.sh: New file.
54928         * tests/test-mbsstr2.c: New file.
54929         * tests/test-mbsstr3.sh: New file.
54930         * tests/test-mbsstr3.c: New file.
54931         * m4/locale-fr.m4: New file.
54932
54933 2007-02-11  Bruno Haible  <bruno@clisp.org>
54934
54935         * lib/mbsrchr.c (mbsrchr): Fix bug.
54936
54937         * modules/mbsrchr-tests: New file.
54938         * tests/test-mbsrchr.sh: New file.
54939         * tests/test-mbsrchr.c: New file.
54940
54941 2007-02-11  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/mbschr.c (mbschr): Fix bug.
54944
54945         * modules/mbschr-tests: New file.
54946         * tests/test-mbschr.sh: New file.
54947         * tests/test-mbschr.c: New file.
54948         * m4/locale-zh.m4: New file.
54949
54950 2007-02-11  Bruno Haible  <bruno@clisp.org>
54951
54952         Support for copying multibyte string iterators.
54953         * lib/mbiter.h: Include <string.h>.
54954         (mbiter_multi_copy): New function.
54955         (mbi_copy): New macro.
54956         * lib/mbuiter.h: Include <string.h>.
54957         (mbuiter_multi_copy): New function.
54958         (mbui_copy): New macro.
54959
54960 2007-02-11  Bruno Haible  <bruno@clisp.org>
54961
54962         New module mbslen.
54963         * modules/mbslen: New file.
54964         * lib/mbslen.c: New file.
54965         * lib/string_.h (mbslen): New declaration.
54966         * m4/mbslen.m4: New file.
54967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54968         GNULIB_MBSLEN.
54969         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54970         * MODULES.html.sh (Internationalization functions): Add mbslen.
54971
54972 2007-02-11  Bruno Haible  <bruno@clisp.org>
54973
54974         Ensure O(n) worst-case complexity of strcasestr substitute.
54975         * lib/strcasestr.c: Include stdbool.h.
54976         (knuth_morris_pratt): New function.
54977         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54978         bookkeeping indicates that it's worth it.
54979         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54980
54981         * modules/strcasestr-tests: New file.
54982         * tests/test-strcasestr.c: New file.
54983
54984 2007-02-11  Bruno Haible  <bruno@clisp.org>
54985
54986         Ensure O(n) worst-case complexity of c_strcasestr.
54987         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54988         (knuth_morris_pratt): New function.
54989         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54990         the bookkeeping indicates that it's worth it.
54991         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54992
54993         * modules/c-strcasestr-tests: New file.
54994         * tests/test-c-strcasestr.c: New file.
54995
54996 2007-02-11  Bruno Haible  <bruno@clisp.org>
54997
54998         Ensure O(n) worst-case complexity of c_strstr.
54999         * lib/c-strstr.c: Include stdbool.h, string.h.
55000         (knuth_morris_pratt): New function.
55001         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55002         bookkeeping indicates that it's worth it.
55003         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
55004
55005         * lib/c-strstr.c: Complete rewrite for maintainability.
55006
55007         * modules/c-strstr-tests: New file.
55008         * tests/test-c-strstr.c: New file.
55009
55010 2007-02-11  Bruno Haible  <bruno@clisp.org>
55011
55012         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
55013         5.2.1 and earlier, whereby \055 was treated just like the range
55014         delimiter '-'.
55015         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55016
55017 2007-02-08  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/regex (Depends-on): Add stdbool.
55020         Reported by Dalibor Topic <robilad@kaffe.org>.
55021
55022 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55023
55024         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
55025         Prefer returning from main to exiting from it.
55026         Remove unnecessary parens after sizeof.
55027
55028 2007-02-05  Bruno Haible  <bruno@clisp.org>
55029
55030         New module mbssep.
55031         * modules/mbssep: New file.
55032         * lib/mbssep.c: New file.
55033         * lib/string_.h (strsep): Add a conditional link warning.
55034         (mbssep): New declaration.
55035         * m4/mbssep.m4: New file.
55036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55037         GNULIB_MBSSEP.
55038         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
55039         * MODULES.html.sh (Internationalization functions): Add mbssep.
55040
55041 2007-02-05  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
55044         Optimize search in case of 1 delimiter.
55045
55046 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55047
55048         * lib/acl.h: Include sys/types.h before sys/acl.h.
55049
55050 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
55051
55052         Merge upstream fix for glibc bugzilla #3957:
55053
55054         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
55055
55056         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
55057         bit for RE_HAT_LISTS_NOT_NEWLINE.
55058         (build_charclass_op): Remove bogus comment.
55059
55060 2007-02-05  Simon Josefsson  <simon@josefsson.org>
55061
55062         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
55063
55064 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55065
55066         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
55067         * lib/memmem.c [!defined _LIBC]: Include config.h.
55068
55069 2007-02-04  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
55072         warning message.
55073
55074 2007-02-04  Bruno Haible  <bruno@clisp.org>
55075
55076         New module mbstok_r.
55077         * modules/mbstok_r: New file.
55078         * lib/mbstok_r.c: New file.
55079         * lib/string_.h (strtok_r): Change argument names to match the
55080         comments. Add a conditional link warning.
55081         (mbstok_r): New declaration.
55082         * m4/mbstok_r.m4: New file.
55083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55084         GNULIB_MBSTOK_R.
55085         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
55086         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
55087
55088 2007-02-04  Bruno Haible  <bruno@clisp.org>
55089
55090         New module mbsspn.
55091         * modules/mbsspn: New file.
55092         * lib/mbsspn.c: New file.
55093         * lib/string_.h (strspn): Add a conditional link warning.
55094         (mbsspn): New declaration.
55095         * m4/mbsspn.m4: New file.
55096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55097         GNULIB_MBSSPN.
55098         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
55099         * MODULES.html.sh (Internationalization functions): Add mbsspn.
55100
55101 2007-02-04  Bruno Haible  <bruno@clisp.org>
55102
55103         New module mbspbrk.
55104         * modules/mbspbrk: New file.
55105         * lib/mbspbrk.c: New file.
55106         * lib/string_.h (strpbrk): Add a conditional link warning.
55107         (mbspbrk): New declaration.
55108         * m4/mbspbrk.m4: New file.
55109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55110         GNULIB_MBSPBRK.
55111         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
55112         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
55113
55114 2007-02-04  Bruno Haible  <bruno@clisp.org>
55115
55116         New module mbscspn.
55117         * modules/mbscspn: New file.
55118         * lib/mbscspn.c: New file.
55119         * lib/string_.h (strcspn): Add a conditional link warning.
55120         (mbscspn): New declaration.
55121         * m4/mbscspn.m4: New file.
55122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55123         GNULIB_MBSCSPN.
55124         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
55125         * MODULES.html.sh (Internationalization functions): Add mbscspn.
55126
55127 2007-02-04  Bruno Haible  <bruno@clisp.org>
55128
55129         New module mbscasestr, reduced goal of strcasestr.
55130         * modules/mbscasestr: New file.
55131         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
55132         (mbscasestr): Renamed from strcasestr.
55133         * lib/strcasestr.c: Don't include mbuiter.h.
55134         (strcasestr): Remove support for multibyte locales.
55135         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
55136         Change the conditional link warning.
55137         (mbscasestr): New declaration.
55138         * m4/mbscasestr.m4: New file.
55139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
55140         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
55141         REPLACE_STRCASESTR.
55142         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
55143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55144         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55145         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
55146         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
55147         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
55148         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
55149         (Depends-on): Remove mbuiter.
55150         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
55151
55152 2007-02-04  Bruno Haible  <bruno@clisp.org>
55153
55154         Simplify handling of strncasecmp.
55155         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
55156         the conditional link warning.
55157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55158         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
55159         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
55160         * modules/strcase (configure.ac): Don't invoke
55161         gl_STRING_MODULE_INDICATOR.
55162         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
55163
55164 2007-02-04  Bruno Haible  <bruno@clisp.org>
55165
55166         New module mbscasecmp, reduced goal of strcasecmp.
55167         * modules/mbscasecmp: New file.
55168         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
55169         (mbscasecmp): Renamed from strcasecmp.
55170         * lib/strcasecmp.c: Don't include mbuiter.h.
55171         (strcasecmp): Remove support for multibyte locales.
55172         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
55173         Change the conditional link warning.
55174         (mbscasecmp): New declaration.
55175         * m4/mbscasecmp.m4: New file.
55176         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
55177         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
55178         REPLACE_STRCASECMP.
55179         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
55180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55181         GNULIB_MBSCASECMP.
55182         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
55183         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
55184         * modules/strcase (Files): Remove m4/mbrtowc.m4.
55185         (Depends-on): Remove mbuiter.
55186         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55187
55188 2007-02-04  Bruno Haible  <bruno@clisp.org>
55189
55190         New module mbsstr. Remove module strstr.
55191         * modules/mbsstr: New file.
55192         * modules/strstr: Remove file.
55193         * lib/mbsstr.c: Renamed from lib/strstr.c.
55194         (mbsstr): Renamed from strstr.
55195         * lib/string_.h (strstr): Remove declaration. Change the conditional
55196         link warning.
55197         (mbsstr): New declaration.
55198         * m4/mbsstr.m4: New file.
55199         * m4/strstr.m4: Remove file.
55200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
55201         REPLACE_STRSTR.
55202         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
55203         Don't initialize GNULIB_STRSTR.
55204         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
55205         substitute GNULIB_STRSTR and REPLACE_STRSTR.
55206         * MODULES.html.sh (Internationalization functions): Add mbsstr.
55207         (Support for systems lacking ANSI C 89): Remove strstr.
55208
55209 2007-02-04  Bruno Haible  <bruno@clisp.org>
55210
55211         New module mbsrchr.
55212         * modules/mbsrchr: New file.
55213         * lib/mbsrchr.c: New file.
55214         * lib/string_.h (strrchr): Add a conditional link warning.
55215         (mbsrchr): New declaration.
55216         * m4/mbsrchr.m4: New file.
55217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55218         GNULIB_MBSRCHR.
55219         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
55220         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
55221
55222 2007-02-04  Bruno Haible  <bruno@clisp.org>
55223
55224         New module mbschr.
55225         * modules/mbschr: New file.
55226         * lib/mbschr.c: New file.
55227         * lib/string_.h (strchr): Add a conditional link warning.
55228         (mbschr): New declaration.
55229         * m4/mbschr.m4: New file.
55230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55231         GNULIB_MBSCHR.
55232         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
55233         * MODULES.html.sh (Internationalization functions): Add mbschr.
55234
55235 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
55238
55239         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
55240
55241 2007-02-04  Bruno Haible  <bruno@clisp.org>
55242
55243         New module description section 'configure.ac-early'.
55244         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
55245         (func_get_autoconf_early_snippet): New function.
55246         (func_import, func_create_testdir): Use it. Remove special cases for
55247         modules 'extensions' and 'lock'.
55248         * modules/extensions (configure.ac-early): Require
55249         gl_USE_SYSTEM_EXTENSIONS.
55250         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
55251
55252 2007-02-04  Bruno Haible  <bruno@clisp.org>
55253
55254         Make use of gcj-4.3's -fsource and -ftarget option.
55255         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
55256         and if so try the options -fsource and -ftarget.
55257         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
55258         source_version, ftarget_option, target_version arguments.
55259         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
55260         (is_envjavac_oldgcj_14_14_usable): Renamed from
55261         is_envjavac_gcj_14_14_usable.
55262         (is_envjavac_oldgcj_14_13_usable): Renamed from
55263         is_envjavac_gcj_14_13_usable.
55264         (is_gcj_present): Update.
55265         (is_gcj_43, is_gcj43_usable): New functions.
55266         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
55267         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
55268         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
55269         try the options -fsource and -ftarget.
55270
55271 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
55274         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
55275         larger value.
55276
55277 2007-02-03  Jim Meyering  <jim@meyering.net>
55278
55279         Give tools a better chance to allocate space for very large buffers.
55280         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
55281
55282         Make pwd and readlink work also when run with an unreadable parent dir
55283         on systems with openat support.
55284         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
55285         provided getcwd function, even when we have openat support.
55286         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
55287
55288 2007-02-02  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55291         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
55292         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
55293         portability problems if one of these functions is only used on specific
55294         platforms.
55295         Reported by Paul Eggert.
55296
55297 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
55298
55299         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
55300         is causing more trouble than it's curing.
55301         * lib/regex_internal.h (__mempcpy): Remove.
55302         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
55303         (and make the code a tad smaller to boot).
55304         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
55305
55306 2007-02-02  Jim Meyering  <jim@meyering.net>
55307
55308         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
55309         section, not in the Makefile.am: one.
55310
55311 2007-02-02  Eric Blake  <ebb9@byu.net>
55312
55313         * lib/strchrnul.c: Always include config.h first.
55314
55315         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
55316         gnulib strstr is not necessary here.
55317
55318 2007-02-02  Simon Josefsson  <simon@josefsson.org>
55319
55320         * m4/socklen.m4: Fix typo.
55321
55322 2007-02-02  Eric Blake  <ebb9@byu.net>
55323
55324         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
55325         * modules/netinet_in (Makefile.am): Likewise.
55326
55327 2007-02-01  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/string_.h (GL_LINK_WARNING): New macro.
55330         (strcasecmp, strstr, strcasestr): If provided by the system,
55331         conditionally define as a macro that leads to a warning instead of to
55332         an error.
55333         (strncasecmp): Conditionally define as a macro that leads to a warning.
55334
55335 2007-02-01  Karl Berry  <karl@gnu.org>
55336
55337         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55338
55339 2007-02-01  Bruno Haible  <bruno@clisp.org>
55340
55341         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55342         renamings.
55343
55344 2007-02-01  Eric Blake  <ebb9@byu.net>
55345
55346         * modules/regex (Depends-on): Revert dependence on mempcpy.
55347         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55348         module's definition of mempcpy.
55349         Reported by Paul Eggert.
55350
55351 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55354         the symbol XYZ before redefining it.  This fixes a problem with
55355         programs that don't use XYZ, when compiled on systems that define
55356         XYZ to something else.
55357
55358 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55361         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55362         writeable to group or other and (2) is intended to have a special
55363         mode bit that is set or cleared.  In such a case, the directory
55364         should be neither group- nor other-writeable until the special
55365         mode bits are right.
55366
55367 2007-01-31  Eric Blake  <ebb9@byu.net>
55368
55369         * modules/mountlist (Depends-on): Add strstr.
55370
55371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55372         bug.
55373         * modules/string (Makefile.am): Remove redundant replacement.
55374         * modules/regex (Depends-on): Add mempcpy.
55375
55376 2007-01-31  Bruno Haible  <bruno@clisp.org>
55377
55378         New module description field 'Link'.
55379         * gnulib-tool (func_usage): Document --extract-link-directive.
55380         (sed_extract_prog): Recognize 'Link' directive.
55381         (func_get_link_directive): New function.
55382         (func_import): Show summary of link directives.
55383         Handle --extract-link-directive option.
55384         * modules/acl (Link): New section.
55385         * modules/clock-time (Link): New section.
55386         * modules/euidaccess (Link): New section.
55387         * modules/gettext (Link): New section.
55388         * modules/iconv (Link): New section.
55389         * modules/lock (Link): New section.
55390         * modules/nanosleep (Link): New section.
55391         * modules/readline (Link): New section.
55392
55393 2007-01-27  Bruno Haible  <bruno@clisp.org>
55394
55395         Enforce the use of gnulib modules for unportable <string.h> functions.
55396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55397         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55398         (gl_HEADER_STRING_H_BODY): Require it.
55399         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55400         the symbol XYZ to one that gives a link error.
55401         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55402         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55403         * modules/mempcpy (configure.ac): Likewise.
55404         * modules/memrchr (configure.ac): Likewise.
55405         * modules/stpcpy (configure.ac): Likewise.
55406         * modules/stpncpy (configure.ac): Likewise.
55407         * modules/strcase (configure.ac): Likewise.
55408         * modules/strcasestr (configure.ac): Likewise.
55409         * modules/strchrnul (configure.ac): Likewise.
55410         * modules/strdup (configure.ac): Likewise.
55411         * modules/strndup (configure.ac): Likewise.
55412         * modules/strnlen (configure.ac): Likewise.
55413         * modules/strpbrk (configure.ac): Likewise.
55414         * modules/strsep (configure.ac): Likewise.
55415         * modules/strstr (configure.ac): Likewise.
55416         * modules/strtok_r (configure.ac): Likewise.
55417
55418 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55419
55420         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55421
55422 2007-01-30  Jim Meyering  <jim@meyering.net>
55423
55424         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55425
55426 2007-01-29  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55429         * lib/execute.c: Likewise.
55430         * lib/pipe.c: Likewise.
55431         * lib/printf-args.h: Likewise.
55432         * lib/printf-args.c: Likewise.
55433         * lib/printf-parse.c: Likewise.
55434         * lib/vasnprintf.c: Likewise.
55435
55436 2007-01-29  Eric Blake  <ebb9@byu.net>
55437
55438         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55439         declaration.
55440
55441 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * lib/strptime.h (strptime): Use 'restrict' for args where
55444         POSIX requires this.
55445         * lib/strptime.c (strptime): Likewise.
55446         Change license notice from LGPL to GPL, since gnulib-tool will
55447         change this as needed.
55448         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55449         defined.
55450         Include "strptime.h" first, to check interface.
55451         Do not #undef _LIBC and _NL_CURRENT.
55452         Do not include <stdlib.h>; no longer needed.
55453         Include "time_r.h" and declare ptime_locale_status
55454         only if _LIBC is not defined.
55455         (__P): Remove unused macro.
55456         (match_string): Bring back glibc version, but use it only if _LIBC
55457         is defined.
55458         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55459         Remove unnecessary assertion and abort() call.
55460         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55461         * m4/strptime.m4: Fix serial number comment.
55462         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55463         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55464         (Depends-on): Add time_r.
55465
55466 2007-01-29  Bruno Haible  <bruno@clisp.org>
55467
55468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55469         strptime.
55470         * modules/strptime (Depends-on): Add stdbool.
55471         * lib/strptime.h: Include <time.h> always. Add comments.
55472
55473 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55474
55475         * modules/strptime: New file.
55476         * lib/strptime.h: New file.
55477         * lib/strptime.c: New file.
55478         * m4/strptime.m4: New file.
55479
55480 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         * MODULES.html.sh: New module mpsort.
55483         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55484
55485         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55486         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55488         All uses changed.
55489         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55490         All uses changed.
55491         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55492         to _Restrict_.
55493         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55494         the parameter matches the prototype.
55495
55496 2007-01-28  Jim Meyering  <jim@meyering.net>
55497
55498         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55499         sys/time.h here, reverting that part of the previous patch:
55500         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55501
55502 2007-01-28  Bruno Haible  <bruno@clisp.org>
55503
55504         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55505         value of $(SYS_TIME_H).
55506         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55507         remove it conditionally, too. [added by Jim Meyering]
55508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55510         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55511         GETTIMEOFDAY_REPLACEMENT to 1.
55512
55513 2007-01-28  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55516         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55518         Set UNISTD_H instead of UNISTD_H2.
55519         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55520
55521 2007-01-28  Bruno Haible  <bruno@clisp.org>
55522
55523         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55524         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55525
55526 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55527
55528         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55529         (func_create_testdir): Ensure C locale for `grep' and `tr'
55530         character ranges.
55531         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55532         ACLOCAL_AMFLAGS parsing state machine.
55533
55534 2007-01-27  Bruno Haible  <bruno@clisp.org>
55535
55536         * modules/unistr/base: Update.
55537
55538 2007-01-27  Bruno Haible  <bruno@clisp.org>
55539
55540         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55541         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55542         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55543         modules/unistr/u32-mbtouc.
55544         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55545         * lib/unistr.h: Update.
55546         * lib/linebreak.c: Update.
55547         * modules/unistr/u32-mbtouc: Renamed from
55548         modules/unistr/u32-mbtouc-safe.
55549         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55550         * lib/unistr.h: Update.
55551         * lib/unistr/u32-to-u8.c: Update.
55552         * lib/unistr/u32-to-u16.c: Update.
55553
55554 2007-01-27  Bruno Haible  <bruno@clisp.org>
55555
55556         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55557         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55558         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55559         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55560         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55561         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55562         modules/unistr/u16-mbtouc.
55563         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55564         * lib/unistr.h: Update.
55565         * lib/linebreak.c: Update.
55566         * modules/linebreak: Update.
55567         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55568         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55569         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55570         * modules/unistr/u16-mbtouc: Renamed from
55571         modules/unistr/u16-mbtouc-safe.
55572         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55573         * lib/unistr.h: Update.
55574         * lib/unistr/u16-to-u8.c: Update.
55575         * modules/unistr/u16-to-u8: Update.
55576         * lib/unistr/u16-to-u32.c: Update.
55577         * modules/unistr/u16-to-u32: Update.
55578
55579 2007-01-27  Bruno Haible  <bruno@clisp.org>
55580
55581         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55582         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55583         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55584         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55585         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55586         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55587         modules/unistr/u8-mbtouc.
55588         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55589         * lib/unistr.h: Update.
55590         * lib/striconveh.c: Update.
55591         * modules/striconveh: Update.
55592         * lib/linebreak.c: Update.
55593         * modules/linebreak: Update.
55594         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55595         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55596         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55597         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55598         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55599         * lib/unistr.h: Update.
55600         * lib/striconveh.c: Update.
55601         * modules/striconveh: Update.
55602         * lib/unistr/u8-to-u16.c: Update.
55603         * modules/unistr/u8-to-u16: Update.
55604         * lib/unistr/u8-to-u32.c: Update.
55605         * modules/unistr/u8-to-u32: Update.
55606
55607 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55608
55609         Sync from Libtool.
55610         * lib/argz.c: Do not include strings.h nor memory.h, include
55611         string.h unconditionally.  Patch by Simon Josefsson.
55612
55613 2007-01-27  Bruno Haible  <bruno@clisp.org>
55614
55615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55616         from gl_HEADER_STRING_H_BODY.
55617         (gl_HEADER_STRING_H_BODY): Require it.
55618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55621         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55623         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55625         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55626         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55627         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55628         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55630         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55631         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55633
55634 2007-01-27  Bruno Haible  <bruno@clisp.org>
55635
55636         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55637         check_PROGRAMS into noinst_PROGRAMS.
55638         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55639         check_PROGRAMS in this case.
55640         (func_import): Set for_test to false.
55641         (func_create_testdir): Set for_test to true.
55642
55643 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55644             Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55647         (Depends-on): Add string.
55648         (Includes): Use <string.h> instead of strcasestr.h.
55649         * modules/string (Makefile.am): Also substitute the value of
55650         REPLACE_STRCASESTR.
55651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55652         assume strcasestr is declared in <string.h> not <strings.h>. Also
55653         set REPLACE_STRCASESTR.
55654         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55655         REPLACE_STRCASESTR.
55656         * lib/strcasestr.h: Remove file.
55657         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55658         * lib/string_.h (strcasestr): New declaration.
55659
55660 2007-01-27  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/string_.h: Use 'extern'.
55663
55664 2007-01-27  Jim Meyering  <jim@meyering.net>
55665
55666         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55667         of set-but-not-used local, "q".
55668
55669         * lib/mempcpy.c: Include <config.h> before <string.h>.
55670         This fixes a compilation error on HP-UX, due to the system's
55671         "restrict"-using mempcpy prototype.
55672
55673 2007-01-26  Bruno Haible  <bruno@clisp.org>
55674
55675         Small optimization.
55676         * lib/javacomp.c: Include c-strstr.h.
55677          (is_envjavac_gcj): Use c_strstr instead of strstr.
55678         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55679
55680 2007-01-26  Bruno Haible  <bruno@clisp.org>
55681
55682         * MODULES.html.sh (Unicode string functions): Add the new modules.
55683
55684         * modules/uniconv/u32-strconv-to-locale: New file.
55685         * lib/uniconv/u32-strconv-to-locale.c: New file.
55686
55687         * modules/uniconv/u16-strconv-to-locale: New file.
55688         * lib/uniconv/u16-strconv-to-locale.c: New file.
55689
55690         * modules/uniconv/u8-strconv-to-locale: New file.
55691         * lib/uniconv/u8-strconv-to-locale.c: New file.
55692
55693         * modules/uniconv/u32-strconv-from-locale: New file.
55694         * lib/uniconv/u32-strconv-from-locale.c: New file.
55695
55696         * modules/uniconv/u16-strconv-from-locale: New file.
55697         * lib/uniconv/u16-strconv-from-locale.c: New file.
55698
55699         * modules/uniconv/u8-strconv-from-locale: New file.
55700         * lib/uniconv/u8-strconv-from-locale.c: New file.
55701
55702         * modules/uniconv/u32-strconv-to-enc: New file.
55703         * lib/uniconv/u32-strconv-to-enc.c: New file.
55704         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55705         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55706
55707         * modules/uniconv/u16-strconv-to-enc: New file.
55708         * lib/uniconv/u16-strconv-to-enc.c: New file.
55709         * lib/uniconv/u-strconv-to-enc.h: New file.
55710         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55711         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55712
55713         * modules/uniconv/u8-strconv-to-enc: New file.
55714         * lib/uniconv/u8-strconv-to-enc.c: New file.
55715         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55716         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55717
55718         * modules/uniconv/u32-strconv-from-enc: New file.
55719         * lib/uniconv/u32-strconv-from-enc.c: New file.
55720         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55721         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55722
55723         * modules/uniconv/u16-strconv-from-enc: New file.
55724         * lib/uniconv/u16-strconv-from-enc.c: New file.
55725         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55726         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55727
55728         * modules/uniconv/u8-strconv-from-enc: New file.
55729         * lib/uniconv/u8-strconv-from-enc.c: New file.
55730         * lib/uniconv/u-strconv-from-enc.h: New file.
55731         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55732         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55733
55734         * modules/uniconv/u32-conv-from-enc: New file.
55735         * lib/uniconv/u32-conv-from-enc.c: New file.
55736         * modules/uniconv/u32-conv-from-enc-tests: New file.
55737         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55738
55739         * modules/uniconv/u16-conv-from-enc: New file.
55740         * lib/uniconv/u16-conv-from-enc.c: New file.
55741         * lib/uniconv/u-conv-from-enc.h: New file.
55742         * modules/uniconv/u16-conv-from-enc-tests: New file.
55743         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55744
55745         * modules/uniconv/u8-conv-from-enc: New file.
55746         * lib/uniconv/u8-conv-from-enc.c: New file.
55747         * modules/uniconv/u8-conv-from-enc-tests: New file.
55748         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55749
55750         * modules/uniconv/base: New file.
55751         * lib/uniconv.h: New file.
55752
55753 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         * doc/gnulib-tool.texi (Initial import): Update to match current
55756         behavior with strdup module.
55757         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55758         * lib/memmem.h: Remove; all uses removed.  This is now done
55759         by <string.h>.
55760         * lib/mempcpy.h: Likewise.
55761         * lib/memrchr.h: Likewise.
55762         * lib/stpcpy.h: Likewise.
55763         * lib/stpncpy.h: Likewise.
55764         * lib/strcase.h: Likewise.
55765         * lib/strchrnul.h: Likewise.
55766         * lib/strdup.h: Likewise.
55767         * lib/strndup.h: Likewise.
55768         * lib/strnlen.h: Likewise.
55769         * lib/strpbrk.h: Likewise.
55770         * lib/strsep.h: Likewise.
55771         * lib/strstr.h: Likewise.
55772         * lib/strtok_r.h: Likewise.
55773         * lib/string_.h: New file.
55774         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55775         Rely on <string.h> instead.
55776         * lib/canon-host.c: Likewise.
55777         * lib/chdir-long.c: Likewise.
55778         * lib/concatpath.c: Likewise.
55779         * lib/exclude.c: Likewise.
55780         * lib/fchdir.c: Likewise.
55781         * lib/getaddrinfo.c: Likewise.
55782         * lib/getcwd.c: Likewise.
55783         * lib/getsubopt.c: Likewise.
55784         * lib/glob.c: Likewise.
55785         * lib/hard-locale.c: Likewise.
55786         * lib/iconvme.c: Likewise.
55787         * lib/javacomp.c: Likewise.
55788         * lib/mempcpy.c: Likewise.
55789         * lib/memrchr.c: Likewise.
55790         * lib/regex_internal.h: Likewise.
55791         * lib/stpncpy.c: Likewise.
55792         * lib/strcasecmp.c: Likewise.
55793         * lib/strchrnul.c: Likewise.
55794         * lib/strdup.c: Likewise.
55795         * lib/striconv.c: Likewise.
55796         * lib/striconveh.c: Likewise.
55797         * lib/striconveha.c: Likewise.
55798         * lib/strncasecmp.c: Likewise.
55799         * lib/strndup.c: Likewise.
55800         * lib/strnlen.c: Likewise.
55801         * lib/strsep.c: Likewise.
55802         * lib/strstr.c: Likewise.
55803         * lib/strtok_r.c: Likewise.
55804         * lib/userspec.c: Likewise.
55805         * lib/w32spawn.h: Likewise.
55806         * lib/xstrndup.c: Likewise.
55807         * lib/mountlist.c (strstr): Remove decl.
55808         * m4/string_h.m4: New file.
55809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55810         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55811         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55812         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55813         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55814         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55815         Set REPLACE_STRCASECMP if necessary.
55816         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55817         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55818         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55819         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55820         HAVE_DECL_STRDUP if necessary.
55821         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55822         since gl_FUNC_STRNDUP does that now.
55823         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55824         Check for decl here...
55825         (gl_PREREQ_STRNLEN): ... not here.
55826         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55827         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55828         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55829         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55830         necessary.
55831         * modules/string: New file.
55832         * modules/memmem (Files): Remove special-purpose include file.
55833         (Depends-on): Add string.
55834         (Include): Include <string.h>, not the removed file.
55835         * modules/mempcpy: Likewise.
55836         * modules/memrchr: Likewise.
55837         * modules/stpcpy: Likewise.
55838         * modules/stpncpy: Likewise.
55839         * modules/strcase: Likewise.
55840         * modules/strchrnul: Likewise.
55841         * modules/strdup: Likewise.
55842         * modules/strndup: Likewise.
55843         * modules/strnlen: Likewise.
55844         * modules/strpbrk: Likewise.
55845         * modules/strsep: Likewise.
55846         * modules/strstr: Likewise.
55847         * modules/strtok_r: Likewise.
55848         * tests/test-dirname.c: Don't include "strdup.h", since
55849         <string.h> now suffices.
55850         * tests/test-memmem.c: Don't include "memmem.h", since
55851         <string.h> now suffices.
55852
55853 2007-01-25  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55856         *resultp is 0.
55857
55858         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55859         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55860         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55861         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55862
55863         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55864         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55865         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55866         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55867         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55868         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55869
55870 2007-01-24  Bruno Haible  <bruno@clisp.org>
55871
55872         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55873         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55874         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55875         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55876         gl_FUNC_FTS_CORE.
55877         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55878         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55880         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55881         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55882         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55883         gl_FUNC_FCHOWNAT.
55884         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55885         gl_FUNC_STRFTIME.
55886         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55887         Reported by Ralf Wildenhues.
55888
55889 2007-01-24  Bruno Haible  <bruno@clisp.org>
55890
55891         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55892         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55893         gl_GETADDRINFO.
55894         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55895         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55896         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55897
55898 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55901         Don't use 'exit'; just return from 'main'.
55902         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55903
55904         * lib/fnmatch_.h: Readjust white space and comments to match
55905         glibc, to avoid spurious diffs.
55906
55907 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55908
55909         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55910         2004-12-01 change by Jakub Jelinek, since this code won't compile
55911         if !LIBC.  Problem reported by Bob Proulx.
55912
55913 2007-01-23  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/striconveh.c: Include c-strcaseeq.h.
55916         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55917         * modules/striconveh (Depends-on): Add c-strcaseeq.
55918
55919 2007-01-23  Bruno Haible  <bruno@clisp.org>
55920
55921         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55922
55923         * modules/c-strcaseeq: New file.
55924         * lib/c-strcaseeq.h: New file.
55925
55926         * modules/streq: New file.
55927         * lib/streq.h: New file.
55928
55929 2007-01-23  Bruno Haible  <bruno@clisp.org>
55930
55931         * modules/striconveha-tests: New file.
55932         * tests/test-striconveha.c: New file.
55933
55934         * lib/striconveha.h: Include <stdbool.h>.
55935         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55936         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55937         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55938         (mem_iconveha): New function.
55939         (str_iconveha_notranslit): Renamed from str_iconveha.
55940         (str_iconveha): New function.
55941         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55942         c-strcase.
55943
55944 2007-01-23  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55947         encodings without forgiving before trying any encoding with handler.
55948         (str_iconveha): Try all encodings without forgiving before trying any
55949         encoding with handler.
55950
55951 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         Import the following changes from libc.
55954
55955         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55956
55957         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55958
55959         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55960
55961         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55962         normal_bracket label.
55963
55964         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55965
55966         [BZ #361]
55967         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55968         to normal_bracket after fetching the next character.
55969
55970 2007-01-22  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55973         argument.
55974         * lib/striconveh.c (iconv_carefully_1): New function.
55975         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55976         argument.
55977         (str_cd_iconveh): Update.
55978         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55979         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55980         * tests/test-striconveh.c (MAGIC): New macro.
55981         (new_offsets): New function.
55982         (main): Test call with and without offsets.
55983
55984 2007-01-22  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55987         * modules/sys_select (Makefile.am): Likewise.
55988         * modules/sys_socket (Makefile.am): Likewise.
55989         * modules/sys_time (Makefile.am): Likewise.
55990
55991 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55992
55993         * modules/gettimeofday (License): Change from GPL to LGPL, since
55994         gettimeofday is a library function.
55995
55996 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55997
55998         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55999
56000 2007-01-21  Bruno Haible  <bruno@clisp.org>
56001
56002         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
56003
56004 2007-01-21  Bruno Haible  <bruno@clisp.org>
56005
56006         * modules/striconveha: New file.
56007         * lib/striconveha.h: New file.
56008         * lib/striconveha.c: New file.
56009         * MODULES.html.sh (Internationalization functions): Add striconveha.
56010         * lib/striconv.c (str_iconv): Optimize the case of an empty input
56011         string.
56012         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
56013
56014 2007-01-21  Bruno Haible  <bruno@clisp.org>
56015
56016         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
56017         * lib/striconveh.c (str_iconveh): Likewise.
56018
56019 2007-01-21  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/striconveh.h (mem_iconveh): New declaration.
56022         * lib/striconveh.c (mem_iconveh): New function.
56023         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
56024
56025 2007-01-21  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
56028
56029         * lib/striconveh.h (mem_cd_iconveh): Change specification.
56030         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
56031         original result buffer.
56032         (str_cd_iconveh): Update.
56033         * tests/test-striconveh.c (main): Update.
56034
56035         * lib/striconv.h (mem_cd_iconv): Change specification.
56036         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
56037         result buffer.
56038         (str_cd_iconv): Update.
56039         * tests/test-striconv.c (main): Update.
56040
56041 2007-01-21  Bruno Haible  <bruno@clisp.org>
56042
56043         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
56044
56045 2007-01-20  Jim Meyering  <jim@meyering.net>
56046
56047         * lib/userspec.c (parse_with_separator): If a user or group string
56048         starts with "+", skip the corresponding name-to-ID look-up, since
56049         such a look-up must fail: user and group names may not include "+".
56050
56051 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56052
56053         * lib/poll.c: Include sys/time.h and time.h unconditionally,
56054         since we now assume the sys_time module.
56055         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
56056         check for sys/time.h; no longer needed.
56057         * modules/poll (Depends-on): Depend on sys_time.
56058
56059 2007-01-18  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
56062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56063
56064         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
56065         gettimeofday.
56066
56067         * tests/test-gettimeofday.c: Include <time.h>.
56068         (dummy): Remove variable.
56069
56070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
56071         gl_HEADER_SYS_TIME_H.
56072         (gl_HEADER_SYS_TIME_H): New macro.
56073
56074         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
56075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
56077         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
56078         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
56080         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
56081         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56082         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
56083         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
56084         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56085
56086         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
56087         last change; it caused a compilation error when cross-compiling to
56088         Cygwin.
56089
56090 2007-01-18  Jim Meyering  <jim@meyering.net>
56091
56092         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
56093         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
56094         than the race-prone "test -d sys || mkdir sys".
56095         (configure.ac): Use AC_PROG_MKDIR_P.
56096         * modules/sys_select: Likewise.
56097         * modules/sys_socket: Likewise.
56098         * modules/sys_time: Likewise.
56099
56100 2007-01-18  Eric Blake  <ebb9@byu.net>
56101
56102         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
56103         replace gettimeofday.
56104         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
56105         name, to avoid infinite recursion.
56106
56107 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
56110         module sys_time.
56111         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
56112         assume timespec.h defines struct timeval.
56113         * lib/settime.c: Likewise.
56114         * lib/utimens.c: Likewise.
56115         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
56116         since we now assume the gettimeofday module.
56117         * lib/tempname.c (__gen_tempname): Likewise.
56118         * lib/gettimeofday.h: Remove.
56119         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
56120         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
56121         Include <time.h>, for 'time()'.
56122         (localtime_buffer_addr): Also use this workaround if
56123         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
56124         to simplify the uses.  All uses changed.
56125         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
56126         that #undef is inside {}, and 'const' follows type name consistently.
56127         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
56128         (gettimeofday): Do not use the maximum possible value for
56129         tv->tv_usec, since that might break usages other than ls.c.
56130         Instead, we'll leave ls.c alone.  This undoes today's patch
56131         by Bruno.  Add a compile-time warning for 1s-clock resolution;
56132         we've never observed the problem but might as well keep the
56133         canary.
56134         * lib/nanosleep.c: Include timespec.h first, for interface check.
56135         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
56136         now assume the sys_time module.
56137         * lib/tempname.c: Likewise.
56138         * lib/timespec.h: Likewise.
56139         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
56140         needed.
56141         * lib/strftime.c: Likewise.
56142         * lib/timespec.h: Likewise.
56143         * lib/posixtm.c: Include posixtm.h first, for interface check.
56144         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
56145         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
56146         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
56147         * lib/sys_time_.h: New file.
56148         * lib/timespec.h (struct timespec): Use long int, not long.
56149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56150         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
56151         Remove obsolescent call to AC_HEADER_TIME.
56152         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56154         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
56155         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
56156         Likewise.
56157         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
56158         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
56159         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
56160         into the sys_time module.  Check for gettimeofday just once.
56161         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
56162         for gettimeofday signature to just check the signature.  Merely
56163         compile it, since linking doesn't test signature.  Improve test for
56164         whether gettimeofday.o is actually needed.
56165         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
56166         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
56167         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
56168         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56169         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
56170         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
56171         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
56172         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
56173         than worrying about sys/time.h.
56174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56175         Don't bother worrying about TIME_WITH_SYS_TIME.
56176         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56177         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
56178         * m4/sys_time_h.m4: New file.
56179         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
56180         Don't include sys/time.h.  Return from main rather than exiting.
56181         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
56182         all uses changed.
56183         * modules/gethrxtime (Depends-on): Add sys_time.
56184         * modules/gettime (Depends-on): Likewise.
56185         * modules/gettimeofday (Depends-on): Likewise.
56186         * modules/nanosleep (Depends-on): Likewise.
56187         * modules/settime (Depends-on): Likewise.
56188         * modules/tempname (Depends-on): Likewise.
56189         * modules/utimens (Depends-on): Likewise.
56190         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
56191         (Include): Change back to <sys/time.h>.
56192         (Maintainer): Add self.
56193         * modules/sys_time: New file.
56194         * modules/tempname (Depends-on): Add gettimeofday.
56195         * tests/test-gettimeofday.c: Include <sys/time.h>
56196         rather than gettimeofday.h.
56197
56198 2007-01-17  Bruno Haible  <bruno@clisp.org>
56199
56200         * gnulib-tool (func_get_license): Revert last patch. Instead, let
56201         the license default to GPL.
56202         (func_create_testdir): Don't complain if a module is LGPL and its
56203         tests module depends on GPLed modules.
56204
56205 2007-01-17  Bruno Haible  <bruno@clisp.org>
56206
56207         * lib/gettimeofday.c (gettimeofday): Add code for the case
56208         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
56209         maximum possible value for tv->tv_usec, rather than the minimum one.
56210
56211 2005-10-08  Martin Lambers  <marlam@marlam.de>
56212 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56213 2007-01-16  Bruno Haible  <bruno@clisp.org>
56214
56215         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
56216         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
56217         gl_FUNC_GETTIMEOFDAY.
56218         (Include): Add gettimeofday.h.
56219         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
56220         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
56221         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
56222         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
56223         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
56224         * lib/gettimeofday.h: New file.
56225         * lib/gettimeofday.c: Include <sys/timeb.h>.
56226         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
56227         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
56228         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
56229         fall back on time().
56230
56231         * tests/test-gettimeofday.c: New file.
56232         * modules/gettimeofday-tests: New file.
56233
56234 2007-01-16  Eric Blake  <ebb9@byu.net>
56235
56236         * modules/fnmatch (Depends-on): Depend on wchar.
56237         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
56238         * m4/fnmatch.m4: Likewise.
56239         * modules/mbchar (Makefile.am): Assume <wchar.h>.
56240         * m4/mbchar.m4: Likewise.
56241         * modules/mbswidth (Depends-on): Depend on wchar.
56242         * lib/mbswidth.c: Assume <wchar.h>.
56243         * m4/mbswidth.m4: Likewise.
56244         * modules/quotearg (Depends-on): Depend on wchar.
56245         * lib/quotearg.c: Assume <wchar.h>.
56246         * m4/quotearg.m4: Likewise.
56247         * modules/regex (Depends-on): Depend on wchar.
56248         * lib/regex_internal.h: Assume <wchar.h>.
56249         * m4/regex.m4: Likewise.
56250         * modules/stdint (Depends-on): Depend on wchar.
56251         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
56252         * m4/stdint.m4: Likewise.
56253         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
56254         * modules/strftime (Depends-on): Depend on wchar.
56255         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
56256         * modules/strtol (Depends-on): Depend on wchar.
56257         * lib/strtol.c: Assume <wchar.h>.
56258         * modules/wcwidth (Depends-on): Depend on wchar.
56259         * lib/wcwidth.h: Assume <wchar.h>.
56260         * m4/wcwidth.m4: Likewise.
56261
56262 2007-01-16  Bruno Haible  <bruno@clisp.org>
56263
56264         * modules/csharpexec-script: New, created from...
56265         * modules/csharpexec: ... this.
56266
56267 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56268
56269         * modules/javaexec-script: New, created from...
56270         * modules/javaexec: ... this.
56271
56272 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56273
56274         * modules/poll (Dependencies): Add sys_select.
56275
56276 2007-01-15  Jim Meyering  <jim@meyering.net>
56277
56278         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
56279         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
56280         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
56281         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
56282
56283 2007-01-15  Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/striconveh: New file.
56286         * lib/striconveh.h: New file.
56287         * lib/striconveh.c: New file.
56288         * MODULES.html.sh (Internationalization functions): Add striconveh.
56289
56290         * modules/striconveh-tests: New file.
56291         * tests/test-striconveh.c: New file.
56292
56293 2007-01-15  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
56296         not from GNU libiconv or GNU libc.
56297
56298 2007-01-15  Bruno Haible  <bruno@clisp.org>
56299
56300         * doc/gnulib-intro.texi (Copyright): Explain the different license
56301         terms for module descriptions, autoconf macros, tests, documentation.
56302
56303 2007-01-14  Bruno Haible  <bruno@clisp.org>
56304
56305         * modules/striconv-tests: New file.
56306         * tests/test-striconv.c: New file.
56307
56308 2007-01-14  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/iconv-tests: New file.
56311         * tests/test-iconv.c: New file.
56312
56313 2007-01-14  Bruno Haible  <bruno@clisp.org>
56314
56315         * gnulib-tool (func_get_license): For test modules, use the license of
56316         the main module.
56317
56318 2007-01-14  Bruno Haible  <bruno@clisp.org>
56319
56320         * modules/iconv (Include): Clarify that <iconv.h> can only be included
56321         if iconv is found to exist.
56322
56323 2007-01-14  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/c-ctype-tests: New file.
56326         * tests/test-c-ctype.c: New file.
56327
56328 2007-01-14  Bruno Haible  <bruno@clisp.org>
56329
56330         * modules/binary-io-tests: New file.
56331         * tests/test-binary-io.sh: New file.
56332         * tests/test-binary-io.c: New file.
56333
56334 2007-01-14  Bruno Haible  <bruno@clisp.org>
56335
56336         * modules/array-oset-tests: New file.
56337         * tests/test-array_oset.c: New file.
56338
56339 2007-01-14  Bruno Haible  <bruno@clisp.org>
56340
56341         * modules/array-list-tests: New file.
56342         * tests/test-array_list.c: New file.
56343
56344 2007-01-14  Bruno Haible  <bruno@clisp.org>
56345
56346         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56347         and make.
56348         Reported by Simon Josefsson in
56349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56350
56351 2007-01-14  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/allocsa-tests: New file.
56354         * tests/test-allocsa.c: New file.
56355
56356 2007-01-14  Bruno Haible  <bruno@clisp.org>
56357
56358         * modules/fchdir (Depends-on): Add absolute-header.
56359         * modules/unistd (Depends-on): Likewise.
56360
56361 2006-12-30  Bruno Haible  <bruno@clisp.org>
56362
56363         * modules/fchdir: New file.
56364         * modules/unistd (Files): Add lib/unistd_.h.
56365         (Makefile.am): Generate unistd.h from unistd_.h.
56366         * lib/fchdir.c: New file.
56367         * lib/dirent_.h: New file.
56368         * lib/unistd_.h: New file.
56369         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56370         * m4/fchdir.m4: New file.
56371         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56372         (gl_HEADER_UNISTD): Invoke it.
56373         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56374         function.
56375         * lib/backupfile.c (opendir, closedir): Undefine.
56376         * lib/chown.c (open, close): Undefine.
56377         * lib/clean-temp.c (open, close): Undefine.
56378         * lib/copy-file.c (open, close): Undefine.
56379         * lib/execute.c (open, close): Undefine.
56380         * lib/fsusage.c (open, close): Undefine.
56381         * lib/gc-gnulib.c (open, close): Undefine.
56382         * lib/getcwd.c (opendir, closedir): Undefine.
56383         * lib/glob.c (opendir, closedir): Undefine.
56384         * lib/javacomp.c (open, close): Undefine.
56385         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56386         * lib/openat-proc.c (open, close): Undefine.
56387         * lib/pagealign_alloc.c (open, close): Undefine.
56388         * lib/pipe.c (open, close): Undefine.
56389         * lib/progreloc.c (open, close): Undefine.
56390         * lib/savedir.c (opendir, closedir): Undefine.
56391         * lib/utime.c (open, close): Undefine.
56392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56393
56394 2007-01-10  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56397
56398 2007-01-12  Eric Blake  <ebb9@byu.net>
56399
56400         Provide a robust <wchar.h>.  Further simplifications are now
56401         possible in other modules, but not included here.
56402         * modules/wchar: New module.
56403         * m4/wchar.m4: New file.
56404         * lib/wchar_.h: Likewise.
56405         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56406         of the new module.
56407         * MODULES.html.sh (Extended multibyte and wide character utilities):
56408         New section.
56409
56410 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56413         to a reasonable default for memory allocation.
56414         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56415         file system that reports garbage st_size values for symlinks.
56416         Problem reported by Liyang Hu.
56417
56418 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56419
56420         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56421         Emacs .#* auto-save files).
56422
56423 2007-01-11  Bruno Haible  <bruno@clisp.org>
56424
56425         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56426         directory.
56427
56428 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56429
56430         Use @...@ consistently in lib/wctype_.h.
56431         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56432         on it being set to 1 or 0.
56433         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56434         go back to AC_SUBSTing it.
56435         * modules/wctype (Makefile.am): Undo previous change.
56436
56437 2007-01-10  Eric Blake  <ebb9@byu.net>
56438
56439         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56440         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56441         * modules/wctype (Makefile.am): Likewise.
56442         Reported by Chris McGuire.
56443
56444 2007-01-10  Jim Meyering  <jim@meyering.net>
56445
56446         fts.c: a small readability/maintainability improvement
56447         * lib/fts.c (fts_read): Make this code slightly more readable and
56448         maintainable by hoisting the "sp->fts_cur = p" assignments to
56449         immediately follow the statements that set P.  Derived from
56450         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56451
56452 2007-01-10  Eric Blake  <ebb9@byu.net>
56453
56454         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56455         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56457         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56458         Reported by Chris McGuire.
56459
56460 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56461
56462         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56463         in sed script.
56464
56465 2007-01-09  Bruno Haible  <bruno@clisp.org>
56466
56467         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56468         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56469         variables.
56470         (func_module): Use them.
56471
56472 2007-01-09  Bruno Haible  <bruno@clisp.org>
56473
56474         * modules/unistr/base: New file.
56475         * lib/unistr.h: New file.
56476
56477         * modules/unistr/u8-to-u16: New file.
56478         * lib/unistr/u8-to-u16.c: New file.
56479
56480         * modules/unistr/u8-to-u32: New file.
56481         * lib/unistr/u8-to-u32.c: New file.
56482
56483         * modules/unistr/u16-to-u8: New file.
56484         * lib/unistr/u16-to-u8.c: New file.
56485
56486         * modules/unistr/u16-to-u32: New file.
56487         * lib/unistr/u16-to-u32.c: New file.
56488
56489         * modules/unistr/u32-to-u8: New file.
56490         * lib/unistr/u32-to-u8.c: New file.
56491
56492         * modules/unistr/u32-to-u16: New file.
56493         * lib/unistr/u32-to-u16.c: New file.
56494
56495         * modules/unistr/u8-check: New file.
56496         * modules/unistr/u16-check: New file.
56497         * modules/unistr/u32-check: New file.
56498         * lib/unistr/u8-check.c: New file.
56499         * lib/unistr/u16-check.c: New file.
56500         * lib/unistr/u32-check.c: New file.
56501
56502         * modules/unistr/u8-chr: New file.
56503         * modules/unistr/u16-chr: New file.
56504         * modules/unistr/u32-chr: New file.
56505         * lib/unistr/u8-chr.c: New file.
56506         * lib/unistr/u16-chr.c: New file.
56507         * lib/unistr/u32-chr.c: New file.
56508
56509         * modules/unistr/u8-cmp: New file.
56510         * modules/unistr/u16-cmp: New file.
56511         * modules/unistr/u32-cmp: New file.
56512         * lib/unistr/u8-cmp.c: New file.
56513         * lib/unistr/u16-cmp.c: New file.
56514         * lib/unistr/u32-cmp.c: New file.
56515
56516         * modules/unistr/u8-cpy: New file.
56517         * modules/unistr/u16-cpy: New file.
56518         * modules/unistr/u32-cpy: New file.
56519         * lib/unistr/u8-cpy.c: New file.
56520         * lib/unistr/u16-cpy.c: New file.
56521         * lib/unistr/u32-cpy.c: New file.
56522         * lib/unistr/u-cpy.h: New file.
56523
56524         * modules/unistr/u8-cpy-alloc: New file.
56525         * modules/unistr/u16-cpy-alloc: New file.
56526         * modules/unistr/u32-cpy-alloc: New file.
56527         * lib/unistr/u8-cpy-alloc.c: New file.
56528         * lib/unistr/u16-cpy-alloc.c: New file.
56529         * lib/unistr/u32-cpy-alloc.c: New file.
56530         * lib/unistr/u-cpy-alloc.h: New file.
56531
56532         * modules/unistr/u8-endswith: New file.
56533         * modules/unistr/u16-endswith: New file.
56534         * modules/unistr/u32-endswith: New file.
56535         * lib/unistr/u8-endswith.c: New file.
56536         * lib/unistr/u16-endswith.c: New file.
56537         * lib/unistr/u32-endswith.c: New file.
56538         * lib/unistr/u-endswith.h: New file.
56539
56540         * modules/unistr/u8-mblen: New file.
56541         * modules/unistr/u16-mblen: New file.
56542         * modules/unistr/u32-mblen: New file.
56543         * lib/unistr/u8-mblen.c: New file.
56544         * lib/unistr/u16-mblen.c: New file.
56545         * lib/unistr/u32-mblen.c: New file.
56546
56547         * modules/unistr/u8-mbtouc: New file.
56548         * modules/unistr/u16-mbtouc: New file.
56549         * modules/unistr/u32-mbtouc: New file.
56550         * lib/unistr/u8-mbtouc.c: New file.
56551         * lib/unistr/u16-mbtouc.c: New file.
56552         * lib/unistr/u32-mbtouc.c: New file.
56553
56554         * modules/unistr/u8-mbtouc-safe: New file.
56555         * modules/unistr/u16-mbtouc-safe: New file.
56556         * modules/unistr/u32-mbtouc-safe: New file.
56557         * lib/unistr/u8-mbtouc-safe.c: New file.
56558         * lib/unistr/u16-mbtouc-safe.c: New file.
56559         * lib/unistr/u32-mbtouc-safe.c: New file.
56560
56561         * modules/unistr/u8-move: New file.
56562         * modules/unistr/u16-move: New file.
56563         * modules/unistr/u32-move: New file.
56564         * lib/unistr/u8-move.c: New file.
56565         * lib/unistr/u16-move.c: New file.
56566         * lib/unistr/u32-move.c: New file.
56567         * lib/unistr/u-move.h: New file.
56568
56569         * modules/unistr/u8-next: New file.
56570         * modules/unistr/u16-next: New file.
56571         * modules/unistr/u32-next: New file.
56572         * lib/unistr/u8-next.c: New file.
56573         * lib/unistr/u16-next.c: New file.
56574         * lib/unistr/u32-next.c: New file.
56575
56576         * modules/unistr/u8-prev: New file.
56577         * modules/unistr/u16-prev: New file.
56578         * modules/unistr/u32-prev: New file.
56579         * lib/unistr/u8-prev.c: New file.
56580         * lib/unistr/u16-prev.c: New file.
56581         * lib/unistr/u32-prev.c: New file.
56582
56583         * modules/unistr/u8-set: New file.
56584         * modules/unistr/u16-set: New file.
56585         * modules/unistr/u32-set: New file.
56586         * lib/unistr/u8-set.c: New file.
56587         * lib/unistr/u16-set.c: New file.
56588         * lib/unistr/u32-set.c: New file.
56589         * lib/unistr/u-set.h: New file.
56590
56591         * modules/unistr/u8-startswith: New file.
56592         * modules/unistr/u16-startswith: New file.
56593         * modules/unistr/u32-startswith: New file.
56594         * lib/unistr/u8-startswith.c: New file.
56595         * lib/unistr/u16-startswith.c: New file.
56596         * lib/unistr/u32-startswith.c: New file.
56597         * lib/unistr/u-startswith.h: New file.
56598
56599         * modules/unistr/u8-stpcpy: New file.
56600         * modules/unistr/u16-stpcpy: New file.
56601         * modules/unistr/u32-stpcpy: New file.
56602         * lib/unistr/u8-stpcpy.c: New file.
56603         * lib/unistr/u16-stpcpy.c: New file.
56604         * lib/unistr/u32-stpcpy.c: New file.
56605         * lib/unistr/u-stpcpy.h: New file.
56606
56607         * modules/unistr/u8-stpncpy: New file.
56608         * modules/unistr/u16-stpncpy: New file.
56609         * modules/unistr/u32-stpncpy: New file.
56610         * lib/unistr/u8-stpncpy.c: New file.
56611         * lib/unistr/u16-stpncpy.c: New file.
56612         * lib/unistr/u32-stpncpy.c: New file.
56613         * lib/unistr/u-stpncpy.h: New file.
56614
56615         * modules/unistr/u8-strcat: New file.
56616         * modules/unistr/u16-strcat: New file.
56617         * modules/unistr/u32-strcat: New file.
56618         * lib/unistr/u8-strcat.c: New file.
56619         * lib/unistr/u16-strcat.c: New file.
56620         * lib/unistr/u32-strcat.c: New file.
56621         * lib/unistr/u-strcat.h: New file.
56622
56623         * modules/unistr/u8-strchr: New file.
56624         * modules/unistr/u16-strchr: New file.
56625         * modules/unistr/u32-strchr: New file.
56626         * lib/unistr/u8-strchr.c: New file.
56627         * lib/unistr/u16-strchr.c: New file.
56628         * lib/unistr/u32-strchr.c: New file.
56629
56630         * modules/unistr/u8-strcmp: New file.
56631         * modules/unistr/u16-strcmp: New file.
56632         * modules/unistr/u32-strcmp: New file.
56633         * lib/unistr/u8-strcmp.c: New file.
56634         * lib/unistr/u16-strcmp.c: New file.
56635         * lib/unistr/u32-strcmp.c: New file.
56636
56637         * modules/unistr/u8-strcpy: New file.
56638         * modules/unistr/u16-strcpy: New file.
56639         * modules/unistr/u32-strcpy: New file.
56640         * lib/unistr/u8-strcpy.c: New file.
56641         * lib/unistr/u16-strcpy.c: New file.
56642         * lib/unistr/u32-strcpy.c: New file.
56643         * lib/unistr/u-strcpy.h: New file.
56644
56645         * modules/unistr/u8-strcspn: New file.
56646         * modules/unistr/u16-strcspn: New file.
56647         * modules/unistr/u32-strcspn: New file.
56648         * lib/unistr/u8-strcspn.c: New file.
56649         * lib/unistr/u16-strcspn.c: New file.
56650         * lib/unistr/u32-strcspn.c: New file.
56651         * lib/unistr/u-strcspn.h: New file.
56652
56653         * modules/unistr/u8-strdup: New file.
56654         * modules/unistr/u16-strdup: New file.
56655         * modules/unistr/u32-strdup: New file.
56656         * lib/unistr/u8-strdup.c: New file.
56657         * lib/unistr/u16-strdup.c: New file.
56658         * lib/unistr/u32-strdup.c: New file.
56659         * lib/unistr/u-strdup.h: New file.
56660
56661         * modules/unistr/u8-strlen: New file.
56662         * modules/unistr/u16-strlen: New file.
56663         * modules/unistr/u32-strlen: New file.
56664         * lib/unistr/u8-strlen.c: New file.
56665         * lib/unistr/u16-strlen.c: New file.
56666         * lib/unistr/u32-strlen.c: New file.
56667         * lib/unistr/u-strlen.h: New file.
56668
56669         * modules/unistr/u8-strmblen: New file.
56670         * modules/unistr/u16-strmblen: New file.
56671         * modules/unistr/u32-strmblen: New file.
56672         * lib/unistr/u8-strmblen.c: New file.
56673         * lib/unistr/u16-strmblen.c: New file.
56674         * lib/unistr/u32-strmblen.c: New file.
56675
56676         * modules/unistr/u8-strmbtouc: New file.
56677         * modules/unistr/u16-strmbtouc: New file.
56678         * modules/unistr/u32-strmbtouc: New file.
56679         * lib/unistr/u8-strmbtouc.c: New file.
56680         * lib/unistr/u16-strmbtouc.c: New file.
56681         * lib/unistr/u32-strmbtouc.c: New file.
56682
56683         * modules/unistr/u8-strncat: New file.
56684         * modules/unistr/u16-strncat: New file.
56685         * modules/unistr/u32-strncat: New file.
56686         * lib/unistr/u8-strncat.c: New file.
56687         * lib/unistr/u16-strncat.c: New file.
56688         * lib/unistr/u32-strncat.c: New file.
56689         * lib/unistr/u-strncat.h: New file.
56690
56691         * modules/unistr/u8-strncmp: New file.
56692         * modules/unistr/u16-strncmp: New file.
56693         * modules/unistr/u32-strncmp: New file.
56694         * lib/unistr/u8-strncmp.c: New file.
56695         * lib/unistr/u16-strncmp.c: New file.
56696         * lib/unistr/u32-strncmp.c: New file.
56697
56698         * modules/unistr/u8-strncpy: New file.
56699         * modules/unistr/u16-strncpy: New file.
56700         * modules/unistr/u32-strncpy: New file.
56701         * lib/unistr/u8-strncpy.c: New file.
56702         * lib/unistr/u16-strncpy.c: New file.
56703         * lib/unistr/u32-strncpy.c: New file.
56704         * lib/unistr/u-strncpy.h: New file.
56705
56706         * modules/unistr/u8-strnlen: New file.
56707         * modules/unistr/u16-strnlen: New file.
56708         * modules/unistr/u32-strnlen: New file.
56709         * lib/unistr/u8-strnlen.c: New file.
56710         * lib/unistr/u16-strnlen.c: New file.
56711         * lib/unistr/u32-strnlen.c: New file.
56712         * lib/unistr/u-strnlen.h: New file.
56713
56714         * modules/unistr/u8-strpbrk: New file.
56715         * modules/unistr/u16-strpbrk: New file.
56716         * modules/unistr/u32-strpbrk: New file.
56717         * lib/unistr/u8-strpbrk.c: New file.
56718         * lib/unistr/u16-strpbrk.c: New file.
56719         * lib/unistr/u32-strpbrk.c: New file.
56720         * lib/unistr/u-strpbrk.h: New file.
56721
56722         * modules/unistr/u8-strrchr: New file.
56723         * modules/unistr/u16-strrchr: New file.
56724         * modules/unistr/u32-strrchr: New file.
56725         * lib/unistr/u8-strrchr.c: New file.
56726         * lib/unistr/u16-strrchr.c: New file.
56727         * lib/unistr/u32-strrchr.c: New file.
56728
56729         * modules/unistr/u8-strspn: New file.
56730         * modules/unistr/u16-strspn: New file.
56731         * modules/unistr/u32-strspn: New file.
56732         * lib/unistr/u8-strspn.c: New file.
56733         * lib/unistr/u16-strspn.c: New file.
56734         * lib/unistr/u32-strspn.c: New file.
56735         * lib/unistr/u-strspn.h: New file.
56736
56737         * modules/unistr/u8-strstr: New file.
56738         * modules/unistr/u16-strstr: New file.
56739         * modules/unistr/u32-strstr: New file.
56740         * lib/unistr/u8-strstr.c: New file.
56741         * lib/unistr/u16-strstr.c: New file.
56742         * lib/unistr/u32-strstr.c: New file.
56743         * lib/unistr/u-strstr.h: New file.
56744
56745         * modules/unistr/u8-strtok: New file.
56746         * modules/unistr/u16-strtok: New file.
56747         * modules/unistr/u32-strtok: New file.
56748         * lib/unistr/u8-strtok.c: New file.
56749         * lib/unistr/u16-strtok.c: New file.
56750         * lib/unistr/u32-strtok.c: New file.
56751         * lib/unistr/u-strtok.h: New file.
56752
56753         * modules/unistr/u8-uctomb: New file.
56754         * modules/unistr/u16-uctomb: New file.
56755         * modules/unistr/u32-uctomb: New file.
56756         * lib/unistr/u8-uctomb.c: New file.
56757         * lib/unistr/u16-uctomb.c: New file.
56758         * lib/unistr/u32-uctomb.c: New file.
56759
56760         * MODULES.html.sh (Unicode string functions): Add the new modules.
56761
56762 2007-01-08  Bruno Haible  <bruno@clisp.org>
56763
56764         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56765         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56766         subdirectories.
56767
56768 2007-01-08  Karl Berry  <karl@gnu.org>
56769
56770         * doc/error.texi: mention that main() fns must set program_name
56771         when progname is used.
56772
56773 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56774
56775         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56776         WCTYPE_H is empty, for the benefit of builds from non-distclean
56777         directories.  Problem reported by Eric Blake in
56778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56779
56780 2007-01-08  Bruno Haible  <bruno@clisp.org>
56781
56782         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56783         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56784         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56785         PROVIDE_CANONICALIZE_FILENAME_MODE.
56786         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56787
56788 2007-01-08  Bruno Haible  <bruno@clisp.org>
56789
56790         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56791         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56792         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56793         * lib/fts.c: Likewise.
56794         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56795
56796 2006-12-25  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/utf8-ucs4-safe: New file.
56799         * lib/utf8-ucs4-safe.h: New file.
56800         * lib/unistr/utf8-ucs4-safe.c: New file.
56801
56802         * modules/utf16-ucs4-safe: New file.
56803         * lib/utf16-ucs4-safe.h: New file.
56804         * lib/unistr/utf16-ucs4-safe.c: New file.
56805
56806         * MODULES.html.sh (Unicode string functions): Add the new modules.
56807
56808 2007-01-08  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56811         (Depends-on): Add unitypes.
56812         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56813         (u8_mbtouc_aux): Move out to separate file.
56814         (u8_mbtouc): Use ucs4_t, uint8_t types.
56815         * lib/unistr/utf8-ucs4.c: New file.
56816
56817         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56818         (Depends-on): Add unitypes.
56819         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56820         (u16_mbtouc_aux): Move out to separate file.
56821         (u16_mbtouc): Use ucs4_t, uint16_t types.
56822         * lib/unistr/utf16-ucs4.c: New file.
56823
56824         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56825         (Depends-on): Add unitypes.
56826         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56827         (u8_uctomb_aux): Move out to separate file.
56828         (u8_uctomb): Use ucs4_t, uint8_t types.
56829         * lib/unistr/ucs4-utf8.c: New file.
56830
56831         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56832         (Depends-on): Add unitypes.
56833         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56834         (u16_uctomb_aux): Move out to separate file.
56835         (u16_uctomb): Use ucs4_t, uint16_t types.
56836         * lib/unistr/ucs4-utf16.c: New file.
56837
56838 2006-12-25  Bruno Haible  <bruno@clisp.org>
56839
56840         * modules/unitypes: New file.
56841         * lib/unitypes.h: New file.
56842         * MODULES.html.sh (func_all_modules): New section "Unicode string
56843         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56844         this section. Add unitypes.
56845
56846 2007-01-08  Bruno Haible  <bruno@clisp.org>
56847
56848         Avoid variable names that conflict with those from libtool.
56849         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56850         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56851         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56852         library_names_spec to acl_library_names_spec, hardcode_* to
56853         acl_hardcode_*.
56854         Reported by Ralf Wildenhues.
56855
56856 2007-01-08  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56859         definition.
56860         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56861         definition.
56862         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56863         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56864         definition.
56865         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56866         definition.
56867         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56868         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56869         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56870         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56871         definition.
56872         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56873         definition.
56874         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56875         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56876         GC_USE_<algorithm>.
56877         * lib/gc-libgcrypt.c: Likewise.
56878         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56879         * modules/gc-arctwo (configure.ac): Likewise.
56880         * modules/gc-des (configure.ac): Likewise.
56881         * modules/gc-hmac-md5 (configure.ac): Likewise.
56882         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56883         * modules/gc-md2 (configure.ac): Likewise.
56884         * modules/gc-md4 (configure.ac): Likewise.
56885         * modules/gc-md5 (configure.ac): Likewise.
56886         * modules/gc-random (configure.ac): Likewise.
56887         * modules/gc-rijndael (configure.ac): Likewise.
56888         * modules/gc-sha1 (configure.ac): Likewise.
56889
56890 2007-01-08  Bruno Haible  <bruno@clisp.org>
56891
56892         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56893         macro definition.
56894         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56895         definition.
56896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56897         definition.
56898         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56899         * modules/fcntl-safer (configure.ac): Likewise.
56900         * modules/fopen-safer (configure.ac): Likewise.
56901         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56902         GNULIB_FWRITEERROR macro definition.
56903
56904 2007-01-08  Bruno Haible  <bruno@clisp.org>
56905
56906         * m4/gnulib-common.m4: New file.
56907         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56908         (func_get_filelist): Add m4/gnulib-common.m4.
56909
56910 2007-01-08  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56913         command.
56914
56915 2007-01-08  Jim Meyering  <jim@meyering.net>
56916
56917         Use a more robust test for a "can't happen" condition.
56918         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56919         narrowed the st_size value.  Presuming the "can't happen" condition
56920         is true, that narrowing could conceivably convert an invalid st_size
56921         value into a valid one.  Instead, use a change based on Matthew
56922         Woehlke's original patch.
56923
56924         Slight readability improvement: use an assert-like macro
56925         in place of literal "abort ()" uses.
56926         * lib/fts.c (fts_assert): Define.
56927         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56928         Use this macro instead of a bare 'abort'.
56929
56930 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56933         simply work around them.
56934         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56935         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56936         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56937         declaring.
56938         Don't bother to define as macros, since the standard doesn't require it.
56939         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56940         longer worry about IRIX 5.3.
56941         (HAVE_WCTYPE_CTMP_BUG): Remove.
56942
56943 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56944
56945         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56946         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56947         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56948         Problems reported by Georg Schwarz for IRIX 5.3.
56949
56950         * gnulib-tool (autoconf_minversion): Take the maximum version number
56951         found, not the minimum.  Problem reported by James Youngman.
56952
56953 2007-01-03  Karl Berry  <karl@gnu.org>
56954
56955         * doc/error.texi: new file, explaining interaction with progname.
56956         * doc/gnulib.texi: include it.  Update copyright.
56957
56958 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56959
56960         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56961         AC_CANONICAL_HOST, to improve autobuild outputs.
56962
56963 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56964             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56965
56966         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56967         sockets, server sockets, and other file descriptors.  Count errors
56968         to compute the return value.  Reorder the code a bit to be easier
56969         to follow.  Don't set event bits that were not requested (except
56970         POLLERR and POLLHUP).
56971
56972 2007-01-01  Bruno Haible  <bruno@clisp.org>
56973
56974         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56975
56976 2007-01-03  Jim Meyering  <jim@meyering.net>
56977
56978         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56979
56980 2007-01-02  Bruno Haible  <bruno@clisp.org>
56981
56982         * modules/settime (Include): Require timespec.h.
56983         * modules/nanosleep (Include): Likewise.
56984
56985 2007-01-01  Bruno Haible  <bruno@clisp.org>
56986
56987         * gnulib-tool (func_emit_copyright_notice): Bump year.
56988         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56989
56990 2007-01-01  Bruno Haible  <bruno@clisp.org>
56991
56992         Improve support for OpenBSD.
56993         * build-aux/config.rpath (libname_spec): Export.
56994         (library_names_spec): New variable. Export.
56995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56996         library_names_spec from the config.rpath output. Locate shared library
56997         through the name pattern in library_names_spec.
56998
56999 2007-01-01  Eric Blake  <ebb9@byu.net>
57000
57001         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
57002
57003 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
57006         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
57007         assume the C locale, and avoid an "eval" that could cause trouble.
57008         Problem with SORT reported by Bob Proulx.
57009
57010         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
57011         Define.  Trivial patch from Henning Nielsen Lund, originally
57012         sent to bug-grep@gnu.org today.
57013
57014 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57015
57016         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
57017         struct stat.  Problem reported by Henning Nielsen Lund.
57018         * lib/acl.c: Include acl.h first, to check interface.  Don't
57019         bother to include sys/types.h and sys/stat.h again.
57020
57021 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57022
57023         Import the following change from libc; problem reported by
57024         Sven Verdoolaege.
57025
57026         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
57027
57028         [BZ #1373]
57029         * lib/argp.h: Remove __NTH for __argp_usage inline function.
57030
57031 2006-12-28  Jim Meyering  <jim@meyering.net>
57032
57033         * build-aux/announce-gen: Do not assume that the package
57034         builds any of tar.gz, tar.bz2, and .xdelta files.
57035         Suggestion from Simon Josefsson.
57036
57037 2006-12-28  Simon Josefsson  <simon@josefsson.org>
57038
57039         * modules/announce-gen: New file.
57040
57041 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57042
57043         * lib/mbchar.h: Just include <wctype.h>; the wctype module
57044         handles its gotchas now.
57045         * lib/mbswidth.c: Likewise.
57046         * lib/wcwidth.h: Likewise.
57047         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
57048         and iswcntrl; the wctype module does this stuff now.
57049         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57050         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57051         * modules/mbchar (Depends-on): Add wctype.
57052         * modules/mbswidth (Depends-on): Likewise.
57053         * modules/wcwidth (Depends-on): Likewise.
57054
57055 2006-12-27  Eric Blake  <ebb9@byu.net>
57056
57057         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
57058         module uses more than what <wctype.h> is required to provide.
57059
57060 2006-12-26  Eric Blake  <ebb9@byu.net>
57061
57062         * gnulib-tool (sed_extract_prog): Avoid space-tab.
57063
57064 2006-12-26  Eric Blake  <ebb9@byu.net>
57065
57066         * modules/absolute-header: New module.
57067         * modules/fcntl (Depends-on): Depend on it.
57068         * modules/inttypes (Depends-on): Likewise.
57069         * modules/stdint (Depends-on): Likewise.
57070         * modules/sys_stat (Depends-on): Likewise.
57071         * modules/wctype (Depends-on): Likewise.
57072         * MODULES.html.sh (Support for building libraries and
57073         executables): Document it.
57074
57075 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         * gnulib-tool (SED): Remove, undoing previous change.
57078         The problem was that it broke coreutils on Solaris, because
57079         "sed --posix" leaked into a makefile.
57080         (sed): New alias, if 'alias' and GNU sed.
57081
57082 2006-12-24  Jim Meyering  <jim@meyering.net>
57083
57084         Work around an fchownat bug in glibc-2.4:
57085         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
57086         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
57087         in spite of the -P option.
57088         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
57089         New macros.
57090         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
57091         * modules/openat (Files): Add lib/fchownat.c.
57092         * lib/openat.c (fchownat): Don't define here.  Move to...
57093         * lib/fchownat.c: ...this new file.
57094
57095 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         Fix bug reported by Bruno Haible in
57098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
57099         where quotearg.c didn't compile on Mac OS X 10.2 because it
57100         lacks <wchar.h> and wint_t.
57101         * lib/wctype_.h (__wctype_wint_t): New type.
57102         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
57103         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
57104         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
57105         Arg is now of type __wctype_wint_t, not wint_t.
57106         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
57107         substitute HAVE_WINT_T.
57108         * modules/wctype (Files): Add m4/wint_t.m4.
57109         (wctype.h): Substitute HAVE_WINT_T.
57110
57111 2006-12-23  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
57114
57115 2006-12-23  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
57118         S_ISLNK.
57119         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
57120         mingw.
57121
57122 2006-12-22  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/copy-file.c: Include acl.h.
57125         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
57126         Close the file descriptors only after being done with copy_acl.
57127         * modules/copy-file (Depends-on): Add acl.
57128
57129 2006-12-22  Bruno Haible  <bruno@clisp.org>
57130
57131         * gnulib-tool (SED): New variable.
57132         Use $SED instead of sed everywhere.
57133
57134 2006-12-22  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/no-c++: New file.
57137         * m4/no-c++.m4: New file.
57138         * MODULES.html.sh (Support for building libraries and executables):
57139         Add no-c++.
57140
57141 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
57142
57143         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57144         Include <limits.h>, and use its INT_MAX to rewrite the
57145         j loop so that it does not overflow 'int'.  Problem reported by
57146         Ralf Wildenhues in
57147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
57148         Play it safe by shifting left by 1 rather than multiplying by 2,
57149         as GCC is less likely to optimize this away when the value
57150         is signed (when it assumes overflow leads to undefined behavior).
57151         Also, don't assume time_t uses two's complement.
57152
57153 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
57154
57155         * MODULES.html.sh: New module wctype.
57156         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
57157         * lib/fnmatch.c: Don't bother to include <wchar.h> before
57158         <wctype.h>, since the new wctype module should fix this.
57159         * lib/quotearg.c: Include <wctype.h> unconditionally, since
57160         the wctype module should arrange for it.
57161         * lib/regex_internal.h: Likewise.
57162         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
57163         since the wctype module should handle this now.
57164         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
57165         * modules/fnmatch (Depends-on): Add wctype.
57166         * modules/quotearg (Depends-on): Likewise.
57167         * modules/regex (Depends-on): Likewise.
57168
57169 2006-12-19  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/strdup.h [C++]: Wrap definitions in extern "C".
57172         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
57173
57174 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57175
57176         * modules/savewd (Depends-on): Fix dependency on fcntl.
57177
57178 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57179
57180         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
57181         conforms to C99, rather than relying on the user's environment
57182         setting of STDINT_H.
57183
57184 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57185         and Eric Blake  <ebb9@byu.net>
57186
57187         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
57188         This is more consistent with the other defines here.
57189         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
57190         Port to z/OS.  Problem reported by Paul Gilmartin.
57191         Change local vars to use gl_ prefix rather than ac_.
57192         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
57193         with other defines.
57194         * modules/double-slash-root: New module.
57195         * modules/dirname (Files): Remove m4/double-slash-root.m4.
57196         (Depends-on): Add double-slash-root.
57197         * MODULES.html.sh (File system functions): Mention new module.
57198
57199 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
57200
57201         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
57202         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
57203         This is for the benefit of gzip, which doesn't do i18n.
57204
57205 2006-12-12  Jim Meyering  <jim@meyering.net>
57206
57207         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
57208         Reported by Andreas Schwab <schwab@suse.de>.
57209
57210 2006-12-12  Bruno Haible  <bruno@clisp.org>
57211
57212         Merge these changes.
57213         2006-09-05  Bruno Haible  <bruno@clisp.org>
57214         * lib/iconvme.c (iconv_string): No need to save and restore errno when
57215         iconv_alloc succeeded.
57216         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
57217         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
57218         test for " && dest " at the end - dest is always != NULL there. Call
57219         iconv with 4xNULL arguments initially, to reset the state. Call iconv
57220         with 2xNULL arguments, also to flush the state storage. Handle the
57221         IRIX iconv behaviour. Realloc the final result, to throw away unused
57222         memory.
57223
57224 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
57225
57226         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
57227         and fchmodat unconditionally, since glibc 2.4 has them.
57228         Problem reported by Arkadiusz Miskiewicz.
57229
57230 2006-12-10  Bruno Haible  <bruno@clisp.org>
57231
57232         * gnulib-tool (func_import): Show the include files only for those
57233         modules that are copied and specified.
57234         Reported by Karl Berry.
57235
57236 2006-12-08  Jim Meyering  <jim@meyering.net>
57237
57238         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
57239         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
57240
57241         * build-aux/announce-gen: Add two new options, both optional:
57242         --bootstrap-tools=TOOL_LIST
57243               a comma-separated list of tools, e.g.,
57244               autoconf,automake,bison,gnulib
57245         --gnulib-snapshot-date=DATE
57246               if gnulib is in the bootstrap tool list,
57247               then report this as the snapshot date.
57248               If not specified, use the current date/time.
57249               If you specify a date here, be sure it's UTC.
57250
57251 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57252
57253         * tests/test-argp-2.sh: Fix test to match actual output.
57254         (func_compare): Fix sed script to be portable.
57255
57256 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
57257
57258         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
57259         workaround for this case.  It is not autoconfigured now; offhand
57260         it's hard to see how to autoconfigure it.
57261
57262 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
57265         a directory that is about to be chowned.  Such a directory's
57266         initial file permissions should permit the owner only and this
57267         should not be changed until after the chown, since the group and
57268         other bits would be incorrect if they granted permission before
57269         the chown.
57270
57271         Fix porting problem for iswctype reported by Georg Schwarz in:
57272         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
57273         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
57274         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
57275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
57276         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57277
57278 2006-12-03  Jim Meyering  <jim@meyering.net>
57279
57280         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
57281         p->fts_statp may not yet be defined.
57282         (fts_read): Instead, set it in the caller, once p->fts_statp is
57283         sure to be defined, and corresponds to a top-level directory.
57284         This bug made du -x fail.  Here's the coreutils test case:
57285         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
57286         Reported by Mike Frysinger.
57287
57288 2006-12-01  Jim Meyering  <jim@meyering.net>
57289
57290         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
57291         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
57292         Reported by Simon Josefsson.
57293
57294 2006-11-30  Jim Meyering  <jim@meyering.net>
57295
57296         * m4/warning.m4: Use the all-permissive copyright notice
57297         recommended by RMS (rather than LGPL).
57298         * m4/vararrays.m4: Likewise.
57299         * m4/flexmember.m4: Likewise.
57300
57301 2006-11-29  Bruno Haible  <bruno@clisp.org>
57302
57303         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57304         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
57305         using +=.
57306         Reported by Simon Josefsson <simon@josefsson.org>.
57307
57308 2006-11-28  James Youngman <jay@gnu.org>
57309
57310         * README: Advise users that they might find the bug-gnulib@gnu.org
57311         and autotools-announce@gnu.org mailing lists useful.
57312
57313 2006-11-28  Bruno Haible  <bruno@clisp.org>
57314
57315         * m4/ptrdiff_max.m4: Remove file.
57316
57317 2006-11-21  Bruno Haible  <bruno@clisp.org>
57318
57319         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
57320         _AC_COMPUTE_INT.
57321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57322         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
57323         _AC_COMPUTE_INT.
57324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57325         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
57326         _AC_COMPUTE_INT.
57327         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57328
57329 2006-11-28  Jim Meyering  <jim@meyering.net>
57330
57331         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57332         warning from "gcc -Wshadow" about shadowing the builtin.
57333
57334 2006-11-27  Bruno Haible  <bruno@clisp.org>
57335
57336         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57337         _AC_COMPUTE_INT.
57338         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57339
57340 2006-11-27  Bruno Haible  <bruno@clisp.org>
57341             Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57344
57345 2006-11-26  Bruno Haible  <bruno@clisp.org>
57346
57347         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57348         noinst_LTLIBRARIES.
57349
57350 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57351             Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57354         if compiling with "gcc -ansi".
57355
57356 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57357
57358         Fix some incompatibilities with gcc -ansi -pedantic.
57359         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57360         if compiling pedantically with GCC, unless it's C99 or later.
57361         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57362         it mishandles gcc -ansi -pedantic as well.
57363         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57364         if gcc -pedantic.
57365         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57366         initializers for struct if -pedantic, unless it's C99 or later.
57367
57368 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57369
57370         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57371         Don't close an fd more than once. Identical atimes indicate
57372         success, not failure.
57373
57374 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57375
57376         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57377
57378 2006-11-23  Jim Meyering  <jim@meyering.net>
57379
57380         * build-aux/announce-gen: New file.  From coreutils.
57381
57382 2006-11-22  Jim Meyering  <jim@meyering.net>
57383
57384         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57385         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57386         (fts_read): Use a temporary to narrow the overused st_size member
57387         before using it in a switch statement.  Reported by Matthew Woehlke.
57388
57389         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57390         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57391
57392 2006-11-20  Bruno Haible  <bruno@clisp.org>
57393
57394         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57395         changequote instead of pairs of brackets.
57396         Reported by Andreas Schwab <schwab@suse.de>.
57397
57398 2006-11-21  Jim Meyering  <jim@meyering.net>
57399
57400         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57401         so as to remain compatible with older compilers.
57402         Patch from Michael Deutschmann.
57403
57404 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * MODULES.html.sh (File system functions): Add openat.
57407
57408         * lib/openat.h (rpl_fstatat): New macro, if
57409         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57410         (fstatat): Define to rpl_fstatat under the same conditions,
57411         unless COMPILING_FSTATAT.
57412         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57413         seems to have the bug.
57414         * lib/fstatat.c: New file.
57415         * modules/openat (Files): Add it.
57416
57417 2006-11-20  Bruno Haible  <bruno@clisp.org>
57418
57419         * Makefile: New file.
57420
57421 2006-11-20  Jim Meyering  <jim@meyering.net>
57422
57423         The beginnings of syntax-related checks for gnulib.
57424         * lib/Makefile: New file.
57425         * lib/t-idcache: New script.  Ensure that the two halves of
57426         idcache.c stay in sync.
57427
57428         * lib/idcache.c: Adjust comments in user- and group- portions to
57429         be more accurate, and to be consistent with one another.
57430
57431 2006-11-20  Jim Meyering  <jim@meyering.net>
57432
57433         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57434         continue using the flexible array member (thus, this module performs
57435         half as many malloc calls), with the addition that...
57436         (getgroup, getuser): Consistently record a non-match via an empty
57437         "name" string, and map an empty string match to a NULL return value.
57438         * modules/idcache (Depends-on): Re-add flexmember.
57439
57440         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57441         (getuidbyname, getgroup, getgidbyname): Likewise.
57442
57443         Use cleaner syntax: NULL rather than 0.
57444         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57445
57446 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57447
57448         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57449         It mishandled the case where the group was missing.
57450         Problem reported by Greg Schafer.
57451         * modules/idcache: Likewise.
57452
57453 2006-11-18  Jim Meyering  <jim@meyering.net>
57454
57455         * check-module (%exempt_header): Add exception for some
57456         conditionally-included headers.
57457
57458         * modules/i-ring (Depends-on): Add verify.
57459         (License): Change to LGPL.
57460
57461 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57462
57463         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57464         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57465         and inttostr.h.  Use snprintf rather than uinttostr, so that
57466         LGPLed code doesn't depend on GPLed.
57467
57468 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57469
57470         * modules/inline (License): Change from GPL to LGPL.
57471
57472 2006-11-17  Jim Meyering  <jim@meyering.net>
57473
57474         * modules/d-type (License): Switch to LGPL.
57475
57476 2006-11-15  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57479
57480 2006-11-15  Eric Blake  <ebb9@byu.net>
57481
57482         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57483         the module dependency.
57484
57485 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57486             Bruno Haible  <bruno@clisp.org>
57487
57488         * gnulib-tool (func_create_testdir): Add license consistency check.
57489
57490 2006-11-15  Eric Blake  <ebb9@byu.net>
57491
57492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57493         random "(cached)" in configure output.
57494
57495 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57496
57497         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57498         test for conforming inttypes.h is both announced and cached.
57499
57500         * MODULES.html.sh (seen_modules, seen_files): New variables.
57501         (func_module): Rewrite to use a few less gnulib-tool and sed
57502         invocations.  Avoid a couple of quadratic algorithms for ...
57503         (missed_modules, missed_files): ... these, with ...
57504         (func_append, func_tmpdir): ... these new functions, from
57505         gnulib-tool.  Analogously, install traps for cleanup.
57506
57507         * tests/test-gc.c (main): Remove unused variables.
57508         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57509
57510 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * modules/inttostr (License): Change to LGPL.
57513
57514 2006-11-14  Eric Blake  <ebb9@byu.net>
57515
57516         * modules/tempname (License): Change to LGPL.
57517
57518 2006-11-14  Eric Blake  <ebb9@byu.net>
57519
57520         * doc/functions.texi (Function Portability): *printf functions on
57521         Cygwin now understand all POSIX size specifiers.
57522
57523 2006-11-14  Bruno Haible  <bruno@clisp.org>
57524
57525         * modules/c-ctype (License): Change to LGPL.
57526
57527 2006-11-12  Bruno Haible  <bruno@clisp.org>
57528
57529         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57530         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57531         for GNOME libraries, for which the include files are installed in
57532         subdirectories of $prefix/include.
57533
57534 2006-11-12  Bruno Haible  <bruno@clisp.org>
57535
57536         * m4/lib-link.m4: Require at least autoconf-2.54.
57537         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57538         name to underscores for the --with option.
57539
57540 2006-11-13  Bruno Haible  <bruno@clisp.org>
57541
57542         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57543         the tests directory.
57544         Reported by Ralf Wildenhues.
57545
57546 2006-11-13  Bruno Haible  <bruno@clisp.org>
57547
57548         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57549         (func_emit_initmacro_end): Undo the override here.
57550         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57551         Works around the famous automake error in coreutils.
57552
57553 2006-11-13  Eric Blake  <ebb9@byu.net>
57554
57555         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57556         element, not its node.
57557
57558 2006-11-12  Bruno Haible  <bruno@clisp.org>
57559
57560         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57561         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57562
57563 2006-11-12  Bruno Haible  <bruno@clisp.org>
57564
57565         * gnulib-tool: New option --local-symlink.
57566         (func_usage): Document it.
57567         (lsymbolic): New variable.
57568         (func_import, func_create_testdir): If --symlink was not specified,
57569         test whether --local-symlink was specified and the file comes from
57570         the local_gnulib_dir.
57571
57572 2006-11-12  Bruno Haible  <bruno@clisp.org>
57573
57574         * gnulib-tool (func_ln): New function.
57575         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57576
57577 2006-11-12  Bruno Haible  <bruno@clisp.org>
57578
57579         Finish support for source files in subdirectories.
57580         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57581         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57582         AUTOMAKE_OPTIONS.
57583         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57584
57585 2006-11-12  Bruno Haible  <bruno@clisp.org>
57586
57587         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57588         EXTRA_lib_SOURCES augmentation.
57589         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57590
57591 2006-11-12  Jim Meyering  <jim@meyering.net>
57592
57593         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57594         file descriptors.  This also averts a failure on systems with
57595         native openat support when a traversed directory lacks "x" access.
57596         * lib/fts_.h: Include "i-ring.h"
57597         (struct FTS) [fts_fd_ring]: New member.
57598         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57599         (FCHDIR): Add parentheses.
57600         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57601         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57602         When descending, rather than simply closing the previous
57603         fts_cwd_fd value, push that file descriptor onto the ring.
57604         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57605         (fts_open): Initialize the new fd_ring member.
57606         (fts_close): Clear the ring.
57607         (fts_safe_changedir): When possible, use our new fd_ring to skip
57608         the diropen and fstat and dev/ino comparison that would normally
57609         accompany a virtual `chdir ("..")'.
57610
57611         * modules/fts (Depends-on): Add i-ring.
57612         * modules/i-ring: New module.
57613         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57614         * m4/i-ring.m4: New file.
57615
57616 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57617
57618         * gnulib-tool (func_create_testdir): Fix replacement of
57619         `build-aux' in configure.ac.  Run autotools in gltests
57620         subdirectory.
57621         (func_create_testdir, func_create_megatestdir, test): There is
57622         no need for '--force' in most autotool invocations in a new
57623         tree.  Actually fail the whole test if any of the tools, or the
57624         configure or make stages fail.
57625
57626         Sync from Automake.
57627         * build-aux/gnupload: Revert last change.  Add pointer to upload
57628         instructions of the GNU Maintenance Instructions.
57629         Suggestion by Karl Berry.
57630
57631 2006-11-10  Jim Meyering  <jim@meyering.net>
57632
57633         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57634
57635 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57638         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57639         (bind_textdomain_codeset) [! ENABLE_NLS]:
57640         Evaluate all the arguments.  That way, callers get compatible behavior
57641         if the arguments have side effects.  Also, it avoids some GCC
57642         diagnostics in some cases; Joel E. Denny reported problems when Bison
57643         was configured with --enable-gcc-warnigs.
57644
57645 2006-11-10  Jim Meyering  <jim@meyering.net>
57646
57647         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57648         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57649         account.
57650
57651 2006-11-10  Jim Meyering  <jim@meyering.net>
57652
57653         * modules/inline: New file/module.
57654         * modules/xalloc (Files): Remove m4/inline.m4.
57655         (Depends-on): Add inline, instead.
57656         * modules/oset: Likewise.
57657         * modules/list: Likewise.
57658
57659 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57662         Problem reported by Matthew Woehlke.
57663
57664 2006-11-09  Bruno Haible  <bruno@clisp.org>
57665
57666         * lib/tempname.c (gen_tempname): Remove variant that invokes
57667         __gen_tempname.
57668         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57669         __gen_tempname.
57670
57671 2006-11-08  Bruno Haible  <bruno@clisp.org>
57672
57673         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57674         to 'yes' instead of 'cross-compiling'.
57675
57676 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57677
57678         * lib/quotearg.h (quotearg_free): New decl.
57679         * lib/quotearg.c (quotearg_free): New function.
57680         (slot0, nslots, slotvec0, slotvec):
57681         Now file-scope so that quotearg_free can get at them.
57682
57683 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57684
57685         Sync from Automake.
57686         * build-aux/gnupload: Add missing 'gnu' to example URL.
57687         Report by Karl Berry.
57688
57689 2006-11-08  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57692         Suggested by Paul Eggert.
57693
57694 2006-11-08  Jim Meyering  <jim@meyering.net>
57695
57696         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57697         It's already included if !_LIBC.
57698         (fts_safe_changedir): Add a comment.
57699
57700 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57703         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57704         Matthew Woehlke.
57705
57706         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57707         definitions up, to avoid colliding with change below.
57708         (static_inline) [HAVE_INLINE]: New macro.
57709         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57710         Provide extern decls when !HAVE_INLINE.  Do not define unless
57711         static_inline is defined, either by us or by xmalloc.c.  Use
57712         static_inline rather than static inline.
57713         (XCALLOC): Optimize sizeof(T) = 1 case.
57714         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57715
57716 2006-11-07  Bruno Haible  <bruno@clisp.org>
57717
57718         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57720         AC_C_INLINE.
57721         * modules/xalloc (Files): Add m4/inline.m4.
57722
57723 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57724
57725         * README: Fix typo.
57726         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57727         (Miscellanous Notes): ...from this.
57728
57729 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57730
57731         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57732         Mention that offsetof should be used instead of sizeof.
57733         From Bruno Haible.
57734
57735 2006-11-07  Bruno Haible  <bruno@clisp.org>
57736
57737         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57738
57739 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57742         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57743         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57744         (gl_tree_add_before, gl_tree_add_after):
57745         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57746         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57747         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57748         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57749         (gl_linked_add_after, gl_linked_add_at): Likewise.
57750         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57751         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57752         (gl_tree_add_before, gl_tree_add_after): Likewise.
57753         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57754         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57755         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57756
57757 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57758
57759         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57760
57761 2006-11-06  Bruno Haible  <bruno@clisp.org>
57762
57763         * m4/inline.m4: New file.
57764         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57765         * modules/list (Files): Add m4/inline.m4.
57766         * modules/oset (Files): Likewise.
57767
57768 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         * lib/idcache.c: Include <stddef.h>, for offsetof.
57771         (struct userid.name): Change from char * to a flexible array member.
57772         All uses changed.
57773         * modules/idcache (Depends-on): Add flexmember.
57774
57775         * MODULES.html.sh (Core language properties): New module flexmember.
57776         * modules/flexmember, m4/flexmember.m4: New files.
57777
57778         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57779         inline functions that are identical with the old xnmalloc_inline,
57780         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57781         that we can avoid some unnecessary integer multiplications and
57782         divisions in the common case where the element size is known at
57783         compile time.
57784         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57785         needed.
57786         (xnboundedmalloc): Remove.
57787         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57788         arguments, for consistency with rest of this header.
57789         (xcharalloc): Rewrite using XNMALLOC.
57790         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57791         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57792         versions have been moved to lib/xalloc.h and renamed to be the
57793         non-*_inline versions.
57794         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57795         and xnrealloc functions, since those functions are now inline and
57796         now call us.
57797         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57798         renaming described above.
57799         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57800         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57801         captures the dependency in AC_C_INLINE.
57802
57803         New module canonicalize-lgpl, proposed by Charles Wilson in
57804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57805         with a few small changes afterwards.
57806         * MODULES.html.sh (File system functions): New module
57807         canonicalize-lgpl.
57808         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57809         and canonicalize_file_name.
57810         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57811         * modules/canonicalize-lgpl: New files.
57812
57813 2006-11-05  Bruno Haible  <bruno@clisp.org>
57814
57815         * gnulib-tool (func_import, func_create_testdir): Create directories
57816         also for files in subdirectories of lib/.
57817
57818 2006-11-05  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57821         ANSI C compliant.
57822
57823 2006-11-03  Bruno Haible  <bruno@clisp.org>
57824
57825         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57826         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57827         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57828         (xnboundedmalloc): New inline function.
57829         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57830         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57831         xmalloc.
57832         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57833         xmalloc.
57834         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57835         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57836         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57837         xmalloc.
57838         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57839         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57840         xmalloc.
57841         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57842         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57843         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57844         xmalloc.
57845         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57846         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57847         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57848         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57849         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57850         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57851         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57852
57853 2006-11-03  Bruno Haible  <bruno@clisp.org>
57854
57855         * lib/c-ctype.h [C++]: Define functions without name mangling.
57856         * lib/fwriteerror.h [C++]: Likewise.
57857         * lib/gcd.h [C++]: Likewise.
57858         * lib/linebreak.h [C++]: Likewise.
57859
57860 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57863         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57864         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57866         Check for functions and headers just once.
57867         Check for declaration of canonicalize_file_name.
57868         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57869
57870 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57871
57872         * gnulib-tool (func_import): Fix typo in actioncmd.
57873
57874 2006-11-02  Bruno Haible  <bruno@clisp.org>
57875
57876         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57877         newline sequence in the Makefile.am snippet as a space, like "make"
57878         does.
57879         Reported by Roger Persson <perrog@gmail.com>.
57880
57881 2006-11-01  Bruno Haible  <bruno@clisp.org>
57882
57883         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57884         already declared in <string.h>.
57885         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57886
57887 2006-11-01  Bruno Haible  <bruno@clisp.org>
57888
57889         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57890         * lib/strcase.h: Include <string.h>.
57891         (strcasecmp): Define to rpl_strcasecmp here.
57892
57893 2006-11-01  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57896
57897 2006-11-01  Eric Blake  <ebb9@byu.net>
57898
57899         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57900
57901         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57902
57903 2006-10-29  Bruno Haible  <bruno@clisp.org>
57904
57905         Make it compile in C++ mode.
57906         * lib/full-write.c (full_rw): Add a cast.
57907
57908 2006-11-01  Bruno Haible  <bruno@clisp.org>
57909
57910         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57911         be POSIX compliant.
57912         Reported by Roger Persson <perrog@gmail.com>.
57913
57914 2006-11-01  Eric Blake  <ebb9@byu.net>
57915
57916         * lib/getopt_.h: Fix comments.
57917
57918 2006-10-31  Eric Blake  <ebb9@byu.net>
57919
57920         * modules/tmpdir (Depends-on): Add sys_stat.
57921         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57922         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57923         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57924         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57925         tempname.
57926
57927 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         Avoid some C++ diagnostics reported by Bruno Haible.
57930         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57931         xmalloc.
57932         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57933         (struct slotvec): Move to top level.
57934         (quotearg_n_options): Rewrite to avoid xmalloc.
57935         * lib/xalloc.h (xcharalloc): New function.
57936         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57937         [defined __cplusplus]: Add function template that provides result
57938         type propagation.  This part of the change is from Bruno Haible.
57939
57940 2006-10-29  Bruno Haible  <bruno@clisp.org>
57941
57942         Make it compile in C++ mode.
57943         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57944         * lib/strnlen1.c (strnlen1): Cast memchr result.
57945         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57946         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57947         (create_temp_dir): Rename local variable 'template'.
57948         (compile_csharp_using_sscli): Add cast.
57949         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57950         * lib/findprog.c (find_in_path): Likewise.
57951         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57952         * lib/wait-process.c (register_slave_subprocess): Likewise.
57953
57954 2006-10-22  Bruno Haible  <bruno@clisp.org>
57955
57956         * modules/tsearch: New file.
57957         * lib/tsearch.h: New file.
57958         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57959         * m4/tsearch.m4: New file.
57960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57961
57962 2006-10-29  Eric Blake  <ebb9@byu.net>
57963
57964         * lib/arcfour.c: Assume config.h.
57965         * lib/arctwo.c: Likewise.
57966         * lib/base64.c: Likewise.
57967         * lib/check-version.c: Likewise.
57968         * lib/crc.c: Likewise.
57969         * lib/des.c: Likewise.
57970         * lib/gc-gnulib.c: Likewise.
57971         * lib/gc-libgcrypt.c: Likewise.
57972         * lib/gc-pbkdf2-sha1.c: Likewise.
57973         * lib/getaddrinfo.c: Likewise.
57974         * lib/getdelim.c: Likewise.
57975         * lib/getline.c: Likewise.
57976         * lib/hmac-md5.c: Likewise.
57977         * lib/hmac-sha1.c: Likewise.
57978         * lib/iconvme.c: Likewise.
57979         * lib/md2.c: Likewise.
57980         * lib/md4.c: Likewise.
57981         * lib/memxor.c: Likewise.
57982         * lib/read-file.c: Likewise.
57983         * lib/readline.c: Likewise.
57984         * lib/rijndael-alg-fst.c: Likewise.
57985         * lib/rijndael-api-fst.c: Likewise.
57986         * lib/xgetdomainname.c: Likewise.
57987
57988 2006-10-28  Eric Blake  <ebb9@byu.net>
57989
57990         * lib/xstrndup.c: Assume config.h.
57991
57992 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57995         stat-macros.h is now for our own macros, whereas stat_h is for
57996         macros in the <sys/stat.h> name space.
57997         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57998         (STAT_MACROS_H): Remove.
57999         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
58000         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
58001         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
58002         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
58003         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
58004         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
58005         Move these macros to ...
58006         * lib/stat_.h: here.  Don't include stat-macros.h.
58007         * lib/canonicalize.c: Don't include stat-macros.h.
58008         * lib/chown.c: Likewise.
58009         * lib/euidaccess.c: Likewise.
58010         * lib/file-type.c: Likewise.
58011         * lib/filemode.c: Likewise.
58012         * lib/glob.c: Likewise.
58013         * lib/isapipe.c: Likewise.
58014         * lib/lchown.c: Likewise.
58015         * lib/lstat.c: Likewise.
58016         * lib/mkdir-p.c: Likewise.
58017         * lib/rmdir.c: Likewise.
58018         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
58019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
58020         unless mkdir isn't declared, to speed up 'configure'.
58021         Always create sys/stat.h, since it's unlikely any real sys/stat.h
58022         would define all the S_* symbols.
58023         * modules/canonicalize (Depends-on):
58024         Depend on sys_stat, not stat-macros.
58025         * modules/chown: Likewise.
58026         * modules/euidaccess: Likewise.
58027         * modules/filemode: Likewise.
58028         * modules/file-type: Likewise.
58029         * modules/glob: Likewise.
58030         * modules/isapipe: Likewise.
58031         * modules/lchown: Likewise.
58032         * modules/lstat: Likewise.
58033         * modules/mkancesdirs: Likewise.
58034         * modules/rmdir: Likewise.
58035         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
58036         * modules/modechange: Likewise.
58037         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
58038         (configure.ac): Remove gl_STAT_MACROS.
58039         * modules/sys_stat (Depends-on): Remove stat-macros.
58040
58041 2006-10-27  Bruno Haible  <bruno@clisp.org>
58042
58043         * m4/signed.m4: Remove file.
58044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
58045         invocation.
58046         * modules/vasnprintf (Files): Remove m4/signed.m4.
58047
58048 2006-10-27  Bruno Haible  <bruno@clisp.org>
58049
58050         Update to GNU gettext 0.16.
58051         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
58052         m4/inttypes-h.m4, m4/signed.m4.
58053         * m4/gettext.m4: Update to GNU gettext 0.16.
58054         * m4/intl.m4: New file, from GNU gettext.
58055         * m4/intldir.m4: New file, from GNU gettext.
58056         * config/srclist.txt: Update
58057
58058 2006-10-27  Eric Blake  <ebb9@byu.net>
58059
58060         * MODULES.html.sh: Document tempname.
58061         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
58062         dependencies.
58063         (Files): Move lib/tempname.c...
58064         * modules/tempname: ...to this new module.
58065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
58066         (gl_PREREQ_TEMPNAME): Move...
58067         * m4/tempname.m4: ...to this new file.
58068         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
58069         * modules/sys_stat (Depends-on): Add stat-macros.
58070         * lib/stat_.h (includes): Pick up stat macros.
58071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
58072         if stat macros are broken.
58073         * lib/tempname.c (includes): No need to include "stat-macros.h".
58074         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
58075         (direxists, __path_search) [!_LIBC]: Don't compile these in
58076         gnulib; the tmpdir module covers that.
58077         * lib/tempname.h: New file.
58078
58079 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * COPYING: Explain how gnulib-tool converts licence headers.
58082         Almost all wording by Eric Blake.
58083
58084 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * lib/mbchar.h (is_basic_table): Make read-only.
58087         * lib/mbchar.c (is_basic_table): Likewise.
58088         Reported by John Darrington.
58089
58090 2006-10-25  Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/progname.h (set_program_name): Undefine before defining.
58093
58094 2006-10-25  Bruno Haible  <bruno@clisp.org>
58095
58096         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
58097         false for non-gcc C++ compilers.
58098         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58099
58100 2006-10-24  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
58103         iconv implementations like Irix iconv.
58104
58105 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * modules/vararrays: New file.
58108         * m4/vararrays.m4: New file, taken from diffutils.
58109         * MODULES.html.sh: New module vararrays.
58110
58111 2006-10-24  Karl Berry  <karl@gnu.org>
58112
58113         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
58114         Don't call GNU Unix.
58115
58116 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58117
58118         * users.txt: Add Libtool.
58119
58120         Sync from Libtool:
58121
58122         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58123
58124         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
58125         to gnulib's policy of including config.h unconditionally.
58126
58127 2006-10-24  Bruno Haible  <bruno@clisp.org>
58128
58129         * modules/wcwidth (Files): Add m4/wint_t.m4.
58130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
58131         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
58132
58133 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
58136         to pacify GCC with some -W flags enabled.  Problem reported by
58137         Bruno Haible.
58138
58139 2006-10-24  Jim Meyering  <jim@meyering.net>
58140
58141         * MODULES.html.sh: Remove uinttostr.  It's not a module.
58142         Reported by Karl Berry.
58143
58144 2006-10-23  Bruno Haible  <bruno@clisp.org>
58145
58146         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
58147
58148 2006-10-24  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/gl_list.h: Use C comment style, not C++ comment style.
58151
58152 2006-10-23  Eric Blake  <ebb9@byu.net>
58153
58154         * lib/getaddrinfo.c (includes): Add missing include.
58155
58156 2006-10-23  Bruno Haible  <bruno@clisp.org>
58157             Paul Eggert  <eggert@cs.ucla.edu>
58158
58159         Ability to rename obstack_free.
58160         * lib/obstack.h (__obstack_free): New macro. Declare instead of
58161         obstack_free.
58162         (obstack_free): Invoke the __obstack_free macro.
58163         * lib/obstack.c (obstack_free): Use __obstack_free macro.
58164
58165 2006-10-23  Bruno Haible  <bruno@clisp.org>
58166             Paul Eggert  <eggert@cs.ucla.edu>
58167
58168         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
58169         __argc, __argv from the declaration. (They are defined as macros on
58170         mingw.)
58171
58172 2006-10-22  Bruno Haible  <bruno@clisp.org>
58173
58174         * doc/gnulib-intro.texi: New file.
58175         * doc/gnulib.texi: Include it.
58176
58177 2006-10-21  Bruno Haible  <bruno@clisp.org>
58178
58179         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
58180         "Introduction", "Miscellanous Notes", "Particular Modules".
58181
58182 2006-10-21  Bruno Haible  <bruno@clisp.org>
58183
58184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58185         Change mostlyclean-local rule to avoid sh syntax error from bash
58186         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
58187
58188 2006-10-23  Jim Meyering  <jim@meyering.net>
58189
58190         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
58191         in place of snprintf.
58192
58193         * modules/inttostr (Files): Add lib/uinttostr.c.
58194         * lib/uinttostr.c (inttostr): New file/function.
58195         * lib/inttostr.h (uinttostr): Declare.
58196         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
58197         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
58198         Add uinttostr.
58199         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
58200
58201 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58202
58203         * lib/canonicalize.c (ELOOP): Define if not already defined.
58204         Problem reported by Bruno Haible in
58205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
58206
58207 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
58210         Problem reported by Perry Smith and Ville Laurikari.
58211
58212         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
58213         uses.
58214
58215 2006-10-19  Bruno Haible  <bruno@clisp.org>
58216
58217         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
58218         for mingw.
58219
58220 2006-10-19  Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
58223         Needed for mingw.
58224
58225 2006-10-19  Bruno Haible  <bruno@clisp.org>
58226
58227         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
58228
58229 2006-10-19  Bruno Haible  <bruno@clisp.org>
58230
58231         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
58232         it.
58233
58234 2006-10-19  Bruno Haible  <bruno@clisp.org>
58235
58236         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
58237         invocation.
58238
58239 2006-10-19  Bruno Haible  <bruno@clisp.org>
58240
58241         * gnulib-tool (func_create_testdir): Don't include ftruncate and
58242         mountlist by default.
58243
58244 2006-10-16  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/c-strstr.c: Include c-strstr.h.
58247
58248 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58249
58250         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
58251         in a slash.
58252
58253 2006-10-18  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/lock.h [C++]: Wrap definitions in extern "C".
58256
58257 2006-10-18  Bruno Haible  <bruno@clisp.org>
58258
58259         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
58260         gl_LIBOBJS list.
58261
58262 2006-10-18  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
58265
58266 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * lib/xstrtol.h: Include gettext.h.
58269         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
58270         Problem reported by Eric Blake.
58271         * modules/xstrtol (Depends-on): Add gettext-h.
58272
58273 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
58274
58275         * lib/strftime.c (advance): New macro.
58276         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
58277         incomplete type, so you can't add 0 to it.  Problem and patch
58278         reported by Eelco Dolstra for dietlibc.
58279
58280 2006-10-18  Jim Meyering  <jim@meyering.net>
58281
58282         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
58283         type for a local, and rename it: s/up/user_proc/.
58284
58285 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58286
58287         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
58288         READ_UTMP_USER_PROCESS.
58289         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
58290
58291 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58292
58293         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
58294         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
58295
58296 2006-10-17  Eric Blake  <ebb9@byu.net>
58297
58298         * lib/sigprocmask.c (sigprocmask): Fix typo.
58299
58300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
58301
58302         * modules/clean-temp (Makefile.am): Don't add to make output...
58303         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
58304         config.h.
58305
58306 2006-10-17  Bruno Haible  <bruno@clisp.org>
58307
58308         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
58309         differently if DEFAULT_TEXT_DOMAIN is set.
58310
58311 2006-10-16  Bruno Haible  <bruno@clisp.org>
58312
58313         * lib/clean-temp.c: Include fwriteerror.h.
58314
58315 2006-10-16  Bruno Haible  <bruno@clisp.org>
58316
58317         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
58318
58319 2006-10-16  Bruno Haible  <bruno@clisp.org>
58320
58321         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
58322         * lib/sigprocmask.h: Include <sys/types.h>.
58323         (sigset_t): Use the system's definition if present.
58324
58325 2006-10-17  Eric Blake  <ebb9@byu.net>
58326
58327         * lib/xvasprintf.c (includes): Assume config.h.
58328         * lib/xasprintf.c (includes): Likewise.
58329
58330 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58333         at least as wide as intmax_t.
58334
58335 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58336
58337         (Imported from Automake.)
58338         * build-aux/gnupload: Update to version 1.1 of directive file.
58339
58340 2006-10-16  Eric Blake  <ebb9@byu.net>
58341
58342         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58343         match Automake 1.10a.
58344
58345 2006-10-14  Bruno Haible  <bruno@clisp.org>
58346
58347         * modules/sigprocmask: New file.
58348         * lib/sigprocmask.h: New file.
58349         * lib/sigprocmask.c: New file.
58350         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58351         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58352         request sigprocmask.o.
58353         (gl_PREREQ_SIGPROCMASK): New macro.
58354         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58355         (Depends-on): Add sigprocmask.
58356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58357         gt_SIGNALBLOCKING. Test for 'raise' only once.
58358         * lib/fatal-signal.c: Include sigprocmask.h.
58359         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58360         unblock_fatal_signals): Define always.
58361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58362         sigprocmask.
58363
58364 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58365
58366         Sync from Automake.
58367         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58368         which incorrectly sets the mode of an existing destination
58369         directory.  In some cases the unpatched install-sh could do the
58370         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58371         system.  We hope this is rare in practice, but it's clearly worth
58372         fixing.  Problem reported by Alex Unleashed in
58373         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58374         Also, don't bother to check for -m bugs unless we're using -m;
58375         suggested by Stepan Kasal.
58376
58377 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58378
58379         Sync from Automake.
58380         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58381         `-c' flag, so they appear at the same position as in %FASTDEP%
58382         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58383         which ignores unknown options only after the first non-option.
58384         Bug report against M4 by Nelson H. F. Beebe.
58385
58386 2006-10-13  Jim Meyering  <jim@meyering.net>
58387
58388         Fix a bug in yesterday's change.
58389         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58390         p->fts_statp->st_dev would be used uninitialized.
58391         Ensures that we always call fts_stat on the very first entry.
58392         Miklos Szeredi reported that find -xdev stopped working.
58393
58394 2006-10-12  Bruno Haible  <bruno@clisp.org>
58395
58396         * gnulib-tool (func_get_automake_snippet): Append an automatically
58397         computed EXTRA_DIST augmentation.
58398         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58399         * modules/alloca-opt (Makefile.am): Likewise.
58400         * modules/allocsa (Makefile.am): Likewise.
58401         * modules/arcfour (Makefile.am): Likewise.
58402         * modules/arctwo (Makefile.am): Likewise.
58403         * modules/argmatch (Makefile.am): Likewise.
58404         * modules/argz (Makefile.am): Likewise.
58405         * modules/atexit (Makefile.am): Likewise.
58406         * modules/backupfile (Makefile.am): Likewise.
58407         * modules/byteswap (Makefile.am): Likewise.
58408         * modules/c-strtod (Makefile.am): Likewise.
58409         * modules/c-strtold (Makefile.am): Likewise.
58410         * modules/calloc (Makefile.am): Likewise.
58411         * modules/canon-host (Makefile.am): Likewise.
58412         * modules/canonicalize (Makefile.am): Likewise.
58413         * modules/chdir-long (Makefile.am): Likewise.
58414         * modules/chdir-safer (Makefile.am): Likewise.
58415         * modules/check-version (Makefile.am): Likewise.
58416         * modules/chown (Makefile.am): Likewise.
58417         * modules/cloexec (Makefile.am): Likewise.
58418         * modules/close-stream (Makefile.am): Likewise.
58419         * modules/closeout (Makefile.am): Likewise.
58420         * modules/crc (Makefile.am): Likewise.
58421         * modules/csharpexec (Makefile.am): Likewise.
58422         * modules/cycle-check (Makefile.am): Likewise.
58423         * modules/des (Makefile.am): Likewise.
58424         * modules/dev-ino (Makefile.am): Likewise.
58425         * modules/dirfd (Makefile.am): Likewise.
58426         * modules/dirname (Makefile.am): Likewise.
58427         * modules/dup2 (Makefile.am): Likewise.
58428         * modules/eealloc (Makefile.am): Likewise.
58429         * modules/error (Makefile.am): Likewise.
58430         * modules/euidaccess (Makefile.am): Likewise.
58431         * modules/exclude (Makefile.am): Likewise.
58432         * modules/exitfail (Makefile.am): Likewise.
58433         * modules/fcntl-safer (Makefile.am): Likewise.
58434         * modules/fcntl (Makefile.am): Likewise.
58435         * modules/file-type (Makefile.am): Likewise.
58436         * modules/fileblocks (Makefile.am): Likewise.
58437         * modules/filemode (Makefile.am): Likewise.
58438         * modules/filenamecat (Makefile.am): Likewise.
58439         * modules/fnmatch (Makefile.am): Likewise.
58440         * modules/fopen-safer (Makefile.am): Likewise.
58441         * modules/fpending (Makefile.am): Likewise.
58442         * modules/fprintftime (Makefile.am): Likewise.
58443         * modules/free (Makefile.am): Likewise.
58444         * modules/fsusage (Makefile.am): Likewise.
58445         * modules/ftruncate (Makefile.am): Likewise.
58446         * modules/fts (Makefile.am): Likewise.
58447         * modules/gc-arcfour (Makefile.am): Likewise.
58448         * modules/gc-des (Makefile.am): Likewise.
58449         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58450         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58451         * modules/gc-md4 (Makefile.am): Likewise.
58452         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58453         * modules/gc-sha1 (Makefile.am): Likewise.
58454         * modules/gc (Makefile.am): Likewise.
58455         * modules/getaddrinfo (Makefile.am): Likewise.
58456         * modules/getcwd (Makefile.am): Likewise.
58457         * modules/getdelim (Makefile.am): Likewise.
58458         * modules/getdomainname (Makefile.am): Likewise.
58459         * modules/getgroups (Makefile.am): Likewise.
58460         * modules/gethostname (Makefile.am): Likewise.
58461         * modules/gethrxtime (Makefile.am): Likewise.
58462         * modules/getline (Makefile.am): Likewise.
58463         * modules/getloadavg (Makefile.am): Likewise.
58464         * modules/getlogin_r (Makefile.am): Likewise.
58465         * modules/getndelim2 (Makefile.am): Likewise.
58466         * modules/getopt (Makefile.am): Likewise.
58467         * modules/getpagesize (Makefile.am): Likewise.
58468         * modules/getpass-gnu (Makefile.am): Likewise.
58469         * modules/getpass (Makefile.am): Likewise.
58470         * modules/getsubopt (Makefile.am): Likewise.
58471         * modules/gettime (Makefile.am): Likewise.
58472         * modules/gettimeofday (Makefile.am): Likewise.
58473         * modules/getugroups (Makefile.am): Likewise.
58474         * modules/getusershell (Makefile.am): Likewise.
58475         * modules/glob (Makefile.am): Likewise.
58476         * modules/group-member (Makefile.am): Likewise.
58477         * modules/hard-locale (Makefile.am): Likewise.
58478         * modules/hash (Makefile.am): Likewise.
58479         * modules/hmac-md5 (Makefile.am): Likewise.
58480         * modules/hmac-sha1 (Makefile.am): Likewise.
58481         * modules/human (Makefile.am): Likewise.
58482         * modules/idcache (Makefile.am): Likewise.
58483         * modules/imaxabs (Makefile.am): Likewise.
58484         * modules/imaxdiv (Makefile.am): Likewise.
58485         * modules/inet_ntop (Makefile.am): Likewise.
58486         * modules/inet_pton (Makefile.am): Likewise.
58487         * modules/intprops (Makefile.am): Likewise.
58488         * modules/inttostr (Makefile.am): Likewise.
58489         * modules/inttypes (Makefile.am): Likewise.
58490         * modules/isapipe (Makefile.am): Likewise.
58491         * modules/javaversion (Makefile.am): Likewise.
58492         * modules/lchmod (Makefile.am): Likewise.
58493         * modules/lchown (Makefile.am): Likewise.
58494         * modules/localcharset (Makefile.am): Likewise.
58495         * modules/long-options (Makefile.am): Likewise.
58496         * modules/lstat (Makefile.am): Likewise.
58497         * modules/malloc (Makefile.am): Likewise.
58498         * modules/mathl (Makefile.am): Likewise.
58499         * modules/mbchar (Makefile.am): Likewise.
58500         * modules/md2 (Makefile.am): Likewise.
58501         * modules/md4 (Makefile.am): Likewise.
58502         * modules/md5 (Makefile.am): Likewise.
58503         * modules/memcasecmp (Makefile.am): Likewise.
58504         * modules/memchr (Makefile.am): Likewise.
58505         * modules/memcmp (Makefile.am): Likewise.
58506         * modules/memcoll (Makefile.am): Likewise.
58507         * modules/memcpy (Makefile.am): Likewise.
58508         * modules/memmem (Makefile.am): Likewise.
58509         * modules/memmove (Makefile.am): Likewise.
58510         * modules/mempcpy (Makefile.am): Likewise.
58511         * modules/memrchr (Makefile.am): Likewise.
58512         * modules/memset (Makefile.am): Likewise.
58513         * modules/memxor (Makefile.am): Likewise.
58514         * modules/mkancesdirs (Makefile.am): Likewise.
58515         * modules/mkdir-p (Makefile.am): Likewise.
58516         * modules/mkdir (Makefile.am): Likewise.
58517         * modules/mkdtemp (Makefile.am): Likewise.
58518         * modules/mkstemp (Makefile.am): Likewise.
58519         * modules/mktime (Makefile.am): Likewise.
58520         * modules/modechange (Makefile.am): Likewise.
58521         * modules/mountlist (Makefile.am): Likewise.
58522         * modules/nanosleep (Makefile.am): Likewise.
58523         * modules/obstack (Makefile.am): Likewise.
58524         * modules/openat (Makefile.am): Likewise.
58525         * modules/pagealign_alloc (Makefile.am): Likewise.
58526         * modules/pathmax (Makefile.am): Likewise.
58527         * modules/physmem (Makefile.am): Likewise.
58528         * modules/poll (Makefile.am): Likewise.
58529         * modules/posixtm (Makefile.am): Likewise.
58530         * modules/posixver (Makefile.am): Likewise.
58531         * modules/putenv (Makefile.am): Likewise.
58532         * modules/quote (Makefile.am): Likewise.
58533         * modules/quotearg (Makefile.am): Likewise.
58534         * modules/raise (Makefile.am): Likewise.
58535         * modules/read-file (Makefile.am): Likewise.
58536         * modules/readline (Makefile.am): Likewise.
58537         * modules/readlink (Makefile.am): Likewise.
58538         * modules/readtokens (Makefile.am): Likewise.
58539         * modules/readutmp (Makefile.am): Likewise.
58540         * modules/realloc (Makefile.am): Likewise.
58541         * modules/regex (Makefile.am): Likewise.
58542         * modules/rename-dest-slash (Makefile.am): Likewise.
58543         * modules/rename (Makefile.am): Likewise.
58544         * modules/rijndael (Makefile.am): Likewise.
58545         * modules/rmdir (Makefile.am): Likewise.
58546         * modules/rpmatch (Makefile.am): Likewise.
58547         * modules/safe-read (Makefile.am): Likewise.
58548         * modules/safe-write (Makefile.am): Likewise.
58549         * modules/same-inode (Makefile.am): Likewise.
58550         * modules/same (Makefile.am): Likewise.
58551         * modules/save-cwd (Makefile.am): Likewise.
58552         * modules/savedir (Makefile.am): Likewise.
58553         * modules/setenv (Makefile.am): Likewise.
58554         * modules/settime (Makefile.am): Likewise.
58555         * modules/sha1 (Makefile.am): Likewise.
58556         * modules/sig2str (Makefile.am): Likewise.
58557         * modules/snprintf (Makefile.am): Likewise.
58558         * modules/stat-macros (Makefile.am): Likewise.
58559         * modules/stat-time (Makefile.am): Likewise.
58560         * modules/stdbool (Makefile.am): Likewise.
58561         * modules/stdint (Makefile.am): Likewise.
58562         * modules/stdlib-safer (Makefile.am): Likewise.
58563         * modules/stpcpy (Makefile.am): Likewise.
58564         * modules/stpncpy (Makefile.am): Likewise.
58565         * modules/strcase (Makefile.am): Likewise.
58566         * modules/strcasestr (Makefile.am): Likewise.
58567         * modules/strchrnul (Makefile.am): Likewise.
58568         * modules/strcspn (Makefile.am): Likewise.
58569         * modules/strdup (Makefile.am): Likewise.
58570         * modules/strerror (Makefile.am): Likewise.
58571         * modules/strftime (Makefile.am): Likewise.
58572         * modules/strndup (Makefile.am): Likewise.
58573         * modules/strnlen (Makefile.am): Likewise.
58574         * modules/strpbrk (Makefile.am): Likewise.
58575         * modules/strsep (Makefile.am): Likewise.
58576         * modules/strstr (Makefile.am): Likewise.
58577         * modules/strtod (Makefile.am): Likewise.
58578         * modules/strtoimax (Makefile.am): Likewise.
58579         * modules/strtok_r (Makefile.am): Likewise.
58580         * modules/strtol (Makefile.am): Likewise.
58581         * modules/strtoll (Makefile.am): Likewise.
58582         * modules/strtoul (Makefile.am): Likewise.
58583         * modules/strtoull (Makefile.am): Likewise.
58584         * modules/strtoumax (Makefile.am): Likewise.
58585         * modules/strverscmp (Makefile.am): Likewise.
58586         * modules/sys_socket (Makefile.am): Likewise.
58587         * modules/sys_stat (Makefile.am): Likewise.
58588         * modules/sysexits (Makefile.am): Likewise.
58589         * modules/time_r (Makefile.am): Likewise.
58590         * modules/timegm (Makefile.am): Likewise.
58591         * modules/timespec (Makefile.am): Likewise.
58592         * modules/tmpfile-safer (Makefile.am): Likewise.
58593         * modules/trim (Makefile.am): Likewise.
58594         * modules/unistd-safer (Makefile.am): Likewise.
58595         * modules/unlinkdir (Makefile.am): Likewise.
58596         * modules/unlocked-io (Makefile.am): Likewise.
58597         * modules/userspec (Makefile.am): Likewise.
58598         * modules/utime (Makefile.am): Likewise.
58599         * modules/utimecmp (Makefile.am): Likewise.
58600         * modules/utimens (Makefile.am): Likewise.
58601         * modules/vasnprintf (Makefile.am): Likewise.
58602         * modules/vasprintf (Makefile.am): Likewise.
58603         * modules/vsnprintf (Makefile.am): Likewise.
58604         * modules/xalloc (Makefile.am): Likewise.
58605         * modules/xgetcwd (Makefile.am): Likewise.
58606         * modules/xnanosleep (Makefile.am): Likewise.
58607         * modules/xreadlink (Makefile.am): Likewise.
58608         * modules/xstrtod (Makefile.am): Likewise.
58609         * modules/xstrtol (Makefile.am): Likewise.
58610         * modules/xstrtold (Makefile.am): Likewise.
58611         * modules/yesno (Makefile.am): Likewise.
58612         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58613
58614 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * modules/error (Makefile.am): Distribute files through
58617         EXTRA_DIST, not lib_SOURCES.
58618
58619 2006-10-12  Eric Blake  <ebb9@byu.net>
58620
58621         * modules/error (Makefile.am): Distribute files in /lib.
58622         * modules/obstack (Makefile.am): Likewise.
58623
58624 2006-10-12  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/acl (Makefile.am): Distribute all files in lib/ through
58627         EXTRA_DIST.
58628         * modules/arcfour (Makefile.am): Likewise.
58629         * modules/arctwo (Makefile.am): Likewise.
58630         * modules/argmatch (Makefile.am): Likewise.
58631         * modules/argz (Makefile.am): Likewise.
58632         * modules/atexit (Makefile.am): Likewise.
58633         * modules/backupfile (Makefile.am): Likewise.
58634         * modules/c-strtod (Makefile.am): Likewise.
58635         * modules/c-strtold (Makefile.am): Likewise.
58636         * modules/calloc (Makefile.am): Likewise.
58637         * modules/canon-host (Makefile.am): Likewise.
58638         * modules/canonicalize (Makefile.am): Likewise.
58639         * modules/chdir-long (Makefile.am): Likewise.
58640         * modules/chdir-safer (Makefile.am): Likewise.
58641         * modules/check-version (Makefile.am): Likewise.
58642         * modules/chown (Makefile.am): Likewise.
58643         * modules/cloexec (Makefile.am): Likewise.
58644         * modules/close-stream (Makefile.am): Likewise.
58645         * modules/closeout (Makefile.am): Likewise.
58646         * modules/crc (Makefile.am): Likewise.
58647         * modules/cycle-check (Makefile.am): Likewise.
58648         * modules/des (Makefile.am): Likewise.
58649         * modules/dirfd (Makefile.am): Likewise.
58650         * modules/dirname (Makefile.am): Likewise.
58651         * modules/dup2 (Makefile.am): Likewise.
58652         * modules/euidaccess (Makefile.am): Likewise.
58653         * modules/exclude (Makefile.am): Likewise.
58654         * modules/exitfail (Makefile.am): Likewise.
58655         * modules/fcntl-safer (Makefile.am): Likewise.
58656         * modules/file-type (Makefile.am): Likewise.
58657         * modules/fileblocks (Makefile.am): Likewise.
58658         * modules/filemode (Makefile.am): Likewise.
58659         * modules/filenamecat (Makefile.am): Likewise.
58660         * modules/fnmatch (Makefile.am): Likewise.
58661         * modules/fopen-safer (Makefile.am): Likewise.
58662         * modules/fpending (Makefile.am): Likewise.
58663         * modules/fprintftime (Makefile.am): Likewise.
58664         * modules/free (Makefile.am): Likewise.
58665         * modules/fsusage (Makefile.am): Likewise.
58666         * modules/ftruncate (Makefile.am): Likewise.
58667         * modules/fts (Makefile.am): Likewise.
58668         * modules/gc (Makefile.am): Likewise.
58669         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58670         * modules/getaddrinfo (Makefile.am): Likewise.
58671         * modules/getcwd (Makefile.am): Likewise.
58672         * modules/getdelim (Makefile.am): Likewise.
58673         * modules/getdomainname (Makefile.am): Likewise.
58674         * modules/getgroups (Makefile.am): Likewise.
58675         * modules/gethostname (Makefile.am): Likewise.
58676         * modules/gethrxtime (Makefile.am): Likewise.
58677         * modules/getline (Makefile.am): Likewise.
58678         * modules/getloadavg (Makefile.am): Likewise.
58679         * modules/getlogin_r (Makefile.am): Likewise.
58680         * modules/getopt (Makefile.am): Likewise.
58681         * modules/getpass (Makefile.am): Likewise.
58682         * modules/getpass-gnu (Makefile.am): Likewise.
58683         * modules/getsubopt (Makefile.am): Likewise.
58684         * modules/gettime (Makefile.am): Likewise.
58685         * modules/gettimeofday (Makefile.am): Likewise.
58686         * modules/getugroups (Makefile.am): Likewise.
58687         * modules/getusershell (Makefile.am): Likewise.
58688         * modules/glob (Makefile.am): Likewise.
58689         * modules/group-member (Makefile.am): Likewise.
58690         * modules/hard-locale (Makefile.am): Likewise.
58691         * modules/hash (Makefile.am): Likewise.
58692         * modules/hmac-md5 (Makefile.am): Likewise.
58693         * modules/hmac-sha1 (Makefile.am): Likewise.
58694         * modules/human (Makefile.am): Likewise.
58695         * modules/idcache (Makefile.am): Likewise.
58696         * modules/imaxabs (Makefile.am): Likewise.
58697         * modules/imaxdiv (Makefile.am): Likewise.
58698         * modules/inet_ntop (Makefile.am): Likewise.
58699         * modules/inet_pton (Makefile.am): Likewise.
58700         * modules/inttostr (Makefile.am): Likewise.
58701         * modules/isapipe (Makefile.am): Likewise.
58702         * modules/lchown (Makefile.am): Likewise.
58703         * modules/long-options (Makefile.am): Likewise.
58704         * modules/lstat (Makefile.am): Likewise.
58705         * modules/malloc (Makefile.am): Likewise.
58706         * modules/mathl (Makefile.am): Likewise.
58707         * modules/mbchar (Makefile.am): Likewise.
58708         * modules/md2 (Makefile.am): Likewise.
58709         * modules/md4 (Makefile.am): Likewise.
58710         * modules/md5 (Makefile.am): Likewise.
58711         * modules/memcasecmp (Makefile.am): Likewise.
58712         * modules/memchr (Makefile.am): Likewise.
58713         * modules/memcmp (Makefile.am): Likewise.
58714         * modules/memcoll (Makefile.am): Likewise.
58715         * modules/memcpy (Makefile.am): Likewise.
58716         * modules/memmem (Makefile.am): Likewise.
58717         * modules/memmove (Makefile.am): Likewise.
58718         * modules/mempcpy (Makefile.am): Likewise.
58719         * modules/memrchr (Makefile.am): Likewise.
58720         * modules/memset (Makefile.am): Likewise.
58721         * modules/memxor (Makefile.am): Likewise.
58722         * modules/mkancesdirs (Makefile.am): Likewise.
58723         * modules/mkdir (Makefile.am): Likewise.
58724         * modules/mkdir-p (Makefile.am): Likewise.
58725         * modules/mkdtemp (Makefile.am): Likewise.
58726         * modules/mkstemp (Makefile.am): Likewise.
58727         * modules/mktime (Makefile.am): Likewise.
58728         * modules/modechange (Makefile.am): Likewise.
58729         * modules/mountlist (Makefile.am): Likewise.
58730         * modules/nanosleep (Makefile.am): Likewise.
58731         * modules/openat (Makefile.am): Likewise.
58732         * modules/pagealign_alloc (Makefile.am): Likewise.
58733         * modules/physmem (Makefile.am): Likewise.
58734         * modules/poll (Makefile.am): Likewise.
58735         * modules/posixtm (Makefile.am): Likewise.
58736         * modules/posixver (Makefile.am): Likewise.
58737         * modules/putenv (Makefile.am): Likewise.
58738         * modules/quote (Makefile.am): Likewise.
58739         * modules/quotearg (Makefile.am): Likewise.
58740         * modules/raise (Makefile.am): Likewise.
58741         * modules/read-file (Makefile.am): Likewise.
58742         * modules/readline (Makefile.am): Likewise.
58743         * modules/readlink (Makefile.am): Likewise.
58744         * modules/readtokens (Makefile.am): Likewise.
58745         * modules/readutmp (Makefile.am): Likewise.
58746         * modules/realloc (Makefile.am): Likewise.
58747         * modules/regex (Makefile.am): Likewise.
58748         * modules/rename (Makefile.am): Likewise.
58749         * modules/rename-dest-slash (Makefile.am): Likewise.
58750         * modules/rijndael (Makefile.am): Likewise.
58751         * modules/rmdir (Makefile.am): Likewise.
58752         * modules/rpmatch (Makefile.am): Likewise.
58753         * modules/safe-read (Makefile.am): Likewise.
58754         * modules/safe-write (Makefile.am): Likewise.
58755         * modules/same (Makefile.am): Likewise.
58756         * modules/save-cwd (Makefile.am): Likewise.
58757         * modules/savedir (Makefile.am): Likewise.
58758         * modules/setenv (Makefile.am): Likewise.
58759         * modules/settime (Makefile.am): Likewise.
58760         * modules/sha1 (Makefile.am): Likewise.
58761         * modules/sig2str (Makefile.am): Likewise.
58762         * modules/snprintf (Makefile.am): Likewise.
58763         * modules/stdlib-safer (Makefile.am): Likewise.
58764         * modules/stpcpy (Makefile.am): Likewise.
58765         * modules/stpncpy (Makefile.am): Likewise.
58766         * modules/strcase (Makefile.am): Likewise.
58767         * modules/strcasestr (Makefile.am): Likewise.
58768         * modules/strchrnul (Makefile.am): Likewise.
58769         * modules/strcspn (Makefile.am): Likewise.
58770         * modules/strdup (Makefile.am): Likewise.
58771         * modules/strerror (Makefile.am): Likewise.
58772         * modules/strftime (Makefile.am): Likewise.
58773         * modules/strndup (Makefile.am): Likewise.
58774         * modules/strnlen (Makefile.am): Likewise.
58775         * modules/strpbrk (Makefile.am): Likewise.
58776         * modules/strsep (Makefile.am): Likewise.
58777         * modules/strstr (Makefile.am): Likewise.
58778         * modules/strtod (Makefile.am): Likewise.
58779         * modules/strtoimax (Makefile.am): Likewise.
58780         * modules/strtok_r (Makefile.am): Likewise.
58781         * modules/strtol (Makefile.am): Likewise.
58782         * modules/strtoll (Makefile.am): Likewise.
58783         * modules/strtoul (Makefile.am): Likewise.
58784         * modules/strtoull (Makefile.am): Likewise.
58785         * modules/strtoumax (Makefile.am): Likewise.
58786         * modules/strverscmp (Makefile.am): Likewise.
58787         * modules/time_r (Makefile.am): Likewise.
58788         * modules/timegm (Makefile.am): Likewise.
58789         * modules/tmpfile-safer (Makefile.am): Likewise.
58790         * modules/unistd-safer (Makefile.am): Likewise.
58791         * modules/unlinkdir (Makefile.am): Likewise.
58792         * modules/userspec (Makefile.am): Likewise.
58793         * modules/utime (Makefile.am): Likewise.
58794         * modules/utimecmp (Makefile.am): Likewise.
58795         * modules/utimens (Makefile.am): Likewise.
58796         * modules/vasnprintf (Makefile.am): Likewise.
58797         * modules/vasprintf (Makefile.am): Likewise.
58798         * modules/vsnprintf (Makefile.am): Likewise.
58799         * modules/xalloc (Makefile.am): Likewise.
58800         * modules/xgetcwd (Makefile.am): Likewise.
58801         * modules/xnanosleep (Makefile.am): Likewise.
58802         * modules/xreadlink (Makefile.am): Likewise.
58803         * modules/xstrtod (Makefile.am): Likewise.
58804         * modules/xstrtol (Makefile.am): Likewise.
58805         * modules/xstrtold (Makefile.am): Likewise.
58806         * modules/yesno (Makefile.am): Likewise.
58807
58808 2006-10-12  Jim Meyering  <jim@meyering.net>
58809
58810         * m4/getloadavg.m4: Revert the change below.
58811
58812         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58813         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58814         fail with a symlink, which is what coreutils' ./bootstrap now
58815         creates by default.
58816
58817 2006-10-12  Bruno Haible  <bruno@clisp.org>
58818
58819         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58820         mingw.
58821         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58822         MSVC and mingw explicitly.
58823
58824 2006-10-11  Simon Josefsson  <jas@extundo.com>
58825             Bruno Haible  <bruno@clisp.org>
58826
58827         Add support for multiple gnulib-tool invocations in the scope of a
58828         single configure.ac file.
58829         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58830         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58831         with the same contents as the _LIBADD variable.
58832         (func_emit_initmacro_start, func_emit_initmacro_end,
58833         func_emit_initmacro_done): New functions.
58834         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58835         gl_LIBOBJS and gl_LTLIBOBJS.
58836
58837 2006-10-11  Bruno Haible  <bruno@clisp.org>
58838
58839         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58840         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58841         autoreconf. Instead, invoke autopoint explicitly but move back the
58842         *.m4 files from gnulib.
58843
58844 2006-10-11  Bruno Haible  <bruno@clisp.org>
58845
58846         * gnulib-tool (func_usage): Make module names after --create-testdir
58847         optional.
58848         (func_create_testdir): If no module was specified, use nearly all
58849         modules.
58850
58851 2006-10-12  Jim Meyering  <jim@meyering.net>
58852
58853         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58854         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58855         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58856         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58857         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58858         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58859         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58860         (fts_set_stat_required): New function.
58861         (fts_open): Defer the calls to fts_stat, if possible or requested.
58862         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58863         into fts_stat itself.
58864         (fts_read): Perform any required (deferred) fts_stat call.
58865         (fts_build): Likewise, for the directory we're about to open and read.
58866         In the readdir loop, carefully decide whether each entry will require
58867         an eventual call to fts_stat, using dirent.d_type info if available.
58868         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58869         a command line argument into this function.  Update all callers.
58870         Map a return value of FTS_DOT to FTS_D for a command line argument.
58871         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58872         Thanks to Miklos Szeredi for his tenacity and for the initial
58873         bug report about "find" failing on a FUSE-based file system.
58874
58875         * lib/fts.c (fts_open): Use consistent indentation.
58876
58877 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58878
58879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58880         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58881         reported by Jim Meyering.  All uses of cache variables renamed
58882         to match Autoconf's.
58883         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58884         the other one.
58885
58886         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58887         Fix misspelling in diagnostic.
58888
58889 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58890
58891         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58892         defined.  Problem reported by Matthew Woehlke.
58893
58894         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58895         Add support for Tandem NonStop R series.
58896         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58897         Use new macro.
58898
58899         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58900         (has_trailing_slash): Omit size arg; all callers changed.
58901         Omit 'inline', since it doesn't help performance and we'd
58902         need to configure it.
58903         Don't count //, ///, etc. as having a trailing slash.
58904         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58905         (rpl_rename_dest_slash): On failure, use rename's errno rather
58906         than (in some cases) an incorrect or junk errno.
58907         Simplify code by removing need to compute length; this does
58908         cause it to make two passes instead of one over the file name,
58909         but it's worth it.
58910
58911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58912         change, since Autoconf's version may no longer be appropriate now
58913         that we are using CVS Autoconf's version.  Add support for Tandem.
58914
58915 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58916             Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58919         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58920         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58921         gl_AC_TYPE_LONG_LONG.
58922
58923         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58924         instead of HAVE_LONG_LONG.
58925         * lib/printf-args.c (printf_fetchargs): Likewise.
58926         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58927         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58928         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58929         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58930         gl_AC_TYPE_LONG_LONG.
58931
58932 2006-10-11  Bruno Haible  <bruno@clisp.org>
58933
58934         * m4/longlong.m4: Add comments.
58935         * m4/ulonglong.m4: Likewise.
58936
58937 2006-10-10  Bruno Haible  <bruno@clisp.org>
58938
58939         Make it possible to #define stpcpy, strdup to aliases.
58940         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58941         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58942
58943 2006-10-10  Bruno Haible  <bruno@clisp.org>
58944
58945         Make it possible to #define gcd to an alias.
58946         * lib/gcd.c: Include config.h.
58947
58948 2006-10-10  Bruno Haible  <bruno@clisp.org>
58949
58950         Make it possible to #define c_isascii to an alias.
58951         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58952         defined. Undefine the macros before defining them, to avoid gcc
58953         warnings.
58954         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58955         define NO_C_CTYPE_MACROS early.
58956
58957 2006-10-10  Bruno Haible  <bruno@clisp.org>
58958
58959         Make it possible to #define set_program_name to an alias.
58960         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58961         ENABLE_RELOCATABLE early.
58962
58963 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58966         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58967         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58968         More generally, don't assume that 64-bit signed int is available
58969         if unsigned int is, and vice versa.
58970         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58971         unsigned symbols, not on their signed counterparts.
58972         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58973         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58974         (UINT64_C, UINTMAX_C):
58975         Likewise.
58976         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58977         unsigned counterparts.
58978         (Have_long_long, Unsigned): New macros.
58979         (Int): Renamed from INT.
58980         (strtoimax): Use the new macros.
58981         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58982         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58983         * modules/inttypes (inttypes.h): Substitute
58984         HAVE_UNSIGNED_LONG_LONG_INT.
58985         * modules/stdint (stdint.h): Likewise.
58986         (Files): Add m4/ulonglong.m4.
58987
58988 2006-10-10  Bruno Haible  <bruno@clisp.org>
58989
58990         Fix a gcc -Wshadow warning.
58991         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58992         to 'bucket'.
58993         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58994         gl_linked_indexof_from_to): Likewise.
58995         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58996         Likewise.
58997         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58998         Likewise.
58999         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
59000         Reported by Eric Blake.
59001
59002 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
59003
59004         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
59005         for NetBSD.  Problem reported by Bruno Haible.
59006
59007 2006-10-09  Jim Meyering  <jim@meyering.net>
59008
59009         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
59010         Patch from Bruno Haible.
59011
59012 2006-10-09  Jim Meyering  <jim@meyering.net>
59013
59014         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
59015         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
59016         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
59017
59018 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59019
59020         Don't include <config.h> twice; this doesn't work in some cases,
59021         e.g., when config.h has "#define intmax_t long long int" and
59022         we include <config.h>, <inttypes.h>, <config.h> in that order.
59023         Problem reported by Matthew Woehlke in:
59024         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
59025         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
59026         * lib/fts-cycle.c: Don't include config.h.
59027         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
59028         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
59029         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
59030         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
59031         inttypes.h.
59032         * lib/xstrtoumax.c: Likewise.
59033         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
59034         __strtol and the like, so that this module is more like its siblings.
59035         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
59036         Remove; no longer needed now that we assume gnulib inttypes.h.
59037
59038 2006-10-08  Bruno Haible  <bruno@clisp.org>
59039
59040         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
59041         option.
59042
59043 2006-10-07  Jim Meyering  <jim@meyering.net>
59044
59045         * modules/inttypes (inttypes.h): Revert what seems to have been
59046         an inadvertent part of today's change: use "|", not "/" in the
59047         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
59048
59049 2006-10-07  Bruno Haible  <bruno@clisp.org>
59050
59051         * modules/sublist: New file.
59052
59053 2006-10-07  Bruno Haible  <bruno@clisp.org>
59054
59055         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
59056         * modules/argz (argz.h): Likewise.
59057         * modules/arpa_inet (arpa/inet.h): Likewise.
59058         * modules/byteswap (byteswap.h): Likewise.
59059         * modules/configmake (configmake.h): Likewise.
59060         * modules/fcntl (fcntl.h): Likewise.
59061         * modules/fnmatch (fnmatch.h): Likewise.
59062         * modules/getopt (getopt.h): Likewise.
59063         * modules/glob (glob.h): Likewise.
59064         * modules/inttypes (inttypes.h): Likewise.
59065         * modules/netinet_in (netinet/in.h): Likewise.
59066         * modules/poll (poll.h): Likewise.
59067         * modules/stdbool (stdbool.h): Likewise.
59068         * modules/stdint (stdint.h): Likewise.
59069         * modules/sys_select (sys/select.h): Likewise.
59070         * modules/sys_socket (sys/socket.h): Likewise.
59071         * modules/sys_stat (sys/stat.h): Likewise.
59072         * modules/sysexits (sysexits.h): Likewise.
59073         * modules/unistd (unistd.h): Likewise.
59074         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59075         Add a "DO NOT EDIT" comment to the generated file.
59076         (func_import): Likewise for gnulib-comp.m4.
59077
59078 2006-10-07  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/gl_sublist.h: New file.
59081         * lib/gl_sublist.c: New file.
59082
59083 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
59086         name (relative to the original working directory) and the file
59087         name component (relative to the temporary working directory).  All
59088         callers changed.
59089         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
59090         * lib/mkdir-p.c (make_dir_parents): Likewise.
59091         * lib/mkdir-p.h (make_dir_parents): Likewise.
59092
59093 2006-10-06  Eric Blake  <ebb9@byu.net>
59094
59095         Define several macros for use by the clean-temp module.
59096         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
59097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
59098         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
59099
59100         * lib/clean-temp.h (close_stream_temp): New declaration.
59101         * lib/clean-temp.c (includes): Pull in headers according to what
59102         other modules are in use.
59103         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
59104
59105 2006-10-06  Bruno Haible  <bruno@clisp.org>
59106
59107         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
59108         instead of fopen, fwriteerror.
59109
59110 2006-10-06  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
59113         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
59114         int.
59115         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
59116         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
59117         Return an error indicator.
59118         Suggested by Eric Blake.
59119
59120 2006-10-06  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
59123         Reported by Eric Blake.
59124
59125 2006-10-06  Bruno Haible  <bruno@clisp.org>
59126
59127         * modules/closeout (Description): Mention stderr too.
59128
59129 2006-10-06  Bruno Haible  <bruno@clisp.org>
59130         and Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * lib/closeout.c (close_stdout): Also close stderr.
59133         * lib/closeout.h: Update comment.
59134
59135 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
59136
59137         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
59138         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
59139         * lib/dirchownmod.c: Include lchown.h.
59140         * lib/lchown.c: Don't include files that lchown.h now includes.
59141         Don't declare chown, since lchown.h now does that.
59142         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
59143         (lchown): Define to rpl_chown if lchown is declared but
59144         does not exist.  Declare using a prototype if lchown is not
59145         declared.  Add a copyright notice.
59146         * lib/mkstemp.h: Include <unistd.h>.
59147         * lib/openat.c: Include lchown.h.
59148
59149         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
59150         we now test for that separately.
59151         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
59152         rather than O_NOFOLLOW, when testing whether it's possible to
59153         avoid a race condition reliably.
59154         * lib/savewd.c (savewd_chdir): Likewise.
59155
59156         Remove macros that are no longer needed now that stdint.h is
59157         reliable.
59158         * lib/fsusage.c (UINTMAX_MAX): Remove.
59159         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
59160         * lib/utimecmp.c (SIZE_MAX): Remove.
59161
59162         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
59163
59164         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
59165         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
59166         O_NOATIME works.
59167
59168 2006-10-05  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/gl_list.h (gl_sortedlist_search_from_to,
59171         gl_sortedlist_indexof_from_to): New declarations.
59172         (gl_list_implementation): New fields sortedlist_search_from_to,
59173         sortedlist_indexof_from_to.
59174         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
59175         inline functions.
59176         * lib/gl_list.c (gl_sortedlist_search_from_to,
59177         gl_sortedlist_indexof_from_to): New functions.
59178         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
59179         function.
59180         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
59181         (gl_array_sortedlist_search_from_to): New function.
59182         (gl_array_list_implementation): Update.
59183         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
59184         function.
59185         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
59186         (gl_carray_sortedlist_search_from_to): New function.
59187         (gl_carray_list_implementation): Update.
59188         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
59189         gl_linked_sortedlist_indexof_from_to): New functions.
59190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59192         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
59193         gl_tree_sortedlist_indexof_from_to): New functions.
59194         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59195         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59196         Update.
59197         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59198         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
59199         Update.
59200
59201 2006-10-05  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
59204         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
59205         (struct gl_list_implementation): Add fields search_from_to,
59206         indexof_from_to. Remove fields search, indexof.
59207         (gl_list_search): Use the search_from_to method.
59208         (gl_list_search_from, gl_list_search_from_to): New functions.
59209         (gl_list_indexof): Use the indexof_from_to method.
59210         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59211         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
59212         (gl_list_search_from, gl_list_search_from_to): New functions.
59213         (gl_list_indexof): Use the indexof_from_to method.
59214         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
59215         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
59216         gl_array_indexof. Add start_index, end_index arguments.
59217         (gl_array_search_from_to): Renamed from gl_array_search. Add
59218         start_index, end_index arguments.
59219         (gl_array_remove, gl_array_list_implementation): Update.
59220         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
59221         gl_carray_indexof. Add start_index, end_index arguments.
59222         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
59223         start_index, end_index arguments.
59224         (gl_carray_remove, gl_carray_list_implementation): Update.
59225         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
59226         gl_linked_search. Add start_index, end_index arguments.
59227         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
59228         start_index, end_index arguments.
59229         (gl_linked_remove): Update.
59230         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59231         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59232         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
59233         field to 'size_t'.
59234         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
59235         gl_tree_search. Add start_index, end_index arguments.
59236         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59237         start_index, end_index arguments.
59238         (gl_tree_remove): Update.
59239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59241         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
59242         function.
59243         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
59244         gl_tree_search. Add start_index, end_index arguments.
59245         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
59246         start_index, end_index arguments.
59247         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59248         Update.
59249         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59250
59251 2006-10-05  Bruno Haible  <bruno@clisp.org>
59252
59253         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
59254
59255         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
59256         fwriteerror_temp): New declarations.
59257         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
59258         (descriptors): New variable.
59259         (cleanup): First, close the descriptors.
59260         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
59261         fclose_temp, fwriteerror_temp): New functions.
59262
59263 2006-10-04  Jim Meyering  <jim@meyering.net>
59264
59265         * lib/fts.c (fts_open): Tiny comment change.
59266
59267 2006-10-04  Bruno Haible  <bruno@clisp.org>
59268
59269         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
59270         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
59271         gl_LOCK_BODY.
59272         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
59273         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
59274         gl_LOCK_EARLY_BODY.
59275         (gl_LOCK): Require gl_LOCK_BODY.
59276
59277 2006-10-04  Bruno Haible  <bruno@clisp.org>
59278
59279         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
59280         (gl_oset_search_atleast): New declaration.
59281         (struct gl_oset_implementation): Add field 'search_atleast'.
59282         (gl_oset_search_atleast): New inline function.
59283         * lib/gl_oset.c (gl_oset_search_atleast): New function.
59284         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
59285         (gl_array_oset_implementation): Update.
59286         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
59287         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
59288         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
59289
59290 2006-10-04  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
59293
59294 2006-10-03  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
59297         from gl_avltreehash_list_implementation.
59298
59299 2006-10-03  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/gl_oset.c (gl_oset_add): Fix return type.
59302
59303 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
59304
59305         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
59306
59307 2006-10-02  Eric Blake  <ebb9@byu.net>
59308
59309         * modules/strnlen (Depends-on): Add extensions.
59310
59311 2006-10-02  Eric Blake  <ebb9@byu.net>
59312
59313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
59314         definition in 2.60+.
59315
59316 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
59317
59318         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
59319         checks.
59320
59321 2006-10-02  Bruno Haible  <bruno@clisp.org>
59322
59323         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
59324         to the AUTOMAKE_OPTIONS.
59325         Reported by Jim Meyering.
59326
59327 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
59328
59329         Work around bug in Solaris 10 /proc file system:
59330         /proc/self/fd/NNN/.. isn't the parent directory of
59331         the directory whose file descriptor is NNN.  This needs to
59332         be worked around at run time, not compile time, since a
59333         program might be built on Solaris 8, where things work, and
59334         run on Solaris 10.
59335         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59336         to use the following interface instead:
59337         (OPENAT_BUFFER_SIZE): New macro.
59338         (openat_proc_name): New function.
59339         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59340         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59341         Likewise.
59342         * lib/openat-proc.c: New file.
59343         * modules/openat (Files): Add lib/openat-proc.c.
59344         (Depends-on): Add same-inode, stdbool.
59345         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59346
59347 2006-09-29  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59350         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59351         argument. Set stdout_closed before testing for ferror, not after.
59352         (fwriteerror, fwriteerror_no_ebadf): New functions.
59353
59354 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59355
59356         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59357
59358 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59359
59360         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59361         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59362
59363 2006-09-28  Jim Meyering  <jim@meyering.net>
59364
59365         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59366         Include <unistd.h>.
59367
59368 2006-09-28  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59371         * modules/linkedhash-list (Depends-on): Likewise.
59372         * modules/rbtreehash-list (Depends-on): Likewise.
59373
59374 2006-09-28  Bruno Haible  <bruno@clisp.org>
59375
59376         * lib/strndup.h: Simplify the redefinition of strndup.
59377         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59379
59380 2006-09-28  Bruno Haible  <bruno@clisp.org>
59381
59382         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59383         * lib/gl_linkedhash_list.c: Likewise.
59384         * lib/gl_rbtreehash_list.c: Likewise.
59385
59386 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59389         getaddrinfo.
59390
59391         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59392         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59393         it causes <stdio_ext.h> to cause a compile-time error.
59394         Problem reported by Nelson H. F. Beebe.
59395         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59396         of HAVE_DECL___PENDING.
59397
59398         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59400         declaration.
59401
59402 2006-09-27  Jim Meyering  <jim@meyering.net>
59403
59404         This file could end up with a definition for a function
59405         named __strndup, rather than rpl_strndup on a system with
59406         incomplete weak_alias support.
59407         * lib/strndup.c (strndup): Rename from __strndup.
59408         Remove #defines that used to map __strndup to strndup.
59409         Don't use K&R prototypes.
59410         Remove LIBC-related code, since this file is not sync'd with glibc.
59411         * lib/strndup.h: Revamp, accordingly.
59412         * m4/strndup.m4: Modernize.
59413
59414 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * modules/savewd (Depends-on): Add 'raise'.
59417         * lib/savewd.c: Include <signal.h>, for 'raise'.
59418
59419 2006-09-26  Jim Meyering  <jim@meyering.net>
59420
59421         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59422         when we detect Darwin 8.7.0's acl_get_file bug.
59423         Rearrange to perform the new (below) run-test while $LIBS
59424         contains any acl-related library.  Set USE_ACL at the end.
59425         (gl_ACL_GET_FILE): New function.
59426
59427 2006-09-26  Eric Blake  <ebb9@byu.net>
59428
59429         * lib/verror.c: Include <config.h> unconditionally.
59430
59431 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59432
59433         * modules/clock-time (Maintainer): Add self.
59434         * modules/getlogin_r (Depends-on): Add extensions.
59435
59436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59437
59438         * modules/clock-time: New module.
59439         * modules/nanosleep (Depends-on): Add clock-time.
59440         * modules/gethrxtime (Depends-on): Likewise.
59441         * modules/gettime (Depends-on): Likewise.
59442         * modules/settime (Depends-on): Likewise.
59443
59444         * modules/fts-lgpl: Depend on openat.
59445         * modules/mkancesdirs: Depend on savewd.
59446         * modules/mkdir-p: Likewise.
59447
59448 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59449
59450         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59451
59452         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59453         `gl_have_arbitrary_file_name_length_limit' to
59454         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59455         actually works between configure runs.
59456
59457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59458             Bruno Haible  <bruno@clisp.org>
59459
59460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59461
59462 2006-09-25  Jim Meyering  <jim@meyering.net>
59463
59464         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59465         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59466
59467 2006-09-25  Eric Blake  <ebb9@byu.net>
59468
59469         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59470         exec's in 2006-09-18 patch when shuffling fds.
59471
59472 2006-09-25  Bruno Haible  <bruno@clisp.org>
59473
59474         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59475         Reported by Jim Meyering.
59476
59477 2006-09-24  Jim Meyering  <jim@meyering.net>
59478
59479         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59480         compare a pointer against a literal "0".  That caused failures with
59481         at least HP-UX's hpcc.
59482
59483 2006-09-22  Simon Josefsson  <jas@extundo.com>
59484
59485         * modules/gc-sha1:
59486         * modules/gc-md4:
59487         * modules/gc-hmac-sha1:
59488         * modules/gc-hmac-md5:
59489         * modules/gc-des:
59490         * modules/gc-arcfour: Distribute more files.
59491
59492 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59493
59494         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59495         (gl_linked_iterator_from_to): Initialize struct completely.
59496         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59497         (gl_tree_iterator_from_to): Likewise
59498         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59499         * lib/gl_array_list.c [lint] (gl_array_iterator)
59500         (gl_array_iterator_from_to): Likewise.
59501         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59502         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59503         (gl_carray_iterator_from_to): Likewise.
59504
59505         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59506         * lib/md4.c (md4_process_block): Remove unused variable.
59507         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59508         parentheses for clarity.
59509
59510 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59511
59512         * modules/bison-i18n (Depends-on): Add gettext.
59513
59514 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59515
59516         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59517         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59518         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59519         also add missing comma that caused broken test.
59520         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59521         stdlib.h, for `abort'.
59522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59523         variables.
59524         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59525         include unistd.h if present, for `rmdir'.
59526         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59527         variables.
59528         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59529         in the process include standard headers for prototypes.
59530         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59531         gets declared on GNU/Linux.
59532         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59533         unistd.h, for `rmdir'.
59534         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59535
59536         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59537         always true.
59538         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59539
59540         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59541
59542 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59543
59544         * gnulib-tool (func_version): Create output all at once.  This
59545         may help avoid triggering unnecessary SIGPIPEs, and at any
59546         rate it doesn't hurt.
59547
59548 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59549             Bruno Haible  <bruno@clisp.org>
59550
59551         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59552         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59553         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59554
59555         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59556         (gl_FUNC_VASPRINTF): Invoke it.
59557
59558 2006-09-22  Bruno Haible  <bruno@clisp.org>
59559
59560         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59561         getloadavg.c as first argument.
59562
59563 2006-09-22  Bruno Haible  <bruno@clisp.org>
59564
59565         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59566         at the beginning of the gl_INIT macro.
59567         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59568         gl_GETLOADAVG.
59569
59570 2006-09-22  Bruno Haible  <bruno@clisp.org>
59571
59572         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59573         module.
59574         Suggested by Ralf Wildenhues.
59575
59576 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59577
59578         Import this patch from libc:
59579
59580         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59581
59582         * lib/regex_internal.c (re_string_reconstruct): Handle
59583         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59584         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59585         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59586         re_string_context_at.
59587
59588         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59589         now requires it.
59590         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59591         gl_REGEX now does it for us.
59592         (gl_REGEX): Add test taken from
59593         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59594
59595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59596         Check that large offsets work.  Modernize Autoconf usages.
59597         Prefer "yes" to mean a good thing rather than a bad.
59598         Don't put "#define mkstemp" in config.h, as this might interfere
59599         with standard system headers that "#define mkstemp mkstemp64".
59600
59601         * modules/mkstemp (Depends-on): Add extensions, so that
59602         mkstemp is visible on some platforms.
59603         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59604         (Include): Change to "mkstemp.h" from <stdlib.h>.
59605         (Files): Add mkstemp.h.
59606
59607         * lib/mkstemp.h: New file, since some standard headers
59608         #define mkstemp.
59609         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59610         Include "mkstemp.h".
59611         Make the _LIBC code resemble glibc original more,
59612         e.g., use K&R style.
59613         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59614         (mkstemp): Remove, since mkstemp.h does this for us.
59615         * lib/stdlib--.h: Include mkstemp.h.
59616
59617         Import this patch from libc:
59618
59619         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59620
59621         * lib/tempname.c (__gen_tempname): Change attempts_min
59622         into a macro.  Use preprocessor to decide how to initialize
59623         attempts [Coverity CID 67].
59624
59625 2006-09-20  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/mkdtemp.c: Import from libc.
59628         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59629                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59630                 attempts_min into a macro.  Use preprocessor to decide how to
59631                 initialize attempts [Coverity CID 67].
59632         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59633                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59634                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59635
59636 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59637
59638         * gnulib-tool (func_exit): New function, to allow to pass the
59639         exit status portably through the trap.  Use everywhere.
59640         (--help, --version): Signal a write error.
59641         (trap): catch SIGPIPE, for write errors.
59642         Exit at the end of the trap, with the correct exit status.
59643
59644 2006-09-19  Karl Berry  <karl@gnu.org>
59645
59646         * doc/gnulib.texi: note about the license texinfo files.
59647
59648 2006-09-19  Eric Blake  <ebb9@byu.net>
59649
59650         * gnulib-tool: Avoid space-tab.
59651
59652 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59655         that prevented coreutils 6.1 from building.  Problem reported
59656         by Petter Reinholdtsen.
59657
59658 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * gnulib-tool (avoidlist): Fix typo that broke options like
59661         --avoid=lock that are used by coreutils bootstrap.
59662
59663 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59664
59665         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59666         more systematically.
59667
59668 2006-09-18  Jim Meyering  <jim@meyering.net>
59669
59670         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59671
59672 2006-09-18  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59675
59676 2006-09-18  Bruno Haible  <bruno@clisp.org>
59677
59678         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59679         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59680         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59681         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59682         * m4/gettext.m4: Require autoconf >= 2.52.
59683         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59684         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59685         of gl_cv_header_inttypes_h.
59686
59687 2006-09-18  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/javaversion.c: Include configmake.h.
59690
59691 2006-09-18  Bruno Haible  <bruno@clisp.org>
59692
59693         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59694         avoid that the while loops be executed in a subshell.
59695
59696 2006-09-18  Bruno Haible  <bruno@clisp.org>
59697
59698         * MODULES.html.sh (func_module): Break long lines.
59699         Suggested by Bruce Korb <bkorb@gnu.org>.
59700
59701 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59702
59703         Speed up by a factor of 1.12.
59704         * gnulib-tool (nl): New variable.
59705         (func_import): Rewrite include directive extraction to only read each
59706         directive once.
59707
59708 2006-09-17  Bruno Haible  <bruno@clisp.org>
59709
59710         * modules/javaversion (Makefile.am): Remove DEFS setting.
59711         (Depends-on): Add configmake, for PKGDATADIR definition.
59712
59713 2006-09-17  Bruno Haible  <bruno@clisp.org>
59714
59715         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59716
59717 2006-09-17  Bruno Haible  <bruno@clisp.org>
59718
59719         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59720         (func_modules_transitive_closure, func_modules_add_dummy,
59721         func_modules_to_filelist, func_import, func_create_testdir,
59722         func_create_megatestdir, ...): Use it wherever possible.
59723         Suggested by Ralf Wildenhues.
59724
59725 2006-09-16  Karl Berry  <karl@gnu.org>
59726
59727         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59728         to avoid sectioning errors.
59729         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59730         [ifinfo]: blank line after @center-ed titles.
59731         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59732         Spell FSF address consistently with others.
59733         (These changes approved by rms.)
59734
59735 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59736
59737         Speed up by a factor of 1.61.
59738         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59739         already checked module names again.
59740
59741 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59742
59743         Speed up by a factor of 1.13.
59744         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59745         for new_files, and the input to func_add_or_update.
59746
59747 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59748
59749         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59750         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59751
59752 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * modules/mkancesdirs (Depends-on): Add fcntl.
59755         * modules/savewd: New file.
59756         * MODULES.html.sh (File system functions): Add savewd.
59757
59758         * modules/configmake (Makefile.am): Add support for the
59759         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59760
59761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59762
59763         * m4/savewd.m4: New file.
59764
59765 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59766
59767         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59768         (dirchownmod): New arg FD.  All callers changed.
59769         Use FD rather than opening the directory ourself, as opening is
59770         now the caller's responsibility.
59771         * lib/dirchownmod.h: Likewise.
59772         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59773         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59774         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59775         (test_dir): Remove.
59776         (mkancesdirs): Return length of prefix of FILE that has already
59777         been made, or -2 if there is a child doing the work.  Redo
59778         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59779         ".", and treat ".." specially since it might stray back into
59780         already-created areas.  Use a subprocess if necessary.  New arg
59781         WD; all users changed.  MAKE_DIR function should now return 1
59782         if it creates a directory that is not readable.  Return -2 if
59783         a child process is spun off.
59784         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59785         Adjust signature to match code.
59786         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59787         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59788         all users changed.
59789         * lib/savewd.c, lib/savewd.h: New files.
59790
59791 2006-09-15  Jim Meyering  <jim@meyering.net>
59792
59793         * modules/rename-dest-slash: New module.
59794         * MODULES.html.sh (posix_compat): Add it here.
59795
59796         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59797
59798 2006-09-15  Jim Meyering  <jim@meyering.net>
59799
59800         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59801         file.
59802
59803         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59804
59805 2006-09-15  Jim Meyering  <jim@meyering.net>
59806
59807         * lib/rename-dest-slash.c (has_trailing_slash): Use
59808         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59809         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59810         test before testing whether SRC is a directory.
59811         Suggestions from Bruno Haible.
59812
59813         Avoid a warning about an unused variable.
59814         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59815         into the #ifdef block where it's used.
59816
59817         * lib/rename-dest-slash.c: New file.
59818
59819 2006-09-14  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/allocsa.c: Include <config.h> unconditionally.
59822         * lib/asnprintf.c: Likewise.
59823         * lib/asprintf.c: Likewise.
59824         * lib/c-strcasecmp.c: Likewise.
59825         * lib/c-strcasestr.c: Likewise.
59826         * lib/c-strncasecmp.c: Likewise.
59827         * lib/c-strstr.c: Likewise.
59828         * lib/classpath.c: Likewise.
59829         * lib/clean-temp.c: Likewise.
59830         * lib/concatpath.c: Likewise.
59831         * lib/copy-file.c: Likewise.
59832         * lib/csharpcomp.c: Likewise.
59833         * lib/csharpexec.c: Likewise.
59834         * lib/execute.c: Likewise.
59835         * lib/fatal-signal.c: Likewise.
59836         * lib/findprog.c: Likewise.
59837         * lib/fwriteerror.c: Likewise.
59838         * lib/gl_array_list.c: Likewise.
59839         * lib/gl_array_oset.c: Likewise.
59840         * lib/gl_avltree_list.c: Likewise.
59841         * lib/gl_avltree_oset.c: Likewise.
59842         * lib/gl_avltreehash_list.c: Likewise.
59843         * lib/gl_carray_list.c: Likewise.
59844         * lib/gl_linked_list.c: Likewise.
59845         * lib/gl_linkedhash_list.c: Likewise.
59846         * lib/gl_list.c: Likewise.
59847         * lib/gl_oset.c: Likewise.
59848         * lib/gl_rbtree_list.c: Likewise.
59849         * lib/gl_rbtree_oset.c: Likewise.
59850         * lib/gl_rbtreehash_list.c: Likewise.
59851         * lib/imaxabs.c: Likewise.
59852         * lib/imaxdiv.c: Likewise.
59853         * lib/javacomp.c: Likewise.
59854         * lib/javaexec.c: Likewise.
59855         * lib/javaversion.c: Likewise.
59856         * lib/linebreak.c: Likewise.
59857         * lib/localcharset.c: Likewise.
59858         * lib/lock.c: Likewise.
59859         * lib/mbchar.c: Likewise.
59860         * lib/mbswidth.c: Likewise.
59861         * lib/mkdtemp.c: Likewise.
59862         * lib/pipe.c: Likewise.
59863         * lib/printf-args.c: Likewise.
59864         * lib/printf-parse.c: Likewise.
59865         * lib/progname.c: Likewise.
59866         * lib/progreloc.c: Likewise.
59867         * lib/readlink.c: Likewise.
59868         * lib/sh-quote.c: Likewise.
59869         * lib/stpcpy.c: Likewise.
59870         * lib/stpncpy.c: Likewise.
59871         * lib/strcasecmp.c: Likewise.
59872         * lib/strcasestr.c: Likewise.
59873         * lib/strcspn.c: Likewise.
59874         * lib/striconv.c: Likewise.
59875         * lib/strncasecmp.c: Likewise.
59876         * lib/strnlen1.c: Likewise.
59877         * lib/strstr.c: Likewise.
59878         * lib/strtok_r.c: Likewise.
59879         * lib/tls.c: Likewise.
59880         * lib/tmpdir.c: Likewise.
59881         * lib/unicodeio.c: Likewise.
59882         * lib/unsetenv.c: Likewise.
59883         * lib/vasnprintf.c: Likewise.
59884         * lib/vasprintf.c: Likewise.
59885         * lib/wait-process.c: Likewise.
59886         * lib/xallocsa.c: Likewise.
59887         * lib/xsetenv.c: Likewise.
59888         * lib/xstriconv.c: Likewise.
59889
59890 2006-09-13  Simon Josefsson  <jas@extundo.com>
59891
59892         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59893         that internally, suggested by Ralf Wildenhues
59894         <Ralf.Wildenhues@gmx.de>.
59895
59896 2006-09-13  Simon Josefsson  <jas@extundo.com>
59897
59898         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59899         @LIBOBJS@.
59900         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59901
59902 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59903
59904         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59905         longer worry about uses that don't define HAVE_CONFIG_H.
59906         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59907         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59908         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59909         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59910         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59911         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59912         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59913         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59914         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59915         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59916         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59917         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59918         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59919         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59920         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59921         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59922         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59923         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59924         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59925         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59926         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59927         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59928         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59929         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59930         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59931         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59932         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59933         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59934         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59935         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59936         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59937         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59938         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59939         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59940         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59941         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59942         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59943         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59944         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59945         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59946         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59947         Likewise.
59948
59949 2006-09-13  Eric Blake  <ebb9@byu.net>
59950
59951         * lib/getopt.c: Fix typo in last commit.
59952
59953 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59954
59955         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59956         dgettext.
59957
59958 2006-09-12  Jim Meyering  <jim@meyering.net>
59959
59960         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59961         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59962         Reported by Nelson H. F. Beebe.
59963
59964 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59965
59966         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59967         program_invocation_name and program_invocation_short_name are
59968         initialized.
59969         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59970         and program_invocation_short_name to argp.h, so they are visible
59971         to user programs.
59972         * lib/argp.h: Likewise
59973
59974 2006-09-10  Bruno Haible  <bruno@clisp.org>
59975
59976         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59977         m4/inttypes_h.m4, m4/uintmax_t.m4.
59978
59979 2006-09-10  Bruno Haible  <bruno@clisp.org>
59980
59981         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59982         gl_AC_TYPE_UINTMAX_T.
59983
59984 2006-09-10  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59987
59988 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59989
59990         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59991         convention.  Text proposed by Bruno Haible.
59992         (struct argp_option): Document the use of N_() wrappers.
59993
59994         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59995         '\v', and translate the two parts separately, instead of feeding
59996         the whole string to gettext.  This allows to exclude
59997         '\v' from the strings visible to the translator by writing doc
59998         strings as N_("..") "\v" N_("..").
59999
60000 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * config/srclist.txt: Undo latest change; the bug was fixed.
60003
60004 2006-09-09  Bruno Haible  <bruno@clisp.org>
60005
60006         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
60007         assignments if building a library without libtool.
60008         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
60009         in func_emit_lib_Makefile_am.
60010         (func_import): When building a static library libfoo.a, arrange to
60011         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
60012         (func_create_testdir): Likewise.
60013         * modules/gc (configure.ac, Makefile.am): If building statically,
60014         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
60015         * modules/iconvme (configure.ac, Makefile.am): Likewise.
60016         * modules/striconv (configure.ac, Makefile.am): Likewise.
60017         Based on a suggestion by Ralf Wildenhues.
60018
60019 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60020
60021         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
60022         Check for unistd.h too, since Autoconf doesn't assume POSIX.
60023         Also:
60024
60025         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60026         Add year_2050_test to catch glibc bug 2821
60027         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60028
60029         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60030         Prefer #ifdef to #if.
60031
60032         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
60033         Return from 'main' instead of calling 'exit'.
60034
60035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * lib/mktime.c (guess_time_tm): Fix bug where mktime
60038         returned the maximum time_t value rather than (time_t) -1.
60039         Problem originally reported by William Bardwell
60040         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
60041
60042         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60043         Moved to here ...
60044         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
60045         ... from here.
60046
60047 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
60050         2821 is fixed.
60051
60052 2006-09-08  Jim Meyering  <jim@meyering.net>
60053
60054         Don't make generated files read-only.  That would bother too many
60055         people.  However, do retain the ability to work when targets are
60056         read-only: remove the destination and temporary files before writing
60057         them (when generated via sed or echo), or by using the -f option for
60058         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
60059         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60060         * modules/byteswap, modules/configmake, modules/fcntl:
60061         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60062         * modules/localcharset, modules/netinet_in, modules/poll:
60063         * modules/stdbool, modules/stdint, modules/sys_select:
60064         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60065
60066 2006-09-08  Jim Meyering  <jim@meyering.net>
60067
60068         Avoid new build failure on FreeBSD 6.0.
60069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
60070         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
60071         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
60072
60073 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60074
60075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
60076
60077 2006-09-07  Jim Meyering  <jim@meyering.net>
60078
60079         Fix global typo in last change: use chmod u-w, not chmod u-x.
60080         Spotted by Paul Eggert and Bruce Korb.
60081         * modules/alloca-opt, modules/argz, modules/arpa_inet:
60082         * modules/byteswap, modules/configmake, modules/fcntl:
60083         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
60084         * modules/localcharset, modules/netinet_in, modules/poll:
60085         * modules/stdbool, modules/stdint, modules/sys_select:
60086         * modules/sys_socket, modules/sys_stat, modules/sysexits:
60087
60088 2006-09-06  Jim Meyering  <jim@meyering.net>
60089
60090         Make generated files be read-only.
60091         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
60092         Ensure that each generated file is now read-only.
60093         * modules/argz: Likewise.
60094         * modules/arpa_inet: Likewise.
60095         * modules/byteswap: Likewise.
60096         * modules/configmake: Likewise.
60097         * modules/fcntl: Likewise.
60098         * modules/fnmatch: Likewise.
60099         * modules/getopt: Likewise.
60100         * modules/glob: Likewise.
60101         * modules/inttypes: Likewise.
60102         * modules/netinet_in: Likewise.
60103         * modules/poll: Likewise.
60104         * modules/stdbool: Likewise.
60105         * modules/stdint: Likewise.
60106         * modules/sys_select: Likewise.
60107         * modules/sys_socket: Likewise.
60108         * modules/sys_stat: Likewise.
60109         * modules/sysexits: Likewise.
60110         * modules/localcharset: Same as above, but continue using temporary
60111         file named "t-$@" (why different?) rather than the "$@-t" used
60112         everywhere else.
60113
60114         * modules/sysexits (Makefile.am): Replace literal occurrences
60115         of "sysexit.h" more readable, and more consistent, "$@".
60116
60117 2006-09-06  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/striconv: New file.
60120         * modules/xstriconv: New file.
60121         * MODULES.html.sh (Internationalization functions): Add striconv,
60122         xstriconv.
60123
60124 2006-09-06  Bruno Haible  <bruno@clisp.org>
60125
60126         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
60127         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
60128         not using libtool correctly.
60129
60130 2006-09-06  Bruno Haible  <bruno@clisp.org>
60131
60132         * lib/striconv.h: New file.
60133         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
60134         iconvstring.c.
60135         * lib/xstriconv.h: New file.
60136         * lib/xstriconv.c: New file.
60137
60138 2006-09-06  Bruno Haible  <bruno@clisp.org>
60139
60140         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
60141         lib_..._LDFLAGS.
60142
60143 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60144
60145         * lib/argz_.h: Sync from Libtool.
60146
60147         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
60148                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60149
60150         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
60151
60152 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60153
60154         * modules/trim: New file.
60155
60156 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
60157
60158         * lib/trim.h: New file.
60159         * lib/trim.c: New file.
60160
60161 2006-09-05  Bruno Haible  <bruno@clisp.org>
60162
60163         * MODULES.html.sh (String handling): Add trim.
60164
60165 2006-09-04  Karl Berry  <karl@gnu.org>
60166
60167         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
60168         until next release.
60169
60170 2006-09-03  Bruno Haible  <bruno@clisp.org>
60171
60172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
60173         correctly.
60174
60175 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60176
60177         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
60178         not gl_GETLOADAVG.  Omit unneeded semicolons.
60179         Problems reported by Ralf Wildenhues in
60180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60181         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
60182         at the end, which is the usual gnulib style.
60183
60184         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
60185         of doing all the work ourselves.
60186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
60187         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
60188
60189 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
60192         Problem reported by Ralf Wildenhues in
60193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
60194
60195         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
60196         HAVE_STRUCT_STATFS_F_FSTYPENAME.
60197
60198 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
60201         yesterday's patch by changing test -n to test -z.
60202
60203 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * modules/getloadavg (Files): Add m4/getloadavg.m4.
60206         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
60207         the former is now obsolescent.
60208
60209         * modules/chdir-long (Depends-on): Add fcntl.
60210
60211 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60212
60213         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
60214         obsolescent, and programs should use gnulib instead.
60215         * m4/getloadavg.m4: New file, with contents taken from Autoconf
60216         but with prefixes changed.
60217
60218 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
60221         or stdbool.h, because they might not exist while configuring.
60222
60223         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
60224         Don't include unistd.h or limits.h; not needed, since chdir-long.h
60225         does that for us.
60226         (O_DIRECTORY): Remove.
60227
60228 2006-08-31  Eric Blake  <ebb9@byu.net>
60229
60230         * gnulib-tool: Don't let emacs change spaces to TAB.
60231
60232 2006-08-31  Bruno Haible  <bruno@clisp.org>
60233
60234         * gnulib-tool: When calling func_import more than once, do it in a
60235         subshell.
60236         Reported by Eric Blake <ebb9@byu.net>.
60237
60238 2006-08-31  Bruno Haible  <bruno@clisp.org>
60239
60240         * gnulib-tool (nl): Remove variable.
60241         (sed_transform_lib_file): Use more robust test for config-h module.
60242         (func_import): Fix typo in 2006-08-25 patch.
60243
60244 2006-08-31  Bruno Haible  <bruno@clisp.org>
60245
60246         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
60247         specified, augment Makefile.am variables instead of assigning them.
60248
60249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60250
60251         Work around a bug in both the Linux and SunOS 64-bit kernels:
60252         nanosleep mishandles sleeps for longer than 2**31 seconds.
60253         Problem reported by Frank v Waveren in
60254         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
60256         Check for nanosleep bug.
60257         (LIB_NANOSLEEP): Append clock_gettime library if needed.
60258
60259 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60260
60261         Work around a bug in both the Linux and SunOS 64-bit kernels:
60262         nanosleep mishandles sleeps for longer than 2**31 seconds.
60263         Problem reported by Frank v Waveren in
60264         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
60265         * lib/nanosleep.c (BILLION): New constant.
60266         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
60267         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
60268         implementation.
60269
60270 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         * modules/nanosleep (Depends-on): Add gettime.
60273
60274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
60275         and Simon Josefsson  <jas@extundo.com>
60276         and Oskar Liljeblad  <oskar@osk.mine.nu>
60277
60278         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
60279         * gnulib-tool (func_import): New license type 'unmodifiable license
60280         text'.
60281         * modules/fdl: Use it.  Longer description.
60282         * module/gpl, module/lgpl: New files.
60283
60284 2006-08-30  Jim Meyering  <jim@meyering.net>
60285
60286         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
60287         shadowing the parameter.
60288
60289 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60290
60291         Sync from Libtool:
60292
60293         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60294
60295         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
60296         sharing with gnulib.  Report by Eric Blake.
60297
60298 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60299
60300         * modules/isapipe: New file.
60301         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
60302
60303 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         * modules/configmake (Makefile.am): Add a comment, and omit
60306         the CONFIGMAKE_ prefix from generated macro names.  Suggested
60307         by Bruno Haible.
60308
60309 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60310
60311         * m4/isapipe.m4: New file.
60312
60313 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * lib/isapipe.c, lib/isapipe.h: New files.
60316
60317 2006-08-29  Jim Meyering  <jim@meyering.net>
60318
60319         * modules/configmake (Makefile.am): Make configmake.h depend on
60320         Makefile.  Otherwise, a stale configmake.h could hang around.
60321
60322 2006-08-29  Eric Blake  <ebb9@byu.net>
60323
60324         * lib/error.c (error_at_line, print_errno_message): Match libc, after
60325         resolution of upstream bug 3044.
60326
60327 2006-08-29  Bruno Haible  <bruno@clisp.org>
60328
60329         * modules/localcharset (Depends-on): Add configmake.
60330         (Makefile.am): Remove setting of LIBDIR through DEFS.
60331
60332 2006-08-29  Bruno Haible  <bruno@clisp.org>
60333
60334         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60335         defined.
60336
60337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60338
60339         * modules/fcntl: New file.
60340         * modules/chdir-safer (Depends-on): Add fcntl.
60341         * modules/fts: Likewise.
60342         * modules/mkdir-p: Likewise.
60343
60344         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60345         This undoes the most recent change, since we're now addressing the
60346         problem in a different way.
60347
60348         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60349         into output, since the output might be called Makefile.am even
60350         if $makefile_name is something different.
60351         (func_import): Use $makefile_am rather than
60352         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60353         empty.
60354
60355         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60356
60357 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60358
60359         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60360         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60361         recent change to stdint.m4, since we're now addressing the problem in a
60362         different way.
60363
60364 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60365
60366         * m4/fcntl_h.m4: New file.
60367
60368 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * lib/fcntl_.h: New file.
60371         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60372         the fcntl module.
60373         * lib/dirchownmod.c: Likewise.
60374         * lib/fts.c: Likewise.
60375
60376         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60377         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60378         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60379         just before including <inttypes.h>, to avoid circular inclusion.
60380
60381 2006-08-28  Jim Meyering  <jim@meyering.net>
60382
60383         * doc/visibility.texi: Actually read and correct the grammar of the
60384         sentence affected by yesterday's change.
60385
60386 2006-08-28  Eric Blake  <ebb9@byu.net>
60387
60388         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60389         needs wrapper.
60390
60391 2006-08-28  Eric Blake  <ebb9@byu.net>
60392
60393         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60394
60395 2006-08-28  Eric Blake  <ebb9@byu.net>
60396
60397         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60398
60399 2006-08-28  Bruno Haible  <bruno@clisp.org>
60400
60401         * modules/c-strstr: New file, from GNU gettext.
60402         * MODULES.html.sh (String handling): Add c-strstr.
60403
60404 2006-08-28  Bruno Haible  <bruno@clisp.org>
60405
60406         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60407         macros.
60408         Reported by Eric Blake.
60409
60410 2006-08-28  Bruno Haible  <bruno@clisp.org>
60411
60412         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60413         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60414         * lib/vasprintf.c: Include errno.h, limits.h.
60415         (EOVERFLOW): New fallback definition.
60416         (vasprintf): Test here whether the string length is > INT_MAX.
60417         * lib/vsnprintf.c: Include errno.h, limits.h.
60418         (EOVERFLOW): New fallback definition.
60419         (vsnprintf): Fix bug when generated string was too long for the buffer.
60420         Test here whether the string length is > INT_MAX.
60421
60422 2006-08-28  Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/inttypes_.h (SCNX*): Remove definitions.
60425         Reported by Eric Blake.
60426
60427 2006-08-28  Bruno Haible  <bruno@clisp.org>
60428
60429         * lib/c-strstr.h: New file, from GNU gettext.
60430         * lib/c-strstr.c: New file, from GNU gettext.
60431
60432 2006-08-28  Bruno Haible  <bruno@clisp.org>
60433
60434         * gnulib-tool: Reorder some statements.
60435
60436 2006-08-28  Bruno Haible  <bruno@clisp.org>
60437
60438         * gnulib-tool: New option --makefile-name.
60439         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60440         $makefile_name.
60441         (func_import): Write $makefile_name to the cache file, and read it from
60442         there unless explicitly specified. Use $makefile_name as file name
60443         instead of Makefile.am. Adjust the recommendations accordingly.
60444
60445 2006-08-28  Bruno Haible  <bruno@clisp.org>
60446
60447         * gnulib-tool (func_verify_module): Check against misapplying patch.
60448
60449 2006-08-28  Bruno Haible  <bruno@clisp.org>
60450
60451         * gnulib-tool (func_relativize, func_relconcat): New functions.
60452         Give an error if --local-dir is given with --update.
60453         Remove trailing slashes from $local_gnulib_dir.
60454         (func_import): Store the relativized $local_gnulib_dir in
60455         gnulib-cache.m4, and read it from there if not specified explicitly.
60456
60457 2006-08-28  Bruno Haible  <bruno@clisp.org>
60458
60459         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60460         is the current directory. Respect also $local_gnulib_dir.
60461
60462 2006-08-28  Bruno Haible  <bruno@clisp.org>
60463             Simon Josefsson  <jas@extundo.com>
60464
60465         BeOS portability.
60466         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60467
60468 2006-08-27  Jim Meyering  <jim@meyering.net>
60469
60470         * doc/visibility.texi: Remove duplicate word: "pointer".
60471
60472 2006-08-26  Bruno Haible  <bruno@clisp.org>
60473
60474         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60475         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60476         (Makefile.am): Create inttypes.h from inttypes_.h.
60477         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60478
60479         * modules/imaxabs: New file.
60480
60481         * modules/imaxdiv: New file.
60482
60483 2006-08-26  Bruno Haible  <bruno@clisp.org>
60484
60485         * m4/inttypes.m4: New file.
60486         * m4/_inttypes_h.m4: Remove file.
60487         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60488         PRI_MACROS_BROKEN.
60489         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60490
60491         * m4/imaxabs.m4: New file.
60492
60493         * m4/imaxdiv.m4: New file.
60494
60495 2006-08-26  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/inttypes_.h: New file.
60498         * lib/inttypes.h: Remove file.
60499         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60500
60501         * lib/imaxabs.c: New file.
60502
60503         * lib/imaxdiv.c: New file.
60504
60505 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         New config-h module, so that "make" output needn't be cluttered
60508         by -DHAVE_CONFIG_H.
60509         * MODULES.html.sh (Support for building libraries and executables):
60510         Add config-h.
60511         * modules/config-h: New file.
60512         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60513         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60514         the config-h module is used.
60515
60516         New configmake module, so that "make" output needn't be cluttered
60517         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60518         * MODULES.html.sh (Support for building libraries and executables):
60519         Add configmake.
60520         * modules/configmake: New file.
60521
60522 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60523
60524         * m4/config-h.m4: New file.
60525
60526 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60527
60528         * config/srclist.txt: Add elisp-comp.
60529
60530 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         * MODULES.html.sh (Support for building libraries and executables):
60533         Add elisp-comp.
60534         * build-aux/elisp-comp: New file.
60535         * modules/elisp-comp: New file.
60536
60537 2006-08-24  Bruno Haible  <bruno@clisp.org>
60538
60539         * gnulib-tool (func_create_testdir): Use non-default values of
60540         sourcebase and m4base.
60541
60542 2006-08-24  Bruno Haible  <bruno@clisp.org>
60543
60544         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60545         HTML structure.
60546
60547 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         * modules/openat (Depends-on): Add lchown.
60550
60551 2006-08-23  Bruno Haible  <bruno@clisp.org>
60552
60553         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60554         of gl_LOCK_EARLY instead of gl_LOCK.
60555
60556 2006-08-23  Bruno Haible  <bruno@clisp.org>
60557
60558         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60559         on OSF/1 to no.
60560         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60561
60562 2006-08-23  Bruno Haible  <bruno@clisp.org>
60563
60564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60565         as unusable.
60566
60567         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60568         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60569         (gl_LOCK): New macro.
60570
60571 2006-08-22  Simon Josefsson  <jas@extundo.com>
60572
60573         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60574         to md5 module.
60575
60576 2006-08-22  Simon Josefsson  <jas@extundo.com>
60577
60578         * MODULES.html.sh: Add "Support for maintaining and release
60579         projects".
60580
60581         * build-aux/gnupload: New file, from coreutils.
60582
60583 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60584
60585         Avoid the need for AC_LIBSOURCES in m4 macros.
60586         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60587         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60588         * modules/check-version (EXTRA_DIST): Add check-version.h.
60589         * modules/crc (EXTRA_DIST): Add crc.h.
60590         * modules/des (EXTRA_DIST): Add des.h.
60591         * modules/gc (EXTRA_DIST): Add gc.h.
60592         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60593         * modules/getline (EXTRA_DIST): Add getline.h.
60594         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60595         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60596         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60597         * modules/md2 (EXTRA_DIST): Add md2.h.
60598         * modules/md4 (EXTRA_DIST): Add md4.h.
60599         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60600         * modules/read-file (EXTRA_DIST): Add read-file.h.
60601         * modules/readline (EXTRA_DIST): Add readline.h.
60602         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60603         rijndael-api-fst.h.
60604
60605 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60606
60607         * m4/rijndael.m4 (gl_ARCFOUR):
60608         * m4/arctwo.m4 (gl_ARCTWO):
60609         * m4/check-version.m4 (gl_CHECK_VERSION):
60610         * m4/crc.m4 (gl_CRC):
60611         * m4/des.m4 (gl_DES):
60612         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60613         * m4/gc.m4 (gl_GC):
60614         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60615         * m4/getline.m4 (gl_FUNC_GETLINE):
60616         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60617         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60618         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60619         * m4/md2.m4 (gl_MD2):
60620         * m4/md4.m4 (gl_MD4):
60621         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60622         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60623         * m4/readline.m4 (gl_FUNC_READLINE):
60624         * m4/rijndael.m4 (gl_RIJNDAEL):
60625         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60626         to get the necessary .h files and whatnot.
60627
60628 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60631         gnulib rather than the other way around.
60632         * config/srclistvars.sh (COREUTILS): Remove.
60633
60634 2006-08-22  Jim Meyering  <jim@meyering.net>
60635
60636         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60637
60638         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60639
60640 2006-08-22  Eric Blake  <ebb9@byu.net>
60641
60642         * modules/regexprops-generic: New file.
60643         * MODULES.html.sh (Support for building documentation): List it.
60644
60645 2006-08-22  Eric Blake  <ebb9@byu.net>
60646
60647         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60648         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60649         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60650         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60651
60652 2006-08-22  Bruno Haible  <bruno@clisp.org>
60653
60654         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60655         and lib_LTLIBRARIES like the other lib_* variables.
60656
60657 2006-08-22  Bruno Haible  <bruno@clisp.org>
60658
60659         * build-aux/x-to-1.in: New file, from GNU gettext.
60660
60661 2006-08-22  Bruno Haible  <bruno@clisp.org>
60662
60663         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60664         <utmpx.h> exists.
60665
60666 2006-08-22  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60669         <utmpx.h> exists.
60670
60671 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         BeOS portability.
60674         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60675         exist.
60676         Problem reported by Bruno Haible.
60677
60678 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60679
60680         Avoid the need for AC_LIBSOURCES in m4 macros.
60681         * modules/acl (EXTRA_DIST): Add acl.h.
60682         * modules/argmatch (Files): Add m4/argmatch.m4.
60683         (configure.ac): Add gl_ARGMATCH.
60684         (EXTRA_DIST): Renamed from lib_SOURCES, for
60685         consistency with the other modules.  Remove argmatch.c.
60686         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60687         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60688         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60689         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60690         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60691         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60692         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60693         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60694         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60695         * modules/closeout (EXTRA_DIST): Add closeout.h.
60696         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60697         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60698         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60699         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60700         dirname.h; remove basename.c and stripslash.c.
60701         * modules/exclude (EXTRA_DIST): Add exclude.h.
60702         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60703         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60704         * modules/file-type (EXTRA_DIST): Add file-type.h.
60705         * modules/filemode (EXTRA_DIST): Add filemode.h.
60706         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60707         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60708         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60709         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60710         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60711         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60712         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60713         * modules/getdate (EXTRA_DIST): Add getdate.c.
60714         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60715         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60716         * modules/getpass (EXTRA_DIST): Add getpass.h.
60717         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60718         * modules/group-member (EXTRA_DIST): Add group-member.h.
60719         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60720         * modules/hash (EXTRA_DIST): Add hash.h.
60721         * modules/human (EXTRA_DIST): Add human.h.
60722         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60723         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60724         * modules/lchown (EXTRA_DIST): Add lchown.h.
60725         * modules/long-options (EXTRA_DIST): Add long-options.h.
60726         * modules/lstat (EXTRA_DIST): Add lstat.h.
60727         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60728         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60729         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60730         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60731         * modules/memxor (EXTRA_DIST): Add memxor.h.
60732         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60733         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60734         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60735         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60736         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60737         * modules/physmem (EXTRA_DIST): Add physmem.h.
60738         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60739         * modules/posixver (EXTRA_DIST): Add posixver.h.
60740         * modules/quote (EXTRA_DIST): Add quote.h.
60741         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60742         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60743         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60744         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60745         regex_internal.h regexec.c.
60746         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60747         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60748         * modules/same (EXTRA_DIST): Add same.h.
60749         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60750         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60751         * modules/savedir (EXTRA_DIST): Add savedir.h.
60752         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60753         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60754         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60755         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60756         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60757         * modules/strdup (EXTRA_DIST): Add strdup.h.
60758         * modules/strftime (EXTRA_DIST): Add strftime.h.
60759         * modules/strndup (EXTRA_DIST): Add strndup.h.
60760         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60761         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60762         * modules/time_r (EXTRA_DIST): Add time_r.h.
60763         * modules/timespec (EXTRA_DIST): Add timespec.h.
60764         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60765         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60766         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60767         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60768         * modules/userspec (EXTRA_DIST): Add userspec.h.
60769         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60770         * modules/utimens (EXTRA_DIST): Add utimens.h.
60771         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60772         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60773         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60774         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60775         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60776         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60777         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60778         * modules/yesno (EXTRA_DIST): Add yesno.h.
60779
60780 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60783
60784         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60785         * m4/dev-ino.m4, same-inode.m4: Remove.
60786
60787         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60788         * m4/acl.m4 (AC_FUNC_ACL):
60789         * m4/backupfile.m4 (gl_BACKUPFILE):
60790         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60791         * m4/canon-host.m4 (gl_CANON_HOST):
60792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60793         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60794         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60795         * m4/cloexec.m4 (gl_CLOEXEC):
60796         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60797         * m4/closeout.m4 (gl_CLOSEOUT):
60798         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60799         * m4/dirname.m4 (gl_DIRNAME):
60800         * m4/exclude.m4 (gl_EXCLUDE):
60801         * m4/exitfail.m4 (gl_EXITFAIL):
60802         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60803         * m4/file-type.m4 (gl_FILE_TYPE):
60804         * m4/filemode.m4 (gl_FILEMODE):
60805         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60806         * m4/fpending.m4 (gl_FUNC_FPENDING):
60807         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60808         * m4/fts.m4 (gl_FUNC_FTS):
60809         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60810         * m4/getdate.m4 (gl_GETDATE):
60811         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60812         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60813         * m4/getpass.m4 (gl_FUNC_GETPASS):
60814         * m4/gettime.m4 (gl_GETTIME):
60815         * m4/getugroups.m4 (gl_GETUGROUPS):
60816         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60817         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60818         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60819         * m4/hash.m4 (gl_HASH):
60820         * m4/idcache.m4 (gl_IDCACHE):
60821         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60822         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60823         * m4/long-options.m4 (gl_LONG_OPTIONS):
60824         * m4/lstat.m4 (gl_FUNC_LSTAT):
60825         * m4/md5.m4 (gl_MD5):
60826         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60827         * m4/memcoll.m4 (gl_MEMCOLL):
60828         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60829         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60830         * m4/memxor.m4 (gl_MEMXOR):
60831         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60832         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60833         * m4/modechange.m4 (gl_MODECHANGE):
60834         * m4/mountlist.m4 (gl_MOUNTLIST):
60835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60836         * m4/openat.m4 (gl_FUNC_OPENAT):
60837         * m4/pathmax.m4 (gl_PATHMAX):
60838         * m4/physmem.m4 (gl_PHYSMEM):
60839         * m4/posixtm.m4 (gl_POSIXTM):
60840         * m4/posixver.m4 (gl_POSIXVER):
60841         * m4/quote.m4 (gl_QUOTE):
60842         * m4/quotearg.m4 (gl_QUOTEARG):
60843         * m4/readtokens.m4 (gl_READTOKENS):
60844         * m4/readutmp.m4 (gl_READUTMP):
60845         * m4/regex.m4 (gl_REGEX):
60846         * m4/safe-read.m4 (gl_SAFE_READ):
60847         * m4/safe-write.m4 (gl_SAFE_WRITE):
60848         * m4/same.m4 (gl_SAME):
60849         * m4/save-cwd.m4 (gl_SAVE_CWD):
60850         * m4/savedir.m4 (gl_SAVEDIR):
60851         * m4/settime.m4 (gl_SETTIME):
60852         * m4/sha1.m4 (gl_SHA1):
60853         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60854         * m4/stat-macros.m4 (gl_STAT_MACROS):
60855         * m4/stat-time.m4 (gl_STAT_TIME):
60856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60857         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60858         * m4/strdup.m4 (gl_FUNC_STRDUP):
60859         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60860         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60861         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60863         * m4/time_r.m4 (gl_TIME_R):
60864         * m4/timespec.m4 (gl_TIMESPEC):
60865         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60866         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60867         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60868         * m4/userspec.m4 (gl_USERSPEC):
60869         * m4/utimecmp.m4 (gl_UTIMECMP):
60870         * m4/utimens.m4 (gl_UTIMENS):
60871         * m4/xalloc.m4 (gl_XALLOC):
60872         * m4/xgetcwd.m4 (gl_XGETCWD):
60873         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60874         * m4/xreadlink.m4 (gl_XREADLINK):
60875         * m4/xstrtod.m4 (gl_XSTRTOD):
60876         * m4/yesno.m4 (gl_YESNO):
60877         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60878         to get the necessary .h files and whatnot.
60879
60880 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60881             Bruno Haible  <bruno@clisp.org>
60882
60883         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60884         /bin/sh understanding of '!' conditional negation.
60885
60886 2006-08-21  Jim Meyering  <jim@meyering.net>
60887
60888         * modules/openat (Depends-on): Really alphabetize.
60889
60890         * modules/acl (Depends-on): Add error and quote.
60891
60892         * check-module (find_included_lib_files): Add at-func.c to the
60893         ok-to-include-more-than-once white list.
60894
60895         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60896
60897 2006-08-21  Bruno Haible  <bruno@clisp.org>
60898
60899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60900         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60901         Reported by Martin Lambers <marlam@marlam.de>.
60902
60903 2006-08-21  Bruno Haible  <bruno@clisp.org>
60904
60905         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60906         specify an installation location, don't emit a noinst_LIBRARIES or
60907         noinst_LTLIBRARIES assignment.
60908
60909 2006-08-21  Bruno Haible  <bruno@clisp.org>
60910
60911         BeOS portability.
60912         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60913         BeOS has mbrtowc() but no <wctype.h>.
60914
60915 2006-08-21  Bruno Haible  <bruno@clisp.org>
60916
60917         BeOS portability.
60918         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60919         exist.
60920
60921 2006-08-21  Bruno Haible  <bruno@clisp.org>
60922
60923         BeOS portability.
60924         * lib/mbchar.h: Include <wctype.h> only if it exists.
60925
60926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         Remove files that are no longer needed by their respective modules.
60929         * m4/obstack.m4: Remove.
60930         * m4/strerror_r.m4: Remove.
60931         * m4/uint32_t.m4: Remove.
60932         * m4/uintptr_t.m4: Remove.
60933         * m4/ullong_max.m4: Remove.
60934         * m4/xstrtoimax.m4: Remove.
60935         * m4/xstrtoumax.m4: Remove.
60936
60937         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60938         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60939         dependencies now capture this.
60940
60941         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60942         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60943         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60944         * m4/human.m4 (gl_HUMAN): Likewise.
60945         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60946         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60947
60948         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60949
60950         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60951         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60952         stdint.
60953         * m4/human.m4 (gl_HUMAN): Likewise.
60954         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60955         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60956         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60957         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60958         * m4/xstrtol (gl_XSTRTOL): Likewise.
60959
60960         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60961         AC_TYPE_LONG_LONG_INT.
60962         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60964         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60966
60967         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60968         on stdbool.
60969
60970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60971         (gl_PREREQ_XSTRTOUL): Remove.
60972
60973         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60974
60975         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60976         mode.
60977
60978 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         Add and change modules to make it easier for coreutils to use
60981         gnulib-tool.
60982         * modules/backupfile (Files): Remove m4/d-ino.m4.
60983         (Depends-on): Add d-ino.
60984         * modules/cycle-check (Depends-on): Add stdint.
60985         (lib_SOURCES): Add cycle-check.h.
60986         * modules/d-ino: New module.
60987         * modules/d-type: New module.
60988         * modules/error (Files): Remove m4/strerror_r.m4.
60989         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60990         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60991         m4/inttypes_h.m4, m4/uintmax_t.m4.
60992         (Depends-on): Add stdint.
60993         (lib_SOURCES): Add fsusage.h.
60994         * modules/getcwd (Files): Remove d-ino.m4.
60995         (Depends-on): Add d-ino.
60996         * modules/getndelim2 (Depends-on): Add stdint.
60997         * modules/glob (Files): Remove m4/d-type.m4.
60998         (Depends-on): Add d-type.
60999         * modules/host-os: New module.
61000         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
61001         m4/inttypes_h.m4, m4/uintmax_t.m4.
61002         * Depends-on: Add stdint.
61003         (lib_SOURCES): Add human.h.
61004         * modules/inttostr (Files): Remove m4/intmax_t.m4,
61005         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
61006         m4/uintmax_t.m4, m4/ulonglong.m4.
61007         (Depends-on): Add stdint.
61008         (EXTRA_DIST): Add inttostr.h.
61009         * modules/lchmod: New module.
61010         * modules/link-follow: New module.
61011         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
61012         (Depends-on): Add lchmod.
61013         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
61014         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
61015         (Depends-on): Add stdint.
61016         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
61017         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
61018         (Depends-on): Add stdint.
61019         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
61020         * modules/perl: New module.
61021         * modules/regex (Depends-on): Add stdint.
61022         * modules/rmdir-errno: New module.
61023         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61024         m4/intmax_t.m4.
61025         (Depends-on): Add stdint.
61026         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
61027         m4/uintmax_t.m4.
61028         (Depends-on): Add stdint.
61029         * modules/unlink-busy: New module.
61030         * modules/utimecmp (Depends-on): Add stdint.
61031         * modules/uptime: New module.
61032         * modules/winsz-ioctl: New module.
61033         * modules/winsz-termios: New module.
61034         * modules/xnanosleep (Depends-on): Add nanosleep.
61035         * modules/ullong_max: Remove.
61036         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
61037         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
61038         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
61039         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
61040         (Depends-on): Add inttypes.
61041         (lib_SOURCES): Add xstrtol.h.
61042         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
61043         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
61044         * MODULES.html.sh: Move 'assert' into the assert section.
61045         Move 'dummy' into the linking section.
61046         Remove ullong_max.
61047         Add section for compatibility checks for POSIX:2001 functions,
61048         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
61049         winsz-ioctl, and winsz-termios into it.
61050         Add lchmod.
61051         Add top-level Misc section and put host-os, perl, and uptime
61052         into it.
61053
61054 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61055
61056         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
61057         now assume the stdint module.  Do not include inttypes.h.
61058         * lib/fsusage.h: Likewise.
61059         * lib/getndelim2.c: Likewise.
61060         * lib/human.h: Likewise.
61061         * lib/inttostr.h: Likewise.
61062         * lib/obstack.c: Likewise.
61063         * lib/regex_internal.h: Likewise.
61064         * lib/tempname.c: Likewise.
61065         * lib/utimecmp.c: Likewise.
61066         * lib/xstrtol.h: Likewise.
61067
61068         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
61069
61070         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
61071         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
61072         * lib/xtime.h: Likewise.
61073
61074 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * modules/openat (Files): Add lib/fchmodat.c.
61077         Fixes problem reported by Jay Youngman.
61078
61079 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61080
61081         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
61082         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
61083
61084 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
61085             Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
61088         and is a script that invokes bison. Tighten the code. Add comments.
61089
61090 2006-08-18  Jim Meyering  <jim@meyering.net>
61091
61092         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
61093         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
61094         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
61095         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
61096
61097 2006-08-18  Bruno Haible  <bruno@clisp.org>
61098
61099         * modules/bison-i18n: New file.
61100         * MODULES.html.sh (Internationalization functions): Add it.
61101
61102 2006-08-18  Bruno Haible  <bruno@clisp.org>
61103
61104         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
61105         sys/statvfs.h. When getmntinfo was found, check its declaration and
61106         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
61107
61108 2006-08-18  Bruno Haible  <bruno@clisp.org>
61109
61110         * m4/bison-i18n.m4: New file, from bison.
61111
61112 2006-08-18  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
61115         (ME_DUMMY): Treat "kernfs" as a dummy.
61116         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
61117
61118 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         Update from coreutils.
61121
61122         2006-08-15  Jim Meyering  <jim@meyering.net>
61123
61124         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
61125
61126         2006-01-17  Jim Meyering  <jim@meyering.net>
61127
61128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
61129
61130         2006-01-11  Jim Meyering  <jim@meyering.net>
61131
61132         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
61133         Check for the lchmod function.
61134
61135 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61136
61137         Update from coreutils.
61138
61139         * lib/__fpending.h: Add copyright notice.
61140         * lib/fprintftime.h: Likewise.
61141         * lib/savedir.c: Use (C) in copyright notice.
61142         * lib/savedir.h: Likewise.
61143
61144         2006-08-15  Jim Meyering  <jim@meyering.net>
61145
61146         * lib/at-func.c: New file, with the logic of all emulated at-functions.
61147         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
61148         in support of the EXPECTED_ERRNO macro.
61149         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
61150         definitions.  Instead, define the appropriate symbols and include
61151         "at-func.c".
61152         * lib/mkdirat.c (mkdirat): Likewise.
61153         * lib/fchmodat.c (fchmodat): Likewise.
61154         (ENOSYS): Remove definition.
61155         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
61156         it.  Don't include "unistd--.h" -- it wasn't ever used.
61157
61158         2006-01-17  Jim Meyering  <jim@meyering.net>
61159
61160         Rewrite fts.c not to change the current working directory,
61161         by using openat, fstatat, fdopendir, etc..
61162
61163         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
61164         (HAVE_OPENAT_SUPPORT): Define.
61165         [_LIBC] (fchdir): Don't undef or define; no longer used.
61166         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
61167         Now, this `function' always succeeds, and consumes its file descriptor
61168         parameter -- so callers must not close such FDs.  Update callers.
61169         (diropen_fd, opendirat, cwd_advance_fd): New functions.
61170         (diropen): Add parameter, SP.  Adjust all callers.
61171         Implement using diropen_fd, rather than open.
61172         (fts_open): Initialize new member, fts_cwd_fd.
61173         Remove fts_rft-setting code.
61174         (fts_close): Close fts_cwd_fd, if necessary.
61175         (__opendir2): Define in terms of opendir or opendirat,
61176         depending on whether the FST_NOCHDIR flag is set.
61177         (fts_build): Since fts_safe_changedir consumes its FD, and since
61178         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
61179         and close the dup'd file descriptor upon failure.
61180         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
61181         (fts_safe_changedir): Tweak semantics to reflect that this function
61182         now calls cwd_advance_fd and hence consumes its FD argument.
61183         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
61184         [struct FTS] (fts_rft): Remove now-unused member.
61185         [struct FTS] (fts_cycle.state): Improve comment.
61186
61187         * lib/openat.c (openat_needs_fchdir): New function.
61188         * lib/openat.h (openat_needs_fchdir): Declare it.
61189
61190 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
61193         Problem and fix reported by Pádraig Brady in
61194         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
61195
61196 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61197
61198         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
61199
61200 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61201
61202         * lib/memcoll.c (memcoll): Optimize for the common case where the
61203         arguments are bytewise equal.
61204
61205 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * doc/regexprops-generic.texi: Add a copyright notice.
61208
61209 2006-08-15  Bruno Haible  <bruno@clisp.org>
61210
61211         * modules/tmpdir (License): Change to LGPL.
61212
61213 2006-08-15  Bruno Haible  <bruno@clisp.org>
61214
61215         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
61216         module.
61217
61218 2006-08-14  Simon Josefsson  <jas@extundo.com>
61219
61220         * config/srclist.txt: Add gnupload.
61221
61222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61223
61224         Change copyright notice from LGPL 2 to GPL 2, since that's the
61225         standard form used in the gnulib repository.
61226         * tests/test-lock.c: Likewise.
61227         * tests/test-stdint.c: Likewise.
61228         * tests/test-tls.c: Likewise.
61229
61230         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
61231         prelude-manager.  User shorter URLs for GNU projects, without '?'.
61232         Add copyright notice.
61233
61234         * check-module: Add copyright notice.  Output a copyright
61235         notice if "--version" is specified.
61236         * modules/COPYING: New file.
61237         * tests/test-getaddrinfo.c: Add copyright notice.
61238         * tests/test-verify.c: Likewise.
61239
61240 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61241
61242         Change copyright notice from LGPL 2 to GPL 2, since that's the
61243         standard form used in the gnulib repository.
61244         * lib/lock.c: LGPL -> GPL.
61245         * lib/lock.h: Likewise.
61246         * lib/strnlen1.c: Likewise.
61247         * lib/strnlen1.h: Likewise.
61248         * lib/tls.c: Likewise.
61249         * lib/tls.h: Likewise.
61250         * lib/tmpdir.c: Likewise.
61251
61252         * lib/TODO: Remove; this belongs only in coreutils.
61253
61254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         Add copyright notices to long-enough files that lack them, since
61257         otherwise the files aren't clearly free.  Use the same notice that
61258         getdate.texi already uses.
61259         * doc/alloca-opt.texi: Add copyright notice.
61260         * doc/alloca.texi: Likewise.
61261         * doc/ctime.texi: Likewise.
61262         * doc/functions.texi: Likewise.
61263         * doc/gcd.texi: Likewise.
61264         * doc/gnulib-tool.texi: Likewise.
61265         * doc/inet_ntoa.texi: Likewise.
61266         * doc/visibility.texi: Likewise.
61267
61268         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
61269         * doc/quote.texi: Add copyright notice.
61270
61271         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
61272         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
61273         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
61274         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
61275         is now obsolete, and give a pointer to the Sun list.
61276         Add copyright notice.
61277
61278 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         * config/srclistvars.sh: Add copyright notice.
61281
61282 2006-08-14  Eric Blake  <ebb9@byu.net>
61283
61284         Import the following change from libc:
61285
61286         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
61287
61288         Upstream bug 2997.
61289         * lib/misc/error.c: Add space between program name and message if file
61290         name is missing.
61291
61292 2006-08-12  Karl Berry  <karl@gnu.org>
61293
61294         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
61295         remove, these originate in gnulib now.
61296
61297 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61298
61299         * doc/Makefile (standards.info standards.html standards.dvi):
61300         Also depend on make-stds.texi.
61301
61302 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61303
61304         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
61305         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
61306
61307         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
61308         in wchar_t.  Problem reported by Eric Blake.
61309
61310         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
61311         LEN is smaller than SIZE.  Suggested by Bruno Haible.
61312         Also, help the compiler to keep LEN in a register.
61313
61314 2006-08-11  Eric Blake  <ebb9@byu.net>
61315
61316         * users.txt: Sort.  Add tar.
61317
61318 2006-08-11  Bruno Haible  <bruno@clisp.org>
61319
61320         * users.txt: New file.
61321
61322 2006-08-11  Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
61325         before <wchar.h>. Needed for OSF/1 and BSD/OS.
61326
61327 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61328
61329         * modules/snprintf (Depends-on): Remove minmax.
61330         (Maintainer): Add self and Bruno.
61331
61332 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61333
61334         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61335         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61336         (EOVERFLOW): Define if the system does not.
61337         Do not include "minmax.h"; it wasn't used.
61338         (snprintf): Don't assume size_t promotes to an unsigned type.
61339         Fix bug when generated string was too long for the buffer: the
61340         buffer's contents are supposed to be the initial prefix of the
61341         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61342         exceeds INT_MAX; do the check ourselves.
61343
61344         Import the following changes from libc:
61345
61346         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61347
61348         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61349         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61350         set wc to the byte which couldn't be converted.
61351         (re_string_reconstruct): Don't clear valid_raw_len before calling
61352         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61353         tip_context using re_string_context_at.
61354
61355         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61356
61357         * lib/posix/regex.h: g++ still cannot handled [restrict].
61358
61359         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61360
61361         * lib/posix/regex.h: Remove special handling for VMS.
61362
61363 2006-08-10  Jim Meyering  <jim@meyering.net>
61364
61365         * modules/same-inode: New module.
61366         * modules/dev-ino: New module.
61367         * modules/cycle-check: Depend on these modules, rather than simply
61368         including their .h files.
61369         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61370         required via m4/cycle-check.m4.
61371         * modules/same: Depend on new same-inode module, rather than
61372         including same-inode.h.
61373         * modules/chdir-safer: New file.
61374
61375         * modules/chown (Depends-on): Add stat-macros.
61376
61377 2006-08-10  Jim Meyering  <jim@meyering.net>
61378
61379         * m4/cycle-check.m4: New file.
61380         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61381         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61382
61383 2006-08-10  Eric Blake  <ebb9@byu.net>
61384
61385         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61386         in from original proposal.
61387
61388 2006-08-10  Eric Blake  <ebb9@byu.net>
61389         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61390
61391         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61392         namespace.
61393
61394 2006-08-10  Bruno Haible  <bruno@clisp.org>
61395
61396         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61397         as well.
61398
61399 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         Sync from coreutils.
61402
61403         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61404
61405         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61406         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61407
61408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * modules/restrict: Remove; no longer needed now that we assume
61411         Autoconf 2.59 or later.
61412         * MODULES.html.sh: Remove 'restrict'.
61413         * modules/argp (Depends-on): Remove 'restrict'.
61414         * modules/base64 (Depends-on): Likewise.
61415         * modules/gc (Depends-on): Likewise.
61416         * modules/getaddrinfo (Depends-on): Likewise.
61417         * modules/glob (Depends-on): Likewise.
61418         * modules/inet_ntop (Depends-on): Likewise.
61419         * modules/inet_pton (Depends-on): Likewise.
61420         * modules/memxor (Depends-on): Likewise.
61421         * modules/regex (Depends-on): Likewise.
61422         * modules/strtok_r (Depends-on): Likewise.
61423         * modules/time_r (Depends-on): Likewise.
61424
61425 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61428         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61429         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61430         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61431         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61432         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61433         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61434         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61435
61436         Merge from coreutils.
61437         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61438         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61440         * m4/time_r.m4 (gl_TIME_R): Likewise.
61441
61442 2006-08-09  Karl Berry  <karl@gnu.org>
61443
61444         * config/srclist.txt: no more gettext-tools, per Bruno.
61445
61446 2006-08-08  Eric Blake  <ebb9@byu.net>
61447
61448         * modules/verror: New module.
61449         * MODULES.html.sh: Document it.
61450
61451 2006-08-08  Eric Blake  <ebb9@byu.net>
61452
61453         * lib/verror.h, lib/verror.c: New files.
61454
61455 2006-08-08  Eric Blake  <ebb9@byu.net>
61456
61457         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61458         verror_at_line output complies with GNU Coding Standards even when
61459         file is NULL.
61460
61461 2006-08-07  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61464         versions of AIX.
61465         Reported by Ralf Wildenhues.
61466
61467 2006-08-07  Bruno Haible  <bruno@clisp.org>
61468
61469         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61470         in an AC_DEFUN. Needed so that the autoconf snippets can use
61471         AC_REQUIRE.
61472
61473 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61474
61475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61476         Initialize pkgdata_DATA.
61477         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61478         overriding it.
61479
61480 2006-08-06  Eric Blake  <ebb9@byu.net>
61481
61482         * lib/error.h: Fold in some upstream changes from glibc.
61483         * lib/error.c: Likewise.
61484
61485 2006-08-04  Bruno Haible  <bruno@clisp.org>
61486
61487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61488         Make the mostlyclean-local rule depend on mostlyclean-generic.
61489         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61490
61491 2006-07-31  Bruno Haible  <bruno@clisp.org>
61492
61493         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61494         <stdlib.h>, <string.h>.
61495
61496 2006-07-30  Bruno Haible  <bruno@clisp.org>
61497
61498         * modules/readlink (License): Change to LGPL.
61499
61500 2006-07-30  Bruno Haible  <bruno@clisp.org>
61501
61502         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61503         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61504         set PKGDATADIR to point to it.
61505
61506 2006-07-30  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/csharpexec (configure.ac): Comment out macro invocation.
61509         * modules/javaexec (configure.ac): Likewise.
61510         * modules/javacomp-script (configure.ac): Likewise.
61511
61512         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61513
61514 2006-07-30  Bruno Haible  <bruno@clisp.org>
61515
61516         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61517         linked-list.
61518
61519 2006-07-30  Bruno Haible  <bruno@clisp.org>
61520
61521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61522
61523 2006-07-30  Bruno Haible  <bruno@clisp.org>
61524
61525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61526         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61527         get removed.
61528
61529 2006-07-29  Bruno Haible  <bruno@clisp.org>
61530
61531         Make it possible for gnulib-tool to work with locally modified or
61532         augmented gnulib repositories.
61533         * gnulib-tool (func_usage): Document --local-dir option.
61534         (local_gnulib_dir): New variable.
61535         Handle --local-dir option.
61536         (func_lookup_file): New function.
61537         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61538         (func_get_description, func_get_filelist, func_get_description,
61539         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61540         func_get_automake_snippet, func_get_include_directive,
61541         func_get_license, func_get_maintainer): Use func_lookup_file.
61542         (func_import, func_create_testdir): Use func_lookup_file.
61543
61544 2006-07-29  Bruno Haible  <bruno@clisp.org>
61545
61546         * modules/setenv (Depends-on): Add unistd.
61547
61548 2006-07-29  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61551
61552 2006-07-29  Bruno Haible  <bruno@clisp.org>
61553
61554         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61555
61556 2006-07-29  Bruno Haible  <bruno@clisp.org>
61557
61558         * gnulib-tool (import, update): If there is no Makefile.am, look at
61559         aclocal.m4, instead of bailing out.
61560
61561 2006-07-29  Bruno Haible  <bruno@clisp.org>
61562
61563         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61564         Categorize the options by when they are useful.
61565
61566 2006-07-29  Bruno Haible  <bruno@clisp.org>
61567
61568         * gnulib-tool (func_usage): Document option --no-libtool.
61569         Handle option --no-libtool.
61570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61571         for changed semantics of $libtool variable.
61572         (func_import): Likewise. If libtool is not used, show this through
61573         an option --no-libtool.
61574         (func_create_testdir): Update.
61575
61576 2006-07-29  Bruno Haible  <bruno@clisp.org>
61577
61578         * gnulib-tool (func_import): Extend error message about missing
61579         --doc-base.
61580
61581 2006-07-29  Bruno Haible  <bruno@clisp.org>
61582
61583         * gnulib-tool (func_import): Don't create the $docbase directory if
61584         there is no file to store there.
61585
61586 2006-07-29  Bruno Haible  <bruno@clisp.org>
61587
61588         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61589         relevant, look for configure.ac there, not in the current directory.
61590         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61591
61592 2006-07-29  Bruno Haible  <bruno@clisp.org>
61593
61594         * gnulib-tool (SORT): New variable.
61595         (func_usage): Undocument --assume-autoconf option.
61596         Remove --assume-autoconf option handling.
61597         (autoconf_minversion): Determine from the contents of configure.ac.
61598         (func_import): Remove autoconf_minversion handling.
61599         Suggested by Eric Blake.
61600
61601 2006-07-29  Bruno Haible  <bruno@clisp.org>
61602
61603         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61604
61605 2006-07-29  Bruno Haible  <bruno@clisp.org>
61606
61607         * config/srclist.txt (*setenv.[ch]): Remove rules.
61608
61609 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61610
61611         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61612
61613 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61614
61615         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61616         arpa/inet.h.
61617
61618 2006-07-28  Simon Josefsson  <jas@extundo.com>
61619
61620         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61621         * modules/inet_pton (Depends-on): Likewise.
61622
61623 2006-07-28  Simon Josefsson  <jas@extundo.com>
61624
61625         * m4/netinet_in_h.m4: New file.
61626
61627 2006-07-28  Simon Josefsson  <jas@extundo.com>
61628
61629         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61630         #include's.
61631
61632 2006-07-28  Simon Josefsson  <jas@extundo.com>
61633
61634         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61635         #include's.
61636
61637 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61640         setgid on directories only if they set these bits.
61641         * lib/modechange.h: Remove obsolete comment about masks.
61642
61643 2006-07-28  Eric Blake  <ebb9@byu.net>
61644
61645         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61646         macro expansion.
61647
61648 2006-07-28  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61651
61652 2006-07-28  Bruno Haible  <bruno@clisp.org>
61653
61654         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61655
61656 2006-07-28  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61659         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61660         Define fallbacks.
61661         Avoids link error on FreeBSD 4.x.
61662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61663
61664         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61665         encoding.
61666         * lib/mbswidth.c (iswcntrl): Likewise.
61667
61668 2006-07-27  Bruno Haible  <bruno@clisp.org>
61669
61670         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61671         test.
61672
61673 2006-07-27  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61676         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61677         defined.
61678
61679 2006-07-26  Eric Blake  <ebb9@byu.net>
61680
61681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61682
61683 2006-07-26  Eric Blake  <ebb9@byu.net>
61684
61685         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61686         like mingw that lack mkstemp.
61687         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61688         avoid compilation warning on mingw.
61689
61690 2006-07-26  Bruno Haible  <bruno@clisp.org>
61691
61692         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61693         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61694         INT_FAST*_MIN, INTPTR_MIN.
61695
61696 2006-07-25  Bruno Haible  <bruno@clisp.org>
61697
61698         * modules/version-etc (Depends-on): Add stdarg.
61699
61700 2006-07-25  Bruno Haible  <bruno@clisp.org>
61701
61702         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61703         complex commands.
61704
61705 2006-07-25  Bruno Haible  <bruno@clisp.org>
61706
61707         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61708         defined in <stdarg.h> or config.h.
61709
61710 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61711
61712         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61713         (gl_STDIO_SAFER): Remove.
61714
61715 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * MODULES.html.sh (File stream based Input/Output):
61718         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61719         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61720         * modules/fopen-safer, modules/tmpfile-safer: New files.
61721         * modules/stdio-safer: Remove.
61722
61723 2006-07-24  Bruno Haible  <bruno@clisp.org>
61724
61725         * modules/tmpdir: New file.
61726         * MODULES.html.sh (File system functions): Add it.
61727
61728 2006-07-24  Bruno Haible  <bruno@clisp.org>
61729
61730         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61731         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61732
61733 2006-07-24  Bruno Haible  <bruno@clisp.org>
61734
61735         * modules/clean-temp: New file.
61736
61737 2006-07-24  Bruno Haible  <bruno@clisp.org>
61738
61739         * m4/tmpdir.m4: New file, from GNU gettext.
61740
61741 2006-07-24  Bruno Haible  <bruno@clisp.org>
61742
61743         * lib/tmpdir.h: New file, from GNU gettext.
61744         * lib/tmpdir.c: New file, from GNU gettext.
61745
61746 2006-07-24  Bruno Haible  <bruno@clisp.org>
61747
61748         * lib/clean-temp.h: New file, from GNU gettext.
61749         * lib/clean-temp.c: New file, from GNU gettext.
61750
61751 2006-07-23  Eric Blake  <ebb9@byu.net>
61752
61753         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61754         (Depends-on): Add binary-io.
61755
61756 2006-07-23  Eric Blake  <ebb9@byu.net>
61757
61758         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61759
61760 2006-07-23  Eric Blake  <ebb9@byu.net>
61761
61762         * lib/tmpfile-safer.c: New file.
61763         * lib/stdio-safer.h (fopen_safer): Add prototype.
61764         * lib/stdio--.h (tmpfile): Make safer.
61765
61766 2006-07-23  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61769         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61770         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61771         gl_linked_remove_at): Use it.
61772
61773 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61774         and Simon Josefsson <jas@extundo.com>
61775
61776         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61777
61778         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61779
61780 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * modules/close-stream: New file.
61783         * modules/closeout (Description): Make it clear that it exits
61784         with a diagnostic on error.
61785         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61786         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61787
61788 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * m4/close-stream.m4: New file.
61791
61792 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         * lib/close-stream.c, lib/close-stream.h: New files.
61795
61796 2006-07-22  Bruno Haible  <bruno@clisp.org>
61797
61798         Merge from GNU gettext 0.15.
61799
61800         2006-05-01  Bruno Haible  <bruno@clisp.org>
61801
61802                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61803
61804         2006-07-22  Bruno Haible  <bruno@clisp.org>
61805
61806                 * modules/javaversion: New file.
61807                 * MODULES.html.sh (Java): Add javaversion.
61808
61809         2006-03-12  Bruno Haible  <bruno@clisp.org>
61810
61811                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61812
61813         2005-12-04  Bruno Haible  <bruno@clisp.org>
61814
61815                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61816                 (untested).
61817
61818         2006-06-21  Bruno Haible  <bruno@clisp.org>
61819
61820                 Avoid warnings from recent versions of mcs.
61821                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61822                 -o, -L, -r any more. Use options documented since mcs-1.0
61823                 instead. Similarly for -g.
61824
61825         2005-12-04  Bruno Haible  <bruno@clisp.org>
61826
61827                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61828                 .resources, not .resource.
61829
61830         2005-07-09  Bruno Haible  <bruno@clisp.org>
61831
61832                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61833                 add a .dll suffix.
61834                 Reported by Mark Junker <mjscod@gmx.de>.
61835
61836         2006-07-22  Bruno Haible  <bruno@clisp.org>
61837
61838                 * modules/gettext: Upgrade to gettext-0.15.
61839                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61840                 m4/visibility.m4.
61841                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61842
61843 2006-07-22  Bruno Haible  <bruno@clisp.org>
61844
61845         Merge from GNU gettext 0.15.
61846
61847         2006-03-25  Bruno Haible  <bruno@clisp.org>
61848
61849                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61850
61851         2006-07-21  Bruno Haible  <bruno@clisp.org>
61852
61853                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61854                 "1.1".
61855
61856         2006-05-09  Bruno Haible  <bruno@clisp.org>
61857
61858                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61859                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61860                 for the conftestver execution.
61861
61862         2006-05-01  Bruno Haible  <bruno@clisp.org>
61863
61864                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61865                 optional target-version argument. Verify that the compiler
61866                 groks source of the specified source-version, or add -source
61867                 option as necessary. Verify that the compiler produces
61868                 bytecode in the specified target-version, or add -target and
61869                 -source options as necessary. Make the result of the test
61870                 available as variable CONF_JAVAC. Also log error output in
61871                 config.log.
61872
61873         2006-03-11  Bruno Haible  <bruno@clisp.org>
61874
61875                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61876
61877         2006-05-09  Bruno Haible  <bruno@clisp.org>
61878
61879                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61880                 CLASSPATH_SEPARATOR to a semicolon.
61881
61882         2006-03-12  Bruno Haible  <bruno@clisp.org>
61883
61884                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61885                 available as variable CONF_JAVA, for subsequent autoconf
61886                 tests. Also log error output in config.log.
61887
61888         2006-07-19  Bruno Haible  <bruno@clisp.org>
61889
61890                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61891                 that getline works on glibc2 systems. Needed to avoid trouble
61892                 in relocatable.c.
61893                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61894
61895         2005-12-04  Bruno Haible  <bruno@clisp.org>
61896
61897                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61898                 launcher (untested).
61899
61900         2005-12-04  Bruno Haible  <bruno@clisp.org>
61901
61902                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61903
61904         2006-07-22  Bruno Haible  <bruno@clisp.org>
61905
61906                 * gettext.m4: Update from GNU gettext-0.15.
61907                 * nls.m4: Likewise.
61908                 * po.m4: Likewise.
61909                 * inttypes-pri.m4: Likewise.
61910                 * inttypes-h.m4: Renamed from inttypes.m4.
61911                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61912
61913 2006-07-22  Bruno Haible  <bruno@clisp.org>
61914
61915         Merge from GNU gettext 0.15.
61916
61917         2005-07-05  Bruno Haible  <bruno@clisp.org>
61918
61919                 * printf-args.c (printf_fetchargs): Work around broken
61920                 definition of wint_t on mingw.
61921
61922         2005-02-12  Bruno Haible  <bruno@clisp.org>
61923
61924                 * xallocsa.h: Add extern "C" for C++.
61925
61926         2006-05-17  Bruno Haible  <bruno@clisp.org>
61927
61928                 Cygwin portability.
61929                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61930
61931         2006-04-30  Bruno Haible  <bruno@clisp.org>
61932
61933                 * progreloc.c: Include <mach-o/dyld.h> if available.
61934                 (find_executable): Use _NSGetExecutablePath when possible.
61935
61936         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61937
61938                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61939                 function.
61940
61941         2005-12-29  Bruno Haible  <bruno@clisp.org>
61942
61943                 * progreloc.c (set_program_name_and_installdir): Fix
61944                 compilation error.
61945
61946         2005-12-04  Bruno Haible  <bruno@clisp.org>
61947
61948                 Cygwin portability.
61949                 * progreloc.c: Include <windows.h> also on Cygwin.
61950                 (find_executable): Add support for Cygwin.
61951                 (set_program_name_and_installdir): Handle also platforms with
61952                 nonempty EXEEXT.
61953
61954         2006-07-11  Bruno Haible  <bruno@clisp.org>
61955
61956                 * javacomp.c: Fix a comment.
61957                 Reported by Jim Meyering.
61958
61959         2006-04-30  Bruno Haible  <bruno@clisp.org>
61960
61961                 * javacomp.h (compile_java_class): Add source_version,
61962                 target_version arguments.
61963                 * javacomp.c: Rewritten to choose only a compiler that
61964                 respects the specified source_version and target_version.
61965
61966         2006-06-27  Bruno Haible  <bruno@clisp.org>
61967
61968                 Assume correct S_ISDIR macro.
61969                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61970
61971         2006-07-22  Bruno Haible  <bruno@clisp.org>
61972
61973                 * javaversion.h: New file, from GNU gettext.
61974                 * javaversion.c: New file, from GNU gettext.
61975                 * javaversion.java: New file, from GNU gettext.
61976                 * javaversion.class: New file, from GNU gettext.
61977
61978         2006-05-17  Bruno Haible  <bruno@clisp.org>
61979
61980                 Cygwin portability.
61981                 * javaexec.c (execute_java_class): Test for jview program
61982                 also on Cygwin.
61983
61984         2006-04-09  Bruno Haible  <bruno@clisp.org>
61985
61986                 * fatal-signal.c: Don't include string.h.
61987                 (at_fatal_signal): Use a copying loop instead of memcpy.
61988
61989         2005-12-04  Bruno Haible  <bruno@clisp.org>
61990
61991                 * csharpexec.c: Add support for 'clix' launcher (untested).
61992                 (execute_csharp_using_sscli): New function.
61993                 (execute_csharp_program): Call it.
61994
61995         2006-06-21  Bruno Haible  <bruno@clisp.org>
61996
61997                 Avoid warnings from recent versions of mcs.
61998                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61999                 -o, -L, -r any more. Use options documented since mcs-1.0
62000                 instead. Similarly for -g.
62001
62002         2005-07-09  Bruno Haible  <bruno@clisp.org>
62003
62004                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
62005                 add a .dll suffix.
62006                 Reported by Mark Junker <mjscod@gmx.de>.
62007
62008         2006-06-17  Bruno Haible  <bruno@clisp.org>
62009
62010                 * config.charset: Update for NetBSD 3.0.
62011
62012         2006-05-17  Bruno Haible  <bruno@clisp.org>
62013
62014                 Cygwin portability.
62015                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
62016
62017         2006-05-16  Bruno Haible  <bruno@clisp.org>
62018
62019                 * localcharset.c [CYGWIN]: Include <windows.h>.
62020                 (get_charset_aliases): For Cygwin, return the same CPxxx
62021                 aliases list as under WIN32.
62022                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
62023                 the environment variables. Fall back to GetACP().
62024
62025         2006-04-05  Bruno Haible  <bruno@clisp.org>
62026
62027                 * config.charset: Update Juan Manuel Guerrero's address.
62028
62029         2005-02-12  Bruno Haible  <bruno@clisp.org>
62030
62031                 * allocsa.h: Add extern "C" for C++.
62032
62033         2005-02-10  Bruno Haible  <bruno@clisp.org>
62034
62035                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
62036                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
62037
62038         2006-07-22  Bruno Haible  <bruno@clisp.org>
62039
62040                 * gettext.h: Update to GNU gettext-0.15.
62041
62042 2006-07-22  Bruno Haible  <bruno@clisp.org>
62043
62044         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
62045         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
62046         lib-prefix.m4, longdouble.m4, ssize_t.m4.
62047
62048 2006-07-21  Eric Blake  <ebb9@byu.net>
62049
62050         * modules/stdlib-safer: New file.
62051         * MODULES.html.sh (File stream based Input/Output): Add
62052         stdlib-safer.
62053
62054 2006-07-21  Eric Blake  <ebb9@byu.net>
62055
62056         * lib/stdlib-safer.h: New file from coreutils, required by
62057         stdlib--.h.
62058
62059 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
62062
62063 2006-07-20  Bruno Haible  <bruno@clisp.org>
62064
62065         * gnulib-tool: Recognize new option --assume-autoconf.
62066         (autoconf_minversion): New variable.
62067         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
62068
62069 2006-07-20  Bruno Haible  <bruno@clisp.org>
62070
62071         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
62072
62073 2006-07-19  Derek R. Price  <derek@ximbiot.com>
62074
62075         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
62076         Reindent and repaginate.
62077
62078 2006-07-19  Derek Price  <derek@ximbiot.com>
62079
62080         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
62081         Correct grammar.
62082
62083 2006-07-17  Bruno Haible  <bruno@clisp.org>
62084
62085         * modules/list: New file.
62086         * modules/array-list: New file.
62087         * modules/carray-list, modules/carray-list-tests: New files.
62088         * modules/linked-list, modules/linked-list-tests: New files.
62089         * modules/avltree-list, modules/avltree-list-tests: New files.
62090         * modules/rbtree-list, modules/rbtree-list-tests: New files.
62091         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
62092         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
62093         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
62094         * modules/oset: New file.
62095         * modules/array-oset: New file.
62096         * modules/avltree-oset, modules/avltree-oset-tests: New files.
62097         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
62098         * tests/test-carray_list.c: New file.
62099         * tests/test-linked_list.c: New file.
62100         * tests/test-avltree_list.c: New file.
62101         * tests/test-rbtree_list.c: New file.
62102         * tests/test-linkedhash_list.c: New file.
62103         * tests/test-avltreehash_list.c: New file.
62104         * tests/test-rbtreehash_list.c: New file.
62105         * tests/test-avltree_oset.c: New file.
62106         * tests/test-rbtree_oset.c: New file.
62107         * MODULES.html.sh (Container data structures): New section.
62108
62109 2006-07-17  Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/gl_list.m4: New file.
62112
62113 2006-07-17  Bruno Haible  <bruno@clisp.org>
62114
62115         * lib/gl_list.h: New file.
62116         * lib/gl_list.c: New file.
62117         * lib/gl_array_list.h: New file.
62118         * lib/gl_array_list.c: New file.
62119         * lib/gl_carray_list.h: New file.
62120         * lib/gl_carray_list.c: New file.
62121         * lib/gl_linked_list.h: New file.
62122         * lib/gl_linked_list.c: New file.
62123         * lib/gl_anylinked_list1.h: New file.
62124         * lib/gl_anylinked_list2.h: New file.
62125         * lib/gl_avltree_list.h: New file.
62126         * lib/gl_avltree_list.c: New file.
62127         * lib/gl_anyavltree_list1.h: New file.
62128         * lib/gl_anyavltree_list2.h: New file.
62129         * lib/gl_rbtree_list.h: New file.
62130         * lib/gl_rbtree_list.c: New file.
62131         * lib/gl_anyrbtree_list1.h: New file.
62132         * lib/gl_anyrbtree_list2.h: New file.
62133         * lib/gl_anytree_list1.h: New file.
62134         * lib/gl_anytree_list2.h: New file.
62135         * lib/gl_linkedhash_list.h: New file.
62136         * lib/gl_linkedhash_list.c: New file.
62137         * lib/gl_anyhash_list1.h: New file.
62138         * lib/gl_anyhash_list2.h: New file.
62139         * lib/gl_avltreehash_list.h: New file.
62140         * lib/gl_avltreehash_list.c: New file.
62141         * lib/gl_rbtreehash_list.h: New file.
62142         * lib/gl_rbtreehash_list.c: New file.
62143         * lib/gl_anytreehash_list1.h: New file.
62144         * lib/gl_anytreehash_list2.h: New file.
62145
62146         * lib/gl_oset.h: New file.
62147         * lib/gl_oset.c: New file.
62148         * lib/gl_array_oset.h: New file.
62149         * lib/gl_array_oset.c: New file.
62150         * lib/gl_avltree_oset.h: New file.
62151         * lib/gl_avltree_oset.c: New file.
62152         * lib/gl_rbtree_oset.h: New file.
62153         * lib/gl_rbtree_oset.c: New file.
62154         * lib/gl_anytree_oset.h: New file.
62155
62156 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62157
62158         * m4/mkancesdirs.m4: New file.
62159         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
62160         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
62161         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
62162         it.
62163
62164 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
62167         * lib/mkancesdirs.h: New files.
62168         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
62169         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
62170         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
62171         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
62172         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
62173         callers changed.  Revamp internals significantly, by not
62174         attempting to create directories that are temporarily more
62175         permissive than the final results.  Do not attempt to use
62176         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
62177         This removes some race conditions, fixes some bugs, and simplifies
62178         things.  Use new dirchownmod function to do owner and mode changes.
62179         * lib/mkdir-p.h: Likewise.
62180         * lib/modechange.c (octal_to_mode): New function.
62181         (struct mode_change): New member mentioned.
62182         (make_node_op_equals): New arg mentioned.  All callers changed.
62183         (mode_compile): Keep track of which mode bits the user has explicitly
62184         mentioned.
62185         (mode_adjust): New arg DIR, so that we implement the X op correctly.
62186         New arg PMODE_BITS, to keep track of which mode bits the user
62187         mentioned; it treats S_ISUID and S_ISGID speciall.
62188         All callers changed.
62189         * lib/modechange.h: Likewise.
62190
62191 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * MODULES.html.sh: Add mkancestors.
62194         * modules/mkancesdirs: New module.
62195         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
62196         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
62197         The chdir-safer and afs files are now orphans; I'll remove them
62198         unless someone speaks up.
62199         Add lib/dirchownmod.c, lib/dirchownmod.h.
62200         (Depends-on): Remove alloca, chown, save-cwd, dirname.
62201         Add lchown, mkancesdirs.
62202         (Maintainer): Add self.
62203
62204 2006-07-15  Karl Berry  <karl@gnu.org>
62205
62206         * gnulib-tool: help message wording/arrangement.
62207
62208 2006-07-14  Simon Josefsson  <jas@extundo.com>
62209
62210         * doc/gnulib.texi (Libtool and Windows): New section.
62211
62212 2006-07-12  Simon Josefsson  <jas@extundo.com>
62213
62214         * modules/gendocs (License): Fix license, approved by Karl.
62215
62216 2006-07-12  Eric Blake  <ebb9@byu.net>
62217
62218         * MODULES.html.sh: Add gendocs.
62219
62220 2006-07-11  Eric Blake  <ebb9@byu.net>
62221
62222         * modules/fdl: New module, to install doc/fdl.texi.
62223         * MODULES.html.sh: Add new section for documentation modules.
62224         * gnulib-tool: Avoid space-tab.
62225         (--doc-base): New option, to manage files from doc.
62226
62227 2006-07-11  Eric Blake  <ebb9@byu.net>
62228
62229         * m4/absolute-header.m4: Fix comments to match recent change.
62230
62231 2006-07-11  Eric Blake  <ebb9@byu.net>
62232
62233         * gnulib-tool: List --doc-base before --tests-base.
62234
62235 2006-07-11  Derek R. Price  <derek@ximbiot.com>
62236
62237         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
62238
62239 2006-07-11  Bruno Haible  <bruno@clisp.org>
62240
62241         * README: Mention where to put documentation.
62242
62243 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62244
62245         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
62246
62247 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
62250         to stdint.m4.
62251
62252 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
62253
62254         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
62255         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
62256         "no/such/file/stdint.h" when there is no such file, so that
62257         the resulting C code can be parsed by dodgy compilers.
62258         Problems reported by Bob Proulx.
62259
62260 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62261
62262         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
62263         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62264         macros into the GNU _D_EXACT_NAMLEN.
62265         * lib/savedir.c:  Likewise.
62266         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
62267
62268 2006-07-10  Derek R. Price  <derek@ximbiot.com>
62269         and Paul Eggert  <eggert@cs.ucla.edu>
62270
62271         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
62272         * m4/savedir.m4:
62273         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
62274         macros into the GNU _D_EXACT_NAMLEN.
62275
62276 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
62279         around the absolute name, to work around a problem with the HP-UX
62280         11.23 native C compiler, reported by Bob Proulx.
62281
62282 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * doc/maintain.texi, make-stds.texi: Sync from
62285         <http://savannah.gnu.org/projects/gnustandards>.
62286
62287 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
62290
62291 2006-07-09  Jim Meyering  <jim@meyering.net>
62292
62293         * m4/glob.m4: Remove a doubled word in a comment.
62294
62295 2006-07-09  Jim Meyering  <jim@meyering.net>
62296
62297         * lib/argp-pv.c: Remove a doubled word in a comment.
62298         * lib/check-version.c (check_version): Likewise.
62299         * lib/javacomp.c (compile_java_class): Likewise.
62300
62301 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62302
62303         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
62304         for the benefit of people using Autoconf 2.60.  If you want to
62305         support older Autoconf versions you can copy m4/onceonly_2_57.m4
62306         (or m4/onceonly.m4, if pre-2.57) manually.
62307
62308 2006-07-08  Jim Meyering  <jim@meyering.net>
62309
62310         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
62311         comment.
62312         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
62313         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
62314         comment.
62315
62316 2006-07-08  Jim Meyering  <jim@meyering.net>
62317
62318         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
62319
62320 2006-07-07  Simon Josefsson  <jas@extundo.com>
62321
62322         * tests/test-crc.c: Change expected crc value, the test vector
62323         were probably computed using the old broken crc.c?
62324
62325 2006-07-06  Simon Josefsson  <jas@extundo.com>
62326
62327         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
62328         now the canonical place for the M4 file).
62329
62330         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62331         from the sys_socket dependency now.
62332
62333         * modules/inet_pton (Files): Ditto.
62334
62335         * modules/inet_ntop (Files): Ditto.
62336
62337 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62338
62339         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62340         not gl_PREREQ_GETUSERSHELL.
62341
62342 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62343
62344         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62345         with only one argument, for Autoconf 2.60.
62346         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62347         expand to nothing, so add a shell command to avoid syntax error.
62348         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62349
62350 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62351
62352         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62353
62354 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62357         no longer needed.  Check for isblank decl.
62358         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62359         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62360         of existence.
62361
62362 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * lib/getloadavg.c: Use __VMS, not VMS.
62365         * lib/getopt.c: Likewise.
62366         * lib/getpagesize.h: Likewise.
62367         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62368         and probably does not work.
62369
62370 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62371
62372         * lib/.cppi-disable: Add wcwidth.
62373         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62374         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62375         (ISGRAPH): Remove.  All uses changed to isgraph.
62376         (FOLD) [!defined _LIBC]: Remove special case.
62377         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62378         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62379         HAVE_ISBLANK.
62380         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62381         case.
62382
62383 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62384
62385         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62386         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62387         brackets.  Other minor changes to suppress some compiler
62388         warnings.
62389
62390 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62391         and Paul Eggert  <eggert@cs.ucla.edu>
62392
62393         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62394         of invoking obsolescent AC_HEADER_DIRENT macro.
62395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62396         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62399         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62400         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62401         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62402         * m4/readdir.m4: Remove; no longer needed.
62403
62404 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62405         and Paul Eggert  <eggert@cs.ucla.edu>
62406
62407         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62408         Don't worry about this obsolete case any more.
62409         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62410         directories.
62411         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62412         worry about this obsolete case any more.
62413         * lib/fts.c: Likewise.
62414         * lib/getcwd.c: Likewise.
62415         * lib/glob.h: Likewise.
62416         * lib/savedir.c: Likewise.
62417
62418 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62421         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62422         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62423         needed.
62424         All uses removed.
62425         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62426         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62427         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62428         needed.
62429         * m4/getdate.m4 (gl_GETDATE): Likewise.
62430         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62431         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62432         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62433         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62434         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62436         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62437         needed.
62438
62439 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         * lib/memcasecmp.c: Include <limits.h>.
62442         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62443         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62444         Don't assume isdigit succeeds only on '0' through '9'.
62445
62446 2006-07-05  Eric Blake  <ebb9@byu.net>
62447
62448         * modules/getaddrinfo (Depends-on): Add snprintf.
62449
62450 2006-07-05  Eric Blake  <ebb9@byu.net>
62451
62452         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62453         to avoid 'header present but could not be compiled' on cygwin.
62454
62455 2006-07-05  Eric Blake  <ebb9@byu.net>
62456
62457         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62458         missing from netdb.h.
62459         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62460
62461 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62462
62463         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62464         no longer needed.
62465         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62466         * m4/getdate.m4 (gl_GETDATE): Likewise.
62467         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62468         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62469         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62470         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62471         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62472
62473 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62474
62475         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62476         All uses of is_space replaced by isspace.
62477         * lib/exit.h: Don't talk about STDC_HEADERS.
62478         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62479         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62480         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62481         replaced by isprint etc.
62482         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62483         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62484         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62485         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62486         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62487         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62488
62489 2006-07-05  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62492         the function exists, before testing against AIX.
62493         Reported by Martin Lambers <marlam@marlam.de>.
62494
62495 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62498         From Mark D. Baushke.
62499
62500 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62503         to the absolute name, not just one, to bypass Sun C 5.8's
62504         "warning: #include of /usr/include/... may be non-portable".
62505
62506 2006-07-04  Eric Blake  <ebb9@byu.net>
62507
62508         * modules/dirname-tests: New test module.
62509         * tests/test-dirname.c: New file, replacing dirname.c
62510         TEST_DIRNAME section that was recently deleted.
62511
62512 2006-07-04  Bruno Haible  <bruno@clisp.org>
62513
62514         Assume ANSI C header files and <ctype.h> functions.
62515         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62516         (mbsnwidth): Use isprint, iscntrl instead.
62517
62518 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62519
62520         Merge from coreutils.
62521         * MODULES.html.sh: Add xstrtold.
62522         * modules/xstrtold: New file.
62523         * modules/cycle-check (Files): Add lib/same-inode.h.
62524         * modules/dirname (Files): Add m4/double-slash-root.m4.
62525         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62526         * modules/mkdir-p (Files): Add lib/same-inode.h.
62527         * modules/same (Files): Add lib/same-inode.h.
62528
62529 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62530
62531         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62532         This is to keep the terminology clean; POSIX talks about
62533         "absolute pathnames", not "full pathnames", but the GNU
62534         Coding Standards say to use "path" for something else;
62535         so use "absolute" to keep both sides happy.
62536         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62537         Set gl_absolute_header, not gl_full_header_path.
62538         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62539         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62540         All uses changed.
62541
62542         Merge from coreutils.
62543
62544         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62545
62546         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62547         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62548         want to require the building of c-strtod.o.
62549         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62550         needs -lm directly.
62551         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62552
62553         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62556         --as-needed option if available.  Problem reported by Albert Chin in
62557         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62558         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62559         cc merely issues a bunch of annoying warnings for --as-needed
62560         (this problem was reported by Bob Proulx).  Also, try linking with
62561         -lm to detect a bug in binutils 2.16 (this problem was reported
62562         by Ralf Wildenhues).
62563
62564         2006-06-18  Jim Meyering  <jim@meyering.net>
62565
62566         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62567         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62568         macro.
62569         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62570         also check for glibc-2.4's abort-inducing bug.
62571
62572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62573         Low-probability clean-up should be to use rmdir to get rid of
62574         the just-created directory, not unlink.
62575
62576         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62577         configure fail, and request a bug report to inform us about it.
62578         Add a comment that, barring reports to the contrary, in 2007 we'll
62579         assume ftruncate is universally available.
62580
62581         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62584
62585         2006-03-12  Jim Meyering  <jim@meyering.net>
62586
62587         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62588         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62589         * m4/same.m4 (gl_SAME): Likewise.
62590         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62591
62592         2006-03-11  Eric Blake  <ebb9@byu.net>
62593
62594         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62595         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62596         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62597         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62598
62599 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62602         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62603         reported by Mark D. Baushke, one in
62604         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62605
62606         Merge from coreutils.
62607
62608         * lib/.cppi-disable: Add stdint_.h.
62609         * lib/.cvsignore: Add stdint.h.
62610
62611         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62614         both double and long double versions.
62615         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62616         * lib/xstrtold.c: New file.
62617         * lib/xstrtod.h (xstrtold): New decl.
62618
62619         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/filemode.c (setst): Remove.
62622         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62623         (arguably) clearer, and the generated code is a bit smaller on my
62624         Debian GNU/Linux stable x86 host.
62625
62626         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62629         Assume that filemode.h includes sys/types.h and sys/stat.h.
62630         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62631         (ftypelet): Reorder to put common cases first, for efficiency.
62632         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62633         to do 'M'.
62634         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62635         of 10, for compatibility with FreeBSD.  All callers changed.
62636         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62637         types that can't be deduced solely from st_mode.  First arg is now a
62638         const pointer.
62639         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62640         (strmode): Renamed from mode_string.
62641         (filemodestring): New decl.
62642         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62643         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62644         needed.
62645         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62646
62647         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62650         fsusage.h now does that.  Include fsusage.h first, to test interface.
62651         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62652         at most one method (the old code could have generated decls that
62653         didn't conform to C89, not that this was ever exercised).
62654         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62655
62656         2006-03-19  Jim Meyering  <jim@meyering.net>
62657
62658         Work even in a chroot where d_ino values for entries in "/"
62659         don't match the stat.st_ino values for the same names.
62660         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62661         number, iterate through all entries again, using lstat instead.
62662         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62663         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62664
62665         * lib/getcwd.c (__getcwd): Clarify a comment.
62666         Use memcpy in place of a call to strcpy.
62667
62668         2006-03-12  Jim Meyering  <jim@meyering.net>
62669
62670         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62671         matches that of the current directory (which we're about to chdir ".."
62672         out of), then save the dev-ino of the parent, instead.
62673
62674         * lib/same-inode.h (SAME_INODE): New file/macro.
62675         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62676         Include "same-inode.h", instead.
62677         * lib/same.c: Likewise.
62678         * lib/cycle-check.h: Include "same-inode.h".
62679         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62680         * lib/cycle-check.c (SAME_INODE): Remove definition.
62681         * lib/root-dev-ino.h: Include "same-inode.h".
62682
62683         2006-03-11  Eric Blake  <ebb9@byu.net>
62684
62685         * lib/same.c (same_name): s/base_name/last_component/
62686         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62687         * lib/filenamecat.c (file_name_concat): Likewise.
62688
62689         2006-03-11  Eric Blake  <ebb9@byu.net>,
62690                     Paul Eggert  <eggert@cs.ucla.edu>
62691
62692         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62693         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62694         drive prefix.
62695         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62696         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62697         (last_component): New method.
62698         * lib/dirname.c (dir_len): Determine when drive letters need a
62699         subsequent slash.  Preserve // when it is special.
62700         (dir_name): Don't append dot when drive letter is absolute.
62701         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62702         * lib/basename.c (base_name): New semantics - malloc the result.
62703         Preserve // when it is special.  Preserve relative files that look
62704         like drive letters.
62705         (base_len): Preserve // when it is special.
62706         (last_component): New method, similar to old base_name semantics.
62707         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62708         base_name.  Strip redundant slashes from ///.
62709
62710 2006-07-03  Jim Meyering  <jim@meyering.net>
62711
62712         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62713         macro is used before the first cycle_check call.
62714
62715 2006-07-03  Eric Blake  <ebb9@byu.net>
62716
62717         * modules/dirname (Depends-on): Add xstrndup.
62718
62719 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62722         test cases, so that config.log is a bit easier to follow.
62723
62724 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62727         both are 64 bits, since this seems to be the tradition, and this
62728         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62729         we ever run into a host that prefers long long to long in this
62730         case, we'll need another configure-time test.  Problem reported by
62731         Jim Meyering.
62732
62733 2006-07-02  Eric Blake  <ebb9@byu.net>
62734
62735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62736
62737 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62738
62739         * modules/inttypes (Depends-on): No longer depends on stdint.
62740         * modules/stdint (Description): Say more about assumptions.
62741         Say that the fast types might differ.  Say macros are used.
62742         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62743         (Makefile.am): Revise list of substituted symbols to match
62744         new stdint.m4.
62745         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62746         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62747         * tests/test-stdint.c (verify_same_types)
62748         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62749         the code conforms to C99/C89.
62750         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62751         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62752
62753 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62754
62755         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62756         but fix a bug, by requiring at least 64 bits.
62757         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62758         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62759         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62760         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62761
62762         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62763         changes.  Make 2.59 a prerequisite.  Check and substitute for
62764         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62765         inttypes.h.  Do not use special include files; just use the
62766         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62767         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62768         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62769         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62770         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62771         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62772         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62773         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62774         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62775         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62776         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62777         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62778         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62779         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62780         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62781         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62782         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62783         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62784         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62785         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62786         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62787         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62788         not check for things that C99 does not require, e.g., int8_t.  If
62789         a test isn't needed unless <stdint.h> isn't working, and is
62790         unlikely to be needed for any other reason, then don't do it
62791         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62792         size_t, since we assume C89 freestanding at least.  Do not check
62793         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62794         the right thing even if the types are not defined.  Instead use:
62795         (gl_STDINT_TYPE_PROPERTIES): New macro.
62796         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62797         testing whether <sys/types.h> clashes, as Autoconf does this for
62798         us now.  All uses removed.
62799         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62800         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62801         (gl_CHECK_TYPE_SAME):
62802         Remove; no longer needed.
62803         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62804         exists, since we'll return 0 anyway in that case.
62805         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62806
62807 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62810         possible collision with system files.
62811         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62812         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62813         WCHAR_MIN and WCHAR_MAX in this case.
62814         (<stddef.h>): Do not include; no longer needed.
62815         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62816         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62817         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62818         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62819         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62820         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62821         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62822         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62823         !defined(__c99))]: Include in this case too, since it's harmless
62824         now.
62825         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62826         dangerous to do so.
62827         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62828         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62829         (_STDINT_MIN, _STDINT_MAX): New macros.
62830         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62831         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62832         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62833         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62834         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62835         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62836         macros, not typedefs; this simplifies things quite a bit.
62837         Use long int for all types narrower than int64_t.
62838         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62839         Define in terms of long long int or int64_t or long int,
62840         not int64_t or int32_t.  This saves some compile-time testing.
62841         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62842         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62843         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62844         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62845         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62846         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62847         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62848         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62849         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62850         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62851         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62852         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62853         undef any previous version and define our own version, for
62854         simplicity and consistency with the new macros for types.
62855         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62856         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62857         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62858         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62859         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62860         @WINT_T_SUFFIX@ to keep things simple here.
62861         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62862         Simplify by assuming typical 8/16/32/64 host, since we're
62863         already doing that elsewhere anyway.
62864         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62865         and assume long long int is 64 bits if available.  This
62866         speeds up 'configure'.
62867
62868 2006-07-01  Eric Blake  <ebb9@byu.net>
62869
62870         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62871         Reported by Andreas Buening.
62872
62873 2006-07-01  Eric Blake  <ebb9@byu.net>
62874
62875         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62876
62877 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62878
62879         * lib/getaddrinfo.c: fixed typo
62880
62881 2006-06-29  Jim Meyering  <jim@meyering.net>
62882
62883         * modules/strftime (Maintainer): Add my name, since with the
62884         FPRINTFTIME changes strftime.c has forked from glibc.
62885
62886 2006-06-29  Eric Blake  <ebb9@byu.net>
62887
62888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62889
62890 2006-06-29  Eric Blake  <ebb9@byu.net>
62891
62892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62893
62894 2006-06-29  Eric Blake  <ebb9@byu.net>
62895
62896         * lib/stat_.h: New file.
62897
62898 2006-06-29  Eric Blake  <ebb9@byu.net>
62899
62900         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62901         unused static function.
62902
62903 2006-06-29  Eric Blake  <ebb9@byu.net>
62904
62905         * doc/functions.texi (Function Portability): Document missing lstat
62906         on mingw.
62907
62908 2006-06-29  Eric Blake  <ebb9@byu.net>
62909
62910         * MODULES.html.sh: Add sys_stat.
62911         * modules/sys_stat: New module.
62912         * modules/mkstemp (Depends-on): Add sys_stat.
62913
62914 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62915
62916         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62917
62918 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62919
62920         * m4/c-bs-a.m4: Removed.
62921
62922 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62923
62924         * lib/strftime.c: Assume strftime() exists.
62925
62926 2006-06-29  Derek Price  <derek@ximbiot.com>
62927
62928         * modules/c-bs-a: Removed - \a is C89.
62929         * MODULES.html.sh: Remove c-bs-a.
62930
62931 2006-06-29  Bruno Haible  <bruno@clisp.org>
62932
62933         * modules/wcwidth (License): Change to LGPL.
62934
62935 2006-06-28  Simon Josefsson  <jas@extundo.com>
62936
62937         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62938         on _WIN32.
62939
62940         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62941         getnameinfo.
62942
62943 2006-06-28  Simon Josefsson  <jas@extundo.com>
62944
62945         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62946
62947 2006-06-28  Simon Josefsson  <jas@extundo.com>
62948
62949         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62950         functions there.  It will succeed on Windows XP, but on Windows
62951         2000 and (presumably) earlier, it will fail, and use the internal
62952         re-implementation.
62953         (use_win32_p): New function.
62954         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62955         Support AI_NUMERICSERV to disable getservbyname.
62956         (getnameinfo): New function, only supports
62957         NI_NUMERICHOST|NI_NUMERICSERV for now.
62958
62959         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62960         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62961         getnameinfo.
62962
62963 2006-06-28  Eric Blake  <ebb9@byu.net>
62964
62965         * modules/wcwidth: New file.
62966         * modules/mbchar (Depends-on): Add wcwidth.
62967         * modules/mbswidth (Depends-on): Add wcwidth.
62968         * MODULES.html.sh: Add wcwidth.
62969
62970 2006-06-28  Eric Blake  <ebb9@byu.net>
62971
62972         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62973         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62974
62975 2006-06-28  Eric Blake  <ebb9@byu.net>
62976
62977         * lib/xvasprintf.h: Fix comments.
62978
62979 2006-06-28  Eric Blake  <ebb9@byu.net>
62980
62981         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62982         * lib/mbswidth.c (wcwidth): Move from here...
62983         * lib/wcwidth.h: ...to this new file.
62984
62985 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62986
62987         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62988
62989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62990         it's obsolete.
62991         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62992
62993 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62994
62995         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62996         Autoconf 2.60 says this stuff was obsolete.
62997
62998 2006-06-28  Bruno Haible  <bruno@clisp.org>
62999
63000         * modules/wcwidth (Files): Add m4/wchar_t.m4.
63001
63002 2006-06-28  Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
63005         gt_TYPE_WCHAR_T.
63006
63007 2006-06-28  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
63010         declaration for wcwidth.
63011         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
63012
63013 2006-06-28  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/mkdtemp.c [MINGW]: Include <io.h>.
63016         (mkdir): Define using _mkdir.
63017
63018 2006-06-28  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/getaddrinfo.h: Fix POSIX URL.
63021         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
63022         _WIN32.
63023         (use_win32_p): Make static.
63024         (getaddrinfo): Reject service name if it is empty or does not consist
63025         solely of decimal digits, or if its value is > 65535.
63026         (getnameinfo): Remove useless casts.
63027
63028 2006-06-27  Simon Josefsson  <jas@extundo.com>
63029
63030         * modules/sys_select: New file, suggested by Bruno Haible, Paul
63031         Eggert and Martin Lambers.
63032
63033 2006-06-27  Simon Josefsson  <jas@extundo.com>
63034
63035         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
63036         Eggert and Martin Lambers.
63037
63038 2006-06-27  Bruno Haible  <bruno@clisp.org>
63039
63040         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
63041         result to 0, not to empty.
63042         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
63043
63044 2006-06-27  Bruno Haible  <bruno@clisp.org>
63045
63046         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
63047
63048 2006-06-26  Simon Josefsson  <jas@extundo.com>
63049
63050         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
63051         present.
63052
63053 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
63054
63055         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
63056         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
63057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
63058
63059 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
63060
63061         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
63062
63063 2006-06-26  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
63066
63067 2006-06-26  Bruno Haible  <bruno@clisp.org>
63068
63069         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
63070
63071 2006-06-26  Bruno Haible  <bruno@clisp.org>
63072
63073         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
63074         SGI C compiler in pre-C99 mode.
63075         Suggested by Mark D. Baushke and Larry Jones.
63076
63077 2006-06-26  Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
63080         WCHAR_MAX.
63081         Reported by Mark D. Baushke and Larry Jones.
63082
63083 2006-06-26  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
63086         in pre-C99 mode.
63087         Suggested by Mark D. Baushke and Larry Jones.
63088
63089 2006-06-23  Simon Josefsson  <jas@extundo.com>
63090             Bruno Haible  <bruno@clisp.org>
63091
63092         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
63093         Emit mostlyclean-local rule.
63094         (func_emit_tests_Makefile_am): Likewise.
63095         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
63096
63097 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
63098
63099         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
63100
63101 2006-06-23  Bruno Haible  <bruno@clisp.org>
63102
63103         * tests/test-stdint.c: Update to match ISO C 99 Technical
63104         Corrigendum 1.
63105
63106 2006-06-23  Bruno Haible  <bruno@clisp.org>
63107
63108         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
63109
63110 2006-06-23  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/stdint_.h: Treat IRIX like OpenBSD.
63113
63114 2006-06-23  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
63117         ISO C 99 Technical Corrigendum 1.
63118
63119 2006-06-22  Simon Josefsson  <jas@extundo.com>
63120
63121         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
63122         MinGW.
63123
63124 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
63125
63126         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
63127         needed.  Some compiler complained about some of them.  Problem reported
63128         by Larry Jones in
63129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
63130
63131 2006-06-21  Simon Josefsson  <jas@extundo.com>
63132
63133         * tests/test-getaddrinfo.c: New file.
63134
63135         * modules/getaddrinfo-tests: New file.
63136
63137         * MODULES.html.sh: Add inet_pton.
63138
63139         * modules/inet_pton: New file.
63140
63141 2006-06-21  Simon Josefsson  <jas@extundo.com>
63142
63143         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
63144         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
63145         of using the (limited) gnulib implementation on Windows XP.
63146
63147         * m4/inet_pton.m4: New file.
63148
63149 2006-06-21  Simon Josefsson  <jas@extundo.com>
63150
63151         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
63152         variable.
63153
63154         * lib/socket_.h: Don't define WINVER.
63155
63156         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
63157         slightly modified to work in gnulib.
63158
63159 2006-06-21  Simon Josefsson  <jas@extundo.com>
63160
63161         * doc/gnulib.texi (Windows sockets): Add.
63162
63163 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * lib/read-file.c (fread_file): Start with buffer allocation of
63166         0 bytes rather than 1 byte; this simplifies the code.
63167         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
63168         code to free buffer and save/restore errno.
63169         (internal_read_file): Remove unused local.
63170
63171 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
63174         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
63175         Problem reported by Denis Excoffier in
63176         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
63177
63178 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63179
63180         * modules/sys_socket, modules/socklen: Include sys/types since
63181         FreeBSD 4.x's sys/socket.h needs it.
63182
63183 2006-06-19  Simon Josefsson  <jas@extundo.com>
63184
63185         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
63186
63187 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
63190
63191 2006-06-19  Bruno Haible  <bruno@clisp.org>
63192
63193         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
63194         and FULL_PATH_INTTYPES_H in angle brackets.
63195         Reported by Mark D. Baushke <mdb@gnu.org>.
63196
63197 2006-06-17  Eric Blake  <ebb9@byu.net>
63198
63199         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
63200         errno.
63201
63202 2006-06-17  Bruno Haible  <bruno@clisp.org>
63203
63204         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
63205         <sys/inttypes.h>.
63206
63207 2006-06-17  Bruno Haible  <bruno@clisp.org>
63208
63209         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
63210         whether errno is declared. Assume <errno.h> declares errno.
63211
63212 2006-06-17  Bruno Haible  <bruno@clisp.org>
63213
63214         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
63215
63216 2006-06-17  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
63219         problem on Solaris 2.5.1.
63220
63221 2006-06-16  Eric Blake  <ebb9@byu.net>
63222
63223         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
63224         * lib/unicodeio.c [!defined errno]: Likewise.
63225         * lib/strtol.c [!defined errno]: Likewise.
63226         * lib/strtod.c [!defined errno]: Likewise.
63227
63228 2006-06-15  Eric Blake  <ebb9@byu.net>
63229
63230         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
63231
63232 2006-06-15  Eric Blake  <ebb9@byu.net>
63233
63234         * config/srclist.txt (ssize_t.m4): Lose sync.
63235
63236 2006-06-15  Bruno Haible  <bruno@clisp.org>
63237
63238         * modules/stdint (Files): Include m4/full-header-path.m4,
63239         m4/size_max.m4, m4/wchar_t.m4.
63240         (Makefile.am): Many more substitutions.
63241         * modules/stdint-tests: New file.
63242         * tests/test-stdint.c: New file.
63243
63244 2006-06-15  Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
63247         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
63248         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
63249         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
63250         gl_CHECK_TYPE_SAME): New macros.
63251
63252 2006-06-15  Bruno Haible  <bruno@clisp.org>
63253
63254         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
63255
63256 2006-06-15  Bruno Haible  <bruno@clisp.org>
63257
63258         * lib/stdint_.h: Rewritten to be fully auto-configured.
63259         Fixes bug on HP-UX/IA64.
63260
63261 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * lib/getdate.y (__attribute__): Don't define if already defined.
63264         Problem reported by Larry Jones.
63265         * lib/utimens.c (__attribute__): Likewise.
63266
63267 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
63270         reported by Andreas Schwab.
63271
63272 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63273             Bruno Haible  <bruno@clisp.org>
63274
63275         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
63276         check for the declaration of strnlen and a run test that exposes the
63277         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
63278         rpl_strndup.
63279
63280 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63281             Bruno Haible  <bruno@clisp.org>
63282
63283         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
63284
63285 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63286
63287         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
63288         compile test, for Tru64 4.0D.
63289
63290 2006-05-28  Karl Berry  <karl@gnu.org>
63291
63292         * config/srclist.txt (printf-args.c): lose sync.
63293
63294 2006-05-26  Martin Lambers  <marlam@marlam.de>
63295
63296         * lib/getpass.c: Updates the test for the native W32 API, and adds
63297         missing includes, thus fixing compilation warnings.
63298
63299 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63300
63301         * lib/exclude.c (exclude_fnmatch): New function.
63302         (excluded_file_name): Call exclude_fnmatch.
63303         * lib/exclude.h (excluded_file_name): New prototype
63304
63305 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * lib/tempname.c (small_open, large_open): New macros.
63308         (__open, __open64) [!_LIBC]: Remove.
63309         (__gen_tempname): Use small_open and large_open instead of __open
63310         and __open64.  This fixes a portability bug on HP-UX 11.11i
63311         reported by Simon Wing-Tang in
63312         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
63313
63314 2006-05-24  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
63317         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
63318         Reported by Thorsten Maerz <torte@netztorte.de> via
63319         Aaron Stone <aaron@serendipity.cx>.
63320
63321 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63322
63323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
63324         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
63325         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
63326         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
63327         not really conditional on the cache.
63328         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
63329
63330 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63331
63332         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63333         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63334         (my_usleep): Don't mishandle maximum value.
63335
63336 2006-05-19  Jim Meyering  <jim@meyering.net>
63337
63338         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63339
63340 2006-05-17  Bruno Haible  <bruno@clisp.org>
63341
63342         Cygwin portability.
63343         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63344
63345 2006-05-17  Bruno Haible  <bruno@clisp.org>
63346
63347         * lib/stdint_.h: Fix recognition of Cygwin.
63348
63349 2006-05-15  Bruno Haible  <bruno@clisp.org>
63350
63351         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63352         on libtool patch by Ralf Wildenhues.
63353
63354 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63355
63356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63357         test for C99 conformance; (bool) 0.5 is an integer constant
63358         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63359         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63360
63361 2006-05-11  Simon Josefsson  <jas@extundo.com>
63362
63363         * m4/xvasprintf.m4: Fix obvious typo.
63364
63365 2006-05-11  Jim Meyering  <jim@meyering.net>
63366
63367         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63368         James Lemley.
63369
63370 2006-05-10  Simon Josefsson  <jas@extundo.com>
63371
63372         * lib/md4.c: Typo fix, update copyright years.
63373         (K1, K2): Don't use L because it turn computations into 64-bit on
63374         64-bit platforms.
63375
63376 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63379         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63380         unwanted sign propagation, e.g., on hosts with 64-bit int.
63381         There still are some problems with reeelly weird theoretical hosts
63382         (e.g., 33-bit int) but it's not worth worrying about now.
63383         * lib/sha1.c (rol): Likewise.
63384         (K1, K2, K3, K4): Remove unnecessary L suffix.
63385
63386 2006-05-10  Bruno Haible  <bruno@clisp.org>
63387
63388         * lib/des.c: Cast to avoid warnings.
63389
63390 2006-05-09  Bruno Haible  <bruno@clisp.org>
63391
63392         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63393         (Depends-on): Depend also on xsize, stdarg.
63394         (configure.ac): Add gl_XVASPRINTF.
63395
63396 2006-05-09  Bruno Haible  <bruno@clisp.org>
63397
63398         * m4/xvasprintf.m4: New file.
63399
63400 2006-05-09  Bruno Haible  <bruno@clisp.org>
63401
63402         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63403         (EOVERFLOW): Define fallback value.
63404         (xstrcat): New function.
63405         (xvasprintf): Recognize the special case of a string concatenation.
63406
63407 2006-05-08  Eric Blake  <ebb9@byu.net>
63408
63409         * gnulib-tool (func_version): Base copyright year on CVS date.
63410         (func_emit_copyright_notice): New function.
63411         (func_emit_lib_Makefile_am): Use it.
63412         (func_emit_tests_Makefile_am): Likewise.
63413         (func_import): Likewise.
63414
63415 2006-05-08  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/stdarg: New file.
63418         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63419
63420 2006-05-08  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/stdarg.m4: New file, from GNU gettext.
63423
63424 2006-05-08  Bruno Haible  <bruno@clisp.org>
63425
63426         * config/srclist.txt (build-aux/config.rpath): different from latest
63427         release.
63428
63429 2006-05-08  Bruno Haible  <bruno@clisp.org>
63430
63431         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63432
63433 2006-05-05  Jim Meyering  <jim@meyering.net>
63434
63435         * m4/warning.m4: New file, derived from bison's file by the same name.
63436
63437 2006-05-03  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/stdint_.h: Shorter URL.
63440         * lib/inttypes.h: Likewise.
63441
63442 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63443
63444         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63445
63446 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * lib/verify.h: Document the internals better.  Most of this change
63449         was written by Bruno Haible.
63450
63451 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63452
63453         * doc/verify.texi: New file, partly based on a proposal by
63454         Bruno Haible.
63455
63456 2006-05-02  Bruno Haible  <bruno@clisp.org>
63457
63458         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63459         test from here...
63460         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63461
63462 2006-04-29  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63465         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63466
63467 2006-04-29  Bruno Haible  <bruno@clisp.org>
63468
63469         * gnulib-tool: Make --update option actually work.
63470
63471 2006-04-29  Bruno Haible  <bruno@clisp.org>
63472
63473         * doc/gcd.texi: New file.
63474         * doc/gnulib.texi: Include it.
63475
63476 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63477
63478         * lib/getdate.y (get_date): When adding relative date, start with the
63479         initial time, not with the result of the first mktime call.
63480
63481 2006-04-25  Bruno Haible  <bruno@clisp.org>
63482
63483         * gnulib-tool (func_import): Output the include directives in three
63484         blocks, sorted separately.
63485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63486
63487 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63488
63489         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63490         to define main with arguments, for C++.  Reported by Eric Blake.
63491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63492         Prefer 'int main ()' to 'int main (void)', for C++.
63493         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63494         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63495         for 'main', for C99 and C++.
63496
63497 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63498
63499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63500         Don't assume that exit status -1 is valid.
63501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63503         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63504         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63505         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63506         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63507         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63508         functions can be used without declaring them, or that you can
63509         exit with status -1.
63510         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63511
63512 2006-04-24  Karl Berry  <karl@gnu.org>
63513
63514         * config/srclist.txt (longdouble.m4): sync lost.
63515
63516 2006-04-24  Eric Blake  <ebb9@byu.net>
63517
63518         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63519
63520 2006-04-24  Bruno Haible  <bruno@clisp.org>
63521
63522         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63523         poll() implementation in AIX.
63524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63525
63526 2006-04-24  Bruno Haible  <bruno@clisp.org>
63527
63528         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63529         assigned exactly once.
63530
63531 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63532             Bruno Haible  <bruno@clisp.org>
63533
63534         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63535         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63536         for AM_CPPFLAGS.
63537
63538 2006-04-23  Bruno Haible  <bruno@clisp.org>
63539
63540         * modules/copy-file: Depend on unistd.
63541         * modules/execute: Likewise.
63542         * modules/fatal-signal: Likewise.
63543         * modules/findprog: Likewise.
63544         * modules/mkdtemp : Likewise.
63545         * modules/pipe: Likewise.
63546         * modules/wait-process: Likewise.
63547
63548 2006-04-23  Bruno Haible  <bruno@clisp.org>
63549
63550         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63551         condition was already detected.
63552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63553
63554 2006-04-23  Bruno Haible  <bruno@clisp.org>
63555
63556         * lib/copy-file.c: Include <unistd.h> unconditionally.
63557         * lib/execute.c: Likewise.
63558         * lib/fatal-signal.c: Likewise.
63559         * lib/findprog.c: Likewise.
63560         * lib/mkdtemp.c: Likewise.
63561         * lib/pipe.h: Likewise.
63562         * lib/pipe.c: Likewise.
63563         * lib/wait-process.h: Likewise.
63564
63565 2006-04-23  Bruno Haible  <bruno@clisp.org>
63566
63567         * gnulib-tool (func_usage): Fix --import description. Document
63568         --update.
63569         (func_import): Create temporary file in a temporary directory, if
63570         --dry-run is specified. Silence errors from 'grep' when there are no
63571         m4 files in $m4dir.
63572         (func_create_testdir): Silence errors from 'grep' when there are no
63573         m4 files in $m4dir.
63574         Reported by Karl Berry <karl@freefriends.org>.
63575
63576 2006-04-20  Bruno Haible  <bruno@clisp.org>
63577
63578         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63579         one argument, so that the code will be portable to Autoconf 2.60.
63580         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63581         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63582         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63583
63584 2006-04-19  Derek Price  <derek@ximbiot.com>
63585             Eric Blake  <ebb9@byu.net>
63586
63587         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63588         rather than "/full/path.h".  Update comment to match.  Shorten &
63589         generalize m4_translit call via AS_TR_CPP.
63590
63591 2006-04-19  Derek Price  <derek@ximbiot.com>
63592             Eric Blake  <ebb9@byu.net>
63593
63594         * lib/inttypes.h: Correct grammar in comment.
63595
63596 2006-04-18  Derek Price  <derek@ximbiot.com>
63597             Paul Eggert  <eggert@cs.ucla.edu>
63598
63599         * modules/inttypes: New file.
63600         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63601
63602 2006-04-18  Derek Price  <derek@ximbiot.com>
63603             Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63606         New files.
63607
63608 2006-04-18  Derek Price  <derek@ximbiot.com>
63609             Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * lib/inttypes.h: New file.
63612         * lib/strtoimax.c: Assume <inttypes.h>.
63613
63614 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63617         isn't mounted.  Problem reported by Kir Kolyshkin.
63618
63619 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63620
63621         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63622         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63623         Derek R. Price.
63624         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63625         implementation.
63626
63627 2006-04-12  Eric Blake  <ebb9@byu.net>
63628
63629         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63630         is now done automatically by the corresponding Autoconf macro.
63631
63632 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63633
63634         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63635         time_r.h.
63636
63637 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         Merge regex changes from libc, removing some of our
63640         POSIX-conformance changes that were rejected and redoing them in a
63641         less-intrusive way.
63642
63643         * lib/regcomp.c (re_compile_internal, init_dfa):
63644         Length arg is now size_t, not Idx.  All uses changed.
63645         (peek_token): Forward decl now says internal_function.
63646         (__re_error_msgid, __re_error_msgid_idx):
63647         Now static rather than extern with attribute_hidden.
63648         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63649         For some reason libc prefers K&R style defns for external functions.
63650         (regerror) [!defined _LIBC]: Likewise.
63651         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63652         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63653         (build_range_exp, build_collating_symbol):
63654         Use K&R-style defn.
63655         (re_compile_fastmap): Use '\0' to memset, not 0.
63656         (utf8_sb_map): Make the calculations more obvious.
63657         (init_dfa, parse_bracket_exp, build_charclass_op):
63658         Call calloc and cast result, as glibc does.
63659         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63660         (build_range_exp, build_collating_symbol):
63661         Now internal functions.
63662
63663         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63664
63665         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63666         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63667         Don't depend on VMS; depend on __VMS instead, for POSIX
63668         namespace cleanness.
63669         (regoff_t): Define to ssize_t, not long int.
63670
63671         Remove the REG_ macros named below.  Instead, make the old names
63672         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63673         __USE_GNU_REGEX.
63674         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63675         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63676         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63677         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63678         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63679         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63680         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63681         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63682         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63683         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63684         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63685         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63686         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63687         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63688         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63689         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63690         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63691         (REG_NREGS):
63692         Remove.  All uses replaced by the old RE_* names.
63693         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63694         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63695         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63696         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63697         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63698         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63699         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63700         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63701         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63702         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63703         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63704         Don't bother having these macros be independent of each others'
63705         values, since they no longer exist in the POSIX name space.
63706
63707         Rename the following member names back to their old names,
63708         unless !__USE_GNU_REGEX.  All uses changed back.
63709         (buffer): Renamed from re_buffer.
63710         (allocated): Renamed from re_allocated.
63711         (used): Renamed from re_used.
63712         (syntax): Renamed from re_syntax.
63713         (fastmap): Renamed from re_fastmap.
63714         (translate): Renamed from re_translate.
63715         (can_be_null): Renamed from re_can_be_null.
63716         (regs_allocated): Renamed from re_regs_allocated.
63717         (fastmap_accurate): Renamed from re_fastmap_accurate.
63718         (no_sub): Renamed from re_no_sub.
63719         (not_bol): Renamed from re_not_bol.
63720         (not_eol): Renamed from re_not_eol.
63721         (newline_anchor): Renamed from re_newline_anchor.
63722         (num_regs): Renamed from rm_num_regs.
63723         (start): Renamed from rm_start.
63724         (end): Renamed from rm_end.
63725
63726         (free_state): Move up a bit.
63727
63728         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63729         #define to be empty.
63730         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63731         when that is what is intended.
63732         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63733         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63734         (MAX): New macro.
63735         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63736         All uses changed back to re_malloc, etc.  It's now the caller's
63737         responsibility to check for overflow; all callers changed.
63738         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63739         (re_x2nrealloc): Remove.
63740         (free_state): Remove decl.
63741
63742         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63743         (re_set_registers, re_exec):
63744         Use K&R-style defn.
63745
63746         2006-01-31  Roland McGrath  <roland@redhat.com>
63747
63748         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63749         Reported by Mike Frysinger <vapier@gentoo.org>.
63750
63751         2006-01-15  Andreas Jaeger  <aj@suse.de>
63752
63753         [BZ #1950]
63754         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63755         build_wcs_upper_buffer change.
63756         (build_wcs_upper_buffer): Change return type.
63757
63758         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63759
63760         * lib/regex_internal.h: Include <stdint.h> if available.
63761
63762         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63763
63764         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63765
63766         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63767
63768         * lib/regcomp.c: Adjust for changed secondary hash function.
63769
63770         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63771
63772         * lib/regex.h: Pretty printing.
63773         Clean up namespace a bit.
63774
63775         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63776
63777         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63778         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63779
63780         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63781                     Ulrich Drepper  <drepper@redhat.com>
63782
63783         [BZ #1302]
63784         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63785         changed.
63786         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63787
63788         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63789
63790         [BZ #281]
63791         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63792         * lib/regcomp.c: Remove unnecessary uses of
63793         unsigned RE_TRANSLATE_TYPE.
63794         * lib/regex_internal.h: Likewise.
63795         * lib/regex_internal.c: Likewise.
63796         * lib/regexec.c: Likewise.
63797         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63798
63799         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63800
63801         * lib/regexec.c (find_recover_state): Remove unnecessary
63802         initialization.
63803         (transit_state_bkref): Make DFA a const pointer.
63804         (get_subexp): Likewise.
63805         (check_arrival): Likewise.
63806         (update_cur_sifted_state): Likewise.
63807         (re_search_internal): Likewise.
63808         (prune_impossible_nodes): Likewise.
63809         (acquire_init_state_context): Likewise.
63810         (proceed_next_node): Likewise.
63811         (set_regs): Likewise.
63812         (free_fail_stack_return): Likewise.
63813         (check_arrival_expand_ecl): Mark DFA parameter as const.
63814         (check_arrival_expand_ecl_sub): Likewise.
63815         (check_subexp_limits): Likewise.
63816         (sub_epsilon_src_nodes):  Likewise.
63817         (add_epsilon_src_nodes):  Likewise.
63818         (merge_state_array): Likewise.
63819         (update_regs): Likewise.
63820         (build_trtable): Likewise.
63821         (sift_states_backward): Mark MCTX parameter as const.
63822         (build_sifted_states): Likewise.
63823         (update_cur_sifted_state): Likewise.
63824         (sift_states_mkref): Likewise.
63825         (check_arrival_expand_ecl): Mark eclosure as const.
63826         (check_dst_limits_calc_pos_1): Likewise.
63827         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63828         pointer.
63829
63830         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63831
63832         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63833         (transit_state_sb): Likewise.
63834         (transit_state_mb): Likewise.
63835         (sift_states_iter_mb): Likewise.
63836         (check_arrival_add_next_nodes): Likewise.
63837         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63838         [_LIBC] (re_search_2_stub): Use mempcpy.
63839
63840         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63841         mbrtowc for very simple UTF-8 case.
63842
63843         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63844         a pointer-to-const.
63845         (re_acquire_state_context): Likewise.
63846         * lib/regex_internal.h: Adjust prototypes.
63847
63848         * lib/regex.c: Prevent using C++ compilers.
63849
63850         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63851         (re_acquire_state_context): Likewise.
63852
63853 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63854
63855         * modules/regex (Depends-on): Add ssize_t.
63856
63857 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63860         translation table.
63861
63862 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63865
63866 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63867             Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63870         <sys/types.h> and <inttypes.h>.
63871
63872 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63873
63874         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63875         `__error_t_defined', so argp.h will not typedef the former.
63876
63877 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63880         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63881         glibc names.  Even if glibc is changed to conform to POSIX, the
63882         traditional names will be available anyway, since regex depends on
63883         the extensions module.  Also, fix a longstanding typo in the
63884         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63885         reported by Emanuele Giaquinta.  Also, change sense of cached
63886         variable, so that the message makes sense.
63887
63888 2006-03-24  Simon Josefsson  <jas@extundo.com>
63889
63890         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63891         including some doc fixes.
63892         (base64_encode_alloc): Fix +1 bug on allocation failures.
63893
63894 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63895
63896         * lib/base64.c (base64_encode): Do not read past end of array with
63897         unsanitized input on systems with CHAR_BIT > 8.
63898
63899 2006-03-24  Eric Blake  <ebb9@byu.net>
63900
63901         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63902
63903 2006-03-22  Karl Berry  <karl@gnu.org>
63904
63905         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63906         * config/srclistvars.sh (COREUTILS): new var.
63907
63908 2006-03-17  Jim Meyering  <jim@meyering.net>
63909
63910         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63911         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63912
63913 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63914
63915         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63916         no longer needs it.  Instead, check that regoff_t is as least
63917         as wide as ptrdiff_t.
63918
63919         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63920         so that our regex.h stays compatible with the installed regex.
63921         This is helpful for installers who configure --without-included-regex.
63922         Problem reported by Emanuele Giaquinta.
63923
63924 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63927         Typedef to long int, not to off_, as POSIX will likely change
63928         in that direction.
63929
63930 2006-03-15  Eric Blake  <ebb9@byu.net>
63931
63932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63933
63934 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63935
63936         * lib/argp-help.c (validate_uparams): Fix typo
63937         * lib/argp-parse.c (argp_default_options): Consistently begin help
63938         messages with a lowercase letter.
63939
63940 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63943         overrun buffers and shouldn't be used (much as gets shouldn't be
63944         used).
63945         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63946
63947 2006-03-08  Simon Josefsson  <jas@extundo.com>
63948
63949         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63950         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63951
63952 2006-03-08  Simon Josefsson  <jas@extundo.com>
63953
63954         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63955         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63956
63957 2006-03-08  Simon Josefsson  <jas@extundo.com>
63958
63959         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63960         signal that configure disabled the device.
63961
63962 2006-03-08  Simon Josefsson  <jas@extundo.com>
63963
63964         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63965         languages.
63966
63967 2006-03-07  Simon Josefsson  <jas@extundo.com>
63968
63969         * modules/getopt (Depends-on): Add unistd.
63970
63971         * modules/unistd: New file.
63972
63973 2006-03-07  Simon Josefsson  <jas@extundo.com>
63974
63975         * modules/gc-random: New file.
63976
63977 2006-03-07  Simon Josefsson  <jas@extundo.com>
63978
63979         * m4/unistd_h.m4: New file.
63980
63981 2006-03-07  Simon Josefsson  <jas@extundo.com>
63982
63983         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63984         test to be side-effect free by storing the result in the cache
63985         variable gl_cv_lib_readline, and moving the assignment of
63986         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63987         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63988
63989 2006-03-07  Simon Josefsson  <jas@extundo.com>
63990
63991         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63992         error on missing devices (the functions will return an error).
63993
63994         * m4/gc.m4: Move random stuff to gc-random.m4
63995
63996 2006-03-07  Simon Josefsson  <jas@extundo.com>
63997
63998         * lib/unistd_.h: New file.
63999
64000 2006-03-07  Simon Josefsson  <jas@extundo.com>
64001
64002         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
64003
64004 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
64007         Problem reported by Juan Manuel Guerrero.
64008
64009 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
64012         the unistd module.
64013         * lib/getlogin_r.c: Likewise.
64014         * lib/getlogin_r.h: Likewise.
64015         * lib/glob.c: Likewise.
64016         * lib/pagealign_alloc.c: Likewise.
64017         * lib/unistd_.h: Remove; no longer needed.
64018
64019 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * MODULES.html.sh (Support for systems lacking POSIX:2001):
64022         Add unistd.
64023         * modules/c-stack (Depends-on): Add unistd.
64024         * modules/getlogin_r: Likewise.
64025         * modules/glob: Likewise.
64026         * modules/pagealign_alloc: Likewise.
64027         * modules/unistd (Files): Remove lib/unistd_.h.
64028         (EXTRA_DIST): Remove.
64029         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
64030         need unistd_.h.
64031         (MOSTLYCLEANFILES): Remove unistd.h-t.
64032
64033 2006-03-03  Simon Josefsson  <jas@extundo.com>
64034
64035         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
64036
64037 2006-03-03  Simon Josefsson  <jas@extundo.com>
64038
64039         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
64040         libidn and bison.
64041
64042 2006-03-03  Simon Josefsson  <jas@extundo.com>
64043
64044         * build-aux/maint.mk: Add indent target.
64045
64046 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
64047
64048         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
64049         our replacement poll.h in any case, to avoid a differing
64050         declaration from a system header.  Seen on AIX.
64051
64052 2006-03-01  Simon Josefsson  <jas@extundo.com>
64053
64054         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
64055         <kasal@ucw.cz>.
64056
64057 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * modules/gettime (Depends-on): Add extensions module.
64060         * modules/nanosleep (Depends-on): Likewise.
64061         * modules/settime (Depends-on): Likewise.
64062
64063 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
64066         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
64067         pedantically.
64068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64069         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
64070
64071         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
64072         not "==".  Reported by Ralf Wildenhues.
64073
64074 2006-03-01  Karl Berry  <karl@gnu.org>
64075
64076         * doc/Copyright/request-*: new files, synced from gnuorg.
64077
64078 2006-03-01  Karl Berry  <karl@gnu.org>
64079
64080         * config/srclist.txt (Copyright/*): new entries.
64081
64082 2006-02-28  Simon Josefsson  <jas@extundo.com>
64083
64084         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
64085
64086 2006-02-27  Simon Josefsson  <jas@extundo.com>
64087
64088         * lib/base64.h: Indent #define's.  From Jim Meyering
64089         <jim@meyering.net>.
64090
64091 2006-02-27  Jim Meyering  <jim@meyering.net>
64092
64093         Revert the change of 2006-02-24, so these files can continue
64094         to be sync'd from gettext.
64095         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
64096         of `config.h'.
64097
64098 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         * modules/intprops: New file.
64101         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64102         Add intprops.
64103         * modules/getloadavg (Files): Remove lib/intprops.h.
64104         (Depends-on): Add intprops.
64105         * modules/human: Likewise.
64106         * modules/inttostr: Likewise.
64107         * modules/openat: Likewise.
64108         * modules/sig2str: Likewise.
64109         * modules/userspec: Likewise.
64110         * modules/utimecmp: Likewise.
64111         * modules/xnanosleep: Likewise.
64112         * modules/xstrtol: Likewise.
64113
64114 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
64115
64116         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
64117         * modules/lock-tests (TESTS): Use $(EXEEXT).
64118         * modules/tls-tests: Likewise.
64119         * modules/argp-tests: Likewise.
64120         (check_PROGRAMS): New var, replacing...
64121         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
64122
64123 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64124
64125         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
64126         `config.h'.
64127
64128 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
64131
64132 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64133
64134         Sync from coreutils.
64135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
64136         gl_CHDIR_SAFER.
64137
64138 2006-02-22  Jim Meyering  <jim@meyering.net>
64139
64140         Sync from coreutils.
64141         * m4/chdir-safer.m4: New file.
64142
64143 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
64146         AT_FDCWD exceeds INT_MAX.
64147         * lib/openat.h (AT_FDCWD): Likewise.
64148
64149 2006-02-17  Eric Blake  <address@hidden>
64150
64151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
64152
64153 2006-02-16  Simon Josefsson  <jas@extundo.com>
64154
64155         * modules/getaddrinfo (Depends-on): Add sys_socket.
64156
64157 2006-02-15  Simon Josefsson  <jas@extundo.com>
64158
64159         * build-aux/maint.mk: Add dsyntax-check rule.
64160
64161 2006-02-15  Eric Blake  <ebb9@byu.net>
64162
64163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
64164         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
64165         'present but cannot compile' warnings on cygwin.
64166         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
64167         use ws2tcpip.h if sys/socket.h works.
64168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
64169         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
64170
64171 2006-02-14  Simon Josefsson  <jas@extundo.com>
64172
64173         * modules/maintainer-makefile (Files): Rename.
64174
64175         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
64176         and (the local) Makefile.cfg to maint-cfg.mk.
64177
64178         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
64179         to the latter.
64180
64181         * modules/maintainer-makefile: New module.
64182
64183         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
64184         severaly stripped to make it possible to build it up from scratch
64185         with reliable tests.
64186
64187         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
64188         fixes to permit overriding the default actions when configure and
64189         makefile are not available.
64190
64191 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         Sync from coreutils.
64194         * modules/lstat (Depends-on): Don't depend on xalloc.
64195         (License): Change from GPL to LGPL, since this is now simply a
64196         replacement for a libc function.
64197
64198 2006-02-14  Jim Meyering  <jim@meyering.net>
64199
64200         Sync from coreutils.
64201
64202         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
64203         failure on deficient systems, and simplify gnulib lgpl dependencies.
64204         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
64205         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
64206
64207         * lib/xalloc-die.c: Remove unused definition of N_.
64208
64209 2006-02-14  Jim Meyering  <jim@meyering.net>
64210
64211         Sync from coreutils.
64212         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
64213         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
64214         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
64215         double-quote uses of that variable, to accommodate the rare case in
64216         which getmntent is available in none of the libraries checked.  This
64217         happens at least on FreeBSD 5.0.
64218
64219 2006-02-13  Simon Josefsson  <jas@extundo.com>
64220
64221         * gnulib-tool (Usage): Fix --import, from
64222         karl@freefriends.org (Karl Berry).
64223
64224 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64225
64226         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
64227
64228 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
64229
64230         * lib/argp-namefrob.h: Restore changes accidentally lost during the
64231         "autoupdate" on 2005-12-12.
64232
64233 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * modules/closeout (Depends-on): Remove atexit.
64236
64237 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
64238
64239         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
64240         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
64241
64242 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
64245         __EXTENSIONS__ if this causes compilation to fail.  Problem
64246         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
64247         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
64248
64249 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
64252         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
64253         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
64254         All uses changed.
64255
64256 2006-01-26  Simon Josefsson  <jas@extundo.com>
64257
64258         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
64259         prototype is visible on mingw32.
64260
64261         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
64262         for mingw32.
64263
64264         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
64265         mingw32).
64266
64267 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64268
64269         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
64270         attempt to open for write; this always fails, at least on POSIX
64271         hosts.  This reinstates the 2006-01-09 change, which was
64272         inadvertently removed.
64273
64274 2006-01-26  Bruno Haible  <bruno@clisp.org>
64275
64276         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
64277         Reported by Paul Eggert.
64278
64279 2006-01-26  Bruno Haible  <bruno@clisp.org>
64280             Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         * lib/stdbool_.h (_Bool)
64283         [(! (defined __cplusplus || defined __BEOS__)
64284           && !defined __GNUC__
64285           && !(defined __HP_cc || defined __xlc__
64286                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
64287                || defined __sgi))]:
64288         #define to signed char in these cases too; this simplifies
64289         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
64290         etc., separately) and makes it more conservative.
64291
64292 2006-01-25  Simon Josefsson  <jas@extundo.com>
64293
64294         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
64295         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
64296         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
64297
64298 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64299
64300         * lib/argp-namefrob.h: Bugfix. Remove stray #
64301
64302 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
64305         so that we test the test.
64306         Check for yet another HP-UX cc bug involving *bool |= bool.
64307
64308 2006-01-25  Karl Berry  <karl@gnu.org>
64309
64310         * config/srclist.txt (vasnprintf.c): sync lost.
64311
64312 2006-01-25  Jim Meyering  <jim@meyering.net>
64313
64314         Sync from the stable (b5) branch of coreutils:
64315
64316         * lib/fts.c (fts_children): Don't let close() clobber errno from
64317         failed fchdir().
64318
64319         * lib/fts.c (fts_stat): When following a symlink-to-directory,
64320         don't necessarily interpret stat-fails+lstat-succeeds as indicating
64321         a dangling symlink.  That can also happen at least for ELOOP.
64322         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
64323         FYI, this bug predates the inclusion of fts.c in coreutils.
64324
64325         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
64326         in their own block, so pre-c99 compilers don't object.
64327
64328         Avoid the double-free (first in fts_read, second in fts_close) that
64329         would occur when an `active' directory is made inaccessible (e.g.,
64330         via chmod a-x) during a traversal.
64331         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64332         before returning.  Reproduce this failure by
64333         mkdir -p a/b; cd a; chmod a-x . b
64334         Reported by Stavros Passas.
64335
64336 2006-01-25  Jim Meyering  <jim@meyering.net>
64337
64338         * lib/fileblocks.c: Remove more useless parentheses.
64339         * lib/readutmp.h: Likewise.
64340
64341 2006-01-25  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64344         warnings.
64345         Reported by Paul Eggert.
64346
64347 2006-01-25  Bruno Haible  <bruno@clisp.org>
64348
64349         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64350         rid of a trap command. For Solaris sh.
64351         Reported by Mark D. Baushke <mdb@gnu.org>.
64352
64353 2006-01-24  Simon Josefsson  <jas@extundo.com>
64354
64355         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64356         Bruno.
64357
64358 2006-01-24  Karl Berry  <karl@gnu.org>
64359
64360         * config/srclist.txt (argp-namefrob.h): sync lost.
64361
64362 2006-01-24  Jim Meyering  <jim@meyering.net>
64363
64364         * modules/openat (Files): Add lib/intprops.h.
64365         From Mark D. Baushke.
64366
64367 2006-01-24  Jim Meyering  <jim@meyering.net>
64368
64369         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64370         Reported by Mark D. Baushke.
64371
64372 2006-01-24  Jim Meyering  <jim@meyering.net>
64373
64374         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64375
64376 2006-01-24  Bruno Haible  <bruno@clisp.org>
64377
64378         * modules/strnlen (Maintainer): Change from glibc to all.
64379
64380 2006-01-24  Bruno Haible  <bruno@clisp.org>
64381
64382         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64383         Patch by Paul Eggert.
64384
64385 2006-01-24  Bruno Haible  <bruno@clisp.org>
64386
64387         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64388         already has it.
64389         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64390         2005-11-26.
64391
64392         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64393         'signed char' to avoid problems with the built-in _Bool type.
64394         Reported by Paul Eggert on 2005-11-26.
64395
64396 2006-01-24  Bruno Haible  <bruno@clisp.org>
64397
64398         * gnulib-tool (func_import): Avoid constructing complicated sed
64399         expressions inside backquote.
64400         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64401
64402 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64403
64404         These changes imported from libc.
64405         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64406         test and two separate function calls.
64407         * lib/strndup.c (__strndup): Add libc_hidden_def.
64408
64409 2006-01-23  Simon Josefsson  <jas@extundo.com>
64410
64411         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64412         Remove the test_*_SOURCES variable: automake infers it by default.
64413         * modules/tls-tests: Likewise.
64414
64415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         Work around porting bugs reported by Dieter in
64418         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64419         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64420         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64421         Include "getopt.h" first, to check interface.
64422         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64423         !HAVE_DECL_GETENV.
64424         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64425         (__strndup): Revert to K&R-style function dfns, the glibc style.
64426         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64427         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64428         Include strnlen.h first, to get prototype properly.
64429         (strnlen): Renamed from __strnlen.
64430         Remove weak alias.
64431
64432 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64433
64434         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64435
64436 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         * config/srclist.txt: Adjust to reflect glibc reorganization.
64439         This affects only comments.
64440
64441 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64442
64443          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64444          Reported by Bruce Korb <bkorb@gnu.org>.
64445
64446 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64447
64448         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64449         to pacify gcc -Wswitch-default.
64450
64451 2006-01-22  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64454         temporary buffer for sprintf, take into account the precision also
64455         for 'd', 'i', 'u', 'o', 'x', 'X'.
64456
64457 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64458
64459         * modules/argp-tests: New module
64460         * tests/test-argp.c: New file
64461         * tests/test-argp-2.sh: New file
64462
64463 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64464
64465         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64466         (__argp_base_name): Removed
64467         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64468         typo.
64469         (__argp_base_name): Provide macro definition or extern declaration
64470         depending on the configuration
64471
64472 2006-01-20  Simon Josefsson  <jas@extundo.com>
64473
64474         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64475
64476 2006-01-20  Simon Josefsson  <jas@extundo.com>
64477
64478         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64479
64480 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64483         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64484         Suggested by Bruno Haible.
64485
64486 2006-01-20  Karl Berry  <karl@gnu.org>
64487
64488         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64489         until changes propagate, I guess.
64490
64491 2006-01-19  Simon Josefsson  <jas@extundo.com>
64492
64493         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64494
64495 2006-01-19  Simon Josefsson  <jas@extundo.com>
64496
64497         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64498
64499 2006-01-19  Simon Josefsson  <jas@extundo.com>
64500
64501         * gnulib-tool: Set check_PROGRAMS.
64502
64503         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64504         modules/des-tests, modules/gc-arcfour-tests,
64505         modules/gc-arctwo-tests, modules/gc-des-tests,
64506         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64507         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64508         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64509         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64510         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64511         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64512         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64513         test_*_SOURCES.
64514
64515 2006-01-18  Simon Josefsson  <jas@extundo.com>
64516
64517         * modules/socklen (Depends-on): Depend on sys_socket.
64518
64519 2006-01-18  Simon Josefsson  <jas@extundo.com>
64520
64521         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64522         modules/des-tests, modules/gc-arcfour-tests,
64523         modules/gc-arctwo-tests, modules/gc-des-tests,
64524         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64525         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64526         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64527         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64528         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64529         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64530         $(EXEEXT) to automake TESTS variable, for mingw32.
64531
64532 2006-01-17  Simon Josefsson  <jas@extundo.com>
64533
64534         * modules/socklen (Include): Need sys/socket.h.
64535
64536 2006-01-17  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/ssize_t (Include): Add <sys/types.h>.
64539
64540 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64543         it's not portable and it doesn't work with cross-compiles.
64544         Problem reported by Bruno Haible.  Fix missing-$ typo in
64545         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64546         -zignore from being used with Sun's C compiler.
64547
64548 2006-01-12  Simon Josefsson  <jas@extundo.com>
64549
64550         * lib/base64.c: Fix warning, reported by Bruno Haible
64551         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64552
64553 2006-01-12  Bruno Haible  <bruno@clisp.org>
64554
64555         * modules/ldd: New file.
64556         * build-aux/ldd.sh.in: New file.
64557         * MODULES.html.sh (Support for building libraries and executables): Add
64558         ldd.
64559
64560 2006-01-12  Bruno Haible  <bruno@clisp.org>
64561
64562         * m4/ldd.m4: New file.
64563
64564 2006-01-12  Bruno Haible  <bruno@clisp.org>
64565
64566         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64567         endless loop while replacing $auxdir with build-aux.
64568
64569 2006-01-11  Simon Josefsson  <jas@extundo.com>
64570
64571         * lib/stdint_.h (SIZE_MAX): Add missing (.
64572
64573 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64574
64575         Sync from coreutils.
64576         * lib/md5.c: Fix commentary typos.
64577         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64578         * lib/md5.h (__attribute__): Remove; unused.
64579         * lib/sha1.c: Fix commentary to match md5 better.
64580         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64581         so that we don't need to worry about alignment.  All uses changed.
64582         This merges the 2005-10-28 md5 change into sha1.
64583
64584 2006-01-11  Jim Meyering  <jim@meyering.net>
64585
64586         Sync from coreutils.
64587         * lib/md5.c (OP): Fix spacing.
64588
64589 2006-01-11  Bruno Haible  <bruno@clisp.org>
64590
64591         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64592         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64593         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64594
64595 2006-01-11  Bruno Haible  <bruno@clisp.org>
64596
64597         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64598         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64599         the "early" section as well.
64600
64601 2006-01-11  Bruno Haible  <bruno@clisp.org>
64602
64603         Avoid "ar: no archive members specified" error on MacOS X.
64604         * gnulib-tool (func_modules_add_dummy): New function.
64605         (func_import, func_create_testdir): Invoke it.
64606
64607 2006-01-11  Bruno Haible  <bruno@clisp.org>
64608
64609         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64610         with $auxdir in AC_CONFIG_FILES statements.
64611
64612 2006-01-11  Bruno Haible  <bruno@clisp.org>
64613
64614         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64615         Initialize also noinst_HEADERS to empty.
64616
64617 2006-01-11  Bruno Haible  <bruno@clisp.org>
64618
64619         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64620         variables.
64621         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64622         autoreconf.
64623
64624 2006-01-11  Bruno Haible  <bruno@clisp.org>
64625
64626         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64627         overridable by the user.
64628         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64629
64630 2006-01-10  Simon Josefsson  <jas@extundo.com>
64631
64632         * modules/sys_socket: New file.
64633
64634 2006-01-10  Simon Josefsson  <jas@extundo.com>
64635
64636         * m4/sys_socket_h.m4: New file.
64637
64638 2006-01-10  Simon Josefsson  <jas@extundo.com>
64639
64640         * lib/socket_.h: New file.
64641
64642 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64643
64644         * modules/readutmp (Maintainer): Add myself.
64645
64646 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64649         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64650         People who are still concerned with buggy memcmp implementations
64651         can invoke gl_FUNC_MEMCMP themselves.
64652
64653 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * lib/regex_internal.h (BITSET_WORD_BITS):
64656         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64657         preprocessor mishandles large unsigned values as if they were signed.
64658         Problem reported by Claudio Fontana in
64659         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64660
64661 2006-01-10  Jim Meyering  <jim@meyering.net>
64662
64663         Avoid the double-free (first in fts_read, second in fts_close) that
64664         would occur when an `active' directory is made inaccessible (e.g.,
64665         via chmod a-x) during a traversal.
64666         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64667         before returning.  Reproduce this failure by
64668         mkdir -p a/b; cd a; chmod a-x . b
64669         Reported by Stavros Passas.
64670
64671         Sync from coreutils.
64672         * lib/sha1.c: Tweak grammar in a comment.
64673
64674 2006-01-10  Jim Meyering  <jim@meyering.net>
64675
64676         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64677         Patch by Joerg Sonnenberger.
64678
64679 2006-01-10  Bruno Haible  <bruno@clisp.org>
64680
64681         * modules/readutmp: Depend on module free.
64682         * modules/strtok_r: Depend on module restrict.
64683
64684 2006-01-10  Bruno Haible  <bruno@clisp.org>
64685
64686         * modules/gettext (configure.ac): Add an invocation of
64687         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64688
64689 2006-01-10  Bruno Haible  <bruno@clisp.org>
64690
64691         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64692         Reported by Werner Lemberg <wl@gnu.org>.
64693
64694 2006-01-10  Bruno Haible  <bruno@clisp.org>
64695
64696         * lib/localcharset.c: Update from GNU gettext.
64697
64698 2006-01-10  Bruno Haible  <bruno@clisp.org>
64699
64700         * lib/argp.h (__const): Remove macro. Use const instead.
64701         * lib/argp-fmtstream.h (__const): Likewise.
64702         * lib/glob_.h (__const): Remove macro.
64703         * lib/glob-libc.h: Use const instead of __const.
64704
64705 2006-01-10  Bruno Haible  <bruno@clisp.org>
64706
64707         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64708         variable.
64709         Needed to avoid an automake error regarding the 'gettext' module.
64710
64711 2006-01-09  Simon Josefsson  <jas@extundo.com>
64712
64713         * modules/inet_ntop (Depends-on): Add restrict.
64714
64715 2006-01-09  Simon Josefsson  <jas@extundo.com>
64716
64717         * modules/gc-rijndael-tests (License): Put under LGPL.
64718
64719         * modules/gc-des-tests (License): Likewise.
64720
64721         * modules/gc-arcfour-tests (License): Likewise.
64722
64723         * modules/gc-arctwo-tests (License): Likewise.
64724
64725         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64726
64727         * modules/gc-hmac-sha1-tests (Files): Likewise.
64728
64729         * modules/gc-hmac-md5-tests (License): Likewise.
64730
64731         * modules/gc-sha1-tests (License): Likewise.
64732
64733         * modules/gc-md5-tests (License): Likewise.
64734
64735         * modules/gc-md4-tests (License): Likewise.
64736
64737         * modules/gc-md2-tests (License): Likewise.
64738
64739         * modules/gc-tests (License): Likewise.
64740
64741         * modules/des-tests (License): Likewise.
64742
64743         * modules/md4-tests (License): Likewise.
64744
64745         * modules/md2-tests (License): Likewise.
64746
64747 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64748
64749         Sync from coreutils:
64750
64751         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64752         * modules/lib-ignore: New file.
64753         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64754         chdir-safer.m4, lchmod.m4.
64755         * modules/openat: Add mkdirat.c, openat-priv.h.
64756
64757 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         Sync from coreutils.
64760         * m4/lib-ignore.m4: New file.
64761         * m4/lchmod.m4: New file.
64762
64763 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         Sync from coreutils.
64766         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64767         for write access: POSIX says that must fail.
64768         * lib/fts.c (diropen): Likewise.
64769         * lib/save-cwd.c (save_cwd): Likewise.
64770         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64771         well, for minor improvements on hosts that lack O_DIRECTORY.
64772         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64773         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64774         Fall back on chown if open failed with EACCES.
64775
64776         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64777         Report an error at compile-time if only a 1-second nominal clock
64778         resolution is found.
64779
64780         * lib/lchmod.h: New file.
64781         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64782         (make_dir_parents): Use lchown rather than chown, and
64783         lchmod rather than chmod.
64784
64785         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64786         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64787         "proc" reported by n0dalus.
64788
64789         * lib/mountlist.c: Include <limits.h>.
64790         (dev_from_mount_options)
64791         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64792         New function.  It no longer assumes "dev=" has the System V meaning
64793         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64794         (read_file_system_list)
64795         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64796         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64797         dev= in that case.
64798
64799         * lib/posixtm.h (PDS_PRE_2000): New macro.
64800         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64801         allow_century.  All usages changed.  Reject dates outside the range
64802         1969-1999 if PDS_PRE_2000 is used.
64803
64804 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         Sync from coreutils.
64807         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64808         (Time of day items): Mention the possibility of leap seconds.
64809         Problem reported by Dr. David Alan Gilbert.
64810
64811 2006-01-09  Jim Meyering  <jim@meyering.net>
64812
64813         Sync from coreutils.
64814
64815         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64816
64817         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64818
64819         * lib/modechange.c (mode_compile): Reject an invalid mode string
64820         that starts with an octal digit.  From Andreas Gruenbacher.
64821
64822         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64823         and dup to open_safer and dup_safer, respectively.
64824         (openat_permissive): Fix typo in comment.
64825
64826         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64827         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64828         (_): Remove; no longer needed.
64829         (openat): Renamed from rpl_openat; no need for rpl_openat
64830         since openat.h renames openat for us.
64831         Replace most of the body with a call to openat_permissive,
64832         to avoid duplicate code.
64833         Port to (probably hypothetical) environments were mode_t is
64834         wider than int.
64835         (openat_permissive): Require mode arg, so that we can check
64836         types better.  Put it just after flags.  Change cwd failure
64837         indicator from pointer-to-bool to pointer-to-errno-value.
64838         All callers changed.
64839         Invoke openat_save_fail and/or openat_restore_fail if
64840         cwd_errno is null, so that openat can call us.
64841         (openat_permissive, fdopendir, fstatat, unlinkat):
64842         Simplify errno handling to avoid some duplicate code,
64843         as it's OK to set errno on success.
64844         * lib/openat.h: Revamp code so that function macros depend on
64845         __OPENAT_PREFIX only, not also on AT_FDCWD.
64846         (openat_ro): Remove.  Caller changed to use openat_permissive.
64847         (openat_permissive): Now a macro, if not a function.
64848         (openat_restore_fail, openat_save_fail): Now always functions,
64849         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64850
64851         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64852         and openat.c.
64853         * lib/mkdirat.c: Include openat-priv.h.
64854         Remove definitions of macros defined therein.
64855         * lib/openat.c: Likewise.
64856
64857         * lib/mkdirat.c (mkdirat): New file and function.
64858         * lib/openat.h (mkdirat): Declare.
64859
64860         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64861
64862         * lib/openat.h (openat_permissive): Declare.
64863         (openat_ro): Define.
64864
64865         * lib/openat.c (EXPECTED_ERRNO): New macro.
64866         (openat_permissive): New function -- used in remove.c rewrite.
64867         (all functions): Set errno just before returning, only if there
64868         was an actual failure.
64869         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64870
64871         Emulate openat-family functions using Linux's procfs, if possible.
64872         Idea and some code based on Ulrich Drepper's glibc changes.
64873
64874         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64875         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64876         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64877         before falling back on save_cwd and restore_cwd.
64878         (fdopendir, fstatat, unlinkat): Likewise.
64879
64880         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64881         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64882
64883         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64884         as second argument to va_arg.  Otherwise, some versions of gcc
64885         warn that `if this code is reached, the program will abort'.
64886
64887 2006-01-09  Jim Meyering  <jim@meyering.net>
64888
64889         Sync from coreutils.
64890         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64891         Require openat-priv.h.
64892
64893 2006-01-09  Bruno Haible  <bruno@clisp.org>
64894
64895         * modules/strnlen (Include): Use strnlen.h.
64896
64897 2006-01-09  Bruno Haible  <bruno@clisp.org>
64898
64899         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64900
64901 2006-01-09  Bruno Haible  <bruno@clisp.org>
64902
64903         * lib/sysexit_.h (EX_OK): New macro.
64904         Suggested by Martin Lambers <marlam@marlam.de>.
64905
64906 2006-01-09  Bruno Haible  <bruno@clisp.org>
64907
64908         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64909         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64910
64911 2006-01-09  Bruno Haible  <bruno@clisp.org>
64912
64913         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64914         numbers.
64915
64916 2006-01-09  Bruno Haible  <bruno@clisp.org>
64917
64918         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64919         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64920         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64921         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64922
64923 2006-01-09  Bruno Haible  <bruno@clisp.org>
64924
64925         * build-aux/javacomp.sh.in: New file, moved from lib/.
64926         * modules/javacomp-script (Files): Update.
64927         (configure.ac): Add AC_CONFIG_FILES invocation.
64928         (EXTRA_DIST): Remove variable.
64929
64930         * build-aux/javaexec.sh.in: New file, moved from lib/.
64931         * modules/javaexec (Files): Update.
64932         (configure.ac): Add AC_CONFIG_FILES invocation.
64933         (EXTRA_DIST): Remove javaexec.sh.in.
64934
64935         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64936         * modules/csharpcomp-script (Files): Update.
64937         (configure.ac): Add AC_CONFIG_FILES invocation.
64938         (EXTRA_DIST): Remove variable.
64939
64940         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64941         * modules/csharpexec (Files): Update.
64942         (configure.ac): Add AC_CONFIG_FILES invocation.
64943         (EXTRA_DIST): Remove csharpexec.sh.in.
64944
64945 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64946
64947         Sync from coreutils.
64948
64949         Add POSIX ACL support
64950         * lib/acl.h (copy_acl, set_acl): Add declarations.
64951         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64952         systems other than Linux.
64953         (chmod_or_fchmod): New function: use fchmod when possible,
64954         and chmod otherwise.
64955         (file_has_acl): Add a POSIX ACL implementation, with a
64956         Linux-specific subcase.
64957         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64958         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64959         acls are unsupported.
64960         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64961         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64962         are unsupported.
64963
64964 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64965
64966         Sync from coreutils.
64967         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64968
64969 2006-01-07  Bruno Haible  <bruno@clisp.org>
64970
64971         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64972         gl_EARLY.
64973
64974 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64977         Problem reported for Mingw by Mark Junker.
64978
64979 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * README: Gnulib normally doesn't generate a tarball.
64982
64983 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64984
64985         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64986         long int, not int, for nanosecond counts, so that people who are
64987         used to POSIX struct timespec won't be surprised.  Reported by Jim
64988         Meyering.
64989
64990 2005-12-28  Bruno Haible  <bruno@clisp.org>
64991
64992         * build-aux/config.rpath: Update from GNU gettext.
64993
64994 2005-12-16  Jim Meyering  <jim@meyering.net>
64995
64996         * modules/fprintftime: New module.
64997         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64998
64999 2005-12-16  Jim Meyering  <jim@meyering.net>
65000
65001         * m4/fprintftime.m4: New file.
65002
65003 2005-12-16  Jim Meyering  <jim@meyering.net>
65004
65005         * lib/fprintftime.c, lib/fprintftime.h: New files.
65006
65007 2005-12-15  Simon Josefsson  <jas@extundo.com>
65008
65009         * modules/socklen (configure.ac): Fix M4 macro name, to align with
65010         new m4/socklen.m4.
65011
65012 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65013
65014         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
65015         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
65016
65017 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65018
65019         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
65020         * lib/argp-help.c (fill_in_uparams): Check if the constructed
65021         struct uparams is valid. Fall back to the default values if it is
65022         not.
65023
65024 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65025
65026         * modules/argp (Files): Add argp-pin.c
65027         (Depends-on): dirname
65028         (lib_SOURCES): Add argp-pin.c
65029
65030 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65031
65032         * m4/argp.m4:  Check if program_invocation_name and
65033         program_invocation_short_name are declared and define appropriate
65034         macros if they are not.
65035
65036 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65037
65038         * lib/argp-help.c (__argp_base_name): New function
65039         (__argp_short_program_name): Rewrite using __argp_base_name
65040         * lib/argp-namefrob.h: Define program_invocation_name and
65041         program_invocation_short_name if requested
65042         (__argp_base_name): Add prototype
65043         * lib/argp-parse.c (argp_def): Use gettext wrappers
65044         (argp_default_parser): Use __argp_base_name
65045         * lib/argp-pin.c: New file. Defines program_invocation_name and
65046         program_invocation_short_name on systems that lack them.
65047
65048 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
65051         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65052         porting problem reported by Georg Schwarz in
65053         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65054
65055 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
65056
65057         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
65058         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
65059         porting problem reported by Georg Schwarz in
65060         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
65061
65062 2005-12-05  Bruno Haible  <bruno@clisp.org>
65063
65064         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
65065         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
65066         Reported by Mark Junker <mjscod@gmx.de>.
65067
65068 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
65071         Use implementation from Albert Chin, with some
65072         comments/corrections by Stepan Kasal and myself.
65073
65074 2005-12-02  Bruno Haible  <bruno@clisp.org>
65075
65076         * gnulib-tool (func_import): Accept GPLed build tool modules when
65077         --lgpl is given.
65078         * modules/csharpcomp-script: New file.
65079         * modules/csharpcomp: Depend on it.
65080         * modules/javacomp-script: New file.
65081         * modules/javacomp: Depend on it.
65082         Suggested by Simon Josefsson.
65083
65084 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
65087         statement, to work around an HP-UX 10.20 compiler bug reported by
65088         Peter O'Gorman.
65089
65090 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * modules/savedir (Depends-on): Add openat.
65093
65094 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
65097         (uintmax_t) [defined uintmax_t]: Do not declare.
65098         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
65099         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
65100         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
65101         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
65102         sake of portability to weird hosts that C allows (though we don't
65103         know of any practical examples).
65104
65105         * lib/savedir.h (fdsavedir): New decl.
65106         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
65107         contains most of the former guts of savedir.
65108         (savedir): Use savedirstream.
65109         Include "openat.h".
65110
65111 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * modules/obstack (Files): Add m4/ulonglong.m4.
65114         Problem reported by Davide Angelocola.
65115
65116 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
65119         coreutils no longer futzes with rounding modes.
65120
65121 2005-11-14  Jim Meyering  <jim@meyering.net>
65122
65123         * lib/mkstemp-safer.c: Include <config.h>, required for possible
65124         replacement of mkstemp.
65125
65126 2005-11-10  Simon Josefsson  <jas@extundo.com>
65127
65128         * lib/readline.c: Remove EOL.
65129
65130 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * modules/gethrxtime (Depends-on): Add gettime.
65133
65134 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
65137         or gettimeofday; no longer needed.
65138
65139 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
65140
65141         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
65142         time business.
65143         (gethrxtime) [! (HAVE_NANOUPTIME
65144         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
65145         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
65146         our own approximation.
65147
65148 2005-11-08  Eric Blake  <ebb9@byu.net>
65149
65150         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65151
65152 2005-11-08  Eric Blake  <ebb9@byu.net>
65153
65154         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
65155
65156 2005-11-04  Bruno Haible  <bruno@clisp.org>
65157
65158         * gnulib-tool: Implement --update mode.
65159
65160 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         Fix porting problem reported by Theodoros V. Kalamatianos.
65163         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
65164         Don't assume that futimes failing means we must fail.
65165
65166 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
65169         variables to suggest the intended function of the PATH_MAX check.
65170
65171 2005-10-30  Kean Johnston  <jkj@sco.com>
65172
65173         Trivial changes to support SCO systems.
65174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
65175         as PATH_MAX.
65176         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
65177         where __ptr is null when no I/O is pending.
65178
65179 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
65182         leave errno alone.  Problem reported by Dmitry V. Levin.
65183
65184 2005-10-28  Simon Josefsson  <jas@extundo.com>
65185
65186         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
65187         Test more.
65188
65189         * tests/test-gc-md2.c, tests/test-md2.c: New files.
65190
65191         * modules/md2, modules/md2-tests: New files.
65192
65193 2005-10-28  Simon Josefsson  <jas@extundo.com>
65194
65195         * m4/inet_ntop.m4: More tests.
65196
65197         * m4/gc-md2.m4, md2.m4: New file.
65198
65199 2005-10-28  Simon Josefsson  <jas@extundo.com>
65200
65201         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
65202         "restrict" keywords, as per POSIX.  Protect the function
65203         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
65204         Don't use K&R prototypes.  Check the sprintf return values.
65205         Re-define EAFNOSUPPORT if not present.  Indent.
65206
65207         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
65208         suggested by Bruno Haible <bruno@clisp.org>.
65209
65210         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
65211
65212         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
65213
65214         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
65215         libgcrypt).
65216
65217         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
65218
65219         * lib/md2.h, lib/md2.c: New files.
65220
65221 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
65222
65223         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
65224         errno alone.  Problem reported by Frederic Jolliton.
65225
65226 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * modules/verify (License): Change from GPL to LGPL.  This is a
65229         tiny module and there are apparently near-equivalents that are
65230         under the BSD license.
65231
65232 2005-10-24  Simon Josefsson  <jas@extundo.com>
65233
65234         * modules/sha1: Relicense to LGPL.
65235
65236 2005-10-24  Simon Josefsson  <jas@extundo.com>
65237
65238         * lib/md4.h: Shrink buffer size, now that we changed the type.
65239
65240 2005-10-23  Simon Josefsson  <jas@extundo.com>
65241
65242         * gnulib-tool (func_import): Fix --tests-base.
65243
65244 2005-10-22  Simon Josefsson  <jas@extundo.com>
65245
65246         * modules/arcfour (Depends-on): Need stdint.
65247
65248 2005-10-22  Simon Josefsson  <jas@extundo.com>
65249
65250         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
65251         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
65252
65253 2005-10-22  Simon Josefsson  <jas@extundo.com>
65254
65255         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
65256         suggested by Bruno Haible <bruno@clisp.org>.
65257
65258 2005-10-22  Simon Josefsson  <jas@extundo.com>
65259
65260         * lib/crc.h: Include stddef.h, for size_t.
65261
65262 2005-10-22  Simon Josefsson  <jas@extundo.com>
65263
65264         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
65265         arcfour_context struct (simplify test vector testing in GNU
65266         Shishi).
65267
65268 2005-10-21  Simon Josefsson  <jas@extundo.com>
65269
65270         * modules/des, modules/des-tests: New files.
65271
65272         * modules/gc-des, modules/gc-des-tests: New files.
65273
65274         * tests/test-des.c, tests/test-gc-des.c: New file.
65275
65276 2005-10-21  Simon Josefsson  <jas@extundo.com>
65277
65278         * modules/arctwo, modules/arctwo-tests: New files.
65279
65280         * tests/test-arctwo.c: New file.
65281
65282         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
65283
65284         * tests/test-gc-arctwo.c: New file.
65285
65286 2005-10-21  Simon Josefsson  <jas@extundo.com>
65287
65288         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
65289         Bruno Haible <bruno@clisp.org>.
65290
65291         * m4/gc-des.m4: New file.
65292
65293 2005-10-21  Simon Josefsson  <jas@extundo.com>
65294
65295         * m4/arctwo.m4: New file.
65296
65297         * m4/gc-arctwo.m4: New file.
65298
65299 2005-10-21  Simon Josefsson  <jas@extundo.com>
65300
65301         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
65302         block.
65303
65304 2005-10-21  Simon Josefsson  <jas@extundo.com>
65305
65306         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
65307         <bruno@clisp.org>.
65308
65309         * lib/hmac-sha1.c (hmac_sha1): Likewise.
65310
65311         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
65312         Bruno Haible <bruno@clisp.org>.
65313
65314         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
65315         <bruno@clisp.org>.
65316
65317 2005-10-21  Simon Josefsson  <jas@extundo.com>
65318
65319         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
65320
65321 2005-10-21  Simon Josefsson  <jas@extundo.com>
65322
65323         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
65324
65325 2005-10-21  Simon Josefsson  <jas@extundo.com>
65326
65327         * lib/des.h, lib/des.c: New files.
65328
65329         * lib/gc-gnulib.c: Support DES.c
65330
65331 2005-10-21  Simon Josefsson  <jas@extundo.com>
65332
65333         * lib/arctwo.h, lib/arctwo.c: New files.
65334
65335         * lib/gc-gnulib.c: Support ARCTWO.
65336
65337 2005-10-21  Simon Josefsson  <jas@extundo.com>
65338
65339         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65340         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65341
65342 2005-10-21  Simon Josefsson  <jas@extundo.com>
65343
65344         * gnulib-tool (func_import, func_create_testdir): Define automake
65345         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65346         Makefile.am snippet),
65347         suggested by Bruno Haible <bruno@clisp.org>.
65348
65349         * modules/gc (Makefile.am): Use it.
65350
65351 2005-10-21  Bruno Haible  <bruno@clisp.org>
65352
65353         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65354         patch.
65355
65356 2005-10-19  Simon Josefsson  <jas@extundo.com>
65357
65358         * tests/test-gc-rijndael.c: New file.
65359
65360         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65361
65362 2005-10-19  Simon Josefsson  <jas@extundo.com>
65363
65364         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65365         interface too.
65366
65367 2005-10-19  Simon Josefsson  <jas@extundo.com>
65368
65369         * tests/test-gc-arcfour.c: New file.
65370
65371         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65372
65373 2005-10-19  Simon Josefsson  <jas@extundo.com>
65374
65375         * modules/gc-md4, modules/gc-md4-tests: New file.
65376
65377         * tests/test-gc-md4.c: New file.
65378
65379 2005-10-19  Simon Josefsson  <jas@extundo.com>
65380
65381         * m4/gc-md4.m4: New file.
65382
65383 2005-10-19  Simon Josefsson  <jas@extundo.com>
65384
65385         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65386         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65387         <kasal@ucw.cz>.
65388
65389 2005-10-19  Simon Josefsson  <jas@extundo.com>
65390
65391         * m4/gc-arcfour.m4: New file.
65392
65393         * m4/gc-rijndael.m4: New file.
65394
65395 2005-10-19  Simon Josefsson  <jas@extundo.com>
65396
65397         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65398
65399 2005-10-19  Simon Josefsson  <jas@extundo.com>
65400
65401         * lib/gc-gnulib.c: Support ARCFOUR.
65402
65403 2005-10-19  Simon Josefsson  <jas@extundo.com>
65404
65405         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65406         support.
65407
65408         * lib/gc.h: Add ECB enum type.
65409
65410         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65411
65412 2005-10-18  Simon Josefsson  <jas@extundo.com>
65413
65414         * tests/test-md5.c: New file.
65415
65416         * modules/md5-tests: New file.
65417
65418 2005-10-18  Simon Josefsson  <jas@extundo.com>
65419
65420         * tests/test-md4.c: New file.
65421
65422         * modules/md4, modules/md4-tests: New files.
65423
65424 2005-10-18  Simon Josefsson  <jas@extundo.com>
65425
65426         * m4/md4.m4: New file.
65427
65428 2005-10-18  Simon Josefsson  <jas@extundo.com>
65429
65430         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65431
65432 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65433
65434         * gnulib-tool (func_create_testdir): Omit the second check whether
65435         BUILT_SOURCES in nonempty.
65436
65437 2005-10-17  Simon Josefsson  <jas@extundo.com>
65438
65439         * tests/test-rijndael.c: New file.
65440
65441 2005-10-17  Simon Josefsson  <jas@extundo.com>
65442
65443         * modules/sha1: Depend on stdint instead of md5.
65444
65445         * modules/md5: Depend on stdint, remove uint32_t.
65446
65447 2005-10-17  Simon Josefsson  <jas@extundo.com>
65448
65449         * modules/gc-sha1-tests: New file.
65450
65451         * tests/test-gc-sha1.c: New file.
65452
65453 2005-10-17  Simon Josefsson  <jas@extundo.com>
65454
65455         * m4/md5.m4: Remove call to uint32_t.m4.
65456
65457 2005-10-17  Simon Josefsson  <jas@extundo.com>
65458
65459         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65460
65461         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65462         md5.h.
65463
65464         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65465
65466         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65467
65468 2005-10-17  Simon Josefsson  <jas@extundo.com>
65469
65470         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65471
65472 2005-10-17  Simon Josefsson  <jas@extundo.com>
65473
65474         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65475
65476 2005-10-17  Simon Josefsson  <jas@extundo.com>
65477
65478         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65479
65480         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65481
65482 2005-10-17  Bruno Haible  <bruno@clisp.org>
65483
65484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65485         that it can also be used in a test.
65486
65487 2005-10-16  Bruno Haible  <bruno@clisp.org>
65488
65489         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65490         TESTS_ENVIRONMENT, so that individual tests can augment it.
65491
65492         * gnulib-tool (func_create_testdir): Use an intermediate target for
65493         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65494         macros, like $(ALLOCA_H), which cannot be passed through the command
65495         line.
65496
65497 2005-10-15  Simon Josefsson  <jas@extundo.com>
65498
65499         * modules/rijndael-tests: New file.
65500
65501         * modules/rijndael: New file.
65502
65503 2005-10-15  Simon Josefsson  <jas@extundo.com>
65504
65505         * m4/rijndael.m4: New file.
65506
65507 2005-10-15  Simon Josefsson  <jas@extundo.com>
65508
65509         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65510
65511         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65512
65513 2005-10-14  Simon Josefsson  <jas@extundo.com>
65514
65515         * tests/test-arcfour.c: New file.
65516
65517         * modules/arcfour, modules/arcfour-tests: New files.
65518
65519 2005-10-14  Simon Josefsson  <jas@extundo.com>
65520
65521         * m4/arcfour.m4: New file.
65522
65523 2005-10-14  Simon Josefsson  <jas@extundo.com>
65524
65525         * lib/arcfour.h, lib/arcfour.c: New files.
65526
65527 2005-10-14  Roland McGrath  <roland@redhat.com>
65528
65529         Import from libc.  [BZ #1331]
65530         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65531         macro argument.
65532         Reported by Matej Vela <vela@debian.org>.
65533
65534 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65537         include <wchar.h>; no longer needed.
65538
65539 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65540
65541         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65542
65543 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65544         and  Ulrich Drepper  <drepper@redhat.com>
65545
65546         Import from libc.
65547         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65548         instead of inline stream orientation test and two separate
65549         function calls.  Pay no attention to USE_IN_LIBIO.
65550
65551 2005-10-13  Simon Josefsson  <jas@extundo.com>
65552
65553         * modules/gc-hmac-md5-tests: New file.
65554
65555         * tests/test-gc-hmac-sha1.c: New file.
65556
65557         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65558
65559         * modules/gc-hmac-md5-tests: New file.
65560
65561         * tests/test-gc-md5.c: New file.
65562
65563         * modules/gc-md5-tests: New file.
65564
65565 2005-10-13  Simon Josefsson  <jas@extundo.com>
65566
65567         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65568         Move memory allocation outside of loop.
65569
65570 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65573         intermediate directory is in a read-only file system.  Problem
65574         reported by Eric Blake.
65575
65576 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65577
65578         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65579
65580 2005-10-12  Simon Josefsson  <jas@extundo.com>
65581
65582         * tests/test-hmac-sha1.c: New file.
65583
65584         * modules/hmac-sha1-tests: New file.
65585
65586         * modules/hmac-sha1: New file.
65587
65588 2005-10-12  Simon Josefsson  <jas@extundo.com>
65589
65590         * modules/gc-sha1: New file.
65591
65592 2005-10-12  Simon Josefsson  <jas@extundo.com>
65593
65594         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65595
65596         * tests/test-gc-pbkdf2-sha1.c: New file.
65597
65598 2005-10-12  Simon Josefsson  <jas@extundo.com>
65599
65600         * modules/gc-md5, modules/gc-hmac-md5: New files.
65601
65602         * modules/gc (Files): Remove md5, memxor and hmac files.
65603
65604 2005-10-12  Simon Josefsson  <jas@extundo.com>
65605
65606         * m4/gc-pbkdf2-sha1.m4: New file.
65607
65608         * m4/gc-hmac-sha1.m4: New file.
65609
65610         * m4/gc-sha1: New file.
65611
65612         * m4/hmac-sha1.m4: New file.
65613
65614 2005-10-12  Simon Josefsson  <jas@extundo.com>
65615
65616         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65617
65618         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65619
65620 2005-10-12  Simon Josefsson  <jas@extundo.com>
65621
65622         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65623         suggested by Bruno Haible <bruno@clisp.org>.
65624
65625 2005-10-12  Simon Josefsson  <jas@extundo.com>
65626
65627         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65628
65629 2005-10-12  Simon Josefsson  <jas@extundo.com>
65630
65631         * lib/gc-pbkdf2-sha1.c: New file.
65632
65633         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65634
65635 2005-10-12  Simon Josefsson  <jas@extundo.com>
65636
65637         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65638
65639         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65640
65641 2005-10-12  Simon Josefsson  <jas@extundo.com>
65642
65643         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65644         GC_USE_HMAC_MD5, respectively.
65645
65646         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65647         (gc_md5): Fix typo.
65648
65649         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65650
65651         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65652
65653         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65654
65655 2005-10-12  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65658         Reported by Stepan Kasal <kasal@ucw.cz>.
65659
65660 2005-10-11  Simon Josefsson  <jas@extundo.com>
65661
65662         * tests/test-crc.c: New file.
65663
65664         * modules/crc, modules/crc-tests: New files.
65665
65666 2005-10-11  Simon Josefsson  <jas@extundo.com>
65667
65668         * m4/crc.m4: New file.
65669
65670 2005-10-11  Simon Josefsson  <jas@extundo.com>
65671
65672         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65673
65674         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65675
65676         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65677
65678 2005-10-11  Simon Josefsson  <jas@extundo.com>
65679
65680         * lib/crc.h, lib/crc.c: New files.
65681
65682         * lib/gc.h (gc_hash_buffer): Add doc.
65683
65684 2005-10-11  Bruno Haible  <bruno@clisp.org>
65685
65686         * modules/c-strcasestr: New file.
65687         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65688
65689 2005-10-11  Bruno Haible  <bruno@clisp.org>
65690
65691         * modules/c-strcase: New file.
65692         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65693
65694 2005-10-11  Bruno Haible  <bruno@clisp.org>
65695
65696         * lib/strcasecmp.c: Include limits.h.
65697         (strcasecmp): Avoid integer overflow on exotic platforms.
65698         * lib/strncasecmp.c: Include limits.h.
65699         (strncasecmp): Avoid integer overflow on exotic platforms.
65700         Reported by Paul Eggert.
65701
65702 2005-10-11  Bruno Haible  <bruno@clisp.org>
65703
65704         * lib/c-strcasestr.h: New file, from GNU gettext.
65705         * lib/c-strcasestr.c: New file, from GNU gettext.
65706
65707 2005-10-11  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/c-strcase.h: New file, from GNU gettext.
65710         * lib/c-strcasecmp.c: New file, from GNU gettext.
65711         * lib/c-strncasecmp.c: New file, from GNU gettext.
65712
65713 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65714
65715         * modules/mempcpy (License): GPL -> LGPL.
65716         * modules/strchrnul (License): Likewise.
65717         * modules/sysexits (License): Likewise.
65718
65719 2005-10-08  Simon Josefsson  <jas@extundo.com>
65720
65721         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65722
65723 2005-10-07  Simon Josefsson  <jas@extundo.com>
65724
65725         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65726
65727 2005-10-06  Simon Josefsson  <jas@extundo.com>
65728
65729         * tests/test-hmac-md5.c: New file.
65730
65731         * modules/hmac-md5-tests: New file.
65732
65733         * modules/hmac-md5: New file.
65734
65735 2005-10-06  Simon Josefsson  <jas@extundo.com>
65736
65737         * m4/hmac-md5.m4: New file.
65738
65739         * m4/memxor.m4: Require gl_C_RESTRICT.
65740
65741 2005-10-06  Simon Josefsson  <jas@extundo.com>
65742
65743         * lib/memxor.c (memxor): Avoid casts and warnings.
65744
65745 2005-10-06  Simon Josefsson  <jas@extundo.com>
65746
65747         * lib/hmac-md5.c: New file.
65748
65749         * lib/hmac.h: New file.
65750
65751 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65754         promotes to int, not unsigned int, to catch the AIX 5.3
65755         compiler bug.
65756
65757 2005-10-05  Simon Josefsson  <jas@extundo.com>
65758
65759         * modules/memxor: New file.
65760
65761         * modules/iconv (Files): Move config.rpath to havelib, it is used
65762         there.
65763
65764         * modules/havelib (Files): Add config.rpath.
65765
65766 2005-10-05  Simon Josefsson  <jas@extundo.com>
65767
65768         * m4/memxor.m4: New file.
65769
65770 2005-10-05  Simon Josefsson  <jas@extundo.com>
65771
65772         * lib/memxor.c (memxor): Fix compiler error.
65773
65774         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65775         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65776
65777         * lib/memxor.h, lib/memxor.c: New files.
65778
65779         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65780         we assume all systems have it, suggested by Jim Meyering
65781         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65782         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65783         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65784         same reasons.
65785
65786 2005-10-05  Simon Josefsson  <jas@extundo.com>
65787
65788         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65789
65790 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65791
65792         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65793         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65794         needed, since the source code now assumes these .h files.
65795
65796 2005-10-05  Derek Price  <derek@ximbiot.com>
65797
65798         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65799
65800 2005-10-05  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/stdint (License): Change to LGPL.
65803
65804 2005-10-04  Simon Josefsson  <jas@extundo.com>
65805
65806         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65807         D. Baushke" <mdb@gnu.org>.
65808
65809 2005-10-04  Bruno Haible  <bruno@clisp.org>
65810
65811         * lib/verify.h (verify_true): Provide alternative definition for C++.
65812
65813 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65816         (SSIZE_MAX): New macro, if not already defined.
65817         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65818         than 2 GiB.
65819
65820 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         Sync from coreutils.
65823         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65824         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65825         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65826         ULLONG_MAX doesn't work with 2.7.2.1.
65827
65828 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65831         From Ben Pfaff.
65832
65833         * modules/exclude (Depends-on): Depend on verify.
65834         * modules/strtoimax (Depends-on): Likewise.
65835         * modules/utimecmp (Depends-on): Likewise.
65836
65837 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * lib/exclude.c: Include verify.h.
65840         (verify): Remove.  All callers changed to use verify.h's version.
65841         * lib/strtoimax.c: Likewise.
65842         * lib/utimecmp.c: Likewis.e
65843
65844         Sync from coreutils.
65845         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65846         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65847         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65848         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65849         bother returning ENOSYS if settimeofday or stime fails; just let
65850         them return whatever errno they want to return.
65851         * lib/utimens.c: Include unistd.h, for dup2.
65852         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65853         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65854
65855 2005-10-02  Jim Meyering  <jim@meyering.net>
65856
65857         Sync from coreutils.
65858         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65859         from glibc-2.2.5 that fails for read-only files.
65860
65861 2005-10-02  Jim Meyering  <jim@meyering.net>
65862
65863         Sync from coreutils.
65864         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65865         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65866         `#if HAVE_CONFIG_H'.
65867         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65868         Remove AT_FDCWD test.
65869         Do not consume the fd unless successful.
65870         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65871         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65872         block, so that we don't even try to compile it if settimeofday is
65873         available.  This works around a compilation failure on OSF1 V5.1,
65874         due to stime requiring a `long int*' while tv_sec is `int'.
65875
65876 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65877
65878         Sync from coreutils.
65879         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65880         against `yes', rather than just testing for nonempty.
65881
65882 2005-10-01  Simon Josefsson  <jas@extundo.com>
65883
65884         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65885         and Darwin.
65886
65887         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65888         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65889         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65890         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65891         Check if struct addrinfo is declared.
65892
65893 2005-10-01  Simon Josefsson  <jas@extundo.com>
65894
65895         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65896         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65897         AI_* and EAI_* definitions.  Protect function declarations.
65898
65899 2005-10-01  Jim Meyering  <jim@meyering.net>
65900
65901         Sync from coreutils.
65902
65903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65904         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65905         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65907         in the inet and nsl libraries.  Required on Solaris 5.7.
65908
65909 2005-10-01  Jim Meyering  <jim@meyering.net>
65910
65911         Sync from coreutils.
65912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65913         in the inet and nsl libraries.  Required on Solaris 5.7.
65914
65915 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65916
65917         * lib/getdelim.c (getdelim): Remove unused variables.
65918
65919 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65922         so that the code works even with ancient cpp.  Portability problem
65923         with GCC 2.7.2.1 reported by Thomas M.Ott.
65924
65925 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65926
65927         * modules/regex (Depends-on): Add strcase.
65928
65929         * modules/gethostname (Licence): Change from GPL to LGPL, since
65930         gethostname.c is a trivial implementation of a standard library
65931         function.
65932         * modules/poll (License): Change from GPL to LGPL, since it's
65933         derived from LGPL code.
65934
65935 2005-09-27  Jim Meyering  <jim@meyering.net>
65936
65937         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65938         HAVE_CONFIG_H.
65939
65940         * lib/intprops.h (signed_type_or_expr__): Define.
65941         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65942         for unsigned types.
65943
65944 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/verify.h (verify_expr): Remove, replacing with:
65947         (verify_true): New macro that returns true instead of void.
65948         (verify_type__): Remove.
65949         (verify): Use verify_true rather than verify_type__.
65950
65951 2005-09-26  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65954         is necessary.
65955         (lib_SOURCES): Remove mbchar.c.
65956         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65957         (Files): Add m4/mbrtowc.m4.
65958         * modules/mbiter: Likewise.
65959         * modules/mbuiter: Likewise.
65960
65961 2005-09-26  Bruno Haible  <bruno@clisp.org>
65962
65963         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65964         compile mbchar.c if they are not both present.
65965         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65966         * m4/mbiter.m4 (gl_MBITER): Likewise.
65967         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65968         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65969         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65970
65971 2005-09-25  Jim Meyering  <jim@meyering.net>
65972
65973         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65974         also uses socklen_t.
65975
65976 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65977
65978         * lib/utimens.c (ENOSYS): Define if not already defined.
65979         (futimens): Support having a null PATH if the file descriptor
65980         is nonnegative.
65981
65982         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65983         Remove.
65984         (__attribute): Define to empty unless GCC 3.1 or later.
65985         This works around a core dump on OpenBSD 3.4, which has GCC
65986         2.95.3, which dumps core when given __attribute__(()).  It also
65987         simplifies other tests, since we really don't want to bother with
65988         worrying about which ancient version of GCC supported what.
65989         Original problem reported by Yoann Vandoorselaere, with part of
65990         the fix suggested by Derek Price.
65991
65992 2005-09-24  Jim Meyering  <jim@meyering.net>
65993
65994         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65995         so we can once again use a positive bitfield width of 1 -- now we
65996         don't have to explain why we were using a bitfield width of 2.
65997
65998 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
66001         and similarly for the other external symbols.  Problem reported
66002         by James Gallager.
66003
66004         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
66005         bug reported by Jim Meyering.
66006
66007         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
66008         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
66009         not needed, since socklen is a prerequisite module.
66010
66011 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
66014         Problem reported by Eric Blake.
66015         (getaddrinfo): Initialize se so that it's not garbage.
66016         Redo internal storage allocation so that it doesn't make unportable
66017         assumptions about alignment.
66018         Fix a memory leak.
66019
66020         * lib/utimens.c (futimens): Use futimesat if available.
66021         Prefer it to futimes since it doesn't have the futimes bug.
66022
66023         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
66024         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
66025         Instead, declare a function that returns a pointer to an array,
66026         and use verify_type__ to declare the size of the array.
66027         Problem and germ of a solution reported by Bruno Haible.
66028         (verify_type__): Use 2, not 1, for bitfield size, to avoid
66029         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
66030
66031 2005-09-23  Jim Meyering  <jim@meyering.net>
66032
66033         Sync from coreutils.
66034         Correct build failure (socklen_t not defined) on at least
66035         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
66036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
66037
66038 2005-09-23  Jim Meyering  <jim@meyering.net>
66039
66040         * modules/getaddrinfo (Depends-on): Add socklen.
66041
66042 2005-09-23  Bruno Haible  <bruno@clisp.org>
66043
66044         * tests/test-verify.c: New file.
66045
66046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66047
66048         Sync from coreutils.
66049
66050         * modules/argmatch (Depends-on): Add verify.
66051         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
66052         unistd-safer.
66053         * modules/save-cwd (Depends-on): Likewise.
66054
66055         * modules/openat (Files): Add lib/openat-die.c.
66056         (Depends-on): Remove error, exitfail.
66057         Add dirname.
66058
66059         * modules/verify: New file.
66060         * MODULES.html.sh (Diagnostics <assert.h>): New section,
66061         with "verify" module.
66062
66063 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         Sync from coreutils.
66066
66067         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
66068         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
66069         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
66070         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
66071         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
66072         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
66073         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
66074         Don't bother checking for string.h, stdlib.h, unistd.h.
66075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
66076         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
66077         module's job.
66078         * m4/jm-macros.m4 (gl_MACROS): Likewise.
66079         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
66080
66081         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
66082         (gl_GETDATE): Use it.
66083
66084         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
66085
66086 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66087
66088         Sync from coreutils.
66089
66090         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
66091         stat-time.h.
66092         * lib/argmatch.h: Include verify.h
66093         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
66094         (ARGMATCH_ASSERT): Remove; unused.
66095         * lib/canonicalize.c: Assume STDC_HEADERS.
66096         * lib/exclude.c: Include "strcase.h".
66097         * lib/regex_internal.h [!defined _LIBC]: Likewise.
66098         * lib/getusershell.c: Include stdio--.h rather than stdio.h
66099         and stdio-safer.h.
66100         (getusershell): Call fopen, not fopen_safer.
66101         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
66102         Do not include unistd-safer.h.
66103         (save_cwd): Don't call fd_safer; no longer needed
66104         now that we include fcntl--.h.
66105
66106         * lib/getdate.y (relative_time): New type.
66107         (RELATIVE_TIME_0): New constant.
66108         (parser_control): Use relative_time instead of doing it ourselves.
66109         (%union): Add new relative_time rel member.
66110         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
66111         Now typeless.
66112         (relunit, relunit_snumber): Now of type rel.
66113         (zone, rel, relunit, get_date): Adjust to above changes.
66114
66115         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
66116         Do not include unistd-safer.h.
66117         (getloadavg): Don't call fd_safer; no longer needed
66118         now that we include fcntl--.h.
66119
66120         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
66121         (make_dir_parents): Treat ENOSYS like EEXIST.
66122
66123         Improve quality of diagnostics on restore_cwd failure.
66124         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
66125         (make_dir_parents): Last arg is now int * (for errno), not bool *.
66126         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
66127         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
66128         each time through the loop.  Do not diagnose restore_cwd failure;
66129         that is the caller's job (and perhaps the caller does not care).
66130
66131         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
66132         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
66133         If the file already exists but is not a directory, don't bother
66134         to try to make its parents.
66135         Close potential file descriptor leak if we can't chdir("/") (!).
66136         Don't always return true if chdir($PWD) fails; return true only
66137         if the requested action was done successfully (except for the
66138         chdir($PWD)).
66139         Don't log final directory unless we actually made it.
66140         Refactor to avoid duplicate code to fix up permissions.
66141         Don't attempt to fix up parent permissions if chdir($PWD) fails.
66142
66143         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
66144         to make it a bit faster and (I hope) clearer.
66145         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
66146         Fix bug in formats like %2N.
66147
66148         * lib/verify.h: New file.
66149
66150 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
66151
66152         Sync from coreutils.
66153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
66154
66155 2005-09-22  Jim Meyering  <jim@meyering.net>
66156
66157         Sync from coreutils.
66158
66159         * m4/lstat.m4 (gl_FUNC_LSTAT):
66160         Use AC_LIBSOURCES to require lstat.c and lstat.h.
66161         Remove obsolete comment.
66162         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
66163         * m4/xstrtod.m4: Likewise.
66164
66165         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
66166
66167 2005-09-22  Jim Meyering  <jim@meyering.net>
66168
66169         Sync from coreutils.
66170
66171         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
66172
66173         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
66174         the .tm_year member, since otherwise gcc-4.0 would now warn about
66175         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
66176
66177         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
66178         order to avoid an unsuppressible warning from gcc on 64-bit systems.
66179
66180         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
66181         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
66182         when run in a time zone for which daylight savings time is in effect
66183         for the starting date.
66184
66185         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
66186         stop us from restricting permissions of just-created absolute-named
66187         directories.
66188         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
66189         to restore initial working directory.
66190         * lib/mkdir-p.c (make_dir_parents): New parameter:
66191         different_working_dir, to tell caller if/when we change the working
66192         directory and are unable to return to the initial one.
66193         * lib/mkdir-p.h (make_dir_parents): Update prototype.
66194         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
66195         `return false'.  This fixes a bug introduced on 2004-07-30.
66196
66197         * lib/openat.c (fdopendir): Be sure to close the supplied
66198         file descriptor before returning.  This makes our replacement
66199         implementation a little closer to Solaris's, where fdopendir
66200         ties the file descriptor to the returned DIR* pointer.
66201         * lib/openat.c (unlinkat): New function.
66202         * lib/openat.h (unlinkat): Add prototype.
66203         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
66204         (openat_restore_fail): Rename from openat_restore_die.
66205         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
66206
66207         Provide an alternative to exiting immediately upon save_cwd or
66208         restore_cwd failure.  Now, an application can arrange e.g.,
66209         to perform a longjump in that case.
66210         * lib/openat.c: Include dirname.h.
66211         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
66212         (rpl_openat, fdopendir, fstatat): Call openat_save_die
66213         and openat_restore_die rather than calling error directly.
66214         Don't include "error.h" or "exitfail.h"; they're no longer needed.
66215
66216         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
66217         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
66218         define.
66219
66220         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
66221         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
66222                             int utc, int nanoseconds);
66223         Background:
66224         date should not have to allocate a megabyte of virtual memory to
66225         handle a format argument like +%1048575T.  When implemented with
66226         strftime, it must allocate such a buffer, use strftime to fill it
66227         in, print it, then free it.
66228         With fprintftime, it simply prints everything and exits.
66229         With no need for memory allocation, that's one fewer way to fail.
66230         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
66231         optional field width, not before, so we accept %9:z, not %:9z.
66232         (my_strftime): Be sure to use L_('x') for literals.
66233
66234         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
66235         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
66236         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
66237         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
66238         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
66239         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
66240         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
66241         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
66242         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
66243         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
66244         * lib/xgethostname.c, lib/xreadlink.c:
66245         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
66246
66247         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
66248         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
66249         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
66250         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66251         and don't include <sys/file.h>).
66252
66253 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
66254
66255         Sync from coreutils.
66256
66257         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
66258         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
66259         [!LDAV_DONE]: Avoid unused variable warning.
66260
66261 2005-09-21  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/unicodeio.h (unicode_to_mb): New declaration.
66264
66265 2005-09-20  Derek Price  <derek@ximbiot.com>
66266
66267         * lib/getaddrinfo.c: Don't include <netdb.h> included from
66268         getaddrinfo.h.
66269
66270 2005-09-20  Bruno Haible  <bruno@clisp.org>
66271
66272         * gnulib-tool: Remove trailing slashes from the values specified for
66273         --source-base, --m4-base, --tests-base, --aux-dir.
66274         Suggested by Simon Josefsson <jas@extundo.com>.
66275
66276 2005-09-20  Bruno Haible  <bruno@clisp.org>
66277
66278         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
66279         func_modules_to_filelist, func_import, func_create_testdir): Make all
66280         sorting results locale-independent, so that gnulib-cache.m4 doesn't
66281         change when gnulib-tool is invoked in a different locale.
66282
66283 2005-09-19  Simon Josefsson  <jas@extundo.com>
66284
66285         * m4/socklen.m4: Fix typo.
66286
66287 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66288
66289         Use a consistent style for including <config.h>.
66290         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
66291         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
66292         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
66293         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
66294         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
66295         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
66296         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
66297         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
66298         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
66299         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
66300         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
66301         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
66302         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
66303         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
66304         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
66305         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
66306         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
66307         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
66308         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
66309         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
66310         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
66311         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
66312         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
66313         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
66314         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
66315         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
66316         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
66317         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
66318         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
66319         lib/xstrtoumax.c, lib/yesno.c:
66320         Standardize inclusion of config.h.
66321         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
66322         lib/inttostr.h:  Removed inclusion of config.h from header files.
66323         * lib/inttostr.c:  Adjusted in-tree users.
66324         * lib/timespec.h: Remove superfluous warning to include config.h.
66325         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
66326         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
66327         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
66328         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
66329         config.h with HAVE_CONFIG_H.
66330
66331 2005-09-19  Jim Meyering  <jim@meyering.net>
66332
66333         * modules/pathmax (License): Change to LGPL.
66334
66335 2005-09-19  Derek Price  <derek@ximbiot.com>
66336
66337         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66338
66339 2005-09-19  Bruno Haible  <bruno@clisp.org>
66340
66341         * gnulib-tool (import): Provide default for --tests-base.
66342
66343 2005-09-19  Bruno Haible  <bruno@clisp.org>
66344
66345         * doc/quote.texi: New file, extracted from gnulib.texi.
66346         * doc/ctime.texi: New file, extracted from gnulib.texi.
66347         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66348         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66349         * doc/gnulib.texi: Include them.
66350
66351 2005-09-18  Bruno Haible  <bruno@clisp.org>
66352
66353         Portability fix.
66354         * gnulib-tool (func_readlink): New function.
66355         (func_ln_if_changed): Use it.
66356
66357 2005-09-18  Bruno Haible  <bruno@clisp.org>
66358
66359         * gnulib-tool: Support --with-tests also with --import.
66360         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66361         (func_import): Use variables $testsbase and $inctests. Emit a
66362         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66363         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66364         SUBDIRS += $testsdir.
66365         (func_create_testdir): Update.
66366
66367 2005-09-18  Bruno Haible  <bruno@clisp.org>
66368
66369         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66370         instead of $dry_run.
66371         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66372         (func_ln_if_changed): Don't handle dry-run here.
66373         (func_import): In dry-run mode, detect more precisely which actions
66374         would be performed, and don't use "...ing" verbs.
66375
66376 2005-09-18  Bruno Haible  <bruno@clisp.org>
66377
66378         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66379         (func_import): Use join on two temporary files instead of three nested
66380         loops, in order to determine which files are new or old.
66381
66382 2005-09-18  Bruno Haible  <bruno@clisp.org>
66383
66384         * gnulib-tool (func_import): Comment out code that spits out the
66385         new files with --dry-run.
66386
66387 2005-09-18  Bruno Haible  <bruno@clisp.org>
66388
66389         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66390
66391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * lib/stat-time.h: New file.
66394         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66395         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66396         in a different way.
66397         (timespec_cmp): New function.
66398         * lib/utimecmp.c: Include stat-time.h.
66399         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66400         members exist, not on the obsolescent ST_MTIM_NSEC.
66401         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66402
66403 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66406
66407 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * MODULES.html.sh (File system functions): Add stat-time.
66410         * modules/stat-time: New file.
66411         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66412         is now done in a different way, by the stat-time module.
66413         * modules/utimecmp (Depends-on): Add stat-time.
66414
66415 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66416
66417         * m4/st_mtim.m4: Remove.  Superseded by...
66418         * m4/stat-time.m4: New file.
66419         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66420         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66421
66422 2005-09-15  Derek Price  <derek@ximbiot.com>
66423
66424         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66425
66426 2005-09-15  Derek Price  <derek@ximbiot.com>
66427
66428         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66429         * lib/regex_internal.c: Ditto, using this...
66430         (__GNUC_PREREQ): ...new macro.
66431         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66432         using...
66433         (__GNUC_PREREQ): ...this new macro.
66434
66435         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66436
66437 2005-09-15  Derek Price  <derek@ximbiot.com>
66438             Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66441         changes, consolidating in...
66442         * lib/regex_internal.h: ...this file.
66443
66444 2005-09-13  Jim Meyering  <jim@meyering.net>
66445
66446         * lib/canon-host.c: Filter through gnu indent and reword comments
66447         slightly.
66448         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66449
66450 2005-09-13  Derek Price  <derek@ximbiot.com>
66451
66452         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66453         failure.
66454         Reported by Jim Meyering  <jim@meyering.net>.
66455
66456 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66457
66458         * lib/base64.c: Typo.
66459         (base64_encode): Put b64str in initialized data section.
66460
66461 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         Merge glibc and coreutils changes into gnulib, plus a few
66464         extra fixes.
66465         * lib/md5.c: Use #error rather than a string.
66466         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66467         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66468         (__attribute__): Define to empty for non recent-GCC.
66469         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66470         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66471         Renamed from their non-__ counterparts, with new macros replacing
66472         them if not _LIBC.  Add __THROW attribute.
66473         (rol): Remove.
66474         (struct md5_ctx): Align buffer if using GCC.
66475         * lib/sha1.h (struct sha1_ctx): Likewise.
66476         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66477         The old name was backwards.
66478         (NOTSWAP): Remove; not used.
66479         (rol): New macro, moved here from md5.h.
66480         (sha1_process_block): Remove a FIXME that doesn't make sense.
66481
66482 2005-09-12  Derek Price  <derek@ximbiot.com>
66483
66484         Return usable errors from canon-host.
66485         * lib/canon-host.h: New file.
66486         * lib/canon-host.c (canon_host): Wrap...
66487         (canon_host_r): ...this new function, which now relies exclusively on
66488         getaddrinfo.
66489         (ch_strerror): New function.
66490         (last_cherror): New global.
66491         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66492         interface.
66493         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66494         void *.
66495         (freeaddrinfo): Free ai->ai_canonname when set.
66496
66497 2005-09-12  Derek Price  <derek@ximbiot.com>
66498
66499         Make canon-host require getaddrinfo.
66500         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66501         AC_LIBSOURCE canon-host.h.  Call...
66502         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66503         gl_GETADDRINFO.
66504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66505
66506 2005-09-12  Derek Price  <derek@ximbiot.com>
66507
66508         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66509         LGPL.
66510         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66511
66512 2005-09-12  Derek Price  <derek@ximbiot.com>
66513
66514         * lib/gai_strerror.c: Include config.h when available.  Include
66515         getaddrinfo.h before other headers to test interface.
66516         Reported by Larry Jones <lawrence.jones@ugs.com>.
66517
66518 2005-09-12  Derek Price  <derek@ximbiot.com>
66519             Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * modules/glob (Files): Add glob-libc.h.
66522
66523 2005-09-12  Derek Price  <derek@ximbiot.com>
66524             Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66527         glob_.h, glob-libc.h.
66528         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66529
66530 2005-09-12  Derek Price  <derek@ximbiot.com>
66531             Paul Eggert  <eggert@cs.ucla.edu>
66532
66533         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66534         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66535         protecting things that should be done only in gnulib contexts.
66536         * lib/glob_.h: New file, containing only the glob things needed for
66537         gnulib.
66538         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66539         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66540         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66541         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66542         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66543         and to respect the namespace rules better.
66544
66545 2005-09-08  Simon Josefsson  <jas@extundo.com>
66546
66547         * modules/socklen: New file.
66548
66549 2005-09-08  Simon Josefsson  <jas@extundo.com>
66550
66551         * m4/socklen.m4: New file.
66552
66553 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * modules/utimens (Files): Add m4/utimbuf.m4, since
66556         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66557         Reported by Sergey Poznyakoff.
66558
66559 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66562         definitions, since that's the preferred style in glibc.
66563         Fix a minor spacing issue, and update copyright notice to match
66564         glibc's.
66565
66566 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66569
66570 2005-09-06  Simon Josefsson  <jas@extundo.com>
66571
66572         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66573         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66574
66575 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66578         warning.
66579
66580 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * config/srclist.txt: Add glibc bug 1302.
66583
66584 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66585
66586         Change bitset word type from unsigned int to unsigned long int,
66587         as this has better performance on typical 64-bit hosts.
66588         Port bitset code to hosts with unusual word sizes.
66589         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66590         (build_collating_symbol):
66591         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66592         argument is a bitset.  This is merely a style issue, but it makes
66593         it clearer that an entire array is expected.
66594         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66595         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66596         Port to the case where bitset_word is not the same as unsigned int.
66597         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66598         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66599         Likewise.
66600         * lib/regexec.c (check_dst_limits_calc_pos_1,
66601         check_subexp_matching_top):
66602         (build_trtable, group_nodes_into_DFAstates):
66603         Likewise.
66604         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66605         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66606         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66607         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66608         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66609         * lib/regcomp.c (optimize_subexps, lower_subexp):
66610         Work even if bitset_word has holes in its bitwise representation.
66611         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66612         * lib/regexec.c (check_dst_limits_calc_pos_1,
66613         check_subexp_matching_top):
66614         Likewise.
66615         * lib/regex_internal.c (re_string_reconstruct):
66616         Don't assume UCHAR_MAX == 255.
66617         * lib/regex_internal.h (bitset_set_all): Likewise.
66618         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66619         All uses changed.
66620         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66621         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66622         All uses changed.
66623         (BITSET_WORD_MAX): New macro.
66624         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66625         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66626         (bitset_empty, bitset_copy):
66627         Prefer sizeof (bitset) to multiplying it out ourselves.
66628         (bitset_not_merge): Remove; unused.
66629         (bitset_contain): Return bool, not unsigned int with one bit on.
66630         All callers changed.
66631         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66632         alignment than re_node_set; do this by defining a new internal
66633         type struct dests_alloc and using it to allocate memory.
66634
66635 2005-09-05  Bruno Haible  <bruno@clisp.org>
66636
66637         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66638         links.
66639
66640 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66641
66642         * modules/size_max (Makefile.am): Add size_max.h
66643
66644 2005-09-04  Derek Price  <derek@ximbiot.com>
66645
66646         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66647
66648 2005-09-03  Simon Josefsson  <jas@extundo.com>
66649
66650         * gnulib-tool: Fix typo.
66651
66652 2005-09-03  Simon Josefsson  <jas@extundo.com>
66653
66654         * config/srclist.txt: Add glibc bug 1293.
66655
66656 2005-09-03  Derek Price  <derek@ximbiot.com>
66657
66658         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66659         From Larry Jones <lawrence.jones@ugs.com>.
66660
66661 2005-09-02  Simon Josefsson  <jas@extundo.com>
66662
66663         * modules/socklen: New file.
66664
66665 2005-09-02  Simon Josefsson  <jas@extundo.com>
66666
66667         * modules/havelib: New module.
66668
66669         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66670         Use havelib.
66671
66672 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         Check for arithmetic overflow when calculating sizes, to prevent
66675         some buffer-overflow issues.  These patches are conservative, in the
66676         sense that when I couldn't determine whether an overflow was possible,
66677         I inserted a run-time check.
66678         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66679         macros.
66680         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66681         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66682         (re_xnrealloc, re_x2nrealloc): New inline functions.
66683         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66684         parse_bracket_exp):
66685         (build_equiv_class, build_charclass): Check for arithmetic overflow
66686         in size expression calculations.
66687         * lib/regex_internal.c (re_string_realloc_buffers):
66688         (build_wcs_upper_buffer, re_node_set_add_intersect):
66689         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66690         (re_dfa_add_node, register_state): Likewise.
66691         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66692         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66693         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66694         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66695
66696 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66699         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66700
66701 2005-09-02  Bruno Haible  <bruno@clisp.org>
66702
66703         Support for lib vs. lib64 distinction on biarch platforms.
66704         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66705         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66707
66708 2005-09-02  Bruno Haible  <bruno@clisp.org>
66709
66710         * gnulib-tool (import): In the other first-use case, provide defaults
66711         as well.
66712
66713 2005-09-02  Bruno Haible  <bruno@clisp.org>
66714
66715         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66716         patches not yet found in the latest gettext release.
66717
66718 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66719
66720         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66721         to avoid a collision with bits/local_lim.h in glibc.
66722         All uses changed.  Problem reported by Dmitry V. Levin in
66723         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66724
66725         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66726         bugs in int versus size_t comparisons.
66727         (re_string_context_at): Fix bug where the code assumed that
66728         Idx is signed.
66729
66730         Use bool where appropriate.
66731         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66732         All callers changed.
66733         (calc_eclosure_iter): Likewise, for ROOT arg.
66734         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66735         (build_charclass_op): Likewise, for NON_MATCH arg.
66736         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66737         (re_string_construct_common): Likewise, for ICASE arg.
66738         * lib/regexec.c (re_search_2_stub, re_search_stub):
66739         Likewise, for RET_LEN arg.
66740         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66741         (set_regs): Likewise, for FL_BACKTRACK arg.
66742         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66743         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66744         (calc_eclosure_iter, parse_bracket_exp):
66745         Use bool for internal variables that are booleans.
66746         * lib/regexec.c (re_search_internal, check_matching,
66747         proceed_next_node):
66748         (set_regs, build_sifted_states, sift_states_bkref):
66749         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66750         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66751         (find_collation_sequence_value):
66752         Likewise.
66753         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66754         (re_node_set_compare):
66755         Return bool, not int. All callers changed.
66756         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66757         (build_trtable, check_node_accept): Likewise.
66758         * lib/regex_internal.h: Include stdbool.h.
66759
66760         Fix bugs uncovered when converting to bool.
66761         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66762         failure instead of charging ahead blindly.
66763         * lib/regex_internal.c (register_state): Likewise.
66764         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66765         for freeing internal storage.
66766         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66767         bitset pieces used as boolean, to avoid undefined behavior
66768         on hosts that do int overflow checking.
66769
66770 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * config/srclist.txt: Add glibc bugs 1285-1287.
66773
66774 2005-09-01  Jim Meyering  <jim@meyering.net>
66775
66776         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66777         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66778         Require gl_STAT_MACROS, too.
66779
66780 2005-09-01  Bruno Haible  <bruno@clisp.org>
66781
66782         * gnulib-tool (import): In the first-use case, provide defaults.
66783
66784 2005-09-01  Bruno Haible  <bruno@clisp.org>
66785
66786         * gnulib-tool (func_import): Remove the .tmp files.
66787
66788 2005-09-01  Bruno Haible  <bruno@clisp.org>
66789
66790         * gnulib-tool (func_import): Fix handling of symbolic links.
66791
66792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66795         old glibc regex code mishandles strings longer than 2**31 bytes.
66796         This patch fixes this when the regex code is used in gnulib
66797         (i.e., outside glibc).
66798
66799         This patch should not affect the use of the regex code inside
66800         glibc.  No doubt this problem also needs to be handled for glibc
66801         as well, but the result will be an incompatible change to the
66802         glibc ABI, and the old ABI will have to be supported too.  That
66803         can be the the subject for another patch.
66804
66805         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66806         governing whether the rest of this patch is active.  By default,
66807         the macro is disabled and the patch has no effect.
66808         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66809         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66810         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66811         (re_match_2, re_set_registers): Use the new types.
66812         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66813         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66814         New macros.
66815         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66816         (re_string_context_at, bin_tree_t, re_dfastate_t):
66817         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66818         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66819         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66820         (re_string_char_size_at, re_string_wchar_at):
66821         (re_string_elem_size_at):
66822         Use the new types and macros to port to 64-bit hosts.
66823         Use unsigned types for internal values, so that the code
66824         mostly works even for arrays larger than SSIZE_MAX.
66825         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66826         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66827         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66828         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66829         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66830         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66831         (calc_inveclosure, parse_dup_op, build_range_exp):
66832         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66833         (fetch_number, create_token_tree, mark_opt_subexp):
66834         Likewise.
66835         * lib/regex_internal.c (re_string_construct_common,
66836         create_ci_newstate):
66837         (create_cd_newstate, re_string_allocate, re_string_construct):
66838         (re_string_realloc_buffers, build_wcs_upper_buffer):
66839         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66840         (re_string_reconstruct, re_string_peek_byte_case):
66841         (re_string_fetch_byte_case, re_string_context_at):
66842         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66843         (re_node_set_init_copy, re_node_set_add_intersect):
66844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66846         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66847         (re_acquire_state, re_acquire_state_context, register_state):
66848         Likewise.
66849         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66850         search_cur_bkref_entry):
66851         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66852         (re_search_internal, re_search_2_stub, re_search_stub)
66853         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66854         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66855         (update_cur_sifted_state, check_dst_limits):
66856         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66857         (check_subexp_limits, sift_states_bkref, merge_state_array):
66858         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66859         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66860         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66861         (expand_bkref_cache, check_node_accept_bytes):
66862         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66863         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66864         (acquire_init_state_context, check_halt_node_context):
66865         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66866         (sift_states_backward, clean_state_log_if_needed):
66867         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66868         (find_recover_state, transit_state_sb, transit_state_mb):
66869         (transit_state_bkref, build_trtable, match_ctx_clean):
66870         Likewise.
66871         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66872         to work around an assumption that REG_MISSING is negative.
66873
66874         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66875         (seek_collating_symbol_entry) [defined _LIBC]:
66876         (lookup_collation_sequence_value) [defined _LIBC]:
66877         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66878         Use prototypes rather than old-style function definitions.
66879         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66880         (transit_state_sb) [0]:
66881         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66882
66883         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66884         rm_eo.
66885
66886         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66887         (optimize_subexps, lower_subexp):
66888         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66889         since the signed shift might overflow.  Use 1u<<31 instead.
66890         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66891         Likewise.
66892         * lib/regexec.c (check_dst_limits_calc_pos_1,
66893         check_subexp_matching_top): Likewise.
66894
66895         * lib/regcomp.c (optimize_subexps, lower_subexp):
66896         Use CHAR_BIT rather than 8, for clarity.
66897         * lib/regexec.c (check_dst_limits_calc_pos_1):
66898         (check_subexp_matching_top): Likewise.
66899         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66900         have to worry about portability issues when shifting it left.
66901         Remove no-longer-needed test for table_size > 0.
66902         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66903         in a word, as the resulting behavior is undefined.
66904         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66905         in one case, a <= should have been an <, and in another case the
66906         whole test was missing.
66907         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66908         the standard name CHAR_BIT.
66909         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66910         this is not true on one's complement and signed-magnitude hosts.
66911
66912         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66913         next_last_offset.
66914         (struct re_dfa_t): Remove unused member states_alloc.
66915         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66916
66917 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66920         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66921         and large-file glibc and in 32-bit large-file Solaris.
66922
66923 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66926         lengths fit in regoff_t; this isn't true if regoff_t is the same
66927         width as size_t.
66928         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66929         (= START + RANGE) instead of RANGE.  This avoids overflow
66930         problems when regoff_t is the same width as size_t.
66931         All callers changed.
66932         (re_search_2_stub): Check for overflow when adding the
66933         sizes of the two strings.
66934         (re_search_stub): Check for overflow when adding START
66935         to RANGE; if it occurs, substitute the extreme value.
66936
66937 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66938
66939         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66940
66941 2005-08-31  Jim Meyering  <jim@meyering.net>
66942
66943         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66944         a pointer-to-const.
66945         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66946         (register_state): Likewise.
66947         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66948         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66949         (group_nodes_into_DFAstates): Likewise.
66950
66951 2005-08-31  Jim Meyering  <jim@meyering.net>
66952
66953         * check-module: Add a FIXME comment.
66954
66955 2005-08-31  Eric Blake  <ebb9@byu.net>
66956
66957         * modules/unistd-safer (Files): Add unistd--.h.
66958         * modules/stdio-safer (Files): Add stdio--.h.
66959
66960 2005-08-31  Derek Price  <derek@ximbiot.com>
66961
66962         * lib/getdelim.c (getdelim): Return EOF on EOF.
66963         Reported by Larry Jones <lawrence.jones@ugs.com>.
66964
66965 2005-08-31  Bruno Haible  <bruno@clisp.org>
66966
66967         Avoid unnecessary diffs in the generated lib/Makefile.am.
66968         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66969         the generated files.
66970         (func_import): Don't set cmd.
66971
66972 2005-08-31  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/strstr.c: Include <stddef.h>, for NULL.
66975         * lib/strcasestr.c: Likewise.
66976         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66977
66978 2005-08-31  Bruno Haible  <bruno@clisp.org>
66979
66980         * gnulib-tool: New option --macro-prefix.
66981         (func_import): Use macro_prefix.
66982         (import): Handle option --macro-prefix.
66983
66984 2005-08-31  Bruno Haible  <bruno@clisp.org>
66985
66986         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66987         Also use new variables cached_lgpl, cached_libtool.
66988
66989 2005-08-31  Bruno Haible  <bruno@clisp.org>
66990
66991         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66992         always instantiating them.
66993
66994 2005-08-31  Bruno Haible  <bruno@clisp.org>
66995
66996         * gnulib-tool (func_import): Read the previous cached settings
66997         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66998         earlier added by gnulib but are now dropped. Warn when a gnulib file
66999         overwrites a non-gnulib file.
67000
67001 2005-08-31  Bruno Haible  <bruno@clisp.org>
67002
67003         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
67004         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
67005         projects that don't keep autogenerated files in CVS. Put into
67006         actioncmd only the specified modules, not the transitive closure.
67007
67008 2005-08-31  Bruno Haible  <bruno@clisp.org>
67009
67010         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
67011         Create directories that shall be filled.
67012         (import): Don't look for gl_* macros in configure.ac. Recurse across
67013         all directories containing a gnulib-cache.m4 files, if meaningful.
67014
67015 2005-08-31  Bruno Haible  <bruno@clisp.org>
67016
67017         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
67018         (import): Set seen_libtool when we see gl_LIBTOOL.
67019
67020 2005-08-31  Bruno Haible  <bruno@clisp.org>
67021
67022         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
67023         declaration macro definitions from generated gnulib.m4.
67024
67025 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
67026
67027         * lib/iconvme.h: Add prototype for iconv_alloc.
67028
67029 2005-08-29  Simon Josefsson  <jas@extundo.com>
67030
67031         * lib/iconvme.c: Fix errno.
67032
67033 2005-08-29  Bruno Haible  <bruno@clisp.org>
67034
67035         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
67036         that it works when the directory contains spaces.
67037
67038 2005-08-29  Bruno Haible  <bruno@clisp.org>
67039
67040         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
67041
67042 2005-08-29  Bruno Haible  <bruno@clisp.org>
67043
67044         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
67045         Emit more advice.
67046
67047 2005-08-29  Bruno Haible  <bruno@clisp.org>
67048         and Stepan Kasal  <kasal@ucw.cz>
67049
67050         * check-module: If more parameters are given, check each of them
67051         separately; add more exceptions, as noted by Jim Meyering.
67052         (check_module): New procedure.
67053         (%exempt_header): Now contains all exceptions.
67054
67055 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
67056
67057         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
67058
67059 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
67060
67061         * lib/iconvme.c: Split iconv_string into iconv_alloc.
67062
67063 2005-08-28  Bruno Haible  <bruno@clisp.org>
67064
67065         * m4/gnulib-tool.m4: New file.
67066
67067 2005-08-27  Jim Meyering  <jim@meyering.net>
67068
67069         * modules/unistd-safer (Files): Add pipe-safer.c.
67070         * modules/fcntl-safer (Files): Add creat-safer.c.
67071
67072 2005-08-27  Jim Meyering  <jim@meyering.net>
67073
67074         * m4/stdlib-safer.m4: New file.  From coreutils.
67075         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
67076         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
67077         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
67078         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
67079         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
67080
67081 2005-08-27  Jim Meyering  <jim@meyering.net>
67082
67083         * lib/fopen-safer.c: Merge minor changes from coreutils.
67084         * lib/dup-safer.c: Likewise.
67085         * lib/fd-safer.c: Likewise.
67086
67087         Merge from coreutils.
67088         * lib/stdio--.h: New file.
67089         * lib/stdlib--.h: New file.
67090         * lib/mkstemp-safer.c: New file.
67091
67092         GNU tar needs these.
67093         * lib/pipe-safer.c: New file.
67094         * lib/creat-safer.c: New file.
67095         * lib/fcntl--.h (creat): Define to creat_safer.
67096         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
67097         * lib/unistd--.h (pipe): Define to pipe_safer.
67098         * lib/unistd-safer.h: Declare pipe_safer.
67099
67100 2005-08-26  Simon Josefsson  <jas@extundo.com>
67101
67102         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
67103         Haible <bruno@clisp.org>.
67104
67105 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * lib/regex_internal.h: Remove all references to
67108         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
67109         or better.
67110         (bitset_not, bitset_merge, bitset_not_merge):
67111         (bitset_mask, re_string_allocate, re_string_construct):
67112         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
67113         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
67114         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
67115         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
67116         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67117         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67118         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
67119         (re_acquire_state_context):
67120         Remove unnecessary forward decls.
67121         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
67122         Put __attribute at function definition,
67123         now that the function decl has been removed.
67124         * lib/regex_internal.c (re_string_peek_byte_case):
67125         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
67126         Likewise.
67127
67128 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
67129
67130         * m4/regex.m4: Add AC_PREREQ(2.50).
67131         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
67132
67133 2005-08-25  Simon Josefsson  <jas@extundo.com>
67134
67135         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
67136         __fsetlocking.
67137
67138 2005-08-25  Simon Josefsson  <jas@extundo.com>
67139
67140         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
67141         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
67142         GLIBC specific code.
67143
67144 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67145
67146         Make regex safe for g++.  This fixes one real bug (an "err"
67147         that should have been "*err").  g++ problem reported by
67148         Sam Steingold.
67149         * lib/regex_internal.h (re_calloc): New macro, consistent with
67150         re_malloc etc.  All callers of calloc changed to use re_calloc.
67151         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
67152         not int.  All callers changed.
67153         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
67154         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
67155         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
67156         (find_recover_state): Change "err" to "*err"; this fixes what
67157         appears to be a real bug.
67158         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
67159         versus int.
67160
67161 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * modules/regex (Depends-on): Add malloc, since the code
67164         assumes that !malloc(0) means failure.
67165
67166 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
67169
67170         alloca modernization/simplification for regex.
67171         * lib/regex.c: Remove portability cruft for alloca.  This no longer
67172         needs to be at the start of the file, and can be moved into
67173         regex_internal.h and simplified.
67174         * lib/regex_internal.h: Include <alloca.h>.
67175         (__libc_use_alloca) [!defined _LIBC]: New macro.
67176         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
67177         now works outside glibc.
67178
67179 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67180
67181         * config/srclist.txt: Add glibc bugs 1241, 1245.
67182
67183 2005-08-25  Jim Meyering  <jim@meyering.net>
67184
67185         * lib/open-safer.c: Include <config.h>.
67186         Otherwise, we'd lose LARGEFILE support in any file using
67187         e.g. "fcntl--.h"
67188
67189 2005-08-25  Bruno Haible  <bruno@clisp.org>
67190
67191         * m4/minmax.m4: Require autoconf 2.52.
67192         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
67193         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
67194         alternatives of translit over the alphabet.
67195         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
67196
67197 2005-08-24  Simon Josefsson  <jas@extundo.com>
67198
67199         * tests/test-getpass.c: New file.
67200
67201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
67204         for GNU regex features.
67205
67206 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
67209         * lib/regex.h (regerror): Likewise.
67210
67211         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
67212         requires this.  (The code never needed it.)
67213
67214         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
67215         All uses of recently-renamed identifiers changed to use the new,
67216         POSIX-compliant names.  The code will build and run just fine
67217         without these changes, but it's better to eat our own dog food
67218         and use the standard-conforming names.
67219
67220         * lib/regex.h: Fix a multitude of POSIX name space violations.
67221         These changes have an effect only for programs that define
67222         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
67223         do not change anything for programs compiled in the normal way.
67224         Also, there is no effect on the ABI.
67225
67226         (_REGEX_SOURCE): New macro.
67227         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
67228         defined and _GNU_SOURCE is not; this fixes a name space violation.
67229
67230         Rename the following macros to obey POSIX requirements.
67231         The old names are still visible as macros if _REGEX_SOURCE is defined.
67232         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
67233         RE_BACKSLASH_ESCAPE_IN_LISTS.
67234         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
67235         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
67236         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
67237         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
67238         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
67239         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
67240         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
67241         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
67242         (REG_INTERVALS): renamed from RE_INTERVALS.
67243         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
67244         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
67245         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
67246         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
67247         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
67248         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
67249         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
67250         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
67251         RE_UNMATCHED_RIGHT_PAREN_ORD.
67252         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
67253         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
67254         (REG_DEBUG): renamed from RE_DEBUG.
67255         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
67256         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
67257         unusual, since we can't clash with the POSIX REG_ICASE.
67258         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
67259         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
67260         (REG_NO_SUB): renamed from RE_NO_SUB.
67261         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
67262         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
67263         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
67264         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
67265         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
67266         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
67267         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
67268         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
67269         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
67270         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
67271         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
67272         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
67273         RE_SYNTAX_POSIX_MINIMAL_BASIC.
67274         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
67275         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
67276         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
67277         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
67278         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
67279         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
67280         (REG_FIXED): Renamed from REGS_FIXED.
67281         (REG_NREGS): Renamed from RE_NREGS.
67282
67283         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
67284         of other REG_* macros, since POSIX says the user is allowed to
67285         #undef these macros selectively.
67286
67287         (reg_errcode_t): Update comment stating what other tables need
67288         to be consistent.
67289
67290         Rename the following enum values to obey POSIX requirements.
67291         The old names are still visible as macros.
67292         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
67293         is not defined, since GNU is supposed to be a superset of POSIX as
67294         much as possible, and since we want reg_errcode_t to be a signed
67295         type for implementation consistency.
67296         (_REG_NOERROR): Renamed from REG_NOERROR.
67297         (_REG_NOMATCH): Renamed from REG_NOMATCH.
67298         (_REG_BADPAT): Renamed from REG_BADPAT.
67299         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
67300         (_REG_ECTYPE): Renamed from REG_ECTYPE.
67301         (_REG_EESCAPE): Renamed from REG_EESCAPE.
67302         (_REG_ESUBREG): Renamed from REG_ESUBREG.
67303         (_REG_EBRACK): Renamed from REG_EBRACK.
67304         (_REG_EPAREN): Renamed from REG_EPAREN.
67305         (_REG_EBRACE): Renamed from REG_EBRACE.
67306         (_REG_BADBR): Renamed from REG_BADBR.
67307         (_REG_ERANGE): Renamed from REG_ERANGE.
67308         (_REG_ESPACE): Renamed from REG_ESPACE.
67309         (_REG_BADRPT): Renamed from REG_BADRPT.
67310         (_REG_EEND): Renamed from REG_EEND.
67311         (_REG_ESIZE): Renamed from REG_ESIZE.
67312         (_REG_ERPAREN): Renamed from REG_ERPAREN.
67313         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
67314         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
67315         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
67316         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
67317
67318         (_REG_RE_NAME, _REG_RM_NAME): New macros.
67319         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
67320         changed.  But support the old name if the new one is not defined
67321         and if _REGEX_SOURCE.
67322
67323         Change the following member names in struct re_pattern_buffer.
67324         The old names are still supported if !_REGEX_SOURCE.
67325         The new names are always supported, regardless of _REGEX_SOURCE.
67326         (re_buffer): Renamed from buffer.
67327         (re_allocated): Renamed from allocated.
67328         (re_used): Renamed from used.
67329         (re_syntax): Renamed from syntax.
67330         (re_fastmap): Renamed from fastmap.
67331         (re_translate): Renamed from translate.
67332         (re_can_be_null): Renamed from can_be_null.
67333         (re_regs_allocated): Renamed from regs_allocated.
67334         (re_fastmap_accurate): Renamed from fastmap_accurate.
67335         (re_no_sub): Renamed from no_sub.
67336         (re_not_bol): Renamed from not_bol.
67337         (re_not_eol): Renamed from not_eol.
67338         (re_newline_anchor): Renamed from newline_anchor.
67339
67340         Change the following member names in struct re_registers.
67341         The old names are still supported if !_REGEX_SOURCE.
67342         The new names are always supported, regardless of _REGEX_SOURCE.
67343         (rm_num_regs): Renamed from num_regs.
67344         (rm_start): Renamed from start.
67345         (rm_end): Renamed from end.
67346
67347         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67348         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67349         Prepend __ to parameter names.
67350
67351         Undo yesterday's changes.
67352
67353 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67356         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67357         lib/regex.c.
67358
67359 2005-08-24  Jim Meyering  <jim@meyering.net>
67360
67361         Sync from coreutils.
67362         * m4/fcntl-safer.m4: New file.
67363
67364         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67365         and object files for this module.
67366
67367 2005-08-24  Jim Meyering  <jim@meyering.net>
67368
67369         Sync from coreutils.
67370         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67371
67372 2005-08-24  Jim Meyering  <jim@meyering.net>
67373
67374         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67375         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67376
67377 2005-08-24  Jim Meyering  <jim@meyering.net>
67378
67379         * modules/fcntl-safer: New module.
67380         * modules/fts (Depends-on): Add fcntl-safer.
67381         * MODULES.html.sh (File descriptor based Input/Output):
67382         Add fcntl-safer.
67383
67384 2005-08-24  Bruno Haible  <bruno@clisp.org>
67385
67386         Support for unit test modules.
67387         * modules/README: Mention tests modules.
67388         * modules/TEMPLATE-TESTS: New file.
67389         * gnulib-tool: New options --extract-tests-module, --with-tests and
67390         --tests-base (unused for the moment).
67391         (testsbase, inctests): New variables.
67392         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67393         (func_verify_module): Exclude TEMPLATE-TESTS.
67394         (func_verify_nontests_module, func_verify_tests_module): New functions.
67395         (func_get_dependencies): Add implicit dependency for tests modules.
67396         (func_get_tests_module): New function.
67397         (func_modules_transitive_closure): When --with-tests was specified,
67398         include the unit tests as well, unless explicitly avoided.
67399         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67400         (func_emit_tests_Makefile_am): New function.
67401         (func_create_testdir): When --with-tests was specified, emit a
67402         tests/ directory.
67403         * MODULES.html.sh (Future developments): Update.
67404
67405 2005-08-24  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/tls-tests: New file.
67408         * tests/test-tls.c: New file, from GNU gettext.
67409
67410 2005-08-24  Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/lock-tests: New file.
67413         * tests/test-lock.c: New file, from GNU gettext.
67414
67415 2005-08-24  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/lock.h: Add multiple inclusion guard.
67418         * lib/tls.h: Add multiple inclusion guard.
67419
67420 2005-08-24  Bruno Haible  <bruno@clisp.org>
67421
67422         * gnulib-tool: Add support for the --aux-dir option to
67423         --create-testdir, --create-megatestdir, --test, --megatest.
67424         (func_create_testdir, func_create_megatestdir): Optionally emit a
67425         AC_CONFIG_AUX_DIR directive.
67426         (create-testdir, create-megatestdir, test, megatest): Provide a
67427         default value for $auxdir.
67428
67429 2005-08-24  Bruno Haible  <bruno@clisp.org>
67430
67431         * gnulib-tool (import): Use compound statement instead of subshell
67432         where possible.
67433
67434 2005-08-24  Bruno Haible  <bruno@clisp.org>
67435
67436         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67437
67438 2005-08-24  Bruno Haible  <bruno@clisp.org>
67439
67440         * gnulib-tool (func_version): Update.
67441
67442 2005-08-24  Bruno Haible  <bruno@clisp.org>
67443
67444         * gnulib-tool (func_import, func_create_testdir,
67445         func_create_megatestdir): Quote all autoconf macro arguments.
67446
67447 2005-08-24  Bruno Haible  <bruno@clisp.org>
67448
67449         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67450         option --force, because --force causes the aclocal.m4 of each
67451         subdirectory to be newer than the corresponding config.h.in.
67452
67453 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67456         All contents moved to gl_REGEX.
67457         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67458         assume that it does.
67459
67460 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/regex.h (REG_NOSYS)
67463         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67464         Define, since POSIX requires it as of 2001.
67465         (_REG_ENOSYS)
67466         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67467         New private symbol, used to keep the enum signed in all cases.
67468         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67469         Youngman in
67470         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67471
67472         * lib/regex_internal.c (re_string_skip_chars, register_state):
67473         (calc_state_hash):
67474         Remove forward decls; no longer needed now that we use prototypes.
67475         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67476         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67477         (clean_state_log_if_needed): Likewise.
67478
67479 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67480
67481         * config/srclist.txt: Add glibc bugs 1231-1233.
67482
67483 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         Fix problems reported by Sam Steingold in
67486         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67487         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67488         assumed that reg_errcode_t is a signed type, which is not
67489         necessarily true if _XOPEN_SOURCE is not defined.
67490         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67491         since some compilers warn about it otherwise.
67492
67493 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67496         (init_word_char, create_initial_state, duplicate_node_closure):
67497         (fetch_token, peek_token_bracket, build_range_exp):
67498         (build_collating_symbol): Remove forward decls; no longer needed
67499         now that we use prototypes.
67500
67501         * lib/regcomp.c:
67502         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67503         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67504         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67505         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67506         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67507         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67508         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67509         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67510         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67511         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67512         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67513         (build_charclass, build_charclass_op, fetch_number, create_tree):
67514         (create_token_tree, mark_opt_subexp, duplicate_tree):
67515         Use prototypes rather than old-style definitions.
67516
67517         * lib/regex_internal.c:
67518         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67519         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67520         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67521         (re_string_reconstruct, re_string_peek_byte_case):
67522         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67523         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67524         (re_node_set_init_copy, re_node_set_add_intersect):
67525         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67526         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67527         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67528         (re_acquire_state, re_acquire_state_context, register_state):
67529         (create_ci_newstate, create_cd_newstate, free_state):
67530         Likewise.
67531         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67532         re_search_2):
67533         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67534         (re_search_internal, prune_impossible_nodes):
67535         (acquire_init_state_context, check_matching, static):
67536         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67537         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67538         (update_regs, sift_states_backward, build_sifted_states):
67539         (clean_state_log_if_needed, merge_state_array):
67540         (update_cur_sifted_state, add_epsilon_src_nodes):
67541         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67542         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67543         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67544         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67545         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67546         (check_arrival, check_arrival_add_next_nodes):
67547         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67548         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67549         (check_node_accept_bytes, check_node_accept, extend_buffers):
67550         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67551         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67552         (sift_ctx_init):
67553         Likewise.
67554
67555         * lib/regex_internal.h:
67556         (re_string_allocate, re_string_construct, re_string_reconstruct):
67557         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67558         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67559         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67560         (re_string_context_at, re_string_peek_byte_case):
67561         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67562         is defined, since we now use prototypes always.
67563
67564         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67565         C89 or better.  All uses removed.
67566
67567 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * config/srclist.txt: Add glibc bugs 1220-1227.
67570
67571 2005-08-20  Jim Meyering  <jim@meyering.net>
67572
67573         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67574         of unused local, dfa.
67575
67576 2005-08-20  Bruno Haible  <bruno@clisp.org>
67577
67578         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67579
67580 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67583         (re_node_set_insert_last, re_dfa_add_node):
67584         Rename local variables to avoid GCC shadowing warnings.
67585
67586 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67589         [defined lint]: Suppress bogus uninitialized-variable warnings.
67590
67591         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67592         and let the caller return REG_ESPACE if out of space.  This
67593         removes an uninitialied-variable warning with GCC 4.0.1, and also
67594         avoids taking the address of a local variable.  All callers
67595         changed.
67596
67597 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67600         $LIBCSRC/posix/regexec.c.
67601         Add glibc bug 1217 for regcomp.c.
67602
67603 2005-08-19  Jim Meyering  <jim@meyering.net>
67604
67605         * lib/regexec.c (proceed_next_node): Redo local variables to
67606         avoid GCC shadowing warnings.
67607
67608 2005-08-18  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/strstr.c (strstr): Fix return value in multibyte case.
67611         * lib/strcasestr.c (strcasestr): Likewise.
67612
67613 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67616
67617 2005-08-17  Jim Meyering  <jim@meyering.net>
67618
67619         Make the %s format (seconds since the epoch) work for a negative
67620         number and when used with a zero-padded field width, e.g. %015s.
67621
67622         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67623         label so that it precedes the code to set `digits'.  Otherwise,
67624         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67625         print `00-22'.  Now, it prints `-0022', as it should.
67626
67627 2005-08-17  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/strstr (Files): Add m4/mbrtowc.m4.
67630         (Depends-on): Add mbuiter.
67631
67632 2005-08-17  Bruno Haible  <bruno@clisp.org>
67633
67634         * modules/strcasestr: New file.
67635         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67636         strcasestr.
67637
67638 2005-08-17  Bruno Haible  <bruno@clisp.org>
67639
67640         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67641
67642 2005-08-17  Bruno Haible  <bruno@clisp.org>
67643
67644         * modules/mbuiter: New file.
67645         * MODULES.html.sh (Extended multibyte and wide character utilities):
67646         Add mbuiter.
67647
67648 2005-08-17  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67651         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67652
67653 2005-08-17  Bruno Haible  <bruno@clisp.org>
67654
67655         * m4/strcasestr.m4: New file.
67656
67657 2005-08-17  Bruno Haible  <bruno@clisp.org>
67658
67659         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67660         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67661
67662 2005-08-17  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/strcasestr.h: New file.
67665         * lib/strcasestr.c: New file.
67666
67667 2005-08-17  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/strcasecmp.c: Use mbuiter.h.
67670
67671 2005-08-17  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/mbuiter.h: New file.
67674
67675 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67678         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67679         and gl_GETOPT are both invoked via different paths (as happens
67680         with GNU tar CVS because it uses both argp and getopt), the former
67681         wins.
67682
67683 2005-08-16  Bruno Haible  <bruno@clisp.org>
67684
67685         * modules/tls: New file.
67686         * MODULES.html.sh (Multithreading): Add tls.
67687
67688 2005-08-16  Bruno Haible  <bruno@clisp.org>
67689
67690         * modules/strnlen1: New file.
67691         * MODULES.html.sh (String handling): Add strnlen1.
67692
67693 2005-08-16  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/strcase (Files): Add m4/mbrtowc.m4.
67696         (Depends-on): Add strnlen1, mbchar.
67697
67698 2005-08-16  Bruno Haible  <bruno@clisp.org>
67699
67700         * modules/mbiter: New file.
67701         * MODULES.html.sh (Extended multibyte and wide character utilities):
67702         Add mbiter.
67703
67704 2005-08-16  Bruno Haible  <bruno@clisp.org>
67705
67706         * modules/mbfile: New file.
67707         * MODULES.html.sh (Extended multibyte and wide character utilities):
67708         Add mbfile.
67709
67710 2005-08-16  Bruno Haible  <bruno@clisp.org>
67711
67712         * modules/mbchar: New file.
67713         * MODULES.html.sh (Extended multibyte and wide character utilities):
67714         New section.
67715
67716 2005-08-16  Bruno Haible  <bruno@clisp.org>
67717
67718         * m4/tls.m4: New file, from GNU gettext.
67719
67720 2005-08-16  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67723         always.
67724         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67725
67726 2005-08-16  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/mbiter.m4: New file.
67729
67730 2005-08-16  Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/mbfile.m4: New file.
67733
67734 2005-08-16  Bruno Haible  <bruno@clisp.org>
67735
67736         * m4/mbchar.m4: New file.
67737
67738 2005-08-16  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/tls.h: New file, from GNU gettext.
67741         * lib/tls.c: New file, from GNU gettext.
67742
67743 2005-08-16  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/strnlen1.h: New file.
67746         * lib/strnlen1.c: New file.
67747
67748 2005-08-16  Bruno Haible  <bruno@clisp.org>
67749
67750         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67751         (mbi_init): Update.
67752         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67753         NUL byte, not after it.
67754
67755 2005-08-16  Bruno Haible  <bruno@clisp.org>
67756
67757         * lib/strcase.h (strcasecmp): Add note in comments.
67758         * lib/strncasecmp.c: Use code from strcasecmp.c.
67759         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67760         (strcasecmp): Work correctly in multibyte locales.
67761
67762 2005-08-16  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/mbiter.h: New file.
67765
67766 2005-08-16  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/mbfile.h: New file.
67769
67770 2005-08-16  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/mbchar.h: New file.
67773         * lib/mbchar.c: New file.
67774
67775 2005-08-16  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67778         the valid ones. Makes the comparison operations transitive:
67779         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67780         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67781
67782 2005-08-15  Simon Josefsson  <jas@extundo.com>
67783
67784         * modules/ssize_t (License): Change to 'unlimited'.
67785
67786         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67787
67788 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67791         Add comments for each pending glibc patch.
67792
67793 2005-08-15  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67796         __cplusplus is defined.
67797
67798 2005-08-14  Jim Meyering  <jim@meyering.net>
67799
67800         Sync from coreutils.
67801
67802         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67803         Use the hash-table-based cycle-detection code not just when
67804         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67805         Reported by James Youngman in
67806         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67807         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67808         FTS_TIGHT_CYCLE_CHECK.
67809         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67810         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67811         once again.
67812         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67813         * lib/fts.c (fd_safer): Remove decl.
67814         Include fcntl--.h rather than unistd-safer.h
67815         (fts_safe_changedir): Don't call fd_safer; no longer needed
67816         now that we include fcntl--.h.
67817
67818 2005-08-12  Simon Josefsson  <jas@extundo.com>
67819
67820         * modules/getndelim2: Use ssize_t module.
67821         * modules/getnline: Likewise.
67822         * modules/safe-read: Likewise.
67823         * modules/xreadlink: Likewise.
67824
67825         * modules/ssize_t: New file.
67826
67827 2005-08-12  Simon Josefsson  <jas@extundo.com>
67828
67829         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67830
67831 2005-08-12  Simon Josefsson  <jas@extundo.com>
67832
67833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67834         ssize_t.
67835
67836 2005-08-12  Simon Josefsson  <jas@extundo.com>
67837
67838         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67839         readline, getdelim and check_version.
67840         (Support for systems lacking ISO C 99: Sizes of integer types):
67841         Add size_max.
67842
67843 2005-08-12  Bruno Haible  <bruno@clisp.org>
67844
67845         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67846
67847 2005-08-11  Simon Josefsson  <jas@extundo.com>
67848
67849         * modules/readline: New file.
67850
67851         * modules/strnlen (Files): Add strnlen.h.
67852
67853 2005-08-11  Simon Josefsson  <jas@extundo.com>
67854
67855         * m4/readline.m4: New file.
67856
67857 2005-08-11  Simon Josefsson  <jas@extundo.com>
67858
67859         * lib/readline.h, readline.c: New file.
67860
67861 2005-08-11  Simon Josefsson  <jas@extundo.com>
67862
67863         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67864         gl_AVOID.
67865
67866 2005-08-11  Bruno Haible  <bruno@clisp.org>
67867
67868         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67869
67870 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67871
67872         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67873
67874 2005-08-10  Simon Josefsson  <jas@extundo.com>
67875
67876         * tests/test-iconvme.c: New file.
67877
67878 2005-08-10  Simon Josefsson  <jas@extundo.com>
67879
67880         * m4/strnlen.m4: New file.
67881
67882         * m4/strndup.m4: Don't check for strnlen declaration, done in
67883         strnlen.m4.
67884
67885 2005-08-10  Simon Josefsson  <jas@extundo.com>
67886
67887         * lib/strndup.c: Use strnlen.h.
67888
67889         * lib/strnlen.h: New file.
67890
67891 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67892
67893         * README: Typos.
67894
67895 2005-08-02  Simon Josefsson  <jas@extundo.com>
67896
67897         * modules/readline: New file.
67898
67899 2005-08-02  Simon Josefsson  <jas@extundo.com>
67900
67901         * modules/getdelim: New file.
67902
67903         * modules/getline: Rewrite, don't use getndelim2.
67904
67905 2005-08-02  Simon Josefsson  <jas@extundo.com>
67906
67907         * m4/getline.m4: Separate out getdelim stuff into separate module.
67908
67909         * m4/getdelim.m4: New file.
67910
67911 2005-08-02  Simon Josefsson  <jas@extundo.com>
67912
67913         * lib/getline.h, getline.c: Rewrite.
67914
67915         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67916
67917 2005-07-31  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/lock.h (gl_lock_initializer): New macro.
67920         (gl_lock_define_initialized): Use it.
67921         (gl_rwlock_initializer): New macro.
67922         (gl_rwlock_define_initialized): Use it.
67923         (gl_recursive_lock_initializer): New macro.
67924         (gl_recursive_lock_define_initialized): Use it.
67925
67926 2005-07-30  Karl Berry  <karl@gnu.org>
67927
67928         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67929         Report from Ben Pfaff, regarding getopt.
67930
67931 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67934         normal way.
67935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67936         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67937         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67938         (gl_GETOPT): Use the new macros.  Most of the implementation
67939         is moved to the new macros.  This is for programs like Emacs
67940         that don't want all the functionality of gl_GETOPT.
67941
67942 2005-07-26  Bruno Haible  <bruno@clisp.org>
67943
67944         * m4/lock.m4: Update from GNU gettext.
67945
67946 2005-07-26  Bruno Haible  <bruno@clisp.org>
67947
67948         * lib/lock.h: Update from GNU gettext.
67949         * lib/lock.c: Update from GNU gettext.
67950
67951 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67952
67953         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67954         obsolescent AC_TRY_RUN.  Include the default includes files, for
67955         'exit'.
67956
67957 2005-07-24  Bruno Haible  <bruno@clisp.org>
67958
67959         * modules/visibility: New file.
67960         * MODULES.html.sh (Misc): Add visibility.
67961
67962 2005-07-24  Bruno Haible  <bruno@clisp.org>
67963
67964         * m4/visibility.m4: New file.
67965
67966 2005-07-24  Bruno Haible  <bruno@clisp.org>
67967
67968         * doc/visibility.texi: New file.
67969
67970 2005-07-22  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67973         $(ALLOCA_H), redundant through BUILT_SOURCES.
67974         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67975         redundant through BUILT_SOURCES.
67976         * modules/byteswap (Makefile.am): Remove explicit dependency on
67977         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67978         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67979         $(FNMATCH_H), redundant through BUILT_SOURCES.
67980         * modules/getopt (Makefile.am): Remove explicit dependency on
67981         $(GETOPT_H), redundant through BUILT_SOURCES.
67982         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67983         redundant through BUILT_SOURCES.
67984         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67985         redundant through BUILT_SOURCES.
67986         * modules/stdbool (Makefile.am): Remove explicit dependency on
67987         $(STDBOOL_H), redundant through BUILT_SOURCES.
67988         * modules/stdint (Makefile.am): Remove explicit dependency on
67989         $(STDINT_H), redundant through BUILT_SOURCES.
67990         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67991         Remove explicit dependency on $(SYSEXITS_H).
67992         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67993
67994 2005-07-18  Simon Josefsson  <jas@extundo.com>
67995
67996         * lib/check-version.c (check_version): Accept identical versions too.
67997
67998 2005-07-18  Bruno Haible  <bruno@clisp.org>
67999
68000         * modules/lock: New file.
68001         * MODULES.html.sh (Multithreading): New section.
68002
68003 2005-07-18  Bruno Haible  <bruno@clisp.org>
68004
68005         * m4/lock.m4: New file, from GNU gettext.
68006
68007 2005-07-18  Bruno Haible  <bruno@clisp.org>
68008
68009         * lib/lock.h: New file, from GNU gettext.
68010         * lib/lock.c: New file, from GNU gettext.
68011
68012 2005-07-18  Bruno Haible  <bruno@clisp.org>
68013
68014         * lib/lock.h (gl_once_t): New type.
68015         (gl_once_define, gl_once): New macros.
68016         * lib/lock.c (fresh_once): New variable.
68017         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
68018         functions.
68019
68020 2005-07-16  Simon Josefsson  <jas@extundo.com>
68021
68022         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
68023         workaround, suggested by Bruno.
68024
68025 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * modules/xalloc (Depends-on): Add xalloc-die.
68028         * modules/xvasprintf (Depends-on): Add xalloc-die.
68029
68030 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
68033         with a minor change.
68034
68035 2005-07-15  Bruno Haible  <bruno@clisp.org>
68036
68037         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
68038         When using lib/poll.c, define poll as rpl_poll.
68039
68040 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         * modules/argp (Depends-on): Remove unlocked-io.
68043
68044 2005-07-14  Derek Price  <derek@ximbiot.com>
68045
68046         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
68047         for glob symlink bug.
68048
68049 2005-07-14  Bruno Haible  <bruno@clisp.org>
68050
68051         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
68052         Instead, test for *_unlocked function declarations directly.
68053
68054 2005-07-11  Simon Josefsson  <jas@extundo.com>
68055
68056         * modules/size_max: New file.
68057
68058         * modules/xsize: Depend on size_max module for size_max.m4.
68059
68060 2005-07-11  Simon Josefsson  <jas@extundo.com>
68061
68062         * lib/size_max.h: New file.
68063
68064 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
68067         copyright symbol and the year.
68068         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
68069         (version_etc_va): Use parameterized copyright notice.
68070         Reword to conform to the current GNU coding standards.
68071
68072 2005-07-11  Karl Berry  <karl@gnu.org>
68073
68074         * doc/gnulib.texi (Quoting): new node.
68075         (Initial import): more info, from Patrice.
68076
68077 2005-07-11  Bruno Haible  <bruno@clisp.org>
68078
68079         * gnulib-tool (func_usage): Document option --avoid.
68080         (Command line options): Handle --avoid.
68081         (func_acceptable): New function.
68082         (func_modules_transitive_closure): Use it.
68083
68084 2005-07-11  Bruno Haible  <bruno@clisp.org>
68085
68086         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
68087         Reported by Jim Meyering.
68088
68089 2005-07-10  Bruno Haible  <bruno@clisp.org>
68090
68091         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
68092         Needed when size_t is smaller than 'unsigned int'.
68093         Reported by Paul Eggert.
68094
68095 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68096
68097         * modules/argp (Depends-on): Add unlocked-io
68098
68099 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68100
68101         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
68102         block of defines.
68103
68104 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * config/srclist.txt: Comment out regcomp.c, since we have a porting
68107         fix now.
68108
68109 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
68110         and Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
68113         in wint_t, not wchar_t.  Remove now-unnecessary cast.
68114
68115 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * modules/regex (Files): Add lib/regex_internal.c,
68118         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
68119         (Depends-on): Add extensions.
68120         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
68121
68122 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68123
68124         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
68125         pathconf.
68126         * m4/same.m4 (gl_SAME): Likewise.
68127         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
68128
68129         * m4/regex.m4: Adjust to new libc regex implementation.
68130         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
68131         all the .c and .h parts of (the new) regex.
68132         Quote the m4 stuff better.
68133         Check for RE_ICASE bug of old gnulib.
68134         Check for REG_STARTEND of recent libc.
68135         Rename local variables from jm_* to gl_*.
68136         Quote operand of "test -f".
68137         Say "recent enough" version of libc, not "version 2".
68138         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
68139         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
68140         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
68141         Remove check for btowc, isascii.
68142         Require AM_LANGINFO_CODESET.
68143
68144 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         * lib/regex.c, regex.h: Sync from libc.
68147         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
68148         * lib/regexec.c:
68149         New files, synced from libc, except that regex_internal.h
68150         currently has a small porting fix.
68151
68152 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
68155         regex_internal.c, regexec.c.
68156         Add regex_internal.h too, but as a comment, since the libc version
68157         is currently broken in gnulib mode.
68158
68159 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         Support programs like Emacs that use gnulib but not gettext.
68162         * MODULES.html.sh (Internationalization functions): Add gettext-h.
68163         * modules/gettext-h: New file.
68164         * modules/gettext (Files): Remove lib/gettext.h.
68165         (Depends-on): Add gettext-h.
68166         (Makefile.am): Remove lib_SOURCES.
68167         * modules/argmatch, modules/c-stack, modules/closeout:
68168         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
68169         * modules/execute, modules/file-type, modules/getaddrinfo:
68170         * modules/getopt, modules/human, modules/javacomp:
68171         * modules/javaexec, modules/mkdir-p, modules/obstack:
68172         * modules/openat, modules/pagealign_alloc, modules/pipe:
68173         * modules/quotearg, modules/regex, modules/rpmatch:
68174         * modules/unicodeio, modules/userspec, modules/version-etc:
68175         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
68176         * modules/xsetenv:
68177         Depend on gettext-h, not gettext.
68178
68179 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * gnulib-tool (func_import): Add support for 'public domain' license.
68182         * modules/alloca, modules/atexit, modules/memmove:
68183         Now public domain, not GPL.
68184         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
68185         * modules/realloc, modules/strerror, modules/strtod:
68186         Now LGPL, not GPL.
68187
68188 2005-07-05  Bruno Haible  <bruno@clisp.org>
68189
68190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
68191         autoconf CVS. Needed for mingw.
68192
68193 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         Remove the dependency of the strftime module on the tzset module.
68196         * modules/strftime (Depends-on): Remove dependency on tzset.
68197
68198 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         Remove the dependency of the strftime module on the tzset module.
68201         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
68202         gl_FUNC_TZSET_CLOBBER.
68203
68204 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         Remove the dependency of the strftime module on the tzset module.
68207         * lib/strftime.c (my_strftime)
68208         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
68209         Copy the input structure, to work around some of the bug with
68210         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
68211         Solaris releases, you should also use the tzset module, but we won't
68212         require it as a dependency any more since we don't want LGPLed code
68213         to depend on GPLed code.
68214
68215 2005-07-02  Jim Meyering  <jim@meyering.net>
68216
68217         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
68218         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
68219         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
68220         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
68221
68222 2005-07-02  Jim Meyering  <jim@meyering.net>
68223
68224         * lib/backupfile.c (backup_args): Change a `0' to NULL.
68225
68226 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
68229         declares only 'struct timespec;' (!).
68230
68231 2005-07-01  Jim Meyering  <jim@meyering.net>
68232
68233         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
68234         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
68235         * lib/save-cwd.c, tempname.c:
68236         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68237         and don't include <sys/file.h>).
68238
68239 2005-06-29  Jim Meyering  <jim@meyering.net>
68240
68241         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
68242         type name.  Use the variable name instead.
68243         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
68244         Likewise.
68245
68246 2005-06-28  Simon Josefsson  <jas@extundo.com>
68247
68248         * modules/check-version (Files): Add check-version.m4.
68249
68250 2005-06-28  Simon Josefsson  <jas@extundo.com>
68251
68252         * m4/check-version.m4: New file, suggested by Jim Meyering
68253         <jim@meyering.net>.
68254
68255 2005-06-28  Simon Josefsson  <jas@extundo.com>
68256
68257         * lib/check-version.h, lib/check-version.c: New files.
68258
68259 2005-06-28  Simon Josefsson  <jas@extundo.com>
68260
68261         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
68262         collision with global variable.  Better indentation.  Don't
68263         increment buffer pointer beyond buffer end.  Based on comments
68264         from Paul Eggert <eggert@cs.ucla.edu>.
68265
68266         * lib/base64.h: Indent.
68267
68268 2005-06-28  Simon Josefsson  <jas@extundo.com>
68269
68270         * doc/gnulib.texi (Library version handling): New section.
68271
68272 2005-06-28  Jim Meyering  <jim@meyering.net>
68273
68274         * check-module (find_included_lib_files): Hard-code another
68275         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
68276         but modules/fts-lgpl (correctly) does not list those files.
68277
68278         * modules/canonicalize (Files): Add lib/pathmax.h.
68279
68280 2005-06-25  Simon Josefsson  <jas@extundo.com>
68281
68282         * modules/check-version: New file.
68283
68284 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
68287         initializer of struct addrinfo, as an indication that we don't
68288         care how many members the structure has.
68289
68290 2005-06-24  Derek Price  <derek@ximbiot.com>
68291         and Bruno Haible  <bruno@clisp.org>
68292
68293         Remove stat module & update lstat.
68294         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
68295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68296         * m4/stat.m4: Remove this file.
68297
68298 2005-06-24  Derek Price  <derek@ximbiot.com>
68299         and Bruno Haible  <bruno@clisp.org>
68300
68301         Remove stat module & update lstat.
68302         * lib/stat.c: Remove this file...
68303         (slash_aware_lstat): ...moving this content and its support...
68304         * lib/lstat.c (rpl_lstat): ...into here.
68305         * lib/lstat.h: New file.
68306
68307 2005-06-24  Derek Price  <derek@ximbiot.com>
68308         and Bruno Haible  <bruno@clisp.org>
68309
68310         Remove stat module & update lstat.
68311         * config/srclist.txt (libc sources): Remove stat.
68312
68313 2005-06-24  Derek Price  <derek@ximbiot.com>
68314         and Bruno Haible  <bruno@clisp.org>
68315
68316         Remove stat module & update lstat.
68317         * MODULES.html.sh (stat): Remove.
68318         * MODULES.html: Regenerated.
68319         * modules/lstat (Description): Correct function name.
68320         (Files): Add "lstat.h".
68321         (Depends-on): Remove stat, add xalloc, stat-macros.
68322         * modules/stat: Remove this file.
68323         (Include): Add "lstat.h", remove <sys/stat.h>.
68324
68325 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68326
68327         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
68328         (ranged_convert): Don't save conversion in a temporary struct.
68329         This causes a warning with GCC 4.0.0, and anyway in the typical
68330         case it's not worth the extra 100 bytes or so of code.
68331         (ranged_convert, __mktime_internal): When calling a function via a
68332         pointer P, use P () rather than (*P) (), as we now assume C89 or
68333         better.
68334
68335 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68338         "who -r" failed to give output.  Problem reported by Tim Waugh.
68339
68340         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68341         (xcalloc): Use it to avoid needless tests.
68342         Problem reported by Jim Meyering.
68343
68344 2005-06-20  Derek Price  <derek@ximbiot.com>
68345
68346         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68347         unnecessary for Autoconfs > 2.59c.
68348
68349 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68350
68351         * lib/argp.h (__option_is_short): Check upper limit of
68352         __key. Isprint() requires its argument to have the value
68353         of an unsigned char or EOF.
68354
68355 2005-06-16  Jim Meyering  <jim@meyering.net>
68356
68357         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68358         when either N or S is zero.
68359
68360 2005-06-16  Derek Price  <derek@ximbiot.com>
68361
68362         * m4/bison.m4: Declare YACC & YFLAGS precious.
68363
68364 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68367         multibyte string or pattern, fall back on unibyte matching.
68368         Problem reported by James Youngman.
68369
68370 2005-06-08  Bruno Haible  <bruno@clisp.org>
68371
68372         * modules/csharpcomp: New file.
68373         * MODULES.html.sh (C#): Add csharpcomp.
68374
68375 2005-06-08  Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/csharpcomp.m4: New file, from GNU gettext.
68378
68379 2005-06-08  Bruno Haible  <bruno@clisp.org>
68380
68381         * lib/csharpcomp.h: New file, from GNU gettext.
68382         * lib/csharpcomp.c: New file, from GNU gettext.
68383         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68384
68385 2005-06-08  Bruno Haible  <bruno@clisp.org>
68386
68387         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68388         warning on mingw.
68389
68390 2005-06-07  Derek Price  <derek@ximbiot.com>
68391
68392         Sync from CVS.
68393         * lib/glob_.h: Indent nested #ifdef.
68394
68395 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         Sync from coreutils.
68398         Use "file name" when talking about file names, instead of "filename"
68399         or "path", as per the GNU coding standards.
68400         * lib/mkdir-p.c: Renamed from makepath.c.
68401         (make_dir_parents): Renamed from make_path.  All callers changed.
68402         * lib/mkdir-p.h: Likewise.  All includers changed.
68403         * lib/filenamecat.c: Renamed from path-concat.c.
68404         (file_name_concat): Renamed from path_concat.  All callers changed.
68405         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68406         * lib/filenamecat.h: Likewise.  All includers changed.
68407         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68408         in comments or local variable names.
68409         * lib/basename.c: Likewise.
68410         * lib/canonicalize.c, canonicalize.h: Likewise.
68411         * lib/dirname.c, dirname.h: Likewise.
68412         * lib/euidaccess.c: Likewise.
68413         * lib/exclude.c: Likewise
68414         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68415         * lib/fsusage.c, fsuage.h: Likewise.
68416         * lib/fts.c, fts_.h: Likewise.
68417         * lib/getcwd.c: Likewise.
68418         * lib/getloadavg.c: Likewise.
68419         * lib/mkstemp.c: Likewise.
68420         * lib/mountlist.c, mountlist.h: Likewise.
68421         * lib/openat.c, openat.h: Likewise.
68422         * lib/readlink-stub.c: Likewise.
68423         * lib/readutmp.c, readutmp.h: Likewise.
68424         * lib/rename.c: Likewise.
68425         * lib/rmdir.c: Likewise.
68426         * lib/same.c: Likewise.
68427         * lib/savedir.c: Likewise.
68428         * lib/stripslash.c: Likewise.
68429         * lib/tempname.c: Likewise.
68430         * lib/xreadlink.c: Likewise.
68431         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68432         All uses changed.
68433         * lib/exclude.h: Likewise.
68434
68435         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68436         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68437         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68438         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68439         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68440         files have been getting away with it for years (MORE/BSD 4.3
68441         is extinct now).
68442         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68443         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68444
68445         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68446         Define to 256, not 255, as per modern POSIX.
68447
68448 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         Sync from coreutils.
68451         Use "file name" when talking about file names, instead of "filename"
68452         or "path", as per the GNU coding standards.
68453         * MODULES.html.sh: mkdir-p renamed from makepath.
68454         filenamecat renamed from path-concat.
68455         * modules/filenamecat: Renamed from modules/path-concat.
68456         (Files): filenamecat.h and filenamecat.c renamed from
68457         path-concat.h and path-concat.c.
68458         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68459         (Include): filenamecat.h, not path-concat.h.
68460         * modules/mkdir-p: Renamed from modules/makepath.
68461         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68462         makepath.c.
68463         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68464         (Include): mkdir-p.h, not makepath.h.
68465
68466 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         Sync from coreutils.
68469         * m4/mkdir-p.m4: Renamed from makepath.m4.
68470         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68471         Rename files from makepath.c to mkdir-p.c, and from
68472         makepath.h to mkdir-p.h.
68473         * m4/filenamecat.m4: Renamed from path-concat.m4.
68474         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68475         Rename files from path-concat.c to filenamecat.c,
68476         and from path-concat.h to filenamecat.h.
68477         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68478         "file name" in local variables or comments.
68479         * m4/rename.m4: Likewise.
68480
68481 2005-06-01  Bruno Haible  <bruno@clisp.org>
68482
68483         * modules/csharpexec: New file.
68484         * MODULES.html.sh (C#): New section.
68485
68486 2005-06-01  Bruno Haible  <bruno@clisp.org>
68487
68488         * m4/csharp.m4: New file, from GNU gettext.
68489         * m4/csharpexec.m4: New file, from GNU gettext.
68490
68491 2005-06-01  Bruno Haible  <bruno@clisp.org>
68492
68493         * lib/csharpexec.h: New file, from GNU gettext.
68494         * lib/csharpexec.c: New file, from GNU gettext.
68495         * lib/csharpexec.sh.in: New file, from GNU gettext.
68496
68497 2005-05-31  Derek Price  <derek@ximbiot.com>
68498             Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         Sync from cvs.
68501         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68502
68503 2005-05-31  Derek Price  <derek@ximbiot.com>
68504             Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         Sync from cvs.
68507         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68508
68509 2005-05-29  Derek Price  <derek@ximbiot.com>
68510
68511         * config/srclist.txt (glob_.h, glob.c): Add these files.
68512
68513 2005-05-29  Derek Price  <derek@ximbiot.com>
68514
68515         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68516         * modules/glob: New file.
68517         * modules/getlogin_r: Add link to POSIX spec in description.
68518
68519 2005-05-29  Derek Price  <derek@ximbiot.com>
68520             Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * m4/glob.m4: New file.
68523
68524 2005-05-29  Derek Price  <derek@ximbiot.com>
68525             Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * lib/glob_.h, lib/glob.c: New files.
68528
68529 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68532         * modules/fts-lgpl (Depends-on): Remove gettext.
68533
68534 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68537         and don't require gt_INTTYPES_PRI.
68538
68539 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68542
68543         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68544         the configuration hassle isn't worth it.
68545         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68546         (LONGEST_MODIFIER, PRIuMAX): Remove.
68547
68548 2005-05-27  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68551
68552 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68555         _POSIX_PTHREAD_SEMANTICS for Solaris.
68556
68557 2005-05-25  Derek Price  <derek@ximbiot.com>
68558
68559         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68560
68561 2005-05-25  Derek Price  <derek@ximbiot.com>
68562             Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68565         * lib/getlogin_r.c, getlogin_r.h: New files.
68566
68567 2005-05-25  Bruno Haible  <bruno@clisp.org>
68568             Derek Price  <derek@ximbiot.com>
68569
68570         * lib/getlogin_r.h: Simplify API documentation.
68571
68572 2005-05-23  Derek Price  <derek@ximbiot.com>
68573
68574         * modules/minmax (Files): Add m4/minmax.m4.
68575         (configure.ac): Add gl_MINMAX.
68576
68577 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68580         so that unistd-safer.h (GPL'ed code) need not be included.
68581
68582 2005-05-22  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/minmax.m4: New file.
68585         Based on a patch by Derek Price <derek@ximbiot.com>.
68586
68587 2005-05-22  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68590         (INT64_MIN): Fix definition.
68591         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68592
68593         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68594         NEED_SIGNED_INT_TYPES.
68595
68596         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68597         HAVE_SYSTEM_INTTYPES.
68598
68599 2005-05-22  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68602         Also include <sys/param.h> if it defines MIN, MAX.
68603         Based on a patch by Derek Price <derek@ximbiot.com>.
68604
68605 2005-05-21  Jim Meyering  <jim@meyering.net>
68606
68607         * modules/fts (Files): Add m4/inttypes-pri.m4.
68608         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68609
68610 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         New fts module.
68613         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68614         (setup_dir, free_dir): New functions.
68615         (enter_dir, leave_dir): Define trivial
68616         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68617         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68618         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68619         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68620         Move to fts-cycle.c.
68621         (fts_open): Use setup_dir.
68622         (fts_close): Use free_dir.
68623         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68624         This adds a label and some gotos, but the alternatives were messier.
68625         Check for memory allocation failure when entering a dir.
68626         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68627         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68628         (FTS): New member fts_cycle, that is a union that contains the
68629         old active_dir_ht and cycle_state.  All uses changed to mention
68630         fts_cycle.ht and fts_cycle.state.
68631         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68632         fts.c, with the following changes:
68633         (setup_dir, free_dir): New functions.
68634         (enter_dir): Now returns bool.  Return true if successful, false
68635         if memory exhausted.  All callers changed.
68636         Do not bother partly cleaning up on
68637         memory allocation failure; that is free_dir's job.
68638         However, free ad if hash_insert fails, to avoid memory leak.
68639         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68640         fts->fts_options to see which union member to use.
68641
68642 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68645         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68646
68647 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68650
68651 2005-05-20  Jim Meyering  <jim@meyering.net>
68652
68653         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68654         Now a macro, to pacify GCC.
68655
68656 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68657
68658         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68659         of -1.
68660
68661 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68662
68663         * lib/chown.c (rpl_chown): Return -1 on failure.
68664
68665 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68668         Don't check for stddef.h.
68669         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68670         don't use its results.
68671         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68672         since we include them unconditionally.  Don't require
68673         AM_STDBOOL_H, since stdbool is a prerequisite.
68674         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68675         since we assume C89 or better.
68676         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68677         as we don't use their results.
68678         Don't check for fchdir, memmove, memset, strrchr, as we use
68679         them unconditionally.
68680         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68681         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68682
68683 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68684
68685         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68686         Include <stddef.h> unconditionally, since we assume C89 now.
68687         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68688         * lib/fts.c: Include fts_.h first, to check interface.
68689         Do not include intprops.h; no longer needed.
68690         Include cycle-check.h and hash.h, since fts_.h no longer does.
68691         Remove unnecessary casts of closedir to void.
68692         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68693         decide whether to decrement nlinks.
68694         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68695         (FTS): Use struct hash_table * instead of Hash_table, so that
68696         we no longer need to include hash.h here.
68697
68698 2005-05-18  Jim Meyering  <jim@meyering.net>
68699
68700         * modules/dirfd (License): Change to LGPL.  Most of the code
68701         is already in the public domain.
68702
68703 2005-05-18  Jim Meyering  <jim@meyering.net>
68704
68705         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68706         Reported by Yoann Vandoorselaere.
68707
68708 2005-05-17  Jim Meyering  <jim@meyering.net>
68709
68710         * m4/fts.m4: New file, from coreutils.
68711
68712 2005-05-17  Jim Meyering  <jim@meyering.net>
68713
68714         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68715
68716 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         Sync from coreutils.
68719         * m4/unlinkdir.m4: New file.
68720
68721 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         Sync from coreutils.
68724         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68725         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68726         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68727         White space changes only.
68728         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68729         special.
68730         * lib/yesno.c: Include getline.h, not ctype.h.
68731         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68732         Use getline to remove arbitrary restriction on response length.
68733
68734 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * config/srclist-update: Spell out "Street" in FSF postal
68737         mail address; this is the style the FSF seems to prefer.
68738
68739         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68740         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68741         this updates FSF postal mail address.
68742
68743         Sync from coreutils.
68744         * modules/unlinkdir: New file.
68745         * modules/yesno (Depends-on): Add getline.
68746         * MODULES.html.sh (File system functions): Add unlinkdir.
68747
68748 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68751         lib/strsep.h:
68752         Change the initial comment to refer to GPL, not LGPL.
68753         gnulib-tool will change it to LGPL as needed.
68754
68755         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68756         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68757         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68758         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68759         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68760         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68761         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68762         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68763         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68764         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68765         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68766         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68767         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68768         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68769         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68770         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68771         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68772         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68773         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68774         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68775         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68776         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68777         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68778         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68779         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68780         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68781         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68782         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68783         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68784         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68785         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68786         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68787         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68788         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68789         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68790         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68791         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68792         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68793         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68794         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68795         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68796         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68797         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68798         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68799         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68800         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68801         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68802         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68803         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68804         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68805         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68806         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68807         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68808         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68809         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68810         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68811         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68812         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68813         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68814         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68815         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68816         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68817         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68818         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68819         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68820         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68821         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68822         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68823         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68824         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68825         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68826         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68827         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68828         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68829         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68830         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68831         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68832         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68833         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68834         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68835         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68836         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68837         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68838         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68839         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68840         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68841         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68842         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68843         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68844         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68845         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68846         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68847         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68848         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68849         lib/yesno.c, lib/yesno.h:
68850         Update FSF postal mail address.
68851
68852 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68855         tests/test-memmem.c, tests/test-stpncpy.c:
68856         Update FSF postal mail address.
68857
68858 2005-05-13  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68861         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68862         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68863         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68864         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68865         Add support for 64-bit integers in the MSVC compiler.
68866
68867 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68868
68869         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68870
68871 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68872
68873         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68874
68875 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68876
68877         * doc/getdate.texi (General date syntax): Don't say that date
68878         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68879         Problem reported by Nic Ferrier.
68880
68881 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68882
68883         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68884         specified in ai_socktype. Fix invalid ai_protocol
68885         check. ai_protocol is usually set to 0 or depending on
68886         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68887         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68888         ai_socktype / ai_protocol in the returned addrinfo structure.
68889
68890 2005-05-10  Simon Josefsson  <jas@extundo.com>
68891
68892         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68893         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68894
68895 2005-05-10  Karl Berry  <karl@gnu.org>
68896
68897         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68898         (from http://www.gnu.org/licenses).
68899         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68900         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68901         fdl.texi suffices.
68902
68903 2005-05-10  Karl Berry  <karl@gnu.org>
68904
68905         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68906         (COPYING.DOC): remove.
68907
68908         * config/srclist-update: new FSF address.
68909
68910 2005-05-10  Derek Price  <derek@ximbiot.com>
68911
68912         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68913         possible.
68914
68915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68916             Bruno Haible  <bruno@clisp.org>
68917
68918         * modules/inet_ntop: New file.
68919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68920         inet_ntop.
68921
68922 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68923             Bruno Haible  <bruno@clisp.org>
68924
68925         * m4/inet_ntop.m4: New file.
68926
68927 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68928             Bruno Haible  <bruno@clisp.org>
68929
68930         * lib/inet_ntop.h: New file.
68931         * lib/inet_ntop.c: New file, from glibc with modifications.
68932
68933 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * modules/time_r (License): Change to LGPL.
68936         * modules/extensions (License): Change to LGPL.  Actually,
68937         the license is more permissive than that, but currently gnulib-tool
68938         doesn't know how to handle more-permissive licenses.
68939
68940         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68941         Problem reported by Dave Love.
68942
68943 2005-05-08  Jim Meyering  <jim@meyering.net>
68944
68945         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68946         blank.
68947
68948 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         * modules/argmatch (Depends-on): Add stdbool.
68951         * modules/backupfile (Depends-on): Likewise.
68952         * modules/chdir-long (Depends-on): Likewise.
68953         * modules/closeout (Depends-on): Likewise.
68954         * modules/cycle-check (Depends-on): Likewise.
68955         * modules/dirname (Depends-on): Likewise.
68956         * modules/fnmatch (Depends-on): Likewise.
68957         * modules/fsusage (Depends-on): Likewise.
68958         * modules/fwriteerror (Depends-on): Likewise.
68959         * modules/getcwd (Depends-on): Likewise.
68960         * modules/getloadavg (Depends-on): Likewise.
68961         * modules/hard-locale (Depends-on): Likewise.
68962         * modules/makepath (Depends-on): Likewise.
68963         * modules/mountlist (Depends-on): Likewise.
68964         * modules/nanosleep (Depends-on): Likewise.
68965         * modules/posixtm (Depends-on): Likewise.
68966         * modules/quotearg (Depends-on): Likewise.
68967         * modules/readtokens (Depends-on): Likewise.
68968         * modules/readtokens0 (Depends-on): Likewise.
68969         * modules/readutmp (Depends-on): Likewise.
68970         * modules/save-cwd (Depends-on): Likewise.
68971         * modules/strftime (Depends-on): Likewise.
68972         * modules/userspec (Depends-on): Likewise.
68973         * modules/utimecmp (Depends-on): Likewise.
68974         * modules/xgetcwd (Depends-on): Likewise.
68975         * modules/xnanosleep (Depends-on): Likewise.
68976         * modules/xstrtod (Depends-on): Likewise.
68977         * modules/yesno (Depends-on): Likewise.
68978
68979 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68982         needless checks.
68983
68984 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         Merge from coreutils.  Among other things,
68987         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68988         * lib/fd-safer.c: New file.
68989         * lib/fcntl-safer.h, open-safer.c: Remove.
68990         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68991         * lib/dup-safer.c: Include unistd-safer.h first.
68992         Don't include errno.h.
68993         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68994         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68995         * lib/file-type.c: Rely on file-type.h change.
68996         * lib/getloadavg.c: Include unistd-safer.h.
68997         (getloadavg): Use safer open.
68998         * lib/getusershell.c: Include "stdio-safer.h".
68999         (getusershell): Use safer fopen.
69000         * lib/long-options.c (long_options): Use NULL rather than 0.
69001         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
69002         'free'.
69003         * lib/modechange.c: Likewise.
69004         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
69005         (MODE_DONE): New constant.
69006         (struct mode_change): Remove 'next' member.
69007         (make_node_op_equals): New function; like the old one of the
69008         same name, except it allocates an array.
69009         (mode_compile, mode_create_from_ref): Use it.
69010         (mode_compile): Allocate result as an array, not a linked list.
69011         Parse octal string ourself, so that we catch mistakes like "+0".
69012         (mode_adjust): Arg is an array, not a linked list.
69013         * lib/modechange.c: Include stat-macros.h, xalloc.h.
69014         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
69015         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
69016         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
69017         Remove.  This is now stat-macros.h's job.
69018         (talloc): Remove.  All callers replaced by xalloc, so that
69019         our invokers don't have to worry about reporting memory failures.
69020         (make_node_op_equals): Remove.
69021         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69022         New constants.
69023         (struct mode_change): Moved here from modechange.h.
69024         (mode_append_entry): Remove.
69025         (mode_compile): Remove MASKED_OPS arg, since it encouraged
69026         apps to have incorrect behavior.  Use simpler algorithm for head
69027         and tail.  Don't futz with umask; that's now the job of mode_adjust.
69028         Detect more invalid usages rather than having somewhat-random behavior.
69029         Don't insert an "a=" action, as that leads to incorrect behavior.
69030         (mode_compile, mode_create_from_ref): Return NULL on error instead
69031         of an enum, since now there's only one way to have an error.  All
69032         callers changed.
69033         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
69034         at the correct time.  Simplify calculation of "+u" and its ilk.
69035         Don't mishandle "+X".
69036         (mode_free): Remove "register" and localize decls.
69037         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
69038         (struct mode_change): Move to modechange.c; callers don't
69039         need to see this stuff.
69040         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
69041         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
69042         (mode_change, mode_adjust): Reflect the new signatures noted above.
69043         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
69044         that might redefine system include files.
69045         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
69046         (my_usleep): Use NULL rather than (void *) 0.
69047         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
69048         Use siginterrupt to specify that system calls should be interrupted.
69049         (rpl_nanosleep): Move initialization of suspended closer to call of
69050         my_usleep.
69051         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
69052         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
69053         (desirable_utmp_entry): New function.
69054         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
69055         using x2nrealloc, to simplify logic.
69056         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
69057         size calculation.  Do not assume utmp file is a regular file.
69058         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
69059         (READ_UTMP_CHECK_PIDS): New constant.
69060         * lib/save-cwd.c: Include unistd-safer.h.
69061         (save_cwd): Use fd_safer.
69062         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
69063         [!_LIBC] Include "stat-macros.h" instead.
69064         * lib/unistd-safer.h (fd_safer): New decl.
69065
69066 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69067
69068         * modules/getloadavg (Depends-on): Add unistd-safer.
69069         * modules/getusershell (Depends-on): Add stdio-safer.
69070         * modules/lstat (Depends-on): Remove xalloc.
69071         * modules/mkstemp (Depends-on): Add stat-macros.
69072         * modules/modechange (Depends-on): Remove xstrtol.
69073         Add stat-macros, xalloc.
69074         * modules/save-cwd (Depends-on): Add unistd-safer.
69075         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
69076         * modules/unistd-safer (Files): Add lib/fd-safer.c
69077         (Makefile.am): Remove lib_SOURCES.
69078
69079         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
69080         Remove fcntl-safer; unistd-safer supersedes it.
69081
69082 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
69085         AC_HEADER_STAT.
69086         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
69087         (gl_PREREQ_CHOWN): Remove.
69088         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
69089         it.  Don't require AC_HEADER_STAT.
69090         (gl_PREREQ_LSTAT): Remove.
69091         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
69092         Don't require AC_HEADER_STAT.
69093         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
69094         (gl_PREREQ_RMDIR): Remove.
69095         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
69096         mention stat-macros.h or AC_HEADER_STAT, since we'll make
69097         the stat-macros module a prerequisite.
69098         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
69099         * m4/filemode.m4 (gl_FILEMODE): Likewise.
69100         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
69101         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
69102         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
69103         variable names.
69104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
69105         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
69106         variable prefixes.
69107         * m4/fcntl-safer.m4: Remove.
69108         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
69109         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
69110         Invoke gl_PREREQ_FD_SAFER.
69111         (gl_PREREQ_FD_SAFER): New macro.
69112         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
69113         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
69114         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
69115         Remove duplicate call to AC_LIBOBJ(readutmp).
69116         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
69117
69118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
69119         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
69120
69121 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * MODULES.html.sh (Misc): Add byteswap.
69124
69125 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69126
69127         * modules/getcwd (Depends-on): Add extensions.
69128         * modules/openat (Depends-on): Likewise.
69129
69130 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69131
69132         * modules/byteswap: New file.
69133
69134 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69135
69136         * m4/byteswap.m4: New file.
69137
69138 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
69139
69140         * lib/byteswap_.h: New file.
69141
69142 2005-04-25  Karl Berry  <karl@gnu.org>
69143
69144         * m4/gettext.m4: Update from GNU gettext 0.14.4.
69145
69146 2005-04-25  Albert Chin  <china@thewrittenword.com>
69147
69148         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
69149         Toolkit C bug.
69150
69151 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
69152
69153         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
69154         (func_ln_if_changed): Remove forcibly for no error message
69155         in case file does not exist.
69156
69157 2005-04-19  Simon Josefsson  <jas@extundo.com>
69158
69159         * gnulib-tool (Options): Make --symlink mean --symbolic.
69160
69161 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
69162
69163         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
69164
69165 2005-04-16  Simon Josefsson  <jas@extundo.com>
69166
69167         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
69168
69169 2005-04-15  Simon Josefsson  <jas@extundo.com>
69170
69171         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
69172
69173 2005-04-15  Simon Josefsson  <jas@extundo.com>
69174
69175         * gnulib-tool: Rename --symlink to --symbolic.
69176
69177 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
69178
69179         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
69180         symbolic links to files instead of copying/moving.  Add --aux-dir,
69181         specifying directory relative --dir where auxiliary build tools
69182         are placed.
69183
69184 2005-04-14  Bruno Haible  <bruno@clisp.org>
69185
69186         * modules/allocsa (License): Change to LGPL.
69187         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69188
69189 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
69192         that "UTC +1 second" continues to work.  Problem reported
69193         by Dmitry V. Levin.
69194         (relunit_snumber): New rule.
69195         (relunit): Use it.
69196
69197 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69198
69199         * lib/getdate.y (universal_time_zone_table): New constant.
69200         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
69201         universal_time_zone_table.
69202         (lookup_zone): Prefer universal_time_zone_table to
69203         local_time_zone_table, so that "GMT" time stamps are allowed in
69204         London during the summer.  Problem reported by Ian Abbott.
69205
69206 2005-04-12  Jim Meyering  <jim@meyering.net>
69207
69208         * lib/human.c (humblock): Set *options even when returning due to
69209         xstrtoumax conversion failure.  Thanks to a used-uninitialized
69210         warning from gcc-4.
69211
69212 2005-04-09  Jim Meyering  <jim@meyering.net>
69213
69214         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
69215         -Wuninitialized: initialize tm0.tm_year.
69216
69217 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
69220         count, since there's no maximum.  All uses changed.
69221         Add member dsts_seen.
69222         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
69223         not being INT_MAX.
69224         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
69225         Use pc_rels_seen to decide whther a date is absolute.
69226
69227         * lib/getdate.y (number): Don't overwrite year.
69228         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
69229         check.
69230
69231 2005-04-02  Simon Josefsson  <jas@extundo.com>
69232
69233         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
69234         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
69235
69236 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
69237
69238         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
69239         where no absolute path name can be longer than PATH_MAX.
69240
69241 2005-03-27  Jim Meyering  <jim@meyering.net>
69242
69243         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
69244
69245 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
69248         "one's complement" -> "ones' complement" in comment, as per Knuth.
69249         "value of type" -> "type or expression" in comment.
69250         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
69251
69252 2005-03-26  Jim Meyering  <jim@meyering.net>
69253
69254         Comment nits.
69255         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
69256         Correct typos: s/or/of/.
69257
69258 2005-03-26  Jim Meyering  <jim@meyering.net>
69259
69260         * modules/check-include-files: Move to ../ and rename to...
69261         * check-module: ...this.
69262
69263 2005-03-25  Jim Meyering  <jim@meyering.net>
69264
69265         * modules/xvasprintf (Files): Add xalloc.h.
69266
69267 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * modules/gettext (Files): config/config.rpath ->
69270         build-aux/config.rpath
69271         * modules/iconv (Files): Likewise.
69272         Problem reported by Oskar Liljeblad.
69273
69274 2005-03-23  Jim Meyering  <jim@meyering.net>
69275
69276         * modules/check-include-files: New script to check for
69277         missing dependencies, multiple includes, etc.
69278
69279         * modules/c-strtold (Depends-on): Add xalloc.
69280         * modules/c-strtod (Depends-on): Add xalloc.
69281         * modules/hash (Depends-on): Add xalloc.
69282         (Files): Remove lib/xalloc.h.
69283
69284         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
69285         * modules/userspec (Files): Add lib/inttostr.h.
69286
69287 2005-03-23  Jim Meyering  <jim@meyering.net>
69288
69289         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
69290
69291 2005-03-22  Jim Meyering  <jim@meyering.net>
69292
69293         * modules/stat-macros: New module.
69294         * modules/canonicalize, modules/euidaccess, modules/file-type,
69295         * modules/filemode, modules/lchown, modules/makepath,
69296         * modules/rmdir, modules/stat: Depend on new stat-macros module
69297         rather than listing lib/stat-macros.h manually.
69298         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
69299
69300 2005-03-22  Jim Meyering  <jim@meyering.net>
69301
69302         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
69303
69304 2005-03-22  Bruno Haible  <bruno@clisp.org>
69305
69306         * config/srclist.txt: Replace target directory 'config' with
69307         'build-aux'.
69308         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
69309         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
69310         ../build-aux/.
69311
69312 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
69313
69314         * modules/chdir-long (Depends-on): Add mempcpy.
69315
69316         * modules/acl, modules/backupfile, modules/c-strtod,
69317         modules/c-strtold, modules/canon-host, modules/canonicalize,
69318         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
69319         modules/exclude, modules/exitfail, modules/file-type,
69320         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
69321         modules/getdate, modules/getline, modules/getpagesize,
69322         modules/getpass, modules/getugroups, modules/group-member,
69323         modules/hard-locale, modules/hash, modules/human, modules/idcache,
69324         modules/inttostr, modules/long-options, modules/makepath,
69325         modules/md5, modules/memcasecmp, modules/memcoll,
69326         modules/modechange, modules/mountlist, modules/path-concat,
69327         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
69328         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
69329         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
69330         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69331         modules/strftime, modules/strndup, modules/strverscmp,
69332         modules/timespec, modules/unlocked-io, modules/userspec,
69333         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69334         modules/yesno:
69335         Remove lib_SOURCES line from Makefile.am section, as this is now
69336         done automatically by the corresponding Autoconf macro.
69337
69338 2005-03-21  Jim Meyering  <jim@meyering.net>
69339
69340         Changes imported from coreutils.
69341
69342         * lib/cycle-check.c: Don't include xalloc.h.
69343
69344         * lib/path-concat.c: Don't include assert.h.
69345         (path_concat): Remove assertion that would have triggered
69346         for ABASE starting with more than one slash.
69347         Reported by Andreas Schwab.
69348
69349         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69350         properly when ABASE is an absolute file name.
69351         Correct the description of this function.
69352         Include <assert.h>.
69353         Add an assertion and a test driver.
69354         This fixes a bug introduced on 2004-07-02.
69355         Andreas Schwab reported the resulting failure of cp --parents:
69356         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69357
69358 2005-03-21  Jim Meyering  <jim@meyering.net>
69359
69360         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69361         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69362
69363 2005-03-21  Jim Meyering  <jim@meyering.net>
69364         and  Paul Eggert  <eggert@cs.ucla.edu>
69365
69366         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69367         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69368         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69369         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69370         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69371         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69372         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69373         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69374         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69375         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69376         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69377         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69378         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69379         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69380         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69381         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69382         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69383         for these modules.
69384
69385 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69388         (which shouldn't happen), generate nothing instead of returning 0
69389         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69390
69391 2005-03-16  Bruno Haible  <bruno@clisp.org>
69392
69393         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69394         HAVE_LONGLONG_64BIT.
69395
69396 2005-03-16  Bruno Haible  <bruno@clisp.org>
69397
69398         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69399         HAVE_LONGLONG_64BIT.
69400
69401 2005-03-16  Bruno Haible  <bruno@clisp.org>
69402
69403         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69404         HAVE_LONGLONG_64BIT.
69405
69406 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69407
69408         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69409         reliably distinguish strftime failure from empty output on POSIX
69410         hosts.
69411
69412 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69415         (iconv_string): Don't guess a size-zero buffer, as that might cause
69416         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69417         result would be 'too large', where 'too large' is (heuristically)
69418         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69419         overflow concerns.  This will prevent some unwanted malloc failures
69420         when the inputs are very large.
69421
69422 2005-03-15  Karl Berry  <karl@gnu.org>
69423
69424         * config/srclist.txt (config.rpath): from gettext.
69425         * config/config.rpath: update.
69426
69427 2005-03-15  Bruno Haible  <bruno@clisp.org>
69428
69429         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69430         to 'negate'.
69431
69432         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69433         variable.
69434
69435         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69436         results.
69437
69438 2005-03-14  Simon Josefsson  <jas@extundo.com>
69439
69440         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69441         <fx@gnu.org>.
69442
69443 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69444
69445         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69446         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69447         intprops.h.
69448         * lib/strtol.c: Likewise.
69449
69450 2005-03-14  Jim Meyering  <jim@meyering.net>
69451
69452         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69453         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69454         to be nonzero so that we (and caller) can detect the difference
69455         between a valid zero-length expansion and an error return, even
69456         when the underlying strftime fails before writing anything into
69457         that location.
69458
69459 2005-03-14  Bruno Haible  <bruno@clisp.org>
69460
69461         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69462         Update from GNU gettext 0.14.3.
69463
69464 2005-03-10  Jim Meyering  <jim@meyering.net>
69465
69466         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69467
69468 2005-03-10  Jim Meyering  <jim@meyering.net>
69469
69470         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69471         so that this module works on systems without fchdir.
69472
69473 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         Factor int-properties macros into a single file, except for
69476         glibc-related files.
69477         * lib/intprops.h: New file.
69478         * lib/getloadavg.c: Include it instead of limits.h.
69479         (INT_STRLEN_BOUND): Remove.
69480         * lib/human.c: Include intprops.h.
69481         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69482         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69483         302/1000.
69484         * lib/inttostr.h: Include intprops.h instead of limits.h.
69485         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69486         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69487         for consistency with intprops.h.
69488         (time_t_is_integer, twos_complement_arithmetic): Use them.
69489         * lib/sig2str.h: Include <signal.h>, intprops.h.
69490         (INT_STRLEN_BOUND): Remove.
69491         * lib/strftime.c (TYPE_SIGNED): Remove.
69492         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69493         * lib/strtol.c: Adjust comments to match intprops.h.
69494         * lib/userspec.c: Include intprops.h.
69495         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69496         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69497         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69498         instead of rolling our own expressions.
69499         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69500
69501         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69502         instead of int.
69503         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69504         the right thing even if adding 1900 would overflow.  Similarly
69505         for tm_mon + 1 and tm_yday + 1.
69506         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69507         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69508         (DO_SIGNED_NUMBER): New macro.
69509         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69510
69511 2005-03-07  Bruno Haible  <bruno@clisp.org>
69512
69513         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69514
69515 2005-03-07  Bruno Haible  <bruno@clisp.org>
69516
69517         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69518
69519 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69520
69521         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69522         (func_import): Only replace files via --import when they have actually
69523         changed.
69524
69525 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69526
69527         * m4/mmap-anon.m4: New file.
69528         * m4/pagealign_alloc.m4: New file.
69529
69530 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69531             Bruno Haible  <bruno@clisp.org>
69532
69533         * modules/pagealign_alloc: New file.
69534         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69535
69536 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69537             Bruno Haible  <bruno@clisp.org>
69538
69539         * lib/pagealign_alloc.h: New file.
69540         * lib/pagealign_alloc.c: New file.
69541
69542 2005-03-03  Bruno Haible  <bruno@clisp.org>
69543
69544         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69545         Use an all-permissive copyright notice, recommended by RMS.
69546
69547 2005-03-02  Bruno Haible  <bruno@clisp.org>
69548
69549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69550         of AIX, the replacement has to be done only after <string.h> is
69551         included, therefore not in config.h. stpncpy.h does the replacement,
69552         and stpncpy.c uses it.
69553
69554 2005-03-02  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69557         stpncpy.c uses it.
69558
69559 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69560
69561         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69562         The workaround isn't strictly needed for POSIX conformance, and
69563         it's too much of a pain to configure and maintain.  We'll ask
69564         people to fix their kernels instead.
69565         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69566         (NANOSLEEP_BUG_WORKAROUND): Remove.
69567         (xnanosleep): Remove the workaround.
69568
69569 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69572         Reported by Derek Price.
69573         (Include): Add "timespec.h".
69574
69575         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69576
69577 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69580         to detect nanosleep bug.
69581
69582 2005-03-01  Bruno Haible  <bruno@clisp.org>
69583
69584         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69585
69586 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * modules/gethrxtime: New file.
69589         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69590         (Depends-on): Add gethrxtime.
69591         (configure.ac): Add gl_XNANOSLEEP.
69592         (Makefile.am): Remove lib_SOURCES line.
69593
69594 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69597         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69598
69599 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69602         * lib/timespec.h (gettime): Return void, since it always
69603         succeeds now.  All uses changed.
69604         * lib/gettime.c (gettime): Likewise.
69605         [HAVE_NANOTIME]: Prefer nanotime.
69606         Assume gettimeofday succeeds, as POSIX requires.
69607         Assime time () succeeds, since other code already does.
69608         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69609         (timespec_subtract): Remove.
69610         (NANOSLEEP_BUG_WORKAROUND): New constant.
69611         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69612         things considerably.  Use it only on GNU/Linux hosts, since the
69613         workaround shouldn't be needed elsewhere.
69614
69615 2005-02-24  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/gettext (Files): Add m4/glibc2.m4.
69618
69619 2005-02-24  Bruno Haible  <bruno@clisp.org>
69620
69621         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69622         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69623         * m4/progtest.m4:
69624         Update from GNU gettext 0.14.2.
69625         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69626
69627 2005-02-24  Bruno Haible  <bruno@clisp.org>
69628
69629         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69630         * lib/config.charset: Update from GNU gettext 0.14.2.
69631
69632 2005-02-24  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/gettext.h: Update from GNU gettext 0.14.2.
69635
69636 2005-02-23  Simon Josefsson  <jas@extundo.com>
69637
69638         * m4/iconvme.m4: New file.
69639
69640 2005-02-23  Jim Meyering  <jim@meyering.net>
69641
69642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69643         change.
69644         Thanks to Bruno Haible for catching it.
69645
69646 2005-02-22  Simon Josefsson  <jas@extundo.com>
69647
69648         * modules/iconvme: New file.
69649
69650         * MODULES.html.sh: Add iconvme.
69651
69652 2005-02-22  Simon Josefsson  <jas@extundo.com>
69653
69654         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69655
69656 2005-02-22  Simon Josefsson  <jas@extundo.com>
69657
69658         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69659
69660 2005-02-22  Jim Meyering  <jim@meyering.net>
69661
69662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69663         s/ifndef/ifdef/.
69664
69665 2005-02-20  Neil Conway  <neilc@samurai.com>
69666
69667         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69668         returned by OSX/Darwin if the specified buffer is not large
69669         enough for the hostname.
69670
69671 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69672
69673         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69674         pass it to _help, otherwise the latter coredumps trying to
69675         dereference state.root_argp.
69676
69677 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * modules/chdir-long (Depends-on): Add memrchr.
69680         * modules/memrchr (Files): Add lib/memrchr.h.
69681         (Include): "memrchr.h".
69682
69683 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69686
69687 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69688
69689         * lib/memrchr.h: New file.
69690         * lib/chdir-long.c: Include it.
69691         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69692         Don't bother including stddef.h.
69693
69694 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69695
69696         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69697         inclusion.
69698         Include <sys/types.h>, for dev_t.
69699         (ME_DUMMY, ME_REMOTE): Move from here....
69700         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69701         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69702         Dmitry V. Levin.
69703         Include mountlist.h first, to test the interface.
69704
69705 2005-01-29  Bruno Haible  <bruno@clisp.org>
69706
69707         * lib/progname.c (program_name): Initialize.
69708         Needed when linking statically on MacOS X.
69709
69710 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         Sync from coreutils.
69713         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69714         (Depends-on): Add c-strtod.
69715         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69716
69717 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69718
69719         Sync from coreutils.
69720         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69721
69722         Remove files that are specific to coreutils.
69723         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69724
69725 2005-01-28  Bruno Haible  <bruno@clisp.org>
69726
69727         * modules/javacomp: New file.
69728         * MODULES.html.sh (Java): Add javacomp.
69729
69730 2005-01-28  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/javacomp.m4: New file, from GNU gettext.
69733
69734 2005-01-28  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/javacomp.sh.in: New file, from GNU gettext.
69737         * lib/javacomp.h: New file, from GNU gettext.
69738         * lib/javacomp.c: New file, from GNU gettext.
69739
69740 2005-01-26  Simon Josefsson  <jas@extundo.com>
69741
69742         * lib/gai_strerror.c: Use GPL in header.
69743
69744 2005-01-26  Bruno Haible  <bruno@clisp.org>
69745
69746         * modules/javaexec: New file.
69747         * MODULES.html.sh (Java): Add javaexec.
69748
69749 2005-01-26  Bruno Haible  <bruno@clisp.org>
69750
69751         * m4/javaexec.m4: New file, from GNU gettext.
69752
69753 2005-01-26  Bruno Haible  <bruno@clisp.org>
69754
69755         * lib/javaexec.sh.in: New file, from GNU gettext.
69756         * lib/javaexec.h: New file, from GNU gettext.
69757         * lib/javaexec.c: New file, from GNU gettext.
69758
69759 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69760
69761         * modules/lchown (Depends-on): Remove lchown.h
69762
69763 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69764
69765         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69766         must be defined if the header file was not found, in order
69767         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69768
69769 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69770
69771         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69772         initializers for struct pentry_state.
69773         (__argp_error): Check return value of __asprintf
69774         (__argp_failure): Translate error message
69775
69776         * lib/argp-parse.c: Removed braces around the expansion of N_()
69777
69778 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69781         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69782         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69783         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69784         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69785         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69786         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69787         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69788         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69789         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69790         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69791         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69792         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69793         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69794         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69795         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69796         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69797         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69798         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69799         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69800         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69801         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69802         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69803         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69804         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69805         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69806         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69807         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69808         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69809         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69810         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69811         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69812         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69813         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69814         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69815         Use an all-permissive copyright notice, recommended by RMS.
69816
69817 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * modules/chdir-long (Depends-on): Remove mempcpy.
69820
69821 2005-01-21  Jim Meyering  <jim@meyering.net>
69822
69823         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69824         same value as for Solaris 9.
69825
69826         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69827         component length.  This included changing the parameter to be
69828         of type `char *' rather than `char const *'.
69829         * lib/chdir-long.h (chdir_long): Update prototype.
69830
69831         * lib/openat.c (fdopendir, fstatat): New functions.
69832         * lib/openat.h: Include headers required for use of DIR and struct
69833         stat.
69834         [AT_SYMLINK_NOFOLLOW]: Define.
69835         (fdopendir, fstatat): Add prototypes.
69836
69837 2005-01-21  Bruno Haible  <bruno@clisp.org>
69838
69839         * modules/classpath: New file.
69840         * MODULES.html.sh (Java): Add classpath.
69841
69842 2005-01-21  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/classpath.h: New file, from GNU gettext.
69845         * lib/classpath.c: New file, from GNU gettext.
69846
69847 2005-01-20  Simon Josefsson  <jas@extundo.com>
69848
69849         * modules/version-etc-fsf: New file.
69850
69851 2005-01-20  Simon Josefsson  <jas@extundo.com>
69852
69853         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69854         * lib/version-etc.c: Remove version_etc_copyright.
69855         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69856         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69857
69858 2005-01-20  Simon Josefsson  <jas@extundo.com>
69859
69860         * lib/base64.h (isbase64): Add.
69861
69862         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69863         using a unsigned prototype, don't inline.
69864         (base64_decode): Use it.
69865
69866 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69869         it.
69870
69871 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * lib/save-cwd.c (save_cwd): Remove code to support the case
69874         where fchdir is missing or flaky.
69875
69876 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69879
69880 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69881
69882         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69883         AC_LIBSOURCES now does this.
69884         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69885         with new ullong_max module.
69886
69887 2005-01-19  Bruno Haible  <bruno@clisp.org>
69888
69889         * modules/sh-quote: New file.
69890         * MODULES.html.sh (Executing programs): Add sh-quote.
69891
69892 2005-01-19  Bruno Haible  <bruno@clisp.org>
69893
69894         * lib/sh-quote.h: New file, from GNU gettext.
69895         * lib/sh-quote.c: New file, from GNU gettext.
69896
69897 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         Merge from coreutils.
69900         * m4/ullong_max.m4: New file.
69901         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69902         (gl_MACROS): Assume localeconv exists.
69903
69904 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         Merge changes from coreutils, as described below in several
69907         changelogs dated today.
69908
69909         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69910         (O_DIRECTORY): Remove; not needed here, since "." must be
69911         a directory.  All uses removed.
69912         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69913         universal on Suns, and we also need to test for IRIX.
69914         Revamp code to use 'if' rather than '#if'.
69915         Avoid unnecessary comparison of cwd->desc to 0.
69916
69917         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69918         for known valid error numbers rather than observed invalid ones.
69919
69920 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * modules/ullong_max: New file.
69923
69924         * modules/chdir-long, modules/openat: New files.
69925         * modules/save-cwd (Depends-on): Depend on chdir-long.
69926         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69927
69928 2005-01-18  Jim Meyering  <jim@meyering.net>
69929
69930         Merge from coreutils.
69931         * m4/chdir-long.m4, m4/openat.m4: New files.
69932         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69933         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69934         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69935         is sane and DOES follow symlinks.  Besides, testing 20 different
69936         systems found no broken chown implementations.
69937         Prompted by a change in rsync's copy of this macro.
69938         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69939
69940         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69941
69942         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69943         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69944         NULL-means-set-to-current-time semantics.
69945         Remove temporary file immediately, rather than waiting
69946         for configure's at-exit trap code to do it.
69947
69948 2005-01-18  Jim Meyering  <jim@meyering.net>
69949
69950         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69951
69952         * lib/utimens.c (futimens): Account for the fact that futimes
69953         can also fail with errno == ENOSYS or errno == ENOENT.
69954         Patch from Dmitry V. Levin.
69955
69956         Change the name of the robust chdir function from chdir to chdir_long.
69957         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69958         (restore_cwd): Use chdir_long, not chdir.
69959         * lib/chdir-long.c: Renamed from chdir.c.
69960         * lib/chdir-long.h: Renamed from chdir.h.
69961         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69962         Hurd.
69963
69964 2005-01-18  Bruno Haible  <bruno@clisp.org>
69965
69966         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69967         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69968         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69969         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69970         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69971         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69972         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69973         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69974         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69975         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69976         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69977         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69978         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69979         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69980         Use an all-permissive copyright notice, recommended by RMS.
69981
69982 2005-01-18  Bob Proulx  <bob@proulx.com>
69983
69984         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69985         simplify offsetof() macro construct to avoid compile failure with
69986         native HP-UX 11.0 ANSI C compiler.
69987
69988 2005-01-17  Bruno Haible  <bruno@clisp.org>
69989
69990         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69991         redundant because stpncpy.m4 takes care of it.
69992
69993 2005-01-17  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69996
69997 2005-01-17  Bruno Haible  <bruno@clisp.org>
69998
69999         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
70000         used.
70001
70002 2005-01-17  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/fwriteerror.h (fwriteerror): Change specification to include
70005         fclose.
70006         * lib/fwriteerror.c: Include <stdbool.h>.
70007         (fwriteerror): At the end, close the file stream. Record whether
70008         stdout was already closed.
70009
70010 2005-01-17  Bruno Haible  <bruno@clisp.org>
70011
70012         * lib/execute.c (environ): Declare if needed.
70013         * lib/pipe.c (environ): Likewise.
70014         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
70015
70016 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70017
70018         * modules/argp: Depend on vsnprintf
70019
70020 2005-01-10  Jim Meyering  <jim@meyering.net>
70021
70022         * modules/closeout (Depends-on): Add atexit.
70023
70024 2005-01-06  Bruno Haible  <bruno@clisp.org>
70025
70026         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
70027
70028 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
70031         definitions to be after all include files, to avoid collisions.
70032         Problem reported by Bob Proulx.
70033
70034 2005-01-04  Jim Meyering  <jim@meyering.net>
70035
70036         Changes imported from coreutils.
70037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
70038         as the mkstemp template, use a temporary directory and an
70039         8.3-friendly template to avoid trouble on systems like DJGPP.
70040         Reported by Juan M. Guerrero via Stepan Kasal.
70041         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
70042         close. Remove the temporary directory right away, rather than waiting
70043         for configure's at-exit trap code to do it.
70044         Suggestion from Stepan Kasal.
70045
70046 2005-01-01  Simon Josefsson  <jas@extundo.com>
70047
70048         * gnulib-tool: Print #include directives when --import'ing.
70049
70050 2004-12-28  Simon Josefsson  <jas@extundo.com>
70051
70052         * tests/test-base64.c: Include required header files.  Remove
70053         unused variables.
70054
70055 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * modules/error (Depends-on): Remove gettext.
70058
70059 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
70062         not needed.  This removes a dependency on the gettext module.
70063         [defined _LIBC]: Do not include <libintl.h>; not needed.
70064
70065 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
70068         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
70069
70070 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
70073         HAVE_DECL_STRTOLD.
70074
70075 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * modules/getdate (Depends-on): Remove alloca-opt.
70078
70079 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
70082
70083 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/argp-parse.c: Include <stddef.h>.
70086         (alignof, alignto): New macros.
70087         (parser_init): Don't assume that void * is aligned sufficiently
70088         for struct option.
70089
70090         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
70091         need to extend the stack.
70092         (YYINITDEPTH): New macro, so that the initial stack isn't overly
70093         large.
70094
70095 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70096
70097         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
70098
70099 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
70102         (2004-10-24) change.  Apparently this was a false alarm.
70103
70104         * modules/getdate: Depend on alloca-opt, not alloca.
70105
70106 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
70109         Remove now-obsolete comment about AIX.
70110         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
70111         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
70112         (YYMAXDEPTH): New macro.
70113
70114 2004-12-18  Simon Josefsson  <jas@extundo.com>
70115
70116         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
70117
70118 2004-12-18  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
70121
70122 2004-12-18  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/fatal-signal.c (fatal_signals): Make non-const.
70125         (init_fatal_signals): New function.
70126         (uninstall_handlers, install_handlers): Ignore signals that were set to
70127         SIG_IGN.
70128         (at_fatal_signal): Call init_fatal_signals.
70129         (init_fatal_signal_set): Likewise. Ignore signals that were set to
70130         SIG_IGN.
70131         Reported by Paul Eggert.
70132
70133 2004-12-18  Bruno Haible  <bruno@clisp.org>
70134
70135         * doc/alloca.texi: New file.
70136         * doc/alloca-opt.texi: New file.
70137
70138 2004-12-17  Jim Meyering  <jim@meyering.net>
70139
70140         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
70141         Otherwise, install-sh could exit with improper exit status when
70142         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
70143
70144 2004-12-16  Simon Josefsson  <jas@extundo.com>
70145
70146         * tests/test-base64.c: Add license.
70147
70148 2004-12-15  Stepan Kasal  <address@hidden>
70149
70150         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
70151
70152 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
70153
70154         * modules/getcwd (Files): Add m4/d-ino.m4.
70155         Suggested by Mark D. Baushke.
70156
70157 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/getdate.y (textint): New member "negative".
70160         (time_zone_hhmm): New function.
70161         Expect 14 shift-reduce conflicts, not 13.
70162         (o_colon_minutes): New rule.
70163         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
70164         (yylex): Set the "negative" member of signed numbers.
70165
70166 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
70167
70168         * doc/getdate.texi (Time of day items, Time zone items):
70169         Describe new formats +00:00, UTC+00:00.
70170
70171 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
70174         spurious "-l"s.  Problem reported by Stepan Kasal.
70175
70176 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
70179         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
70180
70181 2004-12-04  Simon Josefsson  <jas@extundo.com>
70182
70183         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
70184         Vandoorselaere <yoann@prelude-ids.org>.
70185
70186 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         Changes imported from coreutils.
70189         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
70190         exist.
70191         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
70192
70193 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70194
70195         Changes imported from coreutils.
70196         * lib/hard-locale.c: Assume <locale.h> exists.
70197         Include "strdup.h".
70198         (GLIBC_VERSION): New macro.
70199         (hard_locale): Assume setlocale exists.
70200         Rewrite to avoid #ifdef.
70201         Use strdup rather than malloc + strcpy.
70202         * lib/human.c: Assume <locale.h> exists.
70203         (human_readable): Assume localeconv exists.
70204
70205 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         * modules/hard-locale (Depends-on): Add strdup.
70208
70209 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70210
70211         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
70212         convert T2, not T.  (Imported from libc.)
70213
70214 2004-11-30  Simon Josefsson  <jas@extundo.com>
70215
70216         * modules/restrict (License): Change to LGPL.
70217
70218 2004-11-30  Simon Josefsson  <jas@extundo.com>
70219
70220         * m4/restrict.m4: Add copyright and copying conditions.
70221
70222 2004-11-30  Simon Josefsson  <jas@extundo.com>
70223
70224         * m4/base64.m4: New file.
70225
70226 2004-11-30  Simon Josefsson  <jas@extundo.com>
70227
70228         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
70229         base64.
70230
70231         * tests/test-base64.c: New file.
70232
70233         * modules/base64: New file.
70234
70235 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
70238         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
70239
70240         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
70241
70242 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
70245         (__getcwd.c): Don't restore errno; glibc doesn't.
70246         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
70247         first, falling back to our code only if its results look suspicious.
70248         Ensure that the resulting buffer is only as large as necessary.
70249
70250         * lib/readutmp.c: Include readutmp.h first.
70251         Include <errno.h>, since readutmp.h no longer does that.
70252         * lib/readutmp.h: Don't include <errno.h>,
70253         <sys/param.h>, <time.h>; not needed to establish interface.
70254         (errno): Remove decl.
70255         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
70256         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
70257         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
70258
70259 2004-11-28  Simon Josefsson  <jas@extundo.com>
70260
70261         * lib/base64.h, base64.c: New file.
70262
70263 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
70266
70267 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
70270         (Depends-on): Remove pathmax, same.  Add mempcpy.
70271         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
70272         (Makefile.am): Append getcwd.h to lib_SOURCES.
70273         (Include): Add getcwd.h.
70274         (Maintainer): Change from Jim Meyering to "all, glibc",
70275         since getdate now uses intended-for-glibc code.
70276         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
70277         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
70278
70279 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70280
70281         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
70282         HP's ANSI C compiler.
70283         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
70284         Declaring int functions causes warnings on some modern systems and
70285         shouldn't be needed to compile on ancient ones.
70286         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
70287         defined.
70288
70289         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
70290         with the following changes.
70291         (__set_errno): Parenthesize properly.
70292         Include <stdbool.h>.
70293         (MIN, MAX, MATCHING_INO): New macros.
70294         (__getcwd): Define with prototype, not K&R form.
70295         Use heuristics to allocate default buffer on stack if possible.
70296         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
70297         behavior, and to avoid the PATH_MAX limit when computing
70298         ../../../../...
70299         Use MATCHING_INO to compare inode number to file.
70300         Check for arithmetic overflow in size calculations.
70301         Fix bug in reallocation of dot array that caused getcwd to fail
70302         on directories nested deeper than 75.
70303         Be more careful about saving errno on error.
70304         Do not use realloc; use only free+malloc, as this is a bit
70305         more flexible and avoids a needless copy operation.
70306         Do not inspect st_dev and st_ino for symbolic links; POSIX
70307         doesn't specify the latter.
70308         Check for closedir errors.
70309         Avoid needless casts.
70310         Use "#ifdef weak_alias" around weak_alias, to be like other
70311         glibc code.
70312         The following changes to getcwd.c have effect only when used in
70313         gnulib; they have no effect inside glibc proper.
70314         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
70315         as alloca isn't used.
70316         (alloca, __alloca): Likewise.
70317         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
70318         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70319         unconditionally, as gnulib assumes C89 or better.
70320         Do not include <sys/param.h>.
70321         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
70322         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
70323         better.
70324         (NULL) [!defined NULL]: Remove; we assume C89 or better.
70325         Include <dirent.h> in a way that is compatible with modern Autoconf.
70326         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
70327         New macros, if not already defined.
70328         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
70329         Use "_LIBC", not "defined _LIBC", for consistency.
70330         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70331         a mempcpy module.
70332         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70333         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70334         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70335         credit only to Jim Meyering and adjust the copyright dates.
70336         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70337         <stdlib.h>, <unistd.h>, "pathmax.h".
70338         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70339         (INITIAL_BUFFER_SIZE): Remove.
70340         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70341
70342 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70343
70344         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70345         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70346         Use the _ONCE methods, for efficiency.
70347         Check for fcntl.h.  In test program, include <errno.h>
70348         and <fcntl.h> if available.  Remove old K&R cruft from
70349         test program.  Check for common errors in GNU/Linux,
70350         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70351         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70353         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70354         name accordingly.
70355         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70356         accommodate new getcwd.c.
70357         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70358         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70359         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70360         that's all we need now.
70361
70362 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70363
70364         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70365         argp-parse.c depends on getopt internals, that means we should
70366         always use our getopt, to be on the safe side.
70367         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70368         order not to spoil the result of an eventual previous invocation
70369         of gl_GETOPT_SUBSTITUTE.
70370
70371 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70372
70373         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70374         redefinition warnings. To avoid them, include the defines
70375         in `#if !defined __need_getopt ... #endif'. The only place
70376         where __getopt_argv_const is used is in definitions
70377         of getopt_long and getopt_long_only below, which are as well
70378         protected by `#ifndef __need_getopt'.
70379         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70380         __need_getopt after including <stdio.h> and <unistd.h> These
70381         headers might have defined it.
70382
70383 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70386
70387 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70390         (futimens): New function, which uses futimes if available.
70391         (futimens, utimens): Support timespec==NULL, with same semantics
70392         as utime and utimens.
70393         * lib/utimens.h (futimens): New decl.
70394
70395 2004-11-23  Jim Meyering  <jim@meyering.net>
70396
70397         * lib/getopt_.h: Remove trailing blanks.
70398
70399 2004-11-23  Jim Meyering  <jim@meyering.net>
70400
70401         * lib/__fpending.c: Add comment.
70402
70403 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * modules/canonicalize (Depends-on): Add xreadlink.
70406         Problem reported by James Youngman.
70407
70408 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70411         New macros.
70412         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70413         optopt): Use them instead of invoking ## directly; otherwise, the
70414         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70415
70416 2004-11-19  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/strtok_r.c: Move comments from here...
70419         * lib/strtok_r.h: ... to here.
70420
70421 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70424         implementations that mishandle size_t overflow.
70425
70426 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70429         might fail.  Problem reported by Yoann Vandoorselaere.
70430         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70431         implementations that mishandle size_t overflow.
70432
70433 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/canon-host (Depends-on): Add strdup.
70436
70437 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70438
70439         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70440
70441 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * lib/canon-host.c: Include "strdup.h".
70444         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70445         Use strdup instead of malloc/strcpy to duplicate strings.
70446
70447         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70448         (human_space_before_unit): New constant.
70449         * lib/human.c (human_readable): Support it.
70450
70451         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70452         (xgetcwd): Set errno correctly when failing.
70453         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70454         the failure is actually due to a PATH_MAX problem.
70455
70456         Further getopt changes to make it more likely that glibc will
70457         buy the changes back.
70458         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70459         (getopt): Use it, so to preserve glibc semantic
70460         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70461         when compiling for libc.
70462         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70463         (getopt_long, getopt_long_only): Use it.
70464
70465         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70466         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70467         (getopt): Argv is now char * const *, as per standard.
70468         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70469         not char *__getopt_argv_const *.
70470         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70471         _getopt_long_only_r): Likewise.
70472         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70473         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70474         _getopt_long_r, _getopt_long_only_r): Likewise.
70475         * lib/getopt_.h (__getopt_argv_const): Remove.
70476         (getopt): Argv is now char * const *, as per standard.
70477
70478         * lib/getdate.y (tORDINAL): New token.
70479         (day, relunit): Allow it for relative times.
70480         (relative_time_table): Use tORDINAL for ordinals.
70481
70482 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70485         Document that "second" isn't allowed as an ordinal number.
70486
70487 2004-11-16  Jim Meyering  <jim@meyering.net>
70488
70489         * modules/closeout (Depends-on): Add fpending.
70490
70491 2004-11-15  Jim Meyering  <jim@meyering.net>
70492
70493         * lib/closeout.c: Include "__fpending.h" once again.
70494         Include <stdbool.h>.
70495         (close_stdout): Don't fail just because stdout was closed initially,
70496         since some programs don't write to stdout in the normal course of
70497         operation (other than --version and --help), and we don't want this
70498         function to make e.g. `touch file >&-' fail.
70499         But do fail if it was closed and someone has tried to write to it.
70500         E.g., `printf foo >&-' must fail.
70501
70502 2004-11-13  Jim Meyering  <jim@meyering.net>
70503
70504         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70505
70506 2004-11-12  Simon Josefsson  <jas@extundo.com>
70507
70508         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70509         small doc fix is still pending.
70510
70511 2004-11-11  Simon Josefsson  <jas@extundo.com>
70512
70513         * modules/strtok_r: New file.
70514
70515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70516         strtok_r.
70517
70518 2004-11-11  Simon Josefsson  <jas@extundo.com>
70519
70520         * m4/strtok_r.m4: New file.
70521
70522         * m4/getopt.m4: Replace opterr.
70523
70524 2004-11-11  Simon Josefsson  <jas@extundo.com>
70525
70526         * lib/strtok_r.h, strtok_r.c: New file.
70527
70528 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70531         of replacing opterr, getopt, etc.  This should handle the
70532         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70533
70534 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70537         we can stop lying to compilers about the constness of argv when we
70538         are compiled outside glibc.
70539         (getopt, getopt_long, getopt_long_only): Use it.
70540         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70541         _getopt_internal, getopt): Likewise.
70542         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70543         _getopt_long_only_r): Likewise.
70544         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70545         _getopt_long_r, _getopt_long_only_r): Likewise.
70546
70547         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70548         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70549         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70550         the other external symbols.
70551         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70552         declaration, since the above renaming now works around collisions.
70553
70554 2004-11-11  Jim Meyering  <jim@meyering.net>
70555
70556         * lib/linebreak.c: Remove trailing blanks.
70557         * lib/alloca_.h: Likewise.
70558         * lib/acosl.c: Likewise.
70559         * lib/euidaccess.c: Likewise.
70560         * lib/allocsa.h: Likewise.
70561
70562 2004-11-10  Simon Josefsson  <jas@extundo.com>
70563
70564         * m4/getaddrinfo.m4: New file.
70565
70566 2004-11-10  Simon Josefsson  <jas@extundo.com>
70567
70568         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70569
70570 2004-11-10  Simon Josefsson  <jas@extundo.com>
70571
70572         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70573         getaddrinfo.
70574
70575         * modules/getaddrinfo: New file.
70576
70577 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70580
70581 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70582
70583         * lib/mktime.c (SHR): New macro, which is a portable
70584         substitute for >> that should work even on Crays.
70585         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70586         Problem reported by Mark D. Baushke in
70587         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70588         * lib/getdate.y (SHR): Likewise.
70589         (tm_diff): Use it.
70590         * lib/strftime.c (SHR): Likewise.
70591         (tm_diff): Use it.
70592         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70593         quote_these_too, so that right shifts are well defined.  All uses
70594         changed.
70595
70596 2004-11-10  Jim Meyering  <jim@meyering.net>
70597
70598         Ensure that no close failure goes unreported.
70599         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70600         return early when it seems there's nothing to flush.
70601         Don't include __fpending.h.
70602
70603 2004-11-10  Jim Meyering  <jim@meyering.net>
70604
70605         * modules/closeout (Depends-on): Remove fpending.
70606
70607 2004-11-10  Jim Meyering  <jim@meyering.net>
70608
70609         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70610
70611 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70614         gl_FUNC_STRFTIME.
70615         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70616         and AC_REQUIRE when possible, to avoid duplicate checks.
70617         Check for <wchar.h>.
70618
70619 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70622
70623 2004-11-09  Bruno Haible  <bruno@clisp.org>
70624
70625         * m4/sockpfaf.m4: New file.
70626
70627 2004-11-05  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70630         Reported by Mark D. Baushke <mdb@cvshome.org>.
70631
70632 2004-11-04  Bruno Haible  <bruno@clisp.org>
70633
70634         2004-09-11  Bruno Haible  <bruno@clisp.org>
70635                 * allocsa.valgrind: New file.
70636         2004-02-06  Bruno Haible  <bruno@clisp.org>
70637                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70638                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70639                 Reported by Christopher Seip <chris.seip@hp.com>.
70640
70641 2004-11-04  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70644         (Makefile.am): Distribute it.
70645
70646 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70649         with errno == ERANGE if the buffer is too small.
70650         Problem reported by Mark D. Baushke.
70651
70652 2004-11-03  Albert Chin  <china@thewrittenword.com>
70653             Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70656         equivalent, substitute $ac_type for equivalent type rather than
70657         blindly using uint32_t *always* which won't work if uint32_t is not
70658         available.  Define _UINT32_T to work around typedef of uint32_t if
70659         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70660         2.5.1.
70661
70662 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         * m4/jm-macros.m4: Sync from coreutils.
70665         (gl_MACROS): Check for mbrlen, for pathchk.
70666         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70667
70668 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * lib/xreadlink.c (MAXSIZE): New macro.
70671         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70672         size does not exceed MAXSIZE.  Avoid cast.
70673         As suggested by Mark D. Baushke in
70674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70675         if readlink fails with buffer size just under MAXSIZE, try again
70676         with MAXSIZE.
70677
70678 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70679
70680         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70681
70682 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70683         and  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70686         (get_date): Overparenthesize to avoid GCC warning.
70687
70688 2004-11-02  Bruno Haible  <bruno@clisp.org>
70689
70690         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70691         returns void.
70692
70693 2004-11-02  Bruno Haible  <bruno@clisp.org>
70694
70695         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70696         function returns void.
70697
70698 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70701         fflush_unlocked, flockfile, funlockfile, funlockfile,
70702         fputs_unlocked, putc_unlocked.
70703
70704 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70707         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70708         already declared.
70709
70710 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70711
70712         * modules/getdate (Files): Add doc/getdate.texi.
70713         (Depends-on): Add setenv, xalloc.
70714
70715 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * lib/getdate.y: Add support for TZ="foo" within a date string.
70718         Fix some bugs near time_t boundaries.  Reject dates with
70719         out-of-range components, e.g., "Sept 31".
70720         Include <stdlib.h>, "setenv.h", "xalloc.h".
70721         (ISDIGIT_LOCALE): Remove; unused.
70722         Note that the TZ and time functions used here are not reentrant.
70723         (mktime_ok, get_tz): New functions.
70724         (TZBUFSIZE): New constant.
70725         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70726         This requires that we sometimes generate our own TZ="XXX..." setting.
70727
70728 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * doc/getdate.texi: New file, from coreutils with modifications for
70731         the new TZ parsing.
70732
70733 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70734
70735         * lib/mktime.c (not_equal_tm): Remove redundant check.
70736
70737 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * modules/regex (lib_SOURCES): Add regex.c.
70740         Reported by James Youngman in
70741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70742
70743 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * lib/getdate.y: Use Bison 1.875 features, and some minor
70746         code cleanups.  This change does not affect semantics.
70747         Don't include <stdlib.h>; no longer needed.
70748         Don't include unlocked-io.h; only the "#if TEST" code uses
70749         stdio, and performance isn't crucial there.
70750         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70751         Bison 1.875 features as described below.
70752         All uses of "PC." replaced by "pc->".
70753         (YYSTYPE): Add a forward declaration.
70754         (yylex, yyerror): Use full prototypes in forward decls.
70755         Use "%pure-parser" rather than obsolescent "%pure_parser".
70756         Use %parse-param and %lex-param instead of obsolescent
70757         YYPARSE_PARAM and YYLEX_PARAM.
70758         (meridian_table, month_and_day_table, time_units_table,
70759         relative_time_table, time_zone_table, military_table,
70760         lookup_zone, lookup_word, get_date):
70761         Use NULL instead of 0 where appropriate.
70762         (to_hour): Avoid abort (), to avoid a dependency on
70763         stdlib.h.
70764         (yyerror, yylex): Now accepts parser_control * arg.
70765         (main) [TEST]: Use '\0' rather than 0 for char.
70766
70767 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70770
70771 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70774         It's now the caller's responsibility to handle the case where
70775         !HAVE_GETPAGESIZE && !defined getpagesize.
70776
70777         * lib/mktime.c (leapyear): Arg is long int, not int.
70778
70779 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70780
70781         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70782
70783 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70786         missing.  Problem reported by James Youngman.
70787
70788 2004-10-16  Simon Josefsson  <jas@extundo.com>
70789
70790         * gnulib-tool: Fix comments.  Fix parse problem.
70791         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70792
70793 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70796         implementation of getopt_long.  Problem reported by Alexander Taler in:
70797         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70798
70799 2004-10-15  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool: Untabify. Initialize supplied_libname.
70802         (func_usage): More homogenous output.
70803         (func_modules_transitive_closure, func_modules_to_filelist,
70804         func_emit_lib_Makefile_am): New functions.
70805         (func_import): New function, extracted from big case statement. Use
70806         func_get_license, func_modules_transitive_closure,
70807         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70808         opt_lgpl. Don't use test -a, as it's not portable.
70809         (func_create_testdir): Use func_modules_transitive_closure,
70810         func_modules_to_filelist, func_emit_lib_Makefile_am.
70811
70812 2004-10-15  Bruno Haible  <bruno@clisp.org>
70813
70814         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70815
70816 2004-10-15  Bruno Haible  <bruno@clisp.org>
70817
70818         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70819         the portions belonging to each module.
70820         Suggested by Derek Robert Price <derek@ximbiot.com>.
70821
70822 2004-10-12  Simon Josefsson  <jas@extundo.com>
70823
70824         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70825         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70826         to real functions.
70827
70828 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70829
70830         * modules/vsnprintf: New file.
70831
70832 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70833
70834         * m4/vsnprintf.m4: New file.
70835
70836 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70837
70838         * lib/vsnprintf.h: New file.
70839         * lib/vsnprintf.c: New file.
70840
70841 2004-10-11  Bruno Haible  <bruno@clisp.org>
70842
70843         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70844         vsnprintf.
70845
70846 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70849
70850 2004-10-07  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70853         fits into the provided buffer.
70854
70855 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * lib/diacrit.c, diacrit.h: Add GPL notice.
70858
70859         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70860         notice.
70861         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70862         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70863         This avoids a potential constant-folding bug.
70864
70865 2004-10-05  Bruno Haible  <bruno@clisp.org>
70866
70867         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70868         for the declaration of strsep.
70869
70870 2004-10-05  Bruno Haible  <bruno@clisp.org>
70871
70872         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70873
70874 2004-10-04  Simon Josefsson  <jas@extundo.com>
70875
70876         * modules/memmem: New file.
70877         * tests/test-memmem.c: New file.
70878         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70879
70880 2004-10-04  Simon Josefsson  <jas@extundo.com>
70881
70882         * m4/memmem.m4: New file.
70883
70884 2004-10-04  Simon Josefsson  <jas@extundo.com>
70885
70886         * lib/memmem.h: New file.
70887         * lib/memmem.c: New file, taken from glibc.
70888
70889 2004-10-04  Simon Josefsson  <jas@extundo.com>
70890
70891         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70892         '#ifdef USE_UNLOCKED_IO'.
70893
70894 2004-10-04  Simon Josefsson  <jas@extundo.com>
70895
70896         * config/srclist.txt: Add memmem from glibc.
70897
70898 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70901
70902         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70903         modules/exclude, modules/getdate, modules/getline,
70904         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70905         modules/getusershell, modules/linebuffer, modules/md5,
70906         modules/mountlist, modules/posixtm, modules/readtokens,
70907         modules/readutmp, modules/regex, modules/sha1,
70908         modules/version-etc, modules/yesno:
70909         Remove dependency on unlocked-io.
70910
70911 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70912
70913         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70914
70915         * m4/unlocked-io.m4: Add copyright notice.
70916         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70917
70918 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70921         * lib/xmalloc.c (xmemdup): Likewise.
70922         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70923         XFREE): Remove these long-obsolescent macros.
70924         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70925         * lib/xstrdup.c: Remove.
70926
70927         * lib/regex.c (re_comp): Cast gettext return value to char *,
70928         Problem reported by Martin Neitzel via Mark D. Baushke.
70929
70930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70933         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70934         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70935         regex.c, sha1.c, version-etc.c, yesno.c:
70936         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70937         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70938         the includer's responsibility.
70939
70940         Sync from coreutils.
70941
70942         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70943         points to the start of a string, as the C Standard says the
70944         resulting behavior is undefined.
70945
70946         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70947         simple -> simple_backups, numbered_existing ->
70948         numbered_existing_backups, numbered -> numbered_backups
70949         to avoid shadowing problems.  All uses changed.
70950         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70951         * lib/backupfile.c (check_extension, numbered_backup):
70952         Rename locals to avoid shadowing 'basename'.
70953         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70954         once.
70955
70956         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70957         * lib/.cvsignore: Add getopt.h.
70958
70959 2004-10-04  Bruno Haible  <bruno@clisp.org>
70960
70961         * modules/README: New file.
70962         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70963         not a module.
70964
70965 2004-10-02  Jim Meyering  <jim@meyering.net>
70966
70967         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70968
70969 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70970
70971         * modules/strsep: New file.
70972
70973 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70974
70975         * m4/strsep.m4: New file.
70976
70977 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70978
70979         * lib/strsep.h: New file.
70980         * lib/strsep.c: New file.
70981
70982 2004-10-01  Simon Josefsson  <jas@extundo.com>
70983
70984         * lib/snprintf.c (snprintf): Handle size==0.
70985
70986 2004-10-01  Simon Josefsson  <jas@extundo.com>
70987             Bruno Haible  <bruno@clisp.org>
70988
70989         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70990         (snprintf): Declare 'args'.
70991
70992 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/snprintf.c: Remove comments as to why each header is needed.
70995
70996 2004-10-01  Bruno Haible  <bruno@clisp.org>
70997
70998         * MODULES.html.sh: Add strsep.
70999
71000 2004-09-30  Simon Josefsson  <jas@extundo.com>
71001
71002         * modules/snprintf: New file.
71003
71004 2004-09-30  Simon Josefsson  <jas@extundo.com>
71005
71006         * m4/snprintf.m4: New file.
71007
71008 2004-09-30  Simon Josefsson  <jas@extundo.com>
71009
71010         * lib/snprintf.h, lib/snprintf.c: New files.
71011
71012 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71013
71014         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
71015         (hol_entry_help): Never translate an empty string.
71016         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
71017         * lib/argp.h (OPTION_NO_TRANS): New option.
71018
71019 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71020
71021         * modules/argp (Maintainer): Replace Simon Josefsson
71022         by Sergey Poznyakoff.
71023
71024 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
71027         changes merged back into glibc.
71028
71029 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
71032
71033 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71034
71035         * lib/xvasprintf.c: Include xalloc.h.
71036         (xvasprintf): Use xalloc_die, not xmalloc_die.
71037
71038 2004-09-29  Bruno Haible  <bruno@clisp.org>
71039
71040         * modules/alloca-opt: New file, derived from modules/alloca.
71041         * modules/allocsa: Depend on alloca-opt instead of alloca.
71042         * modules/setenv: Likewise.
71043         * modules/vasnprintf: Likewise.
71044         * MODULES.html.sh: Add alloca-opt.
71045
71046 2004-09-28  Simon Josefsson  <jas@extundo.com>
71047
71048         * gnulib-tool: New parameter --lgpl, to asseert that modules are
71049         LGPL, and to replace license template from GPL to LGPL.
71050
71051 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * modules/dummy: Change license to LGPL.
71054
71055 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
71058
71059 2004-09-24  Simon Josefsson  <jas@extundo.com>
71060
71061         * modules/minmax (License): Change from GPL to LGPL.
71062
71063 2004-09-23  Simon Josefsson  <jas@extundo.com>
71064
71065         * gnulib-tool (--import): Typo.
71066
71067 2004-09-23  Simon Josefsson  <jas@extundo.com>
71068
71069         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
71070
71071 2004-09-22  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/*: Add 'License' field.
71074         * gnulib-tool: Accept --extract-license option.
71075         (func_get_license): New function.
71076
71077 2004-09-21  Bruno Haible  <bruno@clisp.org>
71078
71079         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
71080         Reported by Simon Josefsson.
71081
71082 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
71085         gl_AC_TYPE_LONG_LONG.
71086
71087 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
71090
71091 2004-09-18  Simon Josefsson  <jas@extundo.com>
71092         and  Paul Eggert  <eggert@cs.ucla.edu>
71093
71094         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
71095         calls with autoreconf.  Define GL_LIB.
71096
71097 2004-09-14  Karl Berry  <karl@gnu.org>
71098
71099         * config/srclist.txt: unsync setenv.c, sigh.
71100
71101 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
71104         Problem reported by Bruno Haible in:
71105         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
71106
71107 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * config/srclist.txt: Comment out argp-pvh.c.
71110
71111 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
71112
71113         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
71114         in case some system header has #define'd it.  Problem reported by
71115         Soeren D. Schulze in
71116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
71117
71118 2004-09-09  Karl Berry  <karl@gnu.org>
71119
71120         * regex.[ch]: delete from the root.  These were supposed to be
71121                 synced with emacs cvs, but this has not happened for about
71122                 a year, and anyway nothing else uses emacs regex.[ch].
71123                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
71124                 lib/regex[.ch] is untouched.
71125
71126 2004-09-09  Bruno Haible  <bruno@clisp.org>
71127
71128         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
71129
71130 2004-09-09  Bruno Haible  <bruno@clisp.org>
71131
71132         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
71133         modifications.
71134         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
71135
71136 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71137
71138         * modules/xvasprintf: New file.
71139         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
71140
71141 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
71142
71143         * lib/xvasprintf.h: New file.
71144         * lib/xvasprintf.c: New file.
71145         * lib/xasprintf.c: New file.
71146
71147 2004-09-08  Bruno Haible  <bruno@clisp.org>
71148
71149         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
71150
71151 2004-09-08  Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
71154         length is > INT_MAX.
71155         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
71156         more.
71157
71158 2004-09-08  Bruno Haible  <bruno@clisp.org>
71159
71160         * lib/stdint_.h: New file, taken from GNU clisp.
71161
71162 2004-09-08  Bruno Haible  <bruno@clisp.org>
71163             Oskar Liljeblad  <oskar@osk.mine.nu>
71164
71165         * modules/stdint: New file.
71166         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
71167
71168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         Import from coreutils.
71171         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
71172         strings on unbounded length.  alloca's performance benefits aren't
71173         that important here.
71174         (V_STRDUP): Remove.
71175         (parse_with_separator): New function, with most of the internals
71176         of the old parse_user_spec.  Allow user to omit both user and group,
71177         for compatibility with FreeBSD.
71178         Clone only the user name, not the entire spec.
71179         Do not set *uid, *gid unless entirely successful.
71180         Avoid memory leak in some failing cases.
71181         Fix regression for USER.GROUP reported by Dmitry V. Levin in
71182         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
71183         (parse_user_spec): Rewrite to use parse_with_separator.
71184
71185 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * modules/userspec: Don't depend on alloca.
71188
71189 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
71192
71193 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
71196         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
71197         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
71198
71199 2004-08-16  Simon Josefsson  <jas@extundo.com>
71200
71201         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
71202         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
71203         Add --dry-run for --import.
71204         Let user provided command line parameters override configure.ac
71205         settings.
71206
71207 2004-08-12  Simon Josefsson  <jas@extundo.com>
71208
71209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
71210         as discussed with Paul Eggert in threads rooted at
71211         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
71212         and
71213         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
71214         Before, the test was empty, and relied on ELIDE_CODE in source
71215         code.)
71216         (gl_PREREQ_GETOPT): New macro.
71217         (gl_GETOPT): Use them.
71218
71219 2004-08-12  Simon Josefsson  <jas@extundo.com>
71220
71221         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
71222         * lib/getopt_.h: Renamed from getopt.h.
71223
71224 2004-08-12  Simon Josefsson  <jas@extundo.com>
71225
71226         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
71227         Change default library name from libfoo to libgnu.
71228         Now, if you have a configure.ac that says:
71229                 gl_SOURCE_BASE(gl)
71230                 gl_M4_BASE(gl/m4)
71231                 gl_MODULES(error getopt etcetera)
71232                 gl_INIT
71233         you can import all you need by running:
71234                 ../gnulib/gnulib-tool --import
71235
71236         * modules/getopt (Files): Rename getopt.h to getopt_.h.
71237         (Makefile.am): Rewrite, use logic from argz.
71238         (Include): Use <getopt.h> instead of "getopt.h".
71239
71240 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * modules/argp (Files): Add m4/unlocked-io.m4.
71243         (Depends-on): Add extensions.
71244
71245 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
71248         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
71249         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
71250         Check for program_invocation_name, program_invocation_short_name,
71251         flockfile, funlockfile, features.h, _getopt_long_only_r.
71252
71253 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
71256         its complicated substitute.
71257         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
71258         and program_invocation_name.
71259         (__argp_basename) [!_LIBC]: Remove; the only use was
71260         replaced by its body.
71261         (__argp_short_program_name): Change condition from
71262         !defined __argp_short_program_name to
71263         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
71264         to match argp-namefrob.h.
71265         (__argp_failure): Don't assume strerror_r returns char *.
71266         * lib/argp-parse.c (N_): Define unconditionally.
71267         (argp_default_options): Fill out initializers with 0 to avoid
71268         gcc warnings.
71269
71270 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
71271
71272         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
71273         getopt1.c.
71274
71275 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         Merge from coreutils.
71278
71279         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
71280
71281         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
71282         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
71283
71284 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         Merge from coreutils.
71287
71288         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
71289         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
71290         for Reliant Unix 5.43.
71291
71292         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
71293         (union fooround): Use uintmax_t, not long int.
71294         The rest is a merge from libc:
71295         [defined _LIBC]: Include <shlib-compat.h>.
71296         (_obstack) [defined _LIBC]: Remove after 2.3.4.
71297
71298         * lib/settime.c (settime): Recode to avoid warning with
71299         Sun Forte C 6U2.
71300
71301         * lib/strverscmp.c: Convert to UTF-8.
71302
71303 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71306         m4/uintmax_t.m4.
71307
71308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * modules/xalloc-die: New file.
71311         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
71312
71313         * modules/md5 (Files): Add m4/uint32_t.m4.
71314         * modules/sha1: Renamed from modules/sha.
71315         (Files):
71316         Rename lib/sha.h to lib/sha1.h.
71317         Rename lib/sha.c to lib/sha1.c.
71318         Rename m4/sha.m4 to m4/sha1.m4.
71319         (lib_SOURCES): Likewise.
71320         (configure.ac): Rename gl_SHA to gl_SHA1.
71321         (Include): sha.h -> sha1.h.
71322
71323 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
71326         * m4/sha1.m4: Renamed from sha.m4.
71327         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
71328
71329 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71330
71331         * lib/obstack.h (obstack_empty_p):
71332         Don't assume that chunk->contents is suitably aligned.
71333         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71334         Likewise. Problem reported by Benno in
71335         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71336
71337         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71338         readable.  This could be improved further but it'd take some work.
71339
71340 2004-08-08  Simon Josefsson  <jas@extundo.com>
71341
71342         * modules/xgethostname (Depends-on): Remove exit and error (not
71343         used).
71344
71345         * modules/getpass-gnu: Add getpass.h.
71346         (Depends-on): Add stdbool.
71347         * modules/getpass: Add getpass.h.
71348
71349 2004-08-08  Simon Josefsson  <jas@extundo.com>
71350
71351         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71352         Check getpass declaration.
71353
71354 2004-08-08  Simon Josefsson  <jas@extundo.com>
71355
71356         * lib/xgethostname.c: Don't include error.h (not used).
71357
71358         * lib/getpass.h: Add.
71359         * lib/getpass.c: Include getpass.h first.
71360
71361 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * lib/xalloc-die.c: New file.
71364         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71365         All uses removed.
71366         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71367         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71368         xalloc-die.c.
71369         (_, N_, xalloc_die): Move to xalloc-die.c.
71370         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71371         so that we needn't mess with xalloc_msg_memory_exhausted.
71372
71373         * lib/sha1.h: Renamed from sha.h.
71374         (SHA1_H): Renamed from _SHA_H.
71375         (sha1_ctx): Renamed from sha_ctx.
71376         (sha1_init_ctx): Renamed from sha_init_ctx.
71377         (sha1_process_block): Renamed from sha_process_block.
71378         (sha1_process_bytes): Renamed from sha_process_bytes.
71379         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71380         (sha1_read_ctx): Renamed from sha_read_ctx.
71381         (sha1_stream): Renamed from sha_stream.
71382         (sha1_buffer): Renamed from sha_buffer.
71383         * lib/sha1.c: Likewise; renamed from sha.c.
71384         Do not include <sys/types.h>.
71385         Include <stddef.h> rather than <stdlib.h>.
71386
71387 2004-08-08  Bruno Haible  <bruno@clisp.org>
71388
71389         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71390         FILESYSTEM_PREFIX_LEN.
71391         * lib/progreloc.c: Likewise.
71392         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71393
71394 2004-08-06  Simon Josefsson  <jas@extundo.com>
71395
71396         * modules/progname (Depends-on): Don't depend on stdbool.
71397
71398 2004-08-06  Simon Josefsson  <jas@extundo.com>
71399
71400         * modules/getsubopt: New file.
71401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71402         getsubopt.
71403
71404 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71405
71406         More merge from coreutils.
71407
71408         * m4/utimens.m4, m4/utimecmp.m4: New files.
71409         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71410         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71411         prereq.m4, sha.m4: Import changes from coreutils.
71412
71413 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71414
71415         More merge from coreutils.
71416         * modules/raise, modules/readtokens0, modules/utimens:
71417         * modules/utimecmp, module/xnanosleep: New files.
71418         * modules/strftime: Add lib/strftime.h.
71419         Change include from <time.h> to "strftime.h".
71420         * modules/yesno: Add lib/yesno.h.
71421         * modules/backupfile: Remove lib/addext.c.
71422         * modules/euidaccess: Add stat-macros.h.
71423         * modules/canonicalize, modules/euidaccess,
71424         modules/filemode, modules/lchown, modules/makepath,
71425         modules/rmdir, modules/stat: Likewise.
71426
71427 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71428
71429         Merge from tar.
71430         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71431         SIZE_MAX is a valid preprocessor constant.
71432         (__argp_basename): Change from "#ifndef _LIBC"
71433         to "#ifndef __argp_short_program_name", so that
71434         we don't compile these functions for tar.
71435
71436         More merges from coreutils.
71437         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71438         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71439         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71440         * lib/addext.c: Remove; no longer needed.
71441         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71442         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71443         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71444         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71445         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71446         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71447         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71448         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71449         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71450         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71451         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71452         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71453         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71454         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71455         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71456         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71457         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71458         Import changes from coreutils.
71459
71460 2004-08-05  Simon Josefsson  <jas@extundo.com>
71461
71462         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71463
71464 2004-08-05  Simon Josefsson  <jas@extundo.com>
71465
71466         * m4/getsubopt.m4: New file.
71467
71468 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         Merge from coreutils.
71471
71472         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71473         * m4/getcwd-path-max.m4: New files.
71474
71475         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71476         FILESYSTEM_PREFIX_LEN ->
71477         FILE_SYSTEM_PREFIX_LEN.
71478         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71479         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71480         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71481         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71482
71483         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71484         prerequisite modules now handle the DOS stuff.
71485         Don't check for unistd.h.
71486
71487 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         Merge from coreutils.
71490
71491         * lib/.gdb-history: Remove; this doesn't belong here.
71492
71493         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71494         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71495         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71496         * lib/getcwd.c: New files.
71497
71498         * lib/dirname.h: Include <stdbool.h>.
71499         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71500         for consistency with POSIX terminology.  All uses changed.
71501         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71502         (strip_trailing_slashes): Use bool for booleans.
71503         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71504
71505         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71506         sometimes returns a positive errno value even when it succeeds.
71507         (print_errno_message) [!LIBC]: Fall back on strerror if
71508         __strerror_r fails.
71509
71510         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71511         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71512         (longest_relative_suffix): New function.
71513         (path_concat): Use it.  Assume first argument is not NULL.
71514         Port to DOS.  Omit redundant separators.
71515         Report an error instead of returning NULL.
71516         Use mempcpy instead of memcpy.
71517         (xpath_concat): Remove: not declared or used.
71518
71519         * lib/same.h: Include <stdbool.h>
71520         (same_name): Return bool, not int.
71521         * lib/same.c (same_name): Likewise.
71522         (errno): Don't declare; we assume C89 or better now.
71523
71524         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71525         if not already defined.
71526
71527         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71528         * lib/dup-safer.c (errno): Likewise.
71529
71530 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         Merge from coreutils.
71533         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71534         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71535         * modules/path-concat: Don't depend on strdup.
71536
71537 2004-08-03  Simon Josefsson  <jas@extundo.com>
71538
71539         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71540         * lib/progname.h: Don't include stdbool.h.
71541
71542 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71545         * MODULES.html.sh (func_all_modules): Remove fatal.
71546
71547 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71548
71549         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71550
71551 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71554         working.
71555
71556 2004-08-02  Simon Josefsson  <jas@extundo.com>
71557
71558         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71559         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71560         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71561
71562 2004-08-01  Simon Josefsson  <jas@extundo.com>
71563
71564         * lib/xgetdomainname.c: Include stdlib.h, for free().
71565
71566 2004-07-19  Bruno Haible  <bruno@clisp.org>
71567
71568         * MODULES.html.sh (func_all_modules): Add dummy.
71569
71570 2004-07-16  Simon Josefsson  <jas@extundo.com>
71571
71572         * modules/dummy: New file.
71573
71574 2004-07-16  Simon Josefsson  <jas@extundo.com>
71575
71576         * lib/dummy.c: New file.
71577
71578 2004-07-16  Bruno Haible  <bruno@clisp.org>
71579
71580         * lib/backupfile.h: Add extern "C" for C++.
71581         * lib/closeout.h: Likewise.
71582         * lib/copy-file.h: Likewise.
71583         * lib/findprog.h: Likewise.
71584         * lib/full-write.h: Likewise.
71585         * lib/pathname.h: Likewise.
71586         * lib/progname.h: Likewise.
71587         * lib/stpcpy.h: Likewise.
71588         * lib/stpncpy.h: Likewise.
71589         * lib/strcase.h: Likewise.
71590         * lib/strstr.h: Likewise.
71591         * lib/xalloc.h: Likewise.
71592
71593         * lib/mbswidth.h: Add extern "C" for C++.
71594         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71595
71596 2004-07-13  Robert Millan  <robertmh@gnu.org>
71597
71598         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71599
71600 2004-07-09  Simon Josefsson  <jas@extundo.com>
71601
71602         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71603         failed without this.)
71604
71605 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * modules/chown (Files): Add lib/fchown-stub.c, since
71608         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71609
71610 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/fchown-stub.c: New file.
71613
71614 2004-06-24  Jim Meyering  <jim@meyering.net>
71615
71616         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71617
71618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * modules/argz: Omit "#include".
71621
71622         * MODULES.html.sh (func_all_modules): Add calloc, to match
71623         2004-06-01 addition of calloc module.
71624
71625 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         * m4/argz.m4: New file, which is autoupdated from libtool.
71628
71629 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71630
71631         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71632         libtool.
71633
71634 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * config/srclist-update: Don't insist on "USA." before the
71637         close-comment, as libtool omits the period and puts the */ on a
71638         separate line.
71639         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71640         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71641
71642 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71643
71644         * modules/argz: New file.
71645         * MODULES.html.sh (func_all_modules): Add argz.
71646
71647 2004-06-12  Jim Meyering  <jim@meyering.net>
71648         and  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         * modules/hash (Files): Add lib/xalloc.h.
71651         * modules/pipe (Depends-on): Add wait-process.
71652         * modules/stat (Depends-on): Add xalloc.
71653         * modules/userspec (Files): Add lib/userspec.h.
71654         * modules/xstrto
71655
71656         Upgrade from gettext-0.13.
71657         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71658         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71659         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71660
71661 2004-06-10  Jim Meyering  <jim@meyering.net>
71662
71663         * lib/calloc.c: New file.
71664
71665 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * lib/getdate.y (yylex): Allow space between sign and number.
71668         Problem reported by Dan Jacobson.
71669
71670 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         Merge from coreutils CVS.
71673
71674         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71675         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71676         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71677         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71678         xstrtol.m4: Fix copyright date and/or serial number.
71679
71680         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71681         See if we need an fchown replacement.
71682         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71683         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71684         and use the replacement function if we detect either defect.
71685
71686         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71687         gl_UTIMECMP.
71688
71689 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71690         and  Jim Meyering  <jim@meyering.net>
71691
71692         Merge from coreutils CVS.
71693
71694         * lib/stat-macros.h: New file, with contents from file-type.h
71695         and coreutils' system.h.
71696         * lib/file-type.c: Include "stat-macros.h".
71697         * lib/file-type.h (file_type): Move all macro definitions to new file,
71698         stat-macros.h.
71699
71700         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71701         Wrap old code with this conditional.
71702         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71703         function that does not dereference symlinks.
71704         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71705
71706         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71707         dependency problems.
71708         (xreadlink): Accept new arg SIZE, for efficiency.
71709         All decls and uses changed.
71710         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71711
71712         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71713         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71714
71715         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71716         sysexits.h.
71717
71718 2004-06-01  Jim Meyering  <jim@meyering.net>
71719
71720         * m4/calloc.m4: New file.
71721
71722 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71725         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71726         Also, fix a typo in a diagnostic.
71727
71728 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71731         or AC_FUNC_REALLOC.
71732
71733 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71736         macros to be defined.
71737         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71738         the allocator returns NULL because the requested size is zero.
71739
71740 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71743         var.  Add comment explaining why libc still defines it.  This
71744         merges the following patch from glibc:
71745         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71746
71747 2004-05-20  Andreas Schwab  <schwab@suse.de>
71748
71749         * m4/free.m4: Replace free if it not known to work, not the other
71750         way round.
71751
71752 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71755         present in glibc since revision 1.1 of this file.
71756         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71757         obstack_alignment_mask, obstack_alloc, obstack_base,
71758         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71759         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71760         obstack_grow0, obstack_init, obstack_int_grow,
71761         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71762         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71763         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71764         nonexistent functions.
71765
71766 2004-05-18  Karl Berry  <karl@gnu.org>
71767
71768         * config/srclist.txt: break link for vasnprintf.c.
71769
71770 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         Port obstack to the AS/400, where pointers are 16 bytes wide and
71773         you cannot cast an integer to a valid pointer.  This patch is
71774         currently waiting to be integrated into glibc; see
71775         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71776
71777         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71778         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71779         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71780         (struct obstack): temp member is now a union of a pointer and
71781         an integer, instead of an integer.  All integer uses changed.
71782         This does not affect the physical layout of struct obstack,
71783         except on hosts (like the AS/400) where the size or alignment of
71784         void * is greater than that of ptrdiff_t.
71785         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71786         __STDC__)]: Store temporary in pointer member of union, not
71787         integer member.
71788         * lib/obstack.c: Include <stddef.h>, for offsetof.
71789         (struct fooalign): Remove; it doesn't need a name.
71790         (union fooround): Change double to long double, and add void *.
71791         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71792         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71793         not a macro.  Hence the values are always int; so remove all
71794         casts-to-int in uses.
71795
71796 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71799         we can get this patch merged into glibc.
71800
71801 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71802             Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * m4/argp: Depend on alloca.
71805
71806 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71807             Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71810         freecoding.
71811
71812 2004-05-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71815         precision that consists of a '.' followed by an empty digit string.
71816         Patch by Tor Lillqvist <tml@iki.fi>.
71817
71818 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71819
71820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71821         for backward compatibility with older code.  We need our own
71822         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71823         it under some other name, and our alloca.h will define it.
71824
71825 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71826             Derek Price  <derek@ximbiot.com>
71827
71828         * lib/alloca.c: Include <alloca.h>, to get our interface.
71829         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71830         include <alloca.h> first.  Use C89 prototype for alloca; this
71831         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71832         Use #elif for simplicity, since we can assume C89 now.
71833         Don't try to source the system alloca.h since it will not be found
71834         and to prevent recursively including its replacement.
71835         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71836         * lib/regex.c: Likewise.
71837
71838 2004-05-16  Derek Price  <derek@ximbiot.com>
71839             Paul Eggert  <eggert@cs.ucla.edu>
71840
71841         getline cleanup.  This changes the getndelim2 API: both order of
71842         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71843         no delimiter).
71844
71845         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71846         interface does that.
71847         (getline): Always use getdelim, so that we don't have two
71848         copies of this code.
71849         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71850         if available.
71851         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71852         (GETNDELIM2_MAXIMUM): New macro.
71853         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71854         instead of the old practice of delim2==0.  All callers changed.
71855         Return -1 on overflow, instead of returning junk.
71856         Do not set *linesize unless allocation succeeds.
71857         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71858         that we include sys/types.h.
71859         * lib/getnline.h: Likewise.
71860         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71861         (getndelim2): Reorder arguments.
71862         * lib/getnline.c (getnline, getndelim):
71863         Don't discard the NMAX argument.
71864         (getnline): Invoke getndelim, to avoid code duplication.
71865         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71866         of (size_t) -1 by callers of the getnline family.
71867
71868 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71871         Check for gettimeofday.
71872         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71873         Check for settimeofday, stime.
71874
71875 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * lib/nanosleep.c (suspended): Change its type from int to
71878         sig_atomic_t volatile.
71879         (first_call): Make it private to rpl_nanosleep, and have it
71880         be zero initially as that's a bit faster.
71881         (my_usleep): Round up fractional times instead of truncating them,
71882         as this is the usual meaning for 'sleep'.
71883
71884         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71885         doesn't work.
71886         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71887         (ENOSYS): Define if not defined.
71888         (settime): Fall back on stime if it exists and settimeofday fails.
71889         But don't bother with fallbacks if a method fails with errno == EPERM.
71890
71891 2004-05-11  Jim Meyering  <jim@meyering.net>
71892
71893         Prior to this change, the save_cwd caller required read access to the
71894         current directory on most systems (ones with the fchdir function).
71895
71896         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71897         fails, try write-only, and finally, resort to using xgetcwd.
71898
71899 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * lib/obstack.c, obstack.h: Import changes from libc.
71902
71903 2004-04-28  Bruno Haible  <bruno@clisp.org>
71904
71905         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71906         also implicitly appends .exe to executables.
71907         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71908         accepts Windows pathnames.
71909         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71910         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71911         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71912         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71913         Reported by Derek Robert Price <derek@ximbiot.com>.
71914
71915 2004-04-21  Karl Berry  <karl@gnu.org>
71916
71917         * config/srclist.txt (localcharset.c): break sync.
71918
71919 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71920
71921         * m4/host-os.m4: Add a copyright notice.
71922
71923 2004-04-20  Jim Meyering  <jim@meyering.net>
71924
71925         Change UTILS_ to gl_ in AC_DEFINE'd names.
71926         Change utils_- and jm_-prefixed variables, too.
71927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71928         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71930
71931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71932         Don't emit trailing blanks.
71933         Also rename jm_-prefixed variables to have gl_ prefix.
71934
71935         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71936         Also rename jm_-prefixed variables to have gl_ prefix.
71937
71938         * m4/jm-macros.m4: Reflect the renamings.
71939         * m4/prereq.m4: Likewise.
71940
71941 2004-04-20  Jim Meyering  <jim@meyering.net>
71942
71943         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71944         memory.
71945
71946 2004-04-20  Jim Meyering  <jim@meyering.net>
71947             Bruno Haible  <bruno@clisp.org>
71948
71949         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71950         memory when realloc fails.
71951
71952 2004-04-19  Jim Meyering  <jim@meyering.net>
71953
71954         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71955         now that readutmp.c may call `free (0)'.
71956
71957 2004-04-19  Bruno Haible  <bruno@clisp.org>
71958
71959         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71960         * m4/inttypes_h.m4: Likewise.
71961         * m4/stdint_h.m4: Likewise.
71962         * m4/intmax_t.m4: Likewise.
71963         * m4/uintmax_t.m4: Likewise.
71964
71965 2004-04-18  Jim Meyering  <jim@meyering.net>
71966
71967         * m4/prereq.m4: Don't forbid jm_ prefix.
71968
71969         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71970         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71971         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71972         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71973         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71974         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71975         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71976         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71977         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71978         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71979         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71980         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71981         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71982         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71983         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71984         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71985         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71986         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71987         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71988
71989 2004-04-18  Jim Meyering  <jim@meyering.net>
71990
71991         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71992         failure, don't leak memory and do call END_UTMP_ENT.
71993
71994 2004-04-16  Jim Meyering  <jim@meyering.net>
71995
71996         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71997         coreutils' stat program.
71998         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71999
72000 2004-04-11  Paul Eggert  <eggert@twinsun.com>
72001
72002         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
72003         C89.
72004         (CHAR_BIT): Remove, since we assume C89.
72005         Include <stdint.h> if available, as per current Autoconf CVS advice.
72006
72007 2004-03-31  Jim Meyering  <jim@meyering.net>
72008
72009         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
72010         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
72011         * m4/xalloc.m4: Likewise.
72012
72013 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72014
72015         Merge from coreutils.
72016
72017         * m4/inttostr.m4: New file.
72018         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
72019         Require AM_STDBOOL_H and gl_TIMESPEC instead.
72020         Require gl_CLOCK_TIME.
72021         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
72022
72023 2004-03-30  Paul Eggert  <eggert@twinsun.com>
72024
72025         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
72026         not bool, to be more consistent with Unix conventions.
72027         Suggested by Bruno Haible.
72028
72029         Merge from coreutils.
72030
72031         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
72032         * lib/umaxtostr.c: New files.
72033
72034         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
72035         the usual <time.h> dance.
72036         (get_date): Change signature to support fractional time stamps.
72037         All callers changed.
72038         * lib/getdate.y: Include "getdate.h" first, as we can now
72039         assume C89 and don't need to worry about 'const'.
72040         Similarly, include "unlocked-io.h" near start, not in middle.
72041         Include <limits.h>.
72042         (textint.value): Use long int rather than int.
72043         (textint.digits): Use size_t rather than int.
72044         (BILLION, LOG10_BILLION): New constants.
72045         (parser_control): New member rel_ns.  Members day_ordinal,
72046         time_zone, month, day, hour, minutes, rel_year, rel_month,
72047         rel_day, rel_hour, rel_minutes, rel_seconds
72048         are now long int, not int.  Member seconds is now struct timespec,
72049         not int.  New member timespec_seen.  Members dates_seen, days_seen,
72050         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
72051         not int.
72052         (%union.intval): Now long int, not int.
72053         New member timespec.
72054         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
72055         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
72056         (spec): Now is a timespec or an item list.
72057         (timespec, items): New nonterminals.
72058         (time, rel, relunit, number, get_date):
72059         Add support for fractional seconds.
72060         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
72061         (gmtime, localtime, mktime): Remove decls; not needed with C89.
72062         (to_hour): First arg is now long int, not int.
72063         (to_year): Returns long int, not int.
72064         Don't treat year -70 like 70.
72065         (tm_diff): Returns long int, not int.
72066         (lookup_word): Use bool instead of int when appropriate.
72067         (yylex): Use size_t for count, not int.
72068         Detect overflow when parsing large integer constants.
72069         Add support for fractions.
72070         (get_date): Make pointers 'const' if possible.
72071         Use more-portable code to detect integer overflow.
72072         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
72073         Don't use ctime; it's not reliable if the year has >4 digits.
72074
72075         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
72076         This is for compatibility with BSD.
72077
72078         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
72079         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
72080         From coreutils' system.h.
72081
72082         * lib/userspec.c: Don't include "posixver.h".
72083         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
72084         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
72085         compatible extension.  Simplify code by removing a boolean int
72086         that was always nonzero if a string was nonnull.
72087
72088 2004-03-30  Jim Meyering  <jim@meyering.net>
72089
72090         Merge from coreutils.
72091
72092         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
72093         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
72094         on some systems one must include <grp.h> before it.
72095         Reported by Christian Krackowizer.
72096
72097 2004-03-30  Jim Meyering  <jim@meyering.net>
72098
72099         Merge from coreutils.
72100
72101         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
72102
72103         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
72104         an empty input stream.
72105
72106         * lib/readtokens.c: Include <stdbool.h>.
72107         (readtoken): Use `size_t' rather than int/long.
72108         All callers adjusted.
72109         Use `bool' rather than `int' where appropriate.
72110         Use memset rather than an explicit loop.
72111         Use x2nrealloc rather than xrealloc.
72112         Allow the use of `\0' as a delimiter.
72113         (readtokens): Likewise.
72114         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
72115
72116 2004-03-30  Jim Meyering  <jim@meyering.net>
72117
72118         * m4/realloc.m4: Remove file, since now it does no more than
72119         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
72120         the `configure.ac' section of module/realloc.
72121         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
72122
72123 2004-03-30  Bruno Haible  <bruno@clisp.org>
72124
72125         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
72126         nonnull.
72127
72128 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72129
72130         Merge changes to getloadavg.c from coreutils and Emacs.
72131
72132         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
72133         Define to an expression, not to the empty string.
72134         Include cloexec.h and xalloc.h.
72135         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
72136         Use set_cloexec_flag rather than rolling our own.
72137         * lib/cloexec.c, lib/cloexec.h: New files.
72138
72139 2004-03-29  Paul Eggert  <eggert@twinsun.com>
72140
72141         * m4/cloexec.m4: New file.
72142
72143 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72144
72145         * lib/getopt.h: Sync with libc CVS.
72146
72147 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72148             Bruno Haible  <bruno@clisp.org>
72149
72150         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
72151         mbswidth.
72152
72153 2004-03-18  Paul Eggert  <eggert@twinsun.com>
72154             Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/mbswidth.h: Include <wchar.h> only if
72157         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
72158         <wchar.h>.
72159         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
72160
72161 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72162
72163         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
72164         Sync with libc CVS.
72165         * lib/getopt_int.h: New file, also synced from libc.
72166
72167 2004-03-09  Paul Eggert  <eggert@twinsun.com>
72168
72169         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
72170         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
72171         Bring back getopt.c, getopt.h, getopt1.c.
72172
72173 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72174
72175         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
72176         All uses changed.  Check for sa_sigaction member; this fixes
72177         a bug first reported by Jason Andrade in
72178         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72179
72180 2004-03-07  Paul Eggert  <eggert@twinsun.com>
72181
72182         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
72183         '#if' expressions.  Unlike the code it replaces, it does not
72184         depend on (defined _SC_PAGESIZE).  However, it does depend on
72185         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
72186         first reported by Jason Andrade in
72187         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
72188
72189 2004-02-25  Simon Josefsson  <jas@extundo.com>
72190
72191         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
72192
72193 2004-02-25  Simon Josefsson  <jas@extundo.com>
72194
72195         * lib/strdup.h: New file.
72196         * lib/strdup.c: Include it.
72197         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
72198         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
72199
72200 2004-02-23  Karl Berry  <karl@gnu.org>
72201
72202         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
72203         (from fencepost.gnu.org:/gd/gnuorg).
72204
72205 2004-02-23  Karl Berry  <karl@gnu.org>
72206
72207         * config/srclistvars.sh (GNUORG) [karl]: redefine.
72208         * config/srclist.txt: add maintain/standards documents.
72209
72210 2004-02-18  Bruno Haible  <bruno@clisp.org>
72211
72212         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
72213         Reported by Derek Robert Price <derek@ximbiot.com>.
72214
72215 2004-02-16  Karl Berry  <karl@gnu.org>
72216
72217         * config/mkinstalldirs, install-sh: update from automake.
72218
72219 2004-02-06  Karl Berry  <karl@gnu.org>
72220
72221         * m4/po.m4: update from gettext 0.14.1.
72222
72223 2004-02-06  Karl Berry  <karl@gnu.org>
72224
72225         * lib/config.charset: update from gettext 0.14.1.
72226
72227 2004-02-05  Paul Eggert  <eggert@twinsun.com>
72228
72229         Add comments and code, prompted by suggestions from Bruno Haible
72230         for sh-quote.
72231         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
72232         describing the enum quoting_style values.
72233         * lib/quotearg.c (quotearg_alloc): New function.
72234         (quotearg_buffer_restyled): Treat lone { and } as special.
72235         Treat = as special.  Work around bug with older shells
72236         that "see" a '\' that is really the 2nd byte of a multibyte char.
72237         Quote empty string with shell_quoting_style.
72238
72239 2004-02-03  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/pipe.m4: New file, from GNU gettext.
72242
72243 2004-02-03  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/pipe.h: New file, from GNU gettext.
72246         * lib/pipe.c: New file, from GNU gettext.
72247
72248 2004-01-27  Bruno Haible  <bruno@clisp.org>
72249
72250         * m4/execute.m4: New file, from GNU gettext.
72251
72252 2004-01-27  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/execute.h: New file, from GNU gettext.
72255         * lib/execute.c: New file, from GNU gettext.
72256         * lib/w32spawn.h: New file, from GNU gettext.
72257
72258 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72259
72260         Merge from diffutils.
72261
72262         * lib/file-type.c (file_type): Add typed memory objects.
72263         * lib/file-type.h (S_TYPEISTMO): New macro.
72264
72265         * lib/c-stack.h (c_stack_action): Remove argv argument.
72266         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
72267         (die): Don't calculate message unless segv_action returns.
72268         (get_stack_location, min_address_from_argv, max_address_from_argv,
72269         volatile stack_base, volatile_stack_size): Remove.
72270         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
72271         that every segmentation violation is a stack overflow.  (Ouch!)
72272         See Debian bug 136249 (still outstanding) for more info about why
72273         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
72274
72275 2004-01-24  Paul Eggert  <eggert@twinsun.com>
72276
72277         Exit-status fix from coreutils.
72278
72279         Use exit_failure consistently in place of EXIT_FAILURE,
72280         so that program exit statuses are consistent on failure.
72281
72282         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
72283         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
72284         * lib/argmatch.h: Comment fix to match the above.
72285         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
72286         Now a macro referring to exit_failure, instead of a separate
72287         variable.  Include "exitfail.h" to get it.
72288         * lib/xstrtol.h: Include "exitfail.h".
72289         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
72290
72291         * lib/long-options.c (parse_long_options): Use prototype
72292         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
72293         for clarity.
72294
72295 2004-01-21  Jim Meyering  <jim@meyering.net>
72296
72297         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
72298         so as not to conflict with a different-sized __mktime_internal
72299         function in GNU libc.
72300         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
72301         Problem building statically-linked `ls' reported by Michael Brunnbauer.
72302
72303 2004-01-20  Karl Berry  <karl@gnu.org>
72304
72305         * config/config.guess: update from config.
72306
72307         * config/srclistvars.sh: GNUWWWLICENSES for karl.
72308
72309 2004-01-20  Bruno Haible  <bruno@clisp.org>
72310
72311         Safer stack allocation.
72312         * lib/setenv.c: Include allocsa.h.
72313         (alloca): Remove fallback definition.
72314         (freea): Remove macro.
72315         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
72316         instead of freea.
72317
72318 2004-01-20  Bruno Haible  <bruno@clisp.org>
72319
72320         * m4/eealloc.m4: New file, from GNU gettext.
72321
72322 2004-01-20  Bruno Haible  <bruno@clisp.org>
72323
72324         * m4/allocsa.m4: New file, from GNU gettext.
72325
72326 2004-01-20  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/xallocsa.h: New file, from GNU gettext.
72329         * lib/xallocsa.c: New file, from GNU gettext.
72330
72331 2004-01-20  Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72334
72335 2004-01-20  Bruno Haible  <bruno@clisp.org>
72336
72337         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72338         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72339         specially.
72340
72341 2004-01-20  Bruno Haible  <bruno@clisp.org>
72342
72343         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72344         patch.
72345
72346 2004-01-20  Bruno Haible  <bruno@clisp.org>
72347
72348         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72349
72350 2004-01-20  Bruno Haible  <bruno@clisp.org>
72351
72352         * lib/eealloc.h: New file.
72353
72354 2004-01-20  Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/binary-io.h: Avoid warnings on Cygwin.
72357
72358 2004-01-20  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/allocsa.h: New file, from GNU gettext.
72361         * lib/allocsa.c: New file, from GNU gettext.
72362
72363 2004-01-18  Karl Berry  <karl@gnu.org>
72364
72365         * doc/gpl.texi, doc/lgpl.texi: new files.
72366
72367 2004-01-18  Karl Berry  <karl@gnu.org>
72368
72369         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72370         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72371
72372 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72373
72374         Merge from coreutils.
72375
72376         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72377         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72378         (gl_DEFAULT_POSIX2_VERSION): Move
72379         the documentation from 'configure' into 'config.hin',
72380         so that 'configure --help' isn't burdened by it and
72381         we don't have to worry about its formatting there.
72382         Reword the documentation so that it's more succinct
72383         and can be run together into a single paragraph.
72384         * m4/same.m4 (gl_SAME): Check for pathconf.
72385
72386 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72387
72388         Merge from coreutils.
72389
72390         * lib/posixver.c: Include posixver.h.
72391
72392         * lib/same.c: Include <stdbool.h>, <limits.h>.
72393         (_POSIX_NAME_MAX): Define if not defined.
72394         (MIN): New macro.
72395         (same_name): If file names are silently truncated, report
72396         that the file names are the same if they are the same after
72397         the silent truncation.
72398
72399         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72400         conversion function.
72401         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72402         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72403         longer needed.
72404
72405 2004-01-15  Jim Meyering  <jim@meyering.net>
72406
72407         Merge from coreutils.
72408
72409         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72410         if no library is required.
72411         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72412         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72413         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72414         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72415         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72416         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72417         value, $ac_cv_search_crypt, if it's "none required".
72418         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72419         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72420         not gl_FUNC_GETLOADAVG.
72421         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72422         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72423
72424 2004-01-15  Jim Meyering  <jim@meyering.net>
72425
72426         Merge from coreutils.
72427
72428         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72429         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72430         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72431
72432         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72433         optional configure-time default.
72434
72435         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72436
72437         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72438
72439 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72440
72441         Merge from coreutils.
72442
72443         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72444         value, $ac_cv_search_nanosleep, if it's "none required".
72445
72446 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72447
72448         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72449         with like-named macro in fnmatch.c.
72450         (EXT): Use an internal constant instead.
72451
72452         Merge fnmatch patches from glibc.
72453         * lib/fnmatch.c (mbsinit): Remove define.
72454         Add libc_hidden_ver (__fnmatch, fnmatch).
72455         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72456         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72457
72458 2004-01-14  Karl Berry  <karl@gnu.org>
72459
72460         * config/install-sh: update from automake.
72461
72462 2004-01-13  Karl Berry  <karl@gnu.org>
72463
72464         * config/install-sh: update from automake.
72465
72466 2004-01-09  Karl Berry  <karl@gnu.org>
72467
72468         * config/install-sh: update from automake.
72469
72470 2004-01-05  Karl Berry  <karl@gnu.org>
72471
72472         * config/config.{sub,guess}: update from config.
72473
72474 2003-12-31  Karl Berry  <karl@gnu.org>
72475
72476         * config/depcomp: update from automake.
72477
72478 2003-12-14  Karl Berry  <karl@gnu.org>
72479
72480         * lib/config.charset: update from gettext-runtime.
72481
72482 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72483
72484         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72485         Bug reported by Alfred M. Szmidt.
72486
72487 2003-12-03  Bruno Haible  <bruno@clisp.org>
72488
72489         * m4/gettext.m4: Upgrade from gettext-0.13.
72490         * m4/po.m4: Upgrade from gettext-0.13.
72491         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72492         * m4/intmax.m4: New file, from gettext-0.13.
72493         * m4/printf-posix.m4: New file, from gettext-0.13.
72494
72495 2003-11-29  Karl Berry  <karl@gnu.org>
72496
72497         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72498
72499 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72500             Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/printf-parse.h: Don't include sys/types.h.
72503         (ARG_NONE): New macro.
72504         (char_directive): Change type of *arg_index fields to size_t.
72505         * lib/printf-parse.c: Don't include sys/types.h.
72506         (SSIZE_MAX): Remove macro.
72507         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72508         Remove unnecessary overflow check.
72509         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72510         fields.
72511
72512 2003-11-25  Bruno Haible  <bruno@clisp.org>
72513
72514         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72515
72516 2003-11-25  Bruno Haible  <bruno@clisp.org>
72517
72518         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72519         gt_TYPE_SSIZE_T.
72520
72521 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72522
72523         * modules/alloca: Remove dependency on xalloc.
72524
72525 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72526
72527         * lib/alloca.c: Remove dependency on xalloc module.
72528         (xalloc_die): Remove.
72529         (memory_full) [!defined emacs]: New macro.
72530         [!defined emacs]: Don't include xalloc.h.
72531         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72532         address arithmetic overflows.  Change datatypes a bit to avoid
72533         unnecessary casts.
72534
72535 2003-11-22  Jim Meyering  <jim@meyering.net>
72536
72537         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72538         s/size/size_t/.
72539
72540 2003-11-21  Karl Berry  <karl@gnu.org>
72541
72542         * config/config.{sub,guess}: update from config.
72543
72544 2003-11-18  Karl Berry  <karl@gnu.org>
72545
72546         * config/config.{sub,guess}: update from config.
72547
72548         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72549
72550 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72551
72552         * README: Mention that S+T cannot overflow if S is the size of
72553         an existing object and T is sufficiently small.
72554
72555 2003-11-17  Jim Meyering  <jim@meyering.net>
72556
72557         On systems without utime and without a utimes function capable of
72558         dealing with a NULL struct utimbuf* argument, this utime replacement
72559         could -- in unusual circumstances -- leak a file descriptor.
72560         * lib/utime.c: Include <unistd.h> and <errno.h>.
72561         (utime_null): Be sure to close `fd' and to preserve errno.
72562         Reported by Geoff Collyer via Arnold Robbins.
72563
72564 2003-11-17  Bruno Haible  <bruno@clisp.org>
72565
72566         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72567         (Depends-on): Add xsize.
72568
72569 2003-11-17  Bruno Haible  <bruno@clisp.org>
72570
72571         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72572
72573 2003-11-17  Bruno Haible  <bruno@clisp.org>
72574
72575         * lib/vasnprintf.c (alloca): Remove fallback definition.
72576         (freea): Remove definition.
72577         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72578         Reported by Paul Eggert.
72579
72580 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72581             Bruno Haible  <bruno@clisp.org>
72582
72583         Protect against address arithmetic overflow.
72584         * lib/printf-args.h: Include stddef.h.
72585         (arguments): Change type of field 'count' to size_t.
72586         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72587         'unsigned int' where appropriate.
72588         * lib/printf-parse.h: Include sys/types.h.
72589         (char_directive): Change type of *arg_index fields to ssize_t.
72590         (char_directives): Change type of fields 'count', max_*_length to
72591         size_t.
72592         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72593         (SSIZE_MAX): Define fallback value.
72594         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72595         instead of 'int' where appropriate. Check a_allocated, d_allocated
72596         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72597         * lib/vasnprintf.c: Include xsize.h.
72598         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72599         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72600         overflow. Avoid wraparound when converting a width or precision from
72601         decimal to binary.
72602
72603 2003-11-16  Bruno Haible  <bruno@clisp.org>
72604
72605         Update from GNU gettext.
72606         * lib/printf-parse.c: Generalize to it can be compiled for wide
72607         strings.
72608         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72609         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72610         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72611         SNPRINTF): New macros.
72612         Don't include <alloca.h> if the file is used inside libintl.
72613         (local_wcslen): New function, for Solaris 2.5.1.
72614         (VASNPRINTF): Use it instead of wcslen.
72615
72616 2003-11-16  Bruno Haible  <bruno@clisp.org>
72617
72618         * lib/xsize.h (xmax): New function.
72619         (xsum, xsum3, xsum4): Declare as "pure" functions.
72620
72621 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72622
72623         * modules/xalloc (Files): Undo latest change, since xalloc.h
72624         no longer needs SIZE_MAX or PTRDIFF_MAX.
72625
72626 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72627
72628         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72629         gl_PTRDIFF_MAX.
72630
72631 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72632
72633         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72634         "return", to pacify some unknown compiler.  Problem reported
72635         by Joerg Schilling.
72636
72637 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72638
72639         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72640         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72641         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72642         heuristic is just as accurate as far as we know, and it removes a
72643         dependency on size_max.m4 and ptrdiff_max.m4.
72644
72645 2003-11-11  Bruno Haible  <bruno@clisp.org>
72646
72647         * modules/xsize (Files): Add m4/size_max.m4.
72648         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72649
72650 2003-11-11  Bruno Haible  <bruno@clisp.org>
72651
72652         * m4/size_max.m4: New file.
72653         * m4/ptrdiff_max.m4: New file.
72654         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72655         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72656         (gl_XALLOC): Invoke it.
72657
72658 2003-11-11  Bruno Haible  <bruno@clisp.org>
72659
72660         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72661         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72662         defined.
72663
72664 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72665
72666         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72667         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72668         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72669         From Bruno Haible.
72670         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72671         not (size_t) -1, since it's defined here.
72672
72673 2003-11-09  Karl Berry  <karl@gnu.org>
72674
72675         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72676
72677 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72678
72679         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72680         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72681         Reject sizes of exactly SIZE_MAX bytes.
72682         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72683         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72684
72685 2003-11-05  Bruno Haible  <bruno@clisp.org>
72686
72687         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72688         SIZE_MAX defined in <limits.h> on Solaris.
72689
72690 2003-11-04  Jim Meyering  <jim@meyering.net>
72691
72692         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72693         variable names, rather than @VAR@.
72694         * modules/poll: Likewise.
72695
72696 2003-11-04  Bruno Haible  <bruno@clisp.org>
72697
72698         * modules/xsize: New file.
72699         * modules/linebreak: Depend on xsize.
72700         * MODULES.html.sh (func_all_modules): Add xsize.
72701
72702 2003-11-04  Bruno Haible  <bruno@clisp.org>
72703
72704         * m4/xsize.m4: New file.
72705
72706 2003-11-04  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/xsize.h: New file.
72709         * lib/linebreak.c: Include xsize.h.
72710         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72711         argument for overflow.
72712         Suggested by Paul Eggert.
72713
72714 2003-11-03  Karl Berry  <karl@gnu.org>
72715
72716         * config/config.{guess,sub}: update from config.
72717
72718 2003-11-03  Jim Meyering  <jim@meyering.net>
72719
72720         * modules/userspec (lib_SOURCES): Add userspec.h.
72721         (Include): Add "userspec.h".
72722         Improve description.
72723
72724 2003-11-03  Jim Meyering  <jim@meyering.net>
72725
72726         * lib/userspec.c: Include "userspec.h".
72727         * lib/userspec.h: New file.
72728
72729 2003-11-03  Bruno Haible  <bruno@clisp.org>
72730
72731         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72732
72733 2003-11-03  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72736         available, to avoid (extremely rare) race condition.
72737         Suggested by Paul Eggert.
72738
72739 2003-11-02  Karl Berry  <karl@gnu.org>
72740
72741         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72742
72743 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72744
72745         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72746         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72747         (read_filesystem_list): Set and use me_type_malloced.
72748         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72749         whatever the type happens to be), for brevity and consistency.
72750         Check for size calculation overflow on Alphas running OSF/1.
72751
72752 2003-10-31  Jim Meyering  <jim@meyering.net>
72753
72754         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72755
72756         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72757
72758 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72759             Bruno Haible  <bruno@clisp.org>
72760
72761         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72762         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72763
72764 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72767         netbsd*-gnu*.  Suggested by Robert Millan.
72768
72769 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72770
72771         * modules/group-member: Depend on stdbool.
72772
72773 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72774
72775         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72776
72777 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72778
72779         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72780         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72781         after the 'gnu' in these cases.  This fixes some bugs in the
72782         previous change, and is based on suggestions by Robert Millan.
72783
72784 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72785
72786         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72787         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72788         no longer needed.
72789         * lib/quotearg.c (quotearg_n_options): Use it.
72790         * lib/group-member.c: Include <stdbool.h>.
72791         (free_group_info): Arg is now const *; don't free arg.
72792         (get_group_info): Now returns bool and accepts struct group_info *,
72793         rather than returning a malloc'ed struct group_info *.
72794         All uses changed.  Check for overflow in internal size calculation.
72795
72796         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72797         rather than xmalloc/xrealloc.
72798         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72799         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72800         conformance bug: the old code used a pointer after freeing the
72801         storage that it addressed.
72802         * lib/hash.c (hash_initialize): Simplify the code by using
72803         xalloc_oversized rather than doing it by hand.
72804         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72805         the buffer preserved.  Use free and xmalloc instead.
72806         * lib/quotearg.c (quotearg_n_options): Likewise.
72807         Use a simpler test for size overflow.  Don't use xalloc_oversized
72808         because unsigned int might be wider than size_t (!); this suggests
72809         that we should switch from unsigned int to size_t for slot numbers.
72810
72811 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72812
72813         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72814         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72815         NetBSD kernels.  Requested by Richard Stallman.
72816
72817 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72818
72819         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72820         to allocate the returned structure.  Do not allocate a subarray,
72821         as x2nrealloc will do that.
72822         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72823         instead of xnrealloc.
72824         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72825
72826 2003-10-27  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/stdbool_.h: Better support for BeOS.
72829
72830 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72831
72832         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72833         now uses inline.
72834
72835 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72836
72837         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72838         callers that want to do their own size-overflow checking.  Include
72839         <stdbool.h>, since xalloc_oversized returns bool.
72840         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72841         to use xalloc_oversized.
72842
72843         Add two functions x2realloc, x2nrealloc, for programs that grow
72844         arrays dynamically by doubling their sizes.
72845         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72846         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72847         New functions.
72848
72849         Port to C99 semantics for 'inline' of external functions.
72850         Bug reported by Bruno Haible.
72851         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72852         with the old contents of xnmalloc.
72853         (xnmalloc, xmalloc): Use it.
72854         (xnrealloc_inline): New static inline function,
72855         with the old contents of xnrealloc.
72856         (xnrealloc, xrealloc): Use it.
72857
72858         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72859         that.
72860
72861 2003-10-26  Karl Berry  <karl@gnu.org>
72862
72863         * config/srclist.txt (COPYING.DOC): no longer available from
72864         /gd/gnuorg; don't know where the ultimate source is.
72865
72866 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72867
72868         Fix several address-calculation bugs in the hash modules,
72869         plus some minor code cleanup.
72870
72871         * lib/hash.h: Include <stdbool.h>, for bool.
72872         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72873         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72874         hash_get_n_entries, hash_get_max_bucket_length,
72875         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72876         hash_rehash): Use size_t rather than unsigned.
72877         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72878         hash_get_n_buckets_used, hash_get_n_entries,
72879         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72880         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72881         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72882         Likewise.
72883         (SIZE_MAX): Define if not defined.
72884         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72885         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72886         hash_print):
72887         Use const * when possible.
72888         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72889         (check_tuning): Fix bug: if tuning parameters were very close to
72890         0 or 1, rounding errors could have caused subscript violations.
72891         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72892         (hash_initialize): Add 'fail:' label
72893         to free table and return NULL, and use it to simplify code.
72894         Use calloc rather than clearing the storage ourself.
72895         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72896         buffer size calculations.
72897         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72898         Include <stddef.h>, for size_t.
72899         * lib/hash-pjw.c (hash_pjw): Likewise.
72900         Switch to method described by Bruno Haible.
72901         Include <limits.h>, for CHAR_BIT.
72902         (SIZE_BITS): New macro.
72903
72904 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72905
72906         * m4/getline.m4 (AM_FUNC_GETLINE):
72907         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72908         hosts.  Problem reported by Derek Robert Price in
72909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72910         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72911         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72912
72913 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72914
72915         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72916         ceiling the allocation at NMAX bytes rather than silently
72917         discarding input bytes before NMAX is reached.  This makes
72918         a difference only if NMAX exceeds SIZE_MAX / 2.
72919
72920         * lib/obstack.c: Merge from glibc.
72921         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72922         Add libc_hidden_def (_obstack_newchunk).
72923         (_obstack_free) [! defined _LIBC]: Remove.
72924         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72925         a clone of the function body.
72926         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72927         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72928
72929         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72930         glibc.
72931         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72932         arg to memcpy.
72933
72934         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72935         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72936         Don't use lvalue casts, as GCC plans to remove support for them
72937         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72938         was also present in the non-GCC version, indicating that this
72939         code had always been buggy and had never been widely used.
72940         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72941         Use the fast variant of each macro, rather than copying the
72942         definiens of the fast variant; that way, we'll be more likely to
72943         catch future bugs in the fast variants.
72944
72945 2003-10-20  Bruno Haible  <bruno@clisp.org>
72946
72947         * modules/wait-process: New file.
72948         * MODULES.html.sh (func_all_modules): Add wait-process.
72949
72950 2003-10-20  Bruno Haible  <bruno@clisp.org>
72951
72952         * m4/wait-process.m4: New file.
72953
72954 2003-10-20  Bruno Haible  <bruno@clisp.org>
72955
72956         * lib/wait-process.h: New file, from GNU gettext.
72957         * lib/wait-process.c: New file, from GNU gettext.
72958
72959 2003-10-19  Jim Meyering  <jim@meyering.net>
72960
72961         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72962         HPUX 10.20.
72963
72964 2003-10-18  Karl Berry  <karl@gnu.org>
72965
72966         * config/config.guess: update from config.
72967
72968 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72969
72970         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72971         (getgroups): First arg is int, not size_t.
72972         Don't let 'free' mangle errno.
72973
72974 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72975
72976         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72977
72978 2003-10-16  Karl Berry  <karl@gnu.org>
72979
72980         * config/config.{guess,sub}: update from config.
72981
72982 2003-10-16  Jim Meyering  <jim@meyering.net>
72983
72984         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72985         memcpy.
72986
72987 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72988
72989         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72990         (SIZE_MAX): Remove.
72991         (new_exclude, add_exclude_file): Initial size no longer needs to
72992         be a power of 2.
72993         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72994         our own address arithmetic overflow checking.
72995
72996         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72997         (fnmatch): Do not alloca more than 2000 wide characters;
72998         instead, use malloc for large buffers.
72999         Check for address arithmetic overflow, and return -1
73000         with errno set to ENOMEM in that case.
73001         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
73002         (NEW_PATTERN): Do not alloca more than 8000 bytes;
73003         instead, return -1.  Check for address arithmetic overflow.
73004
73005 2003-10-14  Paul Eggert  <eggert@twinsun.com>
73006
73007         Handle invalid suffixes and overflow independently, so that
73008         callers can treat them independently as needed.  Fix some bugs in
73009         suffix handling, e.g., "100k@" was not diagnosed as an invalid
73010         suffix for a human-readable blocksize.  The major caller-visible
73011         change is the addition of a new
73012         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
73013         that both overflow and suffix chars were found.
73014
73015         * lib/human.c (humblock): Don't check separately for invalid suffix
73016         char; that is xstrtoumax's job (now that its bug is fixed).
73017         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
73018         INTMAX_MAX]: New macros.
73019         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
73020         TYPE_MAXIMUM): New macros.
73021         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
73022         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
73023         if overflow occurs, as it's what __strtol does and it's more useful
73024         in practice.
73025         (__xstrtol): If __strtol reports some error other than ERANGE,
73026         reflect it to the caller as LONGINT_INVALID.  If it reports
73027         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
73028         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
73029         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
73030         value.
73031         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
73032         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
73033         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
73034         [defined UINTMAX_MAX]: New macros.
73035
73036 2003-10-14  Bruno Haible  <bruno@clisp.org>
73037
73038         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
73039
73040 2003-10-14  Bruno Haible  <bruno@clisp.org>
73041
73042         * m4/sig_atomic_t: New file, from GNU gettext.
73043         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
73044
73045 2003-10-14  Bruno Haible  <bruno@clisp.org>
73046
73047         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
73048         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
73049         Also use volatile where needed.
73050
73051 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73052
73053         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
73054         Change maintainer from Bruno Haible to 'all'.
73055
73056 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73057
73058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
73059
73060 2003-10-12  Paul Eggert  <eggert@twinsun.com>
73061
73062         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
73063         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
73064         and define in terms of the other primitives.
73065         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
73066         (SIZE_MAX): Define if not already defined.
73067         (array_size_overflow): New function.
73068         (xalloc_die): Abort instead of exiting if 'error' returns.
73069         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
73070         (xmalloc, xrealloc): Use them.
73071         (xcalloc): Check for address arithmetic overflow.
73072         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
73073         a bit faster than strcpy.
73074
73075 2003-10-10  Simon Josefsson  <jas@extundo.com>
73076
73077         * modules/argp (Depends-on): Add restrict and strcase.
73078
73079 2003-10-10  Simon Josefsson  <jas@extundo.com>
73080
73081         * m4/argp.m4: Add AC_C_INLINE.
73082
73083 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73084
73085         Merge getpass from libc, plus a few fixes.
73086
73087         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
73088         Include <stdbool.h>.
73089         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
73090         __fsetlocking to empty.
73091         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
73092         do include <bits/libc-lock.h>.
73093         Do not include <fcntl.h>; not needed.
73094         [_LIBC]: Include <wchar.h>.
73095         (NOTCANCEL_MODE): New macro.
73096         (flockfile, funlockfile) [_LIBC]: New macros.
73097         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
73098         [!_LIBC]: New macros.
73099         (call_fclose): New function.
73100         (getpass): Use it.  Save tty stream separately; this simplifies the
73101         code and makes it more reliable if stdin happens to equal stdout.
73102         Invoke __fsetlocking on tty.
73103         Handle thread cancellation if needed.
73104         Namespace cleanup (use __tcgetattr, __getline).
73105         Use bool for Booleans.
73106         [USE_IN_LIBIO]: Handle wide streams.
73107         [!_LIBC]: Unconditionally do the fseek, since we don't know what
73108         stream might go where.
73109
73110         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
73111         doesn't have to include <stdio.h> before us.
73112         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
73113         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
73114         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
73115         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
73116         if not declared, so that we can use getpass.c code from libc without
73117         rewriting it.
73118         (flockfile, ftrylockfile, funlockfile): New macros.
73119
73120 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73121
73122         * modules/getpass: Depend on stdbool.
73123
73124 2003-10-08  Paul Eggert  <eggert@twinsun.com>
73125
73126         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
73127
73128 2003-10-07  Karl Berry  <karl@gnu.org>
73129
73130         * config/config.{guess,sub}: update from config.
73131
73132 2003-10-06  Jim Meyering  <jim@meyering.net>
73133             Bruno Haible  <bruno@clisp.org>
73134
73135         This lets translators provide better translations for the
73136         "Written by ..." part of --version output.
73137         * lib/version-etc.h: Include stdarg.h.
73138         (version_etc_copyright): Declare as readonly.
73139         (version_etc): Make this function variadic with a NULL-terminated list
73140         of author name strings.
73141         (version_etc_va): New declaration.
73142         * lib/version-etc.c: Include stdarg.h, stdlib.h.
73143         (version_etc_copyright): Declare as readonly.
73144         (version_etc_va): New function. Provide a different translatable string
73145         for each possible number of authors < 10. Abbreviate when there are 10
73146         authors or more.
73147         (version_etc): Make this function variadic. Call version_etc_va.
73148         Suggestion from Gary V. Vaughan.
73149
73150         * lib/long-options.h (parse_long_options): Change prototype: the
73151         authors string is moved to the end and becomes variadic.
73152         * lib/long-options.c: Include stdarg.h.
73153         (parse_long_options): Make this function variadic, too.
73154         Call version_etc_va, not version_etc.
73155
73156 2003-10-06  Bruno Haible  <bruno@clisp.org>
73157
73158         * modules/version-etc-2: Remove file.
73159         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
73160
73161 2003-10-06  Bruno Haible  <bruno@clisp.org>
73162
73163         * modules/fatal-signal: New file.
73164         * MODULES.html.sh (func_all_modules): Add fatal-signal.
73165
73166 2003-10-06  Bruno Haible  <bruno@clisp.org>
73167
73168         * m4/fatal-signal.m4: New file.
73169         * m4/signalblocking.m4: New file, from GNU gettext.
73170
73171 2003-10-06  Bruno Haible  <bruno@clisp.org>
73172
73173         * lib/version-etc-2.h: Remove file.
73174         * lib/version-etc-2.c: Remove file.
73175
73176 2003-10-06  Bruno Haible  <bruno@clisp.org>
73177
73178         * lib/fatal-signal.h: New file, from GNU gettext.
73179         * lib/fatal-signal.c: New file, from GNU gettext.
73180
73181 2003-10-05  Paul Eggert  <eggert@twinsun.com>
73182
73183         * README: Rework advice for preventing empty .o files.
73184         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
73185         not <sys/types.h>.
73186
73187 2003-10-04  Karl Berry  <karl@gnu.org>
73188
73189         * lib/argp*: update from libc.
73190
73191 2003-10-04  Karl Berry  <karl@gnu.org>
73192
73193         * config/config.{guess,sub}: update from config.
73194
73195 2003-10-02  Bruno Haible  <bruno@clisp.org>
73196
73197         * modules/lchown (Include): Add lchown.h.
73198         * modules/time_r (Include): Use "..." syntax.
73199         * modules/xgetdomainname (Include): Add xgetdomainname.h.
73200
73201 2003-10-01  Simon Josefsson  <jas@extundo.com>
73202
73203         * MODULES.html.sh (func_all_modules): Move gethostname from section
73204         'based on' to section 'lacking' POSIX:2001.
73205
73206 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
73207
73208         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
73209         to output mode on the same stream.
73210
73211 2003-09-29  Paul Eggert  <eggert@twinsun.com>
73212
73213         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
73214         Fix arg typo in previous patch.
73215
73216 2003-09-28  Jim Meyering  <jim@meyering.net>
73217
73218         * lib/error.c: Correct cpp indentation.
73219
73220 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73221
73222         * modules/free: New file.
73223
73224 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73225
73226         * m4/free.m4: New file.
73227
73228 2003-09-27  Paul Eggert  <eggert@twinsun.com>
73229
73230         * lib/minmax.h (MIN, MAX)
73231         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
73232         Omit the special code that used __typeof__, since we worry that
73233         it could be more trouble than it's worth.  See:
73234         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
73235         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
73236
73237         * lib/free.c: New file.
73238
73239 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
73240
73241         Trivial fixes to Makefile.am parts of module listings.
73242         * modules/strstr: Append strstr.h to lib_SOURCES.
73243         * modules/strcase: Likewise, for strcase.h.
73244
73245 2003-09-27  Karl Berry  <karl@gnu.org>
73246
73247         * config/mkinstalldirs: update from automake.
73248
73249 2003-09-26  Paul Eggert  <eggert@twinsun.com>
73250
73251         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
73252         (error_tail): Do not loop, reallocating temporary buffer, since
73253         the output cannot contain more wide characters than the input
73254         contains bytes, the size must be big enough already.  This avoids
73255         one potential size overflow calculation.  Check for size overflow
73256         when calculating temporary buffer size.  Free temporary buffer
73257         when done, if it was allocated with malloc; this plugs a memory
73258         leak.  Remove casts from void * to pointers, that are no longer
73259         needed now that we're assuming C89 or better.
73260
73261         Merge error changes from glibc.
73262
73263         * lib/error.c, error.h: Update copyright notice header to match glibc.
73264         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
73265         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
73266         Disable cancellation while printing error.
73267         * lib/error.h: Prepend __ to parameter names.
73268
73269 2003-09-26  Jim Meyering  <jim@meyering.net>
73270
73271         * lib/error.c (error_tail): Move some declarations
73272         into inner scope where the local variables are used.
73273
73274 2003-09-26  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
73277         stpncpy().
73278         Don't define stpncpy through config.h; it's now done through stpncpy.h.
73279
73280 2003-09-26  Bruno Haible  <bruno@clisp.org>
73281
73282         * lib/stpncpy.h (gnu_stpncpy): New declaration.
73283         (stpncpy): Define as alias for gnu_stpncpy.
73284         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
73285
73286 2003-09-25  Simon Josefsson  <jas@extundo.com>
73287
73288         * lib/xgetdomainname.h: New file.
73289         * lib/xgetdomainname.c: New file.
73290
73291 2003-09-25  Simon Josefsson  <jas@extundo.com>
73292             Bruno Haible  <bruno@clisp.org>
73293
73294         * modules/getdomainname: New file.
73295         * modules/xgetdomainname: New file.
73296         * MODULES.html.sh (func_all_modules): Add getdomainname,
73297         xgetdomainname.
73298
73299 2003-09-25  Simon Josefsson  <jas@extundo.com>
73300             Bruno Haible  <bruno@clisp.org>
73301
73302         * m4/getdomainname.m4: New file.
73303
73304 2003-09-25  Simon Josefsson  <jas@extundo.com>
73305             Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/getdomainname.h: New file.
73308         * lib/getdomainname.c: New file.
73309
73310 2003-09-25  Karl Berry  <karl@gnu.org>
73311
73312         * lib/argp-fmtstream.c, argp-help.c: update from libc.
73313
73314 2003-09-25  Karl Berry  <karl@gnu.org>
73315
73316         * config/install-sh: update from automake.
73317
73318 2003-09-25  Bruno Haible  <bruno@clisp.org>
73319
73320         * modules/version-etc-2: New file, from modules/version-etc with
73321         modifications.
73322         * MODULES.html.sh (func_all_modules): Add version-etc-2.
73323
73324 2003-09-25  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
73327         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
73328
73329 2003-09-24  Simon Josefsson  <jas@extundo.com>
73330
73331         * modules/xgethostname: Add xgethostname.h.
73332
73333 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73334
73335         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73336         the buffer associated with the argument.  Bug reported by
73337         Simon Josefsson.
73338
73339 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73340
73341         * README: Document assumptions that 'int' is at least 32 bits
73342         wide, that integer arithmetic is 2's complement without overflow,
73343         that there are no holes in integer values, that adding sizes of
73344         two nonoverlapping objects can't overflow, and that all-bits-zero
73345         yields scalar zero.  Fix spelling and capitalization typos.
73346
73347 2003-09-19  Karl Berry  <karl@gnu.org>
73348
73349         * lib/argp.h: update from libc.
73350
73351 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73352
73353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73354         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73355         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73356
73357 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73358
73359         * gnulib-tool: Use "test -h", not "test -L", for portability
73360         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73361         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73362         (sed_extract_prog): Issue s commands one-by-one, rather than
73363         using \| in one s command.
73364
73365 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73366
73367         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73368         input error, instead of returning NULL the next time we are called
73369         (and therefore losing track of errno).
73370
73371 2003-09-16  Bruno Haible  <bruno@clisp.org>
73372
73373         * gnulib-tool (func_create_testdir): Warn about duplicated
73374         dependencies.
73375
73376 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73377
73378         * modules/argmatch, modules/fatal, modules/obstack,
73379         modules/xalloc, modules/xgethostname: Sort dependencies by
73380         importance, not alphabetically.
73381
73382 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73383
73384         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73385         fails, so that the caller gets the proper errno.
73386
73387         * lib/readutmp.c (read_utmp): Likewise.
73388         Check for fstat error.  Close stream and free storage
73389         when failing.
73390
73391 2003-09-14  Karl Berry  <karl@gnu.org>
73392
73393         * config/srclist.txt (strdup.c): disable for c89 changes.
73394
73395 2003-09-14  Jim Meyering  <jim@meyering.net>
73396
73397         * lib/getloadavg.c: Correct cpp indentation.
73398         * lib/strdup.c: Likewise.
73399         * lib/vasnprintf.c: Likewise.
73400
73401 2003-09-14  Bruno Haible  <bruno@clisp.org>
73402
73403         * modules/fwriteerror: New file.
73404         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73405
73406 2003-09-14  Bruno Haible  <bruno@clisp.org>
73407
73408         * lib/fwriteerror.h: New file.
73409         * lib/fwriteerror.c: New file.
73410
73411 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73412
73413         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73414         modules/xgethostname, modules/xalloc: Depend on exit.
73415
73416 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73417
73418         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73419
73420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73421         and AC_MINIX, too, so that their extensions are available.
73422
73423         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73424         This macro has been superseded by gl_BACKUPFILE.
73425
73426         More patches to assume C89 or better.
73427
73428         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73429
73430         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73431         unconditionally.
73432         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73433         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73434         Include <string.h>, <stdlib.h> unconditionally.
73435         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73436         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73437         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73438         headers or for string.h.
73439         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73440         or strtoul.
73441
73442         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73443         headers.
73444         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73445         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73446         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73447         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73448         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73449         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73450         memcpy, memset.
73451         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73452         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73453         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73454         strtol.
73455         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73456         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73457         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73458         strtoul.
73459
73460 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73461
73462         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73463         * lib/obstack.c [!defined _LIBC]: Likewise.
73464         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73465         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73466         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73467
73468         More changes to assume C89 or better.
73469
73470         * lib/error.c (error_tail): Assume vprintf.
73471
73472         * lib/argmatch.c (getenv): Remove decl.
73473         * lib/progreloc.c (get_full_program_name): Define via prototype.
73474         * lib/setenv.c (clearenv): Likewise.
73475         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73476         needed.
73477         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73478         (malloc, memcpy): Remove decls.
73479         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73480         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73481         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73482         (memcpy): Remove macro.
73483         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73484         (__P): Remove.  All uses removed.
73485         (PTR): Remove.  All uses changed to void *.
73486         (CHAR_BIT, NULL): Remove.
73487         (spaces, zeros, memset_space, memset_zero)
73488         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73489         Remove.
73490         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73491         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73492         Define with prototype.
73493         Remove now-unnecessary prototype decl.
73494         (extra_args_spec): Assume ANSI C.  All uses changed.
73495         (extra_args_spec_iso): Remove.
73496         (my_strftime, emacs_strftimeu): Define via prototype.
73497         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73498         unconditionally.
73499         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73500         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73501         (strtoul, strtol): Remove decls.
73502         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73503         LONG_MAX): Remove.
73504         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73505         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73506         (LOCALE_PARAM_PROTO): New macro.
73507         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73508         (INTERNAL (strtol), strtol): Define with a prototype.
73509         (PARAMS): Remove.  All uses removed.
73510         * lib/tempname.c: Include <string.h> unconditionally.
73511         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73512         * lib/xgethostname.c (main): Define with a prototype.
73513         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73514         Include <stdlib.h> unconditionally.
73515         (calloc, malloc, realloc, free): Remove decls.
73516         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73517         Include <stdlib.h> unconditionally.  Sort include file names.
73518         (strtod): Remove.
73519         (xstrtod): Define with a prototype.
73520         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73521         (strtol, strtoul): Remove decls.
73522
73523 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73524
73525         More patches to assume C89 or better.
73526         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73527         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73528         string.h, memchr, STDC_HEADERS.
73529
73530 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73531
73532         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73533         Include <stdlib.h>, <string.h> unconditionally.
73534         Remove now-unnecessary cast to char *.
73535         * lib/strnlen.c: Include <string.h> unconditionally.
73536         * lib/yesno.c (yesno): Define with a prototype.
73537
73538 2003-09-11  Bruno Haible  <bruno@clisp.org>
73539
73540         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73541
73542 2003-09-10  Jim Meyering  <jim@meyering.net>
73543
73544         * lib/error.c: Correct indentation of cpp directives.
73545
73546 2003-09-10  Bruno Haible  <bruno@clisp.org>
73547
73548         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73549         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73550         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73551         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73552         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73553         <stdlib.h> and <string.h> checks.
73554         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73555         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73556
73557 2003-09-10  Bruno Haible  <bruno@clisp.org>
73558
73559         * lib/strcspn.c: Include <string.h> unconditionally.
73560         * lib/strpbrk.c: Include <string.h> unconditionally.
73561         * lib/strstr.c: Include <string.h> unconditionally.
73562         * lib/unicodeio.c: Include <string.h> unconditionally.
73563         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73564         * lib/unsetenv.c: Likewise.
73565         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73566         * lib/yesno.c: Include <stdlib.h> unconditionally.
73567         (rpmatch): Add prototype.
73568
73569 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73570
73571         More patches to assume C89 or better.
73572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73573         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73574         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73575         or for string.h.
73576         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73577         stdlib.h.
73578         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73579         C headers.
73580         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73581         string.h.
73582         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73583         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73584         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73585         or for string.h.
73586         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73587         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73588         C headers.
73589         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73590         memcpy.
73591         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73592         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73593         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73594         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73595         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73596         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73597         string.h, free.
73598         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73599         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73600         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73601         C headers, or for string.h.
73602         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73603         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73604         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73605         headers, memory.h, stdlib.h, string.h, strings.h.
73606         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73607         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73608         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73609         strchr.
73610         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73611         headers, memory.h, string.h.
73612         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73613         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73614         free.
73615         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73616         headers.
73617         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73618         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73619         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73620         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73621         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73622
73623 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73624
73625         More K&R removal.
73626
73627         * lib/acosl.c (main): Use a prototype.
73628         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73629         tanl.c: Likewise.
73630
73631         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73632
73633         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73634         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73635         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73636         with a prototype.
73637         * lib/getopt.c (const): Remove macro.
73638         Include <string.h> unconditionally.
73639         (my_index): Remove; all uses changed to strchr.
73640         (strlen): Remove decl.
73641         (exchange): Remove forward decl; no longer needed.
73642         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73643         Define with prototype.
73644         * lib/getopt1.c (const): Remove macro.
73645         (getopt_long, getopt_long_only, main): Define with prototype.
73646
73647         * lib/getugroups.c: Include <string.h> unconditionally.
73648
73649         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73650         (getusershell, setusershell, endusershell, readname, main):
73651         Define with prototypes.
73652
73653         * lib/group-member.c: Include group-member.h first.
73654         Include <stdlib.h> unconditionally.
73655
73656         * lib/hard-locale.c: Include hard-locale.h first.
73657         Include <stdlib.h>, <string.h> unconditionally.
73658
73659         * lib/hash.c (free, malloc): Remove decls.
73660         Include <stdlib.h> unconditionally.
73661
73662         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73663         (getenv): Do not declare.
73664
73665         * lib/idcache.c: Include <string.h> unconditionally.
73666
73667         * lib/long-options.c: Include long-options.h first, to test interface.
73668         Include <stdlib.h> unconditionally.
73669
73670         * lib/makepath.c: Include makepath.h first, to test interface.
73671         Include <stdlib.h> and <string.h> unconditionally.
73672
73673         * lib/linebuffer.c: Include <stdlib.h>.
73674         (free): Remove decl.
73675
73676         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73677         stddef.h. rpl_malloc returns void *, not char *.
73678         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73679         prototype.
73680
73681         * lib/md5.h: Include <limits.h> unconditionally.
73682         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73683         (__P): Remove; all uses removed.
73684         * lib/md5.c: Include "md5.h" first.
73685         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73686         md5_buffer, md5_process_bytes, md5_process_block):
73687         Define with prototypes.
73688         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73689         * lib/sha.c: Include "sha.h" first.
73690         Include <stdlib.h>, <string.h> unconditionally.
73691
73692         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73693         * lib/memcmp.c (__ptr_t): Likewise.
73694         * lib/memrchr.c (__ptr_t): Likewise.
73695         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73696         Include <string.h> unconditionally.
73697         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73698         * lib/memchr.c: Include <stdlib.h> unconditionally.
73699         * lib/memchr.c (LONG_MAX): Remove.
73700         * lib/memrchr.c (LONG_MAX): Likewise.
73701         * lib/memchr.c (__memchr): Define via a prototype.
73702         * lib/memrchr.c (__memrchr): Likewise.
73703         * lib/memcmp.c (__P): Remove, and remove all uses.
73704         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73705         Remove forward decls; no longer needed.
73706         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73707         Use types required by C89 in prototype.
73708
73709         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73710         * lib/savedir.c: Likewise.
73711         * lib/mkdir.c (free): Remove decl.
73712         * lib/rmdir.c (rmdir): Define with a prototype.
73713         * lib/savedir.c: Include savedir.h first, to test interface.
73714
73715         * lib/mktime.c (STDC_HEADERS): Remove.
73716         Include <stdlib.h>, <string.h> unconditionally.
73717
73718         * lib/modechange.c: Include <stdlib.h> unconditionally.
73719         (malloc): Remove decl.
73720
73721         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73722         (free): Remove decl.
73723
73724         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73725         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73726         (This type really should be intptr_t, but that's a C99ism.)
73727         (_obstack_memcpy): Remove: all uses changed to memcpy.
73728         Include <string.h> unconditionally.
73729         (struct obstack): Assume __STDC__ for types of members
73730         chunkfun, freefun, extra_arg.
73731         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73732         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73733         obstack_begin, obstack_specify_allocation,
73734         obstack_specify_allocation_with_arg, obstack_chunkfun,
73735         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73736         Remove unprototyped decls and the macros that use them.
73737         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73738         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73739         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73740         (defined __STDC__ && __STDC__)]:
73741         Remove nonprototyped code.
73742         Include <stdlib.h> unconditionally.
73743         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73744         _obstack_allocated_p, _obstack_free, obstack_free,
73745         _obstack_memory_used, print_and_abort):
73746         Define using prototypes.
73747         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73748         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73749         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73750         obstack_next_free, obstack_object_size, obstack_room) [0]:
73751         Remove unused, unprototyped code.
73752
73753         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73754
73755         * lib/physmem.c (physmem_total, physmem_available, main): Define
73756         with prototypes.
73757
73758         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73759         (main): Define with a prototype.
73760
73761         * lib/posixver.c (getenv): Remove decl.
73762
73763         * lib/putenv.c (malloc): Returns void *, not char *.
73764         Include <string.h> unconditionally.
73765         (strchr, memcpy, NULL): Do not define.
73766
73767         * lib/readtokens.c: Include readtokens.h first, to test interface.
73768         Include <stdlib.h>, <string.h> unconditionally.
73769         (init_tokenbuffer): Define with a prototype.
73770
73771         * lib/regex.c (PARAMS): Remove.  All uses removed.
73772         All uses of _RE_ARGS removed, too.
73773         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73774         unconditionally.
73775         (bzero): Assume memset exists.
73776         (memcmp, memcpy, NULL): Remove.
73777         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73778         char, or assignments to local vars of type signed char.
73779         (init_syntax_once, PREFIX(extract_number_and_incr),
73780         PREFIX(print_partial_compiled_pattern),
73781         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73782         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73783         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73784         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73785         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73786         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73787         wcs_compile_range, byte_compile_range, truncate_wchar,
73788         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73789         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73790         count_mbs_length, wcs_re_match_2_internal,
73791         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73792         PREFIX(alt_match_null_string_p),
73793         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73794         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73795         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73796         now-unnecessary declaration, if any.
73797         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73798         regcomp, regexec):
73799         Remove now-unnecessary casts among pointer types.
73800         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73801
73802         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73803         (free): Remove decl.
73804
73805         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73806
73807         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73808         (free): Remove decl.
73809
73810         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73811         * lib/xgetcwd.c: Likewise.
73812
73813         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73814         (free): Remove decl.
73815
73816         * lib/strchrnul.c (strchrnul): Define with a prototype.
73817         Fix bug: c_in was not converted to char before searching.
73818
73819         The following changes are not K&R related:
73820
73821         * lib/group-member.h: Include <sys/types.h>, so that this file is
73822         self-contained.
73823         * lib/makepath.h: Likewise.
73824
73825         * lib/getusershell.c (readname, default_index, line_size, readname):
73826         Use size_t, not int, for sizes.
73827         (readname): If the size overflows, report an error instead of
73828         looping forever.
73829
73830 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73831
73832         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73833         libc.
73834
73835 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73836
73837         * README: New section: portability guidelines.
73838
73839 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73840
73841         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73842         C89 spec.
73843
73844 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73845
73846         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73847
73848 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73849
73850         Assume C89 or better; remove K&R cruft.
73851         A few of these changes were first proposed by Derek Robert Price
73852         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73853
73854         * lib/addext.c: Include <string.h> unconditionally.
73855         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73856         Don't declare getenv or malloc.
73857
73858         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73859         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73860         (NULL): Remove.
73861         (find_stack_direction, alloca): Use prototypes.
73862
73863         * lib/atexit.c (atexit): Define using a prototype.
73864
73865         * lib/basename.c, dirname.c, stripslash.c:
73866         Include <string.h> unconditionally.
73867
73868         * lib/bcopy.c: Include <stddef.h>.
73869         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73870
73871         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73872
73873         * lib/error.h (error, error_at_line, error_print_progname)
73874         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73875         * lib/error.c: Include error.h first, to check interface.
73876         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73877         (VA_START): Remove; all uses changeed to va_start.
73878         (exit, strerror): Remove decls.
73879         (error_print_progname): Prototype uncondionally.
73880         Don't include <errno.h>; no longer needed.
73881         (private_strerror): Remove.
73882         (error_tail): Always define.
73883         (error, error_at_line): Assume C89 or better; always use prototypes.
73884         * lib/fatal.c: Include "fatal.h" first, to test interface.
73885         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73886         (VA_START): Remove; all uses changed to va_start.
73887         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73888         this case.
73889         (exit): Remove decl.
73890         (fatal): Prototype unconditionally.  Assume va_start works.
73891         Abort at end, to pacify gcc.
73892
73893         * lib/euidaccess.c (main): Define with a prototype.
73894
73895         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73896
73897         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73898
73899         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73900         prototypes.
73901         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73902         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73903         (getenv): Remove decl.
73904         (fnmatch): Define using a prototype.
73905         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73906         (FCT): Define using a prototype.
73907
73908         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73909
73910         * lib/gethostname.c: Include <stddef.h>.
73911         (gethostname): Define with prototype.  Length is size_t, not int.
73912
73913 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73914
73915         Assume C89 or better; remove K&R cruft.
73916         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73917         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73918         string.h, getenv, malloc.
73919         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73920         headers.
73921         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73922         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73923         do not check for strerror.
73924         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73925         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73926         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73927         do not check for doprnt or vprintf.
73928         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73929         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73930
73931 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73932
73933         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73934         getversion.c should have been removed then, but was accidentally
73935         preserved.
73936
73937         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73938         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73939
73940 2003-09-08  Karl Berry  <karl@gnu.org>
73941
73942         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73943                 config, forget about prep.
73944
73945         * config/depcomp, missing: update from automake.
73946
73947 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73948
73949         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73951
73952 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73953
73954         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73955         copy_tm_result.  Bug reported by Simon Josefsson in
73956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73957
73958 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73959
73960         * m4/time_r.m4: New file.
73961         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73962         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73963         is. Check for timegm declaration.
73964         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73965         Do not check for gmtime_r.
73966         Replace mktime if __mktime_internal does not exist and if mktime
73967         hasn't been replaced already.
73968
73969 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73970
73971         * lib/time_r.c, lib/time_r.h: New files.
73972
73973         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73974         __localtime_r.
73975         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73976         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73977
73978         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73979         __gmtime_r.
73980         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73981         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73982         Include <time_r.h>.
73983
73984         * lib/timegm.c: Switch to glibc implementation, with the following
73985         changes:
73986         [defined HAVE_CONFIG_H]: Include <config.h>.
73987         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73988         (__mktime_internal) [!defined _LIBC]: New decl.
73989         (__gmtime_r) [!defined _LIBC]: New macro and function.
73990         (timegm): Use a prototype, since gnulib assumes C89.
73991         Do not bother declaring tmp to be const, as it's not really usefu.
73992         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73993         (timegm): Declare only if HAVE_DECL_TIMEGM.
73994
73995 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73996
73997         * MODULES.html.sh (func_all_modules): Add time_r.
73998         * modules/time_r: New file.
73999         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
74000         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
74001
74002 2003-09-03  Paul Eggert  <eggert@twinsun.com>
74003
74004         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
74005         Bug reported by Lute Kamstra in
74006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
74007
74008         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
74009         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
74010         course with correspondingly smaller numbers for tomorrow and
74011         yesterday.  From Tadayoshi Funaba.  Originally installed into
74012         sh-utils on 1999-08-07, but the patch got lost (I guess during the
74013         coreutils merge?).
74014
74015 2003-08-31  Simon Josefsson  <jas@extundo.com>
74016
74017         * modules/timegm: New file.
74018         * MODULES.html.sh (func_all_modules): Add timegm.
74019
74020 2003-08-31  Simon Josefsson  <jas@extundo.com>
74021
74022         * m4/timegm.m4: New file.
74023
74024 2003-08-31  Simon Josefsson  <jas@extundo.com>
74025
74026         * lib/timegm.h: New file.
74027         * lib/timegm.c: New file.  Based on
74028         wget-1.8.2/src/http.c:mktime_from_utc.
74029
74030 2003-08-31  Karl Berry  <karl@gnu.org>
74031
74032         * lib/argp.h: update from libc.
74033
74034 2003-08-28  Bruno Haible  <bruno@clisp.org>
74035
74036         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
74037         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
74038         followed by '#define fnmatch fnmatch_posix' gives an error.
74039
74040 2003-08-28  Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
74043         warning on QNX, which defines O_BINARY to 000000.
74044
74045 2003-08-27  Jim Meyering  <jim@meyering.net>
74046
74047         * m4/mkstemp.m4: Require that the system mkstemp be able to create
74048         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
74049         would fail after 32.  Reported by Danny Levinson.  Details here:
74050         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
74051
74052 2003-08-24  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
74055         MSVC7 <stdio.h> is included later.
74056
74057 2003-08-22  Simon Josefsson  <jas@extundo.com>
74058
74059         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
74060
74061 2003-08-20  Karl Berry  <karl@gnu.org>
74062
74063         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
74064
74065 2003-08-20  Bruno Haible  <bruno@clisp.org>
74066
74067         * modules/progname: New file.
74068         * MODULES.html.sh (func_all_modules): Add progname.
74069
74070 2003-08-20  Bruno Haible  <bruno@clisp.org>
74071
74072         * lib/progname.h: New file, from GNU gettext.
74073         * lib/progname.c: New file, from GNU gettext.
74074         * lib/progreloc.c: New file, from GNU gettext.
74075
74076 2003-08-19  Jim Meyering  <jim@meyering.net>
74077
74078         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
74079         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
74080
74081 2003-08-19  Bruno Haible  <bruno@clisp.org>
74082
74083         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
74084         more.
74085
74086 2003-08-19  Bruno Haible  <bruno@clisp.org>
74087
74088         * lib/xstrdup.c: Assume <string.h> exists.
74089
74090 2003-08-18  Paul Eggert  <eggert@twinsun.com>
74091
74092         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
74093         in makefile rules.
74094
74095 2003-08-18  Jim Meyering  <jim@meyering.net>
74096
74097         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
74098         * m4/lib-ld.m4: Likewise.
74099
74100 2003-08-18  Jim Meyering  <jim@meyering.net>
74101
74102         * lib/setenv.h: Indent nested cpp directive.
74103         * lib/vasnprintf.c: Remove trailing blanks.
74104
74105 2003-08-17  Simon Josefsson  <jas@extundo.com>
74106
74107         * modules/xstrndup: New file.
74108         * MODULES.html.sh (func_all_modules): Add xstrndup.
74109
74110 2003-08-17  Simon Josefsson  <jas@extundo.com>
74111
74112         * modules/argp: Fix autoconf macro name. Add more dependencies.
74113
74114 2003-08-17  Simon Josefsson  <jas@extundo.com>
74115
74116         * m4/xstrndup.m4: New file.
74117
74118 2003-08-17  Simon Josefsson  <jas@extundo.com>
74119
74120         * m4/argp.m4: New file.
74121
74122 2003-08-17  Simon Josefsson  <jas@extundo.com>
74123             Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/xstrndup.h: New file.
74126         * lib/xstrndup.c: New file.
74127
74128 2003-08-17  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/strndup (Files, Include): Add lib/strndup.h.
74131
74132 2003-08-17  Bruno Haible  <bruno@clisp.org>
74133
74134         * modules/euidaccess (Files): Add lib/euidaccess.h.
74135
74136 2003-08-17  Bruno Haible  <bruno@clisp.org>
74137
74138         * lib/strndup.h: New file.
74139
74140 2003-08-17  Bruno Haible  <bruno@clisp.org>
74141
74142         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
74143         like AC_GNU_SOURCE.
74144         * modules/extensions (configure.ac): Comment out the invocation of
74145         gl_USE_SYSTEM_EXTENSIONS.
74146
74147 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74148
74149         Merges from coreutils, etc.
74150         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
74151         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
74152         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
74153         fixing a typo.
74154         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
74155         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
74156
74157 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74158
74159         Document merge from coreutils.
74160         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
74161         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
74162         * modules/utime: Add m4/utimes-null.m4.
74163
74164 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74165
74166         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
74167         space, undoing this 2003-08-12 change:
74168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74169
74170 2003-08-16  Paul Eggert  <eggert@twinsun.com>
74171
74172         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
74173         strtoul.c from libc, undoing this 2003-08-12 change:
74174         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
74175
74176 2003-08-16  Jim Meyering  <jim@meyering.net>
74177
74178         Merges from coreutils.
74179         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
74180         prefix.  Adjust cache variables similarly.  Create 500 rather than
74181         just 300 files, to exercise bug on Darwin6.5, too.
74182         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
74183         $missing_dir.
74184         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
74185         AM_SYS_POSIX_TERMIOS.
74186         Reported by mkc@mathdogs.com.
74187         Also change use of $am_cv_sys_posix_termios
74188         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
74189         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
74190         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
74191         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
74192         in /proc/mounts until it finds one with matching device number.  This
74193         is unnecessary when the FILE argument *is* a mount point.  No stat call
74194         is necessary in that case.  So, disable the statvfs-testing code on
74195         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
74196         as RedHat bug# 84846.
74197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74198         to 1MB, so as not to render systems with no stack size limit (e.g.,
74199         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74200         Include <unistd.h>.  On some systems,
74201         it is required for the definition of _SC_PAGESIZE.
74202
74203 2003-08-16  Jim Meyering  <jim@meyering.net>
74204
74205         Merge from coreutils.
74206         * lib/xstrtoimax.c: #else #if -> #elif.
74207         * lib/xstrtoumax.c: Likewise.
74208
74209 2003-08-16  Jim Meyering  <jim@meyering.net>
74210
74211         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
74212         * m4/utimes.m4: Removed.
74213         * m4/utimes-null.m4: Renamed from utimes.m4.
74214
74215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
74216         to 1MB, so as not to render systems with no stack size limit (e.g.,
74217         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
74218         Include <unistd.h>.  On some systems,
74219         it is required for the definition of _SC_PAGESIZE.
74220
74221 2003-08-16  Jim Meyering  <jim@meyering.net>
74222         and Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         Merges from coreutils, etc.
74225
74226         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
74227         using the latest version from cvs.  This avoids problems with #line
74228         directives using a vendor (Sun) compiler.
74229         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
74230         Don't set GETGROUPS_LIB here; now it's
74231         done via getgroups.m4's wrapper function.
74232         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
74233         rather than just in sh-util/configure.in, so that the
74234         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
74235         same.
74236         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
74237         AC_FUNC_GETLOADAVG where to find getloadavg.c.
74238         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
74239         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
74240         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
74241         Remove code that is now done by the newly-required macros.
74242         Append $(EXEEXT) to DF_PROG.
74243         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
74244         Do not invoke or require the following here,
74245         since prereq.m4 or some gnulib .m4 now does this for us:
74246         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
74247         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
74248         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
74249         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
74250         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
74251         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
74252         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
74253         AC_FUNC_OBSTACK.
74254         Do not replace the following functions, as this is now the job
74255         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
74256         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
74257         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
74258         atexit getpass, strdup, getpagesize.
74259         Replace 'raise'.
74260         Do not check for the following functions, as this is now the job
74261         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
74262         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
74263         setregid.
74264         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
74265         Check for sys/sysctl.h.
74266         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
74267         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
74268         of checking for ssize_t ourselves.
74269
74270         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
74271         Require every macro that gnulib/modules/* suggests for us.
74272         (jm_PREREQ_ADDEXT): New macro.
74273         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
74274         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
74275
74276         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
74277         (gl_PHYSMEM): Use it.
74278         Also check for `table' function.
74279         Check for new headers and functions.
74280         Add check for sys/sysmp.h.
74281         With suggestions from Kaveh Ghazi.
74282         Ignore headers that are present but cannot be compiled.  This
74283         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
74284         C 5.4.
74285
74286 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74287
74288         Document merge from coreutils.
74289         * modules/userspec: Depend on posixver.
74290         * modules/strftime: Depend on tzset.
74291
74292 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74293
74294         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
74295         rather than tab, after '#' in shell-script copyright notices.
74296         Suggested by Bruno Haible.
74297
74298 2003-08-15  Paul Eggert  <eggert@twinsun.com>
74299
74300         * config/srclist-update: Use three spaces, rather than tab, after '#'
74301         in shell-script copyright notices.  Suggested by Bruno Haible.
74302         Remove unnecessary parenthesization in regular expression.
74303
74304 2003-08-15  Jim Meyering  <jim@meyering.net>
74305
74306         Merge from coreutils.
74307         * lib/xgethostname.c: Include <stdlib.h>.
74308         (xghostname): Don't exit for anything other than memory-related
74309         failure; just return NULL.
74310         * lib/userspec.c: Include "posixver.h".
74311         (parse_user_spec): Accept `.' as a separator only
74312         in pre-POSIX-200112 mode.
74313         * lib/strtoimax.c: Use #elif rather than #else #if.
74314         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
74315         Remove function, now that we can rely on a working tzset function.
74316         [!_LIBC]: Ensure that the required autoconf test has been run.
74317         [!defined _NL_CURRENT && HAVE_STRFTIME]:
74318         Use underlying_strftime for %r.
74319         * lib/sha.c: Merge in some clean-up and optimization changes from
74320         glibc.
74321         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
74322         Ensure that it is a multiple of 64.
74323         Rearrange loop exit tests so as to avoid performing an
74324         additional fread after encountering an error or EOF.
74325         * lib/realloc.c: Update copyright date.
74326
74327 2003-08-15  Jim Meyering  <jim@meyering.net>
74328         and Paul Eggert  <eggert@twinsun.com>
74329
74330         Merge from coreutils.
74331         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74332         member but strut utmpx does not.  Needed for AIX 4.3.3.
74333         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74334
74335 2003-08-15  Jim Meyering  <jim@meyering.net>
74336         and Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         Merges from coreutils, etc.
74339         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74340         Require gl_FUNC_TZSET_CLOBBER.
74341         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74342         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74343         members.
74344
74345 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74346
74347         Help the merge from coreutils.
74348         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74349         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74350         * m4/tzset.m4: Use it too.
74351
74352 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74353
74354         * modules/tzset: New file.
74355
74356 2003-08-14  Jim Meyering  <jim@meyering.net>
74357
74358         Merges from coreutils.
74359         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74360         variable names, rather than @FNMATCH_H@.
74361         * modules/alloca: Likewise for $(ALLOCA_H).
74362
74363         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74364         the three copies of the literal target, `fnmatch.h'.
74365         * modules/alloca (alloca.h): Likewise.
74366
74367 2003-08-14  Jim Meyering  <jim@meyering.net>
74368
74369         Merge from coreutils.
74370         * m4/tzset.m4: New file.
74371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74372         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74373         otherwise, AIX 5.1 systems would end up using the latter.
74374         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74375         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74376         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74377         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74378
74379 2003-08-14  Jim Meyering  <jim@meyering.net>
74380
74381         Merge from coreutils.
74382         * lib/obstack.h: Whitespace changes.
74383         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74384         and xcalloc return values.
74385         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74386         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74387         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74388         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74389         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74390         error from mntctl.
74391         Use mntctl's return value to drive the entry-processing loop, since
74392         we can't rely on the value of the vmt_length member in the last
74393         entry.  On some systems doing so could result in exhausting
74394         virtual memory.  Based in part on a patch from Mike Jetzer.
74395
74396 2003-08-14  Jim Meyering  <jim@meyering.net>
74397         and Paul Eggert  <eggert@twinsun.com>
74398
74399         Merges from coreutils, plus other fixes.
74400         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74401         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74402         for credits and details.  Thanks to Kaveh Ghazi for helping
74403         to keep these files in sync.
74404         (ARRAY_SIZE): Define it.
74405         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74406         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74407         (memcasecmp): Don't assume size_t fits in unsigned int.
74408         Remove casts and duplicate code.
74409         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74410         (memcpy): Remove definition.
74411         Merge in some clean-up and optimization changes from glibc.
74412         [BLOCKSIZE]: Move definition to top of file.
74413         Ensure that it is a multiple of 64.
74414         Rearrange loop exit tests so as to avoid performing an
74415         additional fread after encountering an error or EOF.
74416         * lib/md5.h (md5_uintptr): Define.
74417         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74418         return to the initial working directory.  Preserve errno
74419         for caller.
74420         * lib/idcache.c: Include "xalloc.h".
74421         (xmalloc, xrealloc): Remove decls.
74422         (getuser): Remove casts no longer required in C89.
74423         * lib/human.c: Include stdio.h, for sprintf.
74424         * lib/group-member.c: Include "xalloc.h".
74425         (xmalloc, xrealloc): Remove decls.
74426         (get_group_info): Remove casts no longer required in C89.
74427         * lib/getusershell.c (readname): Remove casts no longer required in
74428         C89.
74429         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74430         * lib/getline.c: Whitespace fix, from coreutils.
74431
74432 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74433
74434         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74435         Check for isascii.
74436
74437         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74438         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74439         Undo previous (whitespace-only) change.
74440
74441 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74442
74443         * lib/exclude.c: Include <ctype.h>
74444         (IN_CTYPE_DOMAIN): New macro.
74445         (is_space): New fn.
74446         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74447         and empty lines.
74448
74449         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74450         Undo previous (whitespace-only) change.
74451
74452 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74453
74454         * config/srclist-update: Change update back to the old behavior,
74455         leaving whitespace alone.  Use one 'sed' command rather than a
74456         pipeline.
74457         (fixlicense): Now a variable, not a function.
74458         (remove_trailing_blanks): Remove.
74459         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74460         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74461         Undo previous (whitespace-only) change.
74462
74463 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74464
74465         Merge from coreutils.
74466         * modules/euidaccess: Add lib_SOURCES, include for new
74467         file euidaccess.h
74468
74469 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74470
74471         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74472         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74473         Normalize leading white space and remove trailing white space.
74474
74475         Merge from coreutils
74476         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74477
74478         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74479         0.12.1.  These files are now being upgraded automatically by
74480         ../config/srclist-update.
74481
74482 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74483
74484         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74485         Normalize leading white space and remove trailing white space.
74486         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74487         notice, as per ../config/srclist-update.
74488
74489         Merge from coreutils.
74490         * lib/euidaccess.h: New file.
74491         * lib/euidaccess.c: Include it.
74492         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74493         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74494         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74495
74496 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74497
74498         * config/srclist-update: Add copyright notice.
74499         (remove_id_lines, remove_trailing_blanks): New constants.
74500         (fixfile): Use them to normalize spacing a bit in copied files.
74501         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74502         Normalize leading white space and remove trailing white space.
74503
74504         * config/texinfo.tex: Sync with texinfo.
74505
74506         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74507         strtoul.c from libc, to merge coreutils whitespace changes.
74508
74509         * config/srclist.txt: Get the following m4 files from gettext:
74510         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74511         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74512         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74513         wint_t.m4.
74514
74515 2003-08-12  Karl Berry  <karl@gnu.org>
74516
74517         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74518         been made.
74519
74520 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74521
74522         * modules/gnu-source, m4/gnu-source.m4:
74523         Remove; we're assuming Autoconf 2.54 or later now.
74524         Suggested by Bruno Haible.
74525         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74526
74527 2003-08-11  Bruno Haible  <bruno@clisp.org>
74528
74529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74530
74531 2003-08-11  Bruno Haible  <bruno@clisp.org>
74532
74533         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74534         (vasnprintf): Use it instead of wcslen.
74535
74536 2003-08-11  Bruno Haible  <bruno@clisp.org>
74537
74538         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74539         value to ensure that _Bool promotes to int. Use #define for _Bool when
74540         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74541
74542 2003-08-10  Karl Berry  <karl@gnu.org>
74543
74544         * lib/regex.h: update from libc (whitespace fix).
74545
74546 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74547
74548         Merge some files from coreutils.  These changes were
74549         originally made by Jim Meyering.
74550         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74551         many older Unixes require this.
74552         * lib/alloca.c (alloca): Remove cast to argument of free;
74553         no longer needed in C89.
74554         * lib/alloca_.h, regex.h: Fix white space to match
74555         what GNU indent does.
74556
74557 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74558
74559         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74560         apparently Emacs's Unicode mode got confused before my 2003-08-05
74561         checkin.
74562
74563 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74564
74565         * m4/extensions.m4: New file.
74566         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74567         Require gl_USE_SYSTEM_EXTENSIONS.
74568         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74569         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74570
74571 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74572
74573         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74574         * modules/extensions, modules/gnu-source: New files.
74575         * modules/timespec, modules/unlocked-io: Depend on extensions.
74576
74577 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74578
74579         * modules/restrict: New file.
74580         * MODULES.html.sh (func_all_modules): Add restrict.
74581         * modules/regex: Depend on restrict.
74582
74583 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74584
74585         * m4/restrict.m4: New file.
74586         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74587
74588 2003-08-07  Bruno Haible  <bruno@clisp.org>
74589
74590         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74591         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74592
74593 2003-08-07  Bruno Haible  <bruno@clisp.org>
74594
74595         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74596         makes the module 'getndelim2' compatible with the module 'getline'.
74597
74598 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74599
74600         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74601         byte with "\201" to avoid glitches when editing that source file
74602         with multi-gnome-terminal.
74603
74604 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74605
74606         * lib/bumpalloc.h: Remove.
74607
74608 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74609
74610         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74611         * modules/bumpalloc: Remove.
74612
74613 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74614
74615         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74616         GNU coding style.
74617
74618         Merge from coreutils.
74619         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74620         1. From glibc.
74621         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74622         from Karl Berry, implemented by Jim Meyering.
74623         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74624         from Dmitry V. Levin.
74625         Remove anachronistic cast of xrealloc.
74626         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74627         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74628         type. Otherwise, it wouldn't compile with at least /bin/cc on
74629         ymp-cray-unicos9.0.2.X.
74630         Combine two mostly-identical uses of alloca into one.
74631         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74632
74633 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74634
74635         [From Emacs.]
74636
74637         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74638         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74639         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74640         obsolete NLIST_NAME_UNION.
74641         [__GNU__]: Undef BSD and FSCALE.
74642         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74643
74644 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74645
74646         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74647         an enum type, so that it's guaranteed to promote to int.  See:
74648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74649
74650 2003-08-03  Karl Berry  <karl@gnu.org>
74651
74652         * config/depcomp: update from automake.
74653
74654 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74655
74656         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74657         (strerror): Don't assume that a printable int fits in 14 bytes.
74658
74659 2003-07-31  Bruno Haible  <bruno@clisp.org>
74660
74661         * modules/getpass-gnu: New file.
74662         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74663
74664 2003-07-31  Bruno Haible  <bruno@clisp.org>
74665
74666         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74667
74668 2003-07-24  Karl Berry  <karl@gnu.org>
74669
74670         * config/missing: update from automake.
74671
74672 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74673             Bruno Haible  <bruno@clisp.org>
74674
74675         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74676         * lib/getline.c (getline, getdelim): Likewise.
74677         Remove _GNU_SOURCE define; now it's defined in config.h through
74678         m4/getline.m4.
74679
74680 2003-07-23  Karl Berry  <karl@gnu.org>
74681
74682         * config/config.sub: update from prep.
74683
74684 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74685
74686         * modules/xalloc (Depends-on): Add exitfail.
74687         * modules/xmemcoll: Likewise.
74688
74689 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74690
74691         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74692         over-parenthesization in macros.
74693
74694         Sync with coreutils.
74695
74696         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74697         required by C99.
74698
74699         Use `exit_failure' for xalloc and xmemcoll instead of their own
74700         private exit-failure variables.
74701         * lib/xalloc.h (xalloc_exit_failure): Remove.
74702         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74703         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74704         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74705         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74706         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74707
74708 2003-07-20  Jim Meyering  <jim@meyering.net>
74709
74710         * modules/closeout (Depends-on): Add exitfail.
74711         Suggestion from Bruno Haible.
74712
74713 2003-07-19  Karl Berry  <karl@gnu.org>
74714
74715         * config/config.sub: update from prep.
74716
74717 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74718
74719         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74720         Remove.
74721         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74722         to test that it can stand by itself.  Include "exitfail.h".
74723         Clients should set exit_failure instead.
74724         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74725
74726 2003-07-18  Bruno Haible  <bruno@clisp.org>
74727
74728         * modules/getndelim2: New file.
74729         * modules/getline: Share files with module getndelim2.
74730         * modules/getnline: Depend on getndelim2 instead of sharing files with
74731         it. Add getnline.c to lib_SOURCES.
74732         * MODULES.html.sh (func_all_modules): Add getndelim2.
74733
74734 2003-07-18  Bruno Haible  <bruno@clisp.org>
74735
74736         * m4/getndelim2.m4: New file.
74737         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74738         invoke gl_PREREQ_GETNDELIM2.
74739         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74740         gl_PREREQ_GETNDELIM2.
74741         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74742         gl_GETNDELIM2.
74743
74744 2003-07-18  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/getndelim2.h: New file.
74747         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74748         getndelim2.h.
74749         (getndelim2): Make non-static. Change return type to ssize_t.
74750         * lib/getline.h: Change argument names.
74751         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74752         * lib/getnline.c: Include getndelim2.h.
74753
74754 2003-07-18  Andreas Schwab  <schwab@suse.de>
74755
74756         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74757
74758 2003-07-17  Karl Berry  <karl@gnu.org>
74759
74760         * config/config.sub: update from prep.
74761
74762 2003-07-17  Bruno Haible  <bruno@clisp.org>
74763
74764         * modules/getnline: New file.
74765         * modules/getline: Add lib/getndelim2.c to source file list.
74766         * MODULES.html.sh (func_all_modules): Add getnline.
74767
74768 2003-07-17  Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/getnline.m4: New file.
74771
74772 2003-07-17  Bruno Haible  <bruno@clisp.org>
74773
74774         * m4/Makefile.am.in: Remove file.
74775         * m4/Makefile.am: Remove file.
74776         * m4/Makefile.in: Remove file.
74777
74778 2003-07-17  Bruno Haible  <bruno@clisp.org>
74779
74780         * lib/getnline.h: New file.
74781         * lib/getnline.c: New file.
74782         * lib/getndelim2.c: New file, extracted from getline.c.
74783         (getndelim2): Renamed from getdelim2, with added nmax argument.
74784         * lib/getline.c: Include getndelim2.c.
74785         (getdelim2): Moved out to getndelim2.c.
74786         (getline, getdelim): Update.
74787
74788 2003-07-17  Bruno Haible  <bruno@clisp.org>
74789
74790         * lib/Makefile.am: Remove file.
74791         * lib/Makefile.in: Remove file.
74792
74793 2003-07-17  Bruno Haible  <bruno@clisp.org>
74794
74795         * configure.in: Remove file.
74796         * Makefile.in: Remove file.
74797
74798 2003-07-17  Bruno Haible  <bruno@clisp.org>
74799
74800         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74801
74802 2003-07-16  Karl Berry  <karl@gnu.org>
74803
74804         * config/srclist-update: was running fixlicense twice, which caused
74805                 texinfo.tex to be nullified for some reason.  Simplify,
74806                 $gplsrc is no longer needed as far as I can see?
74807
74808 2003-07-16  Jim Meyering  <jim@meyering.net>
74809
74810         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74811
74812 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74813
74814         * config/srclist.txt: Get the following files from gettext-runtime/intl
74815         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74816         ref-del.sin.  From Bruno Haible.
74817         * config/srclist-update (fixfile): Change grep pattern again, since the
74818         previous fix didn't work (there was another trailing $).  Use
74819         '[$]' to escape the $s.
74820
74821 2003-07-15  Karl Berry  <karl@gnu.org>
74822
74823         * lib/vasnprintf.c: update from gettext.
74824
74825 2003-07-15  Karl Berry  <karl@gnu.org>
74826
74827         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74828         gets expanded when surrounded by '$'.
74829
74830 2003-07-15  Jim Meyering  <jim@meyering.net>
74831
74832         * modules/save-cwd: Don't depend on error.  From Derek Price.
74833
74834 2003-07-15  Jim Meyering  <jim@meyering.net>
74835
74836         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74837
74838 2003-07-14  Simon Josefsson  <jas@extundo.com>
74839
74840         * modules/mempcpy: New file.
74841         * MODULES.html.sh (func_all_modules): Add mempcpy.
74842
74843 2003-07-14  Simon Josefsson  <jas@extundo.com>
74844
74845         * m4/mempcpy.m4: New file.
74846
74847 2003-07-14  Simon Josefsson  <jas@extundo.com>
74848
74849         * lib/mempcpy.h: New file.
74850         * lib/mempcpy.c: New file.
74851
74852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74853
74854         * modules/getdate, modules/posixtm: Depend on mktime.
74855
74856 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74857
74858         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74859         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74860         unicodeio.c, unicodeio.h, unlocked-io.h:
74861         Switch from LGPL to GPL.
74862
74863 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74864
74865         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74866         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74867         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74868         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74869         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74870         updated automatically by ../config/srclist-update.  This changes
74871         their license from LPGL to GPL.
74872
74873 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74874
74875         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74876         assumed to refer to the root of the most recent stable gettext version.
74877         * config/srclistvars.sh: Add defaults for eggert.
74878         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74879         Match "This program" as well as "The program".  This is needed
74880         for gettext.
74881
74882 2003-07-14  Jim Meyering  <jim@meyering.net>
74883
74884         Don't emit diagnostics.  Let callers do that.
74885         * lib/save-cwd.c: Don't include "error.h".
74886         (save_cwd): Don't call error.  Ensure that errno is valid
74887         when returning nonzero.
74888
74889         * lib/save-cwd.h (restore_cwd): Update prototype.
74890         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74891         Simplify.  Don't call error upon failure.  Let callers do that.
74892         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74893         when auditing is enabled.  But don't bother updating the #if.
74894
74895 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74896
74897         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74898         it breaks C++ compilation.
74899         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74900
74901 2003-07-10  Simon Josefsson  <jas@extundo.com>
74902
74903         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74904
74905 2003-07-10  Jim Meyering  <jim@meyering.net>
74906
74907         * m4/clock_time.m4: Remove trailing blank.
74908         * m4/intmax_t.m4: Likewise.
74909
74910 2003-07-10  Jim Meyering  <jim@meyering.net>
74911
74912         * lib/vasnprintf.c: Remove trailing blanks.
74913         Make cpp indentation consistent.
74914
74915 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74916
74917         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74918         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74919         Switch from LGPL to GPL.
74920
74921 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74922
74923         * config/srclist.txt: Sort sublists.  Add
74924         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74925         that differ from gnulib for one reason or another; we'd like this list
74926         to be smaller but for now let's document what we have.
74927
74928 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74929
74930         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74931         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74932         and sweeter "eval x=$x".
74933         * config/srclist.txt: Get lib/argp* from glibc.
74934
74935 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74936
74937         * lib/mktime.c: Fix some boundary cases and remove need for floating
74938         point.
74939
74940         Issue a compile-time diagnostic if time_t is floating point, or if
74941         two's complement arithmetic is not in effect, or if arithmetic
74942         right shift does not propagate the sign.  These assumptions were
74943         all in the original code but they weren't checked.
74944
74945         (TIME_T_MIDPOINT, verify): New macros.
74946         (__isleap): Remove; it has integer overflow problems.
74947         (leapyear): New function, without those problems.
74948         (ydhms_tm_diff): Remove; splitting into two parts.
74949         (ydhms_diff): New function, containing the arithmetic part of
74950         the old ydhms_tm_diff function.  Issue a compile-time
74951         diagnostic if we are not using C99 integer division.
74952         Avoid casts when possible.
74953         (guess_time_tm): New function, containing the checking part of
74954         the old ydhms_tm_diff function.  Return the new value, rather than
74955         the difference between it and the old.  Accept a new argument T
74956         so that *T specifies the old value.  Check for overflow in the result.
74957
74958         (__mktime_internal): Use a time_t offset, not a long int offset.
74959         This undoes the 2003-06-04 change, which is no longer needed now
74960         that we have better overflow checking.
74961         (localtime_offset): Likewise.
74962
74963         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74964         and long are 64-bit but int is only 32-bit.
74965         (ydhms_diff): Use long int to store year1 and yday1.
74966         Issue a compile-time diagnostic if long int is not wide enough.
74967
74968         (__mktime_internal): Use long int to store adjusted year and yday.
74969         Use plain C rather than preprocessor commands, if that doesn't
74970         affect efficiency.
74971         Check for overflow (and try to repair) after each probe
74972         rather than checking only at the very end.  This avoids some bugs
74973         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74974         does not equal GMT offset at maximum time).
74975         Use integer to check for overflow rather than floating point; this
74976         is more portable to non-IEEE hosts, and is a tad faster.
74977         When we detect that we are oscillating between two values,
74978         don't check whether tm_isdst has the requested value, since
74979         we already know the answer.  When tm_isdst has the wrong value,
74980         use a different heuristic to find the right one, based on the
74981         extreme values actually observed in practice in tz2003a,
74982         rather than the (overly optimistic) "previous 3 calendar quarters".
74983
74984         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74985         "T const" to accommodate glibc style.
74986         (check_result): Use less-confusing report format.  "long" -> "long int.
74987         (main): Likewise.
74988         Don't loop if the iteration overflows time_t.
74989         Allow a negative step in the iteration.
74990
74991 2003-07-06  Karl Berry  <karl@gnu.org>
74992
74993         * config/depcomp: update from automake.
74994         * config/config.sub: update from prep.
74995
74996 2003-07-03  Karl Berry  <karl@gnu.org>
74997
74998         * config/config.guess: update from prep.
74999
75000 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75001
75002         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
75003         xreadlink.c now includes it unconditionally.
75004
75005 2003-07-01  Paul Eggert  <eggert@twinsun.com>
75006
75007         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
75008         having it depend on HAVE_SYS_TYPES_H.
75009
75010 2003-07-01  Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
75013         <sys/types.h> should be sufficient.
75014         Reported by Paul Eggert.
75015
75016 2003-06-26  Karl Berry  <karl@gnu.org>
75017
75018         * config/depcomp: update from automake.
75019
75020 2003-06-26  Bruno Haible  <bruno@clisp.org>
75021
75022         * modules/human: Depend on module stdbool.
75023
75024 2003-06-25  Bruno Haible  <bruno@clisp.org>
75025
75026         * modules/readlink: New file.
75027         * modules/xreadlink: Depend on it.
75028         * MODULES.html.sh (func_all_modules): Add readlink.
75029
75030 2003-06-25  Bruno Haible  <bruno@clisp.org>
75031
75032         * m4/readlink.m4: New file.
75033
75034 2003-06-25  Bruno Haible  <bruno@clisp.org>
75035
75036         * lib/readlink.c: New file.
75037
75038 2003-06-22  Karl Berry  <karl@gnu.org>
75039
75040         * config/srclist.txt: update mkinstalldirs from automake.
75041         * config/mkinstalldirs: update.
75042
75043 2003-06-22  Bruno Haible  <bruno@clisp.org>
75044
75045         Portability to mingw32.
75046         * m4/ssize_t.m4: New file, from GNU gettext.
75047         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
75048         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
75049
75050 2003-06-22  Bruno Haible  <bruno@clisp.org>
75051
75052         * modules/safe-read: Add m4/ssize_t.m4.
75053         * modules/xreadlink: Add m4/ssize_t.m4.
75054
75055 2003-06-20  Bruno Haible  <bruno@clisp.org>
75056
75057         Assume C89, so PARAMS isn't needed.
75058         * lib/unicodeio.h (PARAMS): Remove.
75059         * lib/unicodeio.c: Don't use PARAMS.
75060
75061 2003-06-18  Karl Berry  <karl@gnu.org>
75062
75063         * config/config.{guess,sub}: update from prep.
75064
75065 2003-06-18  Jim Meyering  <jim@meyering.net>
75066
75067         Merge changes from coreutils.
75068         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
75069         Remove explicit declarations of xmalloc and realloc.
75070         Include xalloc.h.
75071         (read_utmp): Remove anachronistic cast of xmalloc.
75072
75073 2003-06-17  Paul Eggert  <eggert@twinsun.com>
75074
75075         Assume C89, so PARAMS isn't needed.
75076         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
75077         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
75078         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
75079         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
75080         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
75081         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
75082         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
75083         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
75084         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
75085         lib/xstrtod.h, lib/xstrtol.h: Likewise.
75086         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
75087         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
75088         no longer needed. Anyway, config.h should always be included before any
75089         other file.
75090
75091 2003-06-11  Simon Josefsson  <jas@extundo.com>
75092
75093         * modules/sysexits: New file.
75094         * MODULES.html.sh (func_all_modules): Add sysexits.
75095
75096 2003-06-11  Simon Josefsson  <jas@extundo.com>
75097
75098         * lib/sysexit_.h: New file.
75099
75100 2003-06-11  Derek Price  <derek@ximbiot.com>
75101
75102         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
75103         necessary.
75104
75105 2003-06-11  Bruno Haible  <bruno@clisp.org>
75106
75107         * m4/sysexits.m4: New file.
75108
75109 2003-06-10  Simon Josefsson  <jas@extundo.com>
75110
75111         * lib/argp.h: New file, from glibc.
75112         * lib/argp-ba.c: New file, from glibc.
75113         * lib/argp-eexst.c: New file, from glibc.
75114         * lib/argp-fmtstream.c: New file, from glibc.
75115         * lib/argp-fmtstream.h: New file, from glibc.
75116         * lib/argp-fs-xinl.c: New file, from glibc.
75117         * lib/argp-help.c: New file, from glibc.
75118         * lib/argp-namefrob.h: New file, from glibc.
75119         * lib/argp-parse.c: New file, from glibc.
75120         * lib/argp-pv.c: New file, from glibc.
75121         * lib/argp-pvh.c: New file, from glibc.
75122         * lib/argp-xinl.c: New file, from glibc.
75123
75124 2003-06-10  Simon Josefsson  <jas@extundo.com>
75125
75126         * modules/strchrnul: New file.
75127
75128 2003-06-10  Simon Josefsson  <jas@extundo.com>
75129
75130         * modules/argp: New file.
75131
75132 2003-06-10  Simon Josefsson  <jas@extundo.com>
75133
75134         * m4/strchrnul.m4: New file.
75135
75136 2003-06-10  Simon Josefsson  <jas@extundo.com>
75137
75138         * lib/strchrnul.h: New file.
75139         * lib/strchrnul.c: New file.
75140
75141 2003-06-10  Bruno Haible  <bruno@clisp.org>
75142
75143         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
75144
75145 2003-06-07  Karl Berry  <karl@gnu.org>
75146
75147         * config/config.{guess,sub}: update from prep.
75148
75149 2003-06-07  Jim Meyering  <jim@meyering.net>
75150
75151         * modules/strtod: Use $(...) notation, not @...@ for
75152         AC_REPLACE'd variables.
75153         * modules/localcharset: Likewise.
75154
75155 2003-06-07  Jim Meyering  <jim@meyering.net>
75156
75157         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
75158         in place of my name in the copyright comment.
75159         Remove definition and uses of __P.
75160
75161         From coreutils.
75162         * lib/stat.c: Don't declare xmalloc explicitly.
75163         Instead, include "xalloc.h".
75164         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
75165         xrealloc, and xcalloc return values.
75166         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
75167         Improve comment.
75168         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
75169
75170 2003-06-07  Bruno Haible  <bruno@clisp.org>
75171
75172         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
75173         avoid AC_CONFIG_LINKS.
75174         * modules/fnmatch (Makefile.am): Use explicit creation rule for
75175         fnmatch.h, to avoid AC_CONFIG_LINKS.
75176         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
75177
75178 2003-06-07  Bruno Haible  <bruno@clisp.org>
75179
75180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
75181         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
75182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75183         directory.
75184         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
75185         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
75186         directory.
75187
75188 2003-06-06  Jim Meyering  <jim@meyering.net>
75189
75190         Merge from coreutils.
75191         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
75192         Consolidate declarations and initializations of *_base* locals.
75193
75194         Merge from coreutils.
75195         This avoids a core dump on systems without GNU putenv,
75196         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
75197         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
75198         (unsetenv): New static function, from GNU libc.
75199         (rpl_putenv): Use it.
75200
75201         * lib/modechange.c: Remove trailing blanks.
75202
75203         Merge from coreutils.
75204         * lib/fsusage.c: Remove declaration of statfs.
75205         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
75206
75207         * lib/posixtm.c: Include <stdbool.h> unconditionally.
75208
75209 2003-06-06  Jim Meyering  <jim@meyering.net>
75210
75211         * lib/stdbool_.h: Renamed from stdbool.h.in.
75212
75213 2003-06-06  Jim Meyering  <jim@meyering.net>
75214             Bruno Haible  <bruno@clisp.org>
75215
75216         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
75217         Adjust Makefile.am snippet not to redirect directly to target.
75218         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
75219
75220 2003-06-05  Paul Eggert  <eggert@twinsun.com>
75221
75222         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
75223         mismatch, look in future quarters as well as past.  This fixes a
75224         bug when processing fall-backwards gaps immediately after a long
75225         period of daylight-saving time.
75226
75227         * lib/mktime.c: Assume freestanding C89 or better.
75228         (HAVE_LIMITS_H): Remove.  Assume it's 1.
75229         (__P): Remove; not used.
75230         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
75231         (mktime, not_equal_tm, print_tm, check_result,
75232         main): Use prototypes.  Use const * where appropriate.
75233         (main): Fix typo in testing code that uncovered by above changes.
75234         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
75235
75236 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75237
75238         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
75239         locale.h, localeconv.  This merges changes from coreutils.
75240
75241         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
75242         It can be removed after the next Autoconf is released.
75243         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
75244         needed.
75245
75246 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75247
75248         * lib/mktime.c: Fix Debian bug 177940
75249         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
75250         (localtime_offset): Now long int, not time_t, because we want it
75251         to be guaranteed to be signed.  All uses changed.
75252         (__mktime_internal): If overflow would occur when adding offset,
75253         don't add it.
75254
75255         Merge 'human' changes from coreutils.  Rewrite to support
75256         locale-specific notations like thousands separators.
75257         * lib/human.c: Simplify authorship notice.
75258         Include human.h immediately after config.h.
75259         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
75260         <limits.h>: Do not include, since human.h does.
75261         (SIZE_MAX, UINTMAX_MAX): New macros.
75262         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
75263         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
75264         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
75265         (power_letter): Renamed from suffixes.
75266         (generate_suffix_backwards): Remove.
75267         (adjust_value): Now takes int style (because of human.h changes)
75268         and long double value (for greater precision on some platforms).
75269         (group_number): New function.
75270         (human_readable): Use it.  Use integer options, not enum.
75271         Put the options before the sizes in the arg list.
75272         Support all the new options.
75273         The old human_readable function has been removed;
75274         use inttostr.h instead.
75275         (human_readable, default_block_size, humblock):
75276         Use uintmax_t, not int, for block sizes.
75277         (human_readable_inexact, block_size_types): Remove.
75278         (block_size_opts): New constant.
75279         (human_options): Renamed from human_block_size, with new signature
75280         that allows block sizes up to UINTMAX_MAX.  All callers changed.
75281         * lib/human.h: Add copyright and authorship notice.
75282         Include <limits.h> and <stdbool.h> unconditionally.
75283         (PARAMS): Remove.  All uses removed.
75284         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
75285         (enum human_inexact_style): Remove tag; now a nameless enum.
75286         (human_floor, human_ceiling, human_round_to_even): Now have
75287         values 2, 0, 1 rather than -1, 1, 0.
75288         (human_group_digits, human_suppress_point_zero, human_autoscale,
75289         human_base_1024, human_SI, human_B): New constants.
75290         (human_readable_inexact, human_block_size): Remove.
75291         (human_readable): Size args are now uintmax_t, not int.
75292         (human_options): New decl.
75293
75294         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
75295         unnecessary now that we assume C89 or better.  This change
75296         imported from coreutils.
75297
75298         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75299         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
75300         in the 2003-05-30 sync from glibc.
75301
75302         .h files should stand alone, but we shouldn't include <sys/types.h>
75303         if we can get away with just <stddef.h>.
75304
75305         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
75306         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
75307         rather than <sys/types.h>, as we merely need size_t.
75308         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
75309         to get size_t.
75310         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
75311         Include <stdio.h>, to get FILE.
75312         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
75313         memcasecmp.h has included <stddef.h> and all we need is size_t.
75314         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
75315         our interface, instead of including <sys/types.h>
75316
75317 2003-06-04  Paul Eggert  <eggert@twinsun.com>
75318
75319         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
75320         now, as glibc mktime is buggy on non-glibc systems.
75321
75322 2003-06-03  Karl Berry  <karl@gnu.org>
75323
75324         * config/config.sub: update from prep.
75325
75326 2003-06-02  Paul Eggert  <eggert@twinsun.com>
75327
75328         [from coreutils]
75329         Fix some minor time-related bugs with POSIX time arguments.
75330         Some valid time stamps were being rejected (notably -1, and
75331         time stamps before 1900 on 64-bit hosts).  And some invalid
75332         time stamps were being accepted, e.g. September 31.
75333
75334         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75335         that we can return (time_t) -1 successfully.
75336         * lib/posixtm.c: Likewise.
75337         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75338         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75339         (t): Remove static var.
75340         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75341         of static var.  All uses changed.
75342         (year): Do not reject years before 1900; they can occur with
75343         64-bit time_t.
75344         (posix_time_parse): Do not check for out-of-range components;
75345         that is now the caller's responsibility, since our checks were
75346         only approximations.
75347         (posixtime): Use mktime to check for out-of-range components,
75348         since it knows them exactly.
75349         If mktime returns (time_t) -1, check whether an error actually occurred
75350         by invoking localtime on -1.
75351         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75352         posixtime failures better.
75353         Improve the test data (in comments only).
75354
75355 2003-06-02  Karl Berry  <karl@gnu.org>
75356
75357         * config/mkinstalldirs (version): new variable.
75358         (--version): new option.
75359         (usage): improve message.
75360
75361 2003-05-30  Karl Berry  <karl@gnu.org>
75362
75363         * lib/mktime.c: update from libc.
75364
75365 2003-05-30  Bruno Haible  <bruno@clisp.org>
75366
75367         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75368         * config/config.rpath: Upgrade to gettext-0.12.1.
75369
75370 2003-05-30  Bruno Haible  <bruno@clisp.org>
75371
75372         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75373         * m4/nls.m4: New file, from gettext-0.12.1.
75374         * m4/po.m4: New file, from gettext-0.12.1.
75375         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75376
75377 2003-05-30  Bruno Haible  <bruno@clisp.org>
75378
75379         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75380         * lib/localcharset.h: Likewise.
75381         * lib/localcharset.c: Likewise.
75382
75383 2003-05-29  Karl Berry  <karl@gnu.org>
75384
75385         * config/config.rpath: update from gettext.
75386
75387 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75388
75389         Assume the headers required for C89 freestanding compilers.
75390         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75391         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75392         * m4/human.m4 (gl_HUMAN): Likewise.
75393         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75394         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75395         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75396         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75397         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75398         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75399
75400 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75401
75402         Assume the headers required for C89 freestanding compilers.
75403         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75404         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75405         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75406         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75407         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75408         define, since <limits.h> is guaranteed to do that.
75409         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75410         * lib/exclude.c: Include <stdbool.h> unconditionally.
75411         * lib/tempname.c: Include <stddef.h> unconditionally.
75412         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75413         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75414         <stddef.h> does that.
75415         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75416         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75417         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75418         needed.
75419         * lib/xstrtol.c: Likewise.
75420         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75421         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75422
75423         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75424         warnings on some platforms.
75425
75426         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75427         arbitrarily.
75428
75429 2003-05-26  Jim Meyering  <jim@meyering.net>
75430
75431         Merge in a change from coreutils:
75432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75433         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75434         that condition, rather than `-1' which is slightly misleading.
75435         Change the name of the cache variable to have the gl_ prefix.
75436         Prompted by a patch from Richard Dawe for DJGPP.
75437
75438 2003-05-24  Karl Berry  <karl@gnu.org>
75439
75440         * config/config.guess: update from prep.
75441
75442 2003-05-22  Karl Berry  <karl@gnu.org>
75443
75444         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75445
75446 2003-05-20  Karl Berry  <karl@gnu.org>
75447
75448         * config/config.guess: update from prep.
75449
75450 2003-05-18  Karl Berry  <karl@gnu.org>
75451
75452         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75453         might actually be set by the user.
75454
75455         * config/depcomp, install-sh, mdate-sh: update from automake.
75456
75457 2003-05-17  Bruno Haible  <bruno@clisp.org>
75458
75459         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75460         invalid expansion for AC_EGREP_CPP.
75461         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75462         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75463         Suggested by Akim Demaille <akim@epita.fr> in
75464         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75465
75466 2003-05-12  Jim Meyering  <jim@meyering.net>
75467
75468         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75469         the space-padded-by-default conversion specifiers, %e, %k, %l.
75470
75471 2003-05-12  Bruno Haible  <bruno@clisp.org>
75472
75473         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75474         the string is longer than 4 KB.
75475
75476 2003-05-11  Karl Berry  <karl@gnu.org>
75477
75478         * config/config.{guess,sub}: update from prep.
75479
75480 2003-05-09  Bruno Haible  <bruno@clisp.org>
75481
75482         * modules/error: Add m4/strerror_r.m4 to file list.
75483
75484 2003-05-03  Bruno Haible  <bruno@clisp.org>
75485
75486         Upgrade to Unicode-4.0.
75487         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75488         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75489         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75490         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75491         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75492         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75493         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75494         Change width of U+E0100..U+E01EF from 1 to 0.
75495
75496 2003-04-25  Jim Meyering  <jim@meyering.net>
75497
75498         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75499         of type size_t, not int.
75500
75501 2003-04-25  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/copy-file.c: Include <stddef.h>, for size_t.
75504
75505 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75506
75507         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75508         code which expansion is under static control.  Patch imported from
75509         Akim Demaille's patch to Bison; see
75510         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75511
75512 2003-04-14  Bruno Haible  <bruno@clisp.org>
75513
75514         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75515
75516 2003-04-11  Jim Meyering  <jim@meyering.net>
75517
75518         Merge changes from Coreutils.
75519
75520         2003-03-22  Jim Meyering  <jim@meyering.net>
75521
75522         * lib/strftime.c (widen): Cast alloca return value to proper type.
75523
75524         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75525
75526         From GNU libc.
75527         * lib/strftime.c (my_strftime): Handle very large width
75528         specifications for numeric values correctly.  Improve checks for
75529         overflow.
75530
75531         2003-01-19  Jim Meyering  <jim@meyering.net>
75532
75533         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75534         definitions.
75535         (nl_get_alt_digit) [! defined my_strftime]: Define.
75536         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75537         _nl_get_alt_digit and _nl_get_walt_digit.
75538
75539         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75540         libc. These changes have no effect outside of _LIBC.
75541
75542 2003-04-10  Bruno Haible  <bruno@clisp.org>
75543
75544         * modules/findprog: New file.
75545         * MODULES.html.sh (func_all_modules): Add it.
75546
75547 2003-04-10  Bruno Haible  <bruno@clisp.org>
75548
75549         * m4/findprog.m4: New file.
75550         * m4/eaccess.m4: New file.
75551
75552 2003-04-10  Bruno Haible  <bruno@clisp.org>
75553
75554         * lib/findprog.h: New file, from GNU gettext.
75555         * lib/findprog.c: New file, from GNU gettext.
75556
75557 2003-04-05  Jim Meyering  <jim@meyering.net>
75558
75559         Merge changes from Coreutils.
75560
75561         * lib/exclude.h (PARAMS): Remove definition and uses.
75562         * lib/exclude.c: Remove uses of `PARAMS'.
75563
75564         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75565         Add test-cases for DOS filenames. Declare program_name.
75566         (main): Set up program_name.  Patch by Rich Dawe.
75567
75568         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75569         error from mntctl.
75570         Use mntctl's return value to drive the entry-processing loop, since
75571         we can't rely on the value of the vmt_length member in the last
75572         entry.  On some systems doing so could result in exhausting
75573         virtual memory.  Based in part on a patch from Mike Jetzer.
75574
75575 2003-04-04  Bruno Haible  <bruno@clisp.org>
75576
75577         * modules/linebreak: New file.
75578         * MODULES.html.sh (func_all_modules): Add it.
75579
75580 2003-04-04  Bruno Haible  <bruno@clisp.org>
75581
75582         * m4/linebreak.m4: New file.
75583
75584 2003-04-04  Bruno Haible  <bruno@clisp.org>
75585
75586         * lib/linebreak.h: New file, from GNU gettext.
75587         * lib/linebreak.c: New file, from GNU gettext with slight
75588         modifications.
75589         * lib/lbrkprop.h: New file, from GNU gettext.
75590
75591 2003-04-03  Bruno Haible  <bruno@clisp.org>
75592
75593         * modules/utf8-ucs4: New file.
75594         * modules/utf16-ucs4: New file.
75595         * modules/ucs4-utf8: New file.
75596         * modules/ucs4-utf16: New file.
75597         * MODULES.html.sh (func_all_modules): Add them.
75598
75599 2003-04-03  Bruno Haible  <bruno@clisp.org>
75600
75601         * m4/utf-ucs4.m4: New file.
75602         * m4/ucs4-utf.m4: New file.
75603
75604 2003-04-03  Bruno Haible  <bruno@clisp.org>
75605
75606         * lib/utf8-ucs4.h: New file, from GNU gettext.
75607         * lib/utf16-ucs4.h: New file, from GNU gettext.
75608         * lib/ucs4-utf8.h: New file, from GNU gettext.
75609         * lib/ucs4-utf16.h: New file, from GNU gettext.
75610
75611 2003-04-02  Bruno Haible  <bruno@clisp.org>
75612
75613         * modules/binary-io: New file.
75614         * MODULES.html.sh (func_all_modules): Add it.
75615
75616 2003-04-02  Bruno Haible  <bruno@clisp.org>
75617
75618         * lib/binary-io.h: New file, from GNU gettext.
75619
75620 2003-04-01  Bruno Haible  <bruno@clisp.org>
75621
75622         * modules/pathname: New file.
75623         * MODULES.html.sh (func_all_modules): Add it.
75624
75625 2003-04-01  Bruno Haible  <bruno@clisp.org>
75626
75627         * lib/pathname.h: New file, from GNU gettext.
75628         * lib/concatpath.c: New file, from GNU gettext.
75629
75630 2003-03-30  Bruno Haible  <bruno@clisp.org>
75631
75632         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75633
75634 2003-03-30  Bruno Haible  <bruno@clisp.org>
75635
75636         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75637         function chown() doesn't exist.
75638
75639 2003-03-28  Bruno Haible  <bruno@clisp.org>
75640
75641         * modules/copy-file: New file.
75642         * MODULES.html.sh (func_all_modules): Add it.
75643
75644 2003-03-28  Bruno Haible  <bruno@clisp.org>
75645
75646         * m4/copy-file.m4: New file.
75647
75648 2003-03-28  Bruno Haible  <bruno@clisp.org>
75649
75650         * lib/copy-file.h: New file, from GNU gettext.
75651         * lib/copy-file.c: New file, from GNU gettext.
75652
75653 2003-03-18  Jim Meyering  <jim@meyering.net>
75654
75655         * lib/quote.c (quote_n): Fix typo in comment.
75656
75657 2003-03-18  Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75660         checking.
75661         * m4/onceonly_2_57.m4: Likewise.
75662
75663 2003-03-17  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75666         (m4_quote): Remove macro.
75667         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75668
75669 2003-03-14  Jim Meyering  <jim@meyering.net>
75670
75671         Merge changes from Coreutils.
75672         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75673         to be const, in order to avoid warnings.
75674         (obstack_room): Likewise.
75675         (obstack_empty_p): Likewise.
75676
75677 2003-03-14  Bruno Haible  <bruno@clisp.org>
75678
75679         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75680         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75681
75682 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75683
75684         Merge changes from Bison.
75685         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75686         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75687         when compiling Bison 1.875's `bitset bset = obstack_alloc
75688         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75689         * lib/hash.c: Include <stdbool.h> unconditionally.
75690
75691 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75692
75693         * m4/onceonly.m4 (m4_quote): New macro.
75694         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75695         Quote AC_FOREACH variable-expansions properly.
75696
75697 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75698
75699         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75700
75701 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75702
75703         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75704         Reported by Bruce Becker; see:
75705         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75706
75707 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75708             Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75711         Reported by John Hughes, see
75712         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75713
75714 2003-02-20  Bruno Haible  <bruno@clisp.org>
75715
75716         * MODULES.html.sh (func_all_modules): Add poll.
75717
75718 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75719
75720         * modules/poll: New file.
75721
75722 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75723
75724         * lib/poll_.h: New file.
75725         * lib/poll.c: New file.
75726
75727 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75728
75729         * m4/poll.m4: New file.
75730
75731 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75732
75733         * modules/mathl: New file.
75734
75735 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75736
75737         * lib/mathl.h: New file.
75738         * lib/acosl.c: New file.
75739         * lib/asinl.c: New file.
75740         * lib/atanl.c: New file.
75741         * lib/ceill.c: New file.
75742         * lib/cosl.c: New file.
75743         * lib/expl.c: New file.
75744         * lib/floorl.c: New file.
75745         * lib/frexpl.c: New file.
75746         * lib/ldexpl.c: New file.
75747         * lib/logl.c: New file.
75748         * lib/sincosl.c: New file.
75749         * lib/sinl.c: New file.
75750         * lib/sqrtl.c: New file.
75751         * lib/tanl.c: New file.
75752         * lib/trigl.c: New file.
75753         * lib/trigl.h: New file.
75754
75755 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75756
75757         * m4/mathl.m4: New file.
75758
75759 2003-02-18  Bruno Haible  <bruno@clisp.org>
75760
75761         * MODULES.html.sh (func_all_modules): Add mathl.
75762
75763 2003-02-17  Bruno Haible  <bruno@clisp.org>
75764
75765         * modules/mkdtemp: New module.
75766         * MODULES.html.sh (func_all_modules): Add it.
75767
75768 2003-02-17  Bruno Haible  <bruno@clisp.org>
75769
75770         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75771
75772 2003-02-17  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/mkdtemp.h: New file, from GNU gettext.
75775         * lib/mkdtemp.c: New file, from GNU gettext.
75776
75777 2003-02-02  Jim Meyering  <jim@meyering.net>
75778
75779         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75780         e.g. glibc-2.2.93.
75781
75782 2003-01-31  Bruno Haible  <bruno@clisp.org>
75783
75784         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75785         'rpl_rename'.
75786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75787         'rpl_strnlen'.
75788         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75789         'rpl_strtod'.
75790         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75791         'rpl_utime'.
75792
75793 2003-01-31  Bruno Haible  <bruno@clisp.org>
75794
75795         * lib/rename.c: #undef rename before defining rpl_rename.
75796         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75797
75798 2003-01-30  Bruno Haible  <bruno@clisp.org>
75799
75800         * modules/vasnprintf, modules/vasprintf: New modules.
75801         * MODULES.html.sh (func_all_modules): Add them.
75802
75803 2003-01-30  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/signed.m4: New file, from GNU gettext.
75806         * m4/longdouble.m4: New file, from GNU gettext.
75807         * m4/wchar_t.m4: New file, from GNU gettext.
75808         * m4/wint_t.m4: New file, from GNU gettext.
75809         * m4/vasnprintf.m4: New file.
75810         * m4/vasprintf.m4: New file.
75811
75812 2003-01-30  Bruno Haible  <bruno@clisp.org>
75813
75814         * lib/printf-args.h: New file, from GNU gettext.
75815         * lib/printf-args.c: New file, from GNU gettext.
75816         * lib/printf-parse.h: New file, from GNU gettext.
75817         * lib/printf-parse.c: New file, from GNU gettext.
75818         * lib/vasnprintf.h: New file, from GNU gettext.
75819         * lib/vasnprintf.c: New file, from GNU gettext.
75820         * lib/asnprintf.c: New file, from GNU gettext.
75821         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75822         * lib/vasprintf.c: New file, from GNU gettext.
75823         * lib/asprintf.c: New file, from GNU gettext.
75824
75825 2003-01-29  Bruno Haible  <bruno@clisp.org>
75826
75827         * modules/stpncpy: New module.
75828         * MODULES.html.sh (func_all_modules): Add it.
75829
75830 2003-01-29  Bruno Haible  <bruno@clisp.org>
75831
75832         * m4/stpncpy.m4: New file.
75833
75834 2003-01-29  Bruno Haible  <bruno@clisp.org>
75835
75836         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75837         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75838
75839 2003-01-28  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/c-ctype: New module.
75842         * MODULES.html.sh (func_all_modules): Add it.
75843
75844 2003-01-28  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75847         Paul Eggert.
75848         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75849         Paul Eggert.
75850
75851 2003-01-27  Bruno Haible  <bruno@clisp.org>
75852
75853         * modules/xsetenv: New module.
75854         * MODULES.html.sh (func_all_modules): Add it.
75855
75856 2003-01-27  Bruno Haible  <bruno@clisp.org>
75857
75858         * lib/xsetenv.h: New file, from GNU gettext.
75859         * lib/xsetenv.c: New file, from GNU gettext.
75860
75861 2003-01-23  Jim Meyering  <jim@meyering.net>
75862
75863         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75864         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75865
75866 2003-01-23  Bruno Haible  <bruno@clisp.org>
75867
75868         * modules/minmax: New module.
75869         * MODULES.html.sh (func_all_modules): Add it.
75870
75871 2003-01-23  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75874         Eggert.
75875
75876 2003-01-22  Bruno Haible  <bruno@clisp.org>
75877
75878         * modules/exit: New module.
75879         * MODULES.html.sh (func_all_modules): Add it.
75880
75881 2003-01-22  Bruno Haible  <bruno@clisp.org>
75882
75883         * lib/exit.h: New file, from GNU gettext.
75884
75885 2003-01-19  Bruno Haible  <bruno@clisp.org>
75886
75887         * gnulib-tool: Recognize option --extract-maintainer.
75888         (func_get_maintainer): New function.
75889         * modules/*: Add Maintainer entry.
75890
75891 2003-01-16  Jim Meyering  <jim@meyering.net>
75892
75893         * m4/regex.m4: The `regex' struct is both input and output.
75894         Initialize it before each use.  Patch by Tim Waugh.
75895
75896 2003-01-16  Bruno Haible  <bruno@clisp.org>
75897
75898         * MODULES.html.sh: Add a table of contents. Add the module name as
75899         leftmost column. Add hyperlinks.
75900
75901 2003-01-15  Bruno Haible  <bruno@clisp.org>
75902
75903         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75904
75905 2003-01-15  Bruno Haible  <bruno@clisp.org>
75906
75907         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75909         suffix.
75910
75911 2003-01-15  Bruno Haible  <bruno@clisp.org>
75912
75913         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75914
75915 2003-01-15  Bruno Haible  <bruno@clisp.org>
75916
75917         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75918         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75919
75920 2003-01-14  Jim Meyering  <jim@meyering.net>
75921
75922         * lib/same.c (same_name): Tweak a comment.
75923
75924 2003-01-14  Bruno Haible  <bruno@clisp.org>
75925
75926         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75927         when a string comparison is sufficient.
75928
75929 2003-01-14  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75932         'unsigned int'.
75933
75934 2003-01-14  Bruno Haible  <bruno@clisp.org>
75935
75936         * lib/hash-pjw.c: Add comment about low quality of this function.
75937
75938 2003-01-13  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/stpcpy: Distribute lib/stpcpy.h.
75941         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75942
75943 2003-01-13  Bruno Haible  <bruno@clisp.org>
75944
75945         * modules/*: Add a description.
75946         * modules/strpbrk: Fix Makefile.am snippet.
75947         * modules/strtoimax: Fix dependencies.
75948         * modules/strtoumax: Likewise.
75949
75950 2003-01-13  Bruno Haible  <bruno@clisp.org>
75951
75952         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75953         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75954         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75955
75956 2003-01-13  Bruno Haible  <bruno@clisp.org>
75957
75958         * gnulib-tool (func_create_testdir): Store config/* files in the main
75959         directory.
75960         * config.rpath: Move to ...
75961         * config/config.rpath: ... here.
75962         * modules/gettext: Contains config/config.rpath, not config.rpath.
75963         * modules/iconv: Likewise.
75964
75965 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75966
75967         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75968         to avoid collisions with libcurses and libreadline.
75969
75970         * m4/getstr.m4: Remove.
75971         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75972
75973 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75974
75975         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75976         to avoid collisions with libcurses and libreadline.
75977
75978         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75979         * lib/getstr.h, getstr.c: Remove.
75980         * lib/getline.c: Include "getline.h", to check interface.
75981         Move body of old getstr.c here: this defines MIN_CHUNK and
75982         declares getdelim2, which is renamed from getstr.
75983         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75984
75985         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75986         All uses changed.
75987         * lib/linebuffer.h: Likewise.
75988         (readline): Remove backward-compatibility macro.
75989
75990 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75991
75992         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75993         to avoid collisions with libcurses and libreadline.
75994         * getstr: Remove.
75995         * MODULES.html.sh: Remove getstr.
75996         * modules/getline: Depend on unlocked-io, not getstr.
75997
75998 2003-01-12  Jim Meyering  <jim@meyering.net>
75999
76000         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
76001
76002 2003-01-10  Bruno Haible  <bruno@clisp.org>
76003
76004         * modules/alloca: Change Makefile.am requirements. Simplify Include
76005         requirements. Add lib/alloca_.h to file list.
76006
76007 2003-01-10  Bruno Haible  <bruno@clisp.org>
76008
76009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
76010
76011 2003-01-10  Bruno Haible  <bruno@clisp.org>
76012
76013         * lib/alloca_.h: New file.
76014         * lib/getdate.y: Unconditionally include alloca.h.
76015         * lib/makepath.c: Likewise.
76016         * lib/setenv.c: Likewise.
76017         * lib/userspec.c: Likewise.
76018
76019 2003-01-09  Karl Berry  <karl@gnu.org>
76020
76021         * MODULES.html.sh: include `dirname $0` in PATH, to find
76022         gnulib-tool.
76023
76024 2003-01-09  Bruno Haible  <bruno@clisp.org>
76025
76026         * modules/stdbool: Change configure.ac, Makefile.am requirements.
76027         Simplify Include requirements. Add lib/stdbool.h.in to file list.
76028
76029 2003-01-09  Bruno Haible  <bruno@clisp.org>
76030
76031         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
76032
76033 2003-01-09  Bruno Haible  <bruno@clisp.org>
76034
76035         * lib/stdbool.h.in: New file.
76036
76037 2003-01-09  Bruno Haible  <bruno@clisp.org>
76038
76039         * gnulib-tool (func_all_modules): Ignore files ending in ~.
76040         * MODULES.html.sh: Likewise.
76041
76042 2003-01-08  Jim Meyering  <jim@meyering.net>
76043
76044         * lib/full-write.c: Undefine and define-away `const' after inclusion
76045         of errno.h, not before.  Suggestion from Bruno Haible.
76046
76047 2003-01-08  Bruno Haible  <bruno@clisp.org>
76048
76049         * modules/full-read: Depend on full-write.
76050
76051 2003-01-08  Bruno Haible  <bruno@clisp.org>
76052
76053         * lib/safe-read.c: Include specification header first, to ensure its
76054         selfcontainedness.
76055         * lib/full-write.c: Likewise.
76056
76057 2003-01-07  Jim Meyering  <jim@meyering.net>
76058
76059         * lib/full-write.c: Rework so that it may serve to define full_read,
76060         too.
76061         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
76062
76063 2003-01-07  Bruno Haible  <bruno@clisp.org>
76064
76065         * lib/strtoimax.c: Include <stdint.h> as an alternative to
76066         <inttypes.h>.
76067         * lib/xstrtol.h: Likewise.
76068         * lib/xstrtoimax.c: Likewise.
76069         * lib/xstrtoumax.c: Likewise.
76070         * lib/human.h: Likewise.
76071
76072         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
76073         on systems that have <inttypes.h> but not <stdint.h>.
76074
76075 2003-01-07  Bruno Haible  <bruno@clisp.org>
76076
76077         * MODULES.html.sh: Add copyright notice.
76078         (missed_files): Omit CVS directory entries.
76079         (func_module): Make it work with sed-3.02.
76080         * MODULES.txt: Remove file.
76081
76082 2003-01-06  Jim Meyering  <jim@meyering.net>
76083
76084         * lib/version-etc.c: Update year in translatable copyright string.
76085
76086 2003-01-03  Karl Berry  <karl@gnu.org>
76087
76088         * config/config.{guess,sub}: update from prep.
76089
76090 2003-01-02  Karl Berry  <karl@gnu.org>
76091
76092         * doc/COPYING.DOC: belatedly updated to 1.2.
76093
76094 2003-01-01  Karl Berry  <karl@gnu.org>
76095
76096         * gnulib-tool (func_verify_module): report module name $module in
76097         error message, not $1.
76098         * gnulib-tool (create-testdir): don't complain if destdir couldn't
76099         be created, only if it doesn't exist.
76100         * gnulib-tool (last_checkin_date): don't expand the $Date here.
76101
76102 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76103
76104         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
76105
76106 2002-12-31  Paul Eggert  <eggert@twinsun.com>
76107
76108         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
76109         memcmp if strcoll doesn't work.
76110
76111 2002-12-31  Bruno Haible  <bruno@clisp.org>
76112
76113         * lib/utime.c (utime_null): No need to call ftruncate if the file was
76114         nonempty.
76115
76116 2002-12-31  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/memcoll.c (STRCOLL): New macro.
76119         (memcoll): Use it.
76120
76121 2002-12-31  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/localcharset.h: New file.
76124         * lib/localcharset.c: Include it.
76125         * lib/unicodeio.c: Likewise.
76126
76127 2002-12-31  Bruno Haible  <bruno@clisp.org>
76128
76129         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
76130         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
76131
76132 2002-12-31  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/getline.h: Include <stddef.h>, for size_t.
76135
76136         * lib/unicodeio.h: Include <stddef.h>, for size_t.
76137         * lib/unicodeio.c: Don't include <stddef.h>.
76138
76139 2002-12-31  Bruno Haible  <bruno@clisp.org>
76140
76141         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
76142         HAVE_TM_ZONE.
76143
76144 2002-12-24  Karl Berry  <karl@gnu.org>
76145
76146         * config/config.guess: update from prep.
76147
76148 2002-12-24  Bruno Haible  <bruno@clisp.org>
76149
76150         General infrasructure.
76151         * m4/README: Rewritten.
76152         * m4/onceonly.m4: New file.
76153         * m4/onceonly_2_57.m4: New file.
76154
76155         Module atexit.
76156         * m4/atexit.m4: New file.
76157
76158         Module strtod.
76159         * m4/strtod.m4: New file.
76160
76161         Module strtol.
76162         * m4/strtol.m4: New file.
76163
76164         Module strtoul.
76165         * m4/strtoul.m4: New file.
76166
76167         Module memchr.
76168         * m4/memchr.m4: New file.
76169
76170         Module memcmp.
76171         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
76172         (jm_FUNC_MEMCMP): Invoke it.
76173
76174         Module memcpy.
76175         * m4/memcpy.m4: New file.
76176
76177         Module memmove.
76178         * m4/memmove.m4: New file.
76179
76180         Module memset.
76181         * m4/memset.m4: New file.
76182
76183         Module strcspn.
76184         * m4/strcspn.m4: New file.
76185
76186         Module strpbrk.
76187         * m4/strpbrk.m4: New file.
76188
76189         Module strstr.
76190         * m4/strstr.m4: New file.
76191
76192         Module strerror.
76193         * m4/strerror.m4: New file.
76194
76195         Module mktime.
76196         * m4/mktime.m4: Renamed from jm-mktime.m4.
76197         (gl_PREREQ_MKTIME): New macro.
76198         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
76199
76200         Module malloc.
76201         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
76202         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
76203         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
76204
76205         Module realloc.
76206         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
76207         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
76208         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
76209
76210         Module strftime.
76211         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
76212         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
76213         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
76214         gl_TM_GMTOFF.
76215         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
76216
76217         Module xalloc.
76218         * m4/xalloc.m4: New file.
76219
76220         Module alloca.
76221         * m4/alloca.m4: New file.
76222
76223         Module putenv.
76224         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
76225         (jm_FUNC_PUTENV): Invoke it.
76226
76227         Module setenv.
76228         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
76229         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
76230         when invoked twice.
76231         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
76232         gt_FUNC_SETENV.
76233
76234         Module memrchr.
76235         * m4/memrchr.m4: New file.
76236
76237         Module stpcpy.
76238         * m4/stpcpy.m4: New file.
76239
76240         Module strcase.
76241         * m4/strcase.m4: New file.
76242
76243         Module strdup.
76244         * m4/strdup.m4: New file.
76245
76246         Module strnlen.
76247         * m4/strnlen.m4: New file.
76248
76249         Module strndup.
76250         * m4/strndup.m4: New file.
76251
76252         Module xstrtod.
76253         * m4/xstrtod.m4: New file.
76254
76255         Module xstrtol.
76256         * m4/xstrtol.m4: New file.
76257
76258         Module getdate.
76259         * m4/getdate.m4: New file.
76260
76261         Module unlocked-io.
76262         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
76263         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
76264         * m4/jm-glibc-io.m4n: Remove file.
76265
76266         Module long-options.
76267         * m4/long-options.m4: New file.
76268
76269         Module md5.
76270         * m4/md5.m4: New file.
76271
76272         Module sha.
76273         * m4/sha.m4: New file.
76274
76275         Module getstr.
76276         * m4/getstr.m4: New file.
76277
76278         Module getline.
76279         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
76280         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
76281         <sys/types.h>, for size_t. Use the function name gnu_getline, not
76282         simply getline. Infoke gl_PREREQ_GETLINE.
76283
76284         Module obstack.
76285         * m4/obstack.m4: New file.
76286
76287         Module hash.
76288         * m4/hash.m4: New file.
76289
76290         Module readtokens.
76291         * m4/readtokens.m4: New file.
76292
76293         Module strverscmp.
76294         * m4/strverscmp.m4: New file.
76295
76296         Module stdbool.
76297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
76298         OSF/1.
76299
76300         Module strtoll.
76301         * m4/strtoll.m4: New file.
76302
76303         Module strtoull.
76304         * m4/strtoull.m4: New file.
76305
76306         Module strtoimax.
76307         * m4/strtoimax.m4: New file.
76308
76309         Module strtoumax.
76310         * m4/strtoumax.m4: New file.
76311
76312         Module xstrtoimax.
76313         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
76314         jm_AC_PREREQ_XSTRTOIMAX.
76315         Moved the strtol prerequisites to strtol.m4.
76316         Moved the strtoll prerequisites to strtoll.m4.
76317         Moved the strtoimax prerequisites to strtoimax.m4.
76318
76319         Module xstrtoumax.
76320         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
76321         jm_AC_PREREQ_XSTRTOUMAX.
76322         Moved the strtoul prerequisites to strtoul.m4.
76323         Moved the strtoull prerequisites to strtoull.m4.
76324         Moved the strtoumax prerequisites to strtoumax.m4.
76325
76326         Module chown.
76327         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
76328         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
76329
76330         Module dup2.
76331         * m4/dup2.m4: New file.
76332
76333         Module ftruncate.
76334         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76335         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76336
76337         Module getgroups.
76338         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76339         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76340
76341         Module gettimeofday.
76342         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76343         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76344         gl_PREREQ_GETTIMEOFDAY.
76345
76346         Module mkdir.
76347         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76348         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76349
76350         Module mkstemp.
76351         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76352         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76353         jm_AC_TYPE_UINTMAX_T.
76354         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76355
76356         Module stat.
76357         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76358         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76359
76360         Module lstat.
76361         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76362         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76363
76364         Module timespec.
76365         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76366         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76367         * m4/st_mtim.m4: Indentation.
76368
76369         Module nanosleep.
76370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76371         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76372         gl_PREREQ_NANOSLEEP.
76373
76374         Module regex.
76375         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76376         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76377         (gl_REGEX): New macro.
76378
76379         Module rename.
76380         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76381         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76382
76383         Module rmdir.
76384         * m4/rmdir.m4: New file.
76385
76386         Module utime.
76387         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76388         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76389         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76390
76391         Module dirname.
76392         * m4/dirname.m4: New file.
76393
76394         Module getopt.
76395         * m4/getopt.m4: New file.
76396
76397         Module unistd-safer.
76398         * m4/unistd-safer.m4: New file.
76399
76400         Module fnmatch.
76401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76402         declaration.
76403         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76404         (gl_FUNC_FNMATCH_POSIX): New macro.
76405         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76406         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76407         simply fnmatch.
76408
76409         Module exclude.
76410         * m4/exclude.m4: New file.
76411
76412         Module human.
76413         * m4/human.m4: New file.
76414
76415         Module acl.
76416         * m4/acl.m4: Nop.
76417
76418         Module backupfile.
76419         * m4/backupfile.m4: New file.
76420         * m4/d-ino.m4: Indentation.
76421
76422         Module fsusage.
76423         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76424         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76425         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76426
76427         Module dirfd.
76428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76429         requirements.
76430
76431         Module euidaccess.
76432         * m4/euidaccess.m4: New file.
76433
76434         Module file-type.
76435         * m4/file-type.m4: New file.
76436
76437         Module fileblocks.
76438         * m4/fileblocks.m4: New file.
76439
76440         Module filemode.
76441         * m4/filemode.m4: New file.
76442
76443         Module isdir.
76444         * m4/isdir.m4: New file.
76445
76446         Module lchown.
76447         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76448         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76449
76450         Module makepath.
76451         * m4/makepath.m4: New file.
76452
76453         Module modechange.
76454         * m4/modechange.m4: New file.
76455
76456         Module mountlist.
76457         * m4/mountlist.m4: New file.
76458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76459         Indentation.
76460
76461         Module path-concat.
76462         * m4/path-concat.m4: New file.
76463
76464         Module pathmax.
76465         * m4/pathmax.m4: New file.
76466
76467         Module same.
76468         * m4/same.m4: New file.
76469
76470         Module save-cwd.
76471         * m4/save-cwd.m4: New file.
76472
76473         Module savedir.
76474         * m4/savedir.m4: New file.
76475
76476         Module xgetcwd.
76477         * m4/xgetcwd.m4: New file.
76478         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76479
76480         Module xreadlink.
76481         * m4/xreadlink.m4: New file.
76482
76483         Module safe-read.
76484         * m4/safe-read.m4: New file.
76485
76486         Module safe-write.
76487         * m4/safe-write.m4: New file.
76488
76489         Module closeout.
76490         * m4/closeout.m4: New file.
76491
76492         Module stdio-safer.
76493         * m4/stdio-safer.m4: New file.
76494
76495         Module getpass.
76496         * m4/getpass.m4: New file.
76497
76498         Module getugroups.
76499         * m4/getugroups.m4: New file.
76500
76501         Module group-member.
76502         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76503         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76504
76505         Module idcache.
76506         * m4/idcache.m4: New file.
76507
76508         Module userspec.
76509         * m4/userspec.m4: New file.
76510
76511         Module gettime.
76512         * m4/clock_time.m4: New file.
76513         * m4/gettime.m4: New file.
76514
76515         Module settime.
76516         * m4/settime.m4: New file.
76517
76518         Module posixtm.
76519         * m4/posixtm.m4: New file.
76520
76521         Module gethostname.
76522         * m4/gethostname.m4: New file.
76523
76524         Module canon-host.
76525         * m4/canon-host.m4: New file.
76526
76527         Module gettext.
76528         * m4/codeset.m4: New file, from gettext-0.11.5.
76529         * m4/gettext.m4: New file, from gettext-0.11.5.
76530         * m4/glibc21.m4: New file, from gettext-0.11.5.
76531         * m4/iconv.m4: New file, from gettext-0.11.5.
76532         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76533         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76534         * m4/inttypes.m4: New file, from gettext-0.11.5.
76535         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76536         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76537         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76538         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76539         * m4/lib-link.m4: New file, from gettext-0.11.5.
76540         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76541         * m4/progtest.m4: New file, from gettext-0.11.5.
76542         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76543         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76544         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76545
76546         Module localcharset.
76547         * m4/localcharset.m4: New file.
76548
76549         Module hard-locale.
76550         * m4/hard-locale.m4: New file.
76551
76552         Module mbswidth.
76553         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76554         onceonly macros.
76555         * m4/mbrtowc.m4: Add comment.
76556
76557         Module memcasecmp.
76558         * m4/memcasecmp.m4: New file.
76559
76560         Module memcoll.
76561         * m4/memcoll.m4: New file.
76562
76563         Module unicodeio.
76564         * m4/unicodeio.m4: New file.
76565
76566         Module rpmatch.
76567         * m4/rpmatch.m4: New file.
76568
76569         Module yesno.
76570         * m4/yesno.m4: New file.
76571
76572         Module exitfail.
76573         * m4/exitfail.m4: New file.
76574
76575         Module c-stack.
76576         * m4/c-stack.m4 (gl_C_STACK): New macro.
76577         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76578
76579         Module error.
76580         * m4/error.m4 (gl_ERROR): New macro.
76581         (jm_PREREQ_ERROR): Use onceonly macros.
76582
76583         Module fatal.
76584         * m4/fatal.m4: New file.
76585
76586         Module getloadavg.
76587         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76588         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76589
76590         Module getpagesize.
76591         * m4/getpagesize.m4: New file.
76592
76593         Module getusershell.
76594         * m4/getusershell.m4: New file.
76595
76596         Module physmem.
76597         * m4/physmem.m4: New file.
76598
76599         Module posixver.
76600         * m4/posixver.m4: New file.
76601
76602         Module quotearg.
76603         * m4/quotearg.m4: New file.
76604
76605         Module quote.
76606         * m4/quote.m4: New file.
76607
76608         Module readutmp.
76609         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76610
76611         Module sig2str.
76612         * m4/sig2str.m4: New file.
76613
76614         Other.
76615         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76616         ulonglong.m4.
76617         * m4/intmax_t.m4: New file.
76618         * m4/d-type.m4: Indentation.
76619         * m4/jm-macros.m4: Update.
76620         * m4/prereq.m4 (jm_PREREQ): Update.
76621         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76622         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76623         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76624         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76625         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76626         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76627         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76628         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76629         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76630         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76631         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76632         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76633         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76634         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76635         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76636         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76637         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76638         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76639         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76640
76641 2002-12-24  Bruno Haible  <bruno@clisp.org>
76642
76643         * MODULES.txt: Update according to m4/ changes.
76644
76645         Module gettext.
76646         * config.rpath: New file, from gettext-0.11.5.
76647
76648         * modules/*: New module descriptions.
76649         * gnulib-tool: New file.
76650         * MODULES.html.sh: New file.
76651
76652 2002-12-21  Karl Berry  <karl@gnu.org>
76653
76654         * doc/fdl.texi: update to version 1.2.
76655
76656 2002-12-19  Karl Berry  <karl@gnu.org>
76657
76658         * config/config.guess: update from prep.
76659
76660 2002-12-18  Bruno Haible  <bruno@clisp.org>
76661
76662         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76663         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76664
76665 2002-12-17  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76668         stdlib.h, string.h.
76669
76670 2002-12-17  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/canon-host.c (strdup): Remove unused declaration.
76673
76674         * lib/fsusage.c: Include full_read.h.
76675         (get_fs_usage): Use full_read instead of safe_read.
76676
76677         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76678
76679 2002-12-12  Karl Berry  <karl@gnu.org>
76680
76681         * config/config.guess: update from prep.
76682
76683 2002-12-11  Bruno Haible  <bruno@clisp.org>
76684
76685         * m4/setenv.m4: New file, from gettext-0.11.5.
76686
76687 2002-12-11  Bruno Haible  <bruno@clisp.org>
76688
76689         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76690         not unsetenv().
76691         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76692         modifications:
76693
76694         2002-12-11  Bruno Haible  <bruno@clisp.org>
76695
76696                 * setenv.c (alloca): Fall back to malloc.
76697                 (freea): New macro.
76698                 (setenv): Use freea() to free memory allocated with alloca().
76699
76700         2002-11-13  Bruno Haible  <bruno@clisp.org>
76701
76702                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76703                 function declarations.
76704                 * unsetenv.c (unsetenv): Likewise.
76705
76706         2002-03-04  Bruno Haible  <bruno@clisp.org>
76707
76708                 Portability to AIX 4.3.3.
76709                 * unsetenv.c: New file, extracted from setenv.c.
76710                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76711
76712         2001-12-20  Bruno Haible  <bruno@clisp.org>
76713
76714                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76715                 use malloc instead. For SunOS 4.
76716
76717         2001-12-11  Bruno Haible  <bruno@clisp.org>
76718
76719                 * setenv.c: Declare alloca.
76720                 (compar_fn_t): New typedef.
76721                 (KNOWN_VALUE, STORE_VALUE): Use it.
76722
76723         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76724         setenv.h.
76725
76726 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76727
76728         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76729         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76730         Choose values that are less likely to collide with system fnmatch
76731         options.
76732         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76733         defined (e.g., a pure POSIX system).
76734         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76735         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76736
76737 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76738
76739         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76740         a pain in practice to deal with generated m4 files.  This change
76741         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76742
76743         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76744         and jm-glibc-io.m4, as they are no longer a special case.
76745         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76746         kludge and the auto-generation stuff.  Check only whether the
76747         functions are declared, not whether they exist, since older hosts
76748         that don't declare the functions can't use the optimization anyway.
76749
76750 2002-12-06  Jim Meyering  <jim@meyering.net>
76751
76752         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76753
76754         Merge in changes from libc's misc/error.c, in preparation
76755         for the merge of gnulib's changes back into libc.
76756
76757         * lib/error.c (_): Define only if not already defined.
76758         Move definition to follow all #include directives.
76759         Include unlocked-io.h only if !_LIBC.
76760         [_LIBC]: Include <libio/libioP.h>.
76761         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76762         (fflush): Tweak definition to use INTUSE.
76763         (putc): Define.
76764
76765 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76766
76767         * lib/alloca.c [defined emacs]: Include "lisp.h".
76768         (xalloc_die) [defined emacs]: New macro.
76769         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76770         [! defined emacs]: Include <xalloc.h>.
76771         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76772         (pointer): Typedef to POINTER_TYPE *.
76773         (malloc): Remove decl; we now always use xmalloc.
76774         (alloca): Use old-style definition, since Emacs needs this.
76775         Check for arithmetic overflow when computing combined size.
76776
76777 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76778
76779         Do not generate unlocked-io.h automatically, since it's easier to
76780         maintain it by hand.
76781
76782         * lib/unlocked-io.h: New file, from GNU diffutils,
76783         but with proper copyright notice and attribution.
76784         * lib/gen-uio: Remove.
76785         * lib/Makefile.am: Add copyright notice.
76786         (libfetish_a_SOURCES): Add unlocked-io.h.
76787         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76788         (DISTCLEANFILES, io_functions): Remove macros.
76789         (EXTRA_DIST): Remove gen_uio.
76790         (unlocked-io.h): Remove rule.
76791
76792 2002-12-04  Jim Meyering  <jim@meyering.net>
76793
76794         Reflect the fact that stat.c and lstat.c are no longer generated.
76795         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76796         (DISTCLEANFILES): Likewise.
76797         (EXTRA_DIST): Likewise.
76798         (all_local): Don't depend on stat.c or lstat.c.
76799         (stat.c, lstat.c): Remove rules.
76800         (EXTRA_DIST): Remove xstat.in.
76801
76802         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76803         * lib/stat.c: New file.  Contents mostly from xstat.in.
76804         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76805         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76806
76807         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76808         too.
76809         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76810
76811 2002-12-03  Jim Meyering  <jim@meyering.net>
76812
76813         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76814         but not semantics, to minimize the differences between these two files.
76815         (safe_read): Change comment to mention SAFE_READ_ERROR.
76816
76817         * lib/safe-read.c (IS_EINTR): Define.
76818         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76819
76820 2002-12-02  Jim Meyering  <jim@meyering.net>
76821
76822         * lib/safe-read.c (EINTR): Define.
76823         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76824         (INT_MAX): Provide fallback.
76825         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76826
76827         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76828
76829 2002-12-02  Bruno Haible  <bruno@clisp.org>
76830
76831         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76832         Define, taken from safe-read.c.
76833         (INT_MAX): Provide fallback.
76834         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76835         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76836
76837         * lib/safe-read.c (EINTR): Remove definition.
76838         (safe_read): Don't use EINTR if it is absent.
76839
76840 2002-12-01  Jim Meyering  <jim@meyering.net>
76841
76842         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76843         zero.
76844         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76845
76846 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76847
76848         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76849         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76850         with `if (! (value < limit)) abort ();', for readability.
76851
76852 2002-11-26  Karl Berry  <karl@gnu.org>
76853
76854         * lib/strdup.c: copy from libc again, with jim's ok.
76855         * lib/.cppi-disable: re-add strdup.c
76856
76857 2002-11-25  Karl Berry  <karl@gnu.org>
76858
76859         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76860         instead of "strtol.c".
76861
76862 2002-11-25  Karl Berry  <karl@gnu.org>
76863
76864         * config/install-sh: update from automake for variable quoting, $0 in
76865         error msgs, etc.
76866
76867         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76868         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76869         entry.
76870
76871 2002-11-25  Jim Meyering  <jim@meyering.net>
76872
76873         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76874
76875 2002-11-24  Karl Berry  <karl@gnu.org>
76876
76877         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76878         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76879
76880 2002-11-24  Jim Meyering  <jim@meyering.net>
76881
76882         Update from coreutils:
76883
76884         * lib/mktime.c: Merge in changes from libc.
76885
76886         Avoid a link-time failure on some Linux systems.
76887         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76888         (otherwise).
76889         (__mon_yday): Declare with the STATIC attribute.
76890         (__mktime_internal): Likewise.
76891         Based on a report from Greg Schafer.
76892
76893 2002-11-23  Jim Meyering  <jim@meyering.net>
76894
76895         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76896         Use `unsigned', not `int', as type of index.
76897
76898         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76899
76900         * lib/fsusage.c: Remove unneeded parentheses around operands of
76901         `defined'.
76902
76903 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76904
76905         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76906         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76907         so that we can be included first.
76908         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76909         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76910         No need to include stddef.h or sys/types.h any more.
76911         Surround local include files with "", not "<>".
76912         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76913         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76914         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76915         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76916         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76917         (ISPRINT): Remove; no longer needed now that we assume C89.
76918
76919         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76920         Preserve errno.
76921
76922         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76923         quotearg_char): Use SIZE_MAX rather than
76924         (size_t) -1 when we are talking about "infinity".
76925
76926         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76927
76928 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76929
76930         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76931         hint that one should use `if (! x) abort ();' rather than `assert
76932         (x);', and anyway it's one less thing to worry about configuring.
76933         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76934         hash_rehash, hash_insert): Use abort rather than assert.
76935
76936 2002-11-22  Bruno Haible  <bruno@clisp.org>
76937
76938         * lib/safe-read.h: Assume C89. Add comments.
76939         (safe_read): Change return type to size_t.
76940         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76941         byte counts > SSIZE_MAX correctly.
76942         * lib/safe-write.h: New file.
76943         * lib/safe-write.c: New file.
76944         * lib/full-read.h: New file.
76945         * lib/full-read.c: New file.
76946         * lib/full-write.h: Assume C89. Add comments.
76947         * lib/full-write.c: Include safe-write.h.
76948         (full_write): Rewritten to use safe_write.
76949         Suggested by Jim Meyering and Paul Eggert.
76950
76951 2002-11-21  Jim Meyering  <jim@meyering.net>
76952
76953         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76954
76955         Merge in changes from the coreutils.
76956
76957         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76958         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76959         <stdint.h>.
76960         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76961         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76962         int.  Work more efficiently if X is the same width as uintmax_t.
76963         Do not compare X to -1, to avoid bogus compiler warning.
76964         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76965         Don't assume that f_frsize and f_bsize are the same type.
76966
76967         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76968         warning on FreeBSD.
76969
76970         * lib/makepath.c (make_path): Restore umask *before* creating the final
76971         component.
76972         (make_path): Minor reformatting.
76973
76974         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76975         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76976         HAVE_MALLOC/HAVE_REALLOC.
76977
76978         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76979         dummy ones.  At least on GNU/Linux systems, `auto' means something
76980         else.
76981         From Michael Stone.
76982
76983 2002-11-21  Bruno Haible  <bruno@clisp.org>
76984
76985         Remove case insensitive option matching.
76986         * lib/argmatch.h (argcasematch): Remove declaration.
76987         (ARGCASEMATCH): Remove macro.
76988         (__xargmatch_internal): Remove case_sensitive argument.
76989         (XARGMATCH): Update.
76990         (XARGCASEMATCH): Remove macro.
76991         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76992         case_sensitive argument.
76993         (argcasematch): Remove function.
76994         (__xargmatch_internal): Remove case_sensitive argument.
76995         (main): Use XARGMATCH instead of XARGCASEMATCH.
76996
76997         * lib/xmalloc.c: Change compile-time error message. Add comment about
76998         required autoconf version.
76999
77000 2002-11-20  Paul Eggert  <eggert@twinsun.com>
77001
77002         Merge argmatch cleanups from Bison.  Assume C89.
77003
77004         * lib/argmatch.c: Include config.h here, not in argmatch.h.
77005         Include stdlib.h, for EXIT_FAILURE.
77006         Always include <string.h>, since we assume C89.
77007         (EXIT_FAILURE): Remove pre-C89 bug workaround.
77008         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
77009         Include <stddef.h> instead, since it's all we need for size_t.
77010         (PARAMS): Remove.  All uses removed.
77011         (ARRAY_CARDINALITY): Do not bother to #undef.
77012         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
77013         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77014         Remove unnecessary parentheses.
77015         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
77016         Insert necessary parentheses.
77017         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
77018         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
77019
77020 2002-11-19  Bruno Haible  <bruno@clisp.org>
77021
77022         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
77023         * lib/mbswidth.h: Include <stddef.h>, for size_t.
77024
77025         * lib/mbswidth.h (PARAMS): Remove macro.
77026         (mbswidth, mbsnwidth): Use ANSI C function declarations.
77027         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
77028
77029         * lib/gcd.h (PARAMS): Remove macro.
77030         (gcd): Use ANSI C function declarations.
77031         * lib/gcd.c (gcd): Likewise.
77032
77033 2002-11-15  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/strcspn.c: Include <stddef.h>.
77036         (strcspn): Use ANSI C function declaration. Change return type to
77037         size_t. Use NULL.
77038         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
77039         (strpbrk): Use NULL.
77040         * lib/strpbrk.h (PARAMS): Remove macro.
77041         (strpbrk): Use ANSI C function declaration.
77042         * lib/strstr.c: Don't include <sys/types.h>.
77043         * lib/strstr.h (PARAMS): Remove macro.
77044         (strstr): Use ANSI C function declarations.
77045
77046 2002-11-14  Karl Berry  <karl@gnu.org>
77047
77048         * config/mkinstalldirs: `do' on separate line, instead of
77049         `for var; do'.
77050
77051 2002-11-06  Bruno Haible  <bruno@clisp.org>
77052
77053         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
77054         * lib/gcd.c (gcd): Likewise.
77055
77056 2002-11-05  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/gcd.h: New file, from gettext-0.11.5.
77059         * lib/gcd.c: New file, from gettext-0.11.5.
77060
77061 2002-11-05  Bruno Haible  <bruno@clisp.org>
77062
77063         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77064         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77065         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77066         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
77067
77068         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
77069         <libintl.h>.
77070         * lib/makepath.c: Include gettext.h instead of <locale.h> and
77071         <libintl.h>.
77072
77073         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
77074         * lib/human.c: Include gettext.h instead of <libintl.h>.
77075         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
77076         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
77077         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
77078         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
77079         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
77080         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
77081         (textdomain): Remove definition.
77082         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
77083
77084         * lib/long-options.c: Remove include of <libintl.h> and definition of
77085         _.
77086         * lib/same.c: Remove include of <libintl.h> and definition of _.
77087
77088 2002-11-04  Owen Taylor  <otaylor@redhat.com>
77089
77090         * lib/config.charset: A few additions for Solaris.
77091
77092 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77093
77094         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
77095         * lib/localcharset.c (locale_charset): Declare as extern "C".
77096
77097 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
77098
77099         * lib/config.charset: msdos in uk_UA uses CP1125.
77100
77101 2002-11-04  Bruno Haible  <bruno@clisp.org>
77102
77103         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
77104         * lib/strcase.h: New file, from GNU gettext-0.11.5.
77105         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
77106         * lib/strstr.h: New file, from GNU gettext-0.11.5.
77107         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
77108
77109 2002-11-04  Bruno Haible  <bruno@clisp.org>
77110
77111         * lib/localcharset.c (locale_charset): Don't return an empty string.
77112
77113 2002-11-04  Bruno Haible  <bruno@clisp.org>
77114
77115         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
77116         aliases.
77117
77118 2002-11-04  Bruno Haible  <bruno@clisp.org>
77119
77120         * lib/config.charset: Update for newest glibc. Add canonical names
77121         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
77122
77123 2002-11-04  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/config.charset: Add support for NetBSD.
77126
77127 2002-11-04  Bruno Haible  <bruno@clisp.org>
77128
77129         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
77130
77131 2002-11-01  Bruno Haible  <bruno@clisp.org>
77132
77133         * configure.in: Add AC_CONFIG_AUX_DIR call.
77134         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
77135         test/Makefile.
77136         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
77137
77138 2002-09-28  Karl Berry  <karl@gnu.org>
77139
77140         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
77141         installed automake until the next release, since changes have been
77142         made.
77143
77144 2002-09-25  Karl Berry  <karl@gnu.org>
77145
77146         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
77147         * lib/getopt*: copy from libc/posix.
77148         * lib/gettext.h: copy from gettext.
77149         * lib/.cppi-disable: add strdup.c, gettext.h.
77150
77151 2002-09-25  Karl Berry  <karl@gnu.org>
77152
77153         * config/srclist.txt: enable gettext.h check.
77154         * config/config.{guess,sub}: update from prep.
77155         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
77156                 from automake 1.6.3.
77157         See srclist*.
77158
77159 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
77160
77161         * regex.c (PATFETCH): Remove the translating fetch.
77162         (PATFETCH_RAW): Rename to PATFETCH.
77163         (set_image_of_range): New fun.
77164         (SET_RANGE_TABLE_WORK_AREA): Use it.
77165         (regex_compile): Don't translate the pattern chars so eagerly.
77166         Only do it when inserting an `exactn' bytecode or when handling
77167         a char-range.
77168         (mutually_exclusive_p): Avoid empty statement.
77169
77170 2002-07-06  Jim Meyering  <meyering@lucent.com>
77171
77172         * m4/README: Don't mention Makefile.am.in.
77173         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
77174
77175 2002-07-01  Jim Meyering  <meyering@lucent.com>
77176
77177         * lib/c-stack.c: Include sys/time.h.
77178         From Volker Borchert.
77179
77180 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77181
77182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
77183
77184 2002-06-26  Paul Eggert  <eggert@twinsun.com>
77185
77186         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
77187         New macro.  Use it uniformly instead of
77188         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
77189         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
77190         reported by Vin Shelton.
77191
77192 2002-06-22  Paul Eggert  <eggert@twinsun.com>
77193
77194         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
77195         Do not assume SA_SIGINFO behavior.
77196         Bug reported by Jim Meyering on NetBSD 1.5.2.
77197
77198 2002-06-22  Jim Meyering  <meyering@lucent.com>
77199
77200         * m4/c-stack.m4: New file, from diffutils-2.8.2.
77201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
77202
77203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
77204         now that configure.ac uses AC_GNU_SOURCE.
77205         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
77206         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
77207
77208         Update to latest tools.  Suggestions from Paul Eggert.
77209         * m4/stdbool.m4: New file, from diffutils-2.8.2.
77210         * m4/gnu-source.m4: Update from diffutils-2.8.2.
77211         * m4/fnmatch.m4: Likewise.
77212         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
77213         to AC_HEADER_STDBOOL
77214
77215 2002-06-22  Jim Meyering  <meyering@lucent.com>
77216
77217         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
77218         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
77219
77220 2002-06-22  Jim Meyering  <meyering@lucent.com>
77221
77222         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
77223
77224         * lib/exitfail.c, exitfail.h: Likewise.
77225         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
77226
77227         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
77228         of fnmatch.h.
77229         (EXTRA_DIST): Add fnmatch_loop.c.
77230         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
77231
77232         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
77233         * lib/fnmatch.c: Update from diffutils-2.8.2.
77234         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
77235         * lib/fnmatch.h: Remove file.
77236
77237 2002-06-21  Jim Meyering  <meyering@lucent.com>
77238
77239         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
77240         * m4/mbrtowc.m4: Likewise.
77241
77242         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
77243         * m4/mbswidth.m4: Reflect name change:
77244         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
77245         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77246
77247         * m4/lib-link.m4: Update from gettext-0.11.2.
77248         * m4/gettext.m4: Likewise.
77249
77250         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
77251         From Alfred M. Szmidt.
77252
77253 2002-06-18  Paul Eggert  <eggert@twinsun.com>
77254
77255         * lib/file-type.h: Report an error if neither S_ISREG nor
77256         S_IFREG is defined, instead of using a test specific to glibc
77257         2.2.  This should be safe, since POSIX requires S_ISREG and
77258         Unix Version 7 had S_IFREG.  We don't need to check for
77259         <sys/types.h> since we don't use any symbols that it defines.
77260
77261 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
77262
77263         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
77264         $@-t, so that each temporary file name is unique and valid in the first
77265         8 characters, for operation under DOS.
77266
77267 2002-06-15  Paul Eggert  <eggert@twinsun.com>
77268
77269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
77270
77271 2002-06-15  Jim Meyering  <meyering@lucent.com>
77272
77273         Work even with DJGPP 2.03, which lacks support for symlinks.
77274         From Richard Dawe.
77275         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
77276         is defined.
77277         * lib/lchown.c (S_ISLNK): Likewise.
77278
77279 2002-06-15  Jim Meyering  <meyering@lucent.com>
77280
77281         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
77282         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
77283         have been included before this file.
77284
77285 2002-06-14  Jim Meyering  <meyering@lucent.com>
77286
77287         * lib/file-type.h: Use the version from diffutils-2.8.2.
77288         * lib/file-type.c: Likewise.
77289
77290 2002-06-07  Jim Meyering  <meyering@lucent.com>
77291
77292         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
77293         They're needed at least for NetBSD 1.5.2.
77294         ($statxfs_includes): Include those same headers.
77295         ($statxfs_includes): Include sys/vfs.h if available.
77296         ($statxfs_includes): Likewise for sys/statvfs.h.
77297         Check for the following members in both structs statfs and statvfs:
77298         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
77299
77300 2002-06-01  Jim Meyering  <meyering@lucent.com>
77301
77302         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
77303         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
77304
77305 2002-05-28  Jim Meyering  <meyering@lucent.com>
77306
77307         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
77308         Reported by Volker Borchert.
77309
77310 2002-05-27  Jim Meyering  <meyering@lucent.com>
77311
77312         Fix a problem seen only on nonconforming systems whereby ls.c's
77313         use of localtime, and then of gettimeofday would cause trouble:
77314         the localtime call used to initialize rpl_gettimeofday's save
77315         mechanism would clobber ls's current local time information so
77316         that in any long listing the first file would always be listed
77317         with date 1970-01-01.  Analysis by Volker Borchert.
77318
77319         * lib/gettimeofday.c (localtime): Undefine.
77320         (rpl_localtime): New function.
77321
77322 2002-05-27  Jim Meyering  <meyering@lucent.com>
77323
77324         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
77325         localtime.
77326
77327         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
77328         use the replacement function; it wouldn't resolve at link time.
77329         Reported by Volker Borchert.
77330
77331 2002-05-22  Jim Meyering  <meyering@lucent.com>
77332
77333         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77334         file-type.h.
77335         * lib/file-type.h: New file.
77336         * lib/file-type.c (file_type): New file/function.  Extracted from
77337         diffutils.
77338
77339 2002-04-30  Jim Meyering  <meyering@lucent.com>
77340
77341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77342
77343 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77344
77345         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77346
77347 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77348
77349         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77350         Do not check for alloca.h (no longer used) or stdbool.h (was never
77351         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77352
77353 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77354
77355         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77356
77357 2002-04-29  Jim Meyering  <meyering@lucent.com>
77358
77359         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77360         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77361         Use AC_FUNC_STRNLEN here instead.
77362
77363         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77364         With autoconf-2.53a, it's part of AC_PROG_CC.
77365
77366 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77367
77368         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77369         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77370
77371 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77372
77373         * lib/sig2str.h, lib/sig2str.c: New files.
77374         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77375
77376 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77377
77378         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77379         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77380         of 127, since 64 is the largest conceivable number for ancient
77381         nonstandard hosts.
77382         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77383
77384 2002-04-28  Jim Meyering  <meyering@lucent.com>
77385
77386         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77387
77388 2002-04-24  Jim Meyering  <meyering@lucent.com>
77389
77390         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77391         (jm_PREREQ): Use it.
77392
77393         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77394         mach/mach.h fcntl.h.
77395         Check for this function: setlocale.
77396
77397 2002-04-24  Jim Meyering  <meyering@lucent.com>
77398
77399         * lib/gettext.h: New file, from Gettext.
77400         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77401         (libfetish_a_SOURCES): Add gettext.h.
77402
77403 2002-04-16  Jim Meyering  <meyering@lucent.com>
77404
77405         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77406         ut_pid, ut_id, ut_exit.
77407
77408 2002-04-16  Jim Meyering  <meyering@lucent.com>
77409
77410         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77411         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77412         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77413
77414 2002-04-12  Jim Meyering  <meyering@lucent.com>
77415
77416         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77417         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77418         existence of the getmntinfo function.  Needed for Darwin 5.3.
77419
77420         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77421         This is necessary at least on Darwin 5.3.
77422
77423         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77424         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77425         strnlen.o in the library, and that makes some versions of ranlib
77426         object.
77427
77428 2002-04-12  Jim Meyering  <meyering@lucent.com>
77429
77430         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77431
77432 2002-04-09  Jim Meyering  <meyering@lucent.com>
77433
77434         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77435         to be more precise.  Rather than saying we're checking whether the
77436         function `works', say what we're testing.
77437         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77438         Reported by Bruno Haible.
77439
77440 2002-03-10  Jim Meyering  <meyering@lucent.com>
77441
77442         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77443         Suggestion from Santiago Vila.
77444
77445 2002-03-08  Jim Meyering  <meyering@lucent.com>
77446
77447         * lib/rename.c: Mention that this wrapper is needed also on
77448         mips-dec-ultrix4.4 systems.
77449
77450 2002-03-02  Jim Meyering  <meyering@lucent.com>
77451
77452         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77453         not HAVE_CLOCK_SETTIME.
77454
77455 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77456
77457         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77458         Check for clock_settime.
77459
77460 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77461
77462         * lib/nanosleep.h: Rename to....
77463         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77464
77465         * lib/gettime.c: New file.
77466         * lib/settime.c: New file.
77467         * lib/stime.c: Remove.
77468
77469         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77470         timespec.h.  Remove nanosleep.h.
77471
77472 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77473
77474         * m4/acl.m4: New file.
77475         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77476         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77477
77478 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77479
77480         * lib/acl.c, lib/acl.h: New files.
77481         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77482
77483 2002-02-24  Jim Meyering  <meyering@lucent.com>
77484
77485         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77486         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77487         cause trouble.  Reported by Nelson Beebe.
77488
77489 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77490
77491         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77492         compilers that don't know that xalloc_die never returns.
77493
77494 2002-02-20  Jim Meyering  <meyering@lucent.com>
77495
77496         * lib/getdate.c: Regenerate using bison-1.33.
77497
77498 2002-02-17  Jim Meyering  <meyering@lucent.com>
77499
77500         * config/config.guess (main): Don't use `head -1'; it's no longer
77501         portable. Use `sed 1q' instead.
77502
77503 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77504
77505         * m4/codeset.m4: Upgrade to gettext-0.11.
77506         * m4/gettext.m4: Upgrade to gettext-0.11.
77507         * m4/glibc21.m4: Upgrade to gettext-0.11.
77508         * m4/iconv.m4: Upgrade to gettext-0.11.
77509         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77510         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77511         * m4/lib-ld.m4: New file, from gettext-0.11.
77512         * m4/lib-link.m4: New file, from gettext-0.11.
77513         * m4/lib-prefix.m4: New file, from gettext-0.11.
77514         * m4/progtest.m4: Upgrade to gettext-0.11.
77515
77516 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77517
77518         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77519         (jm_PREREQ): Use it.
77520
77521 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77522
77523         * lib/posixver.c, lib/posixver.h: New files.
77524         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77525
77526 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77527             Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77530         (fwrite_success_callback): New declaration.
77531         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77532         print_unicode_char. Call failure callback instead of error.
77533         (fwrite_success_callback): New function.
77534         (exit_failure_callback): New function.
77535         (fallback_failure_callback): New function.
77536         (print_unicode_char): Call unicode_to_mb.
77537
77538 2002-01-26  Jim Meyering  <meyering@lucent.com>
77539
77540         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77541         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77542
77543 2002-01-26  Jim Meyering  <meyering@lucent.com>
77544
77545         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77546
77547 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77548
77549         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77550
77551 2002-01-22  Jim Meyering  <meyering@lucent.com>
77552
77553         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77554         Otherwise, some versions of automake would omit the rule that makes
77555         Makefile from Makefile.in.
77556
77557 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77558
77559         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77560         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77561         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77562         (memcoll): Set errno to zero if there is no error.
77563
77564         * lib/quotearg.c (quotearg_buffer_restyled):
77565         Fix bug with quoting buffers containing NUL when backslashing escapes.
77566         This bug was exposed by the other changes in this patch.
77567         (quotearg_n_options): New arg ARGSIZE.
77568         All callers changed.
77569         (quoting_options_from_style): New function.
77570         (quotearg_n_style): Use it.
77571         (quotearg_n_style_mem): New function.
77572
77573         * lib/quotearg.h (quotearg_n_style_mem): New function.
77574
77575 2002-01-19  Jim Meyering  <meyering@lucent.com>
77576
77577         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77578         Remove useless quotes: DF_PROG="df".
77579         * m4/strnlen.m4: New file.
77580
77581 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77582
77583         * lib/backupfile.c (ISDIGIT): Comment fix.
77584         * lib/getdate.y (ISDIGIT): Likewise.
77585         * lib/posixtm.c (ISDIGIT, year): Likewise.
77586         * lib/strverscmp.c (ISDIGIT): Likewise.
77587         * lib/userspec.c (ISDIGIT): Likewise.
77588
77589 2002-01-16  Jim Meyering  <meyering@lucent.com>
77590
77591         * lib/getdate.y: Add three semicolons, each just before a closing
77592         brace. Bison (as of version 1.31) no longer papers over that mistake.
77593
77594 2002-01-05  Jim Meyering  <meyering@lucent.com>
77595
77596         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77597
77598 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77599
77600         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77601         not silently exit merely because the output buffer happens to
77602         have nothing pending.
77603
77604 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77605
77606         See the big note in ../ChangeLog.
77607         * lib/human.c (suffixes): Prefer K to k for 1024.
77608         (generate_suffix_backwards): New function.
77609         (human_readable_inexact): Use it.
77610         * lib/xstrtol.c (__xstrtol): If there is no number but there
77611         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77612         Accept 'K' as well as 'k'.
77613
77614 2001-12-15  Jim Meyering  <meyering@lucent.com>
77615
77616         * lib/regex.h (__restrict_arr): Update from libc.
77617
77618         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77619         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77620         (STREQ): Define.
77621
77622 2001-12-14  Jim Meyering  <meyering@lucent.com>
77623
77624         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77625         Suggestion from Bruno Haible.
77626
77627 2001-12-10  Jim Meyering  <meyering@lucent.com>
77628
77629         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77630         xrealloc, Instead, include "xalloc.h".
77631         (initbuffer): Don't cast xmalloc return value to char*.
77632         (readline): Reword comment.
77633         Don't cast xrealloc return value to char*
77634         Return NULL, not 0.
77635
77636 2001-12-09  Jim Meyering  <meyering@lucent.com>
77637
77638         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77639         about `signed and unsigned type in conditional expression'.
77640         * lib/posixtm.c (posix_time_parse): Likewise.
77641
77642         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77643
77644         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77645         to avoid a pedantic warning.
77646
77647         * lib/getstr.c: Don't include assert.h.
77648         (getstr): Remove warning-evoking assertions.
77649         Return -1 if offset parameter is out of bounds.
77650         Change the type of a local from int to size_t.
77651
77652         * lib/strftime.c (my_strftime_localtime_r): Include this function
77653         definition in the `#if ! HAVE_TM_GMTOFF' block.
77654
77655         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77656         Include xalloc.h instead.
77657
77658 2001-12-02  Jim Meyering  <meyering@lucent.com>
77659
77660         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77661         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77662         included.
77663
77664         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77665         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77666
77667 2001-11-30  Akim Demaille  <akim@epita.fr>
77668
77669         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77670         before being defined.
77671
77672 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77673
77674         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77675         First arg is int, not unsigned.
77676         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77677         (SIZE_MAX, UINT_MAX): New macros.
77678         (quotearg_n_options): Abort if N is negative.
77679         Avoid overflow check on hosts where size_t is 64 bits and int
77680         is 32 bits, as overflow is impossible there.
77681         Fix off-by-one typo that caused unnecessary reallocation.
77682
77683 2001-11-27  Jim Meyering  <meyering@lucent.com>
77684
77685         * lib/tempname.c: Merge with version from libc.
77686         * lib/regex.c: Likewise.
77687
77688         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77689         systems for which STDC_HEADERS is 0, it was not included, resulting in
77690         a warning about an integer-to-pointer conversion problem with getenv.
77691         Reported by Volker Borchert.
77692
77693 2001-11-26  Jim Meyering  <meyering@lucent.com>
77694
77695         * lib/gtod.h: Remove file.
77696         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77697         * lib/gettimeofday.c: Don't include gtod.h.
77698         (GTOD_init): Remove function.
77699         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77700         Suggestion from Volker Borchert.
77701
77702 2001-11-23  Jim Meyering  <meyering@lucent.com>
77703
77704         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77705         it.
77706         * lib/hash.c (struct hash_table): Define it here instead.
77707
77708 2001-11-22  Jim Meyering  <meyering@lucent.com>
77709
77710         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77711
77712 2001-11-20  Jim Meyering  <meyering@lucent.com>
77713
77714         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77715         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77716
77717 2001-11-19  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77720         directory.  Use "conftestXXXXXX" as the template.
77721         Suggestion from Paul Eggert.
77722
77723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77724         immediately, so the test doesn't mistakenly hit the max-open-files
77725         limit.
77726
77727 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77728
77729         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77730         (TEMPORARIES): New macro.
77731         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77732         removes an artificial limitation (e.g. HP-UX 10.20, where
77733         TMP_MAX is 17576).
77734
77735 2001-11-18  Jim Meyering  <meyering@lucent.com>
77736
77737         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77738
77739 2001-11-18  Jim Meyering  <meyering@lucent.com>
77740
77741         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77742         on SunOS 4.
77743
77744         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77745         files will be created before anything else.
77746
77747 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77748
77749         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77750         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77751
77752 2001-11-17  Jim Meyering  <meyering@lucent.com>
77753
77754         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77755         Prompted by a report from Bob Proulx.
77756
77757         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77758         Instead, require UTILS_FUNC_MKSTEMP.
77759
77760 2001-11-17  Jim Meyering  <meyering@lucent.com>
77761
77762         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77763         Now, that's done as part of AC_FUNC_STRTOD.
77764
77765 2001-11-17  Jim Meyering  <meyering@lucent.com>
77766
77767         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77768         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77769         rather than group writable.  Patch by Juan F. Codagnone.
77770
77771         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77772         xrealloc, Instead, include "xalloc.h".
77773
77774         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77775         Remove explicit declarations of xmalloc, xrealloc,
77776         and xstrdup.  Instead, include "xalloc.h".
77777
77778         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77779         unlocked-io.h.
77780         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77781         Likewise.
77782         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77783
77784         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77785         Reported by Padraig Brady.
77786
77787         * lib/mkstemp.c: #undef mkstemp.
77788         Include config.h.
77789         (rpl_mkstemp): Rename from mkstemp.
77790         Protoize.
77791
77792 2001-11-16  Jim Meyering  <meyering@lucent.com>
77793
77794         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77795         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77796         determine the amount of total physical memory, use pstat_getstatic.
77797         HPUX-11 doesn't define _SC_PHYS_PAGES.
77798         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77799         If sysconf couldn't be used to determine the amount of available
77800         physical memory, use both pstat_getstatic and pstat_getdynamic.
77801         Based on a patch from Bob Proulx.
77802
77803 2001-11-10  Jim Meyering  <meyering@lucent.com>
77804
77805         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77806         (jm_PREREQ): Use it.
77807
77808 2001-11-09  Jim Meyering  <meyering@lucent.com>
77809
77810         * m4/jm-macros.m4: Require autoconf-2.52f.
77811         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77812         Use these AC_-prefixed names, not the AM_-prefixed ones.
77813
77814         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77815
77816 2001-11-05  Jim Meyering  <meyering@lucent.com>
77817
77818         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77819
77820 2001-11-04  Jim Meyering  <meyering@lucent.com>
77821
77822         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77823         $DEFS.
77824
77825 2001-11-03  Jim Meyering  <meyering@lucent.com>
77826
77827         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77828         of AC_DEFUN.
77829
77830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77831         know the name of the variable in the macro definition.
77832
77833 2001-11-03  Jim Meyering  <meyering@lucent.com>
77834
77835         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77836         in argmatch_to_argument call.
77837
77838         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77839         argument.
77840
77841         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77842         e.g., a fault due to an attempt to free a NULL pointer.
77843
77844 2001-11-01  Jim Meyering  <meyering@lucent.com>
77845
77846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77847         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77848
77849 2001-11-01  Jim Meyering  <meyering@lucent.com>
77850
77851         * lib/dirfd.c, lib/dirfd.h: New files.
77852         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77853
77854         * lib/hash.c (hash_print) [TESTING]: Clean up.
77855
77856 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77857
77858         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77859         to avoid a warning if -Wall.
77860
77861 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77862
77863         * README: New file
77864         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77865         (per RMS's instructions, this is now the canonical source)
77866         * lgpl/, gpl/: New directories.
77867
77868 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77869
77870         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77871
77872 2001-10-21  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77875         this code would end up calling gettext even in packages built
77876         with --disable-nls.
77877         * lib/getopt.c (_): Likewise.
77878         * lib/regex.c (_): Likewise.
77879
77880 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77881
77882         * m4/error.m4 (jm_PREREQ_ERROR):
77883         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77884         AC_FUNC_STRERROR_R does that.
77885         Check for strerror declaration.
77886
77887         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77888         are supposed to have them these days.
77889         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77890         Merge changes from latest Autoconf CVS.
77891         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77892         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77893         POSIX decided to standardize on the int flavor of strerror_r.
77894
77895 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77896
77897         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77898         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77899         Use strerror_r that is only a macro, even if it is not a function.
77900         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77901         (private_strerror): Use prototypes, not old-style function definition.
77902         (print_errno_message): New function.
77903         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77904         char*-flavored one.
77905         (error_tail, error, error_at_line): Use it.
77906
77907 2001-10-11  Jim Meyering  <meyering@lucent.com>
77908
77909         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77910         and quote_n (1, ... to avoid clobbering a buffer.
77911
77912 2001-10-05  Jim Meyering  <meyering@lucent.com>
77913
77914         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77915         hash-pjw.h.
77916         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77917         * lib/hash-pjw.h: New file.
77918
77919 2001-09-30  Jim Meyering  <meyering@lucent.com>
77920
77921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77922         `struct fsstat' has the `f_fstypename' member.
77923         Use that to define FS_TYPE, which is now used to make
77924         the getfsstat link test tighter.
77925
77926 2001-09-30  Jim Meyering  <meyering@lucent.com>
77927
77928         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77929         Include <sys/ucred.h>, for Apple Darwin.
77930         Include sys/mount.h and sys/fs_types.h only if available.
77931         (FS_TYPE): Define.
77932         (read_filesystem_list): Use FS_TYPE.
77933
77934 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77935
77936         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77937         a boolean context.
77938
77939 2001-09-29  Jim Meyering  <meyering@lucent.com>
77940
77941         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77942         [one-argument getmntent function]): Include stdio.h before mntent.h.
77943         SunOS 4.1.x needs it for the declaration of `FILE'.
77944         Patch by Volker Borchert.
77945
77946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77947         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77948         sys/fs_types.h, and make the link-test for getfsstat guard #include
77949         directives with appropriate #if HAVE_*_H tests so that we can
77950         detect getfsstat on Apple Darwin1.3.7 systems.
77951         Reported by Nelson Beebe.
77952         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77953
77954 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77955
77956         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77957         #defines strtoimax.  Also treat the other strto* functions
77958         like strtoimax.
77959
77960         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77961         Check for strtoul and strtoumax,
77962         as those declarations are made even in the signed case.
77963         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77964         Likewise, for strtol and strtoimax.
77965
77966 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77967
77968         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77969         #defines strtoimax.  Also treat the other strto* functions
77970         like strtoimax.
77971
77972         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77973         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77974         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77975
77976 2001-09-26  Jim Meyering  <meyering@lucent.com>
77977
77978         Most macros in unlocked-io.h had the wrong number of arguments.
77979         * lib/gen-uio: New script.
77980         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77981         * lib/unlocked-io.hin: Remove file.
77982         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77983         rather than trying to embed it here.
77984         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77985         Reported by Padraig Brady.
77986
77987 2001-09-25  Volker Borchert  <bt@teknon.de>
77988
77989         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77990         `result'.
77991
77992 2001-09-24  Jim Meyering  <meyering@lucent.com>
77993
77994         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77995
77996 2001-09-23  Jim Meyering  <meyering@lucent.com>
77997
77998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77999         instead of the mere test for existence of mntent.h.  The latter
78000         would get a false-positive on AIX 3.4 systems.
78001         In the outer getmntent if-block, don't die if neither of the getmntent
78002         tests succeeds.  Instead, just fall through and continue with the
78003         remaining tests.
78004
78005 2001-09-23  Jim Meyering  <meyering@lucent.com>
78006
78007         * lib/mountlist.c: Remove useless parentheses in #if directives.
78008         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
78009         the deprecated MOUNTED symbol is no longer defined in mntent.h.
78010
78011 2001-09-22  Jim Meyering  <meyering@lucent.com>
78012
78013         * m4/gettext.m4: New file.  From gettext.
78014         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
78015         * m4/progtest.m4: Likewise
78016         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
78017         * m4/glibc21.m4: Likewise.
78018
78019         * m4/libintl.m4: Remove.  No longer used.
78020
78021 2001-09-22  Jim Meyering  <meyering@lucent.com>
78022
78023         * lib/localcharset.c: Update from latest gettext.
78024         * lib/config.charset: Likewise.
78025
78026 2001-09-20  Jim Meyering  <meyering@lucent.com>
78027
78028         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
78029         strtoimax.
78030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
78031         strtoumax.
78032
78033 2001-09-20  Jim Meyering  <meyering@lucent.com>
78034
78035         * lib/xstrtol.c (strtoimax): Guard declaration with
78036         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
78037         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
78038         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
78039         (strtoumax): Likewise, for completeness (it wasn't necessary).
78040
78041 2001-09-17  Paul Eggert  <eggert@twinsun.com>
78042
78043         * lib/strtoimax.c (HAVE_LONG_LONG):
78044         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
78045         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
78046         to work around bug in IBM C compiler.
78047
78048 2001-09-17  Jim Meyering  <meyering@lucent.com>
78049
78050         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
78051         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
78052         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
78053         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
78054         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
78055         whenever the right hand side need not be expanded by the shell.
78056
78057 2001-09-16  Paul Eggert  <eggert@twinsun.com>
78058
78059         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
78060         library.  It's not correct, as some older glibcs are buggy.
78061         fnmatch wasn't fixed until glibc 2.2.
78062
78063         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
78064         special shell magic here.
78065
78066 2001-09-16  Jim Meyering  <meyering@lucent.com>
78067
78068         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
78069         * m4/jm-macros.m4: Require it.
78070
78071 2001-09-16  Jim Meyering  <meyering@lucent.com>
78072
78073         * lib/mkdir.c: New file.
78074
78075 2001-09-15  Jim Meyering  <meyering@lucent.com>
78076
78077         * m4/jm-macros.m4: Check for help2man.
78078
78079 2001-09-11  Jim Meyering  <meyering@lucent.com>
78080
78081         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
78082         The body, by Paul Eggert, was moved here from configure.in.
78083         * m4/jm-macros.m4: Require UTILS_HOST_OS.
78084
78085 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78086
78087         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
78088         (jm_PREREQ): Use it.
78089
78090 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78091
78092         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
78093         Use ssize_t, not int, to store result of readlink.
78094         Check for ssize_t overflow as well as size_t overflow,
78095         as POSIX says the result of readlink is implementation-defined
78096         when ssize_t overflows.
78097         Remove unnecessary cast to char*.
78098         Use free+malloc instead of realloc, as the storage doesn't need
78099         to be preserved and it's clearer and can be more efficient that way.
78100         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
78101         * lib/xreadlink.h (xreadlink): Update prototype.
78102
78103 2001-09-04  Paul Eggert  <eggert@twinsun.com>
78104
78105         * lib/xgetcwd.c: Revert some of the previous change; intead,
78106         fix the HAVE_GETCWD_NULL code to behave more like the
78107         !HAVE_GETCWD_NULL code used to.
78108
78109         Include "xalloc.h".
78110         (xgetcwd): Do not return NULL when memory is exhausted; instead,
78111         invoke xalloc_die.
78112
78113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78114
78115         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
78116         sys/param.h, as pathmax.h includes them.
78117
78118 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78119
78120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
78121         (jm_PREREQ_XGETCWD): New macro.
78122
78123         * m4/getcwd.m4: New file.
78124
78125 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78126
78127         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
78128         like the HAVE_GETCWD_NULL code.
78129         Include pathmax.h if not HAVE_GETCWD.
78130         Do not include xalloc.h.
78131         (INITIAL_BUFFER_SIZE): New symbol.
78132         Do not use xmalloc / xrealloc, since the caller is responsible for
78133         handling errors.  Preserve errno around `free' during failure.
78134         Do not overrun buffer when using getwd.
78135
78136 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78137
78138         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
78139         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
78140         getcwd (NULL, 0).
78141
78142 2001-09-03  Paul Eggert  <eggert@twinsun.com>
78143
78144         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
78145         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
78146         spotted by Jim Meyering.
78147
78148 2001-09-03  Jim Meyering  <meyering@lucent.com>
78149
78150         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
78151         failure.
78152
78153 2001-09-02  Jim Meyering  <meyering@lucent.com>
78154
78155         * lib/error.c: Update from GNU libc.
78156
78157 2001-09-01  Jim Meyering  <meyering@lucent.com>
78158
78159         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
78160         Used by df.
78161
78162 2001-09-01  Jim Meyering  <meyering@lucent.com>
78163
78164         * lib/xreadlink.c: New file.
78165         * lib/xreadlink.h: New file.
78166         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
78167         xreadlink.h.
78168
78169         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
78170         doesn't conflict with sparc Solaris 7's definition in
78171         /usr/include/sys/int_types.h.
78172
78173         * lib/exclude.c: Use `""', not `<>' to #include non-system header
78174         files.
78175         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
78176         and strncasecmp as r-values.  Unixware didn't have declarations.
78177
78178 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78179
78180         * lib/xstrtol.h: Add copyright notice.
78181         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
78182         LONGINT_INVALID_SUFFIX_CHAR.
78183
78184 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78185
78186         * lib/xstrtol.c (strtoimax): New decl.
78187
78188 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78189
78190         * lib/xgetcwd.c: Don't include pathmax.h.
78191         Include stdlib.h and unistd.h if available.
78192         Include xalloc.h.
78193         (xmalloc, xstrdup, free): Remove decls.
78194         (xgetcwd): Don't assume sizes fit in unsigned.
78195         Check for overflow when computing sizes.
78196         Simplify reallocation code.
78197
78198 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78199
78200         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
78201         a directory's st_size can have an arbitrary value, so the old
78202         usage could waste an arbitrary amount of memory.  All uses
78203         changed.
78204         * lib/savedir.h: Update prototype.
78205
78206 2001-08-31  Paul Eggert  <eggert@twinsun.com>
78207
78208         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
78209
78210         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
78211         old strtoimax.c.
78212
78213         Also, make the following further changes to make this file's
78214         configuration more similar to that of strtol.c:
78215         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
78216         (strtoumax, uintmax_t, strtoull, strtol): Remove.
78217         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
78218         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
78219         changed to signed values.
78220
78221         And make the following changes as well:
78222         Fix copyright notice, as 1999 was missing.
78223         (verify): New macro.
78224         (strtoimax): Check sizes at compile-time, not run-time.
78225         Prefer strtol to strtoll if both work.
78226         (main): Remove; it was not that useful and was a pain to maintain.
78227
78228         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
78229
78230 2001-08-31  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
78233         Use an initial, malloc'd, buffer of length 128 rather than
78234         a statically allocated one of length 1024.
78235
78236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78237
78238         Simplify code, partly by assuming autoconf 2.52 semantics.
78239
78240         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
78241
78242         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
78243         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
78244         All uses removed.
78245         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
78246         Move AC_REQUIRE to next-to-top level, to avoid confusion.
78247         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
78248         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
78249         jm_AC_HEADER_INTTYPES_H.
78250         * m4/jm-macros.m4 (jm_MACROS): Likewise.
78251
78252         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
78253
78254         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78255         Quote first arg of AC_DEFUN.
78256         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
78257         since they are needed to parse the include file even if we need
78258         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
78259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
78260         but with opposite signedness.
78261
78262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78263
78264         Merge 'exclude' changes from tar 1.13.22.
78265         This fixes one or two unlikely storage allocation overflow bugs,
78266         but doesn't change user-visible behavior otherwise.
78267
78268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78269
78270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
78271         (jm_PREREQ_EXCLUDE): New macro.
78272
78273 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78274
78275         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
78276         tm to be declared.
78277
78278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78279
78280         * lib/hash.c: Remove '2001' from copyright notice.
78281
78282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78283
78284         * lib/full-write.h: New file.
78285         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
78286         * lib/full-write.c: Correct credits, as cccp.c no longer
78287         exists and anyway it was so heavily changed from the old cccp
78288         code as to be unrecognizable.  Include full-write.h.
78289         (full_write): Return size_t, with short writes meaning failure.
78290         All callers changed.  This fixes a bug with large buffers
78291         on 64-bit hosts.
78292         * lib/utime.c: Include full-write.h.
78293
78294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78295
78296         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
78297         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
78298         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
78299         Include if available.
78300         (<xalloc.h>): Include
78301         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
78302         (verify): New macro.  Use it to verify that EXCLUDE macros do not
78303         collide with FNM macros.
78304         (struct patopts): New struct.
78305         (struct exclude): Use it, as exclude patterns now come with options.
78306         (new_exclude): Support above changes.
78307         (new_exclude, add_exclude_file):
78308         Initial size must now be a power of two to simplify overflow checking.
78309         (free_exclude, fnmatch_no_wildcards): New function.
78310         (excluded_filename): No longer requires options arg, as the options
78311         are determined by add_exclude.  Now returns bool, not int.
78312         (excluded_filename, add_exclude):
78313         Add support for the fancy new exclusion options.
78314         (add_exclude, add_exclude_file): Now takes int options arg.
78315         Check for arithmetic overflow when computing sizes.
78316         (add_exclude_file): xrealloc might modify errno, so don't
78317         realloc until after errno might be used.
78318
78319         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
78320         New macros.
78321         (free_exclude): New decl.
78322         (add_exclude, add_exclude_file): Now takes int options arg.
78323         (excluded_filename): No longer requires options arg, as the options
78324         are determined by add_exclude.  Now returns bool, not int.
78325
78326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
78327
78328         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
78329
78330 2001-08-27  Jim Meyering  <meyering@lucent.com>
78331
78332         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78333
78334         * lib/version-etc.c (N_): Remove definition.
78335         Revert most of last change.
78336         Instead, simply don't mark the `Copyright...' string for translation.
78337         Based on advice from Paul Eggert.
78338
78339         * lib/strtoxmax.c: Tweak comment.
78340
78341 2001-08-26  Jim Meyering  <meyering@lucent.com>
78342
78343         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78344
78345         * m4/xstrtoimax.m4: New file.
78346         * m4/xstrtoumax.m4: Add comments explaining why we
78347         AC_REPLACE_FUNCS(strtol).
78348
78349 2001-08-26  Jim Meyering  <meyering@lucent.com>
78350
78351         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78352         of copyright with `%s' so translators don't get an untranslated
78353         message in 2002.
78354         (COPYRIGHT_YEAR): Define.
78355         (version_etc): Use fprintf rather than fputs.
78356         Suggestion from Ulrich Drepper.
78357
78358         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78359
78360         * lib/strtoll.c: New file, from GNU libc.
78361         * lib/xstrtoimax.c: New file.
78362
78363         * lib/xstrtol.h: Add xstrtoimax.
78364         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78365         * lib/strtoimax.c: New file.  Likewise, but first define
78366         STRTOUXMAX_SIGNED.
78367
78368         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78369         ...
78370         * lib/strtoxmax.c: ... then renamed to this.
78371
78372 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78373
78374         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78375         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78376         (jm_AC_TYPE_INTMAX_T): New macro.
78377         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78378
78379         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78380
78381         * m4/longlong.m4: Renamed from ulonglong.m4.
78382         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78383         * m4/uintmax_t.m4: Removed.
78384
78385 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78386
78387         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78388         Port to Solaris 8, where 'sed' requires a space after the 'r'
78389         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78390         Redirect output to $tmp just once.
78391
78392 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78393
78394         * lib/addext.c (<errno.h>): Include.
78395         (errno): Declare if not defined.
78396         (addext): Work correctly when pathconf returns -1 and leaves
78397         errno alone because there is no limit.  Also, work even if
78398         pathconf returns a value greater than SIZE_MAX.
78399
78400 2001-08-12  Jim Meyering  <meyering@lucent.com>
78401
78402         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78403         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78404         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78405         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78406         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78407         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78408         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78409         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78410         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78411         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78412         utime.m4, utimes.m4, xstrtoumax.m4:
78413         Quote the first argument in each use of AC_DEFUN.
78414
78415 2001-08-12  Jim Meyering  <meyering@lucent.com>
78416
78417         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78418         Simply `return getcwd (NULL, 0);'.
78419         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78420         Use 1300 as initial value for length, not PATH_MAX.
78421
78422         * lib/pathmax.h: Clean up cpp syntax.
78423
78424 2001-08-12  Jim Meyering  <meyering@lucent.com>
78425
78426         * lib/gettimeofday.c: New file.
78427         * lib/gtod.h: New file.
78428         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78429
78430 2001-08-05  Jim Meyering  <meyering@lucent.com>
78431
78432         * m4/jm-macros.m4: Require autoconf-2.52.
78433
78434 2001-08-04  Jim Meyering  <meyering@lucent.com>
78435
78436         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78437         stmt, to get in sync with glibc.
78438
78439 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78440
78441         The following changes are from gettext 0.10.39 as maintained by
78442         Bruno Haible.
78443
78444         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78445         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78446         with inverted sense.  All uses changed.
78447
78448         * lib/mbswidth.c: Don't include <limits.h>.
78449         Include <stdlib.h> and <string.h> unconditionally.
78450         (iswcntrl, mbsinit, ISCNTRL): New macros.
78451         (mbsnwidth): Use K&R style function declarations.
78452         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78453         can optimize it when MB_CUR_MAX == 1.
78454         The width of control characters is zero, not 1.
78455
78456 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78457
78458         The following changes are from gettext 0.10.39 as maintained by
78459         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78460
78461         * m4/codeset.m4: Upgrade to serial AM1.
78462         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78463         all uses changed.  Quote first arg of AC_DEFUN.
78464         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78465
78466         * m4/iconv.m4: Upgrade to serial AM2.
78467         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78468         Add --with-libconv-prefix.
78469         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78470         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78471         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78472         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78473         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78474
78475         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78476         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78477         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78478         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78479         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78480         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78481         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78482         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78484
78485         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78486         string.h any more.
78487
78488         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78489         not the default value.
78490
78491         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78493         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78494         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78495         Also check for iswcntrl, used for wcwidth fallback.
78496         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78497         to Autoconf 2.13.
78498
78499 2001-08-03  Jim Meyering  <meyering@lucent.com>
78500
78501         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78502         as it was in the original.  Reported by Paul Eggert.
78503
78504 2001-07-16  Jim Meyering  <meyering@lucent.com>
78505
78506         * m4/gettimeofday.m4: New file.
78507         Prompted by a report from Bernhard Baehr.
78508
78509 2001-07-15  Jim Meyering  <meyering@lucent.com>
78510
78511         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78512         stuff. Now it's in ../Makefile.cfg.
78513
78514 2001-07-15  Jim Meyering  <meyering@lucent.com>
78515
78516         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78517         (BUILT_SOURCES): Add unlocked-io.h.
78518         (io_functions): Define.
78519         (unlocked-io.h): New rule.
78520         (DISTCLEANFILES): Add unlocked-io.h.
78521         (all-local): Depend on unlocked-io.h, to ensure it is created.
78522
78523         * lib/unlocked-io.hin: New file
78524
78525         * lib/regex.c: Update from glibc.
78526
78527 2001-07-05  Jim Meyering  <meyering@lucent.com>
78528
78529         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78530         recommendation.
78531         (libfetish_a_SOURCES): Put all .h files here instead.
78532         Remove a thus-exposed (better checks in automake) duplicate and
78533         two unnecessary .h files.
78534
78535 2001-07-04  Jim Meyering  <meyering@lucent.com>
78536
78537         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78538         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78539         distcheck failure.
78540
78541 2001-07-02  Jim Meyering  <meyering@lucent.com>
78542
78543         The following changes were prompted by suggestions from Bruno Haible.
78544
78545         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78546         is now generated.
78547         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78548         definition of EXTRA_DIST.
78549         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78550         ensure that the generated file is created/updated whenever the list
78551         of $(unlocked_functions) is changed.
78552         (jm-glibc-io.m4): New rule.
78553         (unlocked-io.h): New rule -- currently unused.
78554
78555 2001-06-24  Jim Meyering  <meyering@lucent.com>
78556
78557         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78558         unmatched right bracket, rather than kludging it with an extra,
78559         falsely-matching quote in a comment.  Patch by Akim Demaille.
78560
78561 2001-06-11  Jim Meyering  <meyering@lucent.com>
78562
78563         * lib/regex.c: Update from GNU libc.
78564
78565 2001-05-27  Jim Meyering  <meyering@lucent.com>
78566
78567         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78568         Check for ut_type in struct utmp.
78569
78570 2001-05-27  Jim Meyering  <meyering@lucent.com>
78571
78572         * lib/readutmp.h (UT_TYPE): Define.
78573
78574 2001-05-24  Jim Meyering  <meyering@lucent.com>
78575
78576         * lib/argmatch.c: Include "quote.h".
78577         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78578         quote function.  Reported by Göran Uddeborg.
78579
78580 2001-05-22  Jim Meyering  <meyering@lucent.com>
78581
78582         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78583         now that we use the package-supplied version unconditionally.
78584         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78585
78586 2001-05-21  Jim Meyering  <meyering@lucent.com>
78587
78588         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78589         shell syntax errors.
78590
78591 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78592
78593         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78594
78595 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78596
78597         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78598         Don't bother to check library strftime, since
78599         we'll be using our own my_strftime function anyway.
78600         Define my_strftime instead of strftime.
78601
78602 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78603
78604         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78605         which is not yet declared.
78606
78607 2001-05-15  Jim Meyering  <meyering@lucent.com>
78608
78609         * m4/regex.m4: Use proper quoting so brackets appear in the test
78610         program.
78611         Reported by, and with help from, Bruno Haible.
78612
78613 2001-05-13  Jim Meyering  <meyering@lucent.com>
78614
78615         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78616         undefined.
78617
78618 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78619
78620         dirname code cleanup.  base_name now behaves more compatibly
78621         with POSIX basename when given file names that have trailing
78622         slashes, and similarly for dir_name.  Add new primitives
78623         base_len and dir_len.  Put the directory-name-related decls
78624         into dirname.h.
78625
78626         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78627         * lib/backupfile.c (base_name): Likewise.
78628         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78629         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78630         * lib/makepath.c (strip_trailing_slashes): Likewise.
78631         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78632         ISSLASH): Likewise.
78633         * lib/rename.c (strip_trailing_slashes): Likewise.
78634         * lib/same.c (base_name): Likewise.
78635         * lib/stripslash.c (ISSLASH): Likewise.
78636
78637         * lib/addext.c: Include <dirname.h> after size_t is defined.
78638         * lib/backupfile.c: Likewise.
78639
78640         * lib/addext.c (addext): Use base_len to trim redundant
78641         trailing slashes instead of doing it ourselves.
78642         But do not trim the last slash if it is not redundant.
78643
78644         * lib/backupfile.c (find_backup_file_name,
78645         max_backup_version): Use base_len instead of rolling it ourselves.
78646         Handle the case of "" and (on DOS) "C:" correctly.
78647
78648         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78649         needed. Include <string.h>, <dirname.h>.
78650         (base_name): Allow file names ending in slashes, other than names
78651         that are all slashes.  In this case, return the basename followed
78652         by the slashes.  This is more general, and can be used in places
78653         where the original base_name purposely had an assertion failure.
78654         (base_len): New function.
78655
78656         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78657         Do not include <assert.h>; no longer needed.
78658         Include xalloc.h.
78659         (memrchr): Remove decl.
78660         (dir_name_r): Remove.
78661         (dir_len): Renamed from dirlen.  All callers changed.
78662         Rewrite in terms of base_name, for simplicity and consistency.
78663         (dir_name): Never return NULL.  All callers changed.
78664         Do not include <stdlib.h> in test program; no longer needed.
78665         return 0; is fine for test program.
78666
78667         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78668         New macros.
78669         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78670
78671         * lib/path-concat.c (path_concat): Use base_len to compute
78672         base length, not strlen; this means we cannot rely on memcpy
78673         to null-terminate.
78674
78675         * lib/same.c (STREQ): Remove.
78676         (same_name): Handle the case where the basename ends in trailing '/'.
78677
78678         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78679         a slash was stripped.  Do not strip the last slash after a
78680         file system prefix.
78681
78682 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78683
78684         * lib/Makefile.am (libfetish_a_SOURCES):
78685         Add strftime.c, since we now compile it on all hosts.
78686
78687         * lib/strftime.c (my_strftime):
78688         Define to nstrftime if emacs, but only if my_strftime is not defined.
78689         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78690         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78691         Add one more extra argument: a nanoseconds value.
78692         All uses changed.
78693         (ns): New macro.
78694         (my_strftime function): Add %N format.
78695         (emacs_strftimeu): Renamed from emacs_strftime,
78696         with extra ut argument.
78697
78698 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78699
78700         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78701
78702 2001-04-21  Jim Meyering  <meyering@lucent.com>
78703
78704         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78705         doesn't interfere.
78706
78707 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78708
78709         * m4/ftruncate.m4: Check for chsize.
78710         Link with ftruncate.o unconditionally if ftruncate is missing.
78711         This was required when cross-compiling to i586-mingw32msvc.
78712
78713 2001-04-08  Jim Meyering  <meyering@lucent.com>
78714
78715         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78716         recomputed; that's necessary when the offset spans a DST transition.
78717         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78718
78719 2001-04-02  Jim Meyering  <meyering@lucent.com>
78720
78721         * lib/regex.h, regex.c: Update from GNU libc.
78722
78723 2001-03-24  Jim Meyering  <meyering@lucent.com>
78724
78725         * m4/jm-macros.m4: Require autoconf-2.49d.
78726
78727 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78728
78729         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78730
78731 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78732
78733         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78734
78735 2001-03-17  Jim Meyering  <meyering@lucent.com>
78736
78737         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78738         now that the version in autoconf is equivalent.
78739         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78740
78741         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78742         Suggestion from Akim Demaille.
78743
78744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78745         (jm_PREREQ_TEMPNAME): New function.
78746
78747 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78748
78749         * lib/tempname.c (uint64_t): Define to uintmax_t if
78750         not defined, and if UINT64_MAX is not defined.
78751         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78752         Reported by John David Anglin.
78753
78754 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78755
78756         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78757         resolve alias if codeset is empty.
78758         * lib/config.charset (BeOS): Use wildcard syntax.
78759
78760 2001-03-13  Jim Meyering  <meyering@lucent.com>
78761
78762         * lib/path-concat.c (path_concat)
78763         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78764         concatenating e.g., `C:' and `foo'.
78765         From Bruno Haible.
78766
78767 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78768
78769         * lib/localcharset.c (locale_charset): Don't use
78770         setlocale(LC_CTYPE,NULL). Don't return NULL.
78771         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78772
78773 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78774
78775         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78776         support for DOS/DJGPP.
78777
78778 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78779
78780         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78781         lacks mkstemp.  Compile our own tempname.c if we compile our own
78782         mkstemp.c, as mkstemp relies on tempname.
78783
78784 2001-03-01  Jim Meyering  <meyering@lucent.com>
78785
78786         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78787         AH_VERBATIM really does output its argument verbatim.
78788
78789 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78790
78791         * lib/Makefile.am (libfetish_a_SOURCES):
78792         Add dup-safer.c, fopen-safer.c.
78793         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78794
78795         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78796         * lib/unistd-safer.h: New files.
78797
78798 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78799
78800         The mkstemp replacement is taken from glibc 2.2.2, with some
78801         portability fixes for use outside glibc, as follows:
78802
78803         * lib/tempname.c (struct_stat64): New macro.
78804         (direxists, __gen_tempname): Use it.
78805         This avoids a portability problem with Solaris 8.
78806
78807         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78808         (<stddef.h>, <stdint.h>, <string.h>):
78809         Include only if STDC_HEADERS || _LIBC.
78810         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78811         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78812         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78813         (__set_errno): Define this macro if <errno.h> doesn't.
78814         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78815         Define these macros if <stdio.h> doesn't.
78816         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78817         Define these macros if <sys/stat.h>
78818         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78819         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78820         __xstat64): Define if not _LIBC.
78821         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78822         (__gen_tempname): Invoke gettimeofday only if
78823         HAVE_GETTIMEOFDAY || _LIBC;
78824         otherwise, fall back on plain "time".
78825         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78826
78827         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78828
78829         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78830
78831 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78832
78833         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78834
78835 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78836
78837         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78838         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78839         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78841
78842 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78843
78844         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78845         Remove workaround macros for hosts that have mbrtowc but not
78846         mbstate_t, as we now insist on proper declarations for both
78847         before using mbrtowc.
78848
78849 2001-02-17  Jim Meyering  <meyering@lucent.com>
78850
78851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78852         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78853         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78854         UnixWare 7.1.1.
78855
78856         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78857         rather than AC_CACHE_VAL.
78858
78859 2001-02-17  Jim Meyering  <meyering@lucent.com>
78860
78861         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78862         around included file name.
78863
78864         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78865
78866         * lib/strftime.c: Update from GNU libc (the only changes were to
78867         comments).
78868
78869 2001-02-17  Jim Meyering  <meyering@lucent.com>
78870
78871         * lib/regex.c: Update from libc.
78872
78873 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78874
78875         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78876         clash.
78877
78878 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78879
78880         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78881         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78882         Reported by Mark Hounschell via Paul Eggert.
78883
78884 2001-02-07  Jim Meyering  <meyering@lucent.com>
78885
78886         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78887
78888 2001-02-05  Jim Meyering  <meyering@lucent.com>
78889
78890         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78891         it includes the patch required for `large file' support with at least
78892         HP-UX's 10.20 /bin/cc.
78893
78894 2001-02-03  Jim Meyering  <meyering@lucent.com>
78895
78896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78897         AS_IF, now that it works once again (mysteriously).
78898         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78899
78900 2001-01-30  Jim Meyering  <meyering@lucent.com>
78901
78902         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78903         * m4/chown.m4: Rename conftestchown to conftest.chown.
78904         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78905         s/conftestdir2/conftest.d2/.
78906         * m4/utimes.m4: s/conftestdata/conftest.data/
78907         Inspired by Pavel Roskin's change in autoconf.
78908
78909 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78910
78911         * lib/config.charset: Update for FreeBSD 4.2.
78912
78913 2001-01-27  Jim Meyering  <meyering@lucent.com>
78914
78915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78916         a use of AS_IF.
78917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78918
78919 2001-01-26  Jim Meyering  <meyering@lucent.com>
78920
78921         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78922         quotearg.c includes it.
78923
78924 2001-01-26  Jim Meyering  <meyering@lucent.com>
78925
78926         * lib/quotearg.c: Include stddef.h.
78927         * lib/quote.c: Include stddef.h.
78928         Reported by Axel Kittenberger.
78929
78930         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78931         line in double quotes so that it evokes a better diagnostic.
78932         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78933         Reported by Axel Kittenberger.
78934
78935 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78936
78937         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78938         as if it was a `charset'.
78939
78940 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78941
78942         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78943         has const.
78944
78945 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78946
78947         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78948         to avoid a warning.  Add back 'const' to inptr.
78949
78950 2001-01-20  Jim Meyering  <meyering@lucent.com>
78951
78952         Be sure that headers are checked before used in code compiled
78953         for the type checks.
78954         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78955         In place of that, invoke jm_CHECK_ALL_TYPES.
78956         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78957         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78958         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78959         The check for ssize_t was mistakenly run before the test for unistd.h.
78960
78961         The configure-time check for stdbool.h was missing.
78962         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78963         (jm_PREREQ_HASH): New function.
78964
78965 2001-01-17  Jim Meyering  <meyering@lucent.com>
78966
78967         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78968         for autoconf-2.49c.
78969         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78970
78971 2001-01-16  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78974         From Bruno Haible.
78975
78976 2001-01-14  Jim Meyering  <meyering@lucent.com>
78977
78978         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78979         foo and bar.  Create conftestdir/ in the script, not in the C code.
78980         Remove directories in the script, not in the C code.
78981         Remove conftestdir{,2} before trying to create the directory.
78982         Make the entire configure script fail if the mkdir fails.
78983
78984 2001-01-14  Jim Meyering  <meyering@lucent.com>
78985
78986         * lib/rename.c: New file.  From Volker Borchert.
78987         Include stdlib.h, string.h or strings.h, and xalloc.h.
78988         Use strip_trailing_slashes rather than open-coding it.
78989
78990 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78991
78992         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78993
78994 2001-01-03  Jim Meyering  <meyering@lucent.com>
78995
78996         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78997         of local `inptr' to avoid warning with some system declarations of
78998         iconv.
78999
79000 2001-01-02  Volker Borchert  <bt@teknon.de>
79001
79002         * m4/rename.m4: New file.
79003         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
79004
79005 2001-01-01  Jim Meyering  <meyering@lucent.com>
79006
79007         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
79008         even on systems with utmpx.h.  It's necessary for the declaration of
79009         utmp's ut_user member.  Reported by Andreas Jaeger.
79010
79011         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
79012         available. They are required for the declarations of getgrgid and
79013         getpwuid resp.
79014         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
79015         Reported by Andreas Jaeger.
79016
79017 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
79018
79019         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
79020         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
79021         so `make install' also works in VPATH builds.
79022
79023 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
79024
79025         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
79026         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
79027         can be used in subdirectories.
79028
79029 2000-12-29  Paul Eggert  <eggert@twinsun.com>
79030
79031         * lib/modechange.c: Do not assume that mode_t uses the
79032         traditional octal encoding.  E.g. "chmod 1 FOO" should set
79033         the other-execute bit of FOO even if S_IXOTH != 1.
79034
79035         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
79036         WOTH, XOTH, ALLM): New macros.
79037         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
79038          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
79039         Use them.
79040         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
79041         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
79042         (mode_compile):
79043         No need to use uintmax_t; unsigned long is long enough.
79044         Don't bother to get suffix since we don't use it.
79045
79046 2000-12-26  Jim Meyering  <meyering@lucent.com>
79047
79048         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
79049         better with autoheader.
79050
79051 2000-12-24  Jim Meyering  <meyering@lucent.com>
79052
79053         * lib/hash.c (is_prime): Return explicit boolean values.
79054         (hash_get_first): Return NULL to appease Irix5.6's 89.
79055         Reported by Nelson Beebe.
79056
79057 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
79058
79059         * lib/localcharset.c (locale_charset): Add support for Win32.
79060
79061 2000-12-18  Paul Eggert  <eggert@twinsun.com>
79062
79063         * lib/physmem.h, lib/physmem.c: New files.
79064
79065         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
79066         (noinst_HEADERS): Add physmem.h.
79067
79068         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
79069         't' for compatibility with Solaris 8 sort.
79070
79071 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
79072
79073         * lib/config.charset: Add support for BeOS.
79074
79075 2000-12-17  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/dos.m4 (jm_AC_DOS): New file and macro.
79078         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
79079
79080 2000-12-16  Jim Meyering  <meyering@lucent.com>
79081
79082         This bug had a serious impact on chown: `chown N:M FILE' (for integer
79083         N and M) would have treated it like `chown N:N FILE'.
79084
79085         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
79086
79087 2000-12-16  Jim Meyering  <meyering@lucent.com>
79088
79089         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
79090         SHELLS_FILE to a file name that's useful on djgpp systems.
79091         Include stdlib.h.
79092         (ADDITIONAL_DEFAULT_SHELLS): Define.
79093         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
79094         Based mostly on a patch from Prashant TR.
79095
79096 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
79097
79098         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
79099         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
79100         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
79101
79102 2000-12-08  Andreas Schwab  <schwab@suse.de>
79103
79104         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
79105         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
79106
79107 2000-12-07  Jim Meyering  <meyering@lucent.com>
79108
79109         * lib/stripslash.c (ISSLASH): Define.
79110         (strip_trailing_slashes): Use ISSLASH rather than comparing against
79111         `/'.
79112         From Prashant TR.
79113
79114         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
79115         (dir_name_r): Declare this function as static.
79116         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
79117         manifest itself on a name containing a mix of slashes and
79118         backslashes.
79119         Make this function work with names starting with a DOS-style
79120         drive letter and colon prefix.
79121         (dir_name): Append `.' if necessary.
79122         Based mostly on patches from Prashant TR and Eli Zaretskii.
79123
79124         * lib/dirname.h (dir_name_r): Remove prototype.
79125
79126 2000-12-06  Paul Eggert  <eggert@twinsun.com>
79127
79128         * m4/off_t-format.m4: Remove this file.
79129         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
79130
79131 2000-12-06  Jim Meyering  <meyering@lucent.com>
79132
79133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
79134         replacement strtoull, we may well need the replacement strtoul, too.
79135         Check for declarations of strtoul and strtoull.
79136         Check for strtol.  Mainly as a cue to cause automake to include
79137         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
79138         Check for limits.h -- strtol.c needs it.
79139
79140 2000-12-05  Jim Meyering  <meyering@lucent.com>
79141
79142         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
79143
79144 2000-12-04  Jim Meyering  <meyering@lucent.com>
79145
79146         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
79147         Also include memory.h, stdlib.h, unistd.h if appropriate.
79148         Reported by Andreas Jaeger (conflicting declaration of malloc).
79149
79150 2000-12-02  Jim Meyering  <meyering@lucent.com>
79151
79152         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
79153         * m4/jm-macros.m4 (jm_MACROS): require it.
79154
79155 2000-12-02  Jim Meyering  <meyering@lucent.com>
79156
79157         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
79158
79159 2000-12-01  Paul Eggert  <eggert@twinsun.com>
79160
79161         * lib/memrchr.c: Include <config.h> before any system include file.
79162
79163 2000-11-30  Jim Meyering  <meyering@lucent.com>
79164
79165         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
79166
79167 2000-11-30  Jim Meyering  <meyering@lucent.com>
79168
79169         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
79170
79171 2000-11-29  Paul Eggert  <eggert@twinsun.com>
79172
79173         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
79174
79175 2000-11-26  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
79178
79179 2000-11-22  Paul Eggert  <eggert@twinsun.com>
79180
79181         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
79182         size of (size_t) -1; it's not portable.
79183
79184 2000-11-17  Jim Meyering  <meyering@lucent.com>
79185
79186         * lib/strstr.c: Update from GNU libc.
79187
79188 2000-11-17  Akim Demaille  <akim@epita.fr>
79189
79190         * lib/obstack.h: Formatting changes.
79191         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
79192         prevent type checking.
79193         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
79194         cast the value to (void *): assigning a `foo *' to a `void *'
79195         variable is valid.
79196         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
79197
79198 2000-11-16  Jim Meyering  <meyering@lucent.com>
79199
79200         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
79201
79202 2000-11-11  Jim Meyering  <meyering@lucent.com>
79203
79204         * lib/error.c: Add a couple #includes, merging from GNU libc version.
79205
79206 2000-11-10  Jim Meyering  <meyering@lucent.com>
79207
79208         * lib/obstack.h: Update from GNU libc.
79209         * lib/obstack.c: Likewise.
79210
79211 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
79212
79213         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
79214
79215 2000-11-06  Paul Eggert  <eggert@twinsun.com>
79216
79217         * lib/getusershell.c (setusershell): Use rewind rather than
79218         fseek/fseeko, to avoid configuration hassles with fseeko.
79219         Don't bother opening SHELLS_FILE if shellstream is NULL;
79220         it's not necessary.
79221
79222 2000-11-05  Jim Meyering  <meyering@lucent.com>
79223
79224         * lib/makepath.h (make_dir): Declare.
79225         * lib/makepath.c (make_dir): Remove `static' attribute.
79226         Tweak a comment.
79227
79228 2000-11-04  Jim Meyering  <meyering@lucent.com>
79229
79230         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
79231
79232 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
79233
79234         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
79235         last one in a bucket, advance to the next bucket.
79236
79237 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
79238
79239         * lib/fnmatch.c: Do not comment out all the code if we are using
79240         the GNU C library, because in some cases we are replacing buggy
79241         code in the GNU C library itself.
79242
79243 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
79244
79245         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
79246         (regex_compile): Catch bogus \(\1\).
79247
79248 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79249
79250         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
79251         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
79252         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
79253
79254 2000-10-30  Paul Eggert  <eggert@twinsun.com>
79255
79256         * lib/error.h, getline.h, modechange.h:
79257         Remove "2000" from Copyright line, as the file hasn't been
79258         changed this year other than in the copyright notice.
79259
79260         * lib/xalloc.h: Add "2000" to Copyright line, as this file
79261         was changed this year.
79262
79263 2000-10-29  Jim Meyering  <meyering@lucent.com>
79264
79265         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
79266         renaming.
79267         * m4/ls-mntd-fs.m4: Likewise
79268
79269 2000-10-29  Jim Meyering  <meyering@lucent.com>
79270
79271         * lib/xstat.in: Fix grammar in comment.
79272
79273 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
79274
79275         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
79276         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
79277         doesn't define __restrict_arr.
79278
79279 2000-10-28  Jim Meyering  <meyering@lucent.com>
79280
79281         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
79282         (jm_PREREQ_MEMCHR): New function.
79283
79284 2000-10-28  Jim Meyering  <meyering@lucent.com>
79285
79286         * lib/memchr.c: Update from libc.
79287         Adjust for portability:
79288         [HAVE_STDLIB_H]: Include stdlib.h.
79289         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
79290         Undef __memchr, too.
79291         [!weak_alias]: Define __memchr to memchr.
79292
79293         * lib/regex.c: Update from libc.
79294         * lib/regex.h: Likewise.
79295         * lib/getopt1.c: Likewise.
79296         * lib/memcmp.c: Likewise.
79297
79298         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
79299         Avoid using fseek, when possible -- it's broken by design.
79300         Patch by Ulrich Drepper.
79301
79302 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
79303
79304         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
79305         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
79306         Giving in to popular pressure to shut up the compiler with casts.
79307
79308 2000-10-26  Jim Meyering  <meyering@lucent.com>
79309
79310         * lib/strftime.c: Update from libc.
79311
79312 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
79313
79314         * regex.c: More `unsigned char' -> `re_char' changes.
79315         Also change several `int' into `re_wchar_t'.
79316         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
79317         (PUSH_FAILURE_POINTER): Don't cast any more.
79318         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
79319         We want GCC to complain, since this piece of code makes
79320         re_match non-reentrant, which *should* be fixed.
79321         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
79322         (EXTEND_BUFFER): Use RETALLOC.
79323         (SET_LIST_BIT): Don't cast.
79324         (re_wchar_t): New type.
79325         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
79326         that those two functions will always properly return.
79327         (IMMEDIATE_QUIT_CHECK): Cast to void.
79328         (analyse_first): Use recursion rather than an explicit stack.
79329         (re_compile_fastmap): Can't fail anymore.
79330         (re_search_2): Don't check re_compile_fastmap for failure.
79331         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79332         Now also sets the new value (passed in a new argument).
79333         (re_match_2_internal): Use it.
79334         Also, use a new var `reg' of type size_t when looping through regs
79335         rather than reuse the inappropriate `mcnt'.
79336
79337 2000-10-25  Jim Meyering  <meyering@lucent.com>
79338
79339         * lib/obstack.c: Update from libc.
79340
79341 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79342
79343         * regex.c (regex_compile): Change the way of handling a range from
79344         a char less than 256 to a char not less than 256.
79345
79346 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79347
79348         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79349         NT-Emacs only.
79350         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79351         so that re_search functions only quit when callers expect them to.
79352
79353 2000-10-23  Jim Meyering  <meyering@lucent.com>
79354
79355         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79356         wrong.  That set_locale call must not have any side effects.
79357         From Paul Eggert.
79358
79359 2000-10-22  Jim Meyering  <meyering@lucent.com>
79360
79361         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79362         [CYCLIC]: Remove now-unused definition.
79363
79364         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79365         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79366         Suggestion from Ulrich Drepper.
79367
79368 2000-10-21  Jim Meyering  <meyering@lucent.com>
79369
79370         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79371         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79373
79374 2000-10-21  Jim Meyering  <meyering@lucent.com>
79375
79376         * lib/dirname.c (memrchr): Declare if necessary.
79377         (dir_name): Remove the restriction that there be no
79378         trailing slashes.  Now, this code skips past them, effectively
79379         ignoring them.
79380         [TEST_DIRNAME] (main): New unit tests.
79381
79382         * lib/memrchr.c: New file from GNU libc.
79383         Undef __memrchr, too.
79384         [!weak_alias]: Define __memrchr to memrchr.
79385         Guard weak_alias use with `#ifdef weak_alias'.
79386
79387 2000-10-21  Jim Meyering  <meyering@lucent.com>
79388
79389         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79390         (dir_name): Use dir_name_r.
79391         * lib/dirname.h (dir_name_r): Declare it.
79392
79393 2000-10-17  Jim Meyering  <meyering@lucent.com>
79394
79395         * lib/quote.h (PARAMS): Define and use.
79396         Reported by Akim Demaille.
79397
79398         * lib/getopt.c: Update from libc.
79399
79400 2000-10-16  Jim Meyering  <meyering@lucent.com>
79401
79402         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79403         setlocale.
79404         From Jan Fedak.
79405
79406 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79407
79408         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79409
79410 2000-09-25  Jim Meyering  <meyering@lucent.com>
79411
79412         * lib/md5.h (rol): Define (from GnuPG).
79413
79414         * lib/sha.c: Give credit (GnuPG) where due.
79415         (M): Use rol rather than open-coding it.
79416         Add a FIXME comment.
79417
79418 2000-09-21  Jim Meyering  <meyering@lucent.com>
79419
79420         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79421         Reported by Michael Stone.
79422
79423 2000-09-20  Jim Meyering  <meyering@lucent.com>
79424
79425         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79426         (noinst_HEADERS): Add sha.h.
79427         Based on code from Scott G. Miller and from GnuPG.
79428
79429 2000-09-18  Jim Meyering  <meyering@lucent.com>
79430
79431         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79432         LIBS. Otherwise, everyone ends up linking with -lelf for some
79433         configurations.
79434         Reported by Mike Stone.
79435
79436 2000-09-15  Jim Meyering  <meyering@lucent.com>
79437
79438         * lib/regex.c: Update from libc.
79439
79440 2000-09-10  Jim Meyering  <meyering@lucent.com>
79441
79442         * lib/getopt.c (_getopt_internal): Update from glibc.
79443
79444 2000-09-09  Jim Meyering  <meyering@lucent.com>
79445
79446         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79447         think it should be used as a general replacement for isascii.
79448         * lib/fnmatch.c: Likewise.
79449         * lib/mbswidth.c: Likewise
79450         * lib/regex.c: Likewise.
79451
79452         Don't use atoi.
79453         * lib/userspec.c: Include sys/param.h and limits.h.
79454         Include xstrtol.h.
79455         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79456         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79457         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79458         UID, GID.  Check range.
79459
79460 2000-09-06  Jim Meyering  <meyering@lucent.com>
79461
79462         * lib/getopt.c (_getopt_internal): Update from glibc.
79463
79464 2000-08-30  Jim Meyering  <meyering@lucent.com>
79465
79466         * lib/strftime.c: Merge in changes from GNU libc.
79467
79468 2000-08-26  Jim Meyering  <meyering@lucent.com>
79469
79470         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79471         * m4/fpending.m4: New file.
79472
79473 2000-08-26  Jim Meyering  <meyering@lucent.com>
79474
79475         * lib/closeout.c: Include "__fpending.h".
79476         (close_stdout_status): Return right away if there's nothing to flush.
79477
79478         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79479         * lib/__fpending.c: New file.
79480         * lib/__fpending.h: New file.
79481
79482 2000-08-20  Jim Meyering  <meyering@lucent.com>
79483
79484         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79485         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79486         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79487
79488 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79489
79490         Improve fileutils installation on systems where running
79491         programs (like install) can't be unlinked.
79492         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79493         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79494
79495 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79496
79497         Standardize on "memory exhausted" instead of "Memory exhausted"
79498         or "virtual memory exhausted".
79499         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79500         "virtual memory exhausted".
79501         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79502         our own message.
79503         * lib/userspec.c (parse_user_spec): Likewise.
79504         * lib/bumpalloc.h: comment fix
79505         * lib/same.c, userspec.c: Include xalloc.h.
79506
79507         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79508         not char *const and pointing to a constant array.
79509         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79510         (xrealloc): Comment fix.
79511
79512         * lib/userspec.c (parse_user_spec):
79513         Don't translate a message until just before returning,
79514         to avoid unnecessary translation.
79515
79516 2000-08-07  Jim Meyering  <meyering@lucent.com>
79517
79518         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79519         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79520         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79521         getgroups.c, gethostname.c, getopt.h, group-member.c,
79522         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79523         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79524         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79525         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79526         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79527         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79528         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79529         yesno.c: Back out Copyright date changes for each file with no change
79530         this year.  This eases coordination with other programs using the same
79531         source code modules.  From Paul Eggert.
79532
79533 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79534
79535         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79536         not char, for compatibility with glibc 2.1.3 strftime.c.
79537
79538 2000-08-03  Greg McGary  <greg@mcgary.org>
79539
79540         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79541         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79542         (EXTEND_BUFFER): Use them.
79543
79544 2000-08-01  Jim Meyering  <meyering@lucent.com>
79545
79546         * lib/dirname.c (ISSLASH): Define.
79547         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79548         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79549         both `\' and `/' may be use as path separators.
79550         Based on a patch from Prashant TR.
79551
79552 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79553
79554         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79555         slot vector a constant, since it might get modified.
79556
79557 2000-07-31  Jim Meyering  <meyering@lucent.com>
79558
79559         * lib/xmalloc.c: Use `virtual memory exhausted', not
79560         `Memory exhausted'.
79561         * lib/obstack.c (print_and_abort): Likewise.
79562
79563 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79564
79565         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79566         buffer, so that the caller can always quote one small
79567         component of a "memory exhausted" message in slot 0.
79568         From a suggestion by Jim Meyering.
79569
79570 2000-07-30  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/makepath.c (make_path): Quote the other instance, too.
79573
79574         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79575         (STATIC_BUF_SIZE): Define.
79576         (quotearg_n_options): Use only statically allocated storage when
79577         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79578         than STATIC_BUF_SIZE.
79579
79580 2000-07-29  Jim Meyering  <meyering@lucent.com>
79581
79582         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79583         * lib/dirname.c (dir_name): Likewise.
79584
79585         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79586         `/'.
79587
79588         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79589         (dir_name): Assert that there are no trailing slashes.
79590
79591 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79592
79593         * lib/mbswidth.h (mbswidth): Add a flags argument.
79594         (mbswidth): New declaration.
79595         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79596         * lib/mbswidth.c (mbswidth): Add a flags argument.
79597         (mbsnwidth): New function.
79598
79599 2000-07-24  Jim Meyering  <meyering@lucent.com>
79600
79601         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79602
79603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79604
79605         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79606
79607 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79608
79609         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79610         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79611         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79612         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79613         invoke multibyte primitives.
79614
79615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79616
79617         * lib/quotearg.c:
79618         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79619         so that mbstate_t is always defined.
79620
79621         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79622         be 1 in at least one GCC installation, and this configuration
79623         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79624         performance on hosts that have mbrtowc but have only unibyte
79625         locales, but I assume these hosts are rare.
79626
79627 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/mbswidth.c (_XOPEN_SOURCE):
79630         Don't define; this causes problems on Solaris 7.
79631         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79632
79633 2000-07-23  Jim Meyering  <meyering@lucent.com>
79634
79635         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79636         too: getgrgid, getpwuid, getuid.
79637
79638 2000-07-23  Jim Meyering  <meyering@lucent.com>
79639
79640         * lib/basename.c (base_name): Add an assertion.
79641
79642 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79643
79644         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79645         shadow its mbsinit function.
79646
79647 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79648
79649         * lib/mbswidth.h: New file.
79650         * lib/mbswidth.c: New file.
79651         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79652         (noinst_HEADERS): Add mbswidth.h.
79653
79654 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79655
79656         * lib/config.charset: Add support for FreeBSD. Improve support for
79657         HP-UX and IRIX 6.
79658
79659 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79660
79661         * m4/mbswidth.m4: New file.
79662         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79663
79664 2000-07-15  Jim Meyering  <meyering@lucent.com>
79665
79666         * lib/makepath.c: Include quote.h.
79667         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79668         corresponding argument in a `quote (...)' call.
79669         Give better diagnostics.
79670
79671         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79672         (noinst_HEADERS): Add quote.h.
79673
79674         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79675         from tar's src/misc.c.
79676         * lib/quote.h: New file.  Prototypes for same.
79677
79678 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79679
79680         From a suggestion by Bruno Haible.
79681         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79682         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79683         to decide whether to define the BeOS workaround macro;
79684         this adjusts to the change to AC_MBSTATE_T.
79685
79686 2000-07-14  Jim Meyering  <meyering@lucent.com>
79687
79688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79689         jm_AC_TYPE_UINTMAX_T.
79690
79691 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79692
79693         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79694
79695         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79696         quotearg_buffer_restyled): Add support for
79697         clocale_quoting_style.  Undo previous change to
79698         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79699         and "{RIGHT QUOTATION MARK}" msgids.
79700
79701 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79702
79703         From a suggestion by Bruno Haible.
79704         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79705         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79706         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79707         and mbstate_t, to a single-part test that simply defines mbstate_t.
79708         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79709         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79710
79711 2000-07-10  Jim Meyering  <meyering@lucent.com>
79712
79713         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79714
79715         * m4/gnu-source.m4: Output to confdefs.h directly.
79716         Suggestion from Akim Demaille.
79717
79718 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79719
79720         The old behavior of quoting `like this' doesn't look good with
79721         newer, ISO-style fonts.  See:
79722         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79723
79724         Instead, quote "like this" by default.  Let the translator
79725         tailor the locale-specific quoting behavior by providing
79726         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79727
79728         * lib/quotearg.c (N_): New macro.
79729         (gettext_default): New function.
79730         (quotearg_buffer_restyled): Use
79731         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79732         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79733
79734 2000-07-09  Jim Meyering  <meyering@lucent.com>
79735
79736         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79737         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79738
79739         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79741
79742 2000-07-09  Jim Meyering  <meyering@lucent.com>
79743
79744         * lib/Most files: Update copyright dates to include 2000.
79745
79746 2000-07-08  Jim Meyering  <meyering@lucent.com>
79747
79748         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79749         if not defined.
79750         (xgethostname): Remove now-unnecessary #ifdef.
79751         Move declaration of `err' into loop where it's used.
79752
79753 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79754         and Bruno Haible  <haible@clisp.cons.org>
79755
79756         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79757         only if the test for an object-type mbstate_t fails.  This
79758         prevents us from mistakenly reporting that mbstate_t is a
79759         system object type after we "#define mbstate_t int" to work
79760         around its lack.
79761
79762 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79763         and Bruno Haible  <haible@clisp.cons.org>
79764
79765         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79766
79767 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79768
79769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79770         to strerror_r.
79771         Include <ctype.h> for use of isalpha.
79772
79773 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79774
79775         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79776         by allocating a larger buffer. Test the gethostname return value for
79777         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79778         returns an error and ENAMETOOLONG isn't defined.
79779
79780 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79781
79782         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79783         dimension.
79784
79785 2000-07-04  Jim Meyering  <meyering@lucent.com>
79786
79787         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79788         of the deprecated AC_CHECKING.
79789
79790 2000-07-04  Jim Meyering  <meyering@lucent.com>
79791
79792         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79793         Reported by Bruno Haible.
79794
79795 2000-07-04  Jim Meyering  <meyering@lucent.com>
79796
79797         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79798         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79799         lacks mbrtowc.
79800
79801 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79802
79803         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79804         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79805
79806 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79807         and Bruno Haible  <haible@clisp.cons.org>
79808
79809         * lib/quotearg.c (mbrtowc):
79810         Assign to *pwc, and return 1 only if result is nonzero.
79811         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79812
79813 2000-07-03  Jim Meyering  <meyering@lucent.com>
79814
79815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79816
79817 2000-07-03  Jim Meyering  <meyering@lucent.com>
79818
79819         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79820         This is necessary to get a definition of e.g., UTMP_FILE on
79821         HP-UX 10.20.
79822         From Bob Proulx.
79823
79824 2000-07-02  Jim Meyering  <meyering@lucent.com>
79825
79826         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79827
79828         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79829         AC_LIBOBJ(function_name).
79830         * m4/chown.m4: Likewise.
79831         * m4/fnmatch.m4: Likewise.
79832         * m4/ftruncate.m4: Likewise.
79833         * m4/getgroups.m4: Likewise.
79834         * m4/getline.m4: Likewise.
79835         * m4/group-member.m4: Likewise.
79836         * m4/jm-macros.m4: Likewise.
79837         * m4/lstat.m4: Likewise.
79838         * m4/malloc.m4: Likewise.
79839         * m4/memcmp.m4: Likewise.
79840         * m4/nanosleep.m4: Likewise.
79841         * m4/putenv.m4: Likewise.
79842         * m4/realloc.m4: Likewise.
79843         * m4/regex.m4: Likewise.
79844         * m4/stat.m4: Likewise.
79845         * m4/strftime.m4: Likewise.
79846
79847 2000-07-02  Jim Meyering  <meyering@lucent.com>
79848
79849         * lib/quotearg.c (mbstate_t): Don't define here.
79850
79851 2000-07-02  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79854
79855 2000-07-01  Jim Meyering  <meyering@lucent.com>
79856
79857         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79858
79859 2000-07-01  Jim Meyering  <meyering@lucent.com>
79860
79861         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79862         problem.
79863
79864 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79865
79866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79867         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79868
79869 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79870
79871         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79872         per change in ../m4/ls-mntd-fs.m4.
79873         (read_filesystem_list): Ignore symbolic links.
79874
79875 2000-06-29  Jim Meyering  <meyering@lucent.com>
79876
79877         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79878         for declaration of strcmp.
79879
79880         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79881
79882         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79883         Avoid warning by casting result to `char *' to remove `const'.
79884
79885 2000-06-28  Jim Meyering  <meyering@lucent.com>
79886
79887         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79888         included by quotearg.c, for which we perform this test.  From
79889         Bruno Haible.
79890
79891 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79892
79893         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79894         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79895         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79896
79897 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79898
79899         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79900
79901 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79902
79903         savedir now sets errno on failure and invokes xmalloc to get memory.
79904         Fix a couple of other minor bugs while we're at it.
79905
79906         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79907         (NAMLEN): Remove macro.
79908         (malloc, realloc): Remove decls.
79909         (stpcpy): Likewise.
79910         ("xalloc.h"): Include.
79911         (NAME_SIZE_DEFAULT): New macro.
79912         (savedir): Use xmalloc / xrealloc to allocate memory.
79913         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79914         Skip "" directory entries.
79915         Use strlen to calculate directory entry length, since the old method
79916         is rarely used these days and isn't worth supporting.
79917         Don't use a pointer after freeing it.
79918         Check for integer overflow when calculating allocation size.
79919         Use memcpy to copy entries, instead of stpcpy.
79920         Set errno properly when returning NULL.
79921         Check for readdir error.
79922
79923 2000-06-26  Jim Meyering  <meyering@lucent.com>
79924
79925         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79926
79927 2000-06-25  Jim Meyering  <meyering@lucent.com>
79928
79929         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79930         Linux header bug when _XOPEN_SOURCE is defined to 500.
79931
79932 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79933
79934         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79935         deficiency.
79936
79937 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79938
79939         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79940         Include xalloc.h.
79941         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79942
79943 2000-06-24  Jim Meyering  <meyering@lucent.com>
79944
79945         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79946         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79947         for which strerror does return char*, but which lacks a conveniently
79948         accessible declaration of the function.  If the compile-test says
79949         strerror_r doesn't work, then resort to a `run'-test that works on
79950         BeOS and segfaults on DEC Unix.
79951
79952 2000-06-24  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79955
79956 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79957
79958         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79960
79961 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79962
79963         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79964         (mbrtowc, mbstate_t): Define substitutes if
79965         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79966         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79967         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79968
79969 2000-06-23  Jim Meyering  <meyering@lucent.com>
79970
79971         * m4/afs.m4: Add missing AC_MSG_RESULT.
79972         Reported by Bruno Haible.
79973
79974         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79975         Suggestion from Bruno Haible.
79976
79977 2000-06-23  Jim Meyering  <meyering@lucent.com>
79978
79979         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79980
79981 2000-06-21  Jim Meyering  <meyering@lucent.com>
79982
79983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79984
79985 2000-06-21  Jim Meyering  <meyering@lucent.com>
79986
79987         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79988         (noinst_HEADERS): Add getstr.h.
79989
79990         * lib/getline.c (getstr): Move into a separate file.
79991         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79992         the following changes: new parameter, delim2; both delim[12]
79993         parameters have type `int', not `char'.  The latter would lose
79994         with 8-bit delimiters.
79995         * lib/getstr.h: New file.
79996
79997 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79998
79999         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
80000         than 1024, return a memory chunk of least possible size, instead
80001         of size PATH_MAX + 2. In the loop, increment the size proportionally.
80002         Use free/xmalloc instead of xrealloc to avoid copying for very long
80003         paths.
80004
80005 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80006
80007         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
80008         the empty string.
80009
80010 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
80011
80012         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
80013         address, not strdup.  Include <stdlib.h> and don't declare free().
80014
80015 2000-06-19  Jim Meyering  <meyering@lucent.com>
80016
80017         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
80018
80019 2000-06-18  Jim Meyering  <meyering@lucent.com>
80020
80021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
80022
80023         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
80024         `checking whether...' message to be consistent with that of the
80025         lstat test.
80026
80027 2000-06-18  Jim Meyering  <meyering@lucent.com>
80028
80029         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
80030         Besides, these days every porting target provides a mkdir function.
80031
80032         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
80033         needed. (this snippet comes from src/system.h).
80034
80035 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
80036
80037         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
80038
80039 2000-06-15  Paul Eggert  <eggert@twinsun.com>
80040
80041         * lib/human.c (adjust_value): New function.
80042         (human_readable_inexact): Apply rounding style even when
80043         printing approximate values.
80044
80045 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80046
80047         * lib/human.c (human_readable_inexact): Allow an input block
80048         size that is not a multiple of the output block size, and vice versa.
80049         Reported by Piergiorgio Sartor.
80050
80051 2000-06-14  Paul Eggert  <eggert@twinsun.com>
80052
80053         * lib/getdate.y (get_date): Apply relative times after time
80054         zone indicator, not before.  Reported by Todd A. Jacobs.
80055
80056 2000-06-13  Jim Meyering  <meyering@lucent.com>
80057
80058         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
80059
80060         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
80061
80062 2000-06-12  Paul Eggert  <eggert@twinsun.com>
80063
80064         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
80065
80066 2000-06-12  Jim Meyering  <meyering@lucent.com>
80067
80068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
80069         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
80070         optional argument.
80071         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
80072         the optional argument, `lib'.
80073
80074 2000-06-08  Jim Meyering  <meyering@lucent.com>
80075
80076         * m4/largefile.m4: Remove file (now that it's part of autoconf).
80077
80078 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80079
80080         Rewrite largefile configuration so that we don't need to run
80081         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
80082         AC_CANONICAL_HOST in configure.in -- jmm]
80083
80084         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
80085         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
80086         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
80087         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
80088         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
80089         All uses changed.
80090         Instead of inspecting the output of getconf, try to compile the
80091         test program without and with the macro definition.
80092         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
80093         for getconf.  Instead, check for the needed flags by compiling
80094         test programs.
80095
80096 2000-06-04  Paul Eggert  <eggert@twinsun.com>
80097
80098         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
80099
80100 2000-06-04  Jim Meyering  <meyering@lucent.com>
80101
80102         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
80103         SunOS 4.1.4 for which gid_t is an unsigned type.
80104
80105 2000-06-03  Jim Meyering  <meyering@lucent.com>
80106
80107         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
80108         now that autoconf requires that.
80109
80110         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
80111         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
80112         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
80113
80114 2000-06-03  Jim Meyering  <meyering@lucent.com>
80115
80116         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
80117
80118 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80119
80120         * m4/glibc21.m4: New file.
80121         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
80122
80123 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
80124
80125         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
80126         newer, don't install charset.alias.
80127         * lib/config.charset: Change the Linux/glibc rules so they become empty
80128         on glibc-2.1 or newer.
80129
80130 2000-06-02  Jim Meyering  <meyering@lucent.com>
80131
80132         * lib/mountlist.c: Back out last change.  Instead, do this...
80133         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
80134         me_dummy member using the same `ignore'-testing code.
80135         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
80136         fs_type strings.
80137         From Mark D. Roth.
80138
80139 2000-05-29  Jim Meyering  <meyering@lucent.com>
80140
80141         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
80142         mounts with the `ignore' attribute.  Based on a patch from
80143         Mark D. Roth.
80144
80145 2000-05-28  Jim Meyering  <meyering@lucent.com>
80146
80147         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
80148         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80149         * m4/stat.m4: Likewise.
80150         * m4/lstat.m4: Likewise.
80151         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
80152
80153         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
80154         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
80155
80156 2000-05-26  Jim Meyering  <meyering@lucent.com>
80157
80158         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
80159
80160 2000-05-24  Jim Meyering  <meyering@lucent.com>
80161
80162         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
80163         autoconf requires that.
80164         * m4/lib-check.m4: Likewise.
80165         * m4/jm-macros.m4: Likewise.
80166         * m4/strftime.m4: Likewise.
80167
80168         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
80169         AC_CHECK_DECLS, now that autoconf requires that.
80170
80171 2000-05-22  Jim Meyering  <meyering@lucent.com>
80172
80173         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80174         * m4/lstat.m4: Likewise.
80175
80176 2000-05-22  Jim Meyering  <meyering@lucent.com>
80177
80178         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
80179
80180 2000-05-20  Jim Meyering  <meyering@lucent.com>
80181
80182         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
80183         (jm_PREREQ): Use it.
80184
80185 2000-05-18  Jim Meyering  <meyering@lucent.com>
80186
80187         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
80188         back, too, since it may have been modified by allocate_entry.
80189         (hash_delete): Rewrite to use neither the assignment operator
80190         nor the comma operator in an if-expression.
80191
80192 2000-05-15  Paul Eggert  <eggert@twinsun.com>
80193
80194         * lib/closeout.c:
80195         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
80196         Remove; no longer needed.
80197         "quotearg.h": Add include.
80198         (file_name): Do not bother to explicitly initialize to NULL; it's less
80199         efficient on some hosts.
80200         (close_stdout_status): Remove test as to whether stdout was already
80201         closed; it breaks for the case "echo x | sort >&-".
80202         Quote file name colons.
80203         Do not assume that _("write error") lacks format strings.
80204
80205 2000-05-15  Jim Meyering  <meyering@lucent.com>
80206
80207         * lib/version-etc.c (version_etc_copyright): Update the copyright
80208         string used in all --version output.
80209
80210 2000-05-14  Jim Meyering  <meyering@lucent.com>
80211
80212         * lib/closeout.c (close_stdout_set_file_name): New function.
80213         (close_stdout_status): Use new file-scoped global.
80214         Return right away if fstat says the stdout file descriptor is invalid.
80215         * lib/closeout.h (close_stdout_set_file_name): Declare.
80216
80217 2000-05-10  Jim Meyering  <meyering@lucent.com>
80218
80219         * lib/closeout.c [default_exit_status]: New file-scoped variable.
80220         (close_stdout_set_status): New function.
80221         * lib/closeout.h (close_stdout_set_status): Declare.
80222
80223 2000-05-09  Jim Meyering  <meyering@lucent.com>
80224
80225         * m4/gettext.m4: Rename this...
80226         * m4/libintl.m4: ...to this.
80227
80228 2000-05-08  Jim Meyering  <meyering@lucent.com>
80229
80230         * lib/long-options.c: Don't include closeout.h.
80231         (parse_long_options): Don't call close_stdout for --version.
80232
80233 2000-05-06  Paul Eggert  <eggert@twinsun.com>
80234
80235         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
80236         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
80237         2.1.3 bug.  This avoids a clash when files like regex.c define
80238         _GNU_SOURCE.
80239
80240 2000-05-06  Jim Meyering  <meyering@lucent.com>
80241
80242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
80243         (AC_REPLACE_FUNCS): Add strnlen.
80244
80245         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
80246         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
80247
80248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
80249         AC_SEARCH_LIBS call for nanosleep.
80250         (LIB_NANOSLEEP): Set and AC_SUBST.
80251
80252 2000-05-06  Jim Meyering  <meyering@lucent.com>
80253
80254         * lib/strnlen.c: Undefine __strnlen and strnlen.
80255         [!weak_alias]: Define __strnlen to strnlen.
80256
80257         * lib/atexit.c: New file, from libiberty.
80258
80259 2000-05-06  Jim Meyering  <meyering@lucent.com>
80260
80261         * lib/closeout.c (close_stdout_status): Also check for errors on the
80262         stderr stream.
80263
80264 2000-05-05  Jim Meyering  <meyering@lucent.com>
80265
80266         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
80267         AC_SEARCH_LIBS call for clock_gettime.
80268         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
80269
80270         * m4/search-libs.m4: Update from autoconf.
80271
80272         su doesn't work on Solaris 2.6.
80273         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
80274         <shadow.h>.  Reported by Dragos Harabor.
80275
80276 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
80277
80278         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
80279         memcpy instead of xmalloc, xrealloc, path_concat.
80280         (locale_charset): Treat empty environment variables as absent.
80281         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
80282
80283 2000-05-04  Jim Meyering  <meyering@lucent.com>
80284
80285         * lib/getopt.c: Update from glibc.
80286         * lib/obstack.c: Likewise.
80287         * lib/obstack.h: Likewise.
80288         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
80289         file
80290
80291         * lib/regex.h: Likewise.
80292         * lib/strndup.c: Likewise.
80293         * lib/strnlen.c: New file, from glibc.
80294
80295 2000-05-03  Jim Meyering  <meyering@lucent.com>
80296
80297         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
80298
80299 2000-05-02  Paul Eggert  <eggert@twinsun.com>
80300
80301         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
80302         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
80303         compile-time test, rather than inspecting host and OS, to
80304         decide whether to define _LARGEFILE_SOURCE.
80305
80306 2000-05-01  Jim Meyering  <meyering@lucent.com>
80307
80308         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
80309
80310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
80311         Based on a patch from Bruno Haible.
80312
80313 2000-05-01  Jim Meyering  <meyering@lucent.com>
80314
80315         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
80316
80317 2000-04-29  Jim Meyering  <meyering@lucent.com>
80318
80319         * lib/path-concat.c: Declare strdup only if it's not defined.
80320         * lib/canon-host.c: Likewise.
80321
80322 2000-04-28  Jim Meyering  <meyering@lucent.com>
80323
80324         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
80325         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
80326         is included first, then limits.h is included by locale.h by libintl.h.
80327         From John David Anglin.
80328
80329 2000-04-25  Jim Meyering  <meyering@lucent.com>
80330
80331         * lib/makepath.c (S_IRWXUGO): Define.
80332         (make_path): Always perform explicit chmod if MODE specifies any
80333         of the `special' permission bits.  Prompted by a bug report against
80334         install from Mate Wierdl and Joost van Baal.
80335
80336 2000-04-18  Jim Meyering  <meyering@lucent.com>
80337
80338         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80339         (jm_PREREQ): Use it.
80340
80341 2000-04-18  Jim Meyering  <meyering@lucent.com>
80342
80343         * lib/README: New file.
80344
80345         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80346         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80347
80348 2000-04-17  Jim Meyering  <meyering@lucent.com>
80349
80350         Get it right :-)
80351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80352         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80353         Suggestion from Akim Demaille.
80354
80355 2000-04-17  Jim Meyering  <meyering@lucent.com>
80356
80357         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80358         the definition of it to rpl_strftime also defined-away the system's
80359         declaration.
80360
80361 2000-04-15  Jim Meyering  <meyering@lucent.com>
80362
80363         Use `C' to denote so-called `contiguous' files, the same way
80364         that tar does.
80365         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80366         (ftypelet): Use S_ISCTG.
80367         From Michael Deutschmann.
80368
80369 2000-04-14  Jim Meyering  <meyering@lucent.com>
80370
80371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80372         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80373         clobbered.
80374
80375 2000-04-14  Jim Meyering  <meyering@lucent.com>
80376
80377         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80378
80379 2000-04-13  Jim Meyering  <meyering@lucent.com>
80380
80381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80382         AH_VERBATIM to insert required #ifndef into config.h.in.
80383         Suggestion from Akim Demaille.
80384
80385 2000-04-12  Jim Meyering  <meyering@lucent.com>
80386
80387         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80388         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80389         Christian Krackowizer.
80390
80391         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80392         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80393         (AC_SYS_LARGEFILE): Require.
80394         (AM_C_PROTOTYPES): Require.
80395
80396 2000-04-08  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80399         names don't conflict.  Reported by Eli Zaretskii.
80400
80401 2000-04-07  Jim Meyering  <meyering@lucent.com>
80402
80403         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80404         sys/types.h, to work around system header problems on AIX 3.2.5.
80405         From Bruno Haible.
80406
80407 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80408
80409         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80410         bug.  Deal with the different error behavior of Irix iconv.
80411
80412 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80413
80414         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80415         IRIX if the installer said otherwise.
80416
80417 2000-04-05  Jim Meyering  <meyering@lucent.com>
80418
80419         Portability tweaks required for ultrix4.3.
80420         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80421         (jm_CHECK_DECLS): Add getutent to the list of functions.
80422         (_jm_DECL_HEADERS): Add utmpx.h.
80423         From John David Anglin.
80424
80425         * m4/strftime.m4: Back out the 2000-04-02 change.
80426         Instead of that change, simply undefine putenv in the test program.
80427
80428 2000-04-05  Jim Meyering  <meyering@lucent.com>
80429
80430         Portability tweaks required for ultrix4.3.
80431         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80432         getutent.
80433         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80434         * lib/canon-host.c: Declare strdup.
80435         * lib/path-concat.c: Likewise.
80436         From John David Anglin.
80437
80438 2000-04-04  Jim Meyering  <meyering@lucent.com>
80439
80440         Be more DOS 8.3-friendly.
80441         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80442         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80443         * lib/Makefile.am: Reflect renaming.
80444         Reported by Eli Zaretskii.
80445
80446         Use a temporary file name that won't clash with `charset.alias'
80447         in the DOS 8.3 name space.
80448         * lib/Makefile.am (charset_tmp): Define.
80449         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80450         (uninstall-local): Likewise.
80451         Reported by Eli Zaretskii.
80452
80453 2000-04-03  Jim Meyering  <meyering@lucent.com>
80454
80455         * m4/gettext.m4: Fix typo in comment.
80456
80457         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80458         textutils/configure.in).  Suggestion from Paul Eggert.
80459         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80460
80461 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80462
80463         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80464         variable in the shell rather than using putenv, which isn't
80465         portable.  This avoids the configure-time inter-test dependency
80466         on the potentially-renamed putenv function.
80467
80468 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80469
80470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80471         before checking struct stat.st_blksize, so that
80472         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80473
80474 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80475
80476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80477         since strftime.c uses HAVE_STRFTIME to decide whether to use
80478         the underlying strftime.
80479
80480 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80481
80482         * lib/time/strftime.c (my_strftime): Make sure we call the system
80483         strftime, not ourselves, when invoking the underlying strftime.
80484
80485 2000-03-24  Jim Meyering  <meyering@lucent.com>
80486
80487         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80488         (charset_alias): Define.
80489         (install-exec-local): Factor out common code.
80490         (uninstall-local): Split lines longer than 80.
80491         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80492         (SUFFIXES): Define.
80493         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80494         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80495
80496 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80497
80498         * lib/config.charset: Output a line containing "Packages using this
80499         file".
80500         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80501         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80502         ref-del.sed): New rules.
80503
80504 2000-03-17  Jim Meyering  <meyering@lucent.com>
80505
80506         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80507         Otherwise, include <strings.h>
80508
80509 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80510
80511         * lib/unicodeio.c (utf8_wctomb): New function.
80512         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80513         format instead of in UCS-4 with platform dependent endianness.
80514
80515 2000-03-10  Jim Meyering  <meyering@lucent.com>
80516
80517         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80518         From Marco Franzen.
80519
80520 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80521
80522         * lib/savedir.c (savedir): Work even if directory size is
80523         negative; this can happen with some screwy NFS configurations.
80524
80525 2000-03-06  Jim Meyering  <meyering@lucent.com>
80526
80527         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80528         if it's NULL (because we ran out of memory).  From Bruno Haible.
80529
80530 2000-03-05  Jim Meyering  <meyering@lucent.com>
80531
80532         * lib/localcharset.c ("path-concat.h"): Include.
80533         (get_charset_aliases): Use path_concat instead of ANSI string
80534         concatenation.
80535
80536         * lib/unicodeio.h (PARAMS): Define.
80537         Use it to guard prototype.
80538
80539 2000-03-04  Jim Meyering  <meyering@lucent.com>
80540
80541         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80542         for lib/localcharset.c.
80543
80544 2000-03-04  Jim Meyering  <meyering@lucent.com>
80545
80546         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80547         installing into it.
80548         (uninstall-local): Uncomment this rule so `make distcheck' works
80549         once again.
80550
80551         * lib/unicodeio.c (<errno.h>): Include it.
80552         (errno): Declare if not defined.
80553
80554         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80555
80556         * lib/config.charset: New version, incorporating remarks from a linux
80557         i18n mailing list.  From Bruno Haible.
80558
80559 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80560
80561         * m4/codeset.m4: New file.
80562         * m4/iconv.m4: New file.
80563         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80564
80565 2000-03-03  Jim Meyering  <meyering@lucent.com>
80566
80567         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80568
80569 2000-03-02  Jim Meyering  <meyering@lucent.com>
80570
80571         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80572         the messages come out on separate lines.
80573
80574         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80575         rather than jm_CHECK_DECLARATIONS.
80576         * m4/decl.m4: Remove now-unused file.
80577
80578         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80579         geteuid.
80580
80581 2000-03-02  Jim Meyering  <meyering@lucent.com>
80582
80583         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80584
80585 2000-03-01  Jim Meyering  <meyering@lucent.com>
80586
80587         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80588         * lib/unicodeio.c: Likewise.
80589
80590 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80591
80592         * lib/config.charset: New file.
80593         * lib/localcharset.c: New file.
80594         * lib/unicodeio.h, lib/unicodeio.c: New files.
80595         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80596         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80597         (noinst_HEADERS): Add unicodeio.h.
80598         (all-local, install-exec-local, charset.alias): New targets.
80599
80600 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80601
80602         * lib/quotearg.c (ALERT_CHAR): New macro.
80603         (quotearg_buffer_restyled): Use it.
80604
80605 2000-02-27  Jim Meyering  <meyering@lucent.com>
80606
80607         * m4/check-decl.m4: Add getenv to the list.
80608
80609 2000-02-27  Jim Meyering  <meyering@lucent.com>
80610
80611         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80612         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80613
80614         * lib/backupfile.c: Guard inclusion of stdlib.h with
80615         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80616         Declare malloc if needed.
80617
80618         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80619         `#ifndef HAVE_DECL..'
80620         now that autoconf always defines the HAVE_DECL_ symbols.
80621         * lib/human.c: Likewise.
80622         * lib/same.c: Likewise.
80623         * lib/strtoumax.c: Likewise.
80624
80625         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80626         declaration check was not run.
80627         * lib/hash.c: Likewise.
80628         * lib/human.c: Likewise.
80629         * lib/same.c: Likewise.
80630         * lib/strtoumax.c: Likewise.
80631
80632         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80633         `.', then first look up the entire `.'-containing string as a login
80634         name.
80635
80636 2000-02-23  Jim Meyering  <meyering@lucent.com>
80637
80638         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80639         in place of my hack.
80640
80641 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80642
80643         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80644         (textint): New typedef.
80645         (parser_control): Member year changed from int to textint.
80646         All uses changed.
80647         (YYSTYPE): Removed; replaced by %union with int and textint members.
80648         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80649         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80650         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80651         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80652         (date, number, to_year): Use width of number in digits, not its value,
80653         to determine whether it's a 2-digit year, or a 2-digit time.
80654         (yylex): Store number of digits of numeric tokens.
80655         Reported by John Kendall.
80656
80657         (parser_control): Changed from struct parser_control to typedef (for
80658         consistency).  All uses changed.
80659
80660         (tID): Removed; not used.
80661         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80662
80663 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80664
80665         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80666         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80667
80668 2000-02-12  Jim Meyering  <meyering@lucent.com>
80669
80670         * lib/userspec.c (ISDIGIT): Define it.
80671         (isdigit): Remove definition.
80672         (is_number): Use ISDIGIT, not isdigit.
80673         <libintl.h>: Include.
80674         (_ and N_): Define.
80675         (parse_user_spec): Mark translatable strings.
80676
80677 2000-02-10  Jim Meyering  <meyering@lucent.com>
80678
80679         With these changes, nanosleep.[ch] are finally enough like the other
80680         lib/* replacement files to compile on a few more losing systems.
80681
80682         * lib/nanosleep.h: Don't include config.h.
80683         Remove prototype from declaration of nanosleep.
80684         (PARAMS): Remove now-unneeded definition.
80685         * lib/nanosleep.c: #undef nanosleep.
80686         (rpl_nanosleep): Rename from nanosleep.
80687
80688 2000-02-10  Jim Meyering  <meyering@lucent.com>
80689
80690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80691         gnu_nanosleep to rpl_nanosleep.
80692
80693 2000-02-09  Jim Meyering  <meyering@lucent.com>
80694
80695         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80696         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80697
80698 2000-02-08  Akim Demaille  <akim@epita.fr>
80699
80700         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80701         `[' and `]' and remove uses of `changequote'.
80702         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80703         (AC_SYS_LARGEFILE): Likewise.
80704         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80705         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80706         of changequote.
80707         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80708         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80709         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80710         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80711
80712 2000-02-05  Jim Meyering  <meyering@lucent.com>
80713
80714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80715         Remove explicit use of AC_HEADER_TIME.  It is required by
80716         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80717         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80718         in autoconf whereby the expansion of the latter ended up preceding
80719         the expansion of its prerequisite, AC_HEADER_TIME.
80720         Reported by Volker Borchert.
80721
80722 2000-02-03  Jim Meyering  <meyering@lucent.com>
80723
80724         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80725
80726 2000-02-03  Jim Meyering  <meyering@lucent.com>
80727
80728         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80729         rather than with `#if HAVE_UTMPNAME'.
80730
80731 2000-02-02  Jim Meyering  <meyering@lucent.com>
80732
80733         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80734         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80735         Reported by Eli Zaretskii.
80736
80737 2000-02-01  Jim Meyering  <meyering@lucent.com>
80738
80739         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80740
80741 2000-01-31  Jim Meyering  <meyering@lucent.com>
80742
80743         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80744         functions.  Add the time.h and sys/time.h headers along with the
80745         AC_REQUIRE'ment of AC_HEADER_TIME.
80746
80747 2000-01-31  Jim Meyering  <meyering@lucent.com>
80748
80749         * lib/nanosleep.h (nanosleep): Guard declaration with
80750         `#if ! HAVE_DECL_NANOSLEEP'.
80751         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80752         the declaration in that vendor's sys/timers.h.
80753         Reported by Christian Krackowizer.
80754
80755         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80756         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80757         (ISPRINT): Likewise.
80758         Reported by Tom Tromey.
80759
80760 2000-01-30  Jim Meyering  <meyering@lucent.com>
80761
80762         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80763
80764         * m4/prereq.m4 (utmp_includes): Define.
80765         Check for ut_user and ut_name members in both struct utmpx
80766         and struct utmp.
80767
80768 2000-01-30  Jim Meyering  <meyering@lucent.com>
80769
80770         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80771         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80772         header files where only utmpx.ut_user is declared.
80773
80774         * lib/readutmp.h (UT_USER): Define.
80775
80776 2000-01-29  Jim Meyering  <meyering@lucent.com>
80777
80778         * m4/lib-check.m4: New file containing library-related checks from
80779         fileutils and sh-utils (textutils had none).
80780
80781 2000-01-28  Jim Meyering  <meyering@lucent.com>
80782
80783         * m4/perl.m4: Change format of warning message to look more like that
80784         from the missing script.  Suggestion from François Pinard.
80785
80786 2000-01-25  Jim Meyering  <meyering@lucent.com>
80787
80788         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80789         well as time.h in the compile check.
80790         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80791         Fix typo in cross-compiling case: s/yes/no/.
80792
80793 2000-01-23  Jim Meyering  <meyering@lucent.com>
80794
80795         * m4/jm-macros.m4: Move df-related tests here from
80796         fileutils/configure.in
80797
80798         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80799         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80800
80801         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80802         s/space/ac_fsusage_space/.
80803         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80804
80805         * m4/ftruncate.m4: New file (derived from part of
80806         fileutils/configure.in).
80807         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80808         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80809
80810         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80811         AC_SUBST these here, rather than just in sh-util/configure.in, so
80812         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80813         all the same.
80814         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80815         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80816         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80817         (AC_SUBST(POW_LIBM)): Likewise.
80818         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80819
80820 2000-01-23  Jim Meyering  <meyering@lucent.com>
80821
80822         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80823         obstack.c.
80824
80825 2000-01-22  Jim Meyering  <meyering@lucent.com>
80826
80827         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80828
80829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80830
80831         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80832         configure.in
80833         (AC_CHECK_HEADERS): Likewise for sh-utils.
80834         (AC_CHECK_HEADERS): Likewise for textutils.
80835         Merge the three lists of headers.
80836
80837         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80838         from fileutils' configure.in.
80839
80840         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80841         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80842         check-decl.m4.
80843
80844         * m4/check-decl.m4: Use #if rather than #ifdef.
80845         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80846         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80847         (_jm_DECL_HEADERS): Define new function.
80848         (jm_CHECK_DECLARATIONS): Require it.
80849
80850 2000-01-22  Jim Meyering  <meyering@lucent.com>
80851
80852         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80853         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80854         Required for some AIX systems.  Reported by Christian Krackowizer.
80855         [TESTING] (main): New function.
80856
80857         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80858         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80859         letters.
80860
80861         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80862         iswprint.
80863
80864         * lib/strverscmp.c (ISDIGIT): Define.
80865         (strverscmp): Use ISDIGIT, not isdigit.
80866
80867 2000-01-19  Jim Meyering  <meyering@lucent.com>
80868
80869         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80870         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80871         defines `struct timespec' in <sys/time.h>
80872
80873         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80874         Thanks to Akim for explaining.
80875
80876 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80877
80878         * lib/nanosleep.c (nanosleep):
80879         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80880         POSIX.1 doesn't require SA_INTERRUPT and some systems
80881         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80882         it's been part of POSIX.1 since day 1 (in 1988).
80883
80884 2000-01-17  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/interlock: Remove unused file.  Reported by François Pinard.
80887
80888 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80889
80890         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80891         alert, backslash, formfeed, and vertical tab unnecessarily in
80892         shell quoting style.
80893
80894 2000-01-16  Jim Meyering  <meyering@lucent.com>
80895
80896         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80897         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80898         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80899         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80900
80901 2000-01-16  Jim Meyering  <meyering@lucent.com>
80902
80903         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80904         because the latter didn't work.
80905
80906 2000-01-15  Jim Meyering  <meyering@lucent.com>
80907
80908         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80909         (AC_REPLACE_FUNCS): Add memcpy and memset.
80910         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80911         Add strpbrk.
80912         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80913
80914 2000-01-12  Jim Meyering  <meyering@lucent.com>
80915
80916         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80917         (jm_PREREQ): Use it.
80918         (jm_PREREQ_READUTMP): New macro.
80919         (jm_PREREQ): Use it.
80920
80921 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80922
80923         Quote multibyte characters correctly.
80924         * m4/c-bs-a.m4: New file.
80925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80926         (jm_PREREQ): Use it.
80927
80928 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80929
80930         * m4/uintmax_t.m4: Port to autoconf 2.13.
80931
80932 2000-01-08  Jim Meyering  <meyering@ascend.com>
80933
80934         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80935         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80936
80937 2000-01-04  Jim Meyering  <meyering@ascend.com>
80938
80939         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80940         jm_STRUCT_DIRENT_D_TYPE.
80941         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80942         jm_STRUCT_DIRENT_D_INO.
80943         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80944         jm_STRUCT_UTIMBUF.
80945         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80946         renamings.
80947         * m4/utime.m4: Likewise.
80948
80949         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80950         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80951
80952 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80953
80954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80955         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80956
80957 2000-01-02  Jim Meyering  <meyering@ascend.com>
80958
80959         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80960         remember if this is necessary.
80961
80962 1999-12-26  Jim Meyering  <meyering@ascend.com>
80963
80964         * m4/jm-macros.m4: Use it here.
80965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80966
80967 1999-12-23  Jim Meyering  <meyering@ascend.com>
80968
80969         * m4/jm-macros.m4: Check for clock_gettime (moved from
80970         fileutils/configure.in)
80971         Check for gettimeofday.
80972
80973 1999-12-20  Jim Meyering  <meyering@ascend.com>
80974
80975         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80976         autoconf-2.14a-1999-12-20.
80977
80978 1999-12-19  Jim Meyering  <meyering@ascend.com>
80979
80980         * m4/lstat-slash.m4: New file.
80981         * m4/jm-macros.m4: Use the new macro:
80982         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80983
80984 1999-12-07  Jim Meyering  <meyering@ascend.com>
80985
80986         * m4/perl.m4: Require that File::Compare be available, too.
80987         Too many systems seem to lack it.
80988
80989         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80990         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80991
80992 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80993
80994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80995         problem with the QNX 4.25 shell, which doesn't propagate exit
80996         status of failed commands inside shell assignments.
80997
80998 1999-11-17  Jim Meyering  <meyering@ascend.com>
80999
81000         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
81001
81002 1999-11-07  Jim Meyering  <meyering@ascend.com>
81003
81004         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
81005
81006 1999-11-06  Jim Meyering  <meyering@ascend.com>
81007
81008         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
81009         * m4/jm-macros.m4 (jm_MACROS): Use it here.
81010
81011 1999-11-05  Jim Meyering  <meyering@ascend.com>
81012
81013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
81014         configure.in of textutils, fileutils, and sh-utils into this one
81015         (shared between those packages) file.
81016         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
81017         AC_STRUCT_ST_BLKSIZE.
81018
81019 1999-11-03  Jim Meyering  <meyering@ascend.com>
81020
81021         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
81022         of AC_CHECK_TYPE checks includes unistd.h.
81023         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
81024         Suggestion from Akim Demaille.
81025
81026 1999-10-30  Jim Meyering  <meyering@ascend.com>
81027
81028         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
81029         m4-quoted string.
81030         * m4/ls-mntd-fs.m4: Likewise.
81031         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
81032         * m4/jm-winsz1.m4: Likewise.
81033
81034         * m4/const.m4: Remove file, since the fix made it into the experimental
81035         version of autoconf.
81036         * m4/mktime.m4: Likewise.
81037
81038         * m4/check-type.m4: Remove file, now that the latest version of
81039         AC_CHECK_TYPE takes a third arg to specify additional #includes.
81040
81041         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
81042         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
81043         AC_CHECK_TYPE.
81044
81045 1999-10-04  Jim Meyering  <meyering@ascend.com>
81046
81047         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
81048
81049 1999-09-22  Paul Eggert  <eggert@twinsun.com>
81050
81051         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
81052         2.95.1 bug with HP-UX 10.20.
81053
81054 1999-09-17  Jim Meyering  <meyering@ascend.com>
81055
81056         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
81057         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
81058         due to missing strdup (against sh-utils-2.0).
81059
81060 1999-08-29  Jim Meyering  <meyering@ascend.com>
81061
81062         * m4/jm-macros.m4: Require jm_BISON.
81063         * m4/bison.m4: New file.
81064
81065 1999-08-17  Paul Eggert  <eggert@twinsun.com>
81066
81067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
81068         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
81069
81070 1999-08-05  Jim Meyering  <meyering@ascend.com>
81071
81072         * m4/getline.m4: Rename test file from conftestdata to conftest.data
81073         to avoid conflicts with `conftest' on 8+3 filesystems.
81074         Suggestion from Eli Zaretskii.
81075
81076 1999-08-04  Jim Meyering  <meyering@ascend.com>
81077
81078         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
81079         fileutils and sh-utils (textutils's getline test was inadequate).
81080         (AM_FUNC_GETLINE): Run this test.
81081         (AC_CHECK_FUNCS): Check for getdelim.
81082         Reported by Bob Proulx.
81083
81084 1999-08-02  Jim Meyering  <meyering@ascend.com>
81085
81086         * m4/jm-macros.m4: Add a comment.
81087
81088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81089
81090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
81091         <inttypes.h> defines strtoumax as a macro (and not as a
81092         function).
81093
81094 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81095
81096         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
81097         that we can shift, multiply and divide unsigned long long
81098         values; Ultrix cc can't do it.
81099
81100 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81101
81102         * m4/mktime.m4: New file, which is a preview of what should appear
81103         in the next public autoconf release.
81104
81105 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81106
81107         * m4/lfs.m4: Remove this file.
81108         * m4/largefile.m4: New file.  It contains the old contents of
81109         lfs.m4, except that all names with prefix AC_LFS have been
81110         changed to use the prefix AC_SYS_LARGEFILE instead, to be
81111         compatible with future autoconf versions.  Also, some minor m4
81112         quoting problems have been fixed.
81113
81114 1999-08-01  Paul Eggert  <eggert@twinsun.com>
81115
81116         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
81117         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
81118         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
81119         and simplify the shell code.
81120
81121 1999-08-01  Jim Meyering  <meyering@ascend.com>
81122
81123         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
81124         m4.
81125
81126 1999-07-20  Jim Meyering  <meyering@ascend.com>
81127
81128         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
81129
81130 1999-07-15  Jim Meyering  <meyering@ascend.com>
81131
81132         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
81133
81134 1999-05-22  Jim Meyering  <meyering@ascend.com>
81135
81136         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
81137
81138 1999-05-20  Jim Meyering  <meyering@ascend.com>
81139
81140         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
81141         Add a colon after each `then' in case $4 is empty.
81142
81143 1999-05-16  Jim Meyering  <meyering@ascend.com>
81144
81145         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
81146
81147 1999-05-10  Jim Meyering  <meyering@ascend.com>
81148
81149         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
81150
81151         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
81152         AC_FUNC_MKTIME.
81153
81154 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
81155
81156         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
81157
81158 1999-05-04  Paul Eggert  <eggert@twinsun.com>
81159
81160         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
81161         not CPPFLAGS, so that linking works correctly in IRIX.
81162
81163 1999-04-30  Paul Eggert  <eggert@twinsun.com>
81164
81165         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
81166
81167 1999-04-20  Paul Eggert  <eggert@twinsun.com>
81168
81169         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
81170         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
81171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
81172         jm_AC_TYPE_UNSIGNED_LONG_LONG.
81173         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
81174
81175         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
81176
81177 1999-04-20  Jim Meyering  <meyering@ascend.com>
81178
81179         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
81180         AC_REPLACE xstroull if necessary.  From Paul Eggert.
81181         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
81182
81183 1999-04-18  Jim Meyering  <meyering@ascend.com>
81184
81185         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
81186         * m4/jm-macros.m4: Use it.
81187
81188 1999-04-06  Jim Meyering  <meyering@ascend.com>
81189
81190         * m4/strftime.m4: Remove test for %f.
81191
81192 1999-03-29  Jim Meyering  <meyering@ascend.com>
81193
81194         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
81195         superset of the AC_TYPE_* checks in the textutils, fileutils,
81196         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
81197         AC_TYPE_PID_T.
81198
81199 1999-03-28  Jim Meyering  <meyering@ascend.com>
81200
81201         * m4/jm-macros.m4: Define GNU_PACKAGE here.
81202         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
81203         replaced e.g., in the *.sh files of the sh-utils.
81204
81205 1999-03-20  Jim Meyering  <meyering@ascend.com>
81206
81207         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
81208         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
81209         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
81210
81211 1999-03-19  Jim Meyering  <meyering@ascend.com>
81212
81213         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
81214
81215 1999-03-12  Jim Meyering  <meyering@ascend.com>
81216
81217         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
81218
81219 1999-03-07  Jim Meyering  <meyering@ascend.com>
81220
81221         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
81222         declared.
81223
81224 1999-02-17  Jim Meyering  <meyering@ascend.com>
81225
81226         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
81227         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
81228
81229 1999-02-07  Jim Meyering  <meyering@ascend.com>
81230
81231         * m4/group-member.m4: New file -- extracted from sh-utils'
81232         configure.in.
81233
81234         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
81235         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
81236
81237 1999-02-06  Jim Meyering  <meyering@ascend.com>
81238
81239         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
81240         * m4/fnmatch.m4: Likewise.
81241         * m4/getgroups.m4: Likewise.
81242         * m4/lstat.m4: Likewise.
81243         * m4/malloc.m4: Likewise.
81244         * m4/putenv.m4: Likewise.
81245         * m4/realloc.m4: Likewise.
81246         * m4/regex.m4: Likewise.
81247         * m4/stat.m4: Likewise.
81248         * m4/strftime.m4: Likewise.
81249         Suggestion from Alain Magloire.
81250
81251         * m4/chown.m4: Use `.$ac_objext', not `.o'.
81252         * m4/fnmatch.m4: Likewise.
81253         * m4/getgroups.m4: Likewise.
81254         * m4/getline.m4: Likewise.
81255         * m4/lstat.m4: Likewise.
81256         * m4/malloc.m4: Likewise.
81257         * m4/memcmp.m4: Likewise.
81258         * m4/putenv.m4: Likewise.
81259         * m4/realloc.m4: Likewise.
81260         * m4/regex.m4: Likewise.
81261         * m4/stat.m4: Likewise.
81262         * m4/strftime.m4: Likewise.
81263         Suggestion from Alain Magloire.
81264
81265         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
81266         an argument.
81267
81268         * m4/regex.m4: Add a run-time Test for proper operation of
81269         re_compile_pattern.
81270
81271 1999-01-31  Jim Meyering  <meyering@ascend.com>
81272
81273         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
81274
81275 1999-01-30  Jim Meyering  <meyering@ascend.com>
81276
81277         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
81278
81279         * m4/jm-mktime.m4: Make this a wrapper around the official
81280         AM_FUNC_MKTIME rather than my private copy, now that the official one
81281         is up to date.
81282         * m4/mktime.m4: Remove file.
81283
81284         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
81285         * m4/uptime.m4: Likewise.
81286         * m4/uintmax_t.m4: Likewise.
81287
81288 1999-01-28  Jim Meyering  <meyering@ascend.com>
81289
81290         * m4/jm-macros.m4: Use jm_AFS.
81291         * m4/afs.m4: New file (from fileutils' configure.in).
81292
81293         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
81294         * m4/chown.m4: Likewise.
81295         * m4/d-ino.m4: Likewise.
81296         * m4/d-type.m4: Likewise.
81297         * m4/fnmatch.m4: Likewise.
81298         * m4/getgroups.m4: Likewise.
81299         * m4/gettext.m4: Likewise.
81300         * m4/jm-mktime.m4: Likewise.
81301         * m4/jm-winsz2.m4: Likewise.
81302         * m4/lcmessage.m4: Likewise.
81303         * m4/ls-mntd-fs.m4: Likewise.
81304         * m4/malloc.m4: Likewise.
81305         * m4/memcmp.m4: Likewise.
81306         * m4/putenv.m4: Likewise.
81307         * m4/realloc.m4: Likewise.
81308         * m4/st_mtim.m4: Likewise.
81309         * m4/strftime.m4: Likewise.
81310
81311 1999-01-16  Jim Meyering  <meyering@ascend.com>
81312
81313         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
81314         (ARGMATCH_DIE_DECL): Define.
81315
81316 1999-01-12  Jim Meyering  <meyering@ascend.com>
81317
81318         * m4/Makefile.am.in: Rewrite to avoid using fmt.
81319         Reported by Lars Hecking.
81320
81321 1999-01-10  Jim Meyering  <meyering@ascend.com>
81322
81323         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
81324         gross kludge.
81325         * m4/inttypes_h.m4: Likewise.
81326         * m4/lstat.m4: Likewise.
81327         * m4/malloc.m4: Likewise.
81328         * m4/readdir.m4: Likewise.
81329         * m4/realloc.m4: Likewise.
81330         * m4/st_dm_mode.m4: Likewise.
81331         * m4/stat.m4: Likewise.
81332         * m4/utimbuf.m4: Likewise.
81333         * m4/utimes.m4: Likewise.
81334
81335         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81336         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81337         comments in config.h.in are meaningful.
81338
81339         * m4/jm-macros.m4: Require autoconf-2.13 here.
81340
81341         * m4/regex.m4: By default, don't use the included regex.c on systems
81342         with glibc 2.  Suggestion from Uli Drepper.
81343
81344 1999-01-02  Jim Meyering  <meyering@ascend.com>
81345
81346         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81347
81348 1998-12-18  Jim Meyering  <meyering@ascend.com>
81349
81350         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81351         Based on a suggestion from Lars Hecking.
81352
81353 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81354
81355         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81356
81357 1998-11-16  Jim Meyering  <meyering@ascend.com>
81358
81359         * m4/lfs.m4: Double-quote the `uname...` expression.
81360
81361 1998-11-14  Jim Meyering  <meyering@ascend.com>
81362
81363         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81364         * m4/stat.m4: Likewise.
81365
81366 1998-11-03  Jim Meyering  <meyering@ascend.com>
81367
81368         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81369         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81370
81371 1998-10-18  Jim Meyering  <meyering@ascend.com>
81372
81373         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81374
81375 1998-10-17  Jim Meyering  <meyering@ascend.com>
81376
81377         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81378         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81379         calls for those previously hard-coded headers.  Instead, take a new
81380         parameter.
81381         (jm_CHECK_DECLARATIONS): Reflect interface change.
81382         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81383         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81384
81385         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81386
81387 1998-10-14  Jim Meyering  <meyering@ascend.com>
81388
81389         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81390         instead of "TZ=America/Vancouver".  From Paul Eggert.
81391
81392 1998-10-11  Jim Meyering  <meyering@ascend.com>
81393
81394         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81395         This adds a test for a recently added compatibility fix for mktime.c.
81396         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81397
81398 1998-09-27  Jim Meyering  <meyering@ascend.com>
81399
81400         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81401
81402         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81403         ../configure.in, including a change from Gordon Matzigkeit to allow
81404         cross-compiling for the Hurd.
81405
81406         * m4/glibc.m4: New file/macro to test for the GNU C Library
81407         versions 1 and 2.  From Gordon Matzigkeit.
81408         Indent.
81409
81410 1998-09-21  Jim Meyering  <meyering@ascend.com>
81411
81412         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81413
81414 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81415
81416         Port nanosecond-resolution times to UnixWare 2.1.2 and
81417         pedantic Solaris 2.6.
81418
81419         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81420         AC_STRUCT_ST_MTIM.
81421         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81422         Generate name of ns member, instead of just 1 or undef.
81423         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81424
81425 1998-08-15  Jim Meyering  <meyering@ascend.com>
81426
81427         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81428         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81429         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81430         instead of jm_TYPE_SSIZE_T.
81431
81432 1998-08-12  Jim Meyering  <meyering@ascend.com>
81433
81434         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81435
81436 1998-08-02  Jim Meyering  <meyering@ascend.com>
81437
81438         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81439         in acconfig.h manually.
81440
81441 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81442
81443         * m4/st_mtim.m4: New file.
81444
81445 1998-07-28  Jim Meyering  <meyering@ascend.com>
81446
81447         * m4/utimes.m4: Undef stat.
81448
81449 1998-07-25  Jim Meyering  <meyering@ascend.com>
81450
81451         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81452         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81453
81454 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81455
81456         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81457         uid and gid actually remain unchanged.
81458
81459 1998-07-07  Jim Meyering  <meyering@ascend.com>
81460
81461         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81462
81463 1998-07-04  Jim Meyering  <meyering@ascend.com>
81464
81465         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81466         to prove that this macro can be used in packages without regex.c.
81467
81468 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81469
81470         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81471         is to be used.
81472
81473 1998-07-03  Jim Meyering  <meyering@ascend.com>
81474
81475         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81476
81477         * m4/gettext.m4: New file -- from gettext-0.10.35.
81478         * m4/lcmessage.m4: Likewise.
81479         * m4/progtest.m4: Likewise.
81480
81481         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81482         * m4/jm-macros.m4: Require the new macro.
81483
81484 1998-06-29  Jim Meyering  <meyering@ascend.com>
81485
81486         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81487         for the definition of NGROUPS (used in a system header included
81488         by sys/mount.h).
81489
81490 1998-06-28  Jim Meyering  <meyering@ascend.com>
81491
81492         * m4/ls-mntd-fs.m4: New file.
81493         * m4/fstypename.m4: New file.
81494
81495         * m4/jm-macros.m4: Require the new macro.
81496         * m4/jm-glibc-io.m4: New file.
81497
81498 1998-05-19  Jim Meyering  <meyering@ascend.com>
81499
81500         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81501         * m4/lchown.m4: New file.
81502
81503         * m4/Makefile.am.in: New file.
81504         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81505
81506 1998-05-14  Jim Meyering  <meyering@ascend.com>
81507
81508         * m4/Makefile.am (EXTRA_DIST): Add them.
81509         * m4/jm-macros.m4: New file.
81510         * m4/utimbuf.m4: New file.
81511
81512 1998-05-12  Jim Meyering  <meyering@ascend.com>
81513
81514         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81515
81516 1998-05-11  Jim Meyering  <meyering@ascend.com>
81517
81518         * m4/isc-posix.m4: New file.
81519
81520 1998-05-10  Jim Meyering  <meyering@ascend.com>
81521
81522         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81523
81524 1998-05-09  Jim Meyering  <meyering@ascend.com>
81525
81526         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81527         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81528         with automake.
81529
81530         * m4/ssize_t.m4: New file.
81531         * m4/mktime.m4: Remove file -- the new automake has this now.
81532
81533 1998-04-26  Jim Meyering  <meyering@ascend.com>
81534
81535         * m4/assert.m4: New file.
81536         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81537
81538 1998-04-05  Jim Meyering  <meyering@ascend.com>
81539
81540         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81541         (jm_PREREQ): Use it here.
81542
81543 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81544
81545         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81546         in acconfig.h.
81547
81548 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81549
81550         * m4/prereq.m4: New file.
81551         * m4/error.m4: New file.
81552         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81553
81554 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81555
81556         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81557         cache-check for the same variable -- that defeated the purpose of
81558         the test; the test program was never run.  This was a problem only
81559         on systems with losing getline functions -- HP-UX 10.20 is one.
81560         Reported by Bjorn Helgaas.
81561
81562 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81563
81564         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81565
81566 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81567
81568         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81569
81570         * m4/const.m4: New file.  Use an initializer in this declaration
81571         typedef int charset[2]; const charset x;
81572         Reported by Bob Glickstein.
81573
81574 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81575
81576         * m4/chown.m4: Fix reversed types on -1 args to chown.
81577         From Kaveh Ghazi.
81578
81579 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81580
81581         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81582         Add lseek and memchr.
81583
81584         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81585         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81586         have a 20-character limit on names.
81587
81588 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81589
81590         * m4/inttypes_h.m4: New file.
81591         * m4/uintmax_t.m4: New file.
81592         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81593
81594
81595         -----
81596
81597         Local Variables:
81598         coding: utf-8
81599         End:
81600
81601         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81602
81603         Copying and distribution of this file, with or without
81604         modification, are permitted provided the copyright notice
81605         and this notice are preserved.